/* Eve's Glamour — one stylesheet for shop, back office and receipts. */
:root {
  /* Eve's Glamour after dark: plum night, gold light, ivory type. */
  --ivory: #0d0810;          /* page */
  --paper: rgba(33, 22, 39, .72);   /* glass cards */
  --paper-solid: #1c1321;
  --sand: rgba(255, 255, 255, .06); /* subtle fills */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f6efe8;
  --muted: #a797a2;
  --head: #fbf4ec;
  --plum: #7a3f8a;
  --plum-2: #b36cc4;
  --plum-glow: rgba(179, 108, 196, .45);
  --accent: linear-gradient(135deg, #b86fca 0%, #8a4a9b 55%, #6c3479 100%);
  --gold: #d9b06a;
  --gold-2: #f2d39b;
  --gold-soft: rgba(217, 176, 106, .14);
  --ok: #5fd39a;
  --ok-bg: rgba(95, 211, 154, .13);
  --warn: #f3c05a;
  --warn-bg: rgba(243, 192, 90, .13);
  --bad: #ff7887;
  --bad-bg: rgba(255, 120, 135, .13);
  --info-bg: rgba(179, 108, 196, .16);
  --radius: 20px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--ivory); }
a { color: var(--plum-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--warn); }
.r { text-align: right; }
.mt { margin-top: 1.4em; }
.pre { white-space: pre-line; }
code, pre { background: var(--sand); padding: 2px 6px; border-radius: 6px; }
pre { padding: 10px; overflow-x: auto; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--accent); color: #fff; font: 600 14px var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--plum-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--head); }
.btn.ghost:hover { background: var(--sand); }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn.ghost.light:hover { background: rgba(255,255,255,.12); }
.btn.full { width: 100%; }
.btn.big { padding: 15px 20px; font-size: 16px; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.wa { background: #1f9d55; border-color: #1f9d55; }
.btn-mini { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--head);
  font: 600 13px var(--sans); cursor: pointer; }
.btn-mini:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row.stack { flex-direction: column; align-items: stretch; margin-top: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--plum-2); font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn.danger, .danger { color: var(--bad); }

input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--head); }
input.bad { border-color: var(--bad); }
.form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 14px; }
.form label > input, .form label > select, .form label > textarea { margin-top: 5px; font-weight: 400; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; font-weight: 400; cursor: pointer; background: var(--paper); }
.choice label:has(input:checked) { border-color: var(--head); background: rgba(179,108,196,.14); }

.flash { padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; background: var(--info-bg); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--warn-bg); color: var(--warn); }
.flashes { padding-top: 16px; }
.empty { padding: 32px 20px; text-align: center; background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.ph { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--gold-soft), var(--sand)); }
.ph span { font: 700 44px var(--serif); color: var(--gold); text-decoration: none; }
a .ph, a.cat-tile, a.card-img { text-decoration: none; }

/* ---------- shop: header ---------- */
.topbar { background: var(--accent); color: #e9dfe9; font-size: 12.5px; display: flex; justify-content: space-between;
  gap: 12px; padding: 7px 16px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font: 700 28px var(--serif); color: var(--head); letter-spacing: .01em; }
