/* AlphaPos Premium Theme — Royal Blue / Elf Green / Coral Red */

/* ==========================================
   1. Theme Variables & Base Color Palettes
   ========================================== */

/* DEFAULT Theme: Light Mode */
:root {
    --bg-app: #f0f4ff;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #e8eeff;
    --drawer-footer-bg: #f0f4ff;
    --border-color: rgba(45, 113, 248, 0.10);
    --border-color-active: #2D71F8;

    --primary: #2D71F8;
    --primary-hover: #1a5ce0;
    --primary-glow: rgba(45, 113, 248, 0.18);
    --primary-light: rgba(45, 113, 248, 0.08);

    --secondary: #1C8370;
    --secondary-hover: #16705f;
    --secondary-glow: rgba(28, 131, 112, 0.18);

    --success: #1C8370;
    --success-bg: rgba(28, 131, 112, 0.08);
    --success-border: rgba(28, 131, 112, 0.18);

    --warning: #ff9500;
    --warning-bg: rgba(255, 149, 0, 0.08);
    --warning-border: rgba(255, 149, 0, 0.18);

    --error: #FC4A4A;
    --error-bg: rgba(252, 74, 74, 0.08);
    --error-border: rgba(252, 74, 74, 0.18);

    --text-main: #1a1f36;
    --text-muted: #6b7294;
    --text-dark: #4a5078;

    --header-bg: rgba(255, 255, 255, 0.82);
    --card-shadow: 0 2px 16px rgba(45, 113, 248, 0.06);
    --card-hover-shadow: 0 8px 32px rgba(45, 113, 248, 0.12);
    --cart-bar-bg: rgba(255, 255, 255, 0.92);
    --cart-badge-bg: #2D71F8;
    --cart-badge-text: #ffffff;

    --action-btn-bg: #2D71F8;
    --action-btn-text: #ffffff;
    --action-btn-hover: #1a5ce0;

    --dev-panel-bg: rgba(240, 244, 255, 0.88);
    --dev-panel-border: rgba(45, 113, 248, 0.10);
    --dev-radio-bg: rgba(45, 113, 248, 0.04);
    --dev-radio-border: rgba(45, 113, 248, 0.08);
    --dev-info-bg: rgba(255, 255, 255, 0.7);
    --add-btn-bg: rgba(45, 113, 248, 0.08);
    --add-btn-text: #2D71F8;

    --category-tab-bg: rgba(45, 113, 248, 0.06);
    --category-tab-active-bg: #2D71F8;
    --category-tab-active-text: #ffffff;

    --glass-blur: saturate(180%) blur(20px);
    --transition-standard: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);

    /* Gradient presets */
    --gradient-primary: linear-gradient(135deg, #2D71F8 0%, #1a5ce0 100%);
    --gradient-success: linear-gradient(135deg, #1C8370 0%, #16705f 100%);
    --gradient-error: linear-gradient(135deg, #FC4A4A 0%, #e03030 100%);
    --gradient-hero: linear-gradient(160deg, #2D71F8 0%, #1C8370 50%, #FC4A4A 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(240,244,255,0.6) 100%);
}

/* OVERRIDE Theme: Dark Mode */
body.dark-theme {
    --bg-app: #0c1021;
    --bg-surface: #151a30;
    --bg-surface-elevated: #1e2440;
    --drawer-footer-bg: #0c1021;
    --border-color: rgba(45, 113, 248, 0.18);
    --border-color-active: #2D71F8;

    --primary: #4d90ff;
    --primary-hover: #2D71F8;
    --primary-glow: rgba(45, 113, 248, 0.30);
    --primary-light: rgba(45, 113, 248, 0.12);

    --secondary: #2aa890;
    --secondary-hover: #1C8370;
    --secondary-glow: rgba(28, 131, 112, 0.30);

    --success: #2aa890;
    --success-bg: rgba(42, 168, 144, 0.10);
    --success-border: rgba(42, 168, 144, 0.20);

    --warning: #ffb340;
    --warning-bg: rgba(255, 179, 64, 0.10);
    --warning-border: rgba(255, 179, 64, 0.20);

    --error: #ff6b6b;
    --error-bg: rgba(255, 107, 107, 0.10);
    --error-border: rgba(255, 107, 107, 0.20);

    --text-main: #e8ecf4;
    --text-muted: #7a82a6;
    --text-dark: #5a6190;

    --header-bg: rgba(12, 16, 33, 0.85);
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 8px 32px rgba(45, 113, 248, 0.15);
    --cart-bar-bg: rgba(21, 26, 48, 0.94);
    --cart-badge-bg: #4d90ff;
    --cart-badge-text: #0c1021;

    --action-btn-bg: #4d90ff;
    --action-btn-text: #0c1021;
    --action-btn-hover: #2D71F8;

    --dev-panel-bg: rgba(12, 16, 33, 0.88);
    --dev-panel-border: rgba(45, 113, 248, 0.18);
    --dev-radio-bg: rgba(45, 113, 248, 0.06);
    --dev-radio-border: rgba(45, 113, 248, 0.10);
    --dev-info-bg: rgba(0, 0, 0, 0.3);
    --add-btn-bg: rgba(45, 113, 248, 0.12);
    --add-btn-text: #4d90ff;

    --category-tab-bg: rgba(45, 113, 248, 0.08);
    --category-tab-active-bg: #4d90ff;
    --category-tab-active-text: #0c1021;

    --gradient-primary: linear-gradient(135deg, #4d90ff 0%, #2D71F8 100%);
    --gradient-success: linear-gradient(135deg, #2aa890 0%, #1C8370 100%);
    --gradient-error: linear-gradient(135deg, #ff6b6b 0%, #FC4A4A 100%);
    --gradient-hero: linear-gradient(160deg, #2D71F8 0%, #2aa890 50%, #ff6b6b 100%);
    --gradient-card: linear-gradient(145deg, rgba(21,26,48,0.9) 0%, rgba(30,36,64,0.6) 100%);
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    top: 0;
}

#main-content {
    scroll-margin-top: 20px;
}

/* ==========================================
   2. System Reset & Base Layout Setup
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.015em;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(180deg, #dce4ff 0%, #f0f4ff 40%, #f0f4ff 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease;
}

body.dark-theme {
    background: linear-gradient(180deg, #060810 0%, #0c1021 40%, #0c1021 100%);
}

/* App Container Frame */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--bg-app);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 200px;
    box-shadow: 0 0 80px rgba(45, 113, 248, 0.08), 0 0 0 1px var(--border-color);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme .app-container {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
}

/* ==========================================
   3. Header Section + Language Switcher
   ========================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #2D71F8; /* Blue theme matching bottom bar */
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.4s ease, padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

/* ── Scroll-hide: header + promo collapse when user scrolls down ── */
.promo-banner-container {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin     0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform  0.4s cubic-bezier(0.4, 0, 0.2, 1),
                var(--transition-standard);
    transform-origin: top center;
    will-change: max-height, opacity, transform;
}

/* State: header scrolled up — hide promo banner */
.header-scrolled-up .promo-banner-container {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: scaleY(0.85) translateY(-8px);
    pointer-events: none;
    overflow: hidden;
}

/* State: header scrolled up — compact app-header */
.header-scrolled-up .app-header {
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Smooth transition on app-header padding */
.app-header {
    transition: background-color 0.4s ease,
                padding-top   0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow    0.35s ease;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: background 0.4s ease;
    box-shadow: 0 0 8px var(--primary-glow);
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FFFFFF; /* White on dark green header */
    transition: color 0.4s ease;
}

/* Circular Logo in Header */
.header-logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
}

.header-logo-inner {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
}

/* White-coloured controls for dark green header */
.header-btn-white {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.header-btn-white:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* Table badge on dark green header */
.header-table-badge {
    background: rgba(255,255,255,0.18) !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    color: #FFFFFF !important;
}

.header-table-badge .table-text {
    color: #FFFFFF !important;
}

/* Header Action Controls (Theme Toggle, Language, Table ID) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language Switcher — Premium Dropdown */
.lang-dropdown {
    position: relative;
    z-index: 100;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-elevated);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 52px;
}

.lang-dropdown-toggle:hover {
    border-color: var(--border-color-active);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.lang-dropdown-toggle .lang-chevron {
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.lang-dropdown.open .lang-dropdown-toggle .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 84px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    transition: background 0.15s;
}

.lang-dropdown-item:hover {
    background: var(--primary-light);
}

.lang-dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-name {
    line-height: 1;
}

#langCurrentFlag {
    font-size: 16px;
    line-height: 1;
}

/* Apple-style Theme Toggle Button */
.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--dev-radio-bg);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    transition: var(--transition-spring);
    border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.1);
}

.table-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid rgba(45, 113, 248, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition-standard);
}

.table-badge:hover {
    background-color: var(--primary-light);
    border-color: rgba(45, 113, 248, 0.2);
}

/* ==========================================
   4. Location HUD (iOS Dynamic Alert Style)
   ========================================== */
.security-banner {
    display: none !important; /* Runs in background, visually hidden */
    margin: 16px 20px 20px 20px;
    padding: 14px 18px;
    border-radius: 14px;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
}

.sync-health-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 20px 12px 20px;
    padding: 9px 12px;
    border: 1px solid var(--success-border);
    border-radius: 8px;
    background: var(--success-bg);
    color: var(--text-main);
    box-shadow: var(--card-shadow);
}

