/* ============================================
   WAAMINI PRICING PAGE — Premium Dark Theme
   ============================================ */

/* ============ PRICING HERO ============ */
.pricing-hero {
    padding: 100px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: rgba(37,211,102, 0.04);
}

.pricing-hero .badge-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37,211,102, 0.08);
    border: 1px solid rgba(37,211,102, 0.15);
    border-radius: 50px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    /* animate after load */
}

.pricing-hero h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 16px;
    opacity: 1;
}

.pricing-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.6;
    opacity: 1;
}

/* ============ TOGGLE ============ */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 1;
}

/* Enable premium gradients + animations only after full load */
.fx-ready .pricing-hero {
    background: linear-gradient(135deg, #E6FCF2 0%, #ffffff 50%, #E6FCF2 100%);
}
.fx-ready .pricing-hero::before {
    background: radial-gradient(ellipse, rgba(37,211,102, 0.08), transparent 70%);
}
.fx-ready .pricing-hero .badge-label { animation: fadeInUp 0.5s ease; }
.fx-ready .pricing-hero h1 {
    color: var(--text-primary);
    animation: fadeInUp 0.5s ease 0.1s forwards;
}
.fx-ready .pricing-hero p { animation: fadeInUp 0.5s ease 0.2s forwards; }
.fx-ready .pricing-toggle { animation: fadeInUp 0.5s ease 0.3s forwards; }

.pricing-toggle .toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.pricing-toggle .toggle-label.active {
    color: #fff;
}

.toggle-switch {
    width: 56px;
    height: 30px;
    background: var(--border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.yearly {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-switch .toggle-knob {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch.yearly .toggle-knob {
    transform: translateX(26px);
}

.save-badge {
    padding: 4px 12px;
    background: rgba(0, 200, 83, 0.12);
    border: 1px solid rgba(0, 200, 83, 0.25);
    border-radius: 50px;
    color: #00c853;
    font-size: 12px;
    font-weight: 700;
}

/* ============ PRICING CARDS ============ */
.pricing-section {
    padding: 40px 0 100px;
    background: #f5f9fb;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 20px;
    align-items: start;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    padding: 28px 26px 32px;
    position: relative;
    overflow: visible;
    transition: all 0.35s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(37,211,102, 0.1);
}

/* Featured = blue border */
.pricing-card.featured {
    border: 2px solid #25D366;
    box-shadow: 0 4px 24px rgba(37,211,102, 0.13);
}

/* Remove old orange bar */
.pricing-card.featured::before { display: none; }

/* "Most Popular" badge — blue pill floating above card */
.recommended-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 22px;
    background: #25D366;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37,211,102, 0.35);
}
.recommended-badge svg { display: none; }

/* Save pill — flat yellow badge top-right (was diagonal ribbon) */
.discount-ribbon {
    position: absolute;
    top: 20px;
    right: 18px;
    transform: none;
    background: #FEF9C3;
    color: #713F12;
    border: 1px solid #FDE68A;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 50px;
    box-shadow: none;
    letter-spacing: 0;
}

/* Plan header */
.plan-header {
    text-align: left;
    padding: 6px 0 20px;
    padding-right: 90px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    color: #1F2937;
}

.pricing-card.featured .plan-name {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #128C7E;
}

.plan-tagline {
    font-size: 11px;
    font-weight: 700;
    color: #128C7E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card.featured .plan-tagline {
    color: #1F2937;
}

/* Pricing */
.plan-price {
    text-align: left;
    margin-bottom: 22px;
}

.original-price {
    font-size: 12px;
    font-weight: 700;
    color: #9CA3AF;
    text-decoration: line-through;
    text-decoration-color: #EF4444;
    text-decoration-thickness: 2px;
    display: block;
    margin-bottom: 2px;
}

.current-price {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    color: #1F2937;
    display: flex;
    align-items: baseline;
}

.pricing-card.featured .current-price {
    color: #128C7E;
}

.current-price .currency {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    vertical-align: baseline;
}

.current-price .period {
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    margin-left: 4px;
    letter-spacing: 0;
}

.yearly-note {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
    display: block;
}

/* Feature list */
.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #030025;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li .feat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(37,211,102, 0.07);
    color: #128C7E;
}

.pricing-card.featured .plan-features li .feat-icon {
    background: rgba(37,211,102, 0.09);
}

/* CTA Buttons — pill shape */
.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    text-align: center;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    box-sizing: border-box;
}

/* Hide SVG icons in buttons */
.plan-cta svg { display: none; }

/* Starter — outline blue */
.plan-cta.cta-outline {
    background: transparent;
    border-color: #25D366;
    color: #128C7E;
}

.plan-cta.cta-outline:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102, 0.25);
}

/* Enterprise — outline blue */
.plan-cta.cta-gradient {
    background: transparent;
    border-color: #25D366;
    color: #128C7E;
}

.plan-cta.cta-gradient:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102, 0.28);
}

/* Growth (featured) — solid blue fill */
.plan-cta.cta-fire {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102, 0.32);
}

.plan-cta.cta-fire:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,211,102, 0.38);
}

/* ============ API TABLE ============ */
.api-table-wrapper {
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-primary);
}

.api-table th, .api-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.api-table th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.api-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.api-table tr:last-child td {
    border-bottom: none;
}

.api-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.api-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .api-table th, .api-table td {
        white-space: nowrap;
        padding: 14px 16px;
    }
}

/* ============ FAQ ============ */
.faq-section {
    padding: 80px 0 100px;
    max-width: 700px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(37,211,102, 0.25);
}

.faq-question {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .faq-arrow {
    font-size: 18px;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        padding-top: 36px;
    }

    .pricing-hero h1 {
        font-size: 32px;
    }

    .pricing-card.featured {
        margin-top: 16px;
    }

    .plan-name {
        font-size: 18px;
    }

    .current-price {
        font-size: 40px;
    }

    .plan-cta {
        font-size: 15px;
    }
}