/* ═══════════════════════════════════════════════════════════════
   PASESUITE QR ROOM SERVICE — LUXURY HOTEL AESTHETIC
   Dark + Gold · Mobile-first · Cormorant Garamond + DM Sans
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Core palette */
  --bg:           #0a0a0f;
  --bg-card:      #13131a;
  --bg-elevated:  #1a1a24;
  --bg-hover:     #22222e;
  --bg-input:     #16161f;
  
  /* Gold spectrum */
  --gold:         #c9a96e;
  --gold-light:   #e2c992;
  --gold-dark:    #a68a4e;
  --gold-glow:    rgba(201, 169, 110, 0.15);
  --gold-subtle:  rgba(201, 169, 110, 0.08);
  
  /* Text */
  --text:         #f0ece4;
  --text-soft:    #a09a8d;
  --text-muted:   #6b6560;
  --text-on-gold: #1a1408;
  
  /* Semantic */
  --success:      #5cb85c;
  --success-bg:   rgba(92, 184, 92, 0.12);
  --danger:       #d9534f;
  --danger-bg:    rgba(217, 83, 79, 0.12);
  --warning:      #f0ad4e;
  --warning-bg:   rgba(240, 173, 78, 0.12);
  --info:         #5bc0de;
  
  /* Borders & effects */
  --border:       rgba(201, 169, 110, 0.12);
  --border-strong:rgba(201, 169, 110, 0.25);
  --shadow:       0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  
  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;
  
  /* Safe areas */
  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
}

/* ═══════════════════ RESET & BASE ═══════════════════ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
}

input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
}

/* ═══════════════════ SCREENS ═══════════════════ */

.screen {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* ═══════════════════ VERIFY SCREEN ═══════════════════ */

.verify-bg {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(201,169,110,0.05) 0%, transparent 50%),
    var(--bg);
}

.verify-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23c9a96e' stroke-width='.3' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.verify-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 40px 24px;
}

.verify-logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(201, 169, 110, 0.3));
}

.verify-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.verify-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.verify-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.verify-card-header {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--text);
}

.verify-card-icon {
  font-size: 1.2rem;
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="tel"] {
  width: 100%;
  height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* PIN input */
.pin-container {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pin-digit {
  width: 52px !important;
  height: 56px;
  text-align: center;
  font-size: 1.5rem !important;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--gold-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  caret-color: var(--gold);
}

.pin-digit:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.pin-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Error message */
.error-msg {
  background: var(--danger-bg);
  border: 1px solid rgba(217,83,79,0.25);
  color: #e8817e;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
}

/* ═══════════════════ BUTTONS ═══════════════════ */

.btn-gold {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--text-on-gold);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(201,169,110,0.25);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

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

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-gold.btn-lg {
  height: 54px;
  font-size: 1rem;
}

.btn-outline {
  height: 44px;
  padding: 0 24px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:active {
  background: var(--gold-subtle);
}

.text-btn-danger {
  background: none; border: none;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.text-btn-danger:active {
  background: var(--danger-bg);
}

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:active {
  background: var(--bg-hover);
  color: var(--gold);
}

/* Button loader */
.btn-loader {
  width: 20px; height: 20px;
  border: 2.5px solid transparent;
  border-top-color: var(--text-on-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ═══════════════════ HEADER ═══════════════════ */

.menu-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 12px 16px;
  padding-top: calc(12px + var(--safe-top));
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.header-left, .header-right {
  flex: 0 0 auto;
}

.header-center {
  flex: 1; text-align: center;
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(201, 169, 110, 0.2));
}

.room-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--gold-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ═══════════════════ WELCOME BANNER ═══════════════════ */

.welcome-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  background: var(--gold-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.welcome-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

.welcome-divider {
  color: var(--text-muted);
}

.welcome-room {
  color: var(--text-muted);
}

/* ═══════════════════ CATEGORY BAR ═══════════════════ */

.category-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

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

.cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--text-on-gold);
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(201,169,110,0.2);
}

.cat-tab:not(.active):active {
  background: var(--bg-hover);
}

/* ═══════════════════ SEARCH BAR ═══════════════════ */

.search-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px;
  padding: 0 14px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--gold);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
}

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

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  display: none;
  flex-shrink: 0;
}
.search-clear-btn.visible { display: block; }
.search-clear-btn:hover { color: var(--text); }

/* ═══════════════════ ITEM CODE BADGE ═══════════════════ */

.item-code-badge {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0.2px;
}

.item-cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.25);
  margin-top: 4px;
}

/* ═══════════════════ PAGINATION ═══════════════════ */

.menu-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  margin: 0 0 4px;
}

.menu-pagination.hidden { display: none; }

.pg-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 80px;
  font-family: inherit;
}
.pg-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.pg-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.pg-info {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  min-width: 90px;
}
.pg-info strong { color: var(--text-dim, var(--text)); }

/* ═══════════════════ MENU GRID ═══════════════════ */

