/* ==========================================================================
   JIBLI FOOD — 2026 Design System
   Premium, motion-first, light + dark themes
   ========================================================================== */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
    /* Brand */
    --brand-50:  #FFF3E6;
    --brand-100: #FFE2C2;
    --brand-200: #FFC78A;
    --brand-400: #FF9F40;
    --brand-500: #FF7A00;  /* primary */
    --brand-600: #E85D04;
    --brand-700: #B84500;

    --sky-50:  #E0F2FE;
    --sky-100: #BAE6FD;
    --sky-400: #38BDF8;  /* secondary */
    --sky-600: #0284C7;
    --sky-800: #075985;

    --violet-500: #8B5CF6;
    --pink-500:   #EC4899;

    /* Status */
    --success: #10B981;
    --warning: #F59E0B;
    --danger:  #EF4444;
    --info:    #38BDF8;

    /* Light theme */
    --bg:            #FAFAF7;
    --bg-elev:       #FFFFFF;
    --bg-soft:       #F4F5F7;
    --bg-strong:     #ECEEF2;
    --surface:       #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --border:        rgba(15, 23, 42, 0.07);
    --border-strong: rgba(15, 23, 42, 0.14);

    --text:        #0B0F1A;
    --text-muted:  #565F70;
    --text-soft:   #8A93A6;
    --text-invert: #FFFFFF;

    /* Gradients */
    --grad-primary:  linear-gradient(135deg, #FF7A00 0%, #FF4D6B 100%);
    --grad-warm:     linear-gradient(135deg, #FF9F40 0%, #FF7A00 50%, #E85D04 100%);
    --grad-sky:      linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
    --grad-mesh:     radial-gradient(circle at 0% 0%, rgba(255,122,0,.22) 0%, transparent 45%),
                     radial-gradient(circle at 100% 0%, rgba(56,189,248,.20) 0%, transparent 45%),
                     radial-gradient(circle at 50% 100%, rgba(236,72,153,.16) 0%, transparent 45%);
    --grad-text:     linear-gradient(135deg, #FF7A00 0%, #EC4899 50%, #8B5CF6 100%);
    --grad-hero:     linear-gradient(180deg, #FFF8F0 0%, #FAFAF7 100%);

    /* Effects */
    --r-xs: 6px;
    --r-sm: 10px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 36px;
    --r-full: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, .06);
    --shadow:    0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
    --shadow-xl: 0 28px 70px rgba(15, 23, 42, .18);
    --shadow-glow: 0 10px 30px rgba(255, 122, 0, .35);
    --shadow-glow-strong: 0 16px 42px rgba(255, 122, 0, .55);

    /* Motion */
    --ease:        cubic-bezier(.4, 0, .2, 1);
    --ease-out:    cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-fast:    160ms;
    --dur:         260ms;
    --dur-slow:    420ms;

    --container: 1240px;
    --header-h:  72px;
}

/* Dark theme */
[data-theme="dark"] {
    --bg:            #0B0F1A;
    --bg-elev:       #11162A;
    --bg-soft:       #161B30;
    --bg-strong:     #1F2540;
    --surface:       #141A2E;
    --surface-glass: rgba(20, 26, 46, 0.65);
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text:        #F5F7FB;
    --text-muted:  #A6AEC2;
    --text-soft:   #6E7791;
    --text-invert: #0B0F1A;

    --grad-mesh:     radial-gradient(circle at 0% 0%, rgba(255,122,0,.28) 0%, transparent 45%),
                     radial-gradient(circle at 100% 0%, rgba(56,189,248,.26) 0%, transparent 45%),
                     radial-gradient(circle at 50% 100%, rgba(236,72,153,.18) 0%, transparent 45%);
    --grad-hero:     linear-gradient(180deg, #0F1426 0%, #0B0F1A 100%);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .35);
    --shadow:    0 10px 28px rgba(0, 0, 0, .42);
    --shadow-lg: 0 20px 52px rgba(0, 0, 0, .55);
    --shadow-xl: 0 30px 70px rgba(0, 0, 0, .65);
}

/* ---------- 3. BASE ---------- */
body {
    font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

::selection { background: rgba(255, 122, 0, .28); color: var(--text); }

a { color: var(--brand-500); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand-600); }

/* Typography scale */
.display, h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.08;
}
.display { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p  { color: var(--text-muted); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: .78rem; font-weight: 600; letter-spacing: .02em;
    color: var(--text-muted);
    box-shadow: var(--shadow-xs);
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--brand-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,122,0,.18); animation: pulse 2s var(--ease) infinite; }

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.muted { color: var(--text-muted); }
.soft  { color: var(--text-soft); }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.section { padding: 96px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 128px 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-center  { display: flex; align-items: center; gap: 8px; }
.flex-wrap    { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.center { text-align: center; }

/* ---------- 5. MOTION ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-slow { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes pulse    { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,0,.4); } 50% { box-shadow: 0 0 0 8px rgba(255,122,0,0); } }
@keyframes glow     { 0%, 100% { box-shadow: 0 8px 26px rgba(255,122,0,.35); } 50% { box-shadow: 0 12px 36px rgba(255,122,0,.55); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shimmer  { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="100"] { transition-delay: .1s; }
.reveal[data-delay="200"] { transition-delay: .2s; }
.reveal[data-delay="300"] { transition-delay: .3s; }
.reveal[data-delay="400"] { transition-delay: .4s; }
.reveal[data-delay="500"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 6. BUTTONS ---------- */
.btn {
    --btn-bg: var(--bg-soft);
    --btn-color: var(--text);
    --btn-border: transparent;
    --btn-shadow: var(--shadow-xs);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; font-weight: 600; font-size: .94rem;
    color: var(--btn-color); background: var(--btn-bg);
    border: 1px solid var(--btn-border); border-radius: var(--r);
    box-shadow: var(--btn-shadow);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255,122,0,.28), var(--shadow-sm); }

.btn--primary {
    --btn-bg: var(--grad-warm);
    --btn-color: #fff;
    --btn-shadow: var(--shadow-glow);
    background-size: 200% 200%;
}
.btn--primary:hover { color: #fff; background-position: 100% 0; box-shadow: var(--shadow-glow-strong); }
.btn--glow { animation: glow 3s ease-in-out infinite; }

.btn--secondary { --btn-bg: var(--text); --btn-color: var(--bg); }
.btn--secondary:hover { --btn-bg: var(--brand-500); --btn-color: #fff; }

.btn--ghost { --btn-bg: transparent; --btn-color: var(--text); --btn-border: var(--border-strong); --btn-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--bg-soft); }

.btn--glass {
    --btn-bg: var(--surface-glass);
    --btn-color: var(--text);
    --btn-border: var(--border);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.btn--outline { --btn-bg: transparent; --btn-color: var(--brand-500); --btn-border: var(--brand-500); --btn-shadow: none; }
.btn--outline:hover { --btn-bg: var(--brand-50); }

.btn--danger { --btn-bg: var(--danger); --btn-color: #fff; }
.btn--danger:hover { filter: brightness(.92); color: #fff; }

.btn--sm { padding: 8px 14px; font-size: .85rem; border-radius: var(--r-sm); }
.btn--lg { padding: 16px 26px; font-size: 1rem; border-radius: var(--r-lg); }
.btn--xl { padding: 20px 32px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r); }
.btn--icon.btn--sm { width: 32px; height: 32px; }
.btn--block { width: 100%; }
.btn--disabled, .btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- 7. FORMS ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: .9rem; color: var(--text); }
.input, .select, .textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-soft); }
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(255,122,0,.15);
}
.textarea { resize: vertical; min-height: 110px; }

.input-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    padding: 8px 8px 8px 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.input-search:focus-within { box-shadow: var(--shadow); border-color: var(--brand-200); }
.input-search input { flex: 1; border: 0; padding: 12px 0; background: transparent; outline: none; font: inherit; color: var(--text); }
.input-search input::placeholder { color: var(--text-soft); }
.input-search svg { color: var(--text-soft); flex-shrink: 0; }

.checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand-500); }

/* Segmented control */
.segment {
    display: inline-flex; padding: 4px;
    background: var(--bg-soft); border-radius: var(--r-full);
    border: 1px solid var(--border);
}
.segment label { padding: 8px 14px; border-radius: var(--r-full); cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--text-muted); transition: all var(--dur) var(--ease); }
.segment input { display: none; }
.segment input:checked + label, .segment label.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* ---------- 8. CARDS ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__body { padding: 24px; }

