/* TifyTokens - AI Prompts Platform Styles */

:root {
    --primary-color: rgb(104, 83, 219);
    --primary-hover: rgb(90, 70, 200);
    --primary-light: rgba(104, 83, 219, 0.1);
    --secondary-color: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --error-color: #dc3545;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gaming-tokens-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
}

/* Header Section */
.gaming-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.tokens-dashboard {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.user-avatar {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(104, 83, 219, 0.2);
}

.user-stats h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.token-balance {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--primary-light);
    padding: 20px 30px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.token-icon {
    font-size: 36px;
    filter: grayscale(0);
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.balance-currency {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 5px;
}

/* Token Purchase Section */
.tokens-shop h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.token-purchase-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
}

.token-purchase-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.purchase-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.purchase-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.purchase-header h4 {
    font-size: 24px;
    margin: 15px 0 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.purchase-header p {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Bonus Tiers Info */
.bonus-tiers-info {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.bonus-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary-color);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 180px;
}

.bonus-tier.highlighted {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(104, 83, 219, 0.2);
}

.bonus-tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.tier-icon {
    font-size: 28px;
}

.tier-content {
    display: flex;
    flex-direction: column;
}

.tier-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.tier-bonus {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Active Bonus Display */
.bonus-display {
    margin: 25px 0;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bonus-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(104, 83, 219, 0.3);
    color: white;
}

.bonus-icon {
    font-size: 40px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.bonus-content {
    flex: 1;
}

.bonus-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bonus-percent {
    font-size: 24px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 8px;
}

.bonus-amount {
    font-size: 16px;
    font-weight: 600;
}

/* Token Selector */
.token-selector {
    max-width: 700px;
    margin: 0 auto;
}

.slider-container {
    margin-bottom: 30px;
}

.slider-container label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.slider-wrapper {
    position: relative;
    margin: 20px 0;
}

.token-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.token-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(104, 83, 219, 0.3);
    border: 3px solid #fff;
    transition: all 0.2s ease;
}

.token-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(104, 83, 219, 0.4);
}

.token-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(104, 83, 219, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
}

/* Token Display */
.token-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary-color);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.token-count, .token-price {
    text-align: center;
}

.count-label, .price-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.count-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.count-sublabel {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 3px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--success-color);
}

/* Quick Amount Buttons */
.quick-amounts {
    margin-bottom: 30px;
}

.quick-amounts h5 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.quick-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(104, 83, 219, 0.3);
}

/* Manual Input */
.manual-input {
    margin-bottom: 30px;
}

.manual-input label {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.manual-input-field {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    width: 120px;
    text-align: center;
    outline: none;
}

.input-suffix {
    color: var(--text-light);
    padding-right: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* Main Buy Button */
.buy-button-main {
    width: 100%;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(104, 83, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.buy-button-main:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(104, 83, 219, 0.4);
}

.buy-button-main:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 22px;
}

.btn-text {
    flex: 1;
}

.btn-price {
    font-size: 22px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 8px;
}

/* Bonus Examples */
.bonus-examples {
    margin: 30px 0;
    padding: 25px;
    background: var(--secondary-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.bonus-examples h5 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    font-weight: 700;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.example-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-card.highlighted {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.example-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.example-arrow {
    font-size: 20px;
    color: var(--primary-color);
}

.example-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.example-tokens {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.example-bonus {
    font-size: 12px;
    font-weight: 600;
    color: var(--success-color);
}

/* Purchase Features */
.purchase-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.purchase-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--secondary-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.purchase-features .feature-icon {
    font-size: 20px;
}

/* Features Section */
.gaming-features {
    margin: 50px 0;
}

.feature-section h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* Transaction History */
.transaction-history {
    margin-top: 50px;
}

.transaction-history h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 700;
}

.transactions-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: var(--secondary-color);
}

.transaction-icon {
    font-size: 24px;
    margin-right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.transaction-details {
    flex: 1;
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.transaction-item.add .transaction-amount {
    color: var(--success-color);
}

.transaction-item.spend .transaction-amount {
    color: var(--error-color);
}

.transaction-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 13px;
    color: var(--text-light);
}

.no-transactions .empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--secondary-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.empty-state p {
    color: var(--text-light);
    font-size: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 700;
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 30px;
}

.purchase-summary {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.bonus-item {
    color: var(--primary-color);
    font-weight: 600;
}

.bonus-highlight {
    color: var(--primary-color);
    font-weight: 800;
}

.summary-item.total-tokens {
    font-weight: 700;
    font-size: 17px;
    color: var(--primary-color);
}

.summary-divider {
    height: 2px;
    background: var(--border-color);
    margin: 15px 0;
}

.summary-item.total {
    font-weight: 700;
    font-size: 18px;
    color: var(--success-color);
}

.payment-methods h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    padding: 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-icon {
    font-size: 24px;
    margin-right: 15px;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-confirm {
    background: var(--primary-color);
    color: #fff;
}

.btn-confirm:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 83, 219, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gaming-tokens-container {
        padding: 20px 15px;
    }
    
    .bonus-tiers-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bonus-tier {
        justify-content: center;
    }
    
    .bonus-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bonus-details {
        justify-content: center;
    }
    
    .gaming-header {
        padding: 25px;
    }
    
    .tokens-dashboard {
        flex-direction: column;
        text-align: center;
    }
    
    .token-purchase-card {
        padding: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stats h2 {
        font-size: 26px;
    }
    
    .balance-amount {
        font-size: 32px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .token-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .quick-buttons {
        justify-content: center;
    }
    
    .quick-btn {
        min-width: 60px;
        padding: 10px 20px;
    }
    
    .buy-button-main {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .btn-price {
        font-size: 20px;
    }
    
    .purchase-features {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .token-balance {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bonus-tier {
        min-width: auto;
        padding: 12px 15px;
    }
    
    .tier-icon {
        font-size: 24px;
    }
    
    .tier-title {
        font-size: 13px;
    }
    
    .tier-bonus {
        font-size: 14px;
    }
    
    .bonus-card {
        padding: 15px 20px;
    }
    
    .bonus-icon {
        font-size: 32px;
    }
    
    .bonus-title {
        font-size: 14px;
    }
    
    .bonus-percent {
        font-size: 20px;
        padding: 4px 12px;
    }
    
    .bonus-amount {
        font-size: 14px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-card {
        padding: 15px;
    }
    
    .example-amount {
        font-size: 16px;
    }
    
    .example-arrow {
        font-size: 18px;
    }
    
    .example-tokens {
        font-size: 14px;
    }
    
    .example-bonus {
        font-size: 11px;
    }
    
    .balance-info {
        align-items: center;
    }
    
    .token-purchase-card {
        padding: 20px;
    }
    
    .purchase-header h4 {
        font-size: 22px;
    }
    
    .purchase-header p {
        font-size: 14px;
    }
    
    .token-display {
        padding: 20px;
    }
    
    .count-value, .price-value {
        font-size: 28px;
    }
    
    .quick-buttons {
        gap: 8px;
    }
    
    .quick-btn {
        min-width: 55px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .buy-button-main {
        padding: 14px 16px;
        font-size: 15px;
        gap: 10px;
    }
    
    .btn-icon {
        font-size: 20px;
    }
    
    .btn-price {
        font-size: 18px;
        padding: 4px 12px;
    }
    
    .input-group {
        justify-content: center;
    }
    
    .manual-input-field {
        width: 100px;
    }
}
