/* ─────────────────────────────────────────────
   AutoDrive — Design System CSS
   Shared across landing page, web app, and admin.
   ───────────────────────────────────────────── */

/* ── Design Tokens ───────────────────────────── */

:root {
    /* Core palette */
    --ad-header-dark: #535c69;
    --ad-header-mid: #636c79;
    --ad-cream: #F5F0E6;
    --ad-cream-dark: #EBE3D7;
    --ad-orange: #F2A333;
    --ad-orange-dark: #D9851A;
    --ad-orange-light: rgba(242, 163, 51, 0.08);
    --ad-green: #4DC066;
    --ad-green-light: rgba(77, 192, 102, 0.08);
    --ad-red: #E6473D;
    --ad-red-light: rgba(230, 71, 61, 0.08);
    --ad-blue: #3385E0;
    --ad-blue-light: rgba(51, 133, 224, 0.08);
    --ad-purple: #8F59C7;

    /* Surfaces */
    --ad-surface: #FFFFFF;
    --ad-surface-solid: #FFFFFF;
    --ad-surface-hover: #FAFAF8;
    --ad-surface-raised: #FEFEFE;
    --ad-card-bg: #FFFFFF;

    /* Text */
    --ad-text-dark: #2D2D32;
    --ad-text-primary: #38383D;
    --ad-text-secondary: #6E6E78;
    --ad-text-tertiary: #9E9EA8;
    --ad-text-light: #FFFFFF;

    /* Borders & Dividers */
    --ad-border: rgba(0, 0, 0, 0.08);
    --ad-border-strong: rgba(0, 0, 0, 0.12);
    --ad-divider: #E5DED4;

    /* Shadows */
    --ad-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --ad-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ad-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --ad-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --ad-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

    /* Radius */
    --ad-radius-sm: 8px;
    --ad-radius: 12px;
    --ad-radius-lg: 16px;
    --ad-radius-xl: 20px;
    --ad-radius-full: 50px;

    /* Transitions */
    --ad-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ad-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --ad-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing scale */
    --ad-space-xs: 4px;
    --ad-space-sm: 8px;
    --ad-space-md: 16px;
    --ad-space-lg: 24px;
    --ad-space-xl: 32px;
    --ad-space-2xl: 48px;
    --ad-space-3xl: 64px;
}

/* ── Reset & Base ────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--ad-cream);
    color: var(--ad-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

/* ── Typography ──────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--ad-text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

.ad-text-xs { font-size: 0.6875rem; } /* 11px */
.ad-text-sm { font-size: 0.8125rem; } /* 13px */
.ad-text-base { font-size: 0.9375rem; } /* 15px */
.ad-text-lg { font-size: 1.125rem; } /* 18px */
.ad-text-xl { font-size: 1.5rem; } /* 24px */

.ad-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ad-text-secondary);
}

/* ── Navigation ──────────────────────────────── */

.ad-nav {
    background: var(--ad-header-dark);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ad-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ad-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.ad-logo img { height: 30px; }

.ad-nav-links { display: flex; gap: 8px; }

.ad-nav-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--ad-transition);
    padding: 6px 14px;
    border-radius: var(--ad-radius-full);
}

.ad-nav-links a:hover {
    color: var(--ad-text-light);
    background: rgba(255, 255, 255, 0.08);
}

.ad-nav-links a.active {
    color: var(--ad-text-light);
    background: rgba(255, 255, 255, 0.12);
}

.ad-nav-links a.ad-nav-cta {
    background: var(--ad-orange);
    color: #fff;
    font-weight: 600;
}

.ad-nav-links a.ad-nav-cta:hover {
    background: var(--ad-orange-dark);
    color: #fff;
}

/* Mobile hamburger */
.ad-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ad-text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--ad-radius-sm);
}

.ad-nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }

.ad-nav-toggle i { width: 20px; height: 20px; }

/* ── Hero ─────────────────────────────────────── */

.ad-hero {
    text-align: center;
    padding: 100px 24px 80px;
    background: linear-gradient(180deg, var(--ad-header-dark) 0%, var(--ad-header-mid) 20%, #7a7d82 45%, #b8b2a6 70%, var(--ad-cream) 100%);
    position: relative;
    overflow: hidden;
}

.ad-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(242, 163, 51, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ad-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ad-hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
    color: var(--ad-text-light);
}

.ad-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.ad-hero-actions { display: flex; gap: 12px; justify-content: center; }

.ad-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ad-radius-full);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.ad-hero-badge i { width: 14px; height: 14px; }

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 56px;
}

.hero-stat { text-align: center; }

.hero-stat .num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ad-orange);
    letter-spacing: -0.02em;
}

.hero-stat .lbl {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Buttons ──────────────────────────────────── */

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ad-radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ad-transition);
    cursor: pointer;
    border: none;
    line-height: 1.4;
    white-space: nowrap;
}

.ad-btn i { width: 16px; height: 16px; flex-shrink: 0; }

