/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  height: 100vh;
  min-height: 720px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  padding: 100px 60px 60px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 35%; left: 48%;
  transform: translate(-50%, -50%);
  width: 1200px; height: 900px;
  background: radial-gradient(ellipse at center, rgba(91,115,240,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── HERO LEFT — sharp ──────────────────────────────────────── */
.hero-left {
  width: 50%;
  padding-right: 52px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.stagger { opacity: 0; transform: translateY(22px); }
.stagger.visible { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Badge — sharp */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2.4s ease infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.hero-headline {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2.8px;
  color: #94A8D0;
  text-shadow: 0 0 80px rgba(91, 115, 240, 0.1);
}
.hero-headline::first-line {
  color: #FFFFFF;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
  max-width: 480px;
  letter-spacing: -0.2px;
}
/* CTA — sharp */
.hero-cta { display: flex; gap: 14px; align-items: center; }
.btn-primary {
  padding: 14px 28px;
  background: #FFFFFF;
  color: #0A101E;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px rgba(0,0,0,0.3);
}
.btn-primary:hover  { transform: scale(1.03); background: #F0F4FF; }
.btn-primary:active { transform: scale(0.97); }
.btn-arrow { font-size: 17px; line-height: 1; margin-top: 1px; }

/* ─── HERO RIGHT ─────────────────────────────────────────────── */
.hero-right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.pos-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 560px; height: 680px;
  background: radial-gradient(ellipse at center, rgba(200,205,215,0.12) 0%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}
.pos-glow-floor {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 44px;
  background: rgba(160,165,180,0.18);
  filter: blur(32px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   DEVICE FRAME — white POS terminal (Hardware.png reference)
═══════════════════════════════════════════════════════ */
.pos-device {
  position: relative;
  z-index: 1;
  width: 310px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(170deg, #f4f5f7 0%, #eceef2 45%, #e4e6ea 100%);
  border-radius: 42px;
  transform: rotate(-2deg);
  box-shadow:
    inset 0 0 0 1px  rgba(255,255,255,0.9),
    inset 0 1px 0    rgba(255,255,255,1),
    inset 0 -1px 0   rgba(0,0,0,0.08),
    0 0 0 1px        rgba(0,0,0,0.14),
    0 4px 12px       rgba(0,0,0,0.10),
    0 18px 48px      rgba(0,0,0,0.16),
    0 0 80px         rgba(0,0,0,0.06);
}
.pos-device::before {
  content: '';
  position: absolute;
  left: -3px; top: 22%;
  width: 3px; height: 28px;
  background: linear-gradient(to right, #c8cace, #d4d6da);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 42px 0 0 #caccce;
}
.pos-device::after {
  content: '';
  position: absolute;
  right: -3px; top: 30%;
  width: 3px; height: 58px;
  background: linear-gradient(to left, #c8cace, #d4d6da);
  border-radius: 0 3px 3px 0;
}

/* SCREEN SHELL — white background, rounded */
.pos-screen {
  position: absolute;
  top: 9px; left: 9px; right: 9px; bottom: 9px;
  background: #FFFFFF;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --text:   #0A101E;
  --muted:  #64748B;
  --dim:    #94A3B8;
  --border: rgba(0,0,0,0.08);
}

/* Front camera — small punch-hole circle (Hardware.png reference) */
.pos-island {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: radial-gradient(circle at 35% 35%, #3a3a3c, #111112);
  border-radius: 50%;
  z-index: 30;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18), inset 0 1px 2px rgba(0,0,0,0.5);
}

/* Status bar */
.pos-statusbar {
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #0A101E;
  position: relative;
  z-index: 5;
  font-family: var(--mono);
  background: #FFFFFF;
}
.pos-statusbar-icons { display: flex; align-items: center; gap: 5px; }

/* App header */
.pos-appheader {
  padding: 8px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  background: #FFFFFF;
}
.pos-appheader-left { display: flex; align-items: center; gap: 8px; }
.pos-appheader-logo img { height: 20px; display: block; }
.pos-appheader-sep { width: 1px; height: 18px; background: rgba(0,0,0,0.1); }
.pos-session-name {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: #0A101E; letter-spacing: 0.04em;
}
.pos-session-sub { font-size: 9px; color: #94A3B8; margin-top: 1px; font-family: var(--mono); }
.pos-live {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  color: var(--green); letter-spacing: 0.12em;
}
.pos-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: livePulse 1.6s ease infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1;  box-shadow: 0 0 0 0   rgba(16,185,129,0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* Progress bar */
.pos-progress-wrap { height: 2px; background: rgba(0,0,0,0.05); flex-shrink: 0; overflow: hidden; }
.pos-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--green) 100%);
  transition: width 0.55s cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 1px 1px 0;
}

/* ════════════════════════════════════════
   SCREEN VIEWS — 7 cycling screens
════════════════════════════════════════ */
.screen-views { flex: 1; position: relative; overflow: hidden; background: #FFFFFF; }
.sv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 28px;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  will-change: opacity;
  background: #FFFFFF;
}
.sv.active { opacity: 1; pointer-events: auto; }

.sv-step {
  font-family: var(--mono);
  font-size: 8px; font-weight: 700;
  color: #94A3B8; letter-spacing: 0.1em;
  margin-bottom: 8px; text-align: right;
}
.sv-header { margin-bottom: 10px; }
.sv-title  { font-size: 13px; font-weight: 700; color: #0A101E; letter-spacing: -0.3px; }
.sv-sub    { font-size: 10px; color: #64748B; margin-top: 2px; font-family: var(--mono); }

/* ─── SCREEN 1: SELECT TABLE ─── */
.sv-table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px; flex: 1; align-content: start; padding-top: 4px;
}
.sv-table-cell {
  aspect-ratio: 1.4;
  border-radius: 9px;
  border: 1.5px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: #64748B; background: #F8FAFC;
}
.sv-table-cell.sel {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(91,115,240,0.35);
  animation: tablePulse 1.8s ease infinite;
}
@keyframes tablePulse {
  0%,100% { box-shadow: 0 4px 14px rgba(91,115,240,0.35); }
  50%      { box-shadow: 0 4px 22px rgba(91,115,240,0.6); }
}
.sv-table-cell.occ {
  background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.25);
  color: var(--amber); font-size: 8px;
}
.sv-selection-note {
  font-family: var(--mono); font-size: 9px; color: var(--accent);
  letter-spacing: 0.03em; padding-top: 8px;
}

/* ─── SCREEN 2: POS MENU ─── */
.sv-cat-tabs {
  display: flex;
  border-bottom: 1.5px solid rgba(0,0,0,0.08);
  margin-bottom: 8px; flex-shrink: 0;
}
.sv-cat-tab {
  padding: 5px 11px 6px;
  font-size: 10px; font-weight: 600;
  color: #94A3B8; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  font-family: inherit; white-space: nowrap;
  border-radius: 6px 6px 0 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.sv-cat-tab.sel {
  color: var(--accent); border-bottom-color: var(--accent); font-weight: 700;
  background: rgba(91,115,240,0.06);
}
.sv-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px; flex: 1; align-content: start; overflow: hidden;
}
.sv-menu-item {
  padding: 8px 9px;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  position: relative; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.sv-menu-item.sel {
  background: rgba(91,115,240,0.07);
  border-color: rgba(91,115,240,0.35);
  box-shadow: 0 2px 8px rgba(91,115,240,0.12);
}
.sv-menu-name { font-size: 9.5px; font-weight: 700; color: #0A101E; margin-bottom: 3px; letter-spacing: -0.1px; line-height: 1.25; }
.sv-menu-price { font-family: var(--mono); font-size: 9px; color: #64748B; }
.sv-menu-qty {
  position: absolute; top: 5px; right: 5px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--accent); color: #fff;
  font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  border-radius: 4px;
}
.sv-order-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 0;
  border-top: 1.5px solid rgba(0,0,0,0.08);
  flex-shrink: 0; margin-top: auto;
}
.sv-strip-count { font-size: 9px; color: #94A3B8; font-family: var(--mono); margin-bottom: 1px; }
.sv-strip-total { font-size: 12px; font-weight: 800; color: #0A101E; font-family: var(--mono); letter-spacing: -0.5px; }
.sv-strip-btn {
  padding: 7px 13px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 4px;
}

/* ─── SCREEN 2: COMBINED ORDER — panel switching ─── */
.sv-menu-panel { display: none; flex: 1; overflow: hidden; }
#sv-2[data-cat="burgers"] .sv-menu-panel[data-panel="burgers"],
#sv-2[data-cat="sides"] .sv-menu-panel[data-panel="sides"],
#sv-2[data-cat="drinks"] .sv-menu-panel[data-panel="drinks"] { display: block; }

/* Tab auto-highlighting via data-cat (no .sel needed on tabs) */
#sv-2[data-cat="burgers"] .sv-cat-tab:nth-child(1),
#sv-2[data-cat="sides"] .sv-cat-tab:nth-child(2),
#sv-2[data-cat="drinks"] .sv-cat-tab:nth-child(3) {
  color: var(--accent); border-bottom-color: var(--accent); font-weight: 700;
  background: rgba(91,115,240,0.06);
}

/* Order strip smooth appear */
#sv-2 .sv-order-strip { transition: opacity 0.2s ease; }

/* ─── SCREEN 3: SYNCING ─── */
.sv-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 11px; text-align: center; padding-bottom: 12px;
}
.sv-cloud-wrap {
  width: 58px; height: 58px;
  background: rgba(91,115,240,0.06);
  border: 1.5px solid rgba(91,115,240,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: cloudPulse 1.8s ease infinite;
}
@keyframes cloudPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(91,115,240,0.18); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(91,115,240,0); }
}
.sv-sync-title { font-size: 14px; font-weight: 700; color: #0A101E; }
.sv-sync-sub   { font-size: 10px; color: #64748B; font-family: var(--mono); }
.sv-sync-dots  { display: flex; gap: 5px; }
.sv-sync-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: dotBounce 1.2s ease infinite;
}
.sv-sync-dot:nth-child(2) { animation-delay: 0.18s; }
.sv-sync-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes dotBounce {
  0%,100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-5px); opacity: 1; }
}
.sv-order-tag {
  font-family: var(--mono); font-size: 9px; color: #64748B;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #F8FAFC;
}

/* ─── SCREEN 4: ORDER READY ─── */
.sv-check-wrap {
  width: 60px; height: 60px;
  background: rgba(16,185,129,0.07);
  border: 2px solid rgba(16,185,129,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: checkGlow 2s ease infinite;
}
@keyframes checkGlow {
  0%,100% { box-shadow: 0 0 0 0   rgba(16,185,129,0.25); }
  50%      { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}
.sv-ready-title { font-size: 15px; font-weight: 800; color: #0A101E; }
.sv-ready-sub   { font-size: 10px; color: #64748B; font-family: var(--mono); }
.sv-served-list {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; margin-top: 4px;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 8px 10px;
}
.sv-served-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 600; color: #0A101E;
}
.sv-served-check {
  width: 14px; height: 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── SCREEN 5: BILL ─── */
.sv-bill-rows { flex: 1; display: flex; flex-direction: column; }
.sv-bill-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 10px;
}
.sv-bill-row .name { color: #0A101E; }
.sv-bill-row .amt  { font-family: var(--mono); color: #64748B; font-size: 10px; }
.sv-bill-row.vat   { opacity: 0.6; }
.sv-bill-total {
  display: flex; justify-content: space-between;
  padding: 8px 0 0; font-size: 12px; font-weight: 800;
  border-top: 1.5px solid rgba(0,0,0,0.1); margin-top: 2px;
}
.sv-bill-total .name { color: #0A101E; }
.sv-bill-total .amt  { font-family: var(--mono); color: var(--green); }

/* ─── RECEIPT OPTIONS (Step 6 addon) ─── */
.sv-ro {
  display: flex; flex-direction: column; align-items: center;
  margin: 10px 0 4px;
}
/* QR area — primary, centered */
.sv-ro-qr-area {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; justify-content: center;
  padding: 4px 0 6px;
}
.sv-ro-qr-frame {
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 3px #F1F5F9;
}
.sv-ro-qr { width: 100%; height: 100%; display: block; }
.sv-ro-caption {
  font-size: 7.5px; color: #94A3B8; text-align: center;
  margin-top: 5px; line-height: 1.25;
}
/* Print — secondary full-width button */
.sv-ro-print-btn {
  width: 100%; padding: 8px; border: none;
  border-radius: 10px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; color: #64748B;
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.15s, border-color 0.15s;
}
.sv-ro-print-btn:hover { background: #F8FAFC; border-color: rgba(0,0,0,0.16); }
.sv-ro-print-btn:active { background: #F1F5F9; }
/* Subtle inline feedback */
.sv-ro-feedback {
  font-size: 8px; color: #94A3B8; text-align: center;
  height: 12px; line-height: 12px;
  opacity: 0; transition: opacity 0.2s;
}
.sv-ro-feedback.visible { opacity: 1; color: #10B981; }

/* ─── SCREEN 7 (new): ORDER CLOSED — minimal done state ─── */
.sv-done-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(16,185,129,0.08);
  border: 2px solid rgba(16,185,129,0.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sv-done-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  color: #10B981; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 10px;
}
.sv-done-amount {
  font-family: var(--mono); font-size: 22px; font-weight: 900;
  color: #0A101E; letter-spacing: -1px; line-height: 1;
  margin-top: 2px;
}
.sv-done-ref {
  font-family: var(--mono); font-size: 8px; color: #94A3B8;
  letter-spacing: 0.04em; margin-top: 4px; margin-bottom: 16px;
}
.sv-done-rows {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
}
.sv-done-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 10px; font-weight: 600; color: #334155;
}
.sv-done-row:last-child { border-bottom: none; }
.sv-done-tick {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sv-done-sub { font-size: 9px; color: #94A3B8; font-family: var(--mono); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════
   STEP 7: PRE-PAYMENT SUB-STAGE SWITCHING
═══════════════════════════════════════════════════════ */

/* All pay stages hidden by default */
.sv-pay-stage { display: none; flex-direction: column; flex: 1; overflow: hidden; }

/* Show active stage based on data-pay-stage */
#dsv-7[data-pay-stage="method"]       #dPayMethodStage,
#dsv-7[data-pay-stage="tip"]          #dTipStage,
#dsv-7[data-pay-stage="split"]        #dSplitStage,
#dsv-7[data-pay-stage="split-detail"] #dSplitDetailStage,
#dsv-7[data-pay-stage="cash"]         #dCashStage,
#dsv-7[data-pay-stage="card"]         #dCardStage { display: flex; }

/* ── Payment Method Buttons ── */
.sv-pm-list { display: flex; flex-direction: column; gap: 8px; padding: 0 2px; }
.sv-pm-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  background: #FAFBFC; cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif; text-align: left;
}
.sv-pm-btn:hover { background: #F1F5F9; border-color: rgba(91,115,240,0.25); }
.sv-pm-btn:active { transform: scale(0.98); }
.sv-pm-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(91,115,240,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.sv-pm-label { flex: 1; min-width: 0; }
.sv-pm-name { font-size: 12px; font-weight: 700; color: #0F172A; }
.sv-pm-arrow { font-size: 18px; color: #CBD5E1; font-weight: 300; }

/* ── Tip Selection ── */
.sv-tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 2px; }
.sv-tip-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px;
  background: #FAFBFC; cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.sv-tip-btn:hover { border-color: rgba(91,115,240,0.25); background: #F1F5F9; }
.sv-tip-btn.sel {
  background: rgba(91,115,240,0.08); border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.sv-tip-pct { font-size: 13px; font-weight: 700; color: #0F172A; }
.sv-tip-btn.sel .sv-tip-pct { color: var(--accent); }
.sv-tip-amt { font-size: 9px; color: #94A3B8; margin-top: 2px; font-family: var(--mono); }

.sv-tip-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 6px 0; margin-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.sv-tip-total-label { font-size: 10px; color: #64748B; font-weight: 600; }
.sv-tip-total-amt { font-size: 13px; font-weight: 800; color: #0F172A; font-family: var(--mono); }

.sv-tip-actions { margin-top: auto; padding-top: 8px; flex-shrink: 0; }

/* ── Back Button ── */
.sv-pay-back {
  display: block; width: 100%;
  padding: 6px; margin-top: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 10px; font-weight: 600; color: #94A3B8;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}
.sv-pay-back:hover { color: #64748B; }

/* ── Split Options ── */
.sv-split-list { display: flex; flex-direction: column; gap: 8px; padding: 0 2px; }
.sv-split-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  background: #FAFBFC; cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif; text-align: left;
}
.sv-split-btn:hover { background: #F1F5F9; border-color: rgba(91,115,240,0.25); }
.sv-split-btn:active { transform: scale(0.98); }
.sv-split-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(91,115,240,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--accent); flex-shrink: 0;
}
.sv-split-label { font-size: 11px; font-weight: 600; color: #0F172A; line-height: 1.4; }
.sv-split-per { font-size: 9px; font-weight: 400; color: #94A3B8; font-family: var(--mono); }

/* ── Split Detail ── */
.sv-sd-rows { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.sv-sd-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: #FAFBFC; border: 1px solid rgba(0,0,0,0.05);
  font-size: 11px;
}
.sv-sd-guest { font-weight: 700; color: #0F172A; flex: 1; }
.sv-sd-amt { font-family: var(--mono); font-weight: 600; color: #334155; font-size: 11px; }
.sv-sd-current { font-size: 8px; font-weight: 700; color: var(--accent); }
.sv-sd-pending { font-size: 8px; color: #CBD5E1; }

/* ── Cash Flow ── */
.sv-cash-display { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.sv-cash-due, .sv-cash-tendered, .sv-cash-change {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 8px;
  background: #FAFBFC; border: 1px solid rgba(0,0,0,0.05);
}
.sv-cash-lbl { font-size: 10px; font-weight: 600; color: #64748B; }
.sv-cash-val { font-size: 14px; font-weight: 800; color: #0F172A; font-family: var(--mono); }
.sv-cash-green { color: var(--green); }
.sv-cash-change { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.15); }

.sv-cash-quicks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
  padding: 10px 2px 0;
}
.sv-cash-quick {
  padding: 8px 4px; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
  background: #FAFBFC; cursor: pointer;
  font-size: 10px; font-weight: 700; color: #334155;
  font-family: var(--mono);
  transition: all 0.12s;
}
.sv-cash-quick:hover { background: #F1F5F9; border-color: rgba(91,115,240,0.2); }
.sv-cash-quick:active { transform: scale(0.96); }

/* ── Split by Guests — Stepper ── */
.sv-sg-input-wrap { text-align: center; padding: 0 2px; }
.sv-sg-label { font-size: 10px; font-weight: 600; color: #64748B; display: block; margin-bottom: 8px; }
.sv-sg-stepper {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.sv-sg-step-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1); background: #FAFBFC;
  font-size: 16px; font-weight: 700; color: #334155;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  font-family: 'Inter', sans-serif;
}
.sv-sg-step-btn:hover { background: #F1F5F9; border-color: rgba(91,115,240,0.25); }
.sv-sg-step-btn:active { transform: scale(0.93); }
.sv-sg-count { font-size: 28px; font-weight: 800; color: #0F172A; min-width: 32px; text-align: center; }
.sv-sg-preview {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 8px; margin-top: 12px;
  background: #FAFBFC; border: 1px solid rgba(0,0,0,0.05);
}

/* ── Split by Item — Checkbox rows ── */
.sv-si-list {
  display: flex; flex-direction: column; gap: 4px; padding: 0 2px;
  max-height: 140px; overflow-y: auto;
}
.sv-si-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  background: #FAFBFC; border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer; transition: background 0.12s;
}
.sv-si-row:hover { background: #F1F5F9; }
.sv-si-check {
  width: 16px; height: 16px; accent-color: var(--accent);
  cursor: pointer; flex-shrink: 0;
}
.sv-si-name { flex: 1; font-size: 11px; font-weight: 600; color: #0F172A; }
.sv-si-price { font-size: 10px; font-weight: 700; color: #334155; font-family: var(--mono); }

/* ── Cash Tip Input ── */
.sv-cash-tip-input { padding: 10px 2px 0; }
.sv-cash-tip-label { font-size: 10px; font-weight: 600; color: #64748B; display: block; margin-bottom: 4px; }
.sv-cash-tip-field {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px;
  font-size: 14px; font-weight: 700; color: #0F172A;
  font-family: var(--mono); background: #FAFBFC;
  box-sizing: border-box; outline: none; transition: border-color 0.15s;
}
.sv-cash-tip-field:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(91,115,240,0.12); }
.sv-cash-tip-field::placeholder { color: #CBD5E1; font-weight: 400; }

/* ── Tip Custom Row ── */
.sv-tip-custom { padding: 6px 2px 0; }

/* ── Split type buttons (reuse pm-btn style) ── */
.sv-split-type-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  background: #FAFBFC; cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif; text-align: left;
}
.sv-split-type-btn:hover { background: #F1F5F9; border-color: rgba(91,115,240,0.25); }
.sv-split-type-btn:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════════
   SCREEN 6 (new): PAYMENT — CARD TAP ANIMATION
═══════════════════════════════════════════════════════ */

/* Scene wrapper — clips the card entering/exiting */
.sv-7-scene {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* NFC reader pad — circular, centered in scene */
.sv-nfc-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.sv-nfc-reader {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(91,115,240,0.05);
  border: 1.5px solid rgba(91,115,240,0.18);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* NFC ripple rings — expand on tap */
.sv-nfc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(91,115,240,0.38);
  opacity: 0;
  pointer-events: none;
}
.sv-nfc-ring.r1 { inset: -6px; }
.sv-nfc-ring.r2 { inset: -15px; border-color: rgba(91,115,240,0.18); }
.sv-nfc-label {
  font-family: var(--mono);
  font-size: 7.5px;
  color: #94A3B8;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* Animated credit card — absolute, positioned to animate through scene */
.sv-tap-card {
  position: absolute;
  top: 47%; left: 50%;
  width: 98px; height: 62px;
  /* Center the card (adjust for label offset) */
  transform: translate(calc(-50% + 160px), -50%) rotate(8deg);
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1d2e 0%, #0d0f1a 55%, #13162a 100%);
  border: 1px solid rgba(255,255,255,0.13);
  padding: 7px 9px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.5),
    0 2px 8px  rgba(91,115,240,0.1),
    inset 0 1px 0 rgba(255,255,255,0.07);
  opacity: 0;
  z-index: 3;
}
/* Card inner elements */
.sv-tc-row { display: flex; justify-content: space-between; align-items: center; }
.sv-tc-chip {
  width: 17px; height: 13px;
  background: linear-gradient(135deg, #c0a040, #eec860, #c0a040);
  border-radius: 3px;
}
.sv-tc-mc { display: flex; align-items: center; }
.sv-tc-mc-r {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #EB001B;
}
.sv-tc-mc-y {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #F79E1B;
  margin-left: -6px;
  opacity: 0.9;
}
.sv-tc-num {
  font-family: var(--mono);
  font-size: 6.5px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 1.2px;
}

/* Payment success result — below scene, fades in after tap */
.sv-7-result {
  flex-shrink: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.07);
  opacity: 0;
}
/* Shared payment approved elements */
.sv-approved {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 14px; font-weight: 800;
  color: var(--green); margin-bottom: 4px;
}
.sv-approved-ring {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  border: 1.5px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sv-txn-info {
  text-align: center; font-family: var(--mono);
  font-size: 9px; color: #64748B; line-height: 1.6; margin-bottom: 10px;
}
.sv-pci-badges { display: flex; justify-content: center; gap: 5px; }
.sv-pci-badge {
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.12);
  font-family: var(--mono); font-size: 7px; font-weight: 700;
  color: #64748B; letter-spacing: 0.05em; background: #F8FAFC;
}

/* ── Playing class — applied by JS when screen 6 (payment) activates ── */
.sv-tap-card.playing {
  animation: sv7CardAnim 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.sv-nfc-ring.r1.playing {
  animation: sv7Ring1 2.8s ease forwards;
}
.sv-nfc-ring.r2.playing {
  animation: sv7Ring2 2.8s ease forwards;
}
.sv-7-result.playing {
  animation: sv7ResultIn 2.8s ease forwards;
}

/* ── KEYFRAMES for Screen 6 (payment)
   Screen duration = SCREEN_DURATION = 2800ms
   Timeline (tighter — screen is not the last):
     0%  = 0ms:    card off-screen right
     12% = 336ms:  entering, visible
     26% = 728ms:  arrived at NFC reader center
     33% = 924ms:  brief rest
     41% = 1148ms: TAP — scale up
     50% = 1400ms: tap held
     59% = 1652ms: release + result fades in
     72% = 2016ms: card holds / result visible
     83% = 2324ms: card exits right
     94% = 2632ms: off screen
    100% = 2800ms: done
── */
@keyframes sv7CardAnim {
  0%   { opacity: 0; transform: translate(calc(-50% + 160px), -50%) rotate(8deg);  }
  12%  { opacity: 1; transform: translate(calc(-50% + 88px),  -50%) rotate(4deg);  }
  26%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg);                }
  33%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1);       }
  41%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1.07);    }
  50%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1.04);    }
  59%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1);       }
  72%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg);                }
  83%  { opacity: 1; transform: translate(calc(-50% + 88px),  -50%) rotate(4deg);  }
  94%  { opacity: 0; transform: translate(calc(-50% + 160px), -50%) rotate(8deg);  }
  100% { opacity: 0; transform: translate(calc(-50% + 160px), -50%) rotate(8deg);  }
}

@keyframes sv7Ring1 {
  0%,  38% { opacity: 0; transform: scale(1);    }
  43%       { opacity: 0.9; transform: scale(1);  }
  57%       { opacity: 0;   transform: scale(1.8); }
  100%      { opacity: 0;   transform: scale(1.8); }
}
@keyframes sv7Ring2 {
  0%,  42% { opacity: 0;   transform: scale(1);   }
  49%       { opacity: 0.5; transform: scale(1);   }
  66%       { opacity: 0;   transform: scale(2.4); }
  100%      { opacity: 0;   transform: scale(2.4); }
}
@keyframes sv7ResultIn {
  0%,  56% { opacity: 0; transform: translateY(6px); }
  68%       { opacity: 1; transform: translateY(0);   }
  92%       { opacity: 1; }
  99%       { opacity: 0; }
  100%      { opacity: 0; }
}

/* Shared button — rounded inside terminal */
.sv-btn {
  width: 100%; padding: 10px; border: none;
  border-radius: 10px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.sv-btn.blue  { background: var(--accent); color: #fff; box-shadow: 0 3px 12px rgba(91,115,240,0.25); }
.sv-btn.green { background: var(--green);  color: #fff; box-shadow: 0 3px 12px rgba(16,185,129,0.3); }

/* ═══════════════════════════════════════════════════════
   HERO ANIMATION — sv-ha-* classes (non-interactive)
═══════════════════════════════════════════════════════ */

/* ── Method / Split type list ── */
.sv-ha-list {
  display: flex; flex-direction: column; gap: 6px;
  padding: 4px 0; flex: 1;
}
.sv-ha-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 10px;
  background: #FAFBFC;
  font-size: 10px; font-weight: 600; color: #0F172A;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.sv-ha-btn.sel {
  background: rgba(91,115,240,0.08);
  border-color: rgba(91,115,240,0.35);
  box-shadow: 0 0 0 1px rgba(91,115,240,0.15), 0 2px 8px rgba(91,115,240,0.1);
}
.sv-ha-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(91,115,240,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.sv-ha-btn.sel .sv-ha-icon { background: rgba(91,115,240,0.12); }
.sv-ha-arrow {
  margin-left: auto;
  font-size: 16px; color: #CBD5E1; font-weight: 300;
}
.sv-ha-btn.sel .sv-ha-arrow { color: var(--accent); }

/* ── Split item checkboxes ── */
.sv-ha-checks {
  display: flex; flex-direction: column; gap: 4px;
  padding: 2px 0; flex: 1;
}
.sv-ha-check {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #FAFBFC; border: 1px solid rgba(0,0,0,0.05);
  font-size: 10px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.sv-ha-check.sel {
  background: rgba(91,115,240,0.08);
  border-color: rgba(91,115,240,0.3);
  box-shadow: 0 1px 6px rgba(91,115,240,0.1);
}
.sv-ha-cb {
  width: 15px; height: 15px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sv-ha-cb-empty {
  width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: #fff; flex-shrink: 0;
  box-sizing: border-box;
}
.sv-ha-name { flex: 1; font-weight: 600; color: #0F172A; }
.sv-ha-price {
  font-family: var(--mono); font-weight: 700; color: #334155;
  font-size: 10px; flex-shrink: 0;
}

/* ── Selected total ── */
.sv-ha-sel-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; margin-top: 4px;
  border-top: 1.5px solid rgba(0,0,0,0.07);
  font-size: 10px; font-weight: 600; color: #64748B;
}
.sv-ha-sel-amt {
  font-family: var(--mono); font-weight: 800; color: #0F172A;
  font-size: 12px;
}

/* ── Tip grid ── */
.sv-ha-tip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  padding: 2px 0;
}
.sv-ha-tip-btn {
  padding: 8px 6px;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
  background: #FAFBFC;
  font-size: 11px; font-weight: 700; color: #0F172A;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.sv-ha-tip-btn.sel {
  background: rgba(91,115,240,0.1); border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(91,115,240,0.12);
}
.sv-ha-tip-amt {
  font-size: 8px; color: #94A3B8; margin-top: 2px;
  font-family: var(--mono); font-weight: 400;
}
.sv-ha-tip-btn.sel .sv-ha-tip-amt { color: rgba(91,115,240,0.6); }

/* ── Tip total ── */
.sv-ha-tip-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 6px; margin-top: 4px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 10px; font-weight: 600; color: #64748B;
}
.sv-ha-tip-grand {
  font-family: var(--mono); font-weight: 800; color: #0F172A;
  font-size: 12px;
}

/* ── Progressive selection — hero animation only ── */

/* Qty badge: hidden by default, pops in on selection */
.hero-right .sv-menu-qty {
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-right .sv-menu-item.sel .sv-menu-qty {
  opacity: 1; transform: scale(1);
}

/* Checkbox toggle: swap cb / cb-empty based on .sel */
.sv-ha-check .sv-ha-cb { display: none; }
.sv-ha-check.sel .sv-ha-cb { display: flex; }
.sv-ha-check.sel .sv-ha-cb-empty { display: none; }

/* Button press feedback (brief scale-down on "tap") */
.hero-right .sv-btn,
.hero-right .sv-strip-btn {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.hero-right .sv-btn.btn-press,
.hero-right .sv-strip-btn.btn-press {
  transform: scale(0.94);
  filter: brightness(0.90);
}

/* pos-footer removed — no persistent bottom bar */

/* Home indicator */
.pos-home {
  position: absolute; bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  z-index: 20;
}
