/* ========================================================
   THEME PALETTES FOR WAITER APP
   ======================================================== */
:root, [data-theme="royal"] {
    --primary: #4A0E17;
    --primary-light: #6E1824;
    --primary-dark: #32070D;
    --accent: #E67E22;
    --gold: #D4AF37;
    --gold-light: #FFF9E6;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --bg-body: #FDFBF7;
    --bg-card: #FFFFFF;
    --border: #EADFD7;
    --text-main: #241416;
    --text-muted: #756265;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(74,14,23,0.06);
    --shadow-md: 0 4px 10px rgba(74,14,23,0.08);
    --shadow-lg: 0 10px 25px rgba(74,14,23,0.15);
}

/* THEME 2: MIDNIGHT DARK POS */
[data-theme="dark"] {
    --primary: #1C2028;
    --primary-light: #282E3A;
    --primary-dark: #101318;
    --accent: #FB923C;
    --gold: #F59E0B;
    --gold-light: #2A2415;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-body: #0B0E14;
    --bg-card: #151921;
    --border: #272F3D;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.7);
}

/* THEME 3: EMERALD GARDEN */
[data-theme="emerald"] {
    --primary: #064E3B;
    --primary-light: #0D6950;
    --primary-dark: #022C22;
    --accent: #EA580C;
    --gold: #D97706;
    --gold-light: #FEF3C7;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --bg-body: #F2F7F4;
    --bg-card: #FFFFFF;
    --border: #CCE3D5;
    --text-main: #052618;
    --text-muted: #4A6355;
    --shadow-sm: 0 1px 3px rgba(6,78,59,0.06);
    --shadow-md: 0 4px 10px rgba(6,78,59,0.08);
    --shadow-lg: 0 10px 25px rgba(6,78,59,0.15);
}

/* THEME 4: ROYAL SAPPHIRE */
[data-theme="navy"] {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --primary-dark: #020617;
    --accent: #FB923C;
    --gold: #0284C7;
    --gold-light: #E0F2FE;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 10px rgba(15,23,42,0.08);
    --shadow-lg: 0 10px 25px rgba(15,23,42,0.15);
}

/* Dark mode inputs and surfaces */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #1E232E;
    color: #F1F5F9;
    border-color: var(--border);
}
[data-theme="dark"] .waiter-app-header {
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .login-card {
    background: #151921;
    border-color: var(--border);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family:KC-Gujarati,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    user-select: none;
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================================
   APP HEADER
======================================================== */
.waiter-app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

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

.header-brand-logo {
    font-size: 1.5rem;
    line-height: 1;
}

.header-brand-title {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.header-brand-sub {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 700;
}

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

.header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

.header-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================================
   SCREENS
======================================================== */
.screen {
    display: none !important;
    padding-bottom: 90px;
}

.screen.active {
    display: block !important;
}

/* ========================================================
   SCREEN 1: LOGIN
======================================================== */
#screen-login {
    display: none !important;
}

#screen-login.active {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, #FFFDF8 0%, #F5F7FA 100%);
}

.login-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    padding: 24px 20px;
    text-align: center;
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 6px;
}

.login-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 18px;
}

.login-form-group {
    text-align: left;
    margin-bottom: 14px;
}

.login-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.login-select, .login-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--bg-body);
    color: var(--text-main);
}

.login-select:focus, .login-input:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(135, 25, 20, 0.3);
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, opacity 0.15s;
}

.login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* Error Banner in Login */
.login-error-banner {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: var(--radius-sm);
    color: #C62828;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 12px;
    margin-bottom: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.2s ease-in-out;
}

