/* ==========================================================================
   GOURMET EXPRESS - SELF-SERVICE RESTAURANT KIOSK STYLES
   ========================================================================== */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-glass: rgba(22, 27, 34, 0.75);
  --bg-card: #1c2128;
  --bg-card-hover: #242b35;

  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-subtle: rgba(245, 158, 11, 0.15);

  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-green-subtle: rgba(16, 185, 129, 0.15);
  --accent-cyan: #06b6d4;

  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-light: #c9d1d9;

  --border-subtle: rgba(240, 246, 252, 0.1);
  --border-focus: rgba(245, 158, 11, 0.5);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Background Ambient Glows */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  max-width: 100vw;
  overflow: hidden;
}
.sphere-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
  top: -150px;
  right: -100px;
}
.sphere-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 70%);
  bottom: -200px;
  left: -150px;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  color: #0d1117;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-info h1 span {
  color: var(--accent-gold);
}

.kiosk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

/* Live Sync Indicator */
.live-sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.live-sync-indicator:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-1px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-ring 2s infinite ease-in-out;
  transition: all 0.3s ease;
}

/* Green Status (Both Connected) */
.live-sync-indicator.sync-green {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}
.live-sync-indicator.sync-green .pulse-dot {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Yellow Status (Either One Connected) */
.live-sync-indicator.sync-yellow {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}
.live-sync-indicator.sync-yellow .pulse-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

/* Red Status (Neither Connected) */
.live-sync-indicator.sync-red {
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}
.live-sync-indicator.sync-red .pulse-dot {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-focus);
}
.cart-header-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  border: none;
  color: #0d1117;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.cart-icon-wrapper {
  position: relative;
  font-size: 1.15rem;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #0d1117;
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-gold);
}