.glass {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ---------- 9. BADGES & CHIPS ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: var(--r-full);
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase;
}
.badge--pending    { background: #FEF3C7; color: #92400E; }
.badge--accepted   { background: #DBEAFE; color: #1E40AF; }
.badge--preparing  { background: #FFEDD5; color: #9A3412; }
.badge--ready      { background: #DCFCE7; color: #166534; }
.badge--pickedup   { background: #EDE9FE; color: #5B21B6; }
.badge--otw        { background: #E0F2FE; color: #075985; }
.badge--delivered  { background: #D1FAE5; color: #065F46; }
.badge--cancelled  { background: #FEE2E2; color: #991B1B; }
[data-theme="dark"] .badge { filter: brightness(1.1); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: .85rem; font-weight: 500; color: var(--text);
    box-shadow: var(--shadow-xs);
    transition: all var(--dur) var(--ease);
}
.chip:hover { color: var(--brand-500); border-color: var(--brand-200); transform: translateY(-1px); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip svg { width: 14px; height: 14px; }

/* ---------- 10. NAVBAR ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand__logo { width: 40px; height: 40px; transition: transform var(--dur-slow) var(--ease-spring); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__logo .steam { transform-origin: center; animation: float 3s ease-in-out infinite; }
.brand__logo .steam-2 { animation-delay: .6s; }
.brand__logo .steam-3 { animation-delay: 1.2s; }

.navlinks { display: flex; align-items: center; gap: 4px; }
.navlink {
    position: relative;
    padding: 10px 14px; border-radius: var(--r-sm);
    color: var(--text-muted); font-weight: 500; font-size: .95rem;
    transition: color var(--dur) var(--ease);
}
.navlink:hover { color: var(--text); }
.navlink.is-active { color: var(--text); }
.navlink.is-active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--grad-primary); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text); font-weight: 600; font-size: .9rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--dur) var(--ease);
}
.cart-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--brand-500); border-color: var(--brand-200); }
.cart-btn svg { width: 16px; height: 16px; }
.cart-btn__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px;
    background: var(--grad-primary); color: #fff;
    padding: 0 7px; border-radius: var(--r-full);
    font-size: .72rem; font-weight: 800;
    box-shadow: 0 4px 10px rgba(255,122,0,.45);
}

.theme-toggle {
    width: 40px; height: 40px;
    display: inline-grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}
.theme-toggle:hover { color: var(--brand-500); border-color: var(--brand-200); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform var(--dur-slow) var(--ease-spring); }
.theme-toggle:hover svg { transform: rotate(20deg) scale(1.1); }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-toggle { display: none; }
.mobile-drawer { display: none; }

@media (max-width: 880px) {
    .navlinks { display: none; }
    .mobile-toggle {
        display: inline-grid; place-items: center;
        width: 40px; height: 40px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
        color: var(--text); box-shadow: var(--shadow-xs);
    }
    .mobile-drawer {
        display: block;
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden;
        transition: max-height var(--dur-slow) var(--ease-out);
        box-shadow: var(--shadow);
    }
    .mobile-drawer.is-open { max-height: 80vh; }
    .mobile-drawer .navlink { display: block; padding: 14px 24px; font-size: 1rem; }
    .mobile-drawer .navlink + .navlink { border-top: 1px solid var(--border); }
}

/* ---------- 11. HERO ---------- */
.hero {
    position: relative;
    padding: 56px 0 96px;
    background: var(--grad-hero);
    overflow: hidden;
    border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-mesh);
    pointer-events: none;
    opacity: .9;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero__copy h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 900; letter-spacing: -.035em; margin-bottom: 20px; }
.hero__copy p { font-size: 1.15rem; max-width: 520px; margin-bottom: 28px; }

.hero__search { display: flex; gap: 8px; max-width: 540px; }
.hero__search .input-search { flex: 1; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; margin-left: auto; }
.hero__visual::after {
    content: ''; position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(255,122,0,.25) 0%, transparent 70%);
    z-index: 0;
}
.hero__photo {
    position: relative; z-index: 1;
    width: 100%; aspect-ratio: 1;
    background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=1200&q=85');
    background-size: cover; background-position: center;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-xl);
    animation: scale-in .9s var(--ease-out) both;
}
.hero__float {
    position: absolute; z-index: 2;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    animation: float-slow 5s ease-in-out infinite;
}
.hero__float--1 { top: 12%; left: -8%; animation-delay: 0s; }
.hero__float--2 { bottom: 14%; right: -6%; animation-delay: 1.4s; }
.hero__float--3 { bottom: 32%; left: -10%; animation-delay: 2.6s; }
.hero__float .num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero__float .lbl { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; color: var(--text-muted); font-size: .88rem; }
.hero__trust .stars { display: inline-flex; gap: 2px; color: var(--brand-500); }
.hero__trust .stars svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 980px) {
    .hero { padding: 32px 0 64px; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { max-width: 400px; margin: 0 auto; }
}

/* ---------- 12. SECTIONS ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head__title { max-width: 640px; }
.section-head__title h2 { margin-bottom: 8px; }
.section-head__title p { font-size: 1.05rem; }

/* ---------- 13. RESTAURANT CARD ---------- */
.rest-card {
    position: relative; display: block; color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.rest-card__img-wrap { position: relative; overflow: hidden; }
.rest-card__img {
    aspect-ratio: 16 / 10; width: 100%; object-fit: cover;
    transition: transform 1.2s var(--ease-out);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
}
.rest-card:hover .rest-card__img { transform: scale(1.08); }
.rest-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11,15,26,.55) 100%);
    pointer-events: none;
}
.rest-card__tag {
    position: absolute; top: 12px; left: 12px;
    padding: 6px 10px;
    background: var(--surface-glass); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-full);
    font-size: .72rem; font-weight: 700;
    color: var(--text);
}
.rest-card__tag--closed { background: rgba(11,15,26,.78); color: #fff; }
.rest-card__like {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--surface-glass); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-full);
    color: var(--text);
    transition: all var(--dur) var(--ease);
}
.rest-card__like:hover { background: var(--surface); color: var(--brand-500); transform: scale(1.1); }
.rest-card__like.is-liked { color: #ef4444; }
.rest-card__like.is-liked svg { fill: currentColor; }
.rest-card__like svg { width: 18px; height: 18px; }
.rest-card__body { padding: 18px 20px 20px; }
.rest-card__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.rest-card__row { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .85rem; margin-top: 6px; }
.rest-card__row .dot { width: 3px; height: 3px; background: var(--text-soft); border-radius: 50%; }
.rest-card__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 700; }
.rest-card__rating svg { width: 14px; height: 14px; color: var(--brand-500); fill: currentColor; }
.rest-card__fee-right { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); font-size: .82rem; font-weight: 600; }
.rest-card__fee-right svg { width: 13px; height: 13px; color: var(--brand-500); }

/* ---------- 14. FOOD ITEM CARD ---------- */
.food-card {
    display: flex; gap: 18px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--dur) var(--ease);
    position: relative;
}
.food-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.food-card__img { width: 110px; height: 110px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; background: var(--bg-soft); transition: transform var(--dur) var(--ease); }
.food-card:hover .food-card__img { transform: scale(1.04); }
.food-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.food-card__name { font-weight: 700; }
.food-card__desc { color: var(--text-muted); font-size: .9rem; margin: 4px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.food-card__price { font-weight: 800; font-size: 1.05rem; }
.food-card__add {
    width: 36px; height: 36px;
    display: inline-grid; place-items: center;
    background: var(--grad-warm); color: #fff;
    border: 0; border-radius: var(--r-full);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease);
}
.food-card__add:hover { transform: scale(1.12) rotate(90deg); box-shadow: var(--shadow-glow-strong); }
.food-card__add svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
    .food-card__img { width: 88px; height: 88px; }
}

/* ---------- 15. AI VIDEO SECTION ---------- */
.ai-section {
    position: relative;
    padding: 96px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    overflow: hidden;
}
.ai-section::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(255,122,0,.18), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(139,92,246,.18), transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(56,189,248,.12), transparent 50%);
    pointer-events: none;
}
.ai-card {
    position: relative;
    border-radius: var(--r-2xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-xl);
    background: #0B0F1A;
}
.ai-card video, .ai-card__poster {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ai-card__poster {
    background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?w=1600&q=85');
    background-size: cover; background-position: center;
}
.ai-card__overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 48px;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82) 100%);
    color: #fff;
}
.ai-card__overlay h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 8px; max-width: 540px; }
.ai-card__overlay p { color: rgba(255,255,255,.85); max-width: 480px; }
.ai-card__play {
    position: absolute; top: 50%; left: 50%; z-index: 3;
    transform: translate(-50%, -50%);
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--surface-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 0 0 0 rgba(255,255,255,.3);
    animation: pulse-glow 2.4s ease-in-out infinite;
    cursor: pointer;
    transition: transform var(--dur) var(--ease-spring);
}
.ai-card__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.ai-card__play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35), 0 18px 48px rgba(0,0,0,.45); }
    50%      { box-shadow: 0 0 0 18px rgba(255,255,255,0),  0 18px 48px rgba(0,0,0,.45); }
}
.ai-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .ai-features { grid-template-columns: 1fr; } .ai-card__overlay { padding: 24px; } }
.ai-feature {
    padding: 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex; align-items: flex-start; gap: 12px;
}
.ai-feature__icon {
    width: 40px; height: 40px;
    background: var(--brand-50); color: var(--brand-500);
    border-radius: var(--r); display: grid; place-items: center; flex-shrink: 0;
}
[data-theme="dark"] .ai-feature__icon { background: rgba(255,122,0,.15); }
.ai-feature h4 { margin-bottom: 4px; }
.ai-feature p  { font-size: .88rem; margin: 0; }

/* ---------- 16. CAROUSEL ---------- */
.carousel { position: relative; }
.carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 20px;
    padding-bottom: 4px;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: inline-flex; gap: 8px; }

/* ---------- 17. MARQUEE ---------- */
.marquee { overflow: hidden; padding: 24px 0; border-block: 1px solid var(--border); background: var(--bg-soft); }
.marquee__track {
    display: flex; gap: 56px;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; color: var(--text-muted); font-weight: 600; }
.marquee__item svg { color: var(--brand-500); }

/* ---------- 18. HOW IT WORKS ---------- */
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.step__num {
    width: 44px; height: 44px;
    background: var(--grad-warm); color: #fff;
    border-radius: var(--r); display: grid; place-items: center;
    font-weight: 800; font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
    margin-bottom: 16px;
}

/* ---------- 19. TESTIMONIAL ---------- */
.review-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.review-card__quote { font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.review-card__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); object-fit: cover; }
.review-card__stars { display: inline-flex; gap: 2px; color: var(--brand-500); margin-bottom: 12px; }
.review-card__stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- 20. CTA BAND ---------- */
.cta {
    position: relative; overflow: hidden;
    padding: 64px 48px;
    border-radius: var(--r-2xl);
    background: var(--grad-warm);
    color: #fff;
    text-align: center;
}
.cta::before, .cta::after {
    content: ''; position: absolute;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.25), transparent 60%);
    pointer-events: none;
}
.cta::before { top: -120px; left: -80px; }
.cta::after  { bottom: -160px; right: -120px; }
.cta h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.cta p  { color: rgba(255,255,255,.92); max-width: 540px; margin: 16px auto 28px; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta { padding: 40px 24px; } }

/* ---------- 21. CART / CHECKOUT ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } }

.summary {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px;
    position: sticky; top: calc(var(--header-h) + 24px);
    box-shadow: var(--shadow-xs);
}
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-muted); font-size: .94rem; }
.summary__row--total { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 12px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }

.qty { display: inline-flex; align-items: center; background: var(--bg-soft); border-radius: var(--r-full); padding: 4px; }
.qty button {
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: var(--surface); color: var(--text);
    font-weight: 700; box-shadow: var(--shadow-xs);
    transition: all var(--dur) var(--ease);
}
.qty button:hover { background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-glow); }
.qty span { padding: 0 12px; font-weight: 800; min-width: 32px; text-align: center; }

/* ---------- 22. RESTAURANT DETAIL ---------- */
.rest-hero {
    position: relative;
    aspect-ratio: 24 / 9; min-height: 240px; max-height: 380px;
    margin-top: 24px;
    border-radius: var(--r-2xl);
    background: var(--bg-soft) center/cover no-repeat;
    overflow: hidden;
}
.rest-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78) 100%);
    display: flex; align-items: flex-end;
    padding: 40px;
}
.rest-hero__title { color: #fff; max-width: 720px; }
.rest-hero__title h1 { color: #fff; }
.rest-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.92); margin-top: 12px; font-size: .92rem; }
.rest-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.rest-hero__meta svg { width: 16px; height: 16px; }

.cat-nav {
    position: sticky; top: var(--header-h); z-index: 10;
    background: var(--bg);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { padding: 8px 16px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: all var(--dur) var(--ease); }
.cat-nav a:hover { color: var(--brand-500); border-color: var(--brand-200); }

/* ---------- 23. TIMELINE ---------- */
.timeline { display: flex; gap: 0; align-items: center; }
.timeline__step {
    flex: 1; text-align: center; position: relative; padding-bottom: 28px;
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-soft);
}
.timeline__step::before {
    content: ''; width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg-soft); border: 2px solid var(--border-strong);
    margin: 0 auto 10px; display: block;
    transition: all var(--dur) var(--ease);
}
.timeline__step::after {
    content: ''; position: absolute; top: 8px; left: 50%; right: -50%;
    height: 2px; background: var(--border-strong);
}
.timeline__step:last-child::after { display: none; }
.timeline__step.is-done { color: var(--brand-500); }
.timeline__step.is-done::before { background: var(--grad-warm); border-color: var(--brand-500); }
.timeline__step.is-done::after  { background: var(--brand-500); }
.timeline__step.is-current::before { box-shadow: 0 0 0 6px rgba(255,122,0,.18); animation: pulse 2s ease-in-out infinite; }

/* ---------- 24. AUTH ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--bg); }
.auth-side {
    position: relative;
    padding: 48px;
    color: #fff;
    background: var(--grad-warm);
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 80%, rgba(255,255,255,.25), transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 50%);
}
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 2.5rem; max-width: 440px; }
.auth-side p  { color: rgba(255,255,255,.85); max-width: 440px; }
.auth-side .brand { color: #fff; }
.auth-side .brand__logo { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.auth-form { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 480px; width: 100%; margin: 0 auto; }
@media (max-width: 980px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- 25. TABLES ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 16px 18px; font-size: .92rem; }
.table thead { background: var(--bg-soft); }
.table th { font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.table tbody tr { border-top: 1px solid var(--border); transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-soft); }

/* ---------- 26. DASHBOARD ---------- */
.dash {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: var(--bg);
}
.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 6px 10px 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sidebar__group { margin: 20px 0 8px; padding: 0 12px; font-size: .68rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .1em; }
.sidebar__link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--r);
    color: var(--text-muted); font-weight: 500; font-size: .94rem;
    transition: all var(--dur) var(--ease);
    margin-top: 2px; position: relative;
}
.sidebar__link:hover { background: var(--bg-soft); color: var(--text); }
.sidebar__link.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
[data-theme="dark"] .sidebar__link.is-active { background: rgba(255,122,0,.16); color: var(--brand-400); }
.sidebar__link.is-active::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    background: var(--grad-warm); border-radius: 0 3px 3px 0;
}
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }

.dash__main { padding: 36px 44px; min-width: 0; }
.dash__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.dash__header h1 { font-size: 1.85rem; }
.dash__actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
    .dash { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .dash__main { padding: 24px 20px; }
}

/* Stat card */
.stat {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 22px;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat__icon {
    width: 40px; height: 40px; border-radius: var(--r);
    background: var(--brand-50); color: var(--brand-500);
    display: grid; place-items: center;
}
[data-theme="dark"] .stat__icon { background: rgba(255,122,0,.16); }
.stat__icon svg { width: 20px; height: 20px; }
.stat__label { color: var(--text-muted); font-size: .85rem; font-weight: 500; }
.stat__value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.025em; margin-top: 6px; }
.stat__delta { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: .82rem; font-weight: 700; margin-top: 6px; }
.stat__delta svg { width: 14px; height: 14px; }
.stat__spark { position: absolute; inset: auto 0 0 0; height: 36px; opacity: .65; }

/* ---------- 27. FLASH ---------- */
.flashes { position: fixed; top: calc(var(--header-h) + 16px); right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash {
    padding: 14px 18px 14px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 4px solid var(--info);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    font-size: .92rem; font-weight: 500;
    animation: flashIn .45s var(--ease-spring);
}
.flash--success { border-left-color: var(--success); }
.flash--error   { border-left-color: var(--danger); }
@keyframes flashIn { from { transform: translateX(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 28. EMPTY ---------- */
.empty {
    text-align: center; padding: 80px 24px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}
.empty h3 { margin-bottom: 8px; }

/* ---------- 29. FOOTER ---------- */
.footer {
    background: linear-gradient(160deg, #1a0a00 0%, #2d1200 30%, #3d1800 60%, #1a0800 100%);
    border-top: none;
    margin-top: 96px;
    padding: 72px 0 40px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 120%; height: 120px;
    background: var(--bg);
    border-radius: 0 0 60% 60%;
}
.footer::after {
    content: '';
    position: absolute;
    top: 0; right: -200px; bottom: 0;
    width: 500px;
    background: radial-gradient(circle at center, rgba(255,122,0,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; position: relative; z-index: 1; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.5); font-weight: 700; margin-bottom: 16px; }
.footer ul li { margin-top: 8px; }
.footer ul li a { color: rgba(255,255,255,0.75); font-size: .94rem; transition: color 0.2s; }
.footer ul li a:hover { color: var(--brand-400); }
.footer .brand span { color: #fff; }
.footer > .container > .footer__grid > div > p { color: rgba(255,255,255,0.6); }
.footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45); font-size: .85rem; flex-wrap: wrap; gap: 16px;
    position: relative; z-index: 1;
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-sm);
    color: rgba(255,255,255,0.55); transition: all var(--dur) var(--ease);
}
.footer__social a:hover { color: #fff; border-color: var(--brand-400); background: rgba(255,122,0,0.2); transform: translateY(-2px); }

/* ---------- 30. ICONS ---------- */
.i { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; } .i--md { width: 20px; height: 20px; } .i--lg { width: 24px; height: 24px; } .i--xl { width: 32px; height: 32px; }

/* ==========================================================================
   ADMIN — Restaurants section (SaaS-grade)
   ========================================================================== */

/* Toolbar (legacy) */
.toolbar {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 10px;
    box-shadow: var(--shadow-xs);
    flex-wrap: wrap;
}
.toolbar .input-search { flex: 1; min-width: 240px; box-shadow: none; border-color: transparent; background: var(--bg-soft); }
.toolbar .input-search:focus-within { background: var(--surface); border-color: var(--brand-200); }
.toolbar__group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Filterbar (compact SaaS filters) ---- */
.filterbar {
    display: grid;
    gap: 8px;
    padding: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .filterbar { background: var(--bg); }

.filterbar__search,
.filterbar__select {
    height: 42px;
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.filterbar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}
.filterbar__search:hover,
.filterbar__select:hover { border-color: var(--text-soft); }

.filterbar__search:focus-within,
.filterbar__select:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, .14);
    outline: none;
}

.filterbar__search svg { width: 16px; height: 16px; color: var(--text-soft); flex-shrink: 0; }
.filterbar__search input {
    flex: 1; min-width: 0;
    height: 100%;
    padding: 0;
    border: 0; background: transparent;
    font: inherit; color: var(--text);
    outline: none;
}
.filterbar__search input::placeholder { color: var(--text-soft); }

.filterbar__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.filterbar__select {
    width: 100%;
    padding: 0 32px 0 12px;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A93A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.filterbar__select::-ms-expand { display: none; }

@media (max-width: 900px) {
    .filterbar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .filterbar__grid { grid-template-columns: 1fr; }
}

/* Filter chip (selectable) */
.f-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    background: var(--bg-soft); border: 1px solid transparent;
    border-radius: var(--r-full);
    font-size: .85rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.f-chip:hover { color: var(--text); background: var(--bg-strong); }
.f-chip.is-active { background: var(--text); color: var(--bg); }
.f-chip svg { width: 14px; height: 14px; }
.f-chip__count { padding: 1px 7px; background: rgba(0,0,0,.08); border-radius: var(--r-full); font-size: .72rem; }
.f-chip.is-active .f-chip__count { background: rgba(255,255,255,.18); }

/* Compact native select for filters */
.select--sm { padding: 8px 12px; font-size: .88rem; border-radius: var(--r-sm); border-width: 1px; background: var(--bg-soft); border-color: transparent; }
.select--sm:hover { background: var(--surface); border-color: var(--border); }

/* Avatar */
.avatar {
    width: 40px; height: 40px;
    border-radius: var(--r); object-fit: cover; flex-shrink: 0;
    background: var(--bg-soft);
}
.avatar--sm { width: 28px; height: 28px; border-radius: var(--r-sm); }
.avatar--lg { width: 56px; height: 56px; border-radius: var(--r); }
.avatar--xl { width: 72px; height: 72px; border-radius: var(--r-lg); }
.avatar--fallback {
    display: inline-grid; place-items: center;
    color: #fff; font-weight: 700; letter-spacing: -.01em;
    background: var(--grad-warm);
}

/* Cell layouts inside premium table */
.cell {
    display: flex; align-items: center; gap: 12px;
    min-width: 0;
}
.cell__copy { min-width: 0; line-height: 1.3; }
.cell__title { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell__meta { color: var(--text-soft); font-size: .8rem; }

/* Premium admin table */
.table--premium thead { background: var(--bg-soft); position: sticky; top: 0; z-index: 5; }
.table--premium tbody tr { cursor: pointer; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.table--premium tbody tr:hover { background: var(--bg-soft); }
.table--premium tbody tr:hover .cell__title { color: var(--brand-500); }
.table--premium td { vertical-align: middle; }

/* Approval pill */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: .75rem; font-weight: 700;
    line-height: 1.4;
}
.pill svg { width: 12px; height: 12px; }
.pill--approved   { background: #DCFCE7; color: #166534; }
.pill--pending    { background: #FEF3C7; color: #92400E; }
.pill--suspended  { background: #FEE2E2; color: #991B1B; }
.pill--open       { background: #DBEAFE; color: #1E40AF; }
.pill--closed     { background: var(--bg-strong); color: var(--text-muted); }
.pill--basic      { background: var(--bg-strong); color: var(--text-muted); }
.pill--pro        { background: #E0F2FE; color: var(--sky-800); }
.pill--enterprise { background: linear-gradient(135deg, #FFF3E6, #F5E6FF); color: var(--brand-700); }
[data-theme="dark"] .pill { filter: brightness(1.08); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }

/* Row actions menu (3-dot) */
.menu { position: relative; display: inline-block; }
.menu__btn {
    width: 32px; height: 32px;
    display: inline-grid; place-items: center;
    background: transparent; border: 1px solid transparent;
    border-radius: var(--r-sm); color: var(--text-muted);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}
.menu__btn:hover { background: var(--bg-strong); color: var(--text); }
.menu__dropdown {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 200px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow-lg);
    z-index: 30;
    opacity: 0; transform: translateY(-6px) scale(.96);
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.menu.is-open .menu__dropdown { opacity: 1; transform: none; pointer-events: auto; }
.menu__item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--r-sm);
    color: var(--text); font-size: .9rem; font-weight: 500;
    background: transparent; border: 0; width: 100%; text-align: left;
    cursor: pointer;
}
.menu__item:hover { background: var(--bg-soft); }
.menu__item--danger { color: var(--danger); }
.menu__item--danger:hover { background: rgba(239,68,68,.08); }
.menu__item svg { width: 16px; height: 16px; flex-shrink: 0; }
.menu__sep { height: 1px; background: var(--border); margin: 6px 0; }

/* Slide-over drawer */
.slideover-backdrop {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(11, 15, 26, .55);
    opacity: 0; pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity var(--dur) var(--ease);
}
.slideover-backdrop.is-open { opacity: 1; pointer-events: auto; }

.slideover {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
    width: min(720px, 96vw);
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    display: flex; flex-direction: column;
}
.slideover.is-open { transform: none; }
.slideover__header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.slideover__body { flex: 1; overflow-y: auto; padding: 24px; }
.slideover__close {
    width: 36px; height: 36px;
    display: inline-grid; place-items: center;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--r-sm); color: var(--text);
    cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.slideover__close:hover { color: var(--danger); border-color: var(--danger); }

/* Tabs */
.tabs {
    display: flex; gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative;
    padding: 12px 14px;
    color: var(--text-muted); font-size: .9rem; font-weight: 600;
    background: transparent; border: 0; cursor: pointer; white-space: nowrap;
    transition: color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after {
    content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px;
    height: 2px; background: var(--grad-warm); border-radius: 2px;
}
.tab-panel { display: none; animation: fade-up .35s var(--ease-out); }
.tab-panel.is-active { display: block; }

/* Detail grid */
.detail-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px;
}
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.detail-row__label { color: var(--text-soft); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.detail-row__value { color: var(--text); font-weight: 500; word-break: break-word; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
.pagination__pages { display: flex; gap: 4px; }
.pagination__btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
    color: var(--text); font-weight: 600; font-size: .88rem;
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease);
}
.pagination__btn:hover { color: var(--brand-500); border-color: var(--brand-200); }
.pagination__btn.is-current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination__btn[disabled], .pagination__btn.is-disabled { opacity: .4; pointer-events: none; }
.pagination__info { color: var(--text-muted); font-size: .88rem; }

/* Skeleton loader */
.skel {
    background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-strong) 50%, var(--bg-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: var(--r-sm);
    height: 14px;
}
.skel--line  { height: 14px; }
.skel--lg    { height: 20px; }
.skel--avatar{ width: 40px; height: 40px; border-radius: var(--r); }
.skel--block { height: 80px; border-radius: var(--r); }

/* Impersonation banner */
.impersonate-banner {
    position: sticky; top: 0; z-index: 80;
    background: linear-gradient(90deg, #FF7A00, #EC4899);
    color: #fff; padding: 10px 24px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    font-size: .9rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.impersonate-banner button {
    padding: 6px 14px; background: rgba(255,255,255,.18); color: #fff;
    border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-full);
    cursor: pointer; font-weight: 700;
}
.impersonate-banner button:hover { background: rgba(255,255,255,.28); }

/* Toolbar dense controls */
.toolbar .btn { white-space: nowrap; }

/* Premium row "Add Restaurant" button placement */
.dash__header .btn--primary svg { width: 16px; height: 16px; }

/* Mini stats (smaller variant under hero) */
.stat--mini { padding: 16px; }
.stat--mini .stat__value { font-size: 1.35rem; }

/* Responsive: stack table on small screens */
@media (max-width: 760px) {
    .table--premium thead { display: none; }
    .table--premium tr { display: block; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; background: var(--surface); }
    .table--premium td { display: flex; justify-content: space-between; padding: 10px 14px; border: 0; }
    .table--premium td::before { content: attr(data-th); color: var(--text-muted); font-size: .8rem; font-weight: 600; }
    .table--premium td:first-child { background: var(--bg-soft); border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
}

/* ==========================================================================
   ADMIN — Order statuses module
   ========================================================================== */

/* Status pill (colourful badge) */
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 10px;
    border-radius: var(--r-full);
    font-size: .82rem; font-weight: 700; letter-spacing: -.005em;
    line-height: 1.3;
    transition: transform var(--dur-fast) var(--ease);
}
.status-pill__dot {
    width: 7px; height: 7px; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.status-pill:hover { transform: scale(1.02); }

/* Form inline error */
.form__error {
    color: var(--danger);
    font-size: .8rem; font-weight: 500;
    min-height: 1em;
    display: block;
}
.form__error:empty { display: none; }

/* Color picker row */
.color-row {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.color-input {
    width: 48px; height: 42px;
    padding: 0; margin: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    cursor: pointer;
    overflow: hidden;
}
.color-input::-webkit-color-swatch-wrapper { padding: 4px; }
.color-input::-webkit-color-swatch { border: 0; border-radius: 6px; }
.color-input::-moz-color-swatch { border: 0; border-radius: 6px; }
.color-hex {
    width: 110px; flex: 0 0 auto;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.color-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.color-preset {
    width: 26px; height: 26px;
    padding: 0;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border-strong);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease);
}
.color-preset:hover { transform: scale(1.18); }
.color-preset.is-active { box-shadow: 0 0 0 2px var(--text); transform: scale(1.12); }

/* Spinner inline */
.spinner {
    width: 16px; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%;
    display: inline-block; vertical-align: -3px;
    animation: spin 700ms linear infinite;
    opacity: 0;
}
.is-loading .spinner { opacity: 1; }
.is-loading [data-submit-label], .is-loading [data-confirm-label] { opacity: .6; }
.btn[disabled] .spinner { opacity: 1; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(11, 15, 26, .58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.modal {
    position: fixed; inset: 0; z-index: 91;
    display: grid; place-items: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__card {
    width: 100%; max-width: 560px;
    max-height: calc(100vh - 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(.98);
    transition: transform var(--dur) var(--ease-spring);
}
.modal.is-open .modal__card { transform: none; }
.modal--sm .modal__card { max-width: 420px; }

.modal__header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal__close {
    width: 36px; height: 36px;
    display: inline-grid; place-items: center;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--r-sm); color: var(--text);
    cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.modal__close:hover { color: var(--danger); border-color: var(--danger); }
.modal__body { padding: 24px; overflow-y: auto; }
.modal__footer {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

/* Toasts */
.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--brand-500);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    font-size: 0.92rem;
    pointer-events: auto;
    transform: translate3d(50px, 0, 0) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.3s ease;
}
.toast.is-show {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}
.toast--success {
    border-left-color: #10b981;
}
.toast--error {
    border-left-color: #ef4444;
}
.toast--info {
    border-left-color: var(--brand-500);
}
.toast__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast--success .toast__icon {
    color: #10b981;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}
.toast--error .toast__icon {
    color: #ef4444;
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.2));
}
.toast--info .toast__icon {
    color: var(--brand-500);
    filter: drop-shadow(0 2px 4px rgba(255, 122, 0, 0.2));
}
.toast__body {
    min-width: 0;
    flex: 1;
}
.toast__title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}
.toast__msg {
    color: #64748b;
    font-size: 0.86rem;
    margin-top: 3px;
    line-height: 1.4;
}
.toast__close {
    background: rgba(0, 0, 0, 0.03);
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 8px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.toast__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Dark mode compatibility */
body.dark-theme .toast {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
body.dark-theme .toast__title {
    color: #f1f5f9;
}
body.dark-theme .toast__msg {
    color: #94a3b8;
}
body.dark-theme .toast__close {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
}

@media (max-width: 640px) {
    .toast-stack {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
    .toast {
        transform: translate3d(0, 30px, 0) scale(0.95);
    }
    .toast.is-show {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Row actions sticky-cell helper */
.row-actions { white-space: nowrap; }

/* Sticky header for premium tables (refresh) */
.table--premium thead th { position: sticky; top: 0; background: var(--bg-soft); z-index: 4; }

/* ==========================================================================
   ADMIN — Promo / Coupon module
   ========================================================================== */

/* Copyable code pill */
.code-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px 3px 8px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .78rem; font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}
.code-pill:hover { border-color: var(--brand-200); color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .code-pill:hover { background: rgba(255,122,0,.14); color: var(--brand-400); }
.code-pill svg { color: var(--text-soft); }
.code-pill.is-copied { color: var(--success); border-color: var(--success); background: rgba(16,185,129,.08); }
.code-pill.is-copied svg { color: var(--success); }

/* Day-of-week chip picker */
.day-picker {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.day-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 56px; height: 38px;
    padding: 0 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: .82rem; font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}
.day-chip input { display: none; }
.day-chip:hover { color: var(--text); border-color: var(--text-soft); }
.day-chip.is-on {
    background: var(--text); color: var(--bg); border-color: var(--text);
    box-shadow: var(--shadow-sm);
}
.day-chip.is-off { opacity: .55; }

/* Toggle switch */
.switch {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
    position: relative;
    width: 44px; height: 24px;
    background: var(--bg-strong);
    border-radius: var(--r-full);
    transition: background var(--dur) var(--ease);
}
.switch__thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--grad-warm); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch__label { font-weight: 600; font-size: .9rem; color: var(--text); min-width: 32px; }
.switch__label::before { content: attr(data-off); }
.switch input:checked ~ .switch__label::before { content: attr(data-on); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(255,122,0,.2); }

/* Merchant multi-select grid */
.merchant-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-height: 320px; overflow-y: auto;
    padding: 4px; margin: -4px;
}
.merchant-card {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}
.merchant-card input { position: absolute; opacity: 0; pointer-events: none; }
.merchant-card:hover { border-color: var(--text-soft); }
.merchant-card__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.merchant-card__check {
    width: 22px; height: 22px;
    display: inline-grid; place-items: center;
    background: var(--bg-soft); color: transparent;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    transition: all var(--dur-fast) var(--ease);
}
.merchant-card__check svg { width: 14px; height: 14px; }
.merchant-card.is-on,
.merchant-card:has(input:checked) {
    border-color: var(--brand-500);
    background: var(--brand-50);
    box-shadow: var(--shadow-glow);
}
[data-theme="dark"] .merchant-card.is-on,
[data-theme="dark"] .merchant-card:has(input:checked) {
    background: rgba(255,122,0,.10);
}
.merchant-card.is-on .merchant-card__check,
.merchant-card:has(input:checked) .merchant-card__check {
    background: var(--brand-500); color: #fff; border-color: var(--brand-500);
}
.merchant-card.is-on .cell__title,
.merchant-card:has(input:checked) .cell__title { color: var(--brand-700); }

/* Activity log */
.activity-log { display: flex; flex-direction: column; gap: 16px; padding: 4px 0; }
.activity-log__item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r);
}
.activity-log__dot {
    width: 10px; height: 10px; border-radius: 50%;
    margin-top: 7px; flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(0,0,0,.04);
}

/* ==========================================================================
   ADMIN — Currencies module
   ========================================================================== */
.currency-symbol {
    min-width: 40px; height: 40px;
    padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-warm); color: #fff;
    border-radius: var(--r);
    font-weight: 700; font-size: 1rem; line-height: 1;
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
    direction: ltr;
    white-space: nowrap;
}
.currency-preview {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
}
.currency-preview__symbol {
    width: 44px; height: 44px;
    display: inline-grid; place-items: center;
    background: var(--grad-warm); color: #fff;
    border-radius: var(--r-sm);
    font-weight: 800; font-size: 1.15rem;
    box-shadow: var(--shadow-glow);
}
.currency-preview__code { font-weight: 700; letter-spacing: .02em; }
.currency-preview__sample { color: var(--text-muted); font-size: .85rem; }

/* ==========================================================================
   RESTAURANT — Addon categories module (row checkbox + bulk bar)
   ========================================================================== */
.row-check-cell { width: 44px; text-align: center; }
.row-check { display: inline-flex; align-items: center; cursor: pointer; vertical-align: middle; }
.row-check input {
    width: 18px; height: 18px;
    accent-color: var(--brand-500);
    cursor: pointer;
    margin: 0;
}
.row-check input:focus-visible {
    outline: 2px solid var(--brand-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selected-row highlight (CSS :has() — modern browsers) */
.table--premium tbody tr:has(input[data-ac-check]:checked) {
    background: rgba(255, 122, 0, .05);
}
.table--premium tbody tr:has(input[data-ac-check]:checked):hover {
    background: rgba(255, 122, 0, .08);
}
[data-theme="dark"] .table--premium tbody tr:has(input[data-ac-check]:checked) {
    background: rgba(255, 122, 0, .10);
}
/* Fallback when JS adds .is-selected */
.table--premium tbody tr.is-selected {
    background: rgba(255, 122, 0, .05);
}
[data-theme="dark"] .table--premium tbody tr.is-selected {
    background: rgba(255, 122, 0, .10);
}

/* Bulk action bar */
.bulk-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
    border-radius: var(--r);
    box-shadow: var(--shadow-xs);
    animation: fade-up 0.25s var(--ease-out);
}
[data-theme="dark"] .bulk-bar {
    background: rgba(255, 122, 0, .12);
    border-color: rgba(255, 122, 0, .35);
    color: var(--brand-400);
}
.bulk-bar[hidden] { display: none; }
.bulk-bar__count strong { font-weight: 800; font-size: 1.05rem; color: var(--brand-700); }
[data-theme="dark"] .bulk-bar__count strong { color: var(--brand-400); }
.mt-12 { margin-top: 12px; }

/* ---------- 31. UTILITIES ---------- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em; padding: 2px 6px; background: var(--bg-soft); border-radius: 4px; }
.shadow-glow { box-shadow: var(--shadow-glow); }
.no-underline { text-decoration: none; }
.full { width: 100%; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 760px) {
    .hide-mobile { display: none; }
    .show-mobile { display: initial; }
}

/* ==========================================================================
   32. ADMIN ORDERS — filter card, bulk bar, invoice panel, timeline, modals
   Built for desktop + tablet + mobile. No overlap, consistent rhythm.
   ========================================================================== */

/* ----- Form fields (shared) ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); line-height: 1.2; }
.field > input,
.field > select,
.field > textarea {
    box-sizing: border-box;
    width: 100%; min-width: 0;
    height: 40px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: .92rem; font-family: inherit; font-weight: 500;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field > textarea { height: auto; padding: 10px 12px; min-height: 80px; line-height: 1.5; resize: vertical; }
.field > select { padding-right: 32px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23565F70' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px 14px; }
.field > input:hover,
.field > select:hover,
.field > textarea:hover { border-color: var(--text-soft); }
.field > input:focus,
.field > select:focus,
.field > textarea:focus { outline: 0; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(255,122,0,.16); background: var(--surface); }
.field > input::placeholder { color: var(--text-soft); }
[data-theme="dark"] .field > select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23A6AEC2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }

/* ----- Filter card ----- */
.filter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.filter-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: .92rem;
}
.filter-card__head svg { width: 16px; height: 16px; }
.filter-card__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 20px;
    transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.filter-card__grid.is-collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.filter-card__foot {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease), padding var(--dur) var(--ease), border-top-color var(--dur) var(--ease);
    max-height: 80px; overflow: hidden;
}
.filter-card__foot.is-collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; }
.filter-card.is-collapsed .filter-card__head { border-bottom: 0; }
[data-toggle-filters] svg { transition: transform var(--dur) var(--ease); }
.filter-card.is-collapsed [data-toggle-filters] svg { transform: rotate(-90deg); }
@media (max-width: 1180px) { .filter-card__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px)  { .filter-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .filter-card__grid { grid-template-columns: 1fr; gap: 14px; padding: 16px; } }

/* ----- Status chips ----- */
.f-chips-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px; }

/* ----- Sort header link ----- */
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); text-decoration: none; font: inherit; }
.th-sort:hover { color: var(--text); }
.th-sort svg { width: 12px; height: 12px; opacity: .6; }

/* ----- Row action cell (3-dot menu only) ----- */
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 36px; }
.row-actions .menu__btn { width: 36px; height: 36px; }
.row-actions .menu__btn svg { width: 18px; height: 18px; }

/* ----- Presence dot ----- */
.presence-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-soft);
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}
.presence-dot.is-online {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16,185,129,.18);
    animation: pulse 2s var(--ease) infinite;
}

/* ----- Bulk action bar (sticky) ----- */
.bulk-bar {
    position: sticky; top: 12px; z-index: 25;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; padding: 12px 16px;
    background: var(--text); color: var(--bg);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
}
.bulk-bar[hidden] { display: none !important; }
.bulk-bar__count { font-size: .92rem; }
.bulk-bar__count strong { font-weight: 800; font-size: 1.05rem; color: var(--brand-400); }
.bulk-bar .btn--ghost { color: var(--bg); border-color: rgba(255,255,255,.18); }
.bulk-bar .btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--bg); }
.bulk-bar .btn--outline { color: var(--bg); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.bulk-bar .btn--outline:hover { background: rgba(255,255,255,.12); color: var(--bg); }
[data-theme="dark"] .bulk-bar { background: var(--bg-strong); color: var(--text); }
[data-theme="dark"] .bulk-bar .btn--ghost,
[data-theme="dark"] .bulk-bar .btn--outline { color: var(--text); }

/* ----- Driver picker rows ----- */
.driver-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.driver-row {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r);
    text-align: left;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}
.driver-row:hover { border-color: var(--brand-200); background: var(--bg-soft); transform: translateX(2px); }
.driver-row.is-current { border-color: var(--brand-400); background: var(--brand-50); }
.driver-row__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-warm); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.driver-row__body { min-width: 0; flex: 1; }
.driver-row__name { font-weight: 700; color: var(--text); }
.driver-row__meta { color: var(--text-muted); font-size: .82rem; margin-top: 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
[data-theme="dark"] .driver-row.is-current { background: rgba(255,122,0,.12); }

/* ----- Invoice-style order panel ----- */
.inv {
    display: flex; flex-direction: column; gap: 20px;
    color: var(--text);
}
.inv__hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--brand-50) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    flex-wrap: wrap;
}
[data-theme="dark"] .inv__hero { background: linear-gradient(135deg, rgba(255,122,0,.14) 0%, transparent 100%); }
.inv__hero-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.inv__hero-meta .eyebrow { font-size: .7rem; }
.inv__hero h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0; word-break: break-all; }
.inv__hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inv__hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.inv__hero-side .inv__total { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.inv__hero-side .inv__total-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }

.inv__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.inv__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .inv__cards { grid-template-columns: 1fr; } }
.inv__card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 18px 20px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--shadow-xs);
}
.inv__card h4 {
    font-size: .7rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-soft);
    margin: 0 0 4px;
    display: flex; align-items: center; gap: 6px;
}
.inv__card h4 svg { width: 14px; height: 14px; opacity: .7; }
.inv__card .inv__card-main { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.inv__card .inv__card-sub  { color: var(--text-muted); font-size: .9rem; line-height: 1.4; word-break: break-word; }

.inv__items {
    border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.inv__items-head {
    display: grid; grid-template-columns: 1fr 60px 90px 100px; gap: 16px;
    padding: 12px 18px; background: var(--bg-soft);
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft);
}
.inv__items-row {
    display: grid; grid-template-columns: 1fr 60px 90px 100px; gap: 16px;
    padding: 14px 18px; border-top: 1px solid var(--border);
    align-items: center;
}
.inv__items-row:first-child { border-top: 0; }
.inv__items-row__name { font-weight: 600; min-width: 0; word-break: break-word; }
.inv__items-row__qty { color: var(--text-muted); }
.inv__items-row__unit { color: var(--text-muted); font-size: .92rem; text-align: right; }
.inv__items-row__total { font-weight: 700; text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
    .inv__items-head { display: none; }
    .inv__items-row { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 6px; }
    .inv__items-row__name { grid-column: 1 / -1; }
    .inv__items-row__qty::before  { content: 'Qty: '; color: var(--text-soft); font-size: .8rem; }
    .inv__items-row__unit::before { content: 'Unit: '; color: var(--text-soft); font-size: .8rem; }
    .inv__items-row__unit { text-align: left; }
    .inv__items-row__total { grid-column: 2; grid-row: 2; }
}

.inv__totals {
    display: flex; justify-content: flex-end;
    margin-top: -4px;
}
.inv__totals-box {
    width: 320px; max-width: 100%;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 16px 20px;
    box-shadow: var(--shadow-xs);
}
.inv__totals-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0;
    color: var(--text-muted); font-size: .94rem;
}
.inv__totals-row strong { color: var(--text); font-weight: 700; }
.inv__totals-row--discount strong { color: var(--success); }
.inv__totals-row--grand {
    border-top: 2px solid var(--text);
    margin-top: 8px; padding-top: 12px;
    color: var(--text); font-size: 1.05rem;
}
.inv__totals-row--grand strong { font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }

/* Status timeline */
.status-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.status-timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.status-timeline__item { position: relative; padding-left: 32px; padding-bottom: 18px; }
.status-timeline__item:last-child { padding-bottom: 4px; }
.status-timeline__dot {
    position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--text-soft);
    box-shadow: 0 0 0 3px var(--bg);
}
.status-timeline__dot--pending     { border-color: #F59E0B; }
.status-timeline__dot--accepted    { border-color: #3B82F6; }
.status-timeline__dot--preparing   { border-color: #EA580C; }
.status-timeline__dot--ready       { border-color: #10B981; }
.status-timeline__dot--on_the_way  { border-color: #06B6D4; }
.status-timeline__dot--delivered   { border-color: #16A34A; background: #16A34A; }
.status-timeline__dot--cancelled   { border-color: #EF4444; }
.status-timeline__title { font-size: .96rem; color: var(--text); }
.status-timeline__title strong { color: var(--text); margin-right: 4px; }
.status-timeline__body { padding-top: 2px; }

/* ----- Tighter slide-over for invoice ----- */
.slideover { width: min(820px, 96vw); }
.slideover__body { padding: 24px 28px; background: var(--bg); }

/* ----- Mobile responsive guards for the whole orders page ----- */
@media (max-width: 760px) {
    .filter-card__head .btn { padding: 6px 10px; }
    .filter-card__head strong { font-size: .9rem; }
    .filter-card__head .flex-center { gap: 6px; }
    .filter-card__foot .btn { font-size: .8rem; padding: 6px 10px; }
    .f-chips-row { gap: 6px; }
    .f-chip { padding: 5px 10px; font-size: .78rem; }
    .bulk-bar { padding: 10px 12px; gap: 8px; }
    .bulk-bar .btn { padding: 6px 10px; font-size: .8rem; }
}
@media (max-width: 540px) {
    .dash__main { padding: 20px 14px !important; }
    .dash__header { flex-direction: column; align-items: stretch; gap: 12px; }
    .dash__header h1 { font-size: 1.4rem; }
    .dash__actions { width: 100%; flex-wrap: wrap; box-sizing: border-box; }
    .dash__actions .btn { flex: 1 1 calc(50% - 4px); justify-content: center; min-width: 0; padding: 10px 12px; font-size: .85rem; }
    .dash__actions .btn svg { width: 14px; height: 14px; }
    .stat { padding: 16px; }
    .stat__value { font-size: 1.4rem; }
    .stat__icon { width: 36px; height: 36px; }
    .stat__icon svg { width: 16px; height: 16px; }
    .filter-card__head { padding: 12px 14px; }
    .filter-card__foot { padding: 12px 14px; }
    .filter-card__foot .btn { flex: 1 1 auto; justify-content: center; }
    .pagination { flex-direction: column; align-items: stretch; gap: 12px; }
    .pagination__pages { justify-content: center; flex-wrap: wrap; }
    .row-actions { justify-content: flex-end; }
    /* Bulk action bar — stack vertically on tiny screens */
    .bulk-bar { flex-direction: column; align-items: stretch; }
    .bulk-bar .flex { flex-wrap: wrap; }
    .bulk-bar .btn { flex: 1 1 auto; }
}

/* Modal sizing on small screens — drop the 24px outer padding & full-bleed cards */
@media (max-width: 540px) {
    .modal { padding: 12px; }
    .modal__card { max-height: calc(100vh - 24px); }
    .modal__header { padding: 14px 16px; }
    .modal__body  { padding: 16px; }
    .modal__footer { padding: 12px 16px; flex-wrap: wrap; }
    .modal__footer .btn { flex: 1 1 auto; justify-content: center; }
}

/* Belt-and-braces: no element on the orders page may push horizontal scroll.
   `clip` is stronger than `hidden` — it prevents programmatic scrolling too. */
html { overflow-x: clip; }
body { overflow-x: clip; }
.dash { overflow-x: clip; min-width: 0; }
.dash__main { overflow-x: clip; }
/* Force a closed slideover to live exactly off the right edge — no further. */
.slideover:not(.is-open) { right: 0; transform: translate3d(110%, 0, 0); pointer-events: none; }
.slideover:not(.is-open) * { visibility: hidden; }
.slideover.is-open       { transform: translate3d(0, 0, 0); }
.slideover.is-open *     { visibility: visible; }

/* ----- Toolbar dark background ----- */
[data-theme="dark"] .filter-card__head,
[data-theme="dark"] .filter-card__foot { background: var(--bg-strong); }

/* ==========================================================================
   ACCOUNT DASHBOARD
   ========================================================================== */

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 80px;
}

.account-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.account-content { min-width: 0; }

/* User card in sidebar */
.account-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    margin-bottom: 12px;
    text-align: center;
}

.account-user-card .avatar-circle {
    width: 64px;
    height: 64px;
    background: var(--brand-100);
    color: var(--brand-600);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    border: 3px solid var(--brand-200);
}

[data-theme="dark"] .account-user-card .avatar-circle {
    background: rgba(255,122,0,.2);
    color: var(--brand-400);
    border-color: rgba(255,122,0,.3);
}
.avatar-circle:hover .avatar-upload-overlay {
    opacity: 1 !important;
}

.account-user-card .u-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.account-user-card .u-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sidebar nav */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    padding: 8px;
}

.account-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: var(--r);
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
}

.account-nav__item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2;
}

.account-nav__item:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.account-nav__item.is-active {
    background: var(--brand-50);
    color: var(--brand-600);
}

[data-theme="dark"] .account-nav__item.is-active {
    background: rgba(255,122,0,.15);
    color: var(--brand-400);
}

.account-nav__item--danger:hover {
    background: rgba(239,68,68,.08);
    color: var(--danger);
}

.account-nav__divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Main content card */
.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    padding: 28px;
}

.account-card + .account-card { margin-top: 20px; }

/* Page title area */
.account-page-title { margin-bottom: 28px; }
.account-page-title h1 { font-size: 1.75rem; margin-bottom: 4px; }

/* Order history list */
.order-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}
.order-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-row:first-child { padding-top: 0; }

