﻿/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ── Arabic Font ── */
@font-face {
    font-family: 'Droid Kufi';
    src: url('/fonts/DroidKufiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Arabic / RTL overrides ── */
html[lang="ar"],
html[lang="ar"] body,
html[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Droid Kufi', sans-serif;
    line-height: 1.75;
    letter-spacing: 0;
}

/* Reset letter-spacing on elements that set it explicitly */
html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .plans-eyebrow-pill,
html[dir="rtl"] .cta-eyebrow,
html[dir="rtl"] .pp-section-title,
html[dir="rtl"] .package-label,
html[dir="rtl"] .section-eyebrow-dark {
    letter-spacing: 0;
}

/* Slightly more breathing room for Arabic text blocks */
html[dir="rtl"] .section-sub,
html[dir="rtl"] .plan-desc,
html[dir="rtl"] .faq-answer,
html[dir="rtl"] .plans-sub,
html[dir="rtl"] .cta-sub,
html[dir="rtl"] .pp-addon-desc,
html[dir="rtl"] .pp-bonus-item,
html[dir="rtl"] .package-block p {
    line-height: 1.9;
}

/* Mirror Unicode directional arrows (→ ←) placed inside RTL-aware spans */
html[dir="rtl"] .dir-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

/* Buttons inherit the body font in RTL */
html[dir="rtl"] .btn,
html[dir="rtl"] .plan-cta,
html[dir="rtl"] .pp-checkout-btn,
html[dir="rtl"] .sys-tab,
html[dir="rtl"] .tog,
html[dir="rtl"] .tbl-cta,
html[dir="rtl"] .btn-retry,
html[dir="rtl"] .faq-question {
    font-family: 'Droid Kufi', sans-serif;
    letter-spacing: 0;
}

/* ── CSS Variables (Light theme) ── */
:root {
    --brand: #0b74d1;
    --brand-dark: #0759a3;
    --brand-light: #e8f2fd;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface2: #f0f4f9;
    --border: #dde5f0;
    --text: #0d1829;
    --text-2: #4a5568;
    --text-3: #8a97aa;
    --nav-bg: #0b74d1;
    --shadow-sm: 0 2px 12px rgba(13,24,41,.07);
    --shadow-md: 0 8px 32px rgba(13,24,41,.11);
    --shadow-lg: 0 20px 60px rgba(13,24,41,.14);
    --radius: 16px;
    --radius-sm: 8px;
    --font-body: 'Poppins', system-ui, sans-serif;
}

/* ── Dark theme ── */
[data-theme="dark"] {
    --bg: #0c1220;
    --surface: #131e30;
    --surface2: #1a2740;
    --border: #243350;
    --text: #e8edf5;
    --text-2: #8fa3bf;
    --text-3: #5a7090;
    --brand-light: rgba(11,116,209,.18);
    --nav-bg: #0e1a2e;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.25);
    --shadow-md: 0 8px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.45);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background .3s, color .3s;
    overflow-x: hidden;
    min-width: 320px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Layout helpers ── */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: min(1160px, 92vw) !important;
    max-width: none !important;
    margin-inline: auto;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.section {
    padding: 80px 0;
}

/* ── Typography helpers ── */
.section-eyebrow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.section-title {
    font-size: 44px;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ── Shared Button styles ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background .25s cubic-bezier(0.4,0,0.2,1),
                color .25s cubic-bezier(0.4,0,0.2,1),
                border-color .25s cubic-bezier(0.4,0,0.2,1),
                box-shadow .25s cubic-bezier(0.4,0,0.2,1),
                transform .25s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(11,116,209,.28);
    border: 1.5px solid transparent;
}

    .btn-primary:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 10px 32px rgba(11,116,209,.2);
        transform: translateY(-2px) scale(1.025);
    }

.btn-secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

.btn-soft {
    background: var(--surface2);
    color: var(--text-2);
    border: 1px solid var(--border);
    font-size: 13px;
    padding: 9px 15px;
}

    .btn-soft:hover {
        color: var(--brand);
        border-color: var(--brand);
    }

.btn-solid {
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    padding: 9px 15px;
    border: 1.5px solid transparent;
}

    .btn-solid:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 6px 20px rgba(11,116,209,.18);
        transform: translateY(-1px) scale(1.02);
    }

/* ── Card ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

    .card:hover {
        box-shadow: var(--shadow-md);
        border-color: rgba(11,116,209,.25);
        transform: translateY(-3px);
    }

/* ── Utility ── */
.text-brand {
    color: var(--brand);
}

.text-muted {
    color: var(--text-2);
}

/* ── Splash Screen ── */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .section-title {
        font-size: 34px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 28px;
    }

    .section {
        padding: 48px 0;
    }

    .section-sub {
        font-size: 14px;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .section {
        padding: 40px 0;
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   PLANS PAGE
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.plans-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, #185fa5 55%, #0a4a84 100%);
    padding: 46px 0 36px;
    text-align: center;
    color: #fff;
    isolation: isolate;
}

    .plans-hero .container {
        position: relative;
        z-index: 3;
    }

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation-fill-mode: forwards;
}

.orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,.12);
    top: -80px;
    left: -60px;
    animation: orbFloat1 18s linear infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(100,180,255,.18);
    top: 10%;
    right: -40px;
    animation: orbFloat2 24s linear infinite;
}

.orb-3 {
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,.08);
    bottom: -40px;
    left: 30%;
    animation: orbFloat3 20s linear infinite;
}

.orb-4 {
    width: 120px;
    height: 120px;
    background: rgba(60,140,230,.22);
    top: 40%;
    right: 20%;
    animation: orbFloat1 15s linear infinite;
}

.orb-5 {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,.06);
    top: 60%;
    left: 10%;
    animation: orbFloat2 28s linear infinite;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0,0) scale(1);
        opacity: .7;
    }

    33% {
        transform: translate(20px,-15px) scale(1.05);
        opacity: .85;
    }

    66% {
        transform: translate(-10px,10px) scale(.97);
        opacity: .6;
    }

    100% {
        transform: translate(0,0) scale(1);
        opacity: .7;
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0,0) scale(1);
        opacity: .6;
    }

    40% {
        transform: translate(-18px,12px) scale(1.08);
        opacity: .8;
    }

    80% {
        transform: translate(8px,-8px) scale(.95);
        opacity: .5;
    }

    100% {
        transform: translate(0,0) scale(1);
        opacity: .6;
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(0,0);
        opacity: .5;
    }

    50% {
        transform: translate(14px,-20px);
        opacity: .75;
    }

    100% {
        transform: translate(0,0);
        opacity: .5;
    }
}

.hero-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.hero-icon {
    position: absolute;
    width: clamp(44px, 5vw, 76px);
    height: clamp(44px, 5vw, 76px);
    color: #fff;
    filter: blur(.5px);
    animation: heroFloat ease-in-out infinite;
}

    .hero-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.icon-1 {
    top: 14%;
    left: 7%;
    opacity: .08;
    animation-duration: 9s;
}

.icon-2 {
    top: 20%;
    right: 9%;
    opacity: .07;
    animation-duration: 12s;
}

.icon-3 {
    bottom: 16%;
    left: 13%;
    opacity: .09;
    animation-duration: 8s;
}

.icon-4 {
    bottom: 12%;
    right: 13%;
    opacity: .07;
    animation-duration: 11s;
}

@keyframes heroFloat {
    0%,100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

.plans-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 14px;
    letter-spacing: .3px;
}

.plans-title {
    font-size: clamp(22px, 3.8vw, 38px);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.5px;
    line-height: 1.15;
}

.title-accent {
    background: linear-gradient(90deg, #93c5fd, #fff 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-sub {
    font-size: 14px;
    opacity: .82;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

/* Trust indicators */
.trust-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    padding: 8px 18px;
    margin-bottom: 22px;
    gap: 4px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    padding: 2px 8px;
}

.trust-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.3);
}

/* Billing toggle */
.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.billing-toggle {
    position: relative;
    display: inline-flex;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    padding: 4px;
}

.toggle-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    left: 4px;
    background: #fff;
    border-radius: 24px;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.billing-toggle:has(.tog:last-child.active) .toggle-pill {
    transform: translateX(100%);
}

.tog {
    position: relative;
    z-index: 1;
    padding: 8px 24px;
    border-radius: 24px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: color .2s;
    min-width: 90px;
}

    .tog.active {
        color: var(--brand-dark);
    }