.ad-btn-primary {
    background: var(--ad-orange);
    color: var(--ad-text-light);
    box-shadow: 0 1px 3px rgba(242, 163, 51, 0.3);
}

.ad-btn-primary:hover {
    background: var(--ad-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(242, 163, 51, 0.35);
}

.ad-btn-primary:active { transform: translateY(0); }

.ad-btn-secondary {
    background: var(--ad-header-mid);
    color: var(--ad-text-light);
    border: 1px solid var(--ad-header-mid);
}

.ad-btn-secondary:hover {
    background: var(--ad-header-dark);
    border-color: var(--ad-header-dark);
}

/* Transparent variant for use on dark backgrounds (hero, CTA) */
.ad-btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ad-text-light);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ad-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

.ad-btn-ghost {
    background: transparent;
    color: var(--ad-text-primary);
    border: 1px solid var(--ad-border-strong);
}

.ad-btn-ghost:hover {
    background: var(--ad-surface);
    border-color: var(--ad-border-strong);
}

.ad-btn-danger {
    background: var(--ad-red);
    color: var(--ad-text-light);
}

.ad-btn-danger:hover {
    background: #d43b32;
    transform: translateY(-1px);
}

.ad-btn:disabled, .ad-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.ad-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--ad-radius-sm);
    border: 1px solid var(--ad-border-strong);
    background: var(--ad-surface);
    color: var(--ad-text-primary);
    cursor: pointer;
    transition: all var(--ad-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ad-btn-sm i { width: 14px; height: 14px; }

.ad-btn-sm:hover { background: var(--ad-surface-hover); box-shadow: var(--ad-shadow-xs); }
.ad-btn-sm:disabled { opacity: 0.4; cursor: default; }

/* Small-size color variants. Without these the `.ad-btn-sm` block
 * above (equal specificity, later in source) overrides
 * `.ad-btn-primary` / `.ad-btn-danger` and every small colored
 * button renders as the neutral surface style. Compound selectors
 * bump specificity so the color + small-size combo works as
 * expected — e.g. `class="ad-btn ad-btn-danger ad-btn-sm"`. */
.ad-btn-sm.ad-btn-primary       { background: var(--ad-orange); color: var(--ad-text-light); border-color: transparent; }
.ad-btn-sm.ad-btn-primary:hover { background: var(--ad-orange-dark); border-color: transparent; }
.ad-btn-sm.ad-btn-danger        { background: var(--ad-red); color: var(--ad-text-light); border-color: transparent; }
.ad-btn-sm.ad-btn-danger:hover  { background: #d43b32; border-color: transparent; }
.ad-btn-sm.ad-btn-ghost         { background: transparent; color: var(--ad-text-primary); border-color: var(--ad-border-strong); }
.ad-btn-sm.ad-btn-ghost:hover   { background: var(--ad-surface); }

/* Button loading spinner */
.ad-btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.ad-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ad-spin 0.6s linear infinite;
}

@keyframes ad-spin { to { transform: rotate(360deg); } }

/* ── Cards ────────────────────────────────────── */

.ad-card {
    background: var(--ad-surface);
    padding: var(--ad-space-lg);
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-sm);
    border: 1px solid var(--ad-border);
    transition: all var(--ad-transition);
}

.ad-card:hover {
    box-shadow: var(--ad-shadow);
}

.ad-card-interactive {
    cursor: pointer;
}

.ad-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--ad-shadow-md);
}

/* ── Section Styles ──────────────────────────── */

.ad-section {
    padding: 80px 24px;
}

.ad-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ad-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.ad-section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ad-section-header p {
    color: var(--ad-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.ad-section-dark {
    background: var(--ad-header-dark);
    color: var(--ad-text-light);
}

.ad-section-dark h2, .ad-section-dark h3 { color: var(--ad-text-light); }
.ad-section-dark p { color: rgba(255, 255, 255, 0.65); }

.ad-section-alt { background: var(--ad-cream-dark); }

/* ── Features Grid ────────────────────────────── */

.ad-features { padding: 80px 24px; }

.ad-features-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.ad-feature {
    background: var(--ad-surface);
    padding: 28px;
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-sm);
    border: 1px solid var(--ad-border);
    transition: all var(--ad-transition);
    display: flex;
    gap: 16px;
}

.ad-feature:hover {
    box-shadow: var(--ad-shadow);
    transform: translateY(-2px);
}

.ad-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ad-radius-sm);
    background: var(--ad-orange-light);
    color: var(--ad-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-feature-icon i { width: 20px; height: 20px; }

.ad-feature-content { flex: 1; min-width: 0; }

.ad-feature h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 6px;
    color: var(--ad-text-dark);
}

.ad-feature p {
    color: var(--ad-text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ── How It Works ────────────────────────────── */

.ad-how-it-works { padding: 80px 24px; }

.ad-how-it-works-inner { max-width: 900px; margin: 0 auto; }

.ad-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

/* Connecting line */
.ad-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: var(--ad-divider);
}

.ad-step {
    text-align: center;
    position: relative;
}

.ad-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ad-orange);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(242, 163, 51, 0.3);
}

