:root {
  --ink: #0d0e18;
  --panel: #161a2c;
  --panel-2: #1e2338;
  --line: rgba(205, 164, 94, 0.18);
  --line-strong: rgba(205, 164, 94, 0.38);
  --text: #ece7da;
  --muted: #cda45e;
  --gold: #cda45e;
  --gold-bright: #e8c77e;
  --parchment: #f4ecd8;

  --sports-2: #c1553e;

  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

/* Author rules that set `display` unconditionally (e.g. .btn, .field) always
   beat the browser's default `[hidden]{display:none}`, regardless of
   selector order or specificity — that's a cascade-origin rule, not
   something a more-specific author selector can win against by accident.
   Restating it here, and letting nothing above outrank it without an
   explicit :not([hidden]), keeps every current and future `hidden` toggle
   working as written instead of silently no-op'ing. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

h1, h2, h3, h4, .brand-name, .btn, .section-eyebrow {
  font-family: "Cinzel", Georgia, serif;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.preview-banner {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  color: var(--gold-bright);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 8px 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 24, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 120px;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.brand-logo { height: 104px; width: auto; flex-shrink: 0; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--parchment);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.cart-link:hover { border-color: var(--gold); color: var(--gold-bright); }
.cart-count {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--parchment);
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(205,164,94,0.14), transparent 60%),
    var(--ink);
}
.section-eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--parchment);
  margin: 0;
  letter-spacing: 0.01em;
}
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-logo { height: 110px; width: auto; flex-shrink: 0; }
@media (max-width: 700px) {
  .hero-logo { display: none; }
}
.hero p.lede {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  background: transparent;
  color: var(--parchment);
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #211405;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled], .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Category tiles */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 0 72px;
}
.category-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  background: var(--panel);
  transition: transform 0.15s, border-color 0.15s;
}
.category-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.category-tile h3 { margin: 0 0 8px; color: var(--parchment); font-size: 1.15rem; }
.category-tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Sections */
section.block { padding: 0 0 72px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h1, .section-head h2 { color: var(--parchment); font-size: 1.5rem; margin: 0; }
.section-head a:not(.btn) { color: var(--gold); font-size: 0.9rem; }

/* Product grid + cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  /* Reserves roughly one card row's height so the "Loading…" placeholder
     doesn't collapse to a single line and then jump when real cards
     arrive — the #1 cause of layout shift on the public storefront. */
  min-height: 400px;
}

/* Same idea for admin list containers (staff, sales, customers, etc.) —
   reserves roughly a few rows' worth so the loading→populated swap doesn't
   shift the rest of the page as much. */
