/* ═══════════════════════════════════════════════════════
   XINOBI INTERACTIVE SIMULATOR — STYLING
   ═══════════════════════════════════════════════════════ */

:root {
  --primary: #f43f5e;
  --primary-hover: #e11d48;
  --primary-light: #fff1f2;
  --primary-glow: rgba(244, 63, 94, 0.15);
  --dark-bg: #f9fafb;
  --dark-surface: #ffffff;
  --dark-border: #e5e7eb;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --gray-light: #f9fafb;
  --gray-medium: #e5e7eb;
  --gray-dark: #f3f4f6;
}

/* ─── GENERAL RESET ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
}

/* ─── HELPER CLASSES ─── */
.hidden { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.w-6 { width: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.border-top { border-top: 1px solid var(--gray-medium); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-gray { color: #6b7280; }
.text-primary { color: var(--primary); }

/* ─── LAYOUT CONTAINER ─── */
.sim-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ─── SIDEBAR (LEFT PANEL) ─── */
.sim-sidebar {
  width: 420px;
  background-color: var(--dark-surface);
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, var(--primary), #fb923c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.badge-demo {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.sidebar-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background-color: var(--dark-border);
  border-radius: 3px;
}

.intro-card {
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.intro-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.intro-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.step-text code {
  background-color: rgba(255,255,255,0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--primary);
}

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--dark-border);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.03);
  border-color: var(--text-muted);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── TABLE QR STANDS ─── */
.qr-stands-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tables-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 1rem;
}

.table-card {
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.table-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.table-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--dark-surface) 0%, rgba(244, 63, 94, 0.05) 100%);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.table-card.recommended {
  border-color: rgba(251, 146, 60, 0.3);
}

.table-card.recommended:hover {
  border-color: var(--primary);
}

.table-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.table-header {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.table-qr-box {
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 10px;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: #000;
}

.table-card:hover .table-qr-box {
  transform: scale(1.05);
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.table-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.scan-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.table-card:hover .scan-indicator {
  transform: translateY(0);
}

/* ─── WORKSPACE (RIGHT PANEL) ─── */
.sim-workspace {
  flex-grow: 1;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.sim-workspace::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.devices-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 950px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: auto;
  padding: 1rem;
}

.devices-layout::-webkit-scrollbar {
  height: 6px;
}
.devices-layout::-webkit-scrollbar-thumb {
  background-color: var(--dark-border);
  border-radius: 3px;
}

/* ─── PHONE MOCKUP FRAME ─── */
.phone-mockup {
  position: relative;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInDevice 0.5s ease-out;
}

.phone-label-tag {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  white-space: nowrap;
}

.phone-label-tag.companion-tag {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(244, 63, 94, 0.05);
}

.btn-close-companion {
  position: absolute;
  top: -2.2rem;
  right: 1.5rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background-color: #ef4444;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.btn-close-companion:hover {
  background-color: #dc2626;
}

.phone-bezel {
  width: 375px;
  height: 780px;
  background-color: #000;
  border-radius: 44px;
  border: 12px solid #202024;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Status Bar & Notch */
.phone-header {
  height: 40px;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  z-index: 100;
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  width: 140px;
  height: 25px;
  background-color: #202024;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.phone-indicators {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* Helper Banners */
.otp-helper-toast {
  position: absolute;
  top: 45px;
  left: 10px;
  right: 10px;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(244, 63, 94, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transform: translateY(-150%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.otp-helper-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-body {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.05rem;
}

/* ─── PHONE SCREEN AREA ─── */
.phone-screen {
  flex-grow: 1;
  background-color: #f9fafb;
  position: relative;
  color: #1f2937;
  overflow: hidden;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

/* ─── SCREEN VIEWS ─── */
.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
  transform: scale(0.97);
}

.screen-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

.screen-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* View 1: Scan View */
.welcome-box {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.restaurant-emoji {
  font-size: 3.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  animation: bounceEmoji 2s infinite ease-in-out;
}

.welcome-box h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.5px;
}

.welcome-box p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.viewfinder-container {
  width: 180px;
  height: 180px;
  position: relative;
  margin-bottom: 2.5rem;
  background-color: rgba(0,0,0,0.02);
}

.viewfinder-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 4px solid var(--primary);
}

.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: scanLaser 2s infinite ease-in-out;
}

.viewfinder-instructions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 140px;
}

.viewfinder-instructions p {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.3;
}

.scan-action-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 2rem;
}

.pulse-loader {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulseDot 1.2s infinite;
}

/* App Bar & Sticky Headers */
.app-bar {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111827;
}

.room-options-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.table-info-banner {
  background-color: #f3f4f6;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.table-pill {
  background-color: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.table-info-banner p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.4;
}

.room-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.room-choice-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.room-choice-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.choice-icon {
  font-size: 1.8rem;
  width: 3.2rem;
  height: 3.2rem;
  background-color: #f9fafb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-text h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.15rem;
}

.choice-text p {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

/* PIN Verification screen */
.auth-card-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 850;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.pin-inputs-row {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.pin-digit, .otp-digit {
  width: 2.8rem;
  height: 3.2rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.pin-digit:focus, .otp-digit:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.auth-error-msg {
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── MENU PAGE REPLICATION ─── */
.sticky-nav {
  padding: 0.75rem 1rem;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.restaurant-name {
  font-size: 0.95rem;
  font-weight: 850;
  color: #111827;
}

.table-id-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-cart-toggle {
  background-color: #111827;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

.sitting-info-bar {
  background-color: #0b0b0f;
  color: #fff;
  padding: 0.45rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.sitting-indicator {
  font-weight: 700;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

.sitting-pills {
  display: flex;
  gap: 0.3rem;
}

.pill-table, .pill-pin {
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.pill-table {
  background-color: rgba(255,255,255,0.1);
}

.pill-pin {
  background-color: var(--primary);
}

.menu-content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  background-color: #f9fafb;
}

.menu-content-scroll::-webkit-scrollbar {
  display: none;
}

/* Categories Container */
.categories-container {
  border-bottom: 1px solid #f3f4f6;
  background-color: #fff;
  padding: 0.6rem 0.5rem;
}

.categories-scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.1rem;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background-color: #f3f4f6;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  color: #4b5563;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.category-pill.active {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(244,63,94,0.2);
}

/* Dietary pills */
.dietary-container {
  padding: 0.6rem 1rem 0.2rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.dietary-pill {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.15s ease;
}

.dietary-pill.active {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
}

/* Dish Lists */
.menu-items-list {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.menu-item-row {
  display: flex;
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-item-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.item-img-box {
  width: 90px;
  height: 95px;
  position: relative;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

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

.diet-tag-spot {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border-width: 1px;
  border-style: solid;
}

.diet-dot.veg {
  border-color: #10b981;
  background-color: #10b981;
}

.diet-dot.non-veg {
  border-color: #ef4444;
  background-color: #ef4444;
}

.item-details-box {
  flex-grow: 1;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-details-box h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 0.1rem;
}

.item-desc-text {
  font-size: 0.72rem;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 1.85rem;
  line-height: 1.3;
}

.item-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}

.item-price {
  font-size: 0.9rem;
  font-weight: 850;
  color: #111827;
}

.item-time-prep {
  font-size: 0.65rem;
  color: #9ca3af;
}

.btn-add-item {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(244, 63, 94, 0.1);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-item:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-add-item.qty-active {
  background-color: var(--primary);
  color: #fff;
}

/* Floating Checkout Bar */
.floating-checkout-bar {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px var(--primary-glow);
  z-index: 100;
  cursor: pointer;
  animation: bounceInBar 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-bar-info {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.checkout-count {
  font-weight: 800;
}

.checkout-price {
  font-weight: 900;
}

.btn-view-cart {
  background: none;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ─── CART VIEW SCREEN ─── */
.cart-content-scroll, .checkout-content-scroll, .order-content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f9fafb;
}

.cart-content-scroll::-webkit-scrollbar, .checkout-content-scroll::-webkit-scrollbar, .order-content-scroll::-webkit-scrollbar {
  display: none;
}

.cart-table-info {
  background-color: #f3f4f6;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.label-table-info {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
}

.badge-active-room {
  background-color: #111827;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.participants-box {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.box-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.4rem;
}

.participants-avatars {
  display: flex;
  gap: 0.4rem;
}

.avatar-circle {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
  position: relative;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar-circle.host { background-color: var(--primary); }
.avatar-circle.companion { background-color: var(--info); }
.avatar-circle.companion2 { background-color: var(--success); }

/* Cart Section */
.cart-section, .kot-section {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.cart-section-title, .kot-section-title {
  background-color: #f9fafb;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 850;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid #f3f4f6;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f9fafb;
}

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

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #111827;
}

.cart-item-addedby {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 700;
}

.cart-qty-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #f3f4f6;
  padding: 0.15rem;
  border-radius: 8px;
}

.btn-qty {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background-color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.qty-val {
  font-size: 0.8rem;
  font-weight: 800;
  width: 1.2rem;
  text-align: center;
}

.cart-item-total {
  font-weight: 800;
  font-size: 0.85rem;
  width: 4rem;
  text-align: right;
  color: #111827;
}

/* Placed orders list */
.kot-orders-list {
  padding: 0.5rem 0;
}

.kot-group-block {
  padding: 0.75rem 1rem;
}

.kot-group-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.kot-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #111827;
}

.kot-group-items {
  margin-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kot-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.kot-item-lbl {
  color: #4b5563;
}

.kot-item-val {
  font-weight: 700;
  color: #111827;
}

/* Bill summary box */
.bill-summary-box {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Cart Footer Actions */
.cart-footer-bar {
  padding: 0.85rem 1rem;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cart-actions-row {
  display: flex;
  gap: 0.5rem;
}

.flex-1 { flex: 1; }
.flex-[2] { flex: 2; }

/* ─── PHONE AUTH LOGIN ─── */
.auth-icon-circle {
  font-size: 2.2rem;
  width: 4.5rem;
  height: 4.5rem;
  background-color: #fff1f2;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

.input-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4b5563;
  text-transform: uppercase;
}

.input-phone-container {
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding-left: 0.85rem;
}

.phone-prefix {
  font-weight: 700;
  color: #4b5563;
  margin-right: 0.5rem;
  font-size: 0.95rem;
}

.input-text {
  width: 100%;
  border: none;
  background: none;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.input-text:focus {
  outline: none;
}

.input-text.text-medium {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

/* ─── CHECKOUT VIEW SCREEN ─── */
.checkout-section {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.checkout-header-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4b5563;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.dining-tabs {
  display: grid;
  grid-template-cols: 1fr 1fr 1fr;
  gap: 0.4rem;
}

.dining-tab {
  background-color: #f3f4f6;
  border: 2px solid transparent;
  padding: 0.65rem 0.25rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: #4b5563;
  text-align: center;
  transition: all 0.2s ease;
}

.dining-tab.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
  transform: scale(1.02);
}

.textarea-input {
  width: 100%;
  height: 4rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  resize: none;
  font-weight: 600;
}

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

.checkout-footer-bar {
  padding: 0.85rem 1rem;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.btn-payment {
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-counter {
  background-color: #10b981;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

/* ─── ORDER CONFIRMATION / TRACKING ─── */
.order-success-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(16,185,129,0.3);
}

.success-check {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  font-size: 1.25rem;
  font-weight: 800;
}

.order-success-banner h2 {
  font-size: 1.2rem;
  font-weight: 850;
  margin-bottom: 0.2rem;
}

.order-success-banner p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.order-details-card, .details-card-items {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.details-header {
  background-color: #f9fafb;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f3f4f6;
}

.header-bold {
  font-size: 0.75rem;
  font-weight: 800;
  color: #374151;
}

.status-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.status-preparing { background-color: #dbeafe; color: #1e40af; }
.status-completed { background-color: #d1fae5; color: #065f46; }

.details-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.order-id-code {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: #f3f4f6;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.card-items-title {
  background-color: #f9fafb;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.card-items-list {
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.confirm-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.confirm-item-name {
  font-weight: 750;
  color: #111827;
}

.confirm-item-status {
  font-size: 0.62rem;
  font-weight: 800;
  color: #f59e0b;
}

.confirm-item-status.ready {
  color: #10b981;
}

/* Order progress tracker */
.order-progress-card {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.order-progress-card h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.4rem;
}

.progress-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  padding-left: 0.5rem;
}

.progress-steps-list::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 21px;
  bottom: 10px;
  width: 2px;
  background-color: #e5e7eb;
}

.progress-step-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
}

.step-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
}

.progress-step-item.completed .step-circle {
  background-color: #d1fae5;
  color: #10b981;
  border-color: #a7f3d0;
}

.progress-step-item.completed .step-lbl {
  color: #111827;
}

.progress-step-item.active .step-circle {
  background-color: #fff1f2;
  color: var(--primary);
  border-color: var(--primary);
  animation: pulseActiveBorder 1.5s infinite;
}

.progress-step-item.active .step-lbl {
  color: #111827;
  font-weight: 800;
}

.order-footer-bar {
  padding: 0.85rem 0;
  flex-shrink: 0;
}

/* ─── MODAL OVERLAYS (ITEM DETAIL & SPLIT BILL) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet style */
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease-out;
}

/* On desktop, show modal in center */
@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background-color: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  animation: slideUpModal 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@media (min-width: 600px) {
  .modal-card {
    border-radius: 24px;
    max-height: 90vh;
  }
}

/* Modal Hero Image */
.modal-hero-image {
  height: 180px;
  position: relative;
  background-color: #e5e7eb;
}

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

.modal-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.8) 100%);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  z-index: 10;
}

.modal-hero-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
}

.modal-hero-info h2 {
  font-size: 1.3rem;
  font-weight: 850;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.modal-dietary-badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
}

.modal-price-tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: #fff;
  color: #111827;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-description {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}

.meta-icon {
  font-size: 1.2rem;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.meta-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1f2937;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f3f4f6;
  background-color: #fff;
}

/* Split bill modal layout */
.split-modal {
  max-height: 75vh;
}

.split-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-modal-header h3 {
  font-size: 1rem;
  font-weight: 850;
  color: #111827;
}

.modal-close-btn-static {
  background: none;
  border: none;
  font-size: 1rem;
  color: #9ca3af;
  cursor: pointer;
}

.split-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.split-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.split-modes {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 0.5rem;
  background-color: #f3f4f6;
  padding: 0.2rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.split-mode-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  color: #4b5563;
  text-align: center;
  transition: all 0.15s ease;
}

.split-mode-btn.active {
  background-color: #fff;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.split-output-container {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 1rem;
}

.split-row {
  padding: 0.6rem 0;
  font-size: 0.85rem;
}

.split-items-instructions {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.split-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.split-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.person-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.person-lbl {
  font-size: 0.8rem;
  font-weight: 750;
  color: #111827;
}

.person-owe-amt {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

/* ─── ANIMATIONS & KEYFRAMES ─── */
@keyframes scanLaser {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 100%; opacity: 0.8; }
  100% { top: 0%; opacity: 0.8; }
}

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

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes pulseActiveBorder {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes slideInDevice {
  0% { transform: translateY(30px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideUpModal {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes bounceInBar {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; }
  70% { transform: scale(1.03) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

/* ─── MOBILE DEVICE SWITCHER (hidden on desktop) ─── */
.mobile-device-switcher {
  display: none;
}

/* ─── RESPONSIVE SPLIT PAGE LAYOUT ─── */
@media (max-width: 950px) {
  body {
    overflow: auto;
    height: auto;
  }
  .sim-container {
    flex-direction: column;
    overflow-y: visible;
    height: auto;
    min-height: 100vh;
  }
  .sim-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
    flex-shrink: 0;
  }
  .sidebar-scroll {
    overflow-y: visible;
    flex-grow: 0;
  }
  .sim-workspace {
    height: auto;
    min-height: auto;
    padding: 0 0 2rem 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ── Mobile Device Switcher Tab Bar ── */
  .mobile-device-switcher {
    display: flex;
    gap: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: #0b0b0f;
    border-bottom: 1px solid var(--dark-border);
    padding: 0;
  }

  .device-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }

  .device-tab:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  .device-tab.active {
    color: #fff;
    border-bottom-color: var(--primary);
    background-color: rgba(244, 63, 94, 0.06);
  }

  .device-tab .tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    flex-shrink: 0;
    transition: background-color 0.2s ease;
  }

  .device-tab.active .tab-dot {
    background-color: var(--success);
    animation: pulseDot 1.5s infinite;
  }

  .device-tab .tab-role {
    font-weight: 600;
    font-size: 0.72rem;
    opacity: 0.7;
  }

  /* ── Phone visibility toggling on mobile ── */
  .devices-layout {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0.5rem;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
  }

  /* On mobile, hide phones by default; show only the active one */
  .phone-mockup {
    display: none !important;
  }
  .phone-mockup.mobile-active {
    display: block !important;
    animation: fadeInDevice 0.3s ease-out;
  }

  /* Hide phone label tags on mobile (tabs replace them) */
  .phone-mockup .phone-label-tag,
  .phone-mockup .btn-close-companion {
    display: none;
  }

  /* Scale phones to fit mobile screens */
  .phone-bezel {
    width: min(375px, calc(100vw - 2rem));
    height: min(780px, calc(100vh - 120px));
  }

  @keyframes fadeInDevice {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