.ad-step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ad-step p {
    color: var(--ad-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ── Platforms Section ───────────────────────── */

.ad-platforms {
    padding: 64px 24px;
    text-align: center;
    background: var(--ad-cream-dark);
}

.ad-platforms h2 { font-size: 1.75rem; margin-bottom: 8px; }
.ad-platforms > p { color: var(--ad-text-secondary); margin-bottom: 32px; font-size: 1rem; }

.ad-platform-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.ad-platform-card {
    background: var(--ad-surface);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 24px 32px;
    text-align: center;
    transition: all var(--ad-transition);
    min-width: 140px;
}

.ad-platform-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ad-shadow);
}

.ad-platform-card i { width: 32px; height: 32px; color: var(--ad-text-secondary); margin-bottom: 8px; }

.ad-platform-card .name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ad-text-dark);
}

.ad-platform-card .coming-soon {
    font-size: 0.6875rem;
    color: var(--ad-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ── Testimonials ────────────────────────────── */

.ad-testimonials {
    padding: 80px 24px;
}

.ad-testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ad-testimonial {
    background: var(--ad-surface);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.ad-testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ad-text-primary);
    flex: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.ad-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--ad-border);
}

.ad-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ad-header-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.ad-testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ad-text-dark);
}

.ad-testimonial-role {
    font-size: 0.8125rem;
    color: var(--ad-text-secondary);
}

.ad-testimonial-stars {
    color: var(--ad-orange);
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* ── CTA Section ─────────────────────────────── */

.ad-cta {
    padding: 80px 24px;
    text-align: center;
    background: var(--ad-header-dark);
    position: relative;
    overflow: hidden;
}

.ad-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(242, 163, 51, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ad-cta-inner {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ad-cta h2 {
    color: var(--ad-text-light);
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ad-cta p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── Stat Cards ───────────────────────────────── */

.ad-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.ad-stat {
    background: var(--ad-surface);
    padding: 20px;
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-xs);
    border: 1px solid var(--ad-border);
    transition: all var(--ad-transition-fast);
}

.ad-stat:hover { box-shadow: var(--ad-shadow-sm); }

.ad-stat h3 {
    margin: 0 0 8px;
    color: var(--ad-text-secondary);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.ad-stat .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ad-text-dark);
    letter-spacing: -0.02em;
}

.ad-stat .trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ad-stat .trend i { width: 12px; height: 12px; }

.ad-stat .trend-up { color: var(--ad-green); }
.ad-stat .trend-down { color: var(--ad-red); }

/* ── Dark Header Stat Bar ─────────────────────── */
/* Three side-by-side rounded dark-gradient cards (Dashboard, Fuel
 * Manager, Charging Manager, Support). Previously one wide bar
 * with three stats crammed inside; the split-card version reads
 * cleaner and matches the mobile treatment. */

.ad-header-stats {
    display: flex;
    gap: 12px;
    justify-content: stretch;
    background: none;
    padding: 0;
}

.ad-header-stat {
    flex: 1;
    text-align: center;
    border-radius: 12px;
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
    /* Stack multiple decorative layers. Last in the list paints
     * behind, first in the list paints on top. */
    background-image:
        /* Orange dot grid at 14px lattice */
        radial-gradient(circle at 1px 1px, rgba(242, 163, 51, 0.18) 1.25px, transparent 1.75px),
        /* Warm orange glow anchored to the bottom-right */
        radial-gradient(ellipse 80% 80% at 110% 120%, rgba(242, 163, 51, 0.35) 0%, transparent 60%),
        /* Cool highlight from the top-left */
        radial-gradient(ellipse 80% 80% at -10% -20%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        /* Base dark gradient */
        linear-gradient(180deg, var(--ad-header-dark), var(--ad-header-mid));
    background-size: 14px 14px, auto, auto, auto;
    background-position: 0 0, 0 0, 0 0, 0 0;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

/* A second decorative accent — a large faint AutoDrive-orange
 * diagonal stripe — drawn with a pseudo-element so the content
 * (numbers, label) doesn't have to share the background stack. */
.ad-header-stat::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 70%;
    height: 160%;
    background: linear-gradient(135deg, transparent 35%, rgba(242, 163, 51, 0.12) 50%, transparent 65%);
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
}

.ad-header-stat > * { position: relative; z-index: 1; }

.ad-header-stat .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ad-text-light);
}

.ad-header-stat .label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Chevron Divider ──────────────────────────── */

.ad-chevron {
    position: relative;
    height: 20px;
    background: var(--ad-cream-dark);
    overflow: visible;
}

.ad-chevron::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 16px solid var(--ad-header-mid);
}

/* ── Tables ───────────────────────────────────── */

.ad-table {
    background: var(--ad-surface);
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-sm);
    border: 1px solid var(--ad-border);
    overflow: hidden;
}