.order-row__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Notification items */
.notif-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; padding-bottom: 0; }
.notif-item:first-child { padding-top: 0; }

.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.notif-icon svg { width: 20px; height: 20px; }

/* Language selector */
.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px solid var(--border-strong);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-option:hover { border-color: var(--brand-300); background: var(--brand-50); }
.lang-option.is-selected { border-color: var(--brand-500); background: var(--brand-50); }
[data-theme="dark"] .lang-option.is-selected { background: rgba(255,122,0,.1); }
[data-theme="dark"] .lang-option:hover { background: rgba(255,122,0,.08); }

.lang-option input[type="radio"] { accent-color: var(--brand-500); transform: scale(1.2); }

/* FAQ accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.is-open { border-color: var(--brand-200); }

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    gap: 12px;
}
.faq-btn svg { flex-shrink: 0; transition: transform 0.3s var(--ease); width: 18px; height: 18px; }
.faq-item.is-open .faq-btn svg { transform: rotate(180deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}
.faq-content__inner {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats grid on dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
}
.stat-card__icon svg { width: 20px; height: 20px; }

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Responsive */
@media (max-width: 860px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .account-sidebar {
        position: static;
    }
}


/* ==========================================================================
   33. DRIVER — service toggle, presence, earnings chart
   ========================================================================== */

/* ----- Toggle switch ----- */
.switch {
    position: relative;
    width: 48px; height: 28px;
    border-radius: 999px;
    background: var(--bg-strong);
    border: 1px solid var(--border-strong);
    cursor: pointer; padding: 0; flex-shrink: 0;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.switch__knob {
    position: absolute; top: 50%; left: 3px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    transition: left var(--dur) var(--ease-spring);
}
.switch.is-on { background: var(--success); border-color: var(--success); }
.switch.is-on .switch__knob { left: calc(100% - 25px); }
.switch--lg { width: 60px; height: 34px; }
.switch--lg .switch__knob { width: 28px; height: 28px; }
.switch--lg.is-on .switch__knob { left: calc(100% - 31px); }

/* ----- Sidebar presence card ----- */
.driver-presence {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin: 4px 10px 8px;
    padding: 12px 14px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.driver-presence.is-online { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.35); }
.driver-presence__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.driver-presence__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-soft); flex-shrink: 0; }
.driver-presence.is-online .driver-presence__dot {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16,185,129,.20);
    animation: pulse 2s var(--ease) infinite;
}
.driver-presence__label { font-weight: 700; font-size: .9rem; color: var(--text); white-space: nowrap; }

/* ----- Dashboard service banner ----- */
.service-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    padding: 20px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-banner.is-online {
    background: linear-gradient(135deg, rgba(16,185,129,.12) 0%, transparent 70%);
    border-color: rgba(16,185,129,.35);
}
.service-banner.is-offline {
    background: linear-gradient(135deg, rgba(245,158,11,.10) 0%, transparent 70%);
    border-color: rgba(245,158,11,.30);
}
.service-banner__info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.service-banner__pulse {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--text-soft); flex-shrink: 0;
}
.service-banner.is-online .service-banner__pulse {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(16,185,129,.18);
    animation: pulse 2s var(--ease) infinite;
}
.service-banner.is-offline .service-banner__pulse {
    background: var(--warning);
    box-shadow: 0 0 0 5px rgba(245,158,11,.16);
}
.service-banner__title { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); }
.service-banner__sub { color: var(--text-muted); font-size: .9rem; margin-top: 2px; }

/* ----- Earnings layout + chart ----- */
.earn-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .earn-layout { grid-template-columns: 1fr; } }

.earn-chart {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 10px; height: 220px; padding-top: 20px;
}
.earn-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; }
.earn-chart__bar-wrap {
    position: relative; flex: 1;
    width: 100%; max-width: 48px;
    display: flex; align-items: flex-end; justify-content: center;
}
.earn-chart__bar {
    width: 100%;
    background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
    border-radius: 8px 8px 0 0;
    min-height: 4px;
    transition: height var(--dur-slow) var(--ease-spring);
}
.earn-chart__bar.is-today { background: linear-gradient(180deg, var(--success), #0F9D6B); }
.earn-chart__val {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    font-size: .7rem; font-weight: 700; color: var(--text-muted); white-space: nowrap;
}
.earn-chart__label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.earn-chart__label.is-today { color: var(--success); }

.earn-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.earn-row:last-child { border-bottom: 0; }
.earn-row__label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .92rem; }
.earn-row__label svg { width: 16px; height: 16px; opacity: .7; }
.earn-row strong { color: var(--text); font-size: 1rem; }

.stat--feature { background: linear-gradient(135deg, var(--brand-50) 0%, transparent 70%); border-color: var(--brand-200); }
[data-theme="dark"] .stat--feature { background: linear-gradient(135deg, rgba(255,122,0,.14) 0%, transparent 70%); }

/* Mobile guards for driver pages */
@media (max-width: 540px) {
    .service-banner { padding: 16px; }
    .service-banner__title { font-size: 1.05rem; }
    .earn-chart { height: 180px; gap: 6px; }
    .earn-chart__val { font-size: .6rem; }
}

/* ==========================================================================
   34. PERSISTENT INCOMING ORDER ALERT
   ========================================================================== */

/* ----- Driver incoming-order modal ----- */
.io-modal.modal { z-index: 120; }
.io-modal.modal-backdrop { z-index: 119; background: rgba(11,15,26,.72); }
.io-card { max-width: 460px; border: 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.io-card__head {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
}
.io-card__eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.io-card__head h3 { margin: 2px 0 0; color: #fff; font-size: 1.35rem; letter-spacing: -.01em; }
.io-card__fee { margin-left: auto; font-size: 1.4rem; font-weight: 900; color: #fff; white-space: nowrap; }
.io-card__pulse {
    width: 14px; height: 14px; border-radius: 50%; background: #fff; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    animation: ioPulse 1.2s ease-out infinite;
}
@keyframes ioPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
    70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.io-card.modal__card { animation: ioShake .9s ease-in-out infinite; }
.io-modal.is-open .io-card { animation: ioShake .9s ease-in-out infinite; }
@keyframes ioShake {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
.io-card__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.io-row { display: flex; align-items: flex-start; gap: 12px; }
.io-row__icon {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
    background: var(--brand-50); color: var(--brand-600);
    display: grid; place-items: center;
}
.io-row__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); font-weight: 700; }
.io-row__val { color: var(--text); margin-top: 2px; }
.io-card__foot { display: flex; gap: 12px; padding: 18px 24px 24px; }
.io-card__foot .btn { flex: 1; }
.io-btn-ignore { border-color: var(--border-strong); }
.io-btn-accept { }
@media (max-width: 480px) {
    .io-card__head { padding: 18px; }
    .io-card__fee { font-size: 1.15rem; }
    .io-card__foot { flex-direction: column-reverse; }
}

/* ----- Admin alert settings ----- */
.alert-sound {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 16px; background: var(--bg-soft);
    border: 1px solid var(--border); border-radius: var(--r); flex-wrap: wrap;
}
.alert-sound__name { font-weight: 700; color: var(--text); margin-top: 2px; word-break: break-all; }
.alert-sound__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-upload {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px; border: 2px dashed var(--border-strong); border-radius: var(--r);
    color: var(--text-muted); cursor: pointer; text-align: center;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.alert-upload:hover { border-color: var(--brand-400); color: var(--brand-600); background: var(--brand-50); }
.alert-upload svg { width: 20px; height: 20px; }
[data-theme="dark"] .alert-upload:hover { background: rgba(255,122,0,.10); }

.alert-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alert-toggle__title { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.alert-toggle__title svg { width: 16px; height: 16px; color: var(--brand-600); }

.range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 999px;
    background: var(--bg-strong); outline: none; cursor: pointer;
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-500); border: 3px solid #fff;
    box-shadow: var(--shadow-sm); cursor: pointer;
}
.range::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-500); border: 3px solid #fff;
    box-shadow: var(--shadow-sm); cursor: pointer;
}

.radio-card {
    display: block; padding: 16px; border: 1.5px solid var(--border-strong);
    border-radius: var(--r); cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.radio-card:hover { border-color: var(--brand-300, var(--brand-400)); }
.radio-card.is-active { border-color: var(--brand-500); background: var(--brand-50); }
[data-theme="dark"] .radio-card.is-active { background: rgba(255,122,0,.10); }
.radio-card__title { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.radio-card__title svg { width: 16px; height: 16px; color: var(--brand-600); }

/* ==========================================================================
   35. DRIVER NOTIFICATIONS (bell + dropdown)
   ========================================================================== */
.notif { position: fixed; top: 18px; right: 24px; z-index: 60; }
@media (max-width: 980px) { .notif { top: 14px; right: 16px; } }
.admin-saas .notif { position: relative; top: auto; right: auto; z-index: 10; }

.notif__bell {
    position: relative;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50%; color: var(--text);
    box-shadow: var(--shadow-sm); cursor: pointer;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.notif__bell:hover { color: var(--brand-600); box-shadow: var(--shadow); transform: translateY(-1px); }
.notif__bell svg { width: 20px; height: 20px; }
.notif__bell.is-ringing { color: var(--brand-600); animation: bellShake .8s var(--ease) 2; }
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(12deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(7deg); }
    80% { transform: rotate(-5deg); }
}
.notif__badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center;
    background: var(--danger); color: #fff;
    font-size: .68rem; font-weight: 800;
    border-radius: 999px; border: 2px solid var(--bg);
    line-height: 1;
}

.notif__panel {
    position: absolute; top: 54px; right: 0;
    width: 360px; max-width: calc(100vw - 32px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
    overflow: hidden; animation: notifIn .18s var(--ease-out);
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.notif__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.notif__head strong { font-size: 1rem; }
.notif__markall { background: none; border: 0; color: var(--brand-600); font-weight: 600; font-size: .82rem; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.notif__markall:hover { background: var(--brand-50); }
[data-theme="dark"] .notif__markall:hover { background: rgba(255,122,0,.12); }

.notif__list { max-height: 420px; overflow-y: auto; }
.notif__empty { padding: 40px 20px; text-align: center; color: var(--text-soft); }
.notif__empty svg { width: 32px; height: 32px; opacity: .4; margin-bottom: 8px; }
.notif__empty p { font-size: .9rem; }

.notif__item {
    display: flex; align-items: flex-start; gap: 12px;
    width: 100%; text-align: left;
    padding: 13px 16px; border: 0; border-bottom: 1px solid var(--border-soft, var(--border));
    background: transparent; cursor: pointer;
    transition: background var(--dur-fast) var(--ease);
}
.notif__item:hover { background: var(--bg-soft); }
.notif__item.is-unread { background: var(--brand-50); }
[data-theme="dark"] .notif__item.is-unread { background: rgba(255,122,0,.08); }
.notif__item-icon {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    display: grid; place-items: center; background: var(--bg-strong); color: var(--text);
}
.notif__item-icon--new_order { background: var(--brand-50); color: var(--brand-600); }
.notif__item-icon--status_update { background: #E0F2FE; color: var(--sky-600); }
.notif__item-icon svg { width: 16px; height: 16px; }
.notif__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif__item-title { font-weight: 700; font-size: .9rem; color: var(--text); }
.notif__item-text { font-size: .84rem; color: var(--text-muted); line-height: 1.4; }
.notif__item-ago { font-size: .74rem; color: var(--text-soft); margin-top: 2px; }
.notif__item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); flex-shrink: 0; margin-top: 6px; opacity: 0; }
.notif__item.is-unread .notif__item-dot { opacity: 1; }

/* Keep the bell clear of page headings on driver pages */
.dash__main > .dash__header:first-child,
.notif + .dash__header { padding-right: 60px; }

/* ==========================================================================
   36. DRIVER PROFILE
   ========================================================================== */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

.profile-aside { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 900px) { .profile-aside { position: static; } }
.profile-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    overflow: hidden; background: var(--grad-warm); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow);
    margin-bottom: 6px;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar__initial { font-size: 2.4rem; font-weight: 800; }
.profile-stats { display: flex; gap: 12px; width: 100%; margin-top: 16px; }
.profile-stats > div {
    flex: 1; text-align: center; padding: 12px 8px;
    background: var(--bg-soft); border-radius: var(--r);
}
.profile-stats strong { display: block; font-size: 1.1rem; color: var(--text); }
.profile-stats span { font-size: .74rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.profile-vehicle-chip {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: .85rem;
}
[data-theme="dark"] .profile-vehicle-chip { background: rgba(255,122,0,.12); color: var(--brand-400); }
.profile-vehicle-chip svg { width: 15px; height: 15px; }
.profile-main { min-width: 0; }

/* ==========================================================================
   37. DRIVER ALERT — enable-sound pill + status control
   ========================================================================== */
.enable-sound-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 0; border-radius: 999px;
    background: var(--brand-50); color: var(--brand-700);
    font-weight: 700; font-size: .8rem; cursor: pointer;
    box-shadow: var(--shadow-sm);
    animation: soundPulse 2s var(--ease) infinite;
    white-space: nowrap;
    z-index: 130;
}
.enable-sound-pill svg { width: 14px; height: 14px; }
@keyframes soundPulse { 0%,100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: var(--shadow-sm), 0 0 0 6px rgba(255,122,0,.18); } }
[data-theme="dark"] .enable-sound-pill { background: rgba(255,122,0,.16); color: var(--brand-400); }

@media (max-width: 480px) {
    .enable-sound-pill span { display: none; }
    .enable-sound-pill { padding: 8px; border-radius: 50%; width: 34px; height: 34px; justify-content: center; }
}

/* Driver active-order status control */
.order-status-control { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.input--sm { height: 38px; padding: 0 12px; font-size: .9rem; flex: 1; min-width: 0; }
select.input--sm { appearance: auto; }

/* ==========================================================================
   38. PREMIUM ADMIN SAAS DESIGN SYSTEM
   ========================================================================== */

/* Typography & Core Resets for Admin */
.admin-saas {
    --admin-bg: #F4F5F7;
    --admin-surface: #FFFFFF;
    --admin-border: #E2E8F0;
    --admin-text-main: #0F172A;
    --admin-text-muted: #64748B;
    --admin-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --admin-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    background-color: var(--admin-bg);
}
[data-theme="dark"] .admin-saas {
    --admin-bg: #0B0F1A;
    --admin-surface: #111827;
    --admin-border: #1F2937;
    --admin-text-main: #F8FAFC;
    --admin-text-muted: #94A3B8;
}

/* Admin Layout Container */
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--admin-bg);
}

/* Sidebar Redesign */
.saas-sidebar {
    width: 260px;
    background: var(--admin-surface);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.saas-sidebar__header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--admin-border);
}
.saas-sidebar__nav {
    padding: 20px 12px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.saas-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--admin-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
}
.saas-nav-link svg { width: 18px; height: 18px; stroke-width: 2.2; }
.saas-nav-link:hover {
    background: var(--bg-soft);
    color: var(--admin-text-main);
}
.saas-nav-link.is-active {
    background: var(--brand-50);
    color: var(--brand-600);
    font-weight: 600;
}
[data-theme="dark"] .saas-nav-link.is-active {
    background: rgba(255,122,0,0.1);
}
.saas-nav-link.is-active::before {
    content: '';
    position: absolute;
    left: 0; top: 10%; bottom: 10%; width: 3px;
    background: var(--brand-500);
    border-radius: 0 4px 4px 0;
}

