@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0a1128;
  --bg-secondary: #101f42;
  --bg-card: rgba(22, 38, 76, 0.45);
  --text-primary: #ffffff;
  --text-secondary: #a0aabf;
  --accent-gold: #f4a261;
  --accent-ocean: #2ec4b6;
  --accent-gradient: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
  --border-glass: rgba(244, 162, 97, 0.18);
  --shadow-glow: 0 8px 32px rgba(46, 196, 182, 0.08);
  --border-radius-sm: 14px;
  --border-radius-md: 22px;
  --border-radius-lg: 32px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Theme Presets */
body.theme-sunset {
  --bg-primary: #080f25;
  --bg-secondary: #0f1a3a;
  --bg-card: rgba(22, 38, 76, 0.45);
  --text-primary: #ffffff;
  --text-secondary: #8e9bb3;
  --accent-gold: #f4a261;
  --accent-ocean: #2ec4b6;
  --accent-gradient: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
  --border-glass: rgba(244, 162, 97, 0.15);
  --shadow-glow: rgba(46, 196, 182, 0.08);
}

body.theme-emerald {
  --bg-primary: #081c15;
  --bg-secondary: #1b4332;
  --bg-card: rgba(45, 106, 79, 0.45);
  --text-primary: #ffffff;
  --text-secondary: #b7e4c7;
  --accent-gold: #d8f3dc;
  --accent-ocean: #52b788;
  --accent-gradient: linear-gradient(135deg, #40916c 0%, #74c69d 100%);
  --border-glass: rgba(82, 183, 136, 0.2);
  --shadow-glow: rgba(82, 183, 136, 0.08);
}

body.theme-rose {
  --bg-primary: #200f21;
  --bg-secondary: #351435;
  --bg-card: rgba(74, 20, 74, 0.45);
  --text-primary: #ffffff;
  --text-secondary: #f3c6f1;
  --accent-gold: #f9bec7;
  --accent-ocean: #e0b1cb;
  --accent-gradient: linear-gradient(135deg, #9b5de5 0%, #f15bb5 100%);
  --border-glass: rgba(241, 91, 181, 0.2);
  --shadow-glow: rgba(241, 91, 181, 0.08);
}

body.theme-luxury-gold {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.6);
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent-gold: #d4af37;
  --accent-ocean: #aa7c11;
  --accent-gradient: linear-gradient(135deg, #d4af37 0%, #855800 100%);
  --border-glass: rgba(212, 175, 55, 0.25);
  --shadow-glow: rgba(212, 175, 55, 0.08);
}

body.theme-nordic-frost {
  --bg-primary: #1e293b;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-gold: #38bdf8;
  --accent-ocean: #34d399;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #34d399 100%);
  --border-glass: rgba(56, 189, 248, 0.2);
  --shadow-glow: rgba(52, 211, 153, 0.08);
}

body.theme-lavender-haze {
  --bg-primary: #18142c;
  --bg-secondary: #272144;
  --bg-card: rgba(39, 33, 68, 0.5);
  --text-primary: #f1edf7;
  --text-secondary: #beb5d8;
  --accent-gold: #c084fc;
  --accent-ocean: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #f43f5e 100%);
  --border-glass: rgba(192, 132, 252, 0.2);
  --shadow-glow: rgba(244, 63, 94, 0.08);
}

body.theme-cyberpunk {
  --bg-primary: #13001f;
  --bg-secondary: #26003d;
  --bg-card: rgba(38, 0, 61, 0.5);
  --text-primary: #00ffcc;
  --text-secondary: #ff007f;
  --accent-gold: #f3e600;
  --accent-ocean: #00f0ff;
  --accent-gradient: linear-gradient(135deg, #ff007f 0%, #f3e600 100%);
  --border-glass: rgba(243, 230, 0, 0.3);
  --shadow-glow: rgba(0, 240, 255, 0.1);
}

body.theme-solar-flare {
  --bg-primary: #1c0a10;
  --bg-secondary: #30101b;
  --bg-card: rgba(48, 16, 27, 0.5);
  --text-primary: #ffe4e6;
  --text-secondary: #fda4af;
  --accent-gold: #f97316;
  --accent-ocean: #e11d48;
  --accent-gradient: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
  --border-glass: rgba(249, 115, 22, 0.2);
  --shadow-glow: rgba(225, 29, 72, 0.08);
}

body.theme-aqua-deep {
  --bg-primary: #031525;
  --bg-secondary: #07243c;
  --bg-card: rgba(7, 36, 60, 0.5);
  --text-primary: #e0f2fe;
  --text-secondary: #7dd3fc;
  --accent-gold: #06b6d4;
  --accent-ocean: #0ea5e9;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --border-glass: rgba(6, 182, 212, 0.2);
  --shadow-glow: rgba(14, 165, 233, 0.08);
}

body.theme-forest-canopy {
  --bg-primary: #051610;
  --bg-secondary: #0c281e;
  --bg-card: rgba(12, 40, 30, 0.5);
  --text-primary: #ecfdf5;
  --text-secondary: #6ee7b7;
  --accent-gold: #84cc16;
  --accent-ocean: #10b981;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #84cc16 100%);
  --border-glass: rgba(132, 204, 22, 0.2);
  --shadow-glow: rgba(16, 185, 129, 0.08);
}

body.theme-sakura {
  --bg-primary: #140e12;
  --bg-secondary: #251b22;
  --bg-card: rgba(37, 27, 34, 0.5);
  --text-primary: #fff1f2;
  --text-secondary: #fecdd3;
  --accent-gold: #fb7185;
  --accent-ocean: #fda4af;
  --accent-gradient: linear-gradient(135deg, #db2777 0%, #fb7185 100%);
  --border-glass: rgba(251, 113, 133, 0.2);
  --shadow-glow: rgba(253, 164, 175, 0.08);
}

body.theme-retro-synth {
  --bg-primary: #110222;
  --bg-secondary: #22003c;
  --bg-card: rgba(34, 0, 60, 0.5);
  --text-primary: #00ffff;
  --text-secondary: #ff007f;
  --accent-gold: #ff007f;
  --accent-ocean: #bd00ff;
  --accent-gradient: linear-gradient(135deg, #ff007f 0%, #bd00ff 100%);
  --border-glass: rgba(255, 0, 127, 0.25);
  --shadow-glow: rgba(189, 0, 255, 0.1);
}

body.theme-coffee-latte {
  --bg-primary: #1d1613;
  --bg-secondary: #2c221e;
  --bg-card: rgba(44, 34, 30, 0.5);
  --text-primary: #fefdfb;
  --text-secondary: #e7dacf;
  --accent-gold: #d97706;
  --accent-ocean: #b45309;
  --accent-gradient: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  --border-glass: rgba(217, 119, 6, 0.2);
  --shadow-glow: rgba(180, 83, 9, 0.08);
}

body.theme-dracula {
  --bg-primary: #282a36;
  --bg-secondary: #1e1f29;
  --bg-card: rgba(40, 42, 54, 0.5);
  --text-primary: #f8f8f2;
  --text-secondary: #6272a4;
  --accent-gold: #bd93f9;
  --accent-ocean: #ff79c6;
  --accent-gradient: linear-gradient(135deg, #bd93f9 0%, #ff79c6 100%);
  --border-glass: rgba(189, 147, 249, 0.2);
  --shadow-glow: rgba(255, 121, 198, 0.08);
}

body.theme-monochrome {
  --bg-primary: #121212;
  --bg-secondary: #242424;
  --bg-card: rgba(36, 36, 36, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent-gold: #ffffff;
  --accent-ocean: #d4d4d4;
  --accent-gradient: linear-gradient(135deg, #525252 0%, #ffffff 100%);
  --border-glass: rgba(255, 255, 255, 0.15);
  --shadow-glow: rgba(212, 212, 212, 0.05);
}

body.theme-royal-amethyst {
  --bg-primary: #140b24;
  --bg-secondary: #21113c;
  --bg-card: rgba(33, 17, 60, 0.5);
  --text-primary: #f5f3ff;
  --text-secondary: #c7d2fe;
  --accent-gold: #818cf8;
  --accent-ocean: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  --border-glass: rgba(167, 139, 250, 0.2);
  --shadow-glow: rgba(167, 139, 250, 0.08);
}

body.theme-desert-sand {
  --bg-primary: #1f1412;
  --bg-secondary: #301d1a;
  --bg-card: rgba(48, 29, 26, 0.5);
  --text-primary: #fafaf9;
  --text-secondary: #e7e5e4;
  --accent-gold: #ea580c;
  --accent-ocean: #ca8a04;
  --accent-gradient: linear-gradient(135deg, #c2410c 0%, #ca8a04 100%);
  --border-glass: rgba(234, 88, 12, 0.2);
  --shadow-glow: rgba(202, 138, 4, 0.08);
}

body.theme-space-cadet {
  --bg-primary: #0b0c16;
  --bg-secondary: #16182c;
  --bg-card: rgba(22, 24, 44, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #b0b6cf;
  --accent-gold: #7b2cbf;
  --accent-ocean: #3f37c9;
  --accent-gradient: linear-gradient(135deg, #3f37c9 0%, #9d4edd 100%);
  --border-glass: rgba(123, 44, 191, 0.2);
  --shadow-glow: rgba(63, 55, 201, 0.08);
}

body.theme-carbon-fiber {
  --bg-primary: #0f0f11;
  --bg-secondary: #1b1b1f;
  --bg-card: rgba(27, 27, 31, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #9e9e9e;
  --accent-gold: #dc2626;
  --accent-ocean: #ef4444;
  --accent-gradient: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
  --border-glass: rgba(239, 68, 68, 0.2);
  --shadow-glow: rgba(239, 68, 68, 0.08);
}

body.theme-blueberry {
  --bg-primary: #0c102b;
  --bg-secondary: #161b40;
  --bg-card: rgba(22, 27, 64, 0.5);
  --text-primary: #f0f3ff;
  --text-secondary: #aab2db;
  --accent-gold: #6366f1;
  --accent-ocean: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #312e81 0%, #6366f1 100%);
  --border-glass: rgba(99, 102, 241, 0.2);
  --shadow-glow: rgba(79, 70, 229, 0.08);
}

body.theme-peach-sorbet {
  --bg-primary: #1f1012;
  --bg-secondary: #331a1e;
  --bg-card: rgba(51, 26, 30, 0.5);
  --text-primary: #fff7ed;
  --text-secondary: #fed7aa;
  --accent-gold: #f97316;
  --accent-ocean: #ffedd5;
  --accent-gradient: linear-gradient(135deg, #ea580c 0%, #ffedd5 100%);
  --border-glass: rgba(249, 115, 22, 0.2);
  --shadow-glow: rgba(234, 88, 12, 0.08);
}

body.theme-vampire {
  --bg-primary: #0b0202;
  --bg-secondary: #1a0505;
  --bg-card: rgba(26, 5, 5, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #d69f9f;
  --accent-gold: #b91c1c;
  --accent-ocean: #991b1b;
  --accent-gradient: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
  --border-glass: rgba(185, 28, 28, 0.25);
  --shadow-glow: rgba(185, 28, 28, 0.08);
}

body.theme-electric-violet {
  --bg-primary: #090214;
  --bg-secondary: #16072d;
  --bg-card: rgba(22, 7, 45, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #caa6ff;
  --accent-gold: #a855f7;
  --accent-ocean: #d8b4fe;
  --accent-gradient: linear-gradient(135deg, #701a75 0%, #a855f7 100%);
  --border-glass: rgba(168, 85, 247, 0.25);
  --shadow-glow: rgba(168, 85, 247, 0.08);
}

body.theme-matcha {
  --bg-primary: #141711;
  --bg-secondary: #21271b;
  --bg-card: rgba(33, 39, 27, 0.5);
  --text-primary: #f4f6f0;
  --text-secondary: #cad1c0;
  --accent-gold: #65a30d;
  --accent-ocean: #84cc16;
  --accent-gradient: linear-gradient(135deg, #3f6212 0%, #84cc16 100%);
  --border-glass: rgba(101, 163, 13, 0.2);
  --shadow-glow: rgba(132, 204, 22, 0.08);
}

body.theme-nebula {
  --bg-primary: #080614;
  --bg-secondary: #110e28;
  --bg-card: rgba(17, 14, 40, 0.5);
  --text-primary: #e2f9ff;
  --text-secondary: #a5d8ff;
  --accent-gold: #00f5ff;
  --accent-ocean: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #00f5ff 100%);
  --border-glass: rgba(0, 245, 255, 0.25);
  --shadow-glow: rgba(124, 58, 237, 0.08);
}

body.theme-glacier {
  --bg-primary: #05131f;
  --bg-secondary: #0c2336;
  --bg-card: rgba(12, 35, 54, 0.5);
  --text-primary: #f0fdfa;
  --text-secondary: #99f6e4;
  --accent-gold: #0ea5e9;
  --accent-ocean: #2dd4bf;
  --accent-gradient: linear-gradient(135deg, #0369a1 0%, #2dd4bf 100%);
  --border-glass: rgba(45, 212, 191, 0.2);
  --shadow-glow: rgba(14, 165, 233, 0.08);
}

body.theme-pumpkin {
  --bg-primary: #1b0f0a;
  --bg-secondary: #2c1a11;
  --bg-card: rgba(44, 26, 17, 0.5);
  --text-primary: #fff7ed;
  --text-secondary: #ffedd5;
  --accent-gold: #ea580c;
  --accent-ocean: #d97706;
  --accent-gradient: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
  --border-glass: rgba(234, 88, 12, 0.2);
  --shadow-glow: rgba(217, 119, 6, 0.08);
}

body.theme-steel-tech {
  --bg-primary: #1e293b;
  --bg-secondary: #334155;
  --bg-card: rgba(51, 65, 85, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-gold: #64748b;
  --accent-ocean: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #475569 0%, #38bdf8 100%);
  --border-glass: rgba(56, 189, 248, 0.2);
  --shadow-glow: rgba(56, 189, 248, 0.08);
}

body.theme-classic-light {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(233, 236, 239, 0.75);
  --text-primary: #212529;
  --text-secondary: #495057;
  --accent-gold: #fd7e14;
  --accent-ocean: #0d6efd;
  --accent-gradient: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  --border-glass: rgba(13, 110, 253, 0.15);
  --shadow-glow: rgba(13, 110, 253, 0.05);
}

/* Classic Light Custom Element Overrides */
body.theme-classic-light .search-input {
  color: #212529;
  background: rgba(0, 0, 0, 0.05);
}
body.theme-classic-light .categories-nav,
body.theme-classic-light header {
  background: rgba(248, 249, 250, 0.85);
}
body.theme-classic-light .category-tab {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #495057;
}
body.theme-classic-light .category-tab.active {
  color: #ffffff;
}
body.theme-classic-light .menu-item-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body.theme-classic-light .add-btn-premium,
body.theme-classic-light .quantity-control.minified {
  background: #ffffff;
}
body.theme-classic-light .quantity-control.minified .qty-val {
  color: #212529;
}
body.theme-classic-light .input-field {
  background: #ffffff;
  color: #212529;
}
body.theme-classic-light .cart-drawer {
  background: radial-gradient(circle at bottom center, #ffffff 0%, #f8f9fa 100%);
}
body.theme-classic-light .cart-item-row {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 10px;
}

/* App Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- LOGIN SCREEN --- */
.login-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.login-logo {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.login-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-glow);
}

.table-badge {
  display: inline-block;
  background: rgba(244, 162, 97, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(244, 162, 97, 0.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group {
  margin-bottom: 24px;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-field {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(10, 17, 40, 0.5);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--accent-ocean);
  box-shadow: 0 0 15px rgba(46, 196, 182, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--border-radius-sm);
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(231, 111, 81, 0.3);
  transition: var(--transition);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* --- MAIN APP LAYOUT --- */
header {
  padding: 24px 20px 16px 20px;
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-glass);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.restaurant-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 30%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.active-table-indicator {
  background: rgba(46, 196, 182, 0.12);
  color: var(--accent-ocean);
  border: 1px solid rgba(46, 196, 182, 0.25);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: 0.95rem;
  color: white;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Category Navigation (Horizontal Slide) */
.categories-nav {
  display: flex;
  overflow-x: auto;
  padding: 12px 20px;
  gap: 12px;
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 135px;
  z-index: 85;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.category-tab.active {
  background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  border-color: #f4a261;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.35);
}

/* --- MENU ITEMS --- */
.menu-container {
  flex: 1;
  padding: 20px 16px 100px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu-category-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  border-left: 4px solid var(--accent-gold);
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.menu-item-card {
  display: flex;
  background: rgba(22, 38, 76, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 16px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 162, 97, 0.35);
}

.menu-item-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.veg-badge-container {
  margin-bottom: 8px;
}

.veg-badge {
  width: 16px;
  height: 16px;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 1px;
}

.veg-badge.veg {
  border-color: #00b138 !important;
}

.veg-badge.non-veg {
  border-color: #da1c1c !important;
}

.veg-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.veg-badge.veg .dot {
  background-color: #00b138 !important;
}

.veg-badge.non-veg .dot {
  background-color: #da1c1c !important;
}

.menu-item-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.menu-item-price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.price-discounted {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.price-original {
  font-size: 0.85rem;
  text-decoration: line-through;
  opacity: 0.5;
  font-weight: 500;
}

.discount-badge {
  font-size: 0.65rem;
  background: rgba(46, 196, 182, 0.15);
  color: #2ec4b6;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.menu-item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-image-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
}

.menu-item-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}

.menu-item-action-overlay {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 85%;
  display: flex;
  justify-content: center;
}

.add-btn-premium {
  width: 100%;
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid var(--accent-gold);
  color: #e76f51;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.5px;
}

.add-btn-premium:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(244, 162, 97, 0.4);
}

.add-btn-premium:active {
  transform: scale(0.95);
}

/* Quantity Control Buttons */
.quantity-control {
  display: flex;
  align-items: center;
  background: rgba(10, 17, 40, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 4px;
}

.quantity-control.minified {
  background: #ffffff;
  border: 1.5px solid var(--accent-gold);
  border-radius: 8px;
  padding: 2px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  justify-content: space-between;
}

.quantity-control.minified .qty-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  color: #e76f51;
  font-size: 1rem;
}

.quantity-control.minified .qty-val {
  color: #0a1128;
  font-size: 0.85rem;
  width: 20px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.qty-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  width: 30px;
  text-align: center;
  font-size: 0.95rem;
}

.add-btn {
  padding: 10px 24px;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.add-btn:hover {
  background: rgba(244, 162, 97, 0.1);
}

/* --- DUAL FLOAT BUTTONS: WAITER CALL & ACTIVE TRACKING --- */
.waiter-call-float {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ec4b6 0%, #0f4c5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.3);
  z-index: 94;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.waiter-call-float:active {
  transform: scale(0.9);
}

.waiter-call-float svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* --- BOTTOM CART FLOAT BAR --- */
.cart-float-bar {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-sm);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(231, 111, 81, 0.4);
  z-index: 95;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-float-info {
  display: flex;
  flex-direction: column;
}

.cart-float-count {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cart-float-total {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.cart-float-action {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* --- CLIENT TRACKING MODAL --- */
.active-orders-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: var(--transition);
}

.active-orders-btn:hover {
  border-color: var(--accent-gold);
}

.order-tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.tracker-id-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Progress bar container */
.progress-bar-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 10px 0;
}

.progress-line {
  position: absolute;
  top: 10px; left: 0; right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.progress-fill {
  position: absolute;
  top: 10px; left: 0;
  height: 4px;
  background: var(--accent-ocean);
  z-index: 2;
  transition: width 0.4s ease;
}

.progress-step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.progress-step.active {
  background: var(--accent-ocean);
  border-color: var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-ocean);
}

.progress-step.completed {
  background: var(--accent-gold);
  border-color: var(--bg-primary);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 6px;
}


/* --- DRAWER MODALS --- */
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 17, 40, 0.8);
  backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: radial-gradient(circle at bottom center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  border-top: 1px solid var(--border-glass);
  padding: 30px 24px 20px 24px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.05);
}

.cart-drawer.active {
  transform: translate(-50%, 0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.drawer-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, white 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

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

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

/* Payment Mode Select */
.payment-section {
  margin-top: 24px;
}

.payment-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-card {
  border: 2px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.payment-card svg {
  width: 32px;
  height: 32px;
  fill: var(--text-secondary);
  transition: var(--transition);
}

.payment-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.payment-card.active {
  border-color: var(--accent-gold);
  background: rgba(244, 162, 97, 0.1);
}

.payment-card.active svg {
  fill: var(--accent-gold);
}

.payment-card.active span {
  color: var(--accent-gold);
}

.drawer-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.bill-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bill-label {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bill-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
}


/* --- UPI PAYMENT MODAL --- */
.upi-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 17, 40, 0.9);
  backdrop-filter: blur(10px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.upi-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.upi-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 30px 24px;
  width: calc(100% - 40px);
  max-width: 400px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.upi-modal-backdrop.active .upi-modal-card {
  transform: scale(1);
}

.upi-header {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: white;
}

.upi-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.qrcode-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-bottom: 24px;
}

.upi-instructions {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: var(--border-radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* --- SUCCESS CONFIRMATION SCREEN --- */
.success-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #101f42 0%, #0a1128 100%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.success-icon-wrapper {
  width: 90px;
  height: 90px;
  background: rgba(46, 196, 182, 0.15);
  color: var(--accent-ocean);
  border: 2px solid var(--accent-ocean);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 30px;
  animation: float 2s infinite ease-in-out;
}

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

.success-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: white;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* --- CUSTOMER FEEDBACK & ORDER HISTORY STYLES --- */
.history-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.history-order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.history-order-id {
  color: white;
}
.history-order-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.history-order-items {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.history-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-glass);
  padding-top: 10px;
}
.history-order-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}
.reorder-btn {
  background: var(--accent-gradient);
  border: none;
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(231, 111, 81, 0.2);
  transition: var(--transition);
}
.reorder-btn:hover {
  transform: scale(1.05);
}
.star-rating span {
  transition: transform 0.2s ease;
  user-select: none;
}
.star-rating span:hover {
  transform: scale(1.25);
}

/* --- DEVELOPER FOOTER STYLES --- */
.login-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: transparent;
}

.social-btn.maps:hover {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 30%, #FBBC05 70%, #EA4335 100%);
  border-color: transparent;
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.login-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.inside-footer {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  padding: 20px 10px;
  box-sizing: border-box;
  background: transparent;
  margin-top: auto;
}

.dev-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.dev-badge:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-1px);
}

.dev-tag {
  color: var(--accent-gold);
  font-weight: 700;
}

.dev-highlight {
  color: var(--text-primary);
  font-weight: 700;
}

.dev-divider {
  width: 1px;
  height: 12px;
  background: var(--border-glass);
}

.dev-terminal-btn {
  color: var(--accent-ocean);
  text-decoration: none;
  display: flex;
  align-items: center;
  background: rgba(46, 196, 182, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(46, 196, 182, 0.2);
  font-weight: bold;
  transition: var(--transition);
}

.dev-terminal-btn:hover {
  background: var(--accent-ocean);
  color: #000;
}

.upi-pay-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  margin-bottom: 15px;
}

.upi-pay-link:hover {
  transform: scale(1.03);
}

.pay-app-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.25);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.pay-app-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
}