.ad-table h2,
.ad-table h3 {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ad-border);
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--ad-text-dark);
}

.ad-table table {
    width: 100%;
    border-collapse: collapse;
}

.ad-table th,
.ad-table td {
    padding: 10px 20px;
    text-align: left;
    border-bottom: 1px solid var(--ad-border);
    font-size: 0.8125rem;
}

.ad-table th {
    color: var(--ad-text-secondary);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.015);
    position: sticky;
    top: 0;
    z-index: 1;
}

.ad-table tr:last-child td { border-bottom: none; }

.ad-table tbody tr {
    transition: background var(--ad-transition-fast);
}

.ad-table tbody tr:hover { background: rgba(0, 0, 0, 0.015); }

/* ── Footer ───────────────────────────────────── */

.ad-footer {
    border-top: 1px solid var(--ad-divider);
    padding: 48px 24px 32px;
    background: var(--ad-cream-dark);
}

.ad-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.ad-footer-brand p {
    color: var(--ad-text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.ad-footer-brand img { height: 28px; }

.ad-footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ad-text-dark);
    margin-bottom: 16px;
}

.ad-footer-col a {
    display: block;
    color: var(--ad-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 4px 0;
    transition: color var(--ad-transition-fast);
}

.ad-footer-col a:hover { color: var(--ad-orange); }

.ad-footer-col a.ad-footer-link-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ad-footer-link-with-icon > i,
.ad-footer-link-with-icon .ad-footer-icon-stack i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--ad-orange);
}
/* Two front-facing cars stacked like the Font Awesome `cars` duotone —
   smaller, lighter car peeking out top-left; larger, darker car in front
   bottom-right. Reserve the same width as a single icon row so the link
   stays vertically aligned with siblings. */
.ad-footer-icon-stack {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.ad-footer-icon-stack i {
    position: absolute;
    width: 14px;
    height: 14px;
}
.ad-footer-car-back {
    top: 0;
    left: 0;
    width: 14px !important;
    height: 14px !important;
    color: var(--ad-text-tertiary, #b0b0b0);
    opacity: 0.75;
}
.ad-footer-car-front {
    bottom: 0;
    right: 0;
    width: 16px !important;
    height: 16px !important;
    color: var(--ad-orange);
}

.ad-footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--ad-divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-footer-bottom p {
    color: var(--ad-text-tertiary);
    font-size: 0.8125rem;
}

.ad-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.ad-footer-bottom-links a {
    color: var(--ad-text-tertiary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color var(--ad-transition-fast);
}

.ad-footer-bottom-links a:hover { color: var(--ad-orange); }

.ad-footer-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ad-text-tertiary);
    font-size: 0.8125rem;
    font-style: italic;
    max-width: 460px;
    text-align: right;
}
.ad-footer-quote i { width: 14px; height: 14px; color: var(--ad-orange); flex-shrink: 0; }

/* ── Forms ────────────────────────────────────── */

.ad-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ad-border-strong);
    border-radius: var(--ad-radius-sm);
    font-size: 0.9375rem;
    background: var(--ad-surface-solid);
    color: var(--ad-text-primary);
    transition: all var(--ad-transition-fast);
    line-height: 1.5;
}

.ad-input:disabled,
.ad-input[disabled],
.ad-input[aria-disabled="true"] {
    background: var(--ad-cream, #f3ece0);
    color: var(--ad-text-tertiary, #a2a5a6);
    border-color: var(--ad-divider, #ece4d2);
    cursor: not-allowed;
    -webkit-text-fill-color: var(--ad-text-tertiary, #a2a5a6);  /* Safari override for disabled inputs */
    opacity: 0.85;
}

.ad-input:focus {
    outline: none;
    border-color: var(--ad-orange);
    box-shadow: 0 0 0 3px rgba(242, 163, 51, 0.12);
}

.ad-input::placeholder { color: var(--ad-text-tertiary); }

.ad-input-sm {
    padding: 7px 12px;
    font-size: 0.8125rem;
    max-width: 220px;
}

/* ── Toast Notifications ─────────────────────── */

.ad-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.ad-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--ad-surface-solid);
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-lg);
    border: 1px solid var(--ad-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ad-text-primary);
    pointer-events: auto;
    animation: ad-toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 380px;
}

.ad-toast i { width: 18px; height: 18px; flex-shrink: 0; }

.ad-toast-success i { color: var(--ad-green); }
.ad-toast-error i { color: var(--ad-red); }
.ad-toast-warning i { color: var(--ad-orange); }
.ad-toast-info i { color: var(--ad-blue); }

.ad-toast-out {
    animation: ad-toast-out 0.2s ease-in forwards;
}

@keyframes ad-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ad-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* ── Skeleton Loading ────────────────────────── */

.ad-skeleton {
    background: linear-gradient(90deg, var(--ad-cream-dark) 25%, var(--ad-cream) 50%, var(--ad-cream-dark) 75%);
    background-size: 200% 100%;
    animation: ad-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--ad-radius-sm);
}