.cart-btn-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cart-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.cart-total-preview {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* Main Layout */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 6rem;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.kiosk-hero {
  background: linear-gradient(145deg, rgba(33, 38, 45, 0.8), rgba(22, 27, 34, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.kiosk-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.order-type-selector {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.type-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.type-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.type-btn.active {
  background: var(--accent-gold-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Controls Section */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-filter-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i.fa-magnifying-glass {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 2.8rem 0.75rem 2.75rem;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: var(--bg-tertiary);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.dietary-filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.diet-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.diet-chip:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.diet-chip.active {
  background: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
  font-weight: 700;
}

/* Category Navigation Pills */
.category-nav-wrapper {
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-nav {
  display: flex;
  gap: 0.85rem;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.cat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.cat-count {
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 700;
}

.cat-pill:hover {
  background: var(--bg-tertiary);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--bg-card), #28303b);
  border-color: var(--accent-gold);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.18);
}

.cat-pill.active .cat-icon {
  background: var(--accent-gold);
  color: #0d1117;
}

.cat-pill.active .cat-count {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

/* Menu Grid Section */
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.item-count-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dishes Grid */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* Dish Card (McDonald's / Touch Kiosk Style) */
.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.dish-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(245, 158, 11, 0.1);
}

.dish-img-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-img {
  transform: scale(1.06);
}

.dish-id-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.dish-status-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.status-available {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.status-sold-out {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.status-seasonal {
  background: rgba(245, 158, 11, 0.9);
  color: #0d1117;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.dish-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.dish-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.dish-category-label {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.dish-description {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dietary-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  margin-bottom: 1.1rem;
}

.diet-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.diet-tag.veg { color: #34d399; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.2); }
.diet-tag.vegan { color: #10b981; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.diet-tag.gf { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }
.diet-tag.pesc { color: #38bdf8; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.2); }
.diet-tag.special { color: #f43f5e; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); }

/* Dish Footer / Action */
.dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.dish-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-add-dish {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-dish:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0d1117;
  transform: scale(1.04);
}

.card-qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.card-qty-btn:hover {
  background: var(--accent-gold);
  color: #0d1117;
}

.card-qty-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-gold);
  min-width: 28px;
  text-align: center;
}

.btn-sold-out {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: not-allowed;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.reset-filter-btn {
  background: var(--accent-gold);
  color: #0d1117;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

/* Sticky Cart Bottom Bar */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  z-index: 35;
  transform: translateY(120%);
  transition: transform var(--transition-normal);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.5);
}

.sticky-cart-bar.visible {
  transform: translateY(0);
}

.sticky-cart-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sticky-badge {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.sticky-total {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.sticky-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  color: #0d1117;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform var(--transition-fast);
}

.sticky-checkout-btn:hover {
  transform: scale(1.03);
}

/* Cart Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.cart-drawer, .settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 60;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.cart-drawer.open, .settings-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-gold);
}

.drawer-title h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 700;
}

.close-drawer-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-drawer-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.cart-order-mode {
  background: var(--bg-tertiary);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-order-mode strong {
  color: var(--accent-gold);
}

.change-mode-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-tertiary);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.cart-qty-mini {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.cart-qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  cursor: pointer;
}

.cart-qty-btn:hover {
  color: var(--accent-gold);
}

.cart-qty-val {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.35rem;
}

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-state i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.cart-empty-state h4 {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.cart-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-summary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-line.total-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

.price-line.total-line span:last-child {
  color: var(--accent-gold);
}

.primary-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  border: none;
  color: #0d1117;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform var(--transition-fast);
}

.primary-checkout-btn:hover {
  transform: translateY(-2px);
}

.checkout-btn-total {
  background: rgba(13, 17, 23, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.clear-cart-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.clear-cart-btn:hover {
  color: var(--accent-red);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.dish-detail-modal, .checkout-modal, .success-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.checkout-modal, .success-modal {
  padding: 1.75rem;
}

.dish-detail-modal {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close-floating-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-floating-btn:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

.dish-detail-media {
  position: relative;
  width: 100%;
  height: 250px;
  background: var(--bg-tertiary);
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-id-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid var(--border-subtle);
}

.detail-status-chip {
  position: absolute;
  top: 15px;
  left: 14px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  backdrop-filter: blur(8px);
}

.dish-detail-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.detail-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.detail-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.detail-dietary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-description-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.detail-description-section h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-full-description {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.detail-footer-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.detail-qty-picker {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-qty-btn {
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.detail-qty-btn:hover {
  background: var(--accent-gold);
  color: #0d1117;
}

.detail-qty-value {
  font-size: 1rem;
  font-weight: 800;
  min-width: 34px;
  text-align: center;
  color: var(--accent-gold);
}

.detail-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  border: none;
  color: #0d1117;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform var(--transition-fast);
}

.detail-add-btn:hover {
  transform: translateY(-2px);
}

.modal-overlay.active .dish-detail-modal,
.modal-overlay.active .checkout-modal,
.modal-overlay.active .success-modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-gold);
}

.modal-title-box h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.form-banner {
  background: var(--accent-green-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group .required {
  color: var(--accent-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.modal-order-summary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.modal-order-summary h4 {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  color: var(--text-light);
}

.summary-items-box {
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.summary-item-line {
  display: flex;
  justify-content: space-between;
}

.summary-final-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.summary-final-total strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-end;
}

.btn-cancel {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm-order {
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  border: none;
  color: #0d1117;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-confirm-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Modal & Receipt Card */
.success-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-check-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-green);
  color: #0d1117;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.success-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.success-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.receipt-card {
  background: #fff;
  color: #1a1a1a;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Courier New', Courier, monospace;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #aaa;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.receipt-kiosk-name {
  display: block;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.receipt-id {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e65100;
}

.receipt-date {
  display: block;
  font-size: 0.75rem;
  color: #666;
}

.receipt-customer-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.badge-status-sent {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
}

.receipt-divider {
  border-bottom: 1px dashed #aaa;
  margin: 0.75rem 0;
}

.receipt-items-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
}

.receipt-totals {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.r-row {
  display: flex;
  justify-content: space-between;
}

.r-grand-total {
  font-size: 1.1rem;
  font-weight: 900;
  border-top: 1px solid #333;
  padding-top: 0.4rem;
  margin-top: 0.3rem;
}

.success-actions {
  display: flex;
  gap: 0.85rem;
}

.btn-print {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

.btn-new-order {
  flex: 1;
  background: var(--accent-gold);
  border: none;
  color: #0d1117;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
}

/* Settings Drawer */
.settings-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.settings-section label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.settings-section input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.85rem;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn-test-webhook {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-test-webhook:hover {
  background: var(--accent-gold);
  color: #0d1117;
}

.test-result-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.text-green {
  color: var(--accent-green);
  margin-right: 0.35rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 85px;
  right: 25px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.info { border-left: 4px solid #38bdf8; }
.toast.error { border-left: 4px solid var(--accent-red); }

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES (iOS & Android Optimized)
   ========================================================================== */

@media (max-width: 900px) {
  .kiosk-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Header adjustments for phones */
  .app-header {
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .header-container {
    width: 100%;
    max-width: 100%;
    gap: 0.35rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .brand-info h1 {
    font-size: 0.98rem;
  }

  .kiosk-badge {
    display: none;
  }

  /* Hide live sync badge on mobile header to prevent overflowing screen width */
  .live-sync-indicator {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-btn {
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
  }

  .cart-header-btn {
    padding: 0.45rem 0.65rem;
    gap: 0.45rem;
  }

  .cart-btn-details .cart-label {
    display: none;
  }

  .cart-total-preview {
    font-size: 0.82rem;
  }

  /* Main Layout */
  .main-layout {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0.65rem 0.75rem 5.5rem;
    box-sizing: border-box;
  }

  /* Compact Sleek Hero on Phone */
  .kiosk-hero {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    background: linear-gradient(145deg, rgba(33, 38, 45, 0.9), rgba(22, 27, 34, 0.95));
    box-sizing: border-box;
  }

  .hero-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.4rem;
  }

  .hero-content h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
  }

  .hero-content p {
    display: none;
  }

  .order-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
  }

  .type-btn {
    padding: 0.45rem 0.25rem;
    font-size: 0.72rem;
    flex-direction: row;
    gap: 0.25rem;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  /* Hide large internal KPI boxes on mobile so menu is immediately visible */
  .hero-stats {
    display: none;
  }

  /* Controls Section */
  .controls-section {
    width: 100%;
    max-width: 100%;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    box-sizing: border-box;
  }

  .search-filter-row {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .search-box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .search-box input {
    font-size: 16px;
    padding: 0.65rem 2.4rem 0.65rem 2.4rem;
    width: 100%;
    box-sizing: border-box;
  }

  .dietary-filter-chips {
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    box-sizing: border-box;
  }
  .dietary-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .category-nav-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    box-sizing: border-box;
  }
  .category-nav-wrapper::-webkit-scrollbar {
    display: none;
  }

  .category-nav {
    display: flex;
    width: max-content;
    gap: 0.55rem;
  }

  .cat-pill {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    gap: 0.45rem;
  }

  .cat-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  /* Dishes Grid on Phones */
  .dishes-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  .dish-card {
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
  }

  .dish-img-wrapper {
    height: 170px;
  }

  .dish-body {
    padding: 1rem;
  }

  .dish-title {
    font-size: 1.05rem;
  }

  .dish-description {
    font-size: 0.8rem;
  }

  .dish-price {
    font-size: 1.15rem;
  }

  /* Card Touch Action Controls */
  .btn-add-dish {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .card-qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .card-qty-num {
    font-size: 0.95rem;
    min-width: 32px;
  }

  /* Sticky Bottom Bar for Mobile */
  .sticky-cart-bar {
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 10px));
  }

  .sticky-total {
    font-size: 1.15rem;
  }

  .sticky-checkout-btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
  }

  /* Drawers: 100% Mobile Screen */
  .cart-drawer, .settings-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  /* Modals: Mobile Full Screen / Bottom Sheet */
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end; /* Slide from bottom on mobile */
  }

  .dish-detail-modal, .checkout-modal, .success-modal {
    width: 100%;
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1.25rem 1rem;
  }

  .dish-detail-modal {
    padding: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents auto zoom */
    padding: 0.65rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .btn-cancel, .btn-confirm-order {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
  }

  .success-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   PRINT / PDF STYLESHEET (Single-Page Clean Receipt Only)
   ========================================================================== */
@media print {
  @page {
    size: auto;
    margin: 8mm auto;
  }

  /* Reset document root */
  html, body {
    background: #ffffff !important;
    color: #111111 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide all interactive kiosk elements */
  .kiosk-header,
  .hero-section,
  .category-nav-wrapper,
  .menu-section,
  .sticky-cart-bar,
  .cart-drawer-overlay,
  .dish-detail-overlay,
  .checkout-modal-overlay,
  .toast-container,
  .success-header,
  .success-actions,
  #printReceiptBtn,
  #newOrderBtn {
    display: none !important;
    visibility: hidden !important;
  }

  /* Format Modal Overlay as a flat centered print container */
  #successModalOverlay,
  .modal-overlay {
    position: static !important;
    display: block !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .success-modal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 400px !important;
    animation: none !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* Receipt Card Styling for Print/PDF */
  #receiptCard {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1.5px dashed #333333 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: 'Courier New', Courier, monospace !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .receipt-header {
    text-align: center !important;
    border-bottom: 1.5px dashed #666666 !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  .receipt-kiosk-name {
    font-size: 15pt !important;
    font-weight: 900 !important;
    color: #000000 !important;
    letter-spacing: 1.5px !important;
    display: block !important;
  }

  .receipt-id {
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #b33900 !important;
    display: block !important;
    margin-top: 3px !important;
  }

  .receipt-date {
    font-size: 8.5pt !important;
    color: #444444 !important;
    display: block !important;
    margin-top: 2px !important;
  }

  .receipt-customer-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    font-size: 9pt !important;
    color: #222222 !important;
    border-bottom: 1.5px dashed #666666 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .receipt-customer-details strong {
    color: #000000 !important;
  }

  .badge-status-sent {
    background: #e6f4ea !important;
    color: #137333 !important;
    border: 1px solid #ceead6 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    display: inline-block !important;
  }

  .receipt-items-table {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 9.5pt !important;
    color: #000000 !important;
  }

  .receipt-item-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 2px 0 !important;
  }

  .receipt-divider {
    border-bottom: 1.5px dashed #666666 !important;
    margin: 8px 0 !important;
  }

  .receipt-totals {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    font-size: 9.5pt !important;
  }

  .r-row {
    display: flex !important;
    justify-content: space-between !important;
  }

  .r-grand-total {
    border-top: 2px solid #000000 !important;
    color: #000000 !important;
    font-size: 12pt !important;
    font-weight: 900 !important;
    padding-top: 6px !important;
    margin-top: 4px !important;
  }
}

