/* ============================
   Pricing Page Styles
   ============================ */

/* Hero */
.pricing-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    position: relative;
}
.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59,130,246,.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139,92,246,.12) 0%, transparent 50%);
}
.pricing-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    position: relative;
}
.pricing-hero .highlight {
    color: #60a5fa;
    font-weight: 600;
    -webkit-text-fill-color: #60a5fa;
}

/* Free Banner */
.free-banner {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.free-banner svg {
    flex-shrink: 0;
}
.free-banner span {
    color: #94a3b8;
    font-size: .95rem;
}
.free-banner strong {
    color: #60a5fa;
}

/* Pricing Cards Section */
.pricing-section {
    padding: 4rem 2rem 6rem;
}
.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Card Base */
.price-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 1.8rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all .4s;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

/* Popular Card */
.price-card.popular {
    border-color: rgba(59,130,246,.4);
    background: linear-gradient(180deg, rgba(59,130,246,.08) 0%, var(--card-bg) 100%);
}
.price-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 20px 20px 0 0;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-popular {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}
.badge-new {
    background: rgba(251,146,60,.15);
    color: #fb923c;
    border: 1px solid rgba(251,146,60,.3);
}
.badge-free {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
}
.badge-discount {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
}

/* Card Content */
.card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--text-light);
}
.card-desc {
    font-size: .85rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}
.card-price {
    margin-bottom: 1.5rem;
}
.price-current {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.price-unit {
    font-size: 1rem;
    color: var(--text-gray);
    margin-left: .2rem;
    -webkit-text-fill-color: var(--text-gray);
}
.price-original {
    font-size: .9rem;
    color: rgba(148,163,184,.6);
    text-decoration: line-through;
    margin-top: .3rem;
}

/* Card Credits */
.card-credits {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    border-radius: 8px;
    background: rgba(59,130,246,.08);
    font-size: .95rem;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Card Features */
.card-features {
    list-style: none;
    flex: 1;
    margin-bottom: 2rem;
    padding: 0;
}
.card-features li {
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.card-features li:last-child {
    border-bottom: none;
}
.check-icon {
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
}

/* Buy Buttons */
.btn-buy {
    display: block;
    width: 100%;
    padding: .85rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
}
.btn-buy-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59,130,246,.3);
}
.btn-buy-primary:hover {
    box-shadow: 0 8px 25px rgba(59,130,246,.45);
    transform: translateY(-2px);
}
.btn-buy-secondary {
    background: rgba(255,255,255,.06);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,.1);
}
.btn-buy-secondary:hover {
    background: rgba(255,255,255,.1);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem 6rem;
    background: var(--dark-bg);
}
.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all .3s;
}
.faq-item:hover {
    border-color: rgba(59,130,246,.3);
}
.faq-q {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-light);
    user-select: none;
}
.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-gray);
    transition: transform .3s;
}
.faq-item.open .faq-q::after {
    content: '-';
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 1.5rem;
    color: var(--text-gray);
    font-size: .9rem;
    line-height: 1.8;
}
.faq-item.open .faq-a {
    max-height: 200px;
    padding-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 1000px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .pricing-hero h1 {
        font-size: 1.8rem;
    }
    .free-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================
   Payment Modal Styles
   ============================ */
.payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.payment-modal {
    background: linear-gradient(180deg, #1e2235 0%, #161927 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.08);
    text-align: center;
}

.payment-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    padding: 4px;
}
.payment-close:hover {
    color: #fff;
}

.payment-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.payment-info #paymentPackageName {
    color: #94a3b8;
    font-weight: 500;
}
.payment-info #paymentAmount {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-qrcode {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 0;
}
.payment-qrcode img {
    display: block;
}

.payment-tip {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.payment-timer {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}
.payment-timer #paymentCountdown {
    color: #60a5fa;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.payment-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
