/* =====================================================================
   KONGSHI — QR Dine-in Order
   Tema: modern Chinese restaurant — lacquer red, aged gold, porcelain,
   jade accent. Signature element: segel/stempel (chop) merah-emas,
   dipakai di ikon keranjang & di layar kode pengambilan pesanan.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Palet warna --- */
  --ink: #1C1210;
  --lacquer: #A6192E;
  --lacquer-dark: #7C0F20;
  --lacquer-tint: #F7E3E4;
  --gold: #C89B3C;
  --gold-soft: #E8D5A8;
  --gold-line: rgba(200, 155, 60, 0.35);
  --jade: #2F5D50;
  --jade-tint: #E3EDE9;
  --porcelain: #F7F3EC;
  --porcelain-dim: #EFE8DA;
  --stone: #8B8177;
  --stone-light: #B9B0A2;
  --white: #FFFFFF;

  /* --- Tipografi --- */
  --font-display: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(28, 18, 16, 0.07);
  --shadow-float: 0 10px 30px rgba(124, 15, 32, 0.28);
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  padding-bottom: calc(84px + var(--safe-bottom));
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(180deg, var(--lacquer) 0%, var(--lacquer-dark) 100%);
  color: var(--porcelain);
  box-shadow: 0 2px 14px rgba(124, 15, 32, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 10.5px;
  color: var(--gold-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.table-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(232, 213, 168, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  max-width: 46vw;
}

.table-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6FCF97;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.25);
}

.table-badge span.label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Category chips (sticky)
--------------------------------------------------------------------- */
.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 35;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--porcelain);
  border-bottom: 1px solid var(--gold-line);
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--porcelain-dim);
  color: var(--stone);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.chip:active { transform: scale(0.96); }

.chip.active {
  background: var(--lacquer);
  border-color: var(--lacquer);
  color: var(--white);
}

/* ---------------------------------------------------------------------
   Content
--------------------------------------------------------------------- */
.content {
  padding: 18px 16px 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.section-title .rule {
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

.section-sub {
  font-size: 12.5px;
  color: var(--stone);
  margin: 0 0 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(200, 155, 60, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.product-card:active { transform: scale(0.98); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--porcelain-dim), var(--porcelain));
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-media img.loaded { opacity: 1; }

.product-media.placeholder-only .img-placeholder { opacity: 1; }

.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.55;
}
.img-placeholder svg { width: 38%; height: 38%; }

.img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--porcelain-dim) 30%, #fff 50%, var(--porcelain-dim) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.img-skeleton.hide { display: none; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.stock-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(28, 18, 16, 0.72);
  color: var(--gold-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.package-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(120deg, var(--gold), #b8862e);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(124, 15, 32, 0.25);
}

.product-info {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-name {
  font-size: 13.8px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 11.5px;
  color: var(--stone);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 15px;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}

.product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--lacquer-dark);
  white-space: nowrap;
}

.add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--lacquer);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(166, 25, 46, 0.35);
  transition: transform 0.12s ease, background 0.15s ease;
}
.add-btn:active { transform: scale(0.88); }
.add-btn:disabled {
  background: var(--stone-light);
  box-shadow: none;
}

.add-btn svg { width: 16px; height: 16px; }

.qty-stepper-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--lacquer-tint);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.qty-stepper-mini button {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--lacquer);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper-mini .n {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--lacquer-dark);
}

/* ---------------------------------------------------------------------
   Empty / loading states
--------------------------------------------------------------------- */
.empty-state, .loading-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: var(--stone);
}
.empty-state svg, .error-state svg { width: 64px; height: 64px; color: var(--gold); opacity: 0.7; margin-bottom: 14px; }
.empty-state h3, .error-state h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 6px; }
.empty-state p, .error-state p { font-size: 13.5px; margin: 0; max-width: 300px; }

.retry-btn {
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lacquer);
  background: transparent;
  color: var(--lacquer);
  font-weight: 700;
  font-size: 13px;
}

.spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid var(--gold-line);
  border-top-color: var(--lacquer);
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.skeleton-card .product-media { position: relative; }

/* ---------------------------------------------------------------------
   Floating cart bar
--------------------------------------------------------------------- */
.cart-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-float);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2), opacity 0.25s ease;
}
.cart-bar.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

.cart-bar-info { display: flex; flex-direction: column; }
.cart-bar-count { font-size: 11.5px; color: var(--gold-soft); font-weight: 600; }
.cart-bar-total { font-size: 15.5px; font-weight: 800; }

.cart-bar-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--lacquer);
  color: var(--white);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
}
.cart-bar-cta svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------
   Sheet / Drawer (product modal, cart, checkout, confirmation)
--------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 16, 0.55);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  background: var(--porcelain);
  border-radius: 22px 22px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.2,.9,.3,1.05);
  box-shadow: 0 -10px 40px rgba(28,18,16,0.25);
}
.sheet.visible { transform: translateY(0); }

@media (min-width: 640px) {
  .sheet {
    left: 50%;
    right: auto;
    bottom: 4vh;
    width: 480px;
    max-width: 92vw;
    border-radius: 22px;
    max-height: 92vh;
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  .sheet.visible { transform: translate(-50%, 0); opacity: 1; }
}

.sheet-handle {
  width: 40px; height: 4px;
  background: var(--stone-light);
  border-radius: 4px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 12px;
  border-bottom: 1px solid var(--porcelain-dim);
  flex-shrink: 0;
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--porcelain-dim);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.sheet-close svg { width: 15px; height: 15px; }

.sheet-body {
  overflow-y: auto;
  padding: 16px 18px;
  flex: 1;
}

.sheet-footer {
  padding: 14px 18px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--porcelain-dim);
  background: var(--white);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Product detail sheet
--------------------------------------------------------------------- */
.pd-media {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--porcelain-dim);
  margin-bottom: 14px;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }

.pd-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.pd-desc { font-size: 13px; color: var(--stone); line-height: 1.5; margin: 0 0 16px; }
.pd-price { font-size: 16px; font-weight: 800; color: var(--lacquer-dark); margin-bottom: 18px; }

.option-group { margin-bottom: 18px; }
.option-group-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--stone);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.option-group-label .req {
  background: var(--lacquer);
  color: #fff;
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: none;
  letter-spacing: 0;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid var(--porcelain-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-row.checked {
  border-color: var(--lacquer);
  background: var(--lacquer-tint);
}
.option-row-left { display: flex; align-items: center; gap: 10px; }
.option-mark {
  width: 18px; height: 18px;
  border: 2px solid var(--stone-light);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.option-mark.round { border-radius: 50%; }
.option-mark.square { border-radius: 5px; }
.option-row.checked .option-mark { border-color: var(--lacquer); background: var(--lacquer); }
.option-mark svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.option-row.checked .option-mark svg { opacity: 1; }
.option-name { font-size: 13.5px; font-weight: 600; }
.option-price { font-size: 12.5px; color: var(--stone); font-weight: 600; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--porcelain-dim);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}
.qty-stepper button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--lacquer-tint);
  color: var(--lacquer);
  font-size: 17px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:disabled { opacity: 0.35; }
.qty-stepper .n { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; }

.note-field {
  width: 100%;
  border: 1px solid var(--porcelain-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  resize: none;
  background: var(--white);
  color: var(--ink);
}
.note-field:focus { outline: none; border-color: var(--gold); }

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  width: 100%;
  border: none;
  background: var(--lacquer);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(166,25,46,0.3);
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; box-shadow: none; }

.btn-secondary {
  width: 100%;
  border: 1px solid var(--porcelain-dim);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 13px;
  border-radius: var(--radius-pill);
}

/* ---------------------------------------------------------------------
   Cart sheet
--------------------------------------------------------------------- */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--porcelain-dim);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--porcelain-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-thumb svg { width: 46%; height: 46%; opacity: 0.6; }

.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 700; margin: 0 0 2px; }
.cart-item-meta { font-size: 11.5px; color: var(--stone); margin: 0 0 6px; line-height: 1.4; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 13px; font-weight: 800; color: var(--lacquer-dark); }

.cart-item-remove {
  background: none; border: none; color: var(--stone);
  font-size: 11.5px; text-decoration: underline;
  padding: 0; margin-top: 4px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--stone);
  padding: 5px 0;
}
.summary-row.total {
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  border-top: 1px dashed var(--gold-line);
  margin-top: 6px;
  padding-top: 10px;
}

/* ---------------------------------------------------------------------
   Checkout sheet
--------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.text-input {
  width: 100%;
  border: 1px solid var(--porcelain-dim);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
.text-input:focus { outline: none; border-color: var(--gold); }

.member-chip {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--jade-tint);
  border: 1px solid rgba(47, 93, 80, 0.25);
  color: var(--jade);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 8px;
}
.member-chip.visible { display: flex; }
.member-chip svg { width: 16px; height: 16px; flex-shrink: 0; }

.guest-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.guest-stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--porcelain-dim);
  background: var(--white);
  font-size: 17px;
  font-weight: 700;
  color: var(--lacquer);
}
.guest-stepper .n { font-size: 15px; font-weight: 700; min-width: 20px; text-align: center; }

/* ---------------------------------------------------------------------
   Confirmation (seal / stamp screen)
--------------------------------------------------------------------- */
.confirm-wrap {
  text-align: center;
  padding: 10px 6px 4px;
}
.seal {
  width: 172px;
  height: 172px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--lacquer) 0%, var(--lacquer-dark) 78%);
  border: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  box-shadow: 0 12px 30px rgba(124,15,32,0.35), inset 0 0 0 6px rgba(232,213,168,0.12);
  position: relative;
  animation: stamp-in 0.5s cubic-bezier(.2,.8,.3,1.3);
}
.seal::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232,213,168,0.45);
  border-radius: 50%;
}
.seal .seal-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
  margin-bottom: 2px;
}
.seal .seal-code {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}

.pickup-qr {
  width: fit-content;
  margin: -2px auto 18px;
  padding: 6px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 12px;
  line-height: 0;
}
.pickup-qr img,
.pickup-qr canvas,
.pickup-qr table {
  display: block;
}
.pickup-qr table {
  border-collapse: collapse;
  background: var(--white);
}

@keyframes stamp-in {
  0% { transform: scale(1.5) rotate(-8deg); opacity: 0; }
  60% { transform: scale(0.95) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.confirm-sub {
  font-size: 13.5px;
  color: var(--stone);
  margin: 0 0 22px;
  line-height: 1.5;
}
.confirm-sub b { color: var(--ink); }

.confirm-details {
  background: var(--white);
  border: 1px solid var(--porcelain-dim);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
}

/* ---------------------------------------------------------------------
   Table-not-found / landing screens
--------------------------------------------------------------------- */
.landing-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--lacquer-tint), var(--porcelain) 55%);
}
.landing-screen .brand-mark { width: 72px; height: 72px; margin-bottom: 18px; }
.landing-screen h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
}
.landing-screen p {
  font-size: 14px;
  color: var(--stone);
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}
.landing-screen .qr-icon { width: 56px; height: 56px; color: var(--lacquer); margin-bottom: 16px; }

/* ---------------------------------------------------------------------
   Toast
--------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  max-width: 88vw;
  text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--lacquer-dark); }

/* Offline indicator */
.net-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 7px;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.net-banner.visible { transform: translateY(0); }