/* Mode Switcher Tabs */
.login-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.login-mode-tab {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.login-mode-tab.active {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Refresh Text Button */
.btn-text-refresh {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-text-refresh:hover {
    text-decoration: underline;
}

/* PIN Input with Eye Toggle */
.pin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pin-input-wrap .login-input {
    padding-right: 46px;
}

.btn-pin-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    line-height: 1;
}

/* Quick 1-Click Fast Tap Chips */
.quick-login-section {
    margin-top: 20px;
    text-align: left;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.quick-login-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.badge-count {
    background: var(--gold-light);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
}

.login-pin-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.login-pin-chip {
    background: var(--bg-body);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.15s;
}

.login-pin-chip:hover {
    border-color: var(--primary);
    background: #FFFFFF;
}

.login-pin-chip:active {
    background: var(--gold-light);
    border-color: var(--gold);
    transform: scale(0.97);
}

.login-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.login-chip-name {
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-chip-role {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.login-chip-role.role-waiter {
    background: #E8F5E9;
    color: #2E7D32;
}

.login-chip-role.role-owner {
    background: #FFF8E1;
    color: #D4AF37;
}

.login-chip-role.role-manager {
    background: #E3F2FD;
    color: #1976D2;
}

.login-chip-role.role-cashier {
    background: #F3E5F5;
    color: #7B1FA2;
}

.login-chip-role.role-kitchen {
    background: #FBE9E7;
    color: #D84315;
}

.login-chip-id {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ========================================================
   SCREEN 2: TABLE FLOOR VIEW
======================================================== */
.sub-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.waiter-badge-info {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
}

.section-pills::-webkit-scrollbar {
    display: none;
}

.section-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.section-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(135, 25, 20, 0.25);
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
    padding: 0 12px 20px 12px;
}

.mobile-table-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mobile-table-card:active {
    transform: scale(0.96);
}

.mobile-table-card.available {
    border-color: #27AE60;
    background: #F4FBF7;
}

.mobile-table-card.running {
    border-color: #E67E22;
    background: #FFFDF9;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.18);
}

.mobile-table-card.payment_pending {
    border-color: #E74C3C;
    background: #FFF5F5;
}

.table-card-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
}

.mobile-table-card.available .table-card-num {
    color: #1B5E20;
}

.mobile-table-card.running .table-card-num {
    color: #B9770E;
}

.table-card-sec {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-card-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 6px;
    text-transform: uppercase;
}

.mobile-table-card.available .table-card-status {
    background: #27AE60;
    color: #FFFFFF;
}

.mobile-table-card.running .table-card-status {
    background: #E67E22;
    color: #FFFFFF;
}

.mobile-table-card.payment_pending .table-card-status {
    background: #E74C3C;
    color: #FFFFFF;
}

.table-card-amt {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 4px;
}

/* ========================================================
   SCREEN 3: MENU & TAKE ORDER
======================================================== */
.order-header-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 52px;
    z-index: 90;
}

.back-btn {
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-target-pill {
    background: var(--gold-light);
    border: 1.5px solid var(--gold);
    color: #875A00;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 900;
}

.guests-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
}

.guests-stepper-btn {
    width: 26px;
    height: 26px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.search-bar-wrap {
    padding: 8px 12px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}

.search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    background: var(--bg-body) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23718096" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 10px center;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #FFFFFF;
}

.menu-category-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.menu-category-pills::-webkit-scrollbar {
    display: none;
}

.menu-cat-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-cat-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* Previous orders accordion */
.previous-orders-box {
    margin: 10px 12px 4px 12px;
    background: var(--gold-light);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.previous-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #875A00;
    cursor: pointer;
}

/* Menu Items List */
.menu-items-list {
    padding: 10px 12px 100px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-item-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.mobile-item-card:active {
    transform: scale(0.98);
}

.mobile-item-card.has-qty {
    border-color: var(--gold);
    background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.2);
}

.item-info {
    flex: 1;
}

.item-badge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.item-dot-veg {
    width: 12px;
    height: 12px;
    border: 1px solid #27AE60;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-dot-veg::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27AE60;
}

.item-dot-jain {
    width: 12px;
    height: 12px;
    border: 1px solid #E67E22;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-dot-jain::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E67E22;
}

.item-name-primary {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.item-name-secondary {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
}

.item-price-tag {
    font-size: 0.92rem;
    font-weight: 900;
    color: var(--text-main);
    margin-top: 4px;
}

.item-ctrl-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.tap-add-badge {
    background: rgba(135, 25, 20, 0.08);
    border: 1.5px dashed var(--primary);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-item-card:hover .tap-add-badge {
    background: var(--primary);
    color: #FFFFFF;
    border-style: solid;
}

.item-stepper {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-body);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.stepper-btn {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-btn:active {
    background: var(--primary);
    color: #FFFFFF;
}

.stepper-num {
    font-size: 0.95rem;
    font-weight: 900;
    min-width: 24px;
    text-align: center;
    color: var(--primary);
}

.note-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* ========================================================
   BOTTOM STICKY CART & "ONLY SEND TO KOT KITCHEN"
======================================================== */
.waiter-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
    border-top: 1.5px solid var(--border);
    padding: 10px 14px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.cart-pill-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.cart-pill-amt {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
}

/* THE ONLY MAIN BUTTON: SEND TO KOT KITCHEN */
.btn-send-kot-kitchen {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1E824C 0%, #27AE60 100%);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-send-kot-kitchen:active {
    transform: scale(0.98);
}

.btn-send-kot-kitchen:disabled {
    background: #BDC3C7;
    box-shadow: none;
    cursor: not-allowed;
}

/* CART DRAWER MODAL */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}

.cart-drawer-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    z-index: 1010;
    box-shadow: 0 -10px 35px rgba(0,0,0,0.35);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
    overflow: hidden;
}

.cart-drawer-sheet.open {
    transform: translateY(0);
}

.cart-drawer-header {
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
}

.cart-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-drawer-footer {
    flex-shrink: 0;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom, 14px));
    border-top: 1px solid var(--border);
    background: #FFFFFF;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* SPECIAL NOTES MODAL */
.notes-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.notes-modal-sheet {
    background: #FFFFFF;
    width: 100%;
    max-width: 500px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 16px;
    box-shadow: var(--shadow-lg);
}

.quick-note-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.quick-chip {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.quick-chip:active {
    background: var(--gold-light);
    border-color: var(--gold);
}

/* SUCCESS TOAST OVERLAY */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 174, 96, 0.95);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
}

/* ========================================================
   MIX BHAJIYA 4-FLAVOR SELECTOR MODAL (MOBILE WAITER)
======================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 12px;
}

.modal-backdrop.active,
.modal-backdrop[style*="display: flex"] {
    display: flex !important;
}

.modal-mix-bhajiya-dialog {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border);
}

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

.mix-flavor-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: var(--bg-body);
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
    touch-action: manipulation;
}

.mix-flavor-card:active {
    transform: scale(0.98);
}

.mix-flavor-card.selected {
    border-color: #27AE60 !important;
    background: #E8F8F5 !important;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25) !important;
}

[data-theme="dark"] .mix-flavor-card.selected {
    background: rgba(39, 174, 96, 0.18) !important;
    border-color: #2ECC71 !important;
}

.mix-flavor-card .check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: transparent;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.mix-flavor-card.selected .check-circle {
    background: #27AE60 !important;
    border-color: #27AE60 !important;
    color: #fff !important;
}