.ad-skeleton-text { height: 14px; margin-bottom: 8px; }
.ad-skeleton-text:last-child { width: 60%; }
.ad-skeleton-heading { height: 24px; width: 50%; margin-bottom: 16px; }
.ad-skeleton-card { height: 120px; border-radius: var(--ad-radius); }

@keyframes ad-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Badges ──────────────────────────────────── */

.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--ad-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ad-badge-success { background: var(--ad-green-light); color: var(--ad-green); }
.ad-badge-warning { background: var(--ad-orange-light); color: var(--ad-orange-dark); }
.ad-badge-danger { background: var(--ad-red-light); color: var(--ad-red); }
.ad-badge-info { background: var(--ad-blue-light); color: var(--ad-blue); }
.ad-badge-neutral { background: rgba(0,0,0,0.05); color: var(--ad-text-secondary); }

/* ── Empty States ────────────────────────────── */

.ad-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--ad-surface);
    border-radius: var(--ad-radius);
    border: 1px solid var(--ad-border);
    grid-column: 1 / -1;
}

.ad-empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ad-cream-dark);
    color: var(--ad-text-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ad-empty-state-icon i { width: 24px; height: 24px; }

.ad-empty-state h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--ad-text-dark);
}

.ad-empty-state p {
    color: var(--ad-text-secondary);
    margin-bottom: 20px;
    font-size: 0.875rem;
}

/* ── Breadcrumbs ─────────────────────────────── */

.ad-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--ad-text-tertiary);
    margin-bottom: 16px;
}

.ad-breadcrumb a {
    color: var(--ad-text-secondary);
    text-decoration: none;
    transition: color var(--ad-transition-fast);
}

.ad-breadcrumb a:hover { color: var(--ad-orange); }

.ad-breadcrumb-sep { font-size: 0.625rem; }

.ad-breadcrumb-current { color: var(--ad-text-primary); font-weight: 500; }

/* ── Divider ─────────────────────────────────── */

.ad-divider-line {
    height: 1px;
    background: var(--ad-border);
    margin: var(--ad-space-lg) 0;
}

/* ── Avatar ──────────────────────────────────── */

.ad-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ad-header-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.ad-avatar-sm { width: 28px; height: 28px; font-size: 0.6875rem; }
.ad-avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

/* ── Focus States ────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--ad-orange);
    outline-offset: 2px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--ad-orange);
    outline-offset: 2px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
    border-color: var(--ad-orange);
    box-shadow: 0 0 0 3px rgba(242, 163, 51, 0.12);
}

/* ── Lucide Icon Styling ─────────────────────── */

i[data-lucide] {
    display: inline-flex;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* ── FAQ Section ─────────────────────────────── */

.ad-faq { padding: 80px 24px; }

.ad-faq-inner { max-width: 700px; margin: 0 auto; }

.ad-faq-item {
    border-bottom: 1px solid var(--ad-border);
}

.ad-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ad-text-dark);
    text-align: left;
    line-height: 1.4;
}

.ad-faq-question i {
    width: 18px;
    height: 18px;
    color: var(--ad-text-tertiary);
    transition: transform var(--ad-transition);
    flex-shrink: 0;
}

.ad-faq-item.open .ad-faq-question i { transform: rotate(180deg); }

.ad-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ad-transition-slow);
}

.ad-faq-item.open .ad-faq-answer { max-height: 300px; }

.ad-faq-answer p {
    padding-bottom: 20px;
    color: var(--ad-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 768px) {
    .ad-hero h1 { font-size: 2.25rem; }
    .ad-hero-subtitle { font-size: 1.0625rem; }
    .ad-hero-actions { flex-direction: column; align-items: center; }
    .ad-features-inner { grid-template-columns: 1fr; }
    .ad-steps { grid-template-columns: 1fr; gap: 24px; }
    .ad-steps::before { display: none; }
    .ad-nav-links { display: none; }
    .ad-nav-links.open {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--ad-header-dark);
        padding: 16px 20px;
        gap: 8px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .ad-nav-links.open a {
        padding: 8px 18px;
        border-radius: var(--ad-radius-full);
        border: 1px solid rgba(255,255,255,0.15);
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
    }
    .ad-nav-links.open a.ad-nav-cta {
        border-color: var(--ad-orange);
    }
    .ad-nav-toggle { display: flex; }
    .ad-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; }
    .ad-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .ad-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .ad-testimonials-grid { grid-template-columns: 1fr; }
    .ad-platform-grid { gap: 12px; }
}