.admin-list {
  min-height: 220px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-art {
  aspect-ratio: 3 / 4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
}
.product-art::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(244, 236, 216, 0.28);
  border-radius: 6px;
}
.sample-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 14, 24, 0.78);
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.sold-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 14, 24, 0.78);
  border: 1px solid var(--line-strong);
  color: var(--sports-2);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.product-art.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.product-name {
  font-size: 0.98rem;
  color: var(--parchment);
  margin: 0;
}
.product-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 1.02rem;
}
.product-card .btn { margin-top: 10px; font-size: 0.82rem; padding: 9px 14px; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.filter-tabs a.active { border-color: var(--gold); color: var(--gold-bright); }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 48px;
  padding: 56px 0 80px;
}
.product-detail .product-art { border-radius: var(--radius); border: 1px solid var(--line); }
.detail-info .product-sub { margin-bottom: 8px; }
.detail-info h1 { color: var(--parchment); margin: 0 0 14px; font-size: 1.8rem; }
.detail-info .product-price { font-size: 1.6rem; display: block; margin-bottom: 20px; }
.detail-info .desc { color: var(--muted); margin-bottom: 28px; max-width: 46ch; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-row input {
  width: 64px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-align: center;
}
.stock-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 56px 0 80px;
  align-items: start;
}
.cart-layout.is-empty {
  grid-template-columns: 1fr;
}
.cart-layout.is-empty .empty-state {
  padding: 40px 0 20px;
}
.cart-row {
  display: grid;
  grid-template-columns: 76px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row .product-art { width: 76px; aspect-ratio: 3/4; border-radius: 6px; }
.cart-row .name { color: var(--parchment); font-size: 0.95rem; margin: 0 0 4px; }
.cart-row .sub { color: var(--muted); font-size: 0.78rem; }
.cart-row .qty-controls { display: flex; align-items: center; gap: 8px; }
.cart-row .qty-controls input {
  width: 52px; padding: 8px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text);
}
.cart-row .remove {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0;
  font-family: inherit;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.cart-row .remove:hover { color: var(--sports-2); border-color: var(--sports-2); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cart-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  position: sticky;
  top: 96px;
}
.cart-summary h2 { margin: 0 0 18px; color: var(--parchment); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 0.92rem; }
.summary-line.total { color: var(--parchment); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.empty-state { color: var(--muted); text-align: center; padding: 60px 0; }
.empty-state .btn { margin-top: 18px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205, 164, 94, 0.35);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.field { margin-bottom: 16px; }

.notice {
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.notice strong { color: var(--gold-bright); }

/* About / static pages */
.prose { padding: 64px 0 80px; max-width: 720px; margin: 0 auto; }
.prose h1 { color: var(--parchment); font-size: 2.1rem; margin-bottom: 20px; }
.prose h2 { color: var(--parchment); font-size: 1.3rem; margin-top: 40px; }
.prose p { color: var(--muted); }

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 0 80px;
}
.contact-columns h2 { color: var(--parchment); font-size: 1.3rem; margin-bottom: 18px; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li { color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.info-list li strong { color: var(--parchment); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: #0a0b13;
}
.footer-logo { height: 130px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: var(--muted); font-size: 0.88rem; margin: 0 0 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.footer-cols h4 {
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}
.footer-cols p { color: var(--muted); font-size: 0.88rem; margin: 0 0 6px; }
.footer-cols p.addr { color: var(--gold-bright); }
.info-list .addr-value { color: var(--gold-bright); }
.footer-cols a:hover { color: var(--gold-bright); }
.footer-legal { font-size: 0.8rem; margin: 0 0 14px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--gold-bright); }
.copyright { color: var(--muted); font-size: 0.8rem; margin: 0; border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 860px) {
  .category-tiles { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .contact-columns { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .site-header.nav-open .site-nav { display: flex; }
}

@media (max-width: 640px) {
  .category-tiles { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Admin */
.admin-bar {
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-bar .brand-name {
  font-family: "Cinzel", serif;
  color: var(--parchment);
  font-size: 1.1rem;
}
.admin-bar nav { display: flex; gap: 16px; }
.admin-bar nav a { color: var(--muted); font-size: 0.85rem; }
.admin-bar nav a:hover { color: var(--gold-bright); }

.field.checkbox-field { display: flex; align-items: center; gap: 8px; }
.field.checkbox-field input[type="checkbox"] { width: auto; }
.field.checkbox-field label { margin: 0; }

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 12px;
}
.admin-row-main { flex: 1 1 200px; min-width: 0; }
.admin-row-name { display: block; color: var(--parchment); font-size: 0.98rem; margin-bottom: 4px; }
.admin-row-meta { display: block; color: var(--muted); font-size: 0.82rem; }
.stock-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.stock-pill.in-stock { color: var(--gold-bright); }
.stock-pill.sold { color: var(--sports-2); }
.admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.admin-row-actions .btn { padding: 8px 14px; font-size: 0.8rem; }
.btn-danger { border-color: var(--sports-2); color: var(--sports-2); }
.btn-danger:hover { background: var(--sports-2); color: var(--parchment); }
.form-error { color: var(--sports-2); font-size: 0.88rem; margin: -6px 0 16px; }
.form-success { color: var(--gold-bright); font-size: 0.88rem; margin: -6px 0 16px; }
.role-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  color: var(--gold-bright);
}

.admin-bar nav a.active-nav { color: var(--gold-bright); }

/* Point of Sale */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.pos-catalog, .pos-cart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}
.pos-search-results { margin-top: 10px; max-height: 320px; overflow-y: auto; }
.pos-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.pos-result-row:last-child { border-bottom: none; }
.pos-result-name { color: var(--parchment); font-size: 0.92rem; }
.pos-result-meta { color: var(--muted); font-size: 0.78rem; }
.pos-result-row .btn { padding: 7px 12px; font-size: 0.78rem; flex-shrink: 0; }

.pos-cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pos-cart-item:last-child { border-bottom: none; }
.pos-cart-item-name { color: var(--parchment); font-size: 0.92rem; margin: 0 0 2px; }
.pos-cart-item-meta { color: var(--muted); font-size: 0.78rem; }
.pos-cart-item-exempt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}
.pos-cart-item-exempt input { margin: 0; cursor: pointer; }
.pos-cart-item-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pos-cart-item input[type="number"] {
  width: 56px;
  padding: 6px;
  text-align: center;
}
.pos-cart-item .remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.pos-cart-item .remove:hover { color: var(--sports-2); }

.pos-summary { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pos-summary .summary-line.total { margin-top: 10px; }

.pos-receipt {
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
  max-width: 480px;
}
.pos-receipt h2 { color: var(--parchment); margin: 0 0 16px; }
.pos-receipt-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; padding: 4px 0; }
.pos-receipt-line.total { color: var(--parchment); font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.pos-receipt-actions { display: flex; gap: 12px; margin-top: 20px; }

.sale-row { cursor: pointer; }
.sale-detail { margin: -4px 0 12px; padding: 0 16px 16px; border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: var(--panel); }
.sale-detail-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sale-detail-line:last-child { border-bottom: none; }
.voided-badge { color: var(--sports-2); }

/* Bulk intake */
.bulk-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 100px 100px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.bulk-row:last-child { border-bottom: none; }
.bulk-row input, .bulk-row select { padding: 8px; font-size: 0.85rem; }
.bulk-row .btn { padding: 8px 12px; font-size: 0.78rem; white-space: nowrap; }
@media (max-width: 900px) {
  .bulk-row { grid-template-columns: 1fr 1fr; }
}

/* Print isolation — shared by every printable view (QR labels, the POS
   receipt, the buy-offer document). visibility (not display) is used for the
   blanket hide, because a visibility:visible descendant can override a
   hidden ancestor regardless of DOM nesting depth, while display:none cannot
   be undone by a descendant no matter what that descendant's own display
   value is. This lets each .print-sheet live wherever is natural in its
   page's markup instead of having to be hoisted to a body-level sibling. */
#qr-label-sheet { display: none; }
@media print {
  body * { visibility: hidden !important; }
  .print-sheet, .print-sheet * { visibility: visible !important; }
  .print-sheet { position: absolute; top: 0; left: 0; width: 100%; }
  .no-print { display: none !important; }

  #qr-label-sheet.print-sheet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.15in;
    padding: 0.25in;
  }
  .qr-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    break-inside: avoid;
    padding: 0.1in;
  }
  .qr-label svg { width: 1.2in; height: 1.2in; }
  .qr-label b { font-size: 9pt; margin-top: 4px; }
  .qr-label small { font-size: 7pt; color: #000; }

  .pos-receipt.print-sheet, .offer-print.print-sheet { border: none; box-shadow: none; padding: 24px; }
}

@media (max-width: 900px) {
  .pos-layout { grid-template-columns: 1fr; }
}

/* Accounting */
.filter-tabs button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.filter-tabs button.active { border-color: var(--gold); color: var(--gold-bright); }

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 8px 0 32px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-value { color: var(--parchment); font-size: 1.35rem; font-weight: 700; }
.stat-card.positive .stat-value { color: var(--gold-bright); }
.stat-card.negative .stat-value { color: var(--sports-2); }

/* Offer print */
.offer-print { padding: 24px; color: #111; background: #fff; }

/* QR scan modal */
.qr-scan-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(13, 14, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.qr-scan-box {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.qr-scan-box video { width: 100%; border-radius: 6px; background: #000; }

/* Terminal PIN gate — blocks a whole admin tab until the shared PIN is entered */
.pin-gate:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(13, 14, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.pin-gate-box {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}
.pin-gate-box p { color: var(--muted); font-size: 0.88rem; margin: 0 0 20px; }
.pin-gate-box input {
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  padding: 10px;
  margin-bottom: 16px;
}
.pin-gate-box .btn { width: 100%; }
.pin-gate-box .form-error { margin: 16px 0 0; }
