/* css/theme.css */
        /* =============================================
           MATERIAL DESIGN 3 / ANDROID DESIGN SYSTEM
           ============================================= */
        :root {
            /* ── DARK THEME · SAMBAL BAKAR FIRE PALETTE ── */
            --md-primary: #FF5722;
            --md-primary-container: #3D1A0A;
            --md-on-primary: #FFFFFF;
            --md-on-primary-container: #FFCCBC;
            --md-secondary: #FF8A50;
            --md-secondary-container: #2D1200;
            --md-on-secondary: #1A0800;
            --md-surface: #121212;
            --md-surface-variant: #1E1E1E;
            --md-surface-1: #1C1C1C;
            --md-surface-2: #242424;
            --md-on-surface: #F0E6E0;
            --md-on-surface-variant: #A09088;
            --md-outline: #3A3030;
            --md-outline-variant: #2A2020;
            --md-error: #FF5252;
            --md-error-container: #3D0000;
            --md-success: #66BB6A;
            --md-success-container: #0A2E0A;
            --md-warning: #FFA726;
            --md-warning-container: #2E1A00;
            --md-scrim: rgba(0,0,0,0.7);
            --md-elevation-1: 0 1px 2px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
            --md-elevation-2: 0 2px 6px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
            --md-elevation-3: 0 4px 12px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.5);
            --md-shape-extra-small: 4px;
            --md-shape-small: 8px;
            --md-shape-medium: 12px;
            --md-shape-large: 16px;
            --md-shape-extra-large: 28px;
            --md-shape-full: 50px;
            --safe-area-top: env(safe-area-inset-top, 0px);
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);

/* ── APP CUSTOM VARIABLES (dark default) ── */
            --c-bg: #121212;
            --c-bg2: #0d0d0d;
            --c-card: #1a1a1a;
            --c-card2: #1E1E1E;
            --c-card3: #111111;
            --c-border: #272727;
            --c-border2: #222222;
            --c-input: #111111;
            --c-text: #eeeeee;
            --c-text2: #aaaaaa;
            --c-muted: #666666;
            --c-muted2: #555555;
            --c-nav: #0d0d0d;
            --c-nav-border: #1e1e1e;
            --c-footer: #0d0d0d;
            --c-hero-bg: #1a0800;
            --c-hero-text: #ffffff;
            --c-hero-sub: rgba(255,255,255,0.45);
            --c-social-bg: #1a1a1a;
            --c-divider: rgba(255,255,255,0.05);
            --c-overlay-bg: rgba(0,0,0,0.55);
            --c-qty-bg: #2a2a2a;
        }

/* ── LIGHT MODE ── */
        body.light-mode {
            /* md variables */
            --md-surface: #F8FAFC;
            --md-surface-variant: #F1F5F9;
            --md-surface-1: #EFF6FF;
            --md-surface-2: #DBEAFE;
            --md-on-surface: #0F172A;
            --md-on-surface-variant: #334155;
            --md-outline: #CBD5E1;
            --md-outline-variant: #E2E8F0;
            --md-primary-container: #DBEAFE;
            --md-on-primary-container: #1E3A5F;
            --md-error-container: #FEE2E2;
            --md-success-container: #DCFCE7;
            --md-warning-container: #FEF9C3;
            --md-scrim: rgba(0,0,0,0.4);
            --md-elevation-1: 0 1px 3px rgba(0,0,0,0.08);
            --md-elevation-2: 0 2px 6px rgba(0,0,0,0.1);
            --md-elevation-3: 0 4px 12px rgba(0,0,0,0.12);

/* app custom variables */
            --c-bg: #F8FAFC;
            --c-bg2: #FFFFFF;
            --c-card: #FFFFFF;
            --c-card2: #F1F5F9;
            --c-card3: #F8FAFC;
            --c-border: #E2E8F0;
            --c-border2: #F1F5F9;
            --c-input: #F1F5F9;
            --c-text: #0F172A;
            --c-text2: #1E293B;
            --c-muted: #64748B;
            --c-muted2: #94A3B8;
            --c-nav: #FFFFFF;
            --c-nav-border: #F1F5F9;
            --c-footer: #FFFFFF;
            --c-hero-bg: #EFF6FF;
            --c-hero-text: #0F172A;
            --c-hero-sub: rgba(15,23,42,0.5);
            --c-social-bg: #FFFFFF;
            --c-divider: rgba(0,0,0,0.06);
            --c-overlay-bg: rgba(248,250,252,0.85);
            --c-qty-bg: #F1F5F9;

/* legacy */
            --card-bg: #FFFFFF;
            --card-border: #E2E8F0;
            --input-bg: #F1F5F9;
            --input-border: #E2E8F0;
            --muted-text: #64748B;
            --nav-bg: #FFFFFF;
        }


