/* =====================================================
   TOKEN SATIN ALMA SAYFASI
   ===================================================== */

.fanchaty-tokens-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 80vh;
}

/* Header */
.tokens-header {
    text-align: center;
    margin-bottom: 40px;
}

.tokens-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.tokens-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

/* Bakiye Kartı */
.tokens-balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(221, 71, 145, 0.15) 0%, rgba(83, 79, 224, 0.15) 100%);
    border: 1px solid rgba(221, 71, 145, 0.3);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 40px;
}

.balance-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-amount .token-icon {
    font-size: 32px;
}

.balance-amount .token-number {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-amount .token-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    align-self: flex-end;
    margin-bottom: 8px;
}

.btn-collection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-collection:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(221, 71, 145, 0.4);
    color: #ffffff;
}

/* Sections */
.tokens-section {
    margin-bottom: 50px;
}

.tokens-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}

.section-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0 0 24px;
}

/* Token Paketleri Grid */
.token-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .token-packages-grid {
        grid-template-columns: 1fr;
    }
}

.token-package {
    position: relative;
    background: linear-gradient(145deg, rgba(35, 35, 40, 0.95) 0%, rgba(25, 25, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.token-package:hover {
    border-color: rgba(221, 71, 145, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.token-package.popular {
    border-color: rgba(221, 71, 145, 0.5);
    background: linear-gradient(145deg, rgba(221, 71, 145, 0.1) 0%, rgba(83, 79, 224, 0.1) 100%);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-tokens {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.package-tokens .token-icon {
    font-size: 28px;
}

.package-tokens .token-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.package-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.package-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 4px;
}

.price-currency {
    font-size: 18px;
    color: #ffffff;
    margin-top: 4px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.package-per-token {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.btn-buy-package {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(221, 71, 145, 0.4);
}

/* Token Kullanım Alanları */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }
}

.usage-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.usage-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.usage-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}

.usage-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* Son İşlemler */
.history-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-item:last-child {
    border-bottom: none;
}

.history-type {
    display: block;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.history-date {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.history-amount {
    font-size: 15px;
    font-weight: 600;
}

.history-amount.positive {
    color: #4ade80;
}

.history-amount.negative {
    color: #f87171;
}

/* Satın Alma Modal */
.token-purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.token-purchase-modal.active {
    opacity: 1;
    visibility: visible;
}

.token-purchase-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.token-purchase-modal .modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.token-purchase-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.selected-package {
    background: rgba(221, 71, 145, 0.1);
    border: 1px solid rgba(221, 71, 145, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.package-summary {
    margin-bottom: 8px;
}

.summary-tokens {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.package-price-display {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

.payment-info {
    text-align: center;
    margin-bottom: 24px;
}

.payment-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 0 12px;
}

.payment-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4ade80;
}

.btn-confirm-purchase {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(221, 71, 145, 0.4);
}

/* Premium/Auth Required */
.fanchaty-premium-required,
.fanchaty-auth-required {
    text-align: center;
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.premium-icon,
.auth-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.fanchaty-premium-required h2,
.fanchaty-auth-required h2 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 12px;
}

.fanchaty-premium-required p,
.fanchaty-auth-required p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin: 0 0 24px;
}

.fanchaty-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fanchaty-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(221, 71, 145, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .fanchaty-tokens-page {
        padding: 24px 16px;
    }
    
    .tokens-header h1 {
        font-size: 28px;
    }
    
    .tokens-balance-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 20px;
    }
    
    .balance-amount .token-number {
        font-size: 36px;
    }
}