.brand-mark.light { color: #fff; }
.brand-sub { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.search { flex: 1; max-width: 460px; margin-left: auto; }
.search input { border-radius: 999px; background: var(--ivory); padding: 9px 16px; }
.cart-link { position: relative; display: flex; align-items: center; gap: 6px; color: var(--head); text-decoration: none; font-weight: 600; }
.badge { position: absolute; top: -8px; left: 13px; background: var(--gold); color: #fff; font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.catnav { border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { padding: 10px 0; font-size: 13.5px; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { border-color: var(--gold); }

/* ---------- shop: hero & sections ---------- */
.hero { background:
  radial-gradient(1200px 400px at 85% -10%, rgba(176,141,87,.35), transparent 60%),
  linear-gradient(135deg, #3b2a3f 0%, #563f5c 60%, #6d5068 100%); color: #fff; }
.hero { position: relative; overflow: hidden; }
.hero::after { content: "E"; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); font: 700 520px/1 var(--display);
  color: rgba(176,141,87,.14); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 72px 16px 80px; max-width: 1180px; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--gold); margin: 0 0 12px; font-weight: 600; }
.hero h1 { font: 700 clamp(38px, 6vw, 64px)/1.05 var(--display); margin-bottom: 16px; max-width: 13ch; }
.lead { font-size: 17px; max-width: 52ch; color: #eadfe8; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn:not(.ghost) { background: var(--gold); border-color: var(--gold); }
.hero .btn:not(.ghost):hover { background: #9c7a47; }
.section { padding-top: 40px; padding-bottom: 20px; }
.section.narrow, .narrow { max-width: 860px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.section-head a { font-weight: 500; white-space: nowrap; }
.section-title, .page-title { font: 700 32px var(--display); color: var(--head); margin: 0 0 18px; }
.section-head .section-title, .section-head .page-title { margin-bottom: 0; }
.sort select { width: auto; border-radius: 999px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(59,42,63,.10); transform: translateY(-2px); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--sand); }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag.out { background: var(--ink); color: #fff; }
.tag.low { background: var(--warn-bg); color: var(--warn); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; color: var(--head); font-size: 16px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; display: block; background: var(--sand); }
.cat-tile img, .cat-tile .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cat-name { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; color: #fff; font: 700 20px/1.1 var(--display);
  background: linear-gradient(transparent, rgba(35,22,38,.85)); }
.cat-name small { display: block; font: 400 12px var(--sans); opacity: .85; margin-top: 4px; }

.promise { background: var(--sand); margin-top: 40px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.promise h3 { font: 700 22px var(--display); color: var(--head); }
.promise p { margin: 0; color: var(--muted); }

/* ---------- shop: product ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.pdp-img { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pdp-img img, .pdp-img .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-info h1 { font: 700 38px/1.1 var(--display); color: var(--head); }
.pdp-price { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.stock { font-weight: 500; margin: 0 0 18px; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.add-row { display: flex; gap: 10px; margin-bottom: 12px; }
.add-row .btn { flex: 1; }
.qty { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; background: var(--paper); }
.qty span { font-size: 13px; color: var(--muted); }
.qty input { width: 56px; border: 0; padding: 8px 4px; text-align: center; box-shadow: none; }
.desc { margin: 22px 0; white-space: pre-line; }

/* ---------- shop: cart & checkout ---------- */
.cart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.cart-thumb img, .cart-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph span { font-size: 26px; }
.cart-name { color: var(--ink); font-weight: 500; text-decoration: none; }
.cart-qty input { width: 76px; margin-top: 6px; padding: 6px 8px; }
.cart-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-total { display: flex; justify-content: space-between; padding: 16px 0; font-size: 18px; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.summary h3 { font: 700 22px var(--display); color: var(--head); }
.sum-line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sum-line span:last-child { text-align: right; white-space: nowrap; }
.sum-line.muted span:last-child { white-space: normal; }
.sum-line.total { font-weight: 700; font-size: 18px; border-bottom: 0; padding-top: 12px; }
.steps { background: var(--gold-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.prose h2 { font: 700 24px var(--display); color: var(--head); margin-top: 1.4em; }

/* ---------- shop: footer ---------- */
.site-foot { background: var(--accent); color: #d9ccd8; margin-top: 60px; padding: 44px 0 20px; }
.site-foot a { color: #fff; }
.site-foot h4 { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-small { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 30; }

/* ---------- back office ---------- */
body.admin { background: var(--ivory); }
.adm-head { position: sticky; top: 0; z-index: 30; background: var(--accent); color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.adm-brand { font: 700 22px var(--serif); color: #fff; text-decoration: none; }
.adm-brand span { font: 500 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-left: 8px; }
.adm-brand.big { color: var(--head); font-size: 30px; text-align: center; margin-bottom: 18px; }
.adm-brand.big span { display: block; margin: 4px 0 0; }
.adm-shop { margin-left: auto; color: #e9dfe9; font-size: 13px; text-decoration: none; }
.adm-menu { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 0 4px; }
.adm-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 52px); }
.adm-nav { background: var(--paper); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.adm-nav > a { padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.adm-nav > a:hover { background: var(--sand); }
.adm-nav > a.on { background: var(--accent); color: #fff; }
.adm-me { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.adm-me small { color: var(--muted); text-transform: capitalize; }
.adm-main { padding: 22px; min-width: 0; }
.adm-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-title h1 { font: 700 30px var(--display); color: var(--head); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; min-width: 0; }
.panel h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.count { background: var(--sand); color: var(--head); font-size: 12px; padding: 1px 9px; border-radius: 999px; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.narrow-form { max-width: 420px; }
.form-img { width: 100%; max-width: 260px; border-radius: 10px; margin: 8px 0; }
.danger-zone { margin-top: 18px; }
.danger-zone summary { cursor: pointer; color: var(--bad); font-size: 14px; margin-bottom: 10px; }
.action-box { background: var(--ivory); border-radius: 10px; padding: 14px; margin-top: 14px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi-num { font-size: 28px; font-weight: 600; color: var(--head); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-num small { font-size: 14px; font-weight: 400; color: var(--muted); }
.kpi-sub { font-size: 13px; color: var(--muted); }

.tbl-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl-wrap .tbl { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255,255,255,.035); }
.tbl tfoot td { border: 0; padding: 6px 10px; }
.tbl tfoot .grand td { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); }
.tbl .thumb { width: 52px; }
.tbl .thumb img, .tbl .thumb .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.tbl .thumb .ph span { font-size: 18px; }
.tbl td.up { color: var(--ok); font-weight: 600; } .tbl td.down { color: var(--bad); font-weight: 600; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sand); white-space: nowrap; font-family: var(--sans); }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.paid { background: var(--info-bg); color: var(--plum-2); }
.pill.completed { background: var(--ok-bg); color: var(--ok); }
.pill.cancelled { background: var(--bad-bg); color: var(--bad); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; flex: 1 1 160px; padding: 8px 12px; }
.filters input[type=date] { flex: 0 1 150px; }
.seg { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 13px; }
.seg a.on { background: var(--accent); color: #fff; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { padding: 6px 10px; }
.inline-form input.tiny { width: 64px; }
.row-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.row-form label { margin: 0; }

.prod-sum { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.prod-sum img, .prod-sum .ph { border-radius: 10px; width: 160px; aspect-ratio: 1; object-fit: cover; }
.prod-sum dl, .dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
dt { color: var(--muted); font-size: 13.5px; } dd { margin: 0; }
.big-num { font-size: 22px; color: var(--head); }

.recv-line { display: grid; grid-template-columns: 1fr 100px 130px 30px; gap: 10px; align-items: end; margin-bottom: 4px; }
.recv-line label { margin-bottom: 8px; }

.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 50px 1fr 140px; gap: 10px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar { background: var(--sand); border-radius: 6px; height: 16px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.bar-v { text-align: right; }

/* ---------- till ---------- */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.pos-left #find { font-size: 16px; padding: 13px 16px; margin-bottom: 14px; border-radius: 12px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-item { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; }
.pos-item:hover { border-color: var(--gold); }
.pos-item.none { opacity: .45; }
.pos-item img, .pos-item .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pos-item .ph { aspect-ratio: 5 / 2; }
.pos-item .ph span { font-size: 30px; }
.pos-item .n { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.pos-item .m { font-size: 12.5px; color: var(--muted); }
.pos-item .m b { color: var(--head); }
.pos-right { position: sticky; top: 70px; }
.pos-lines { max-height: 38vh; overflow-y: auto; margin-bottom: 10px; }
.pos-line { display: grid; grid-template-columns: 1fr auto 76px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pos-line .n { font-size: 14px; font-weight: 500; }
.qty-ctl { display: flex; align-items: center; gap: 8px; }
.qty-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; cursor: pointer; }
.pos-totals > div, .inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0; }
.inline input { width: 130px; text-align: right; padding: 8px 10px; }
.inline span { font-size: 14px; }
.grand { font-size: 22px; font-weight: 700; color: var(--head); border-top: 1px solid var(--line); padding-top: 10px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 8px; }
.pay-methods label { cursor: pointer; }
.pay-methods input { position: absolute; opacity: 0; }
.pay-methods span { display: block; text-align: center; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.pay-methods input:checked + span { border-color: var(--head); background: var(--accent); color: #fff; }
.pay-methods input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-soft); }
.change { min-height: 24px; font-weight: 600; margin: 6px 0; }
.change.ok { color: var(--ok); font-size: 18px; } .change.warn { color: var(--bad); }
.pos-right details { margin: 8px 0 14px; font-size: 14px; }
.pos-right details label { display: block; margin-top: 8px; }
.pos-right #clear { display: block; margin: 10px auto 0; font-size: 13px; }

/* ---------- auth ---------- */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px;
  background: linear-gradient(135deg, #3b2a3f, #6d5068); }
.auth-box { background: var(--paper); border-radius: 18px; padding: 30px 26px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }

/* ---------- receipt ---------- */
body.receipt-page { background: #eee; padding: 16px; }
.receipt-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.receipt { background: #fff; width: 80mm; max-width: 100%; margin: 0 auto; padding: 14px 12px 18px; font: 12.5px/1.45 "Courier New", ui-monospace, monospace; color: #000; }
body.a4 .receipt { width: 180mm; font-size: 14px; padding: 28px; }
.r-head { text-align: center; border-bottom: 1px dashed #000; padding-bottom: 8px; margin-bottom: 8px; }
.r-shop { font: 700 20px var(--serif); }
.r-meta div, .r-tot div { display: flex; justify-content: space-between; gap: 8px; }
.r-void { justify-content: center !important; font-weight: 700; font-size: 18px; border: 2px solid #000; margin-top: 6px; }
.r-items { width: 100%; border-collapse: collapse; margin: 8px 0; border-top: 1px dashed #000; border-bottom: 1px dashed #000; }
.r-items td { padding: 2px 0; }
.r-items .r-sub td { padding-bottom: 5px; }
.r-grand { font-weight: 700; font-size: 1.25em; border-top: 1px solid #000; padding-top: 4px; margin-top: 4px; }
.r-foot { text-align: center; margin-top: 12px; border-top: 1px dashed #000; padding-top: 8px; }
.r-web { text-align: center; margin-top: 6px; font-weight: 700; }
@media print {
  @page { margin: 0; }
  body.receipt-page { background: #fff; padding: 0; }
  .no-print { display: none !important; }
  .receipt { margin: 0; width: 100%; padding: 4mm 3mm; }
  body.a4 .receipt { padding: 15mm; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .adm-cols, .two-col, .checkout, .pdp { grid-template-columns: 1fr; }
  .pdp { gap: 20px; }
  .pos { grid-template-columns: 1fr; }
  .pos-right { position: static; }
  .row-form { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .adm-menu { display: block; }
  .adm-shell { grid-template-columns: 1fr; }
  .adm-nav { display: none; position: fixed; top: 52px; left: 0; bottom: 0; width: 250px; z-index: 25; box-shadow: 0 0 40px rgba(0,0,0,.2); overflow-y: auto; }
  body.nav-open .adm-nav { display: flex; }
  .adm-main { padding: 16px; }
  .adm-shop { display: none; }
  .topbar span { display: none; }
  .topbar { justify-content: center; }
  .head-row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .cart-link { margin-left: auto; }
  .brand-mark { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .btn-mini { width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-inner { padding: 48px 16px 56px; }
  .hero::after { font-size: 300px; right: -40px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .prod-sum { grid-template-columns: 1fr; }
  .recv-line { grid-template-columns: 1fr 80px 30px; }
  .recv-line label:nth-child(3) { grid-column: 1 / 3; }
  .row-form { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 44px 1fr 110px; }
  .section-title, .page-title { font-size: 28px; }
  .pdp-info h1 { font-size: 30px; }
}

/* ---------- sales & promotions ---------- */
.tag.sale { left: auto; right: 10px; background: #ff7887; color: #fff; }
.price .now, .pdp-price .now { color: #ff7887; }
.price s, .pdp-price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 4px; }
.pill.sale { background: var(--bad-bg); color: #ff7887; }
.sale-ends { color: #ff7887; font-weight: 500; margin: -4px 0 12px; }
.sale-link { color: #ff7887 !important; font-weight: 700; }
.sale-title { color: #ff7887; }
.sale-txt { color: #ff7887; font-style: normal; font-weight: 600; }
.sale-hero { background: linear-gradient(135deg, #7d2530, #ff7887 60%, #b08d57); color: #fff; }
.sale-hero .wrap { padding-top: 48px; padding-bottom: 52px; }
.sale-hero h1 { font: 700 clamp(36px, 5vw, 56px)/1.05 var(--display); margin-bottom: 10px; }
.sale-hero .eyebrow { color: #f3dcb4; }
.sale-hero .lead { color: #fbe9ea; }
.sale-box { background: rgba(255,120,135,.07); border-radius: 10px; padding: 10px 12px 0; margin-bottom: 14px; }
.r-saved { text-align: center; font-weight: 700; margin-top: 8px; }

/* ---------- locks & deliveries ---------- */
.pill.locked { background: var(--info-bg); color: var(--head); font-size: 13px; }
.lock-note { background: var(--info-bg); border-left: 4px solid var(--line-2); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.lock-note p { margin: 4px 0 0; }
.lock-note.warn-note { background: var(--warn-bg); border-color: var(--warn); color: #5d3b00; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 14px 14px 4px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bline { display: grid; grid-template-columns: 1fr 90px 130px 30px; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bline.new { grid-template-columns: 2fr 1.2fr 120px 90px 120px 30px; background: rgba(255,255,255,.035); border-radius: 10px; padding: 10px; margin: 8px 0; border: 1px solid var(--line); }
.bline.new .grow:nth-of-type(n+2) { grid-column: 1 / 4; }
.bline label { margin: 0; }
.bline .rm { align-self: center; font-size: 18px; text-decoration: none; }
.new-tag { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }

/* ---------- advertise ---------- */
.adv { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 70vh; overflow-y: auto; padding: 2px; }
.adv-item { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; font-size: 13px; }
.adv-item:has(input:checked) { border-color: var(--head); background: rgba(179,108,196,.14); }
.adv-item input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; }
.adv-item img, .adv-item .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.adv-item .ph span { font-size: 28px; }
.adv-item .n { font-weight: 500; line-height: 1.25; }
.adv-item .m { color: var(--muted); }
.adv-out h3 { font-size: 15px; margin: 20px 0 8px; }
.adv-out textarea { font-size: 13.5px; margin-bottom: 8px; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.posters figure { margin: 0; }
.posters img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.posters figcaption { font-size: 13px; margin-top: 4px; }

/* ---------- growth ---------- */
.actions { list-style: none; padding: 0; margin: 0; }
.actions li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.actions li p { margin: 2px 0 4px; color: var(--muted); }
.prio { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; height: fit-content; text-align: center; }
.p1 .prio { background: var(--bad-bg); color: var(--bad); }
.p2 .prio { background: var(--warn-bg); color: var(--warn); }
.p3 .prio { background: var(--sand); color: var(--muted); }
.gi { border-left: 4px solid; padding: 6px 12px; margin-bottom: 12px; }
.gi p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.gi.ok { border-color: var(--ok); } .gi.bad { border-color: var(--bad); }
.edges td { vertical-align: top; }

/* ---------- analytics ---------- */
.funnel .bar-row { grid-template-columns: 150px 1fr 60px; }
.bar-d.wide { white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 90px; border-bottom: 1px solid var(--line); }
.spark i { flex: 1; background: var(--gold); border-radius: 2px 2px 0 0; min-width: 2px; }
.cols-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.cols-chart div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 12px; }
.cols-chart i { display: block; width: 100%; background: var(--plum-2); border-radius: 4px 4px 0 0; }
.cols-chart span { margin-top: 4px; color: var(--muted); }
.cols-chart small { color: var(--muted); font-size: 10.5px; min-height: 14px; white-space: nowrap; }
.cols-chart.hours i { background: var(--gold); }
.section-h { font: 700 24px var(--display); color: var(--head); margin: 26px 0 12px; }

@media (max-width: 900px) {
  .adv { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .bline.new { grid-template-columns: 1fr 1fr; }
  .bline.new .grow { grid-column: 1 / -1 !important; }
}
@media (max-width: 760px) {
  .grid-4 { grid-template-columns: 1fr; }
  .bline { grid-template-columns: 1fr 80px 30px; }
  .bline .costc { grid-column: 1 / 3; }
  .actions li { grid-template-columns: 1fr; gap: 4px; }
  .actions .prio { width: fit-content; }
  .funnel .bar-row { grid-template-columns: 110px 1fr 44px; }
}

/* ---------- staff roles & cash book ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.perm-grid legend { grid-column: 1 / -1; }
.form label.perm, label.perm { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; margin: 0; font-weight: 400; }
label.perm:has(input:checked) { border-color: var(--head); background: rgba(179,108,196,.14); }
label.perm input { margin-top: 3px; }
label.perm small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.staff-card.off { opacity: .6; }
.staff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.staff-card details { margin-top: 10px; }
.staff-card summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.btn.cash-in { background: var(--ok); border-color: var(--ok); }
.btn.cash-out { background: var(--bad); border-color: var(--bad); }
.in-num { color: var(--ok); } .out-num { color: var(--bad); } .neg-num { color: var(--bad); }
.mode-list { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.cash-tools { margin: -4px 0 14px; }
.cash-tools .inline-form input { width: auto; padding: 5px 8px; }
.narrow-form.wide { max-width: 560px; }
.kind-seg { display: inline-flex; margin-bottom: 14px; }
.kind-seg label { margin: 0 !important; cursor: pointer; }
.kind-seg input { position: absolute; opacity: 0; }
.kind-seg span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.kind-seg label:first-child input:checked + span { background: var(--ok); color: #fff; }
.kind-seg label:last-child input:checked + span { background: var(--bad); color: #fff; }
.big-input { font-size: 24px !important; font-weight: 600; }
.tbl input.num { width: 100px; text-align: right; padding: 6px 8px; }
.roles-tbl td, .roles-tbl th { text-align: center; } .roles-tbl td:first-child { text-align: left; }
body.report-page { background: #fff; padding: 16px; }
.report { max-width: 900px; margin: 0 auto; }
.report h1 { font: 700 28px var(--display); color: var(--head); }
.report h2 { font-size: 16px; margin-top: 22px; }
.sum-tbl { max-width: 360px; }
.sum-tbl .grand td { font-weight: 700; border-top: 2px solid var(--ink); }
@media print { body.report-page { padding: 0; } .report .tbl { font-size: 11px; } }

.hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--gold); margin-top: 3px; min-height: 1em; }
.bline .photo-line { grid-column: 1 / -1; font-size: 13px; margin: 0; }
.bline .photo-line input { max-width: 360px; }
.bline .show-web { grid-column: 1 / -1; margin: 0; }

/* =====================================================================
   NIGHT THEME LAYER: a Spaceship-style feel in Eve's plum and gold.
   Spotlight glows, glass surfaces, bold geometric type, pill controls.
   ===================================================================== */
html { background: var(--ivory); }
body { color: var(--ink); font-family: var(--sans); background:
  radial-gradient(1100px 620px at 10% -12%, rgba(138, 74, 155, .42), transparent 62%),
  radial-gradient(900px 560px at 105% -5%, rgba(217, 176, 106, .15), transparent 60%),
  radial-gradient(900px 700px at 50% 120%, rgba(108, 52, 121, .28), transparent 60%),
  var(--ivory); background-attachment: fixed; }
a { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; }
::selection { background: rgba(179,108,196,.45); color: #fff; }

/* surfaces */
.panel, .kpi, .card, .summary, .cart, .tbl-wrap, .empty, .auth-box, .steps, .action-box, .choice label, .adv-item {
  background: var(--paper); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.panel, .kpi, .tbl-wrap, .summary, .cart { border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.action-box { background: rgba(255,255,255,.04); }
.empty { color: var(--muted); border-style: dashed; border-color: var(--line-2); }
.kpi-num { color: var(--head); font-weight: 700; letter-spacing: -.02em; }
.count { background: rgba(255,255,255,.08); color: var(--gold-2); }

/* controls */
input, select, textarea { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--ink); border-radius: 14px; }
input::placeholder, textarea::placeholder { color: #7e6f79; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: rgba(255,255,255,.07); }
select option, select optgroup { background: #1c1321; color: var(--ink); }
input[type=date] { color-scheme: dark; }
input[type=file] { padding: 8px; }
.btn { border: 0; background: var(--accent); color: #fff; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 8px 24px -8px var(--plum-glow), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s, box-shadow .2s, filter .2s; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 10px 34px -6px var(--plum-glow), inset 0 1px 0 rgba(255,255,255,.2); background: var(--accent); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.11); }
.btn.gold, .hero .btn:not(.ghost) { background: linear-gradient(135deg, #f2d39b, #d9b06a 55%, #b88d4c); color: #23161f; box-shadow: 0 10px 30px -8px rgba(217,176,106,.55); }
.btn.danger { background: linear-gradient(135deg, #ff8a97, #d9475a); box-shadow: 0 8px 24px -10px rgba(255,120,135,.6); }
.btn.wa { background: linear-gradient(135deg, #3ee07f, #1fa855); box-shadow: 0 8px 24px -10px rgba(37,211,102,.55); }
.btn.cash-in { background: linear-gradient(135deg, #6ee7a8, #2f9e68); }
.btn.cash-out { background: linear-gradient(135deg, #ff8a97, #d9475a); }
.btn-mini { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--ink); }
.btn-mini:hover { background: var(--accent); border-color: transparent; }
.link-btn { color: var(--gold-2); }
.seg { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg a { color: var(--muted); }
.seg a.on { color: #fff; box-shadow: 0 6px 18px -6px var(--plum-glow); }
.pill { background: rgba(255,255,255,.08); color: var(--ink); }
.pill.paid, .pill.locked { background: var(--info-bg); color: #e3b8ee; }
.pill.sale { background: var(--bad-bg); color: var(--bad); }
.flash { background: var(--info-bg); color: var(--ink); border: 1px solid var(--line); }
.flash.ok { background: var(--ok-bg); color: #9ff0c4; border-color: rgba(95,211,154,.25); }
.flash.error { background: var(--bad-bg); color: #ffb1ba; border-color: rgba(255,120,135,.25); }
.flash.info { background: var(--warn-bg); color: #ffe0a0; border-color: rgba(243,192,90,.25); }
.lock-note { background: rgba(179,108,196,.12); border-left-color: var(--plum-2); color: var(--ink); }
.lock-note.warn-note { background: var(--warn-bg); border-left-color: var(--warn); color: #ffe7b5; }
.tbl th { color: var(--muted); border-bottom-color: var(--line); }
.tbl td { border-bottom-color: rgba(255,255,255,.05); }
.tbl tr.click:hover td { background: rgba(255,255,255,.04); }
.tbl.mini { font-size: 13px; margin-top: 8px; }
.tbl tr.lvl-out td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tbl tr.lvl-low td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.nowrap { white-space: nowrap; }
.span2 { grid-column: span 2; }
code, pre { background: rgba(255,255,255,.07); color: var(--gold-2); }
.danger-zone summary, .danger { color: var(--bad); }
.hint { color: var(--gold); }
.ph { background: radial-gradient(circle at 30% 20%, rgba(217,176,106,.22), transparent 60%), linear-gradient(135deg, #2a1d30, #1a1220); }
.ph span { color: var(--gold); }

/* ---------- back office chrome ---------- */
.adm-head { background: rgba(14, 8, 17, .72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); padding: 12px 20px; }
.adm-brand { color: var(--gold-2); font-size: 24px; }
.adm-brand span { color: var(--muted); }
.adm-brand.big { color: var(--gold-2); }
.adm-shop { color: var(--muted); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; }
.adm-shop:hover { color: #fff; background: rgba(255,255,255,.06); }
.adm-shell { grid-template-columns: 236px 1fr; }
.adm-nav { background: rgba(14, 8, 17, .5); border-right: 1px solid var(--line); padding: 14px 10px 20px; gap: 1px;
  position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto; scrollbar-width: thin; }
.adm-nav > a { color: #d8ccd4; font-weight: 500; padding: 9px 14px; border-radius: 12px; display: flex; align-items: center; gap: 8px; }
.adm-nav > a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-nav > a.on { color: #fff; box-shadow: 0 8px 22px -8px var(--plum-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.nav-group { color: #8d7c88; letter-spacing: .16em; font-size: 10.5px; padding: 16px 14px 5px; font-weight: 600; }
.nav-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.12);
  color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; }
.warn-badge .nav-badge { background: var(--warn); color: #2a1d06; }
.hot-badge .nav-badge { background: linear-gradient(135deg, #ff8a97, #d9475a); box-shadow: 0 0 14px rgba(255,120,135,.6); }
.adm-me { border-top-color: var(--line); color: var(--muted); }
.adm-main { padding: 28px 30px 60px; }
.adm-title h1 { font: 800 34px/1.1 var(--display); color: var(--head); letter-spacing: -.02em; }
.panel h2 { font: 700 16px var(--display); color: var(--head); }
body.admin { background:
  radial-gradient(900px 500px at 30% -10%, rgba(138,74,155,.35), transparent 60%),
  radial-gradient(700px 420px at 100% 0%, rgba(217,176,106,.10), transparent 60%), var(--ivory); background-attachment: fixed; }

.alert-banner { display: block; padding: 13px 18px; border-radius: 16px; margin-bottom: 12px; text-decoration: none; font-weight: 500; color: var(--ink); border: 1px solid var(--line); }
.alert-banner b { font-size: 18px; margin-right: 4px; }
.alert-banner.hot { background: linear-gradient(90deg, rgba(255,120,135,.22), rgba(255,120,135,.06)); border-color: rgba(255,120,135,.3); }
.alert-banner.warn { background: linear-gradient(90deg, rgba(243,192,90,.2), rgba(243,192,90,.05)); border-color: rgba(243,192,90,.3); }
.alert-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.alert-chip { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.alert-chip.bad { background: var(--bad-bg); border-color: rgba(255,120,135,.35); }
.alert-chip.warn { background: var(--warn-bg); border-color: rgba(243,192,90,.35); }
.appr { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.appr:last-child { border-bottom: 0; }
.appr-why { font-style: italic; color: #e8dce4; margin: 6px 0; }
.appr-act input { margin-bottom: 8px; }
.audit-detail { display: block; white-space: pre-wrap; word-break: break-word; font-size: 12px; max-width: 460px; }
details.ask summary { cursor: pointer; color: var(--gold-2); }
details.ask form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
details.ask input { width: 150px; padding: 6px 10px; }

/* quote / invoice editor */
.doc-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.doc-line { display: grid; grid-template-columns: 1fr 90px 130px 110px 30px; gap: 10px; align-items: start; }
.doc-line.head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.doc-line .line-total { padding-top: 10px; font-variant-numeric: tabular-nums; }
.doc-line .rm { padding-top: 10px; text-decoration: none; }
.doc-totals { max-width: 360px; margin-left: auto; }

/* ---------- shop chrome ---------- */
.topbar { background: rgba(0,0,0,.35); color: var(--muted); border-bottom: 1px solid var(--line); }
.topbar a { color: var(--gold-2); }
.site-head { background: rgba(13, 8, 16, .7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand-mark { color: var(--gold-2); }
.brand-sub { color: var(--muted); }
.search input { background: rgba(255,255,255,.06); border-color: var(--line-2); }
.cart-link { color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; }
.badge { background: var(--gold); color: #23161f; top: -6px; left: auto; right: -6px; }
.catnav { border-top-color: var(--line); }
.catnav .wrap { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.catnav a { color: #d8ccd4; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(255,255,255,.03); }
.catnav a:hover { border-color: var(--gold); color: #fff; }
.sale-link { border-color: rgba(255,120,135,.4) !important; color: var(--bad) !important; }

/* hero: a spotlight on stage */
.hero { background:
  radial-gradient(40% 70% at 22% 10%, rgba(179,108,196,.55), transparent 70%),
  radial-gradient(38% 65% at 80% 0%, rgba(217,176,106,.28), transparent 70%),
  radial-gradient(60% 60% at 50% 110%, rgba(108,52,121,.6), transparent 70%),
  linear-gradient(180deg, #120a16, #0d0810); color: #fff; border-bottom: 1px solid var(--line); }
.hero::after { content: none; }
.hero-inner { text-align: center; padding: 96px 16px 80px; max-width: 980px; margin: 0 auto; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font: 800 clamp(44px, 8vw, 92px)/1 var(--display); letter-spacing: -.035em; max-width: none; margin: 0 auto 18px;
  background: linear-gradient(180deg, #ffffff 30%, #e8d7ea 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 auto; color: #d6c8d1; font-size: 18px; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 720px; margin: 34px auto 18px; padding: 8px 8px 8px 22px;
  border-radius: 999px; background: rgba(20, 12, 24, .72); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hero-search svg { flex: none; color: var(--muted); }
.hero-search input { flex: 1; background: transparent; border: 0; font-size: 18px; padding: 12px 6px; box-shadow: none; }
.hero-search input:focus { box-shadow: none; background: transparent; }
.hero-search .btn { padding: 14px 28px; font-size: 16px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  background: rgba(20,12,24,.6); border: 1px solid var(--line-2); color: #fff; text-decoration: none; }
.hero-chips a:hover { border-color: var(--gold); }
.hero-chips a.sale { border-color: rgba(255,120,135,.45); color: #ffb1ba; }
.hero-card { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 20px; max-width: 760px; margin: 34px auto 0;
  text-align: left; border-radius: 26px; overflow: hidden; background: rgba(28,19,33,.8); border: 1px solid var(--line-2); }
.hero-card .art { align-self: stretch; background: radial-gradient(circle at 40% 30%, rgba(217,176,106,.5), transparent 60%), linear-gradient(135deg, #3a2442, #1a1120);
  display: grid; place-items: center; font: 600 54px var(--serif); color: var(--gold-2); min-height: 120px; }
.hero-card small { display: block; letter-spacing: .28em; font-size: 12px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.hero-card b { font: 700 22px var(--display); display: block; }
.hero-card p { margin: 2px 0 0; color: var(--muted); }
.hero-card .btn { margin-right: 20px; }
.hero-cta { justify-content: center; }

.section-title, .page-title { font: 800 34px/1.1 var(--display); color: var(--head); letter-spacing: -.02em; }
.card { border-radius: 22px; overflow: hidden; transition: transform .2s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(217,176,106,.35); box-shadow: 0 24px 50px -18px rgba(179,108,196,.5); }
.card-img { background: #1a1120; }
.card-name { color: var(--ink); }
.price { color: var(--gold-2); }
.price s, .pdp-price s { color: var(--muted); }
.tag.out { background: rgba(0,0,0,.7); }
.tag.low { background: var(--warn-bg); color: var(--warn); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cat-tile { border: 1px solid var(--line); }
.cat-name { background: linear-gradient(transparent, rgba(10,6,12,.92)); font-family: var(--display); }
.promise { background: rgba(255,255,255,.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise h3 { color: var(--gold-2); font-family: var(--display); }
.pdp-img { background: #1a1120; border: 1px solid var(--line); }
.pdp-info h1 { color: var(--head); font-weight: 800; letter-spacing: -.02em; }
.pdp-price { color: var(--gold-2); }
.qty { background: rgba(255,255,255,.05); border-color: var(--line-2); }
.qty input { background: transparent; }
.site-foot { background: rgba(0,0,0,.35); border-top: 1px solid var(--line); color: var(--muted); }
.site-foot h4 { color: var(--gold); }
.sale-hero { background: radial-gradient(45% 80% at 20% 0%, rgba(255,120,135,.45), transparent 70%),
  radial-gradient(40% 70% at 85% 10%, rgba(217,176,106,.35), transparent 70%), #120a16; border-bottom: 1px solid var(--line); }
.sale-hero h1 { font-weight: 800; letter-spacing: -.03em; }
.wa-float { box-shadow: 0 10px 30px rgba(37,211,102,.45); }

/* auth */
body.auth { background: radial-gradient(40% 60% at 30% 10%, rgba(179,108,196,.55), transparent 70%),
  radial-gradient(40% 60% at 75% 0%, rgba(217,176,106,.25), transparent 70%), #0d0810; }
.auth-box { border-radius: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.55); }

/* receipts, reports and printed documents stay on white paper */
body.receipt-page, body.report-page { --ink: #1c1418; --head: #2a1d2e; --muted: #6f6168; --line: #e6dccf; --line-2: #d6c9bb;
  --paper: #fff; --sand: #f4eee7; background: #f1ece6 !important; color: #1c1418; min-height: 100vh; }
body.report-page .tbl th { color: #6f6168; }
body.report-page .tbl td { border-bottom-color: #eee4d8; }
body.report-page .tbl-wrap, body.report-page .panel { box-shadow: none; }
body.report-page a { color: #6c3479; }
body.receipt-page .btn.ghost, body.report-page .btn.ghost { color: #2a1d2e; background: #fff; border: 1px solid #d6c9bb; }
.report.doc { background: #fff; padding: 36px 40px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.doc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #2a1d2e; padding-bottom: 18px; margin-bottom: 18px; }
.doc-brand { font: 700 32px var(--serif); color: #2a1d2e; line-height: 1; }
.doc-sub { letter-spacing: .32em; font-size: 11px; color: #b08d57; margin: 4px 0 8px; }
.doc-title { text-align: right; }
.doc-title h1 { font: 800 30px var(--display); letter-spacing: .08em; color: #6c3479; margin: 0 0 8px; }
.doc-meta td { padding: 2px 0 2px 16px; font-size: 14px; }
.doc-to { background: #f7f2ec; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.doc-to small { display: block; text-transform: uppercase; letter-spacing: .12em; color: #8a7a82; font-size: 11px; }
.doc-items th { background: #2a1d2e; color: #fff !important; }
.doc-sum { margin: 14px 0 0 auto; min-width: 280px; border-collapse: collapse; }
.doc-sum td { padding: 6px 4px; }
.doc-sum .grand td { font-weight: 800; font-size: 17px; border-top: 2px solid #2a1d2e; }
.doc-foot { margin-top: 26px; color: #6f6168; border-top: 1px solid #e6dccf; padding-top: 12px; }
@media print { body.report-page { background: #fff !important; } .report.doc { box-shadow: none; padding: 0; } }

@media (max-width: 900px) {
  .appr { grid-template-columns: 1fr; }
  .doc-line { grid-template-columns: 1fr 70px 100px; }
  .doc-line .line-total, .doc-line.head span:nth-child(4) { display: none; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card .art { min-height: 90px; }
  .hero-card .btn { margin: 0 20px 20px; }
}
@media (max-width: 760px) {
  .adm-nav { position: fixed; top: 57px; height: auto; bottom: 0; background: #140c18; }
  .adm-main { padding: 18px 16px 50px; }
  .adm-title h1 { font-size: 27px; }
  .hero-inner { padding: 60px 16px 56px; }
  .hero-search { padding-left: 16px; }
  .hero-search input { font-size: 16px; }
  .hero-search .btn { padding: 12px 18px; }
  .span2 { grid-column: auto; }
  .section-title, .page-title { font-size: 28px; }
}