.menu-grid {
  padding: 8px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Category header in menu */
.menu-cat-header {
  padding: 16px 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* Menu item card */
.menu-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.menu-item:active {
  background: var(--bg-hover);
}

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

.item-name-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}

.veg-badge, .nonveg-badge {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}

.veg-badge {
  border: 1.5px solid #3a8a3a;
}
.veg-badge::after {
  content: '';
  width: 7px; height: 7px;
  background: #4caf50;
  border-radius: 50%;
}

.nonveg-badge {
  border: 1.5px solid #a83232;
}
.nonveg-badge::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #e53935;
}

.bar-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  background: rgba(91, 192, 222, 0.12);
  border: 1px solid rgba(91, 192, 222, 0.25);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--info);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.item-bottom {
  display: flex; align-items: center; justify-content: space-between;
}

.item-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
}

/* Add button */
.add-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 16px;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.add-btn:active {
  background: var(--gold);
  color: var(--text-on-gold);
}

/* Quantity stepper (replaces Add when qty > 0) */
.qty-stepper {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 34px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-subtle);
  border: none;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.qty-btn:active {
  background: var(--gold);
  color: var(--text-on-gold);
}

.qty-val {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-light);
  background: transparent;
}

/* ═══════════════════ CART FAB ═══════════════════ */

.cart-fab {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 440px;
  width: calc(100% - 32px);
  height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--text-on-gold);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(201,169,110,0.35);
  z-index: 100;
  transition: transform 0.15s;
  animation: fabSlideUp 0.3s ease-out;
}

.cart-fab:active {
  transform: translateX(-50%) scale(0.97);
}

@keyframes fabSlideUp {
  from { transform: translateX(-50%) translateY(80px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cart-count {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-total {
  font-size: 1rem;
}

/* ═══════════════════ CART SCREEN ═══════════════════ */

.cart-body {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
}

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info {
  flex: 1; min-width: 0;
}

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

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

.cart-item-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
  min-width: 64px;
  text-align: right;
}

.cart-notes {
  padding: 0 16px 12px;
}

.cart-notes label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.cart-notes textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-size: 0.875rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

.cart-notes textarea:focus {
  border-color: var(--gold);
}

.cart-footer {
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.cart-summary {
  margin-bottom: 14px;
}

.summary-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.summary-total span:last-child {
  color: var(--gold-light);
}

/* ═══════════════════ CONFIRMED SCREEN ═══════════════════ */

.confirmed-content {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.confirmed-anim {
  margin-bottom: 24px;
}

.checkmark-circle {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 2px solid var(--gold);
  color: var(--gold);
  animation: checkPop 0.4s ease-out;
}

@keyframes checkPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.confirmed-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.confirmed-order-no {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.confirmed-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 280px;
}

.confirmed-details {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.confirmed-detail-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.confirmed-detail-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.confirmed-actions {
  display: flex; gap: 12px;
  width: 100%;
}

.confirmed-actions .btn-gold,
.confirmed-actions .btn-outline {
  flex: 1;
}

/* ═══════════════════ ORDERS SCREEN ═══════════════════ */

.orders-list {
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 12px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s;
}

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

.order-no {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.order-status {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(240,173,78,0.25);
}

.status-confirmed {
  background: var(--gold-subtle);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}

.status-accepted {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(92,184,92,0.25);
}

.status-preparing {
  background: rgba(91,192,222,0.12);
  color: var(--info);
  border: 1px solid rgba(91,192,222,0.25);
}

.status-delivered {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(92,184,92,0.25);
}
.status-pending-confirmation { color: #d69e2e; background: rgba(214,158,46,0.1); }
.status-placed { color: #3182ce; background: rgba(49,130,206,0.1); }
.status-on-the-way { color: #805ad5; background: rgba(128,90,213,0.1); }
.status-auto-rejected { color: #e53e3e; background: rgba(229,62,62,0.1); }
.status-cancelled {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(217,83,79,0.25);
}

.order-items-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.order-bottom {
  display: flex; justify-content: space-between; align-items: center;
}

.order-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-total {
  font-weight: 700;
  color: var(--gold-light);
}

.order-cancel-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  background: var(--danger-bg);
  border: 1px solid rgba(217,83,79,0.25);
  border-radius: 6px;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.order-cancel-btn:active {
  background: rgba(217,83,79,0.2);
}

.order-cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════ EMPTY STATE ═══════════════════ */

.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ═══════════════════ TOAST ═══════════════════ */

.toast {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  max-width: 360px;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: toastIn 0.3s ease-out;
  text-align: center;
}

.toast.toast-success { border-color: rgba(92,184,92,0.4); }
.toast.toast-error   { border-color: rgba(217,83,79,0.4); }

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ═══════════════════ UTILITIES ═══════════════════ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Selection */
::selection {
  background: var(--gold);
  color: var(--text-on-gold);
}

/* Desktop centering */
@media (min-width: 520px) {
  body {
    background:
      radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.04) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 80%, rgba(201,169,110,0.03) 0%, transparent 50%),
      #050508;
  }
  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
  }
  .cart-fab {
    max-width: 440px;
  }
}