/* css/base.css */
/* Global body */
        body.light-mode { background: #F8FAFC !important; color: #0F172A !important; }

/* Semua div, section, main — tukar background gelap */
        body.light-mode div,
        body.light-mode main,
        body.light-mode section,
        body.light-mode form,
        body.light-mode label,
        body.light-mode nav { color: inherit; }

/* Override warna background gelap secara agresif */
        body.light-mode [style*="background:#121212"],
        body.light-mode [style*="background: #121212"] { background: #F8FAFC !important; }

body.light-mode [style*="background:#111111"],
        body.light-mode [style*="background:#111;"],
        body.light-mode [style*="background:#111 "],
        body.light-mode [style*="background: #111"],
        body.light-mode [style*="background: #111;"] { background: #F1F5F9 !important; }

body.light-mode [style*="background:#1a1a1a"],
        body.light-mode [style*="background: #1a1a1a"],
        body.light-mode [style*="background:#1A1A1A"] { background: #FFFFFF !important; border-color: #E2E8F0 !important; }

body.light-mode [style*="background:#1e1e1e"],
        body.light-mode [style*="background:#1E1E1E"],
        body.light-mode [style*="background: #1E1E1E"],
        body.light-mode [style*="background: #1e1e1e"] { background: #F1F5F9 !important; }

body.light-mode [style*="background:#0d0d0d"],
        body.light-mode [style*="background:#0D0D0D"],
        body.light-mode [style*="background: #0d0d0d"] { background: #F8FAFC !important; }

body.light-mode [style*="background:#2a2a2a"],
        body.light-mode [style*="background:#2A2A2A"] { background: #F1F5F9 !important; }

body.light-mode [style*="background:#222"],
        body.light-mode [style*="background: #222"] { background: #F1F5F9 !important; }

body.light-mode [style*="background:#333"] { background: #E2E8F0 !important; }

body.light-mode [style*="background:#1A1008"],
        body.light-mode [style*="background:#1a1008"] { background: #F1F5F9 !important; border-color: #E2E8F0 !important; }

body.light-mode [style*="background:#1E1410"],
        body.light-mode [style*="background:#1e1410"] { background: #F1F5F9 !important; border-color: #E2E8F0 !important; }

body.light-mode [style*="background:#1A0800"],
        body.light-mode [style*="background:#1a0800"] { background: #FFFFFF !important; }

body.light-mode [style*="background:#141414"] { background: #F1F5F9 !important; }

body.light-mode [style*="background:#0a0a0a"],
        body.light-mode [style*="background:#0A0A0A"] { background: #F8FAFC !important; }

/* Border colors */
        body.light-mode [style*="border:1px solid #272727"],
        body.light-mode [style*="border: 1px solid #272727"] { border-color: #E2E8F0 !important; }
        body.light-mode [style*="border:1.5px solid #272727"],
        body.light-mode [style*="border: 1.5px solid #272727"] { border-color: #E2E8F0 !important; }
        body.light-mode [style*="border:1px solid #222"],
        body.light-mode [style*="border-bottom:1px solid #222"],
        body.light-mode [style*="border-bottom: 1px solid #222"] { border-color: #E2E8F0 !important; }
        body.light-mode [style*="border-top:1px solid #1e1e1e"],
        body.light-mode [style*="border-top: 1px solid #1e1e1e"],
        body.light-mode [style*="border-bottom:1px solid #1e1e1e"],
        body.light-mode [style*="border-bottom: 1px solid #1e1e1e"] { border-color: #E2E8F0 !important; }
        body.light-mode [style*="border:1.5px solid #3A2A20"],
        body.light-mode [style*="border: 1.5px solid #3A2A20"],
        body.light-mode [style*="border:1px solid #3A2A20"] { border-color: #E2E8F0 !important; }
        body.light-mode [style*="border-top:1px solid #222"],
        body.light-mode [style*="border-bottom:1px solid #333"] { border-color: #E2E8F0 !important; }

/* Text colors */
        body.light-mode [style*="color:#fff"],
        body.light-mode [style*="color: #fff"],
        body.light-mode [style*="color:#ffffff"],
        body.light-mode [style*="color:#FFFFFF"],
        body.light-mode [style*="color:#f0f0f0"],
        body.light-mode [style*="color:#F0F0F0"],
        body.light-mode [style*="color:#F0E6E0"],
        body.light-mode [style*="color:#eee"],
        body.light-mode [style*="color: #eee"] { color: #0F172A !important; }

body.light-mode [style*="color:#555"],
        body.light-mode [style*="color: #555"] { color: #64748B !important; }

body.light-mode [style*="color:#666"],
        body.light-mode [style*="color: #666"] { color: #64748B !important; }

body.light-mode [style*="color:#888"],
        body.light-mode [style*="color: #888"] { color: #64748B !important; }

body.light-mode [style*="color:#999"],
        body.light-mode [style*="color: #999"] { color: #64748B !important; }

body.light-mode [style*="color:#A09088"],
        body.light-mode [style*="color: #A09088"] { color: #64748B !important; }

body.light-mode [style*="color:#444"],
        body.light-mode [style*="color: #444"] { color: #475569 !important; }

/* Inputs & selects */
        body.light-mode input:not([type=radio]):not([type=checkbox]),
        body.light-mode textarea,
        body.light-mode select {
            background: #F1F5F9 !important;
            border-color: #E2E8F0 !important;
            color: #0F172A !important;
        }
        body.light-mode input::placeholder,
        body.light-mode textarea::placeholder { color: #64748B !important; }
        body.light-mode select option { background: #F1F5F9; color: #0F172A; }

/* ── BOTTOM NAV — Glassmorphism Floating Dock (RickEats) ── */
        .renav {
            --rn-accent: #6C4CF1;
            position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
            max-width: 520px; margin: 0 auto;
            display: flex; justify-content: space-around; align-items: flex-end; gap: 2px;
            padding: 9px 8px calc(9px + var(--safe-area-bottom));
            border-radius: 28px;
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(255,255,255,0.55);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            box-shadow: 0 10px 30px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.05);
            overflow: visible;
        }
        body:not(.light-mode) .renav {
            background: rgba(28,28,30,0.72);
            border-color: rgba(255,255,255,0.10);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
        }
        .renav-item {
            flex: 1; min-width: 0; background: none; border: none; cursor: pointer; font-family: inherit;
            display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px;
            padding: 7px 2px 4px; color: #94A3B8;
            transition: color 0.25s ease, transform 0.2s ease;
        }
        .renav-item:active { transform: scale(0.9); }
        .renav-ico { position: relative; display: flex; align-items: center; justify-content: center; height: 26px; transition: transform 0.25s ease; }
        .renav-ico svg { width: 24px; height: 24px; transition: transform 0.25s ease; }
        .renav-lbl { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 66px; }
        /* ── Badge order aktif (butang Pesanan) ── */
        .nav-order-badge {
            position: absolute;
            min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
            border-radius: 999px; background: #EF4444; color: #fff;
            font-size: 10px; font-weight: 800; line-height: 1;
            display: none; align-items: center; justify-content: center;
            box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
            animation: navBadgePulse 1.6s ease-out infinite;
            z-index: 3; pointer-events: none;
        }
        .nav-order-badge.show { display: flex; animation: navBadgePop 0.3s cubic-bezier(0.34,1.56,0.64,1), navBadgePulse 1.6s ease-out 0.3s infinite; }
        .renav-ico .nav-order-badge { top: -6px; left: calc(50% + 4px); }
        .dir-nav-item .nav-order-badge { top: 1px; left: calc(50% + 7px); }
        @keyframes navBadgePulse {
            0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
            70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
            100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
        }
        @keyframes navBadgePop {
            0% { transform: scale(0); }
            100% { transform: scale(1); }
        }
        .renav-item.active { color: var(--rn-accent); }
        .renav-item.active:not(.renav-center) .renav-ico { transform: translateY(-2px); }
        .renav-item.active:not(.renav-center) .renav-ico::before {
            content: ''; position: absolute; inset: -6px -12px; border-radius: 14px;
            background: rgba(108,76,241,0.12); z-index: -1;
        }

        /* ── Center "Kedai" tab — curved floating island ── */
        .renav-center { position: relative; }
        .renav-logo {
            position: relative; width: 56px; height: 56px; border-radius: 50%;
            margin-top: -30px; padding: 4px; box-sizing: border-box;
            background: rgba(255,255,255,0.92);
            box-shadow: 0 8px 18px rgba(15,23,42,0.18), 0 0 0 5px rgba(255,255,255,0.55);
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
        }
        body:not(.light-mode) .renav-logo {
            background: rgba(40,40,44,0.95);
            box-shadow: 0 8px 18px rgba(0,0,0,0.5), 0 0 0 5px rgba(28,28,30,0.7);
        }
        .renav-logo-fb { position: absolute; inset: 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ECE9FD; color: var(--rn-accent); }
        body:not(.light-mode) .renav-logo-fb { background: #241B4A; }
        .renav-logo-fb svg { width: 26px; height: 26px; }
        .renav-logo img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover; border-radius: 50%; display: block; }
        .renav-center.active .renav-logo { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 24px rgba(108,76,241,0.42), 0 0 0 5px rgba(255,255,255,0.55); }
        body:not(.light-mode) .renav-center.active .renav-logo { box-shadow: 0 10px 24px rgba(108,76,241,0.5), 0 0 0 5px rgba(28,28,30,0.7); }
        .renav-center.active .renav-logo::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2.5px solid var(--rn-accent); }
        .renav-store-name { max-width: 84px; }

/* Sticky footer */
        body.light-mode .sticky-footer { background: #fff !important; border-top-color: #E2E8F0 !important; }

/* Category chips */
        /* category nav - dihandle dalam renderMenuPage */

/* Product cards */
        body.light-mode .product-card-online { background: #FFFFFF !important; border: none !important; box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05) !important; }
        body.light-mode .md-cart-item { background: #FFFFFF !important; border-color: #E2E8F0 !important; }

/* Table cards */
        body.light-mode .table-card { background: #FFFFFF !important; border-color: #E2E8F0 !important; }

/* Section label */
        body.light-mode .section-label { color: #64748B !important; }

/* Buttons dengan background gelap */
        body.light-mode button[style*="background:#1a1a1a"],
        body.light-mode button[style*="background: #1a1a1a"] { background: #F1F5F9 !important; color: #0F172A !important; border-color: #E2E8F0 !important; }
        body.light-mode button[style*="background:#1e1e1e"],
        body.light-mode button[style*="background: #1e1e1e"] { background: #F1F5F9 !important; color: #475569 !important; }
        body.light-mode button[style*="background:#2a2a2a"],
        body.light-mode button[style*="background: #2a2a2a"] { background: #F1F5F9 !important; color: #475569 !important; }
        body.light-mode button[style*="background:#111"] { background: #F1F5F9 !important; color: #0F172A !important; }

/* Linear gradient backgrounds */
        body.light-mode [style*="background:linear-gradient(135deg,#1a0800"],
        body.light-mode [style*="background: linear-gradient(135deg, #1a0800"] { background: #FFFFFF !important; }
        body.light-mode [style*="background:linear-gradient(135deg,rgba(255,87,34,0.12)"] { background: linear-gradient(135deg,rgba(255,87,34,0.08),rgba(255,138,80,0.04)) !important; }
        body.light-mode [style*="background:linear-gradient(135deg,rgba(108,99,255,0.1)"] { background: linear-gradient(135deg,rgba(108,99,255,0.08),rgba(108,99,255,0.03)) !important; }
        body.light-mode [style*="background:linear-gradient(135deg,rgba(255,87,34,0.1)"] { background: linear-gradient(135deg,rgba(255,87,34,0.08),rgba(255,138,80,0.03)) !important; }

/* rgba backgrounds */
        body.light-mode [style*="background:rgba(0,0,0,0.4)"],
        body.light-mode [style*="background:rgba(0,0,0,0.5)"],
        body.light-mode [style*="background:rgba(0,0,0,0.6)"] { background: rgba(0,0,0,0.06) !important; }
        body.light-mode [style*="background:rgba(255,255,255,0.05)"],
        body.light-mode [style*="background:rgba(255,255,255,0.08)"],
        body.light-mode [style*="background:rgba(255,255,255,0.1)"] { background: rgba(0,0,0,0.04) !important; }

/* Modal full page */
        body.light-mode [style*="position:fixed;inset:0;background:#111"],
        body.light-mode [style*="position:fixed;inset:0;background: #111"] { background: #F8FAFC !important; }
        body.light-mode [style*="background:var(--c-footer);flex-shrink:0"],
        body.light-mode [style*="background:var(--c-footer);display:flex"] { background: #FFFFFF !important; border-top-color: #E2E8F0 !important; }

/* History point card dark */
        body.light-mode [style*="background:#1E1410;border:1.5px solid #3A2A20"],
        body.light-mode [style*="background: #1E1410"] { background: #F1F5F9 !important; border-color: #E2E8F0 !important; }

/* Order status cards */
        body.light-mode [style*="background:#1a1a1a;border:1px solid #272727;border-radius:14px"],
        body.light-mode [style*="background:#1a1a1a;border:1px solid #272727;border-radius:12px"] { background: #FFFFFF !important; border-color: #E2E8F0 !important; }

/* Md-option-row */
        body.light-mode .md-option-row { background: #FFFFFF !important; border-color: #E2E8F0 !important; color: #0F172A !important; }
        body.light-mode .md-option-row.selected { background: #FFF5F2 !important; border-color: #2E7D4F !important; }
        body.light-mode .pm-opt-row { border-bottom-color: #E8E0DC !important; }

/* Alert/notification boxes */
        body.light-mode [style*="background:rgba(255,167,38,0.08)"],
        body.light-mode [style*="background:rgba(255,82,82,0.15)"] { background: rgba(255,167,38,0.06) !important; }

/* Scrollbar */
        body.light-mode ::-webkit-scrollbar-track { background: #F0EAE7; }
        body.light-mode ::-webkit-scrollbar-thumb { background: #D0C5C0; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { 
            background: #0A0A0A; 
            height: 100%;
        }

body {
            font-family: 'Roboto', sans-serif;
            background: var(--md-surface);
            color: var(--md-on-surface);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            color-scheme: dark;
        }


/* css/components.css */
/* ─── ANDROID STATUS BAR SIMULATION ─── */
        body::before {
            content: '';
            display: block;
            height: var(--safe-area-top);
            background: #1A0800;
        }

/* ─── TYPOGRAPHY ─── */
        .md-display { font-family: 'Google Sans', sans-serif; font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
        .md-headline-large { font-family: 'Google Sans', sans-serif; font-size: 1.75rem; font-weight: 700; }
        .md-headline-medium { font-family: 'Google Sans', sans-serif; font-size: 1.5rem; font-weight: 700; }
        .md-headline-small { font-family: 'Google Sans', sans-serif; font-size: 1.25rem; font-weight: 600; }
        .md-title-large { font-family: 'Google Sans', sans-serif; font-size: 1.125rem; font-weight: 600; }
        .md-title-medium { font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 500; }
        .md-body-large { font-size: 1rem; font-weight: 400; line-height: 1.5; }
        .md-body-medium { font-size: 0.875rem; font-weight: 400; line-height: 1.5; }
        .md-label-large { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; }
        .md-label-medium { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.03em; }

/* ─── TOP APP BAR ─── */
        .md-top-app-bar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: #1C1C1E;
            color: #F8FAFC;
            padding: 0 4px;
            height: 64px;
            display: flex;
            align-items: center;
            box-shadow: none;
        }
        .md-top-app-bar.surface {
            background: #1C1C1E;
            color: #F8FAFC;
            border-bottom: 1px solid #2C2C2E;
            box-shadow: none;
        }
        body.light-mode .md-top-app-bar,
        body.light-mode .md-top-app-bar.surface {
            background: #FFFFFF;
            color: #0F172A;
            border-bottom: 1px solid #F1F5F9;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }
        body.light-mode .md-top-app-bar-title { color: #0F172A !important; }
        body.light-mode .md-icon-btn { color: #0F172A !important; }

/* Tukar warna primary oren kepada hijau dalam light mode */
        body.light-mode { --md-primary: #2E7D4F; --md-secondary: #4CAF7A; }
        body.light-mode .md-add-btn { background: #2563EB !important; }
        body.light-mode .md-nav-item.active { color: #2E7D4F !important; }
        body.light-mode [style*="color:#FF5722"] { color: #2E7D4F !important; }
        body.light-mode [style*="color: #FF5722"] { color: #2E7D4F !important; }
        body.light-mode [style*="color:#FF8A50"] { color: #4CAF7A !important; }
        body.light-mode [style*="color: #FF8A50"] { color: #4CAF7A !important; }
        .md-icon-btn {
            width: 48px;
            height: 48px;
            border-radius: var(--md-shape-full);
            border: none;
            background: transparent;
            color: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            flex-shrink: 0;
            font-size: 1rem;
        }
        .md-icon-btn:hover { background: rgba(255,255,255,0.12); }
        .md-icon-btn:active { background: rgba(255,255,255,0.2); }
        .md-top-app-bar.surface .md-icon-btn:hover { background: rgba(255,87,34,0.15); }
        .md-top-app-bar.surface .md-icon-btn:active { background: rgba(255,87,34,0.25); }
        .md-top-app-bar-title {
            flex: 1;
            font-family: 'Google Sans', sans-serif;
            font-size: 1.125rem;
            font-weight: 600;
            padding: 0 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* ─── BUTTONS ─── */
        .md-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 24px;
            border-radius: var(--md-shape-full);
            border: none;
            font-family: 'Google Sans', sans-serif;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
            text-decoration: none;
            min-height: 40px;
        }
        .md-btn:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

.md-btn-filled {
            background: var(--md-primary);
            color: white;
            box-shadow: 0 2px 8px rgba(255,87,34,0.4);
        }
        .md-btn-filled:hover { box-shadow: 0 4px 16px rgba(255,87,34,0.5); filter: brightness(1.1); }
        .md-btn-filled:active { box-shadow: none; filter: brightness(0.9); }

.md-btn-filled-green {
            background: linear-gradient(135deg, #FF5722, #E64A19);
            color: white;
            box-shadow: 0 2px 12px rgba(255,87,34,0.4);
        }
        .md-btn-filled-green:hover { box-shadow: 0 4px 20px rgba(255,87,34,0.5); filter: brightness(1.1); }

.md-btn-tonal {
            background: #3D1A0A;
            color: #FFCCBC;
            border: 1px solid #5A2A10;
        }
        .md-btn-tonal:hover { background: #4D2A1A; }

.md-btn-outlined {
            background: transparent;
            color: var(--md-primary);
            border: 1.5px solid var(--md-primary);
        }
        .md-btn-outlined:hover { background: rgba(255,87,34,0.1); }

.md-btn-text {
            background: transparent;
            color: var(--md-primary);
            padding: 10px 16px;
        }
        .md-btn-text:hover { background: rgba(255,87,34,0.1); }

.md-btn-full { width: 100%; }

/* ─── CHECKOUT BAR ─── */
        .md-fab {
            position: fixed;
            bottom: calc(88px + var(--safe-area-bottom));
            left: 14px;
            right: 14px;
            z-index: 50;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 10px 5px 70px;
            border-radius: 18px;
            background: #FFFFFF;
            border: 1px solid #E2E8F0;
            box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
            transition: all 0.2s;
            cursor: pointer;
            font-family: inherit;
            animation: fabFloat 3s ease-in-out infinite;
        }
        body:not(.light-mode) .md-fab {
            background: rgba(28,28,30,0.88);
            border: 1px solid #2C2C2E;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
        }
        @keyframes fabFloat {
            0%, 100% { transform: translateY(0px); box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06); }
            50% { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08); }
        }
        .md-fab:active { transform: scale(0.98) !important; animation: none; }
        .md-fab-logo {
            position: absolute;
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            width: 85px;
            height: 85px;
            z-index: 10;
            pointer-events: none;
        }
        .md-fab-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
        }
        .md-fab-badge {
            position: absolute;
            top: 4px;
            right: 6px;
            background: #EF4444;
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 999px;
            display: none;
        }
        .md-fab-price {
            font-size: 16px;
            font-weight: 800;
            color: #2563EB;
            letter-spacing: -0.02em;
            flex: 1;
            text-align: center;
        }
        body:not(.light-mode) .md-fab-price { color: #F8FAFC; }
        .md-fab-checkout {
            background: #2563EB;
            color: white;
            border: none;
            border-radius: 999px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: transform 0.1s;
            pointer-events: none;
        }

/* ─── FLOATING CHECKOUT BAR (RickEats — premium glass) ─── */
        .re-fab {
            position: fixed;
            left: 0; right: 0;
            bottom: calc(104px + var(--safe-area-bottom));
            width: fit-content; max-width: calc(100% - 28px); margin: 0 auto;
            z-index: 60;
            display: flex; flex-direction: column; align-items: stretch; gap: 7px;
            padding: 7px 9px;
            border-radius: 22px;
            background: linear-gradient(135deg, #FFFFFF, #F8F7FF);
            border: 1px solid rgba(255,255,255,0.75);
            box-shadow: 0 12px 32px rgba(91,63,232,0.20), 0 2px 10px rgba(15,23,42,0.08);
            backdrop-filter: blur(16px) saturate(150%);
            -webkit-backdrop-filter: blur(16px) saturate(150%);
            cursor: pointer; font-family: inherit; text-align: left;
            animation: reFabIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
        }
        .re-fab:active { transform: scale(0.985); }
        body:not(.light-mode) .re-fab {
            background: linear-gradient(135deg, rgba(40,40,50,0.92), rgba(28,28,38,0.92));
            border-color: rgba(255,255,255,0.10);
            box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 2px 10px rgba(0,0,0,0.4);
        }
        @keyframes reFabIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

        .re-fab-logo { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
        .re-fab-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 4px 12px rgba(91,63,232,0.30); display: block; }
        .re-fab-badge {
            position: absolute; top: -5px; right: -5px;
            min-width: 21px; height: 21px; padding: 0 5px; box-sizing: border-box;
            border-radius: 999px; background: #EF4444; color: #fff;
            font-size: 11px; font-weight: 800; line-height: 1;
            display: flex; align-items: center; justify-content: center;
            border: 2px solid #fff; box-shadow: 0 2px 6px rgba(239,68,68,0.45);
        }
        body:not(.light-mode) .re-fab-badge { border-color: #1C1C26; }

        .re-fab-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
        .re-fab-items { font-size: 11px; font-weight: 600; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        body:not(.light-mode) .re-fab-items { color: #94A3B8; }
        .re-fab-price { font-size: 18px; font-weight: 800; color: #0F172A; letter-spacing: -0.02em; line-height: 1.1; display: inline-block; transform-origin: left center; }
        body:not(.light-mode) .re-fab-price { color: #F8FAFC; }
        .re-fab-price.re-bump { animation: reBump 0.3s ease; }
        @keyframes reBump { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }

        .re-fab-checkout {
            flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
            background: linear-gradient(135deg, #6C4CF1, #5B3FE8); color: #fff;
            font-size: 13px; font-weight: 800; padding: 10px 15px; border-radius: 999px;
            box-shadow: 0 6px 16px rgba(91,63,232,0.40); pointer-events: none; white-space: nowrap;
        }
        .re-fab-checkout svg { width: 15px; height: 15px; }

        /* Baris atas (logo + jumlah + checkout) */
        .re-fab-row { display: flex; align-items: center; gap: 10px; width: 100%; }
        /* Baris nudge diskaun — penuh, di bawah jumlah & logo (tak berebut dgn Checkout) */
        .re-fab-hint {
            width: 100%; box-sizing: border-box;
            font-size: 11.5px; font-weight: 700; text-align: center;
            padding: 7px 10px; border-radius: 13px;
            background: rgba(91,76,240,0.10); color: #5B4CF0;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .re-fab-hint.saved { background: rgba(22,163,74,0.12); color: #16A34A; }
        body.light-mode .re-fab-hint { color: #5B4CF0 !important; }
        body.light-mode .re-fab-hint.saved { color: #16A34A !important; }
        body:not(.light-mode) .re-fab-hint { background: rgba(139,124,246,0.16); color: #A78BFA; }
        body:not(.light-mode) .re-fab-hint.saved { background: rgba(34,197,94,0.16); color: #4ADE80; }

/* ─── CARDS ─── */
        .md-card {
            background: #1E1E1E;
            border-radius: var(--md-shape-large);
            box-shadow: var(--md-elevation-1);
            overflow: hidden;
        }
        .md-card-outlined {
            background: #1E1E1E;
            border-radius: var(--md-shape-large);
            border: 1px solid var(--md-outline-variant);
        }
        .md-card-filled {
            background:#1E1E1E;
            border-radius: var(--md-shape-large);
        }

/* ─── INPUTS ─── */
        .md-text-field {
            position: relative;
            width: 100%;
        }
        .md-text-field input,
        .md-text-field textarea,
        .md-text-field select {
            width: 100%;
            background: #1E1E1E;
            border: 1.5px solid var(--md-outline);
            border-radius: var(--md-shape-small);
            padding: 14px 16px;
            font-family: 'Roboto', sans-serif;
            font-size: 1rem;
            color: var(--md-on-surface);
            outline: none;
            transition: border-color 0.2s;
            appearance: none;
            -webkit-appearance: none;
        }
        .md-text-field input:focus,
        .md-text-field textarea:focus,
        .md-text-field select:focus {
            border-color: var(--md-primary);
            background: #242424;
            box-shadow: 0 0 0 3px rgba(255,87,34,0.2);
        }
        .md-text-field label {
            display: block;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--md-on-surface-variant);
            margin-bottom: 6px;
            font-family: 'Google Sans', sans-serif;
        }
        .md-input-with-btn {
            display: flex;
            border: 1.5px solid var(--md-outline);
            border-radius: var(--md-shape-small);
            overflow: hidden;
            background: #1E1E1E;
            transition: all 0.2s;
        }
        .md-input-with-btn:focus-within {
            border-color: var(--md-primary);
            background: #242424;
            box-shadow: 0 0 0 3px rgba(255,87,34,0.2);
        }
        .md-input-with-btn .prefix {
            padding: 0 12px;
            background: #2A2A2A;
            display: flex;
            align-items: center;
            font-weight: 500;
            color: var(--md-on-surface-variant);
            border-right: 1px solid var(--md-outline);
            font-size: 0.875rem;
        }
        .md-input-with-btn input {
            flex: 1;
            background: transparent;
            border: none;
            padding: 14px 12px;
            font-size: 1rem;
            color: var(--md-on-surface);
            outline: none;
        }
        .md-input-with-btn button {
            padding: 0 16px;
            background: var(--md-primary);
            color: white;
            border: none;
            font-family: 'Google Sans', sans-serif;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }

/* ─── CHIPS ─── */
        .md-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 16px;
            border-radius: var(--md-shape-full);
            border: 1.5px solid #3A2A20;
            font-family: 'Google Sans', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            color: #A09088;
            background: #1E1410;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            text-decoration: none;
        }
        .md-chip.active,
        .md-chip:active {
            background: #3D1A0A;
            border-color: var(--md-primary);
            color: #FFCCBC;
        }

/* ─── STATUS BADGES ─── */
        .md-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: var(--md-shape-full);
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            font-family: 'Google Sans', sans-serif;
        }
        .md-badge-primary { background:#3D1A0A; color: var(--md-on-primary-container); }
        .md-badge-success { background: var(--md-success-container); color: var(--md-success); }
        .md-badge-error { background: var(--md-error-container); color: var(--md-error); }
        .md-badge-warning { background: var(--md-warning-container); color: var(--md-warning); }
        .md-badge-yellow { background: #FFF9C4; color: #F57F17; }
        .md-badge-purple { background: #EDE7F6; color: #4527A0; }
        .md-badge-teal { background: #E0F2F1; color: #00695C; }
        .md-badge-gray { background: var(--md-surface-variant); color: var(--md-on-surface-variant); }

/* ─── DIVIDERS ─── */
        .md-divider { height: 1px; background: var(--md-outline-variant); margin: 0; }

/* ─── LIST ITEMS ─── */
        .md-list-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            gap: 16px;
            cursor: pointer;
            transition: background 0.15s;
            position: relative;
        }
        .md-list-item:hover { background: rgba(0,0,0,0.04); }
        .md-list-item:active { background: rgba(0,0,0,0.08); }

/* ─── RIPPLE EFFECT ─── */
        .ripple {
            position: relative;
            overflow: hidden;
        }
        .ripple::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .ripple:active::after { opacity: 1; }

/* ─── MODAL / BOTTOM SHEET ─── */
        #modal-container {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 200;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        #modal-container.fullpage-active {
            align-items: stretch !important;
            backdrop-filter: none !important;
            background: transparent !important;
        }
        #modal-container.hidden { display: none !important; }
        #modal-container.flex { display: flex !important; }
        #modal-container.center-modal {
            align-items: center !important;
            padding: 20px !important;
        }
        #modal-container.center-modal #modal-content {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #modal-container.center-modal #modal-content > * {
            border-radius: 24px !important;
            max-height: 90vh;
            overflow-y: auto;
        }
        #modal-content {
            width: 100%;
            max-width: 430px;
            max-height: 92vh;
            display: flex;
            flex-direction: column;
        }
        #modal-content.fullpage-modal {
            max-height: 100dvh !important;
            height: 100dvh !important;
        }
        #modal-content > * {
            border-radius: 28px 28px 0 0 !important;
            max-height: 92vh;
        }
        #modal-content.fullpage-modal > * {
            border-radius: 0 !important;
            max-height: 100dvh !important;
            height: 100dvh !important;
        }
        #modal-container.center-modal #modal-content > * {
            border-radius: 20px !important;
        }
        #pco-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }
        #pco-submit-btn:not(:disabled) { opacity: 1; }
        /* ── App Splash / Loading Screen ── */
        #app-splash {
            --splash-accent: #6C4CF1;   /* warna brand RickEats (ungu) */
            position: fixed; inset: 0; z-index: 99999;
            background: var(--c-bg);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 28px;
            transition: opacity 0.45s ease;
        }
        #app-splash.splash-hide { opacity: 0; pointer-events: none; }
        #app-splash-logo-wrap {
            position: relative;
            width: 96px; height: 96px;
            display: flex; align-items: center; justify-content: center;
        }
        #app-splash-logo {
            width: 84px; height: 84px;
            border-radius: 22px;
            object-fit: cover;
            box-shadow: 0 10px 30px rgba(0,0,0,0.35);
            animation: splash-pulse 1.8s ease-in-out infinite;
        }
        /* Circular loading ring — warna ikut theme brand (ungu) */
        #app-splash-ring {
            position: absolute;
            inset: -14px;
            width: calc(100% + 28px); height: calc(100% + 28px);
            border-radius: 50%;
            border: 3px solid rgba(108,76,241,0.18);
            border-top-color: var(--splash-accent);
            animation: splash-spin 0.9s linear infinite;
        }
        #app-splash-name {
            font-family: 'Google Sans', 'Roboto', sans-serif;
            font-weight: 700; font-size: 1.05rem; letter-spacing: 0.5px;
            background: linear-gradient(135deg, #6C4CF1, #5B3FE8);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; color: var(--splash-accent);
        }
        @keyframes splash-spin { to { transform: rotate(360deg); } }
        @keyframes splash-pulse {
            0%,100% { transform: scale(1); }
            50%     { transform: scale(0.92); }
        }

        /* ── Order Loading Overlay ── */
        #order-loading-overlay {
            position: fixed; inset: 0; z-index: 9999;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
            display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none;
            transition: opacity 0.3s ease;
        }
        #order-loading-overlay.visible { opacity: 1; pointer-events: all; }
        #order-loading-card {
            background: linear-gradient(145deg,#1C1C1E,#141414);
            border: 1.5px solid #3A3A3C;
            border-radius: 28px;
            padding: 36px 44px;
            text-align: center;
            min-width: 220px;
            transform: scale(0.8) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease;
            box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
        }
        #order-loading-overlay.visible #order-loading-card { transform: scale(1) translateY(0); }
        #order-loading-card.ol-failed { border-color: rgba(239,68,68,0.45); }
        @keyframes ol-shake {
            0%,100% { transform: translateX(0) scale(1); }
            15%      { transform: translateX(-8px) scale(1.02); }
            30%      { transform: translateX(8px) scale(1.02); }
            50%      { transform: translateX(-5px); }
            70%      { transform: translateX(5px); }
            85%      { transform: translateX(-2px); }
        }
        #order-loading-card.ol-shaking { animation: ol-shake 0.5s ease-in-out; }
        @keyframes ol-glow {
            0%,100% { box-shadow: 0 0 20px rgba(91,76,240,0.3); }
            50%      { box-shadow: 0 0 40px rgba(91,76,240,0.6); }
        }
        .ol-icon-wrap {
            width: 72px; height: 72px;
            background: rgba(91,76,240,0.12);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 18px;
            animation: ol-glow 2s ease-in-out infinite;
            transition: background 0.3s, box-shadow 0.3s, animation 0.3s;
        }
        .ol-icon-wrap.ol-fail-glow {
            background: rgba(239,68,68,0.12);
            animation: none;
            box-shadow: 0 0 32px rgba(239,68,68,0.35);
        }
        @keyframes ol-spin {
            0%   { transform: rotate(0deg) scale(1); }
            25%  { transform: rotate(90deg) scale(1.05); }
            50%  { transform: rotate(180deg) scale(1); }
            75%  { transform: rotate(270deg) scale(1.05); }
            100% { transform: rotate(360deg) scale(1); }
        }
        .ol-icon {
            font-size: 2.2rem;
            display: inline-block;
            animation: ol-spin 2.8s cubic-bezier(0.4,0,0.2,1) infinite;
            transition: transform 0.2s;
        }
        .ol-icon.ol-stop { animation: none; }
        .ol-title { font-size: 16px; font-weight: 800; color: #F8FAFC; letter-spacing: 0.01em; margin-bottom: 5px; transition: color 0.3s; }
        .ol-sub   { font-size: 12px; color: #8E8E93; margin-bottom: 20px; transition: color 0.3s; }
        @keyframes ol-bounce {
            0%,60%,100% { transform: translateY(0); opacity: 0.25; }
            30%          { transform: translateY(-10px); opacity: 1; }
        }
        .ol-dots { display: flex; justify-content: center; gap: 8px; transition: opacity 0.3s; }
        .ol-dots span {
            width: 9px; height: 9px; border-radius: 50%;
            animation: ol-bounce 1.4s ease-in-out infinite;
        }
        .ol-dots span:nth-child(1) { background:#5B4CF0; animation-delay:0s; }
        .ol-dots span:nth-child(2) { background:#6C4CF1; animation-delay:0.2s; }
        .ol-dots span:nth-child(3) { background:#a78bfa; animation-delay:0.4s; }
        @keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(200%)} }
        .ol-shimmer-wrap {
            margin-top: 18px; height: 3px;
            background: rgba(255,255,255,0.06);
            border-radius: 99px; overflow: hidden;
            width: 140px; margin-left: auto; margin-right: auto;
            transition: opacity 0.3s;
        }
        .ol-shimmer-bar {
            height: 100%; width: 50%;
            background: linear-gradient(90deg,transparent,#5B4CF0,#a78bfa,transparent);
            animation: shimmer 1.8s ease-in-out infinite;
        }
        .ol-retry-btn {
            margin-top: 18px; width: 100%; padding: 12px;
            background: #ef4444; color: white; border: none;
            border-radius: 14px; font-size: 14px; font-weight: 700;
            cursor: pointer; font-family: inherit;
            opacity: 0; transform: translateY(10px);
            transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
        }
        .ol-retry-btn.ol-visible { opacity: 1; transform: translateY(0); }
        /* ── Light mode overrides ── */
        body.light-mode #order-loading-overlay {
            background: rgba(15,23,42,0.4);
        }
        body.light-mode #order-loading-card {
            background: linear-gradient(145deg, #FFFFFF, #F8FAFC);
            border-color: #E2E8F0;
            box-shadow: 0 24px 64px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04) inset;
        }
        body.light-mode #order-loading-card.ol-failed { border-color: rgba(239,68,68,0.4); }
        body.light-mode .ol-title { color: #0F172A; }
        body.light-mode .ol-sub   { color: #64748B; }
        body.light-mode .ol-shimmer-wrap { background: rgba(0,0,0,0.06); }
        .md-bottom-sheet {
            background: #1A1410;
            border-radius: 28px 28px 0 0;
            display: flex;
            flex-direction: column;
            max-height: 92vh;
            border-top: 1px solid #3A2A20;
        }
        .md-bottom-sheet-handle {
            width: 32px;
            height: 4px;
            background: var(--md-outline);
            border-radius: 2px;
            margin: 12px auto 8px;
            flex-shrink: 0;
        }
        .md-bottom-sheet-header {
            padding: 8px 20px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        .md-bottom-sheet-body {
            flex: 1;
            overflow-y: auto;
            padding: 0 20px;
            overscroll-behavior: contain;
        }
        .md-bottom-sheet-footer {
            padding: 16px 20px calc(16px + var(--safe-area-bottom));
            border-top: 1px solid #3A2A20;
            background: #1A1410;
            flex-shrink: 0;
        }


/* css/pages.css */
/* ─── HOME PAGE HERO ─── */
        .md-hero {
            background: linear-gradient(180deg, #1A0800 0%, #2D1000 60%, #3D1A00 100%);
            color: white;
            padding: 32px 20px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .md-hero-bg {
            position: absolute;
            inset: 0;
            background-image: var(--c-hero-banner, none);
            background-size: cover;
            background-position: center;
            opacity: 0.35;
        }
        .md-hero::before {
            content: '';
            position: absolute;
            top: -40%;
            right: -20%;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: rgba(255,87,34,0.08);
        }
        .md-hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: rgba(255,138,80,0.06);
        }
        .md-hero-content { position: relative; z-index: 1; }
        .md-hero-icon {
            width: 72px;
            height: 72px;
            border-radius: 20px;
            background: rgba(255,255,255,0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            font-size: 1.75rem;
            backdrop-filter: blur(4px);
        }

/* ─── ORDER TYPE CARDS ─── */
        .md-order-card {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 20px;
            border-radius: var(--md-shape-extra-large);
            border: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
            position: relative;
            overflow: hidden;
        }
        .md-order-card:active { transform: scale(0.98); }
        .md-order-card-blue {
            background: linear-gradient(135deg, #BF360C, #E64A19);
            color: white;
            box-shadow: 0 4px 16px rgba(255,87,34,0.3);
        }
        .md-order-card-green {
            background: linear-gradient(135deg, #4E342E, #6D4C41);
            color: white;
            box-shadow: 0 4px 16px rgba(109,76,65,0.3);
        }
        .md-order-card-icon {
            width: 52px;
            height: 52px;
            border-radius: 16px;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

/* ─── PRODUCT CARDS ─── */
        .md-product-card {
            background:#1E1410;
            border-radius: var(--md-shape-large);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid var(--md-outline-variant);
        }
        .md-product-card:active { transform: scale(0.97); box-shadow: var(--md-elevation-1); }
        .md-product-img {
            width: 100%;
            aspect-ratio: 4/3;
            object-fit: cover;
            background: var(--md-surface-variant);
        }
        .md-product-body { padding: 12px; }
        .md-add-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: #2563EB;
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.875rem;
            transition: all 0.15s;
            box-shadow: 0 2px 8px rgba(37,99,235,0.35);
        }
        .md-add-btn:active { transform: scale(0.9); box-shadow: 0 1px 4px rgba(37,99,235,0.2); }

/* ─── TABLE TICKET CARDS ─── */
        /* ── TABLE CARDS ── */
        @keyframes flicker {
            0%,100% { opacity:1; } 50% { opacity:0.7; }
        }
        @keyframes shake {
            0%,100% { transform: translateX(0); }
            15% { transform: translateX(-6px); }
            30% { transform: translateX(6px); }
            45% { transform: translateX(-5px); }
            60% { transform: translateX(5px); }
            75% { transform: translateX(-3px); }
            90% { transform: translateX(3px); }
        }
        .option-group-error {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 2px rgba(239,68,68,0.2) !important;
            animation: shake 0.45s ease;
        }
        .option-group-error-label {
            color: #ef4444 !important;
        }
        .table-card {
            position: relative;
            border-radius: 16px;
            border: none;
            width: 100%;
            aspect-ratio: 1/1.1;
            cursor: pointer;
            transition: transform 0.18s, box-shadow 0.18s;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 12px 8px;
            font-family: inherit;
        }
        .table-card:active { transform: scale(0.93); }

/* Available */
        .table-available {
            background: #1C1C1E;
            border: 1.5px solid #2563EB;
            box-shadow: 0 0 16px rgba(37,99,235,0.2), 0 2px 8px rgba(0,0,0,0.3);
        }
        .table-available:hover {
            box-shadow: 0 0 24px rgba(37,99,235,0.35), 0 4px 12px rgba(0,0,0,0.3);
            transform: translateY(-2px);
        }
        .table-available .table-icon { font-size: 2rem; }
        .table-available .table-glow {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 40%;
            background: linear-gradient(to top, rgba(37,99,235,0.1), transparent);
            pointer-events: none;
        }

/* Used */
        .table-used {
            background: #1C1C1E;
            border: 1.5px solid #F59E0B;
            box-shadow: 0 0 12px rgba(245,158,11,0.15), 0 2px 8px rgba(0,0,0,0.3);
        }
        .table-used .table-icon { font-size: 2rem; }
        .table-used .table-glow {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 40%;
            background: linear-gradient(to top, rgba(245,158,11,0.08), transparent);
            pointer-events: none;
        }

/* POS / Disabled */
        .table-pos {
            background: #141414;
            border: 1.5px solid #2A2A2A;
            opacity: 0.45;
            cursor: not-allowed;
        }
        .table-pos .table-icon { font-size: 2rem; filter: grayscale(1); }

.table-name {
            font-size: 0.9rem;
            font-weight: 700;
            margin-top: 8px;
            color: #F8FAFC;
            text-align: center;
            letter-spacing: 0.01em;
        }
        .table-status-dot {
            width: 7px; height: 7px;
            border-radius: 50%;
            margin-bottom: 6px;
        }
        .dot-green { background: #2563EB; box-shadow: 0 0 8px #2563EB; animation: flicker 2s ease-in-out infinite; }
        .dot-orange { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
        .dot-gray { background: #555; }

.table-action-label {
            margin-top: 6px;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            padding: 3px 10px;
            border-radius: 20px;
        }
        .label-fire { background: rgba(37,99,235,0.15); color: #60A5FA; border: 1px solid rgba(37,99,235,0.3); }
        .label-amber { background: rgba(245,158,11,0.12); color: #FBBF24; border: 1px solid rgba(245,158,11,0.3); }
        .label-gray { background: rgba(255,255,255,0.05); color: #666; border: 1px solid #2A2A2A; }

/* Light mode table cards */
        body.light-mode .table-available {
            background: #FFFFFF;
            border: 1.5px solid #2563EB;
            box-shadow: 0 4px 16px rgba(37,99,235,0.15), 0 1px 4px rgba(0,0,0,0.06);
        }
        body.light-mode .table-available:hover {
            box-shadow: 0 6px 24px rgba(37,99,235,0.25), 0 2px 8px rgba(0,0,0,0.08);
        }
        body.light-mode .table-available .table-glow {
            background: linear-gradient(to top, rgba(37,99,235,0.06), transparent);
        }
        body.light-mode .table-used {
            background: #FFFFFF;
            border: 1.5px solid #F59E0B;
            box-shadow: 0 4px 16px rgba(245,158,11,0.12), 0 1px 4px rgba(0,0,0,0.06);
        }
        body.light-mode .table-used .table-glow {
            background: linear-gradient(to top, rgba(245,158,11,0.06), transparent);
        }
        body.light-mode .table-pos {
            background: #F8FAFC;
            border: 1.5px solid #E2E8F0;
        }
        body.light-mode .table-name { color: #0F172A; }
        body.light-mode .label-fire { background: rgba(37,99,235,0.08); color: #2563EB; border: 1px solid rgba(37,99,235,0.2); }
        body.light-mode .label-amber { background: rgba(245,158,11,0.08); color: #D97706; border: 1px solid rgba(245,158,11,0.2); }
        body.light-mode .label-gray { background: rgba(0,0,0,0.04); color: #94A3B8; border: 1px solid #E2E8F0; }
        body.light-mode .dot-green { background: #2563EB; box-shadow: 0 0 6px #2563EB; }


/* ─── CART ITEMS ─── */
        .md-cart-item {
            background: #1E1410;
            border-radius: var(--md-shape-large);
            padding: 16px;
            border: 1px solid #3A2A20;
        }
        .md-qty-control {
            display: flex;
            align-items: center;
            border: 1.5px solid var(--md-outline);
            border-radius: var(--md-shape-full);
            overflow: hidden;
        }
        .md-qty-btn {
            width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
            font-size: 0.875rem;
        }
        .md-qty-btn:hover { background: var(--md-surface-variant); }
        .md-qty-btn.dec { color: var(--md-error); }
        .md-qty-btn.inc { color: var(--md-secondary); }
        .md-qty-value {
            width: 36px;
            text-align: center;
            font-weight: 700;
            font-size: 0.9rem;
        }

/* ─── STATUS FLOW ─── */
        @keyframes pulse-dot-green {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
            70% { transform: scale(1.25); box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); }
        }
        @keyframes fill-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
        @keyframes flow-line-active { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.status-flow-container { display: flex; justify-content: space-between; text-align: center; position: relative; padding-top: 2rem; margin: 0 -4px; }
        .flow-step { position: relative; width: 25%; font-size: 0.7rem; line-height: 1.2; color: var(--md-on-surface-variant); padding: 0 2px; font-family: 'Google Sans', sans-serif; }
        .flow-step::before { content: ''; position: absolute; top: -1.75rem; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--md-outline); background-color: var(--md-surface); z-index: 10; transition: all 0.3s ease; }
        .flow-step:not(:first-child)::after { content: ''; position: absolute; top: -1.15rem; right: 50%; width: 100%; height: 2.5px; background-color: var(--md-outline); z-index: 5; }
        .flow-step.completed { color: #1B5E20; font-weight: 600; }
        .flow-step.completed::before { border-color: #2E7D32; background-color: #2E7D32; color: white; content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; display: flex; align-items: center; justify-content: center; }
        .flow-step.completed:not(:first-child)::after { background-color: #2E7D32; animation: fill-line 0.5s ease-out forwards; transform-origin: right; }
        .flow-step.pulsing.completed::before { animation: pulse-dot-green 1.5s infinite; }
        .flow-step.pulsing:not(:first-child)::after { background: linear-gradient(to right, #2E7D32 50%, var(--md-outline) 50%); background-size: 200% 100%; animation: flow-line-active 1.8s linear infinite; transform-origin: right; }
        .flow-step .time { font-size: 0.65rem; color: var(--md-on-surface-variant); margin-top: 4px; height: 1rem; }

/* ─── BLOCKING OVERLAY ─── */
        .blocking-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(0,0,0,0.75);
            z-index: 300;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            backdrop-filter: blur(4px);
        }

/* ─── WHATSAPP ANIMATION ─── */
        @keyframes pulse-whatsapp {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.06); }
        }
        .whatsapp-link-animated {
            color: var(--md-error);
            font-weight: 700;
            text-decoration: underline;
            display: inline-block;
            animation: pulse-whatsapp 2s infinite;
        }

/* ─── PAGE TRANSITIONS ─── */
        .page-enter { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease-out, transform 0.25s ease-out; }

/* ─── STICKY CATEGORY NAV ─── */
        .md-category-scroll {
            position: sticky;
            top: 64px;
            z-index: 90;
            background: #121212;
            border-bottom: 1px solid #2A1A10;
            padding: 10px 16px;
        }
        .md-category-scroll-inner {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 2px;
        }
        .md-category-scroll-inner::-webkit-scrollbar { display: none; }

/* ─── SCROLLBAR HIDE ─── */
        .overflow-x-auto::-webkit-scrollbar,
        .overflow-y-auto::-webkit-scrollbar { display: none; }

/* ─── RADIO & CHECKBOX ─── */
        .md-option-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border: 1.5px solid #3A2A20;
            border-radius: var(--md-shape-medium);
            cursor: pointer;
            transition: all 0.2s;
            background: #1E1410;
        }
        .md-option-row:hover { border-color: var(--md-primary); background: rgba(255,87,34,0.08); }
        .md-option-row input[type=radio],
        .md-option-row input[type=checkbox] {
            width: 20px;
            height: 20px;
            accent-color: var(--md-primary);
            cursor: pointer;
        }
        .md-option-row.selected { border-color: var(--md-primary); background: #3D1A0A; }

/* ─── SNACKBAR ─── */
        #alert-placeholder { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9998; width: 90%; max-width: 360px; pointer-events: none; }

/* ─── TIME OPTION BUTTONS ─── */
        .time-option-btn {
            padding: 12px;
            border: 1.5px solid var(--md-outline);
            border-radius: var(--md-shape-medium);
            background:#1E1410;
            color: var(--md-on-surface);
            font-family: 'Google Sans', sans-serif;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        .time-option-btn:hover { border-color: var(--md-primary); background:#3D1A0A; }
        .time-option-btn.active, #set-current-time-btn.active { background: var(--md-primary); color: white; border-color: var(--md-primary); }
        #arrival-time-select.active { border-color: var(--md-primary); background:#3D1A0A; color: var(--md-on-primary-container); }

/* ─── MISC ─── */
        .sticky-footer {
            position: sticky;
            bottom: 0;
            background: #1A1410;
            border-top: 1px solid #3A2A20;
            padding: 16px 20px calc(16px + var(--safe-area-bottom));
            z-index: 80;
        }
        .h-spacer { height: 160px; }
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px #F8FAFC inset !important;
            -webkit-text-fill-color: #0F172A !important;
            caret-color: #0F172A;
        }
        body:not(.light-mode) input:-webkit-autofill,
        body:not(.light-mode) input:-webkit-autofill:hover,
        body:not(.light-mode) input:-webkit-autofill:focus,
        body:not(.light-mode) input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px #2C2C2E inset !important;
            -webkit-text-fill-color: #F8FAFC !important;
            caret-color: #F8FAFC;
        }
        .section-label {
            font-family: 'Google Sans', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #FF8A50;
            margin-bottom: 8px;
        }

        /* ═══════════════════════════════════════════════════════════
           DIRECTORY MODE — Premium F&B Store Picker (ZUS / Starbucks feel)
           webapp.html tanpa ?store=
           ═══════════════════════════════════════════════════════════ */
        .dir-wrap {
            --dir-primary: #5B3FE8;
            --dir-primary-soft: rgba(91,63,232,0.08);
            --dir-primary-container: #ECE9FD;
            --dir-shadow: 0 2px 14px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
            min-height: 100vh; color: var(--c-text);
            background:
                linear-gradient(to bottom, rgba(248,250,252,0.82) 0%, rgba(248,250,252,0.92) 55%, rgba(248,250,252,0.97) 100%),
                url('https://arleta.site/interactivelink/1261/Rickeats-background.png') center top / cover no-repeat fixed,
                var(--c-bg);
            padding-bottom: calc(96px + var(--safe-area-bottom));
        }
        body:not(.light-mode) .dir-wrap {
            --dir-primary: #8B7CF6;
            --dir-primary-soft: rgba(139,124,246,0.14);
            --dir-primary-container: #241B4A;
            --dir-shadow: 0 2px 14px rgba(0,0,0,0.4);
            background:
                linear-gradient(to bottom, rgba(15,17,23,0.84) 0%, rgba(15,17,23,0.92) 55%, rgba(15,17,23,0.97) 100%),
                url('https://arleta.site/interactivelink/1261/Rickeats-background.png') center top / cover no-repeat fixed,
                var(--c-bg);
        }
        .dir-wrap .dir-col { max-width: 520px; margin: 0 auto; }


/* css/directory.css */
        /* ── Top bar: brand + bell ── */
        .dir-top {
            max-width: 520px; margin: 0 auto;
            padding: calc(14px + var(--safe-area-top)) 18px 4px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .dir-brand { display: flex; align-items: center; gap: 11px; }
        .dir-brand-logo {
            width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(91,63,232,0.32);
        }
        .dir-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
        .dir-brand-name {
            font-family: 'Google Sans', sans-serif; font-size: 1.2rem; font-weight: 800;
            letter-spacing: -0.02em; line-height: 1;
        }
        .dir-brand-tag { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; color: var(--dir-primary); text-transform: uppercase; margin-top: 3px; }
        .dir-bell {
            width: 44px; height: 44px; border-radius: 50%; background: var(--c-card);
            border: 1px solid var(--c-border2); color: var(--c-text);
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            position: relative; box-shadow: var(--dir-shadow); flex-shrink: 0;
        }
        .dir-bell::after {
            content: ''; position: absolute; top: 10px; right: 11px;
            width: 8px; height: 8px; border-radius: 50%; background: var(--dir-primary);
            border: 2px solid var(--c-card);
        }

        /* ── Greeting + reward pill ── */
        #dir-hello {
            max-width: 520px; margin: 0 auto; padding: 12px 18px 4px;
            display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
            min-height: 56px;
        }
        .dir-hello-title {
            font-family: 'Google Sans', sans-serif; font-size: 1.75rem; font-weight: 800;
            letter-spacing: -0.035em; line-height: 1.08;
        }
        .dir-hello-sub { font-size: 0.85rem; color: var(--c-muted); margin-top: 5px; }
        .dir-reward-pill {
            flex-shrink: 0; display: flex; align-items: center; gap: 10px;
            background: var(--c-card); border: 1px solid var(--c-border2); border-radius: 16px;
            padding: 9px 13px 9px 10px; cursor: pointer; box-shadow: var(--dir-shadow); font-family: inherit;
        }
        .dir-reward-pill:active { transform: scale(0.97); }
        .dir-reward-star {
            width: 32px; height: 32px; border-radius: 50%; background: var(--dir-primary);
            display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
        }
        .dir-reward-pts { font-size: 1rem; font-weight: 800; line-height: 1; color: var(--c-text); text-align: left; }
        .dir-reward-pts span { font-size: 0.66rem; font-weight: 600; color: var(--c-muted); margin-left: 3px; }
        .dir-reward-link { font-size: 0.66rem; font-weight: 700; color: var(--dir-primary); margin-top: 3px; display: flex; align-items: center; gap: 3px; }

        /* ── Login / auth card ── */
        .dir-card { background: var(--c-card); border: 1px solid var(--c-border2); border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: var(--dir-shadow); }
        .dir-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.01em; }
        .dir-sub { color: var(--c-muted); font-size: 0.8rem; margin-bottom: 14px; line-height: 1.45; }
        .dir-input {
            width: 100%; padding: 13px 15px; background: var(--c-input);
            border: 1.5px solid var(--c-border2); border-radius: 13px;
            color: var(--c-text); font-size: 1rem; outline: none; font-family: inherit; margin-bottom: 10px;
        }
        .dir-input:focus { border-color: var(--dir-primary); }
        .dir-btn {
            width: 100%; padding: 14px; background: var(--dir-primary); color: #fff;
            border: none; border-radius: 13px; font-size: 0.92rem; font-weight: 800;
            cursor: pointer; font-family: inherit;
        }
        .dir-btn:disabled { opacity: 0.6; cursor: default; }
        .dir-link {
            display: block; text-align: center; margin-top: 10px; color: var(--c-muted);
            font-size: 0.78rem; text-decoration: none; cursor: pointer; background: none; border: none;
            font-family: inherit; width: 100%;
        }
        .dir-msg { font-size: 0.78rem; text-align: center; margin-top: 10px; min-height: 1em; }
        .dir-msg.error { color: #ef4444; }
        .dir-msg.info { color: var(--c-muted); }
        .dir-otp-display {
            text-align: center; background: var(--dir-primary-container); border: 1px dashed var(--dir-primary);
            border-radius: 13px; padding: 10px; margin-bottom: 10px; font-size: 0.8rem; color: var(--c-muted);
        }
        .dir-otp-display strong { display: block; font-size: 1.6rem; letter-spacing: 0.3em; color: var(--dir-primary); margin-top: 4px; }

        /* ── Promo banner carousel ── */
        .dir-promo { max-width: 520px; margin: 12px auto 2px; padding: 0 18px; }
        .dir-promo-track {
            display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
            scrollbar-width: none; -webkit-overflow-scrolling: touch;
        }
        .dir-promo-track::-webkit-scrollbar { display: none; }
        .dir-promo-slide {
            position: relative; flex: 0 0 100%; scroll-snap-align: center; border-radius: 24px;
            overflow: hidden; min-height: 120px; display: flex; align-items: stretch;
            background: linear-gradient(135deg, #4A33C7 0%, #2A1C6E 100%);
            box-shadow: 0 12px 32px rgba(91,63,232,0.28);
        }
        .dir-promo-content { position: relative; z-index: 2; flex: 1; max-width: 56%; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
        .dir-promo-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; color: #E0D7FF !important; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
        .dir-promo-title { font-family: 'Google Sans', sans-serif; font-size: 1.3rem; font-weight: 800; color: #ffffff !important; letter-spacing: -0.025em; line-height: 1.12; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
        .dir-promo-desc {
            font-size: 0.76rem; color: rgba(255,255,255,0.85) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .dir-promo-btn { align-self: flex-start; margin-top: 10px; background: #fff; color: #160B0D; border: none; border-radius: 12px; padding: 9px 18px; font-size: 0.78rem; font-weight: 800; cursor: pointer; font-family: inherit; }
        .dir-promo-img {
            position: absolute; inset: 0; left: auto; width: 48%; height: 100%; object-fit: cover;
            -webkit-mask-image: linear-gradient(to right, transparent, #000 42%);
            mask-image: linear-gradient(to right, transparent, #000 42%);
        }
        .dir-promo-slide-full { background: var(--c-card); box-shadow: none; }
        .dir-promo-img-full { width: 100%; height: 100%; object-fit: cover; display: block; }
        .dir-promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
        .dir-promo-dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--c-border); transition: all 0.3s; }
        .dir-promo-dots span.on { width: 20px; background: var(--dir-primary); }

        /* ── Popular Hari Ini (horizontal scroll) ── */
        .dir-pop { max-width: 520px; margin: 18px auto 0; }
        .dir-pop-head {
            padding: 0 18px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
        }
        .dir-pop-title { font-family: 'Google Sans', sans-serif; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
        .dir-pop-all { background: none; border: none; color: var(--dir-primary); font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap; }
        .dir-pop-track {
            display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 4px;
            scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        }
        .dir-pop-track::-webkit-scrollbar { display: none; }
        .dir-pop-card {
            flex: 0 0 148px; scroll-snap-align: start; background: var(--c-card);
            border: 1px solid var(--c-border2); border-radius: 18px; overflow: hidden;
            box-shadow: var(--dir-shadow); text-decoration: none; color: inherit;
            display: flex; flex-direction: column;
        }
        .dir-pop-card:active { transform: scale(0.985); }
        .dir-pop-img { width: 100%; height: 112px; object-fit: cover; background: var(--c-bg2); display: block; }
        .dir-pop-img-fb {
            width: 100%; height: 112px; background: var(--dir-primary-container);
            display: flex; align-items: center; justify-content: center; color: var(--dir-primary); font-size: 1.6rem;
        }
        .dir-pop-body { padding: 9px 11px 11px; }
        .dir-pop-name { font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dir-pop-store { font-size: 0.68rem; color: var(--c-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dir-pop-price { font-size: 0.92rem; font-weight: 800; color: var(--dir-primary); margin-top: 6px; }

        /* ── Selected / last branch card ── */
        #dir-selected { max-width: 520px; margin: 0 auto; padding: 0 18px; }
        #dir-selected:not(:empty) { margin-top: 16px; }
        .dir-selected-card {
            display: flex; align-items: center; gap: 14px; background: var(--c-card);
            border: 1px solid var(--c-border2); border-radius: 20px; padding: 14px;
            box-shadow: var(--dir-shadow); cursor: pointer; text-decoration: none; color: inherit;
        }
        .dir-selected-card:active { transform: scale(0.99); }
        .dir-selected-pin {
            width: 48px; height: 48px; border-radius: 14px; background: var(--dir-primary-container);
            display: flex; align-items: center; justify-content: center; color: var(--dir-primary); flex-shrink: 0;
        }
        .dir-selected-info { flex: 1; min-width: 0; }
        .dir-selected-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-muted); margin-bottom: 2px; }
        .dir-selected-name { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dir-selected-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 0.75rem; color: var(--c-muted); }
        .dir-chevron-round {
            width: 36px; height: 36px; border-radius: 50%; background: var(--c-bg2); border: 1px solid var(--c-border2);
            display: flex; align-items: center; justify-content: center; color: var(--c-muted); flex-shrink: 0;
        }

        /* ── Search ── */
        .dir-search-wrap { position: relative; max-width: 520px; margin: 16px auto 4px; padding: 0 18px; }
        .dir-search-icon { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); color: var(--c-muted); display: flex; pointer-events: none; }
        .dir-search-input {
            width: 100%; padding: 15px 16px 15px 48px; background: var(--c-card);
            border: 1px solid var(--c-border2); border-radius: 16px;
            color: var(--c-text); font-size: 0.92rem; outline: none; font-family: inherit;
            box-sizing: border-box; box-shadow: var(--dir-shadow);
        }
        .dir-search-input:focus { border-color: var(--dir-primary); }

        /* ── Section header ── */
        .dir-list-header {
            max-width: 520px; margin: 18px auto 0; padding: 0 18px 12px;
            display: flex; align-items: center; justify-content: space-between; gap: 10px;
        }
        .dir-list-title { font-family: 'Google Sans', sans-serif; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
        .dir-loc-btn {
            background: none; border: none; color: var(--dir-primary);
            font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit;
            display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px;
        }
        .dir-loc-btn:disabled { opacity: 0.6; }

        /* ── Chip tapisan kategori ── */
        .dir-cat-chips {
            max-width: 520px; margin: 0 auto 12px; padding: 2px 18px 2px;
            display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
        }
        .dir-cat-chips::-webkit-scrollbar { display: none; }
        .dir-cat-chip {
            flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
            background: var(--c-card); border: 1px solid var(--c-border2);
            color: var(--c-text); font-size: 0.8rem; font-weight: 700; font-family: inherit;
            cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .dir-cat-chip.active { background: var(--dir-primary); border-color: var(--dir-primary); color: #fff; }

        /* ── Store list — 1 cawangan = 1 row ── */
        #dir-store-list {
            max-width: 520px; margin: 0 auto; padding: 0 18px 8px;
            display: flex; flex-direction: column; gap: 12px;
        }
        .dir-store-card {
            display: flex; align-items: center; gap: 13px; background: var(--c-card);
            border: 1px solid var(--c-border2); border-radius: 20px; padding: 12px;
            text-decoration: none; color: inherit; box-shadow: var(--dir-shadow);
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .dir-store-card:active { transform: scale(0.985); }
        .dir-store-card.closed { cursor: pointer; }
        .dir-store-card.closed .dir-store-photo,
        .dir-store-card.closed .dir-store-photo-fb { filter: grayscale(1); opacity: 0.6; }
        .dir-store-card.closed .dir-store-name,
        .dir-store-card.closed .dir-store-loc { opacity: 0.6; }
        .dir-pick-btn.closed { border-color: var(--c-border2); color: var(--c-muted); }
        .dir-store-photo { width: 92px; height: 92px; border-radius: 15px; object-fit: cover; background: var(--c-bg2); flex-shrink: 0; }
        .dir-store-photo-fb {
            width: 92px; height: 92px; border-radius: 15px; background: var(--dir-primary-container);
            display: flex; align-items: center; justify-content: center; color: var(--dir-primary); flex-shrink: 0;
        }
        .dir-store-info { flex: 1; min-width: 0; }
        .dir-store-name { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dir-store-loc { font-size: 0.78rem; color: var(--c-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dir-store-cuisine { font-size: 0.92rem; color: var(--c-muted); margin-top: 4px; line-height: 1.35; }
        .dir-store-place { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--c-muted); margin-top: 5px; }
        .dir-store-place svg { flex-shrink: 0; }
        .dir-store-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dir-store-card.closed .dir-store-cuisine,
        .dir-store-card.closed .dir-store-place { opacity: 0.6; }
        .dir-store-status-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 0.72rem; flex-wrap: wrap; }
        .dir-store-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 9px; flex-shrink: 0; }
        .dir-store-dist { font-size: 0.73rem; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
        .dir-pick-btn { border: 1.5px solid var(--dir-primary); color: var(--dir-primary); background: transparent; border-radius: 12px; padding: 7px 18px; font-size: 0.78rem; font-weight: 800; font-family: inherit; }

        /* status badge */
        .dir-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #16A34A; }
        .dir-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; display: inline-block; }
        .dir-status.closed { color: #DC2626; }
        .dir-status.closed .dot { background: #DC2626; }
        .dir-store-hours { color: var(--c-muted); font-weight: 500; }

        /* empty / loading */
        #dir-empty { text-align: center; color: var(--c-muted); padding: 50px 20px; font-size: 0.85rem; }
        #dir-empty .dir-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
        #dir-loading { text-align: center; color: var(--c-muted); padding: 40px 20px; font-size: 0.9rem; }

        /* footer */
        .dir-footer-card {
            max-width: 520px; margin: 10px auto 16px; padding: 16px;
            display: flex; align-items: center; gap: 13px;
            background: var(--c-card); border: 1px solid var(--c-border2); border-radius: 20px; box-shadow: var(--dir-shadow);
        }
        .dir-footer-icon {
            width: 44px; height: 44px; border-radius: 13px; background: var(--dir-primary-container);
            display: flex; align-items: center; justify-content: center; color: var(--dir-primary); flex-shrink: 0;
        }
        .dir-footer-text { flex: 1; min-width: 0; font-size: 0.78rem; color: var(--c-muted); }
        .dir-footer-text strong { display: block; font-size: 0.88rem; color: var(--c-text); margin-bottom: 2px; }
        .dir-contact-btn {
            flex-shrink: 0; background: var(--dir-primary); border: none; color: #fff;
            font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; padding: 10px 15px; border-radius: 13px;
        }

        /* ── Bottom navigation — Glassmorphism Floating Dock (tiada tab kedai) ── */
        .dir-bottom-nav {
            --dnav-accent: #5B3FE8; --dnav-soft: rgba(91,63,232,0.12);
            position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
            max-width: 520px; margin: 0 auto;
            display: flex; justify-content: space-around; align-items: center;
            padding: 9px 8px calc(9px + var(--safe-area-bottom));
            border-radius: 28px;
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(255,255,255,0.55);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            box-shadow: 0 10px 30px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.05);
        }
        body:not(.light-mode) .dir-bottom-nav {
            --dnav-accent: #8B7CF6; --dnav-soft: rgba(139,124,246,0.16);
            background: rgba(28,28,30,0.72);
            border-color: rgba(255,255,255,0.10);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
        }
        .dir-nav-item {
            position: relative;
            flex: 1; background: none; border: none; cursor: pointer;
            display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 2px 4px;
            color: var(--c-muted); font-family: inherit;
            transition: color 0.25s ease, transform 0.2s ease;
        }
        .dir-nav-item:active { transform: scale(0.9); }
        .dir-nav-item svg { position: relative; z-index: 1; transition: transform 0.25s ease; }
        .dir-nav-item span { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
        .dir-nav-item.active { color: var(--dnav-accent); }
        .dir-nav-item.active svg { transform: translateY(-2px); }
        .dir-nav-item.active::before {
            content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
            width: 48px; height: 30px; border-radius: 14px; background: var(--dnav-soft); z-index: 0;
        }

        /* ── Modal log masuk (directory — wajib) ── */
        .dir-login-overlay {
            --dir-primary: #5B3FE8;
            --dir-primary-container: #ECE9FD;
            position: fixed; inset: 0; z-index: 1300;
            display: flex; align-items: center; justify-content: center; padding: 20px;
            background: rgba(15,12,30,0.55);
        }
        body:not(.light-mode) .dir-login-overlay {
            --dir-primary: #8B7CF6;
            --dir-primary-container: #241B4A;
        }
        .dir-login-box { width: 100%; max-width: 380px; }
        .dir-login-box .dir-card { margin-bottom: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
        .dir-wrap.dir-locked { filter: blur(7px); pointer-events: none; user-select: none; }

        /* ── Modal log masuk kedai (?store=) — guna tema ungu sama seperti direktori ── */
        #login-overlay {
            --dir-primary: #5B3FE8;
            --dir-primary-container: #ECE9FD;
            --dir-shadow: 0 2px 14px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
        }
        body:not(.light-mode) #login-overlay {
            --dir-primary: #8B7CF6;
            --dir-primary-container: #241B4A;
            --dir-shadow: 0 2px 14px rgba(0,0,0,0.4);
        }
        #login-box .dir-card { margin-bottom: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