.sync-health-panel.pending {
    border-color: var(--warning-border);
    background: var(--warning-bg);
}

.sync-health-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sync-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    flex: 0 0 auto;
}

.sync-health-panel.pending .sync-health-dot {
    background: var(--warning);
}

.sync-health-title {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sync-health-meta {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sync-health-retry {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    min-height: 30px;
    padding: 0 10px;
}

.sync-health-retry:disabled {
    cursor: default;
    opacity: 0.55;
}

/* ==========================================
   4b. Promotions Banner Carousel Style (Apple Premium Design)
   ========================================== */
.promo-banner-container {
    margin: 16px 20px 10px 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    height: 180px;
    transition: var(--transition-standard);
}

.promo-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.promo-slide.active {
    opacity: 1;
    z-index: 2;
}

.promo-slide img,
.promo-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.promo-placeholder-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.promo-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11.5px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.promo-indicators {
    position: absolute;
    bottom: 12px;
    right: 20px;
    z-index: 4;
    display: flex;
    gap: 6px;
}

.promo-indicators .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-standard);
    cursor: pointer;
}

.promo-indicators .indicator.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.security-banner.checking {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
}

.security-banner.allowed {
    background-color: var(--success-bg);
    border-color: var(--success-border);
}

.security-banner.restricted {
    background-color: var(--error-bg);
    border-color: var(--error-border);
}

.security-banner.warn {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
}

.banner-icon {
    font-size: 18px;
}

.banner-content {
    flex-grow: 1;
}

.banner-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.security-banner.allowed .banner-title { color: var(--success); }
.security-banner.restricted .banner-title { color: var(--error); }
.security-banner.warn .banner-title { color: var(--warning); }

.banner-desc {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-main);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ==========================================
   5. Category Filter System
   ========================================== */
.category-tabs-container {
    padding: 0 0 20px 0;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 30px;
    background-color: var(--category-tab-bg);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-spring);
}

.category-tab:hover {
    color: var(--primary);
    background-color: var(--primary-light);
    border-color: rgba(45, 113, 248, 0.15);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: var(--category-tab-active-text);
    font-weight: 600;
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================
   6. Product Catalog Grid & Card Styles
   ========================================== */
.menu-container {
    padding: 0 20px;
    flex-grow: 1;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 20px 0;
    color: var(--text-main);
    letter-spacing: -0.022em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Product Card (Grabfood-style layout) */
.menu-item-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    padding: 16px;
    border-radius: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    min-height: 140px;
}

.menu-item-card:hover {
    border-color: rgba(45, 113, 248, 0.2);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(45, 113, 248, 0.10);
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.menu-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.menu-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
    letter-spacing: -0.02em;
}

/* Grabfood-style larger image on the right */
.menu-item-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 14px;
}

.menu-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Overlapping buttons on the bottom center of the image */
.item-actions-hud {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grabfood themed ADD button */
.add-item-btn {
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid var(--success-border);
    background-color: var(--success-bg);
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(28, 131, 112, 0.10);
    transition: var(--transition-spring);
    white-space: nowrap;
}

.add-item-btn:hover {
    background: var(--gradient-success);
    border-color: var(--success);
    color: white;
}

/* Quantity controls in lists */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 2px 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(45, 113, 248, 0.06);
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--success);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, transform 0.2s;
}

.qty-btn:hover {
    background-color: var(--success-bg);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    font-size: 13px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    color: var(--text-main);
}



/* ==========================================
   7. Floating Cart Summary Pill
   ========================================== */
.cart-bar-container {
    position: fixed;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 40px);
    max-width: 440px;
    z-index: 90;
    opacity: 0;
    transition: var(--transition-spring);
}

.cart-bar-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-bar-content {
    background: var(--cart-bar-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 40px;
    padding: 10px 14px 10px 22px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-spring);
}