/* ─────────────────────────────────────────
   SYSTEM TABS BAR
───────────────────────────────────────── */
.sys-tabs-bar {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sys-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

    .sys-tabs::-webkit-scrollbar {
        display: none;
    }

.sys-tab {
    flex-shrink: 0;
    padding: 14px 24px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

    .sys-tab:hover {
        color: var(--brand);
    }

    .sys-tab.active {
        color: var(--brand);
        border-bottom-color: var(--brand);
        font-weight: 600;
    }

/* ─────────────────────────────────────────
   PLANS SECTION
───────────────────────────────────────── */
.plans-section {
    padding: 52px 0 72px;
    background: var(--bg);
    position: relative;
}

    .plans-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
        background-size: 28px 28px;
        opacity: .5;
        pointer-events: none;
    }

/* ─────────────────────────────────────────
   PLANS GRID
───────────────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}

/* ─────────────────────────────────────────
   PLAN CARD
───────────────────────────────────────── */
.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 22px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .22s, border-color .22s, transform .22s;
}

    .plan-card:hover {
        box-shadow: 0 12px 36px rgba(11,116,209,.13);
        border-color: rgba(11,116,209,.25);
        transform: translateY(-3px);
    }

    .plan-card.plan-featured {
        border: 2px solid var(--brand);
        padding-top: 40px;
        background: linear-gradient(160deg, var(--brand-light) 0%, var(--surface) 40%);
    }

    .plan-card.plan-panel-open {
        border: 2px solid var(--brand);
        box-shadow: 0 10px 38px rgba(11,116,209,.16);
    }

.featured-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(11,116,209,.12), transparent 60%);
    pointer-events: none;
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%,100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

.rec-badge-wrap {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

.rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 13px;
    border: 1px solid;
}

.rec-badge--blue {
    background: var(--brand-light);
    color: var(--brand);
    border-color: #bfdbfe;
}

.rec-badge--green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.rec-badge--red {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.rec-badge--orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.plan-header {
    margin-bottom: 10px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    margin: 0;
    min-height: 36px;
}

.plan-pills {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.plan-meta-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 20px;
    padding: 3px 10px;
    margin: 0 4px 6px 0;
}

.plan-meta-module {
    color: #7c3aed;
    background: #f5f3ff;
}

.plan-meta-mobile {
    color: #15803d;
    background: #f0fdf4;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0 14px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 13px;
        color: var(--text-2);
        line-height: 1.4;
    }

.feat-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}

.feature-list li:hover .feat-check {
    background: #15803d;
    color: #fff;
    transform: scale(1.15);
}

.check-polyline {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawCheck .4s ease forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.plan-price-block {
    margin-top: auto;
    padding-top: 18px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 2px;
}

.price-currency {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
    align-self: flex-start;
    margin-top: 8px;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -1.5px;
}

.price-period {
    font-size: 13px;
    color: var(--text-3);
    margin-left: 2px;
}

.price-hint {
    font-size: 11px;
    color: var(--text-3);
    margin: 0 0 12px;
}

.price-custom {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand);
}

/* CTA with shine */
.plan-cta {
    width: 100%;
    padding: 11px 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    letter-spacing: .1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: relative;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg);
    transition: left 0s;
}

.plan-cta:hover .btn-shine {
    left: 130%;
    transition: left .55s ease;
}

.cta-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-2);
}

    .cta-outline:hover {
        background: var(--surface2);
        border-color: var(--brand);
        color: var(--brand);
    }

.cta-solid {
    background: var(--brand);
    border: 1.5px solid transparent;
    color: #fff;
}

    .cta-solid:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 6px 20px rgba(11,116,209,.2);
        transform: translateY(-1px) scale(1.02);
    }

/* ─────────────────────────────────────────
   PRICE PANEL
───────────────────────────────────────── */
.price-panel {
    margin-top: 20px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: panelFadeIn .22s ease;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
}

.pp-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
}

    .pp-line-item:last-of-type {
        border-bottom: none;
    }

.pp-line-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pp-line-amount {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.pp-line-onetime .pp-line-amount {
    color: #92400e;
}

.pp-badge-onetime {
    font-size: 9px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    padding: 1px 6px;
}

.pp-free-strip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    color: #166534;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pp-free-list {
    color: #15803d;
    font-weight: 600;
}

.pp-addon-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .15s;
}

    .pp-addon-row:hover {
        border-color: var(--brand);
    }

.pp-addon-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pp-addon-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.pp-addon-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 6px;
    width: fit-content;
}

.pp-tag-monthly {
    background: #ede9fe;
    color: #6d28d9;
}

.pp-tag-onetime {
    background: #fef3c7;
    color: #92400e;
}

.pp-tag-custom {
    background: var(--surface2);
    color: var(--text-2);
}

.pp-addon-desc {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.4;
}

.pp-addon-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    align-self: flex-start;
    padding-top: 2px;
}

.pp-price-custom {
    color: var(--text-3);
    font-style: italic;
}

.pp-bonus-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 4px;
}

.pp-bonus-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.55;
}

.pp-checkout-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 0;
    background: var(--brand);
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s cubic-bezier(0.4,0,0.2,1);
}

    .pp-checkout-btn:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 4px 18px rgba(11,116,209,.2);
    }