/* Collapsed Sidebar */
.saas-sidebar--collapsed { width: 72px; }
.saas-sidebar--collapsed .saas-nav-link span { display: none; }
.saas-sidebar--collapsed .saas-nav-link { justify-content: center; padding: 10px 0; }
.saas-sidebar--collapsed .saas-sidebar__header span { display: none; }
.saas-sidebar--collapsed .saas-nav-link.is-active::before { left: 4px; }

/* Main Content Area */
.saas-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.saas-topnav {
    height: 64px;
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.saas-search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-soft); padding: 8px 16px;
    border-radius: 99px; border: 1px solid transparent;
    transition: border 0.2s;
    width: 300px;
}
.saas-search-box:focus-within { border-color: var(--brand-300); background: var(--admin-surface); box-shadow: 0 0 0 3px rgba(255,122,0,0.1); }
.saas-search-box input { border: none; background: transparent; outline: none; font-size: 0.9rem; flex: 1; color: var(--admin-text-main); }
.saas-search-box svg { color: var(--admin-text-muted); width: 16px; height: 16px; }
.saas-topnav__actions { display: flex; align-items: center; gap: 16px; }

/* Dashboard Content Grid */
.saas-content-pad { padding: 32px; }
.saas-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    box-shadow: var(--admin-shadow-sm);
    padding: 24px;
}