body.dark-theme .cart-bar-content {
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.cart-bar-content:hover {
    border-color: var(--primary);
    transform: scale(1.01);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.cart-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--cart-badge-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    margin-right: 12px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cart-summary-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.cart-total-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.cart-view-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-spring);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.cart-view-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

/* ==========================================
   8. Apple Pay Style Checkout Drawer & Sheets
   ========================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
    backdrop-filter: blur(8px);
}

body.dark-theme .cart-drawer-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.cart-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(45, 113, 248, 0.08);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .cart-drawer {
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
}

.cart-drawer-overlay.show .cart-drawer {
    transform: translateX(-50%) translateY(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-notch {
    width: 36px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin: 0 auto 12px auto;
}

.drawer-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title-row h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-drawer-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--dev-radio-bg);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-standard);
}

.close-drawer-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Cart item rows in drawer */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-details {
    flex-grow: 1;
    padding-right: 16px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.cart-item-price-sum {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.drawer-footer {
    padding: 20px 20px 34px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--drawer-footer-bg);
    transition: background-color 0.4s ease;
}

/* Subtotals values */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.breakdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
}

.total-row {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.grand-total-price {
    font-size: 18px;
    color: var(--primary);
    font-weight: 800;
}

/* Dynamic Pay button (Black in light, White in dark) */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.primary-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--action-btn-text);
    cursor: pointer;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-standard);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.primary-action-btn:hover:not(.disabled) {
    background: var(--gradient-primary);
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

.primary-action-btn.disabled {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

body.dark-theme .primary-action-btn.disabled {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
}

.location-warning-text {
    font-size: 11px;
    color: var(--error);
    text-align: center;
    line-height: 1.4;
    margin-top: 4px;
    font-weight: 500;
}

.hide {
    display: none !important;
}


/* ==========================================
   10. Toast Notifications & Helpers
   ========================================== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    box-shadow: 0 8px 24px var(--primary-glow);
    z-index: 200;
    opacity: 0;
    transition: var(--transition-spring);
}

body.dark-theme .toast {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Loading Spinners */
.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

body:not(.dark-theme) .primary-action-btn:not(.disabled) .btn-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

body.dark-theme .primary-action-btn:not(.disabled) .btn-spinner {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: black;
}

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

/* ==========================================
   11. View Panel Switching & Navigation Tabs
   ========================================== */
.app-nav-tabs {
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 12px;
    position: sticky;
    top: 64px;
    z-index: 90;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-standard);
    position: relative;
}

.nav-tab-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.nav-tab:hover .nav-tab-icon {
    transform: scale(1.1);
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.status-tab-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--gradient-error);
    color: white;
    font-size: 9px;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 14px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 6px var(--error-bg);
}

.view-panel {
    transition: opacity 0.3s ease;
}

.view-panel.hide {
    display: none !important;
    opacity: 0;
}

.view-panel.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   12. Order History & Tracking Styles
   ========================================== */
.status-view-container {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.status-header {
    background-color: var(--bg-surface);
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-total-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.session-total-badge .label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.session-total-badge .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.status-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.status-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 4px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item-card {
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-standard);
}

.status-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.status-item-card.served-item {
    background-color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .status-item-card.served-item {
    background-color: rgba(22, 22, 23, 0.4);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.item-qty {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 8px;
}

.item-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.cooking {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.status-badge.ready {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status-badge.served {
    background: var(--primary-light);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

body.dark-theme .status-badge.served {
    background: var(--primary-light);
}

.status-badge.cancelled {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.served-action-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.reorder-action-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
}

.reorder-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ==========================================
   13. Call Staff & service Styles
   ========================================== */
.service-view-container {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.service-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-header p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-capsule {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.service-capsule::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-capsule:hover::after {
    opacity: 1;
}

.service-capsule:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-3px);
}

.service-capsule:active {
    transform: scale(0.98);
}

.service-icon {
    font-size: 24px;
}

.service-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.active-request-box {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.request-status-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--error);
}

.pulse-ring {
    width: 8px;
    height: 8px;
    background: var(--gradient-error);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(252, 74, 74, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(252, 74, 74, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(252, 74, 74, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(252, 74, 74, 0);
    }
}

/* ==========================================
   16. Onboarding Wizard Styles
   ========================================== */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.onboarding-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 36px 28px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 30px 70px rgba(45, 113, 248, 0.15), 0 0 0 1px var(--border-color);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.onboarding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 30px 30px 0 0;
}

.onboarding-card.active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
    animation: popIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loading-card {
    gap: 14px;
}

.brand-loader {
    position: relative;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}

.brand-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(45, 113, 248, 0.12);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.brand-loader-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 10px 28px var(--primary-glow);
}

.loading-card h2 {
    margin: 0;
}

.loading-card p {
    margin-bottom: 4px;
}

.loading-skeleton-stack {
    width: 100%;
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.loading-skeleton-stack span {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(45,113,248,0.08), rgba(45,113,248,0.18), rgba(45,113,248,0.08));
    background-size: 220% 100%;
    animation: skeletonShimmer 1.25s ease-in-out infinite;
}

.loading-skeleton-stack span:nth-child(1) {
    width: 82%;
    justify-self: center;
}

.loading-skeleton-stack span:nth-child(2) {
    width: 64%;
    justify-self: center;
}

.loading-skeleton-stack span:nth-child(3) {
    width: 46%;
    justify-self: center;
}

.onboarding-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.onboarding-header p.subtitle {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step 1: Welcome & Verification Logo Animation */
.logo-animation-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 40px;
    z-index: 2;
    background: var(--gradient-primary);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px var(--primary-glow);
    animation: float 3s ease-in-out infinite;
}

.logo-pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.15;
    z-index: 1;
    animation: circlePulse 3s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-pulse-circle.delay-1 {
    animation-delay: 1s;
}

.logo-pulse-circle.delay-2 {
    animation-delay: 2s;
}

@keyframes circlePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Radar scanner styling */
.verification-status-box {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
    transition: var(--transition-standard);
}

.radar-container {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.radar-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 3;
}

.radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(45, 113, 248, 0.3);
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

.radar-ring-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
    animation: radarRipple 2s infinite ease-out;
}

@keyframes radarRipple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.verification-status-box.allowed {
    border-color: var(--success-border);
    background-color: var(--success-bg);
}

.verification-status-box.allowed .radar-container {
    background: var(--success-bg);
}

.verification-status-box.allowed .radar-dot {
    background: var(--success);
}

.verification-status-box.allowed .radar-ring-2 {
    background: var(--success);
}

.verification-status-box.allowed .radar-ring {
    border-color: var(--success-border);
    animation: none;
}

.verification-status-box.restricted {
    border-color: var(--error-border);
    background-color: var(--error-bg);
}

.verification-status-box.restricted .radar-container {
    background: var(--error-bg);
}

.verification-status-box.restricted .radar-dot {
    background: var(--error);
}

.verification-status-box.restricted .radar-ring-2 {
    background: var(--error);
    animation: none;
}

.verification-status-box.restricted .radar-ring {
    border-color: var(--error-border);
    animation: none;
}

.verification-text {
    flex-grow: 1;
}

.verify-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.verify-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.onboarding-next-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    width: 100%;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.onboarding-next-btn:hover:not(.disabled) {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--primary-glow);
}

.onboarding-next-btn.disabled {
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

/* Step 2: Interactive Table Layout */
.interactive-table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    height: 140px;
}

.interactive-table {
    position: relative;
    width: 120px;
    height: 120px;
    background: var(--bg-surface-elevated);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition-standard);
}

body.dark-theme .interactive-table {
    background: #222;
}

.table-center {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    z-index: 5;
}

.table-center-text {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-muted);
}

.table-center-text span {
    font-size: 14px;
    color: var(--text-main);
}

.seats-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.seat {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: seatEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes seatEnter {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.guest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 28px 0;
    width: 100%;
}

.guest-pill {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    height: 52px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.guest-pill:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.guest-pill.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
    transform: translateY(-2px) scale(1.03);
}

.onboarding-action-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.onboarding-back-btn {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.onboarding-back-btn:hover {
    background: var(--primary-light);
    border-color: rgba(45, 113, 248, 0.15);
    color: var(--primary);
}

.start-order-btn {
    flex-grow: 1;
    background: var(--gradient-primary);
    color: var(--action-btn-text);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.start-order-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--primary-glow);
}

/* Step 3: Success Checkmark Animation */
.success-checkmark-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--success);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--success);
    animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s forwards;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: strokeCircle .6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--success);
    animation: strokeCheck .3s cubic-bezier(0.16, 1, 0.3, 1) .8s forwards;
}