/* Packages */
.packages-grid {
    align-items: stretch;
}

.package-card {
    min-height: 100%;
}

.package-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.package-block {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.package-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
}

.package-block p {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
}

.package-win {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

    .package-win .package-label {
        color: #15803d;
    }

.plans-footnote {
    text-align: center;
    font-size: 11px;
    color: var(--text-3);
    margin-top: 28px;
}

/* States */
.loading-state, .empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--text-2);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.btn-retry {
    margin-top: 16px;
    padding: 9px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-2);
    transition: background .15s;
}

    .btn-retry:hover {
        background: var(--surface2);
    }

/* ─────────────────────────────────────────
   COMPARISON TABLE
───────────────────────────────────────── */
.comparison-section {
    padding: 64px 0 72px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.section-eyebrow-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title-dark {
    font-size: clamp(22px,3vw,32px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -.4px;
}

.section-sub-dark {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 36px;
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 540px;
}

    .comparison-table thead tr {
        background: var(--surface2);
        border-bottom: 2px solid var(--border);
    }

    .comparison-table th {
        padding: 16px 18px;
        text-align: center;
        font-weight: 700;
        color: var(--text);
        font-size: 14px;
    }

        .comparison-table th.feat-col {
            text-align: left;
            color: var(--text-2);
            font-size: 12px;
            font-weight: 600;
        }

    .comparison-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background .15s;
    }

        .comparison-table tbody tr:hover {
            background: var(--surface2);
        }

        .comparison-table tbody tr:last-child {
            border-bottom: none;
        }

    .comparison-table td {
        padding: 13px 18px;
        text-align: center;
        color: var(--text-2);
        vertical-align: middle;
    }

.feat-col, .feat-label {
    text-align: left !important;
    color: var(--text-2);
    font-weight: 500;
}

.feat-label {
    font-size: 13px;
}

.featured-col {
    background: var(--brand-light);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.plan-col {
    font-size: 14px;
}

.table-badge {
    display: block;
    font-size: 10px;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    padding: 1px 8px;
    margin: 4px auto 0;
    width: fit-content;
}

.tbl-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.tbl-custom {
    font-size: 13px;
    color: var(--text-3);
    font-style: italic;
}

.tbl-check {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    align-items: center;
    justify-content: center;
}

.tbl-dash {
    color: var(--border);
    font-size: 18px;
}

.price-row-table td {
    padding-top: 18px;
    padding-bottom: 18px;
    background: var(--surface2);
}

    .price-row-table td.featured-col {
        background: var(--brand-light);
    }

.cta-row-table td {
    padding: 16px 18px;
    background: var(--bg);
}

.tbl-cta {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
    white-space: nowrap;
}

.tbl-cta-solid {
    background: var(--brand);
    color: #fff;
    border: 1.5px solid transparent;
}

    .tbl-cta-solid:hover {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 4px 14px rgba(11,116,209,.2);
    }

.tbl-cta-ghost {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--border);
}

    .tbl-cta-ghost:hover {
        border-color: var(--brand);
        background: var(--brand-light);
    }

/* ─────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────── */
.faq-section {
    padding: 64px 0 72px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: 820px;
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

    .faq-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: rgba(11,116,209,.25);
    }

    .faq-card.open {
        border-color: rgba(11,116,209,.35);
        box-shadow: var(--shadow-md);
    }

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
}

.faq-question-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.faq-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s ease, background .25s, color .25s;
}

.faq-icon {
    font-size: 22px;
    line-height: 1;
    transform: translateY(-1px);
}

.faq-card.open .faq-icon-wrap {
    transform: rotate(45deg);
    background: var(--brand);
    color: #fff;
}

.faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .28s ease;
}

    .faq-answer-wrap.show {
        grid-template-rows: 1fr;
    }

.faq-answer {
    min-height: 0;
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ─────────────────────────────────────────
   BOTTOM CTA
───────────────────────────────────────── */
.bottom-cta-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 76px;
    background: linear-gradient(135deg, #0b4a8a 0%, var(--brand) 50%, #0b74d1 100%);
    text-align: center;
    color: #fff;
    isolation: isolate;
}

.bottom-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.cta-orb-1 {
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,.1);
    top: -100px;
    left: -80px;
    animation: orbFloat1 20s linear infinite;
}

.cta-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(100,180,255,.15);
    bottom: -60px;
    right: -40px;
    animation: orbFloat2 16s linear infinite;
}

.bottom-cta-inner {
    position: relative;
    z-index: 2;
}

.cta-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
    opacity: .9;
}