@media (max-width: 720px) {
    /* The 3-card split is now the base treatment (see .ad-header-stats
     * above); on mobile we just tighten the gap and padding, and
     * shrink the value size so long strings like "114.73 mi" fit. */
    .ad-header-stats { gap: 10px; }
    .ad-header-stat { padding: 16px 10px; min-width: 0; }
    .ad-header-stat .value { font-size: 1.75rem; }

    /* Table rows (Drives, Fuel, Charging, Support) collapse into
     * unreadable stacks when crushed into narrow viewports. Let the
     * table itself keep its designed layout and scroll horizontally
     * inside the card — users swipe to see the rest of the columns.
     * The card heading and controls still sit full-width above the
     * scroll region because they live outside the <table>. */
    .ad-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ad-table table { min-width: 640px; }
    .ad-table th,
    .ad-table td { padding: 10px 12px; white-space: nowrap; }
    /* Address/route cells in the drives list carry long strings —
     * let those specific cells wrap so the row doesn't get absurdly
     * wide, while everything else stays on one line. */
    .ad-table td.ad-table-wrap,
    .ad-table .ad-table-wrap { white-space: normal; min-width: 160px; }
}

@media (max-width: 480px) {
    .ad-stats { grid-template-columns: 1fr; }
    /* Keep the three-card row layout from the 720px rule; just
     * tighten the per-card sizing so they don't crowd on phone
     * widths. Background, padding, and rounded corners come from
     * the 720px rule above. */
    .ad-header-stats {
        flex-direction: row;
        justify-content: stretch;
        gap: 8px;
    }
    .ad-header-stat { padding: 14px 6px; }
    .ad-header-stat .value { font-size: 1.375rem; }
    .ad-header-stat .label { font-size: 0.625rem; }
    .ad-footer-inner { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}

/* App store banner (Android + iOS Chrome; iOS Safari uses Apple smart banner) */
.ad-app-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}
.ad-app-banner[hidden] { display: none; }
.ad-app-banner-close {
    background: transparent;
    border: 0;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}
.ad-app-banner-close:hover { color: #fff; }
.ad-app-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}
.ad-app-banner-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.ad-app-banner-meta strong { font-weight: 600; }
.ad-app-banner-meta span {
    color: #9ca3af;
    font-size: 12px;
}
.ad-app-banner-cta {
    background: var(--ad-orange);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
}
.ad-app-banner-cta:hover { background: var(--ad-orange-dark); }

/* ────────────────────────────────────────────── */
/*  Pricing section (autodrive-content/pricing.php) */
/* ────────────────────────────────────────────── */

.ad-pricing {
    padding: 80px 20px;
    background: #fdf8f0;
}
.ad-pricing .ad-section-header { margin-bottom: 40px; }

.ad-pricing-banner {
    max-width: 880px;
    margin: 0 auto 32px;
    padding: 12px 18px;
    background: #fdecea;
    border: 1px solid #f5c6c6;
    color: #8a2424;
    border-radius: 10px;
    font-size: 14px;
    display: flex; align-items: center; gap: 10px;
}
.ad-pricing-banner a { color: #8a2424; text-decoration: underline; font-weight: 600; }

.ad-pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .ad-pricing-grid { grid-template-columns: 1fr; }
}

.ad-pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid #ece4d2;
    border-radius: 16px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.ad-pricing-card--popular {
    border-color: var(--ad-orange, #f2a333);
    box-shadow: 0 10px 32px rgba(242,163,51,.18);
    transform: translateY(-6px);
}
@media (max-width: 900px) {
    .ad-pricing-card--popular { transform: none; }
}

.ad-pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--ad-orange, #f2a333);
    color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .3px;
    padding: 6px 14px; border-radius: 999px;
    text-transform: uppercase;
}

.ad-pricing-card-header { text-align: center; margin-bottom: 24px; }
.ad-pricing-card-header h3 {
    margin: 0 0 12px;
    font-size: 20px; font-weight: 700; color: #434850;
    letter-spacing: -.2px;
}
.ad-pricing-price {
    display: inline-flex; align-items: baseline; gap: 4px; margin-bottom: 10px;
}
.ad-pricing-amount {
    font-size: 44px; font-weight: 800; color: #434850; letter-spacing: -1px;
}
.ad-pricing-period {
    font-size: 14px; color: #8a8e97;
}
.ad-pricing-tagline {
    margin: 0; font-size: 13px; color: #8a8e97;
}