@keyframes strokeCircle {
    100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
    100% { stroke-dashoffset: 0; }
}

@keyframes fillCheckmark {
    100% { box-shadow: inset 0px 0px 0px 40px rgba(28, 131, 112, 0.12); }
}

@keyframes scaleCheckmark {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.setup-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-surface-elevated);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
}

.setup-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* ==========================================
   17. Premium Micro-Animations & Page Entrance
   ========================================== */

/* ---- Directional Fade-In Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUpBounce {
    0%   { opacity: 0; transform: translateY(60px); }
    60%  { opacity: 1; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.6); }
    70%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes skeletonShimmer {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50%      { box-shadow: 0 0 20px 4px var(--primary-glow); }
}

/* ---- Page Entrance Classes (stagger-ready) ---- */
.anim-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in-down {
    opacity: 0;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in-scale {
    opacity: 0;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-pop-in {
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Stagger delay helpers */
.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.10s; }
.anim-delay-3 { animation-delay: 0.15s; }
.anim-delay-4 { animation-delay: 0.20s; }
.anim-delay-5 { animation-delay: 0.25s; }
.anim-delay-6 { animation-delay: 0.30s; }
.anim-delay-7 { animation-delay: 0.35s; }
.anim-delay-8 { animation-delay: 0.40s; }
.anim-delay-9 { animation-delay: 0.45s; }
.anim-delay-10 { animation-delay: 0.50s; }
.anim-delay-11 { animation-delay: 0.55s; }
.anim-delay-12 { animation-delay: 0.60s; }

/* ---- Header Entrance ---- */
.app-header {
    animation: fadeInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Promo Banner Entrance ---- */
.promo-banner-container {
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

/* ---- Nav Tabs Entrance ---- */
.app-nav-tabs {
    animation: fadeInDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    opacity: 0;
}

/* ---- Search Bar ---- */
.search-bar-container {
    padding: 0 0 12px 0;
    animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
    padding: 12px 18px;
    border-radius: 50px;
    background: var(--bg-surface);
    border: 1.5px solid rgba(45, 113, 248, 0.08);
    box-shadow: 0 4px 18px rgba(45, 113, 248, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .search-bar {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 6px 22px rgba(45, 113, 248, 0.12), 0 0 0 3.5px var(--primary-glow);
    transform: translateY(-1px);
}

.search-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-main);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-clear-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, background 0.2s;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
}

.search-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.search-empty-state.visible {
    display: flex;
}

.search-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.search-empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Category Tabs Entrance ---- */
.category-tabs-container {
    animation: fadeInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.30s forwards;
    opacity: 0;
}

/* ---- Section Title Entrance ---- */
.section-title {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
    opacity: 0;
}

/* ---- Menu Card Entrance (staggered via JS) ---- */
.menu-item-card {
    animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--card-hover-shadow);
}

.category-tab {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.category-tab:active {
    transform: scale(0.95);
}

/* Cart Jiggle Shake */
@keyframes cartJiggle {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.08) rotate(-1deg); }
    50% { transform: scale(1.08) rotate(1deg); }
    75% { transform: scale(1.08) rotate(-0.5deg); }
}

.cart-bar-container.show .cart-bar-content.jiggle {
    animation: cartJiggle 0.4s ease-out;
}

/* Add Item Button Scale Animation */
.add-item-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

.add-item-btn:hover {
    transform: scale(1.12);
}

.add-item-btn:active {
    transform: scale(0.9);
}

/* Springy Cart Drawer slide up */
.cart-drawer {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15) !important;
}

/* Card active/pressed state */
.menu-item-card {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.menu-item-card:active, .menu-item-card.pressed {
    transform: scale(0.96) translateY(2px) !important;
    box-shadow: 0 2px 8px rgba(45, 113, 248, 0.06) !important;
    background-color: var(--bg-surface-elevated);
}

.menu-item-card.selected {
    border-color: var(--success);
    box-shadow: 0 4px 20px var(--secondary-glow);
}

/* Quantity control disabled decrement button styling */
.quantity-control .qty-btn.dec-btn.disabled-btn {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-control .qty-btn.dec-btn.disabled-btn:hover {
    background-color: transparent;
}

/* Product Detail Modal Styles (BottomSheet / Overlay) */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile Bottom Sheet */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-content {
    background-color: var(--bg-surface);
    width: 100%;
    max-width: 480px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 32px rgba(45, 113, 248, 0.12);
    overflow: hidden;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    display: flex;
    flex-direction: column;
}

.product-modal-overlay.active .product-modal-content {
    transform: translateY(0);
}

/* Desktop layout overrides */
@media (min-width: 481px) {
    .product-modal-overlay {
        align-items: center; /* Center on desktop */
    }
    .product-modal-content {
        border-radius: 24px;
        max-height: 90vh;
        transform: translateY(40px) scale(0.95);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s !important;
    }
    .product-modal-overlay.active .product-modal-content {
        transform: translateY(0) scale(1);
    }
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.close-modal-btn:hover {
    background: rgba(252, 74, 74, 0.6);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(252, 74, 74, 0.3);
}

.modal-hero-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.special-instructions-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.modal-input-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

#specialInstructionsInput {
    width: 100%;
    height: 90px;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

#specialInstructionsInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.modal-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.modal-add-btn {
    background: var(--gradient-success);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--secondary-glow);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.modal-add-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px var(--secondary-glow);
}

.modal-add-btn:active {
    transform: scale(0.97);
}


/* Modifiers Styling */
.modifiers-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.modifiers-section.hide {
    display: none;
}

.modifier-group-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modifier-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modifier-group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.modifier-group-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.modifier-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modifier-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-app);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.modifier-option-item:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.modifier-option-item.selected {
    border-color: var(--success);
    background-color: var(--success-bg);
}

.modifier-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.modifier-checkbox, .modifier-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modifier-radio {
    border-radius: 50%;
}

.modifier-option-item.selected .modifier-checkbox,
.modifier-option-item.selected .modifier-radio {
    border-color: var(--success);
    background: var(--gradient-success);
}

.modifier-option-item.selected .modifier-checkbox::after {
    content: "✓";
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.modifier-option-item.selected .modifier-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.modifier-option-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.modifier-option-item.selected .modifier-option-price {
    color: var(--success);
    font-weight: 700;
}

/* ==========================================
   Status Modal Glassmorphic Overlay
   ========================================== */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.status-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.status-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 24px;
    width: 85%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .status-modal-card {
    background: rgba(30, 30, 32, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.status-modal-overlay.show .status-modal-card {
    transform: scale(1);
}

.status-modal-icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-modal-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.status-modal-success-icon {
    width: 44px;
    height: 44px;
    background: var(--success-bg);
    color: var(--success);
    border: 2px solid var(--success-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.status-modal-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.status-modal-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}





/* ==========================================
   FEATURE: Responsive Promo Banner (small screens)
   ========================================== */
@media (max-width: 380px) {
    .promo-banner-container {
        height: 140px;
    }

    .promo-title {
        font-size: 13px;
    }

    .promo-desc {
        font-size: 10.5px;
    }
}

/* ==========================================
   FEATURE: Order Item Note Button & Display
   ========================================== */
.status-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.add-note-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-elevated);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
    padding: 0;
    line-height: 1;
}

.add-note-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.1);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.add-note-btn:active {
    transform: scale(0.92);
}

.item-note-display {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 8px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-muted);
    max-width: 200px;
}

.item-note-display .note-icon {
    font-size: 11px;
    flex-shrink: 0;
}

.item-note-display .note-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

/* Adjust status-item-card for the new action group layout */
.status-item-card .served-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ==========================================
   Enterprise Visual System Override
   ========================================== */
:root {
    --bg-app: #f6f7fb;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f2f4f8;
    --border-color: #dde2ea;
    --border-color-active: #1f63d8;
    --primary: #1f63d8;
    --primary-hover: #174fb0;
    --primary-glow: rgba(31, 99, 216, 0.12);
    --primary-light: rgba(31, 99, 216, 0.08);
    --secondary: #087f6f;
    --secondary-glow: rgba(8, 127, 111, 0.12);
    --success: #087f6f;
    --warning: #b7791f;
    --error: #cf3434;
    --text-main: #172033;
    --text-muted: #687083;
    --text-dark: #3d4658;
    --header-bg: rgba(255, 255, 255, 0.94);
    --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    --card-hover-shadow: 0 8px 18px rgba(16, 24, 40, 0.10);
    --cart-bar-bg: rgba(255, 255, 255, 0.98);
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --gradient-primary: linear-gradient(0deg, var(--primary), var(--primary));
    --gradient-success: linear-gradient(0deg, var(--success), var(--success));
    --gradient-error: linear-gradient(0deg, var(--error), var(--error));
    --gradient-hero: linear-gradient(135deg, #243b64 0%, #1f63d8 100%);
    --gradient-card: linear-gradient(0deg, var(--bg-surface), var(--bg-surface));
    --glass-blur: none;
    --transition-standard: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    --transition-spring: var(--transition-standard);
}

body.dark-theme {
    --bg-app: #10141d;
    --bg-surface: #171c27;
    --bg-surface-elevated: #202738;
    --border-color: #2b3448;
    --border-color-active: #78a8ff;
    --primary: #78a8ff;
    --primary-hover: #9bbfff;
    --primary-glow: rgba(120, 168, 255, 0.16);
    --primary-light: rgba(120, 168, 255, 0.12);
    --secondary: #4cc0aa;
    --secondary-glow: rgba(76, 192, 170, 0.14);
    --success: #4cc0aa;
    --warning: #e2a64b;
    --error: #ff7a7a;
    --text-main: #edf1f7;
    --text-muted: #9aa4b7;
    --header-bg: rgba(23, 28, 39, 0.94);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    --card-hover-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

* {
    letter-spacing: 0;
}

body,
body.dark-theme {
    background: var(--bg-app);
}

.app-container,
body.dark-theme .app-container {
    box-shadow: 0 0 0 1px var(--border-color);
}

.app-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    background: currentColor;
    color: currentColor;
    mask: var(--icon) center / contain no-repeat;
    -webkit-mask: var(--icon) center / contain no-repeat;
}

.icon-utensils { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v8'/%3E%3Cpath d='M8 3v8'/%3E%3Cpath d='M4 7h4'/%3E%3Cpath d='M6 11v10'/%3E%3Cpath d='M17 3v18'/%3E%3Cpath d='M14 3c0 5 6 5 6 0'/%3E%3C/svg%3E"); }
.icon-users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.icon-moon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E"); }
.icon-sun { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E"); }
.icon-table { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M5 10l2-6h10l2 6'/%3E%3Cpath d='M7 10v10M17 10v10M7 16h10'/%3E%3C/svg%3E"); }
.icon-signal { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8.82a15 15 0 0 1 20 0'/%3E%3Cpath d='M5 12.86a10 10 0 0 1 14 0'/%3E%3Cpath d='M8.5 16.43a5 5 0 0 1 7 0'/%3E%3Cpath d='M12 20h.01'/%3E%3C/svg%3E"); }
.icon-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E"); }
.icon-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.icon-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.27 21a2 2 0 0 0 3.46 0'/%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3C/svg%3E"); }
.icon-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.icon-cash { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.icon-card { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E"); }
.icon-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.icon-water { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2s6 6.6 6 12a6 6 0 0 1-12 0c0-5.4 6-12 6-12Z'/%3E%3C/svg%3E"); }
.icon-help { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 1 1 5.8 1c-.5 1-1.7 1.5-2.4 2.2-.4.4-.5.8-.5 1.3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.icon-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }

.app-header,
.app-nav-tabs {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo-dot,
.cart-badge,
.category-tab.active,
.primary-action-btn,
.onboarding-next-btn,
.start-order-btn,
.modal-add-btn,
.setup-progress-fill,
.pulse-ring {
    background: var(--primary);
    box-shadow: none;
}

.section-title,
.status-header h2,
.service-header h2,
.drawer-title-row h3,
.onboarding-header h2,
.onboarding-header p.subtitle {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-main);
}

.promo-banner-container,
.menu-item-card,
.status-header,
.status-item-card,
.service-capsule,
.cart-bar-content,
.cart-drawer,
.product-modal-content,
.status-modal-card,
.onboarding-card,
.verification-status-box,
.search-bar {
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.promo-banner-container {
    height: 132px;
    margin: 12px 16px 8px;
}

.promo-overlay {
    padding: 14px 16px;
}

.sync-health-panel {
    display: none;
    margin: 8px 16px;
    box-shadow: none;
}

.sync-health-panel.has-issue {
    display: flex;
}

.app-nav-tabs {
    padding: 6px 10px;
    top: 60px;
}

.nav-tab {
    min-width: 78px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
}

.nav-tab-icon,
.service-icon {
    font-size: 20px;
}

.nav-tab.active {
    background: var(--primary-light);
}

.nav-tab.active::after {
    display: none;
}

.category-tabs {
    gap: 8px;
    padding: 0 16px;
}

.category-tab {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.category-tab.active {
    transform: none;
}

.menu-container {
    padding: 0 16px;
}

.section-title {
    font-size: 18px;
    margin: 6px 0 12px;
}

.menu-grid {
    gap: 10px;
    padding-bottom: 18px;
}

.menu-item-card {
    min-height: 112px;
    gap: 12px;
    padding: 12px;
    align-items: center;
}

.menu-item-card:hover {
    transform: translateY(-1px);
}

.menu-item-info {
    order: 1;
    min-width: 0;
}

.menu-item-image-container {
    order: 2;
    width: 92px;
    height: 92px;
    border-radius: var(--radius-md);
}

.menu-item-img {
    border-radius: var(--radius-md);
    box-shadow: none;
}

.menu-item-title {
    font-size: 15px;
    line-height: 1.3;
}

.menu-item-desc {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.menu-item-price {
    font-size: 15px;
    margin-top: 8px;
}

.item-actions-hud {
    right: 6px;
    bottom: 6px;
    left: auto;
    transform: none;
}

.quantity-control {
    gap: 6px;
    padding: 2px;
    border-radius: 999px;
    background: var(--bg-surface);
    box-shadow: var(--card-shadow);
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
}

.quantity-control .qty-btn.dec-btn.disabled-btn {
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    opacity: 1;
}

.cart-bar-container {
    bottom: 68px;
}

.cart-bar-content {
    border-radius: var(--radius-lg);
    padding: 10px 12px;
}

.cart-view-btn,
.primary-action-btn,
.onboarding-next-btn,
.start-order-btn,
.modal-add-btn {
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.cart-drawer,
.product-modal-content {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.service-grid {
    gap: 10px;
}

.service-capsule {
    align-items: flex-start;
    padding: 14px;
    min-height: 96px;
}

.service-capsule::after {
    display: none;
}

.service-capsule:hover {
    transform: none;
    box-shadow: var(--card-hover-shadow);
}

.service-icon {
    color: var(--primary);
}

.onboarding-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.onboarding-card::before {
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--primary);
}

.logo-icon {
    color: #fff;
    font-size: 30px;
    border-radius: var(--radius-lg);
    animation: none;
}

.logo-pulse-circle {
    display: none;
}

.brand-loader-mark {
    border-radius: var(--radius-lg);
    background: var(--primary);
    box-shadow: none;
}

.loading-skeleton-stack span {
    background: linear-gradient(90deg, #e7ebf3, #f5f7fb, #e7ebf3);
}

body.dark-theme .loading-skeleton-stack span {
    background: linear-gradient(90deg, #242c3d, #30394d, #242c3d);
}

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
.modifier-option-item:focus-visible {
    outline: 3px solid var(--primary-glow);
    outline-offset: 2px;
    border-color: var(--border-color-active);
}

@media (max-width: 380px) {
    .menu-item-image-container {
        width: 82px;
        height: 82px;
    }

    .menu-item-title {
        font-size: 14px;
    }
}

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

/* ==========================================================================
   REDESIGNED PRODUCT LAYOUT — v2 (Matching Target Screenshot Design)
   ========================================================================== */

/* --- Compaction and Space-Saving Layout Adjustments --- */
.app-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #081225 0%, #0B2447 100%) !important; /* Deep dark navy blue gradient */
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    position: sticky !important;
    top: 10px !important;
    margin: 8px 16px 4px 16px !important; /* Float with spacing around it, closer to tabs */
    border-radius: 50px !important; /* Capsule style */
    z-index: 100 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important; /* hide background stripes overflow */
}

.app-header::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(77, 144, 255, 0.12) 0px,
        rgba(77, 144, 255, 0.12) 2px,
        transparent 2px,
        transparent 16px
    ) !important;
    background-size: 32px 32px !important;
    animation: headerLinesMove 12s linear infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0.85 !important;
}

@keyframes headerLinesMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 32px 32px;
    }
}

.brand-section,
.header-actions {
    position: relative !important;
    z-index: 2 !important;
}

.header-scrolled-up .app-header {
    top: 6px !important;
    margin: 4px 16px 8px 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.header-logo-circle {
    width: 30px !important;
    height: 30px !important;
    border-width: 1.5px !important;
}

.header-logo-inner {
    font-size: 13px !important;
}

.brand-title {
    font-size: 16px !important;
}

.promo-banner-container {
    height: 100px !important;
    margin: 8px 16px 6px !important;
}

.promo-overlay {
    padding: 10px 14px !important;
}

.promo-title {
    font-size: 13.5px !important;
}

.promo-desc {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

.app-nav-tabs {
    padding: 4px 10px !important;
    top: 58px !important; /* aligned closer to floating header capsule */
    background-color: rgba(255, 255, 255, 0.6) !important; /* highly translucent */
    backdrop-filter: blur(20px) !important; /* high blur */
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

body.dark-theme .app-nav-tabs {
    background-color: rgba(12, 16, 33, 0.6) !important;
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

.nav-tab {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 78px !important;
    padding: 6px 10px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 11px !important;
}

.nav-tab-icon,
.service-icon {
    font-size: 16px !important;
}

.search-bar-container {
    padding: 8px 16px 14px 16px !important;
}

.search-bar {
    margin: 0 !important;
    padding: 10px 16px !important;
    border-radius: 50px !important; /* Modern capsule shape */
    border: 1.5px solid rgba(45, 113, 248, 0.12) !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Elastic bounce */
}

.search-bar:focus-within {
    border-color: #2D71F8 !important;
    box-shadow: 0 8px 24px rgba(45, 113, 248, 0.15) !important;
    transform: translateY(-2px) scale(1.015) !important;
}

.search-bar .search-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.search-bar:focus-within .search-icon {
    transform: scale(1.25) rotate(15deg) !important;
    color: #2D71F8 !important;
}

/* 1. Food Categories Header */
.category-header-container {
    display: none !important;
}
.category-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #111827; /* Near black matching target */
    margin: 0;
    letter-spacing: -0.03em;
}
body.dark-theme .category-header-title {
    color: #f1f5f9;
}

/* 2. Redesigned Category Tab Pills */
.category-tabs-container {
    position: sticky !important;
    top: 96px !important; /* Stacked right below app-nav-tabs */
    z-index: 85 !important;
    background: transparent !important; /* No solid background bar */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
}

body.dark-theme .category-tabs-container {
    background: transparent !important;
}

.category-tabs {
    gap: 10px !important;
    padding: 0 20px !important;
}

.category-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    background-color: rgba(0, 0, 0, 0.05) !important; /* Translucent inactive background */
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    opacity: 0;
    animation: categorySlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-tab:nth-child(1) { animation-delay: 0.1s; }
.category-tab:nth-child(2) { animation-delay: 0.18s; }
.category-tab:nth-child(3) { animation-delay: 0.26s; }

@keyframes categorySlideIn {
    0% {
        opacity: 0;
        transform: translateX(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.category-icon {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor;
    stroke-width: 2.2px !important;
    fill: none !important;
    transition: transform 0.3s ease;
}

body.dark-theme .category-tab {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.category-tab:hover {
    background-color: rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-1px);
}

body.dark-theme .category-tab:hover {
    background-color: rgba(255, 255, 255, 0.14) !important;
}

.category-tab.active {
    background-color: rgba(45, 113, 248, 0.18) !important; /* Translucent blue active */
    color: #2D71F8 !important;
    border: 1.5px solid rgba(45, 113, 248, 0.35) !important;
    transform: scale(1.04) !important;
    box-shadow: 0 4px 14px rgba(45, 113, 248, 0.15) !important;
}

.category-tab.active .category-icon {
    transform: scale(1.25) rotate(-8deg);
    animation: categoryIconBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes categoryIconBounce {
    0% {
        transform: scale(0.6) rotate(0deg);
    }
    50% {
        transform: scale(1.4) rotate(-15deg);
    }
    100% {
        transform: scale(1.25) rotate(-8deg);
    }
}

body.dark-theme .category-tab.active {
    background-color: rgba(77, 144, 255, 0.25) !important;
    color: #4d90ff !important;
    border-color: rgba(77, 144, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* 3. Featured Menu Header & Grid */
.featured-menu-section {
    padding: 0 20px;
    margin-top: 6px;
}

.section-title-vertical {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #111827; /* Near black matching target */
    margin: 10px 0 12px 0;
    letter-spacing: -0.03em;
}

body.dark-theme .section-title-vertical {
    color: #f1f5f9;
}

.featured-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 45px; /* Space for smaller overlapping circular image */
    margin-bottom: 12px;
}

.featured-menu-grid.scrollable {
    display: flex !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 40px 4px 14px 4px !important;
    margin-top: 5px !important;
    margin-bottom: 12px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.featured-menu-grid.scrollable::-webkit-scrollbar {
    display: none;
}

.featured-menu-grid.scrollable .featured-item-card {
    flex: 0 0 160px !important;
    scroll-snap-align: start;
}

/* 4. Featured Card Style */
.featured-item-card {
    background: linear-gradient(135deg, #f5f8ff, #fff5f8, #f5f3ff, #f5f8ff);
    background-size: 300% 300%;
    border: 1px solid rgba(45, 113, 248, 0.08);
    border-radius: 16px;
    padding: 12px 10px 12px 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 140px;
}

body.dark-theme .featured-item-card {
    background: linear-gradient(135deg, #161c2b, #1d1a39, #281930, #161c2b);
    background-size: 300% 300%;
    border-color: rgba(255, 255, 255, 0.06);
}

.featured-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 113, 248, 0.15);
}

body.dark-theme .featured-item-card:hover {
    border-color: rgba(77, 144, 255, 0.25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Overlapping Circular Image */
.featured-item-img-container {
    position: absolute;
    top: -40px; /* Pull up to overlap card */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 5;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

body.dark-theme .featured-item-img-container {
    border-color: #1e2422;
}

.featured-item-card:hover .featured-item-img-container {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.featured-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Card Contents */
.featured-item-content {
    margin-top: 38px; /* Space below smaller overlapping image */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.featured-item-category {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 2px;
    font-style: italic;
    letter-spacing: 0.01em;
}

body.dark-theme .featured-item-category {
    color: #8EBAA9;
}

.featured-item-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.star-icon {
    color: #FBBF24; /* Yellow gold */
    font-size: 12px;
}

.badge-icon {
    width: 12px;
    height: 12px;
    color: #10B981; /* Green check circle */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featured-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    margin: 2px 0 6px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

body.dark-theme .featured-item-title {
    color: #e8ecf4;
}

.featured-item-desc {
    display: none !important; /* Hide description in featured grid for ultimate compaction */
}

/* Compact Price & Add Pill inside Featured Menu */
.featured-item-action .price-add-pill,
.featured-item-action .quantity-control-pill {
    min-width: 90px !important;
    height: 32px !important;
    padding: 3px 3px 3px 12px !important;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.15) !important;
}

body.dark-theme .featured-item-action .price-add-pill,
body.dark-theme .featured-item-action .quantity-control-pill {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.featured-item-action .pill-price {
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-right: 4px !important;
}

.featured-item-action .pill-add-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

.featured-item-action .quantity-control-pill {
    padding: 3px 6px !important;
}

.featured-item-action .pill-qty-btn {
    font-size: 13px !important;
    width: 20px !important;
    height: 20px !important;
}

.featured-item-action .pill-qty-val {
    font-size: 13px !important;
}

/* Blue Price & Add Button Pill */
.price-add-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2D71F8; /* Royal blue matching header */
    color: #FFFFFF;
    border-radius: 50px;
    padding: 6px 6px 6px 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 120px;
    height: 40px;
    box-shadow: 0 4px 14px rgba(45, 113, 248, 0.25);
    border: none;
}

body.dark-theme .price-add-pill {
    background-color: #4d90ff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.price-add-pill:hover {
    background-color: #1a5ce0;
    transform: translateY(-1px) scale(1.02);
}

body.dark-theme .price-add-pill:hover {
    background-color: #2d71f8;
}

.price-add-pill:active {
    transform: scale(0.96);
}

.pill-price {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin-right: 8px;
    letter-spacing: -0.02em;
}

.pill-add-btn {
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    color: #2D71F8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    line-height: 1;
}

body.dark-theme .pill-add-btn {
    color: #4d90ff;
}

/* Quantity Control Pill style */
.quantity-control-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2D71F8;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 4px 8px;
    min-width: 120px;
    height: 40px;
    box-shadow: 0 4px 14px rgba(45, 113, 248, 0.25);
    border: none;
}

body.dark-theme .quantity-control-pill {
    background-color: #4d90ff;
}

.pill-qty-btn {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.pill-qty-btn:hover {
    transform: scale(1.2);
}

.pill-qty-btn:active {
    transform: scale(0.8);
}

.pill-qty-val {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* Hide standard categories header if we use our redesign */
.menu-section .section-title {
    display: none !important;
}

/* 5. Main Dishes Vertical List Style */
.menu-section {
    padding: 0 20px !important;
}

.menu-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* divider handles spacing */
}

/* Row-based Layout for standard items */
.list-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    background: transparent !important;
    border: none !important;
    border-bottom: 3.5px solid rgba(220, 225, 235, 0.85) !important; /* Thicker and more prominent divider */
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: var(--transition-standard);
    opacity: 0;
    animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark-theme .list-item-card {
    border-bottom-color: rgba(255, 255, 255, 0.16) !important;
}

.list-item-card:hover {
    transform: translateX(4px);
}

.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* text truncate safety */
}

.list-item-category {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    font-style: italic;
    letter-spacing: 0.01em;
}

body.dark-theme .list-item-category {
    color: #8EBAA9;
}

.list-item-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 2px 0;
    line-height: 1.3;
}

body.dark-theme .list-item-title {
    color: #e8ecf4;
}

.list-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    max-width: 90%;
}

/* Circular Right Image */
.list-item-img-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    background: #e2e8f0;
}

.list-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. Floating Request Button */
.floating-request-btn {
    position: fixed;
    bottom: 24px;
    right: calc(50% - 240px + 24px);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(93, 161, 133, 0.88); /* Sage Green matching screenshot */
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 40px;
    padding: 8px 16px;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(93, 161, 133, 0.2);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-request-btn svg {
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 480px) {
    .floating-request-btn {
        right: 24px;
    }
}

body.dark-theme .floating-request-btn {
    background: rgba(76, 161, 131, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.floating-request-btn:hover {
    background: #4CA183;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(93, 161, 133, 0.35);
}

body.dark-theme .floating-request-btn:hover {
    background: #5db091;
}

.floating-request-btn:active {
    transform: scale(0.96);
}

.request-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-icon svg {
    stroke-width: 2;
}

/* Slide up request button when cart is showing */
.floating-request-btn.cart-active {
    bottom: 146px; /* Offset to clear the floating cart bar height */
}

/* Adjustments for general search empty state */
.search-empty-state {
    padding: 40px 20px;
}

/* Staggered floatUp animation for list items */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-item-card:nth-child(1) { animation-delay: 0.04s; }
.list-item-card:nth-child(2) { animation-delay: 0.08s; }
.list-item-card:nth-child(3) { animation-delay: 0.12s; }
.list-item-card:nth-child(4) { animation-delay: 0.16s; }
.list-item-card:nth-child(5) { animation-delay: 0.20s; }
.list-item-card:nth-child(6) { animation-delay: 0.24s; }
.list-item-card:nth-child(7) { animation-delay: 0.28s; }
.list-item-card:nth-child(8) { animation-delay: 0.32s; }
.list-item-card:nth-child(9) { animation-delay: 0.36s; }
.list-item-card:nth-child(10) { animation-delay: 0.40s; }
.list-item-card:nth-child(11) { animation-delay: 0.44s; }
.list-item-card:nth-child(12) { animation-delay: 0.48s; }
.list-item-card:nth-child(13) { animation-delay: 0.52s; }
.list-item-card:nth-child(14) { animation-delay: 0.56s; }
.list-item-card:nth-child(15) { animation-delay: 0.60s; }
.list-item-card:nth-child(n+16) { animation-delay: 0.60s; }

/* ==========================================================================
   ADDED IN v13: FEATURED SLIDE ANIMATIONS & ISOLATED PRICE BUTTONS
   ========================================================================== */

/* 1. Staggered Horizontal Fade-Slide-In animation for Featured Cards */
@keyframes fadeSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes featuredBgMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.featured-item-card {
    opacity: 0;
    animation: fadeSlideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, featuredBgMove 10s ease infinite;
}

/* 2. Isolated Price tag styling for Featured Cards */
.featured-item-price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #2D71F8 !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
}

body.dark-theme .featured-item-price {
    color: #4d90ff !important;
}

/* 2.5 New side-by-side Layout for Featured Price & Actions */
.featured-item-price-action {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.featured-item-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.featured-item-action .quantity-control-pill {
    min-width: 76px !important;
    height: 28px !important;
    padding: 2px 6px !important;
    background-color: #2D71F8 !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(45, 113, 248, 0.15) !important;
}

body.dark-theme .featured-item-action .quantity-control-pill {
    background-color: #4d90ff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.featured-item-action .pill-qty-btn {
    font-size: 13px !important;
    width: 16px !important;
    height: 16px !important;
}

.featured-item-action .pill-qty-val {
    font-size: 12px !important;
    min-width: 16px !important;
}

/* 3. Isolated Price & Action layout for List Cards */
.list-item-price-action {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 6px !important;
    width: 100% !important;
}

.list-item-price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #2D71F8 !important;
    letter-spacing: -0.02em !important;
}

body.dark-theme .list-item-price {
    color: #4d90ff !important;
}

/* 4. Simplified Circular Plus Add Button */
.add-btn-only {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #2D71F8 !important;
    color: #FFFFFF !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(45, 113, 248, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.add-btn-only .add-btn-plus {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.add-btn-only:hover {
    background-color: #1a5ce0 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(45, 113, 248, 0.35) !important;
}

.add-btn-only:active {
    transform: scale(0.92) !important;
}

body.dark-theme .add-btn-only {
    background-color: #4d90ff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .add-btn-only:hover {
    background-color: #2d71f8 !important;
}

/* ==========================================
   Steppers & Status Visual Upgrades
   ========================================== */
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

.status-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.status-item-card {
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-standard);
    box-shadow: var(--card-shadow);
}

.status-item-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.status-item-card.served-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--border-color);
    box-shadow: none;
}

body.dark-theme .status-item-card.served-item {
    background-color: rgba(23, 28, 39, 0.4);
}

.item-progress-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 8px 10px 0 10px;
    width: 100%;
    margin-top: 4px;
}

.item-progress-stepper::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.item-progress-stepper .step-line-progress {
    position: absolute;
    top: 22px;
    left: 10%;
    height: 3px;
    background: var(--primary);
    z-index: 2;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-progress-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 3;
    flex: 1;
}

.item-progress-stepper .step .step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.item-progress-stepper .step.active .step-dot {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.item-progress-stepper .step.active.pulse .step-dot {
    background-color: var(--success);
    border-color: var(--success);
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 127, 111, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(8, 127, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(8, 127, 111, 0);
    }
}

.item-progress-stepper .step .step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-align: center;
}

.item-progress-stepper .step.active .step-label {
    color: var(--text-main);
    font-weight: 700;
}

.item-progress-stepper .step.active.pulse .step-label {
    color: var(--success);
}

/* ==========================================================================
   Blocking Overlay & Safety Screens
   ========================================================================== */
.blocking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.96); /* Dark Slate 900 Glassmorphism */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Higher than onboarding wizard */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blocking-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.blocking-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px 30px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 30px 80px rgba(239, 68, 68, 0.15), 0 0 0 1px var(--border-color);
    transform: scale(0.95) translateY(20px);
    animation: blockingPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.blocking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
}

@keyframes blockingPopIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.blocking-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blocking-pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    animation: blockingPulse 2.2s infinite ease-in-out;
}

.blocking-pulse-circle.delay-1 {
    animation-delay: 0.7s;
}

.blocking-icon {
    font-size: 38px;
    color: #ef4444;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes blockingPulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

.blocking-title {
    font-size: 22px;
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.35;
}

.blocking-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 26px;
    white-space: pre-line;
}

.blocking-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