.cta-title {
    font-size: clamp(24px,4vw,38px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}

.cta-sub {
    font-size: 15px;
    opacity: .82;
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 440px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #fff;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
    transition: all .2s;
}

    .cta-btn-primary:hover {
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,.25);
    }

.cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}

    .cta-btn-ghost:hover {
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.7);
    }

.cta-footnote {
    font-size: 12px;
    opacity: .65;
    margin: 0;
}

/* ─────────────────────────────────────────
   PLANS PAGE RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        max-width: 660px;
    }

    .trust-row {
        gap: 2px;
        padding: 6px 12px;
    }

    .trust-divider {
        display: none;
    }

    .trust-item {
        font-size: 11px;
        padding: 2px 5px;
    }
}

@media (max-width: 640px) {
    .plans-hero {
        padding: 36px 0 28px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .plans-title {
        font-size: 22px;
    }

    .trust-row {
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .billing-toggle {
        min-width: 200px;
    }

    .comparison-section {
        padding: 44px 0 52px;
    }

    .faq-question-text {
        font-size: 14px;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn-primary,
    .cta-btn-ghost {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — Semantic Color Overrides
   These elements use category/status colors that need adjusted
   shades to remain readable on dark backgrounds.
═══════════════════════════════════════════════════════════════ */

/* ── Plan card recommendation badges ── */
[data-theme="dark"] .rec-badge--green {
    background: rgba(21,128,61,.18);
    color: #4ade80;
    border-color: rgba(74,222,128,.25);
}
[data-theme="dark"] .rec-badge--red {
    background: rgba(190,18,60,.18);
    color: #f87171;
    border-color: rgba(248,113,113,.25);
}
[data-theme="dark"] .rec-badge--orange {
    background: rgba(194,65,12,.18);
    color: #fb923c;
    border-color: rgba(251,146,60,.25);
}

/* ── Plan meta pills (module / mobile) ── */
[data-theme="dark"] .plan-meta-module {
    color: #a78bfa;
    background: rgba(124,58,237,.18);
}
[data-theme="dark"] .plan-meta-mobile {
    color: #4ade80;
    background: rgba(21,128,61,.18);
}

/* ── Price panel: free strip ── */
[data-theme="dark"] .pp-free-strip {
    background: rgba(21,128,61,.12);
    border-color: rgba(74,222,128,.2);
    color: #86efac;
}
[data-theme="dark"] .pp-free-list {
    color: #4ade80;
}

/* ── Price panel: one-time badge & amount ── */
[data-theme="dark"] .pp-badge-onetime {
    background: rgba(146,64,14,.22);
    color: #fbbf24;
}
[data-theme="dark"] .pp-line-onetime .pp-line-amount {
    color: #fbbf24;
}

/* ── Addon type tags ── */
[data-theme="dark"] .pp-tag-monthly {
    background: rgba(109,40,217,.22);
    color: #a78bfa;
}
[data-theme="dark"] .pp-tag-onetime {
    background: rgba(146,64,14,.22);
    color: #fbbf24;
}

/* ── Package win (success block) ── */
[data-theme="dark"] .package-win {
    background: rgba(21,128,61,.12);
    border-color: rgba(74,222,128,.2);
}
[data-theme="dark"] .package-win .package-label {
    color: #4ade80;
}

/* ── Feature list check icon ── */
[data-theme="dark"] .feat-check {
    background: rgba(21,128,61,.2);
    color: #4ade80;
}
[data-theme="dark"] .feature-list li:hover .feat-check {
    background: #22c55e;
    color: #0c1220;
}

/* ── Comparison table check icon ── */
[data-theme="dark"] .tbl-check {
    background: rgba(21,128,61,.2);
    color: #4ade80;
}

/* ── Blog hero gradient ── */
[data-theme="dark"] .blog-hero {
    background: linear-gradient(180deg, var(--surface2) 0%, var(--bg) 100%);
}

/* ── Blog search bar ── */
[data-theme="dark"] .blog-search-wrap {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
[data-theme="dark"] .blog-search-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(11,116,209,.2);
}

/* ── Blog category pills ── */
[data-theme="dark"] .cat-pill {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-2);
}
[data-theme="dark"] .cat-pill:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}

/* ── Blog filter select wrapper ── */
[data-theme="dark"] .filter-select-wrap {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--text);
    box-shadow: none;
}
[data-theme="dark"] .filter-select-wrap:hover {
    border-color: var(--text-3);
}
[data-theme="dark"] .filter-select-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11,116,209,.18);
    color: var(--text);
}
[data-theme="dark"] .filter-select {
    color: var(--text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3bf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme="dark"] .filter-select option {
    background: var(--surface);
    color: var(--text);
}