/* Stat Cards Dense */
.saas-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.saas-stat { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.saas-stat__header { display: flex; justify-content: space-between; align-items: flex-start; }
.saas-stat__title { font-size: 0.85rem; font-weight: 600; color: var(--admin-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.saas-stat__icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.saas-stat__value { font-size: 1.8rem; font-weight: 800; color: var(--admin-text-main); line-height: 1; }
.saas-stat__trend { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Minimal SaaS Table */
.saas-table-wrap {
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--admin-surface);
}
.saas-table { width: 100%; border-collapse: collapse; text-align: left; }
.saas-table th {
    background: var(--bg-soft);
    padding: 12px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--admin-border);
}
.saas-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    font-size: 0.95rem;
    color: var(--admin-text-main);
    vertical-align: middle;
}
.saas-table tbody tr:last-child td { border-bottom: none; }
.saas-table tbody tr { transition: background 0.15s; }
.saas-table tbody tr:hover { background: var(--bg-soft); }

/* Status Badges Premium */
.saas-badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 99px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.saas-badge--success { background: #DCFCE7; color: #166534; }
.saas-badge--warning { background: #FEF3C7; color: #92400E; }
.saas-badge--danger  { background: #FEE2E2; color: #991B1B; }
.saas-badge--info    { background: #E0F2FE; color: #075985; }
.saas-badge--neutral { background: var(--bg-strong); color: var(--admin-text-muted); }
[data-theme="dark"] .saas-badge--success { background: rgba(22, 101, 52, 0.3); color: #4ADE80; }
[data-theme="dark"] .saas-badge--warning { background: rgba(146, 64, 14, 0.3); color: #FCD34D; }

/* Settings Layout Vertical Split */
.saas-settings-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.saas-settings-nav { display: flex; flex-direction: column; gap: 4px; }
.saas-settings-tab {
    padding: 10px 16px; border-radius: 8px; color: var(--admin-text-muted);
    font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.saas-settings-tab:hover { background: var(--bg-soft); color: var(--admin-text-main); }
.saas-settings-tab.is-active { background: var(--admin-surface); color: var(--brand-600); box-shadow: var(--admin-shadow-sm); border: 1px solid var(--admin-border); }

/* Forms Premium */
.saas-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--admin-text-main); margin-bottom: 6px; }
.saas-input {
    width: 100%; height: 40px; padding: 0 12px;
    background: var(--admin-surface); border: 1px solid var(--admin-border);
    border-radius: 8px; color: var(--admin-text-main); font-size: 0.95rem;
    transition: border 0.2s, box-shadow 0.2s;
}
.saas-input:focus { border-color: var(--brand-400); outline: none; box-shadow: 0 0 0 3px rgba(255,122,0,0.15); }
.saas-textarea { height: auto; padding: 12px; resize: vertical; min-height: 80px; }

/* Mobile Behavior */
.saas-mobile-toggle { display: none; background: none; border: none; color: var(--admin-text-main); cursor: pointer; }
.saas-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 35; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.saas-mobile-overlay.is-active { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
    .saas-sidebar { transform: translateX(-100%); position: fixed; box-shadow: var(--shadow-xl); }
    .saas-sidebar.is-open { transform: translateX(0); }
    .saas-mobile-toggle { display: block; }
    .saas-settings-layout { grid-template-columns: 1fr; }
    .saas-settings-nav { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
    .saas-settings-tab { white-space: nowrap; }
}
@media (max-width: 640px) {
    .saas-content-pad { padding: 16px; }
    .saas-search-box { display: none; } /* Hide search on small mobile header */
    .saas-table-wrap { overflow-x: auto; }
}

/* ==========================================================================
   39. DASHBOARD RESPONSIVE & MOBILE LAYOUT STYLES
   ========================================================================== */

/* Mobile Dashboard Header */
.dash-mobile-header {
    display: none; /* Hidden on desktop */
    height: 60px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}
.dash-mobile-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.dash-mobile-btn:hover {
    background: var(--bg-soft);
}
.dash-mobile-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.dash-mobile-actions {
    display: flex;
    align-items: center;
}

/* Desktop Notification Bell Positioning */
.dash__desktop-notif {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

/* Sidebar Wrapper & Mobile Drawer Styles */
.dash__sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.dash__sidebar-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.dash__sidebar-wrap {
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 95;
    background: var(--surface);
}

.dash-sidebar-close {
    display: none; /* Hidden on desktop */
}

/* Responsive Media Queries */
@media (max-width: 980px) {
    .dash-mobile-header {
        display: flex; /* Show header on mobile/tablet */
    }
    
    .dash__desktop-notif {
        display: none; /* Hide desktop notification bell on mobile */
    }
    
    .dash {
        grid-template-columns: 1fr; /* Stack layout on mobile */
    }
    
    .dash__sidebar-wrap {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
    }
    .dash__sidebar-wrap.is-open {
        transform: translateX(0);
    }
    
    .dash-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 16px;
        right: 16px;
        background: var(--bg-soft);
        border: none;
        color: var(--text);
        cursor: pointer;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        z-index: 10;
    }
    .dash-sidebar-close:hover {
        background: var(--border);
    }
    
    /* Make the nested sidebar occupy full height and remove redundant borders/padding in drawer mode */
    .dash__sidebar-wrap .sidebar {
        display: block !important;
        height: 100%;
        border-right: none !important;
        box-shadow: none !important;
        padding-top: 60px !important; /* Spacing for close button */
    }
}

/* Responsive Hide-on utility classes */
@media (min-width: 901px) {
    .hide-on-desktop { display: none !important; }
}
@media (max-width: 900px) {
    .hide-on-mobile { display: none !important; }
}

/* Avatar components */
.avatar-circle {
    width: 44px;
    height: 44px;
    background: var(--brand-100);
    color: var(--brand-700);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    border: 2px solid var(--brand-200);
}
[data-theme="dark"] .avatar-circle {
    background: rgba(255,122,0,.2);
    color: var(--brand-400);
    border-color: rgba(255,122,0,.3);
}

.avatar-circle--lg {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
    border-width: 3px;
}

.avatar-edit-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.avatar-edit-btn:hover {
    color: var(--brand-600);
    border-color: var(--brand-300);
}

/* Driver tracking map & list panel */
.track-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    height: calc(100vh - 220px);
    min-height: 500px;
    margin-top: 24px;
}
.track-panel {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}
.track-panel__head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.track-panel__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-text-main);
}
.track-driver-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drv-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    background: var(--admin-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
}
.drv-card:hover {
    border-color: var(--brand-300);
    box-shadow: var(--admin-shadow-sm);
    background: var(--bg-soft);
}
.drv-card.is-selected {
    border-color: var(--brand-500);
    background: var(--brand-50);
}
[data-theme="dark"] .drv-card.is-selected {
    background: rgba(255, 122, 0, 0.1);
}
.drv-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
[data-theme="dark"] .drv-card__avatar {
    background: rgba(255, 122, 0, 0.2);
    color: var(--brand-400);
}
.drv-card__info {
    flex: 1;
    min-width: 0;
}
.drv-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--admin-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drv-card__phone {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    margin-top: 2px;
}
.drv-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.drv-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
.drv-card__ago {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}
.drv-card__order {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--admin-text-main);
    padding: 6px 8px;
    background: var(--bg-soft);
    border-radius: 4px;
    border: 1px solid var(--admin-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drv-card__locate {
    background: none;
    border: none;
    color: var(--admin-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: auto;
}
.drv-card__locate:hover {
    color: var(--brand-500);
    background: var(--border-subtle);
}
.track-map-wrap {
    position: relative;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--admin-shadow-sm);
    height: 100%;
}
#trackmap {
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 980px) {
    .track-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .track-panel {
        height: 300px;
    }
    .track-map-wrap {
        height: 400px;
    }
}


/* ================================================================
   JIBLI FOOD — COMPLETE MOBILE RESPONSIVE OVERHAUL
   Covers: Navbar, Hero, Carousels, Grids, Restaurant, Track,
           Auth, Cart, Footer, Admin, Account pages
   ================================================================ */

/* ── Global ── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    h2 { font-size: clamp(1.35rem, 5vw, 1.85rem); }

    .section { padding: 56px 0; }
    .section--lg { padding: 72px 0; }

    /* ── Navbar ── */
    .glovo-mobile-search { padding-bottom: 10px; }
    .navbar-glovo__inner { gap: 12px; }

    /* ── Hero ── */
    .hero { padding: 32px 0 56px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
    .hero__inner { display: flex !important; flex-direction: column; gap: 32px; align-items: flex-start; text-align: left; }
    .hero__copy { width: 100%; max-width: 100%; margin: 0; padding: 0; }
    .hero__copy h1 { font-size: clamp(2rem, 8vw, 3rem); text-align: left; width: 100%; }
    .hero__copy p { margin: 0 0 28px 0; text-align: left; width: 100%; max-width: 100%; }
    .hero__trust { justify-content: flex-start; gap: 16px; width: 100%; }

    /* Pills scroll */
    .hero__pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .hero__pills::-webkit-scrollbar { display: none; }
    .hero__pills .chip { white-space: nowrap; flex-shrink: 0; }

    /* Hero floats: hide them on mobile to avoid overlap */
    .hero__float { display: none; }
    .hero__visual { max-width: 100%; margin: 0 auto; }
    .hero__photo { border-radius: var(--r-xl); }

    /* Location picker */
    .hero__location-picker { max-width: 100% !important; }
    .hero__location-picker > div > button {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }

    /* ── Section headers ── */
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }
    .section-head .carousel__nav { align-self: flex-end; }
    .section-head .btn { align-self: flex-start; }

    /* ── Grids ── */
    .grid--auto-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
    .grid--auto    { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

    /* ── Carousels ── */
    .carousel__track {
        grid-auto-columns: minmax(240px, 82vw);
        gap: 16px;
    }

    /* ── AI Section ── */
    .ai-section { padding: 56px 0; }
    .ai-card__overlay { padding: 20px !important; }
    .ai-card__play { width: 64px; height: 64px; }
    .ai-card__play svg { width: 22px; height: 22px; }

    /* ── How it works ── */
    .step { padding: 20px; }

    /* ── CTA ── */
    .cta { padding: 40px 20px; border-radius: var(--r-xl); }
    .cta h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* ── Flash messages ── */
    .flashes { right: 12px; left: 12px; max-width: 100%; }

    /* ── Footer ── */
    .footer { padding: 48px 0 32px; margin-top: 56px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__grid > div:first-child { grid-column: 1 / -1; }
    .footer__brand { max-width: 100%; }
}

/* ── Tablet range ── */
@media (max-width: 900px) and (min-width: 769px) {
    .hero__float--1 { left: -4%; }
    .hero__float--2 { right: -4%; }
    .hero__float--3 { left: -4%; }
}

/* ── Restaurant Show Page ── */
@media (max-width: 768px) {
    /* Hero banner */
    .rest-hero {
        aspect-ratio: 16 / 9 !important;
        min-height: 200px !important;
        max-height: 260px !important;
        border-radius: var(--r-xl) !important;
        margin-top: 16px;
    }
    .rest-hero__overlay {
        padding: 20px !important;
        align-items: flex-end;
    }
    .rest-hero__title h1 { font-size: clamp(1.3rem, 5vw, 1.8rem) !important; }

    /* Restaurant meta row: horizontal scroll */
    .rest-hero__meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 12px !important;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .rest-hero__meta::-webkit-scrollbar { display: none; }
    .rest-hero__meta span { white-space: nowrap; flex-shrink: 0; }

    /* Food grid: single column on very small, 2-col on wider mobile */
    .food-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .food-card { flex-direction: row; }
    .food-card__img-wrap { width: 100px !important; height: 100px !important; flex-shrink: 0; }

    /* Category sidebar → horizontal scroll tabs */
    .cat-sidebar {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        gap: 8px !important;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        position: static !important;
        width: 100% !important;
        flex-shrink: 0;
    }
    .cat-sidebar::-webkit-scrollbar { display: none; }
    .cat-sidebar a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 8px 16px !important;
        background: var(--surface) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--r-full) !important;
        font-size: 0.88rem !important;
        transform: none !important;
    }
    .cat-sidebar a::after { display: none !important; }

    /* Mobile cart bar */
    .mobile-cart-bar { display: flex !important; }
    .mobile-cart-bar button { flex: 1; }
}

@media (max-width: 480px) {
    .food-grid { gap: 12px; }
    .food-card { padding: 12px !important; gap: 12px !important; }
    .food-card__img-wrap { width: 80px !important; height: 80px !important; }
    .food-card__name { font-size: 0.95rem !important; }
}

/* ── Auth Pages ── */
@media (max-width: 980px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-form {
        padding: 32px 24px !important;
        max-width: 100% !important;
    }
}

/* ── Cart / Checkout ── */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; gap: 20px; }
    .summary { position: static; padding: 20px; }
    .summary__row--total { font-size: 1.1rem; }
}

/* ── Track Order Page ── */
@media (max-width: 768px) {
    .track-page { padding: 24px 16px 80px; }
    .track-wrap { max-width: 100%; }
    .pro-card { border-radius: 20px; }
    .track-header { padding: 24px 20px; gap: 16px; }
    .track-header .track-badge { font-size: 0.7rem; padding: 4px 10px; }
    .timeline { flex-direction: column; gap: 0; }
    .timeline__step {
        flex: none;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 0 0 0 20px;
        min-height: 60px;
        padding-bottom: 0;
        padding-left: 0;
    }
}

/* ── Orders Page ── */
@media (max-width: 640px) {
    .inv__items-head { display: none; }
    .inv__items-row { grid-template-columns: 1fr auto; }
    .inv__cards { grid-template-columns: 1fr; }
}

/* ── Account Pages ── */
@media (max-width: 860px) {
    .account-layout { grid-template-columns: 1fr !important; }
    .profile-layout { grid-template-columns: 1fr !important; }
    .profile-aside { position: static !important; }
}

/* ── Dashboard (Admin/Driver/Restaurant) ── */
@media (max-width: 980px) {
    .dash { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .dash__main { padding: 20px 16px; }
    .dash__header { flex-direction: column; align-items: stretch; gap: 12px; }
    .dash__header h1 { font-size: 1.5rem; }
}

@media (max-width: 640px) {
    .dash__main { padding: 16px 12px; }
    .stat { padding: 16px; }
    .stat__value { font-size: 1.5rem; }
}

/* ── Table responsive ── */
@media (max-width: 760px) {
    .table--premium thead { display: none; }
    .table--premium tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--r);
        margin-bottom: 10px;
        background: var(--surface);
    }
    .table--premium td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        font-size: 0.88rem;
    }
    .table--premium td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-soft);
        letter-spacing: 0.05em;
        margin-right: 8px;
    }
    .table--premium td:last-child { border-bottom: none; }
    .hide-mobile { display: none !important; }
    .show-mobile { display: initial !important; }
}

/* ── Restaurants list / filter ── */
@media (max-width: 640px) {
    .filterbar__grid { grid-template-columns: 1fr; }
    .filter-card__grid { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
}

/* ── Modals ── */
@media (max-width: 540px) {
    .modal { padding: 12px; }
    .modal__card {
        max-height: calc(100vh - 24px);
        border-radius: var(--r-xl);
    }
    .modal__card[style*="max-width:500px"] { max-width: 100% !important; }
    .modal__content-wrap { padding: 20px !important; }
    .addon-modal .modal__card { border-radius: var(--r-xl) var(--r-xl) 0 0; }
    .modal__footer-sticky { padding: 16px 20px; }
}

/* ── Coursier / Express Page ── */
@media (max-width: 768px) {
    .service-banner { padding: 16px; }
    .service-banner__title { font-size: 1.05rem; }
    .io-card__head { padding: 18px; }
    .io-card__fee { font-size: 1.15rem; }
}

/* ── Saas/Admin Layout ── */
@media (max-width: 640px) {
    .saas-content-pad { padding: 16px; }
}

/* ── Small phone extras (< 400px) ── */
@media (max-width: 400px) {
    .hero__copy h1 { font-size: 1.75rem; }
    .section-head__title h2 { font-size: 1.25rem; }
    .glovo-btn--secondary span { display: none; }
    .rest-hero__meta { font-size: 0.8rem !important; }
    .rest-hero__meta span { gap: 4px !important; }
    .loc-btn span:first-child { display: none; }
    .loc-btn .loc-icon { display: block !important; margin: 0; }
    .loc-btn { padding: 10px !important; border-radius: 50% !important; width: 38px; height: 38px; display: grid; place-items: center; }
}

/* User Menu & Dropdowns (Shared across Navbar and Dashboard Layouts) */
.nav-user-menu {
    position: relative;
}
.glovo-user-dropdown-btn {
    position: relative;
    cursor: pointer;
}
.glovo-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
}
.nav-user-menu:hover .glovo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.glovo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.glovo-dropdown-item:hover {
    background: var(--bg-soft);
    color: var(--brand-500);
}
.glovo-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ===== CATEGORIES CAROUSEL ===== */
.categories-carousel-wrap {
    margin: 40px auto 24px;
    position: relative;
    width: 100%;
}
.categories-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.categories-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 8px;
    width: 100%;
}
.categories-carousel::-webkit-scrollbar {
    display: none;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 90px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-item:hover {
    transform: translateY(-6px);
}
.category-icon-wrap {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.25s ease;
}
.category-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.category-item:hover .category-icon-wrap {
    transform: scale(1.08);
}
.category-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2b1154;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.category-item:hover .category-label {
    color: var(--brand-500);
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #e02460;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
}
.carousel-nav-btn:hover {
    background: #ffffff;
    color: #ff0055;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.carousel-nav-btn.prev-btn {
    left: -23px;
}
.carousel-nav-btn.next-btn {
    right: -23px;
}
.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.92);
}

@media (max-width: 768px) {
    .categories-carousel-wrap {
        margin: 24px auto 16px;
        padding: 0 16px;
    }
    .categories-carousel {
        gap: 20px;
    }
    .category-item {
        width: 80px;
    }
    .category-icon-wrap {
        width: 56px;
        height: 56px;
    }
    .category-label {
        font-size: 0.85rem;
    }
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .carousel-nav-btn svg {
        width: 14px;
        height: 14px;
        stroke-width: 3.5;
    }
    .carousel-nav-btn.prev-btn {
        left: 4px;
    }
    .carousel-nav-btn.next-btn {
        right: 4px;
    }
}
