/* ========================================
   PRICING PAGE STYLES
   Inherits from styles.css
   ======================================== */

.pricing-container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.pricing-header {
    margin-bottom: 4rem;
}

.pricing-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pricing-title .highlight {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.pricing-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(37, 99, 235, 0.1);
    z-index: -1;
    border-radius: 4px;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Pricing Card */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Featured Card */
.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.12);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Card Content */
.card-tier {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
 

/* Icon Wrapper */
.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.card-icon-wrapper.starter {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
}

.card-icon-wrapper.pro {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    transform: scale(1.1);
}

.card-icon-wrapper.ultimate {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
}

.pricing-card:hover .card-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.pricing-card.featured:hover .card-icon-wrapper {
    transform: scale(1.25) rotate(5deg);
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.04em;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    text-align: left;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.feature-icon {
    flex-shrink: 0;
    color: #22c55e;
}

/* Button */
.pricing-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-outline {
    border: 1.5px solid #e2e8f0;
    color: var(--text-dark);
    background: transparent;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* Top-up (Need More Credits) Section */
.topup-section {
    margin: 8rem auto;
    max-width: 1100px;
}

.topup-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.topup-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.topup-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.topup-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pack-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pack-card:hover {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.pack-card.best-value {
    border: 2.5px solid var(--primary-blue);
}

.badge-best {
    position: absolute;
    top: -12px;
    background: var(--text-dark);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pack-meta {
    margin-bottom: 1.5rem;
}

.pack-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pack-credits {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pack-credits span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pack-save {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pack-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.pack-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--text-dark);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.pack-card:hover .pack-btn {
    background: var(--primary-blue);
}

.pack-card.best-value .pack-btn {
    background: var(--primary-blue);
}

.topup-footer {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    margin: 8rem auto;
    max-width: 800px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-subtle);
}

.faq-question {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Responsive */
/* Active Plan Highlighting */
.pricing-card.active-plan {
    border: 2.5px solid #22c55e;
    background: #f0fdf4;
    transform: none !important;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
}

.active-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .topup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .pricing-header {
        margin-bottom: 2rem;
    }

    .pricing-title {
        font-size: 1.75rem;
    }

    .pricing-subtitle {
        font-size: 0.8rem;
    }

    .pricing-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 1.5rem 1rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .pricing-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
    }

    .pricing-card.featured {
        transform: scale(1.05) !important;
        z-index: 2;
    }

    .card-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }

    .badge-popular {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        top: -12px;
    }

    .card-tier {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .price-currency {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .features-list {
        margin-bottom: 1.5rem;
    }

    .feature-item {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .feature-icon {
        width: 14px;
        height: 14px;
    }

    .pricing-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    /* Topup Section */
    .topup-section {
        margin: 4rem auto;
    }

    .topup-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .topup-title {
        font-size: 1.2rem;
    }

    .topup-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .topup-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 0.75rem;
    }

    .pack-card {
        padding: 1rem 0.75rem;
    }

    .pack-emoji {
        font-size: 1.2rem;
    }

    .pack-credits {
        font-size: 0.85rem;
    }

    .pack-price {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .pack-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Plan Gating Utility */
.plan-disabled {
    filter: grayscale(1);
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    cursor: default;
}

.plan-disabled::before {
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
}

.starter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid #bbf7d0;
}