.ad-pricing-features {
    list-style: none; padding: 0; margin: 0 0 28px;
    flex: 1;
}
.ad-pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    font-size: 14px; color: #434850;
    line-height: 1.5;
    border-bottom: 1px solid #f5ead8;
}
.ad-pricing-features li:last-child { border-bottom: 0; }
.ad-pricing-features li i {
    width: 16px; height: 16px; flex-shrink: 0;
    color: var(--ad-orange, #f2a333); margin-top: 2px;
}
.ad-pricing-features li.muted { color: #b3b6bb; }
.ad-pricing-features li.muted i { color: #d3d6db; }

.ad-pricing-card-footer { text-align: center; }
.ad-pricing-card-footer form { margin: 0; }
.ad-pricing-footnote {
    display: block; margin-top: 10px; font-size: 12px; color: #a2a5a6;
}

.ad-btn-wide { width: 100%; justify-content: center; }

/* Comparison table */
.ad-pricing-compare {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 32px 28px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ece4d2;
}
.ad-pricing-compare h3 {
    margin: 0 0 20px; font-size: 18px; font-weight: 700; color: #434850;
    text-align: center;
}
.ad-pricing-compare-scroll { overflow-x: auto; }
.ad-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ad-pricing-table th, .ad-pricing-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #f5ead8;
    color: #434850;
}
.ad-pricing-table th {
    font-weight: 700; background: #fdf8f0;
}
.ad-pricing-table td:first-child, .ad-pricing-table th:first-child {
    text-align: left; font-weight: 600;
}
.ad-pricing-fineprint {
    margin: 20px 0 0; font-size: 12px; color: #a2a5a6; line-height: 1.6;
    text-align: center;
}

/* ────────────────────────────────────────────── */
/*  Thankyou / signup wizard (/thankyou/*.php)    */
/* ────────────────────────────────────────────── */

.ad-wizard-page {
    background: #fdf8f0;
    min-height: 100vh;
    padding: 48px 20px 80px;
}
.ad-wizard-shell { max-width: 620px; margin: 0 auto; }

.ad-wizard-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

.ad-wizard-hero {
    background: linear-gradient(135deg, #434850 0%, #555960 100%);
    color: #fff;
    padding: 40px 32px 32px;
    text-align: center;
}
.ad-wizard-hero--muted {
    background: linear-gradient(135deg, #8a8e97 0%, #a2a5a6 100%);
}
.ad-wizard-hero-emoji { font-size: 48px; line-height: 1; margin-bottom: 14px; }
.ad-wizard-hero h1 {
    margin: 0 0 10px; font-size: 26px; font-weight: 800;
    letter-spacing: -.3px;
}
.ad-wizard-hero p {
    margin: 0; font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.5;
}

.ad-wizard-body { padding: 28px 32px 32px; color: #434850; }
.ad-wizard-body--narrow {
    display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}

.ad-wizard-summary {
    background: #fdf8f0;
    border: 1px solid #f5ead8;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.ad-wizard-summary h2 {
    margin: 0 0 10px; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px; color: #8a8e97;
}
.ad-wizard-features {
    list-style: none; padding: 0; margin: 0;
}
.ad-wizard-features li {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 4px 0;
    font-size: 14px; line-height: 1.5;
}
.ad-wizard-features li i {
    width: 14px; height: 14px; color: var(--ad-orange, #f2a333);
    margin-top: 4px; flex-shrink: 0;
}

/* Stepper */
.ad-wizard-stepper {
    display: flex; gap: 8px; margin: 0 0 22px;
    counter-reset: step;
}
.ad-wizard-step {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 6px;
    border-radius: 8px;
    background: #fdf8f0;
    border: 1px solid transparent;
    color: #8a8e97;
    font-size: 12px; font-weight: 600;
    text-align: center;
}
.ad-wizard-step.is-active {
    background: #fff;
    border-color: var(--ad-orange, #f2a333);
    color: #434850;
}
.ad-wizard-step.is-done {
    background: #fff5e6;
    color: var(--ad-orange, #f2a333);
}
.ad-wizard-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #ece4d2; color: #434850;
    font-size: 12px; font-weight: 700;
}
.ad-wizard-step.is-active .ad-wizard-step-num {
    background: var(--ad-orange, #f2a333); color: #fff;
}
.ad-wizard-step.is-done .ad-wizard-step-num {
    background: var(--ad-orange, #f2a333); color: #fff;
}

/* Panels */
.ad-wizard-panel { display: none; }
.ad-wizard-panel.is-active { display: block; }
.ad-wizard-panel h3 {
    margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #434850;
}
.ad-wizard-help {
    margin: 0 0 18px; font-size: 13px; color: #8a8e97; line-height: 1.55;
}

.ad-wizard-field {
    display: block; margin-bottom: 14px;
}
.ad-wizard-field > span {
    display: block; margin-bottom: 6px;
    font-size: 13px; font-weight: 600; color: #434850;
}
.ad-wizard-field input[type="text"],
.ad-wizard-field input[type="email"],
.ad-wizard-field input[type="password"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ece4d2;
    border-radius: 8px;
    background: #fff;
    font-size: 15px; color: #434850;
    font-family: inherit;
    box-sizing: border-box;
}
.ad-wizard-field input:focus {
    outline: none;
    border-color: var(--ad-orange, #f2a333);
    box-shadow: 0 0 0 3px rgba(242,163,51,.15);
}
.ad-wizard-field small {
    display: block; margin-top: 6px; font-size: 12px; color: #a2a5a6;
}

.ad-wizard-plan-summary {
    margin: 18px 0 6px;
    padding: 12px 14px;
    background: #fdf8f0;
    border: 1px solid #f5ead8;
    border-radius: 8px;
    font-size: 13px; color: #434850; line-height: 1.5;
}
.ad-wizard-plan-summary strong { color: var(--ad-orange, #f2a333); }

.ad-wizard-actions {
    display: flex; gap: 10px; justify-content: space-between;
    margin-top: 24px;
}
.ad-wizard-actions .ad-btn { flex: 1; justify-content: center; }

.ad-wizard-error {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fdecea; border: 1px solid #f5c6c6; color: #8a2424;
    border-radius: 8px;
    font-size: 13px;
}

/* Driver rows */
.ad-driver-row {
    display: grid;
    grid-template-columns: 1fr 1fr 32px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.ad-driver-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ece4d2;
    border-radius: 8px;
    background: #fff;
    font-size: 14px; color: #434850;
    font-family: inherit;
    box-sizing: border-box;
}
.ad-driver-row input:focus {
    outline: none;
    border-color: var(--ad-orange, #f2a333);
    box-shadow: 0 0 0 3px rgba(242,163,51,.15);
}
.ad-driver-remove {
    width: 32px; height: 32px;
    background: #fdf8f0;
    border: 1px solid #ece4d2;
    border-radius: 8px;
    color: #8a8e97;
    font-size: 18px; line-height: 1;
    cursor: pointer;
}
.ad-driver-remove:hover { background: #fdecea; color: #8a2424; border-color: #f5c6c6; }

.ad-btn-text {
    background: none; border: 0; padding: 8px 0;
    color: var(--ad-orange, #f2a333); font-weight: 600; font-size: 13px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit;
}
.ad-btn-text i { width: 14px; height: 14px; }

/* Complete screen */
.ad-wizard-next {
    padding: 22px 0;
    border-bottom: 1px solid #f5ead8;
}
.ad-wizard-next:last-of-type { border-bottom: 0; }
.ad-wizard-next h2 {
    margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #434850;
}

.ad-wizard-store-buttons {
    display: flex; gap: 12px; margin-top: 10px;
}
@media (max-width: 560px) {
    .ad-wizard-store-buttons { flex-direction: column; }
}
.ad-store-btn {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    background: #434850;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}
.ad-store-btn:hover { background: #2e3237; }
.ad-store-btn i { width: 24px; height: 24px; }
.ad-store-btn small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; opacity: .75; }
.ad-store-btn strong { display: block; font-size: 15px; font-weight: 700; }

.ad-wizard-footnote {
    margin-top: 18px; padding: 12px 14px;
    background: #fdf8f0; border: 1px solid #f5ead8; border-radius: 8px;
}
.ad-wizard-footnote p {
    margin: 0; display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #8a8e97; line-height: 1.5;
}
.ad-wizard-footnote i { width: 16px; height: 16px; }

/* ────────────────────────────────────────────── */
/*  Pricing modal + extras                         */
/* ────────────────────────────────────────────── */

.ad-pricing-amount--pending {
    font-size: 22px;
    color: #8a8e97;
    font-weight: 700;
    letter-spacing: -.2px;
}

.ad-pricing-banner--info {
    background: #fff8e6;
    border-color: #f5ead8;
    color: #6a4a12;
}

.ad-pricing-compare-link {
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: center;
}
.ad-btn-text--lg {
    font-size: 15px;
    gap: 8px;
    padding: 12px 8px;
}
.ad-btn-text--lg i { width: 16px; height: 16px; }

.ad-pricing-compare-link .ad-pricing-fineprint {
    margin-top: 14px;
}

/* Marketing-site pricing-compare modal.
 * Namespaced under .ad-promo-modal so it doesn't collide with the
 * online app's .ad-modal / .ad-modal-close system. Load order
 * (online.css → autodrive.css) would otherwise let these rules
 * override the Account / Edit / Preferences modals inside the app. */
.ad-promo-modal[hidden] { display: none; }
.ad-promo-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.ad-promo-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(48, 51, 56, .65);
    backdrop-filter: blur(3px);
}
.ad-promo-modal-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 760px; width: 100%;
    max-height: 85vh;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.ad-promo-modal-card h3 {
    margin: 0 0 18px; font-size: 20px; font-weight: 700; color: #434850;
    text-align: center;
}
.ad-promo-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px;
    background: transparent; border: 0;
    font-size: 26px; line-height: 1; color: #8a8e97;
    cursor: pointer;
    border-radius: 8px;
}
.ad-promo-modal-close:hover { background: #fdf8f0; color: #434850; }

.ad-promo-modal .ad-pricing-compare-scroll {
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
}

.ad-pricing-table-addon td {
    background: #fdf8f0;
    font-style: italic;
    color: #6a6e77;
}
.ad-pricing-table-addon td:first-child { font-style: normal; }
.ad-pricing-table-addon sup { color: var(--ad-orange, #f2a333); font-style: normal; }
.ad-pricing-fineprint--addon {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fdf8f0;
    border: 1px solid #f5ead8;
    border-radius: 8px;
    text-align: left;
}
.ad-pricing-fineprint--addon sup { color: var(--ad-orange, #f2a333); font-weight: 700; }
