:root {
  --black: #050505;
  --black-soft: #0d0b0a;
  --panel: #15110e;
  --panel-raised: #1c1510;
  --ember: #b51f0e;
  --ember-bright: #ef3b16;
  --gold: #d99a27;
  --gold-light: #ffd77a;
  --ivory: #fff5df;
  --muted: #b9aa96;
  --green: #67c58c;
  --line: rgba(225, 167, 60, .24);
  --shadow: 0 26px 75px rgba(0, 0, 0, .48);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 77% 7%, rgba(181, 31, 14, .16), transparent 28rem),
    radial-gradient(circle at 18% 28%, rgba(217, 154, 39, .06), transparent 23rem),
    linear-gradient(180deg, #030303 0%, #0a0807 52%, #050505 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold-light); }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 18px; background: var(--ivory); color: var(--black); z-index: 99; }
.skip-link:focus { top: 16px; }
.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: rgba(3,3,3,.9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 0; background: none; border: 0; color: var(--ivory); text-decoration: none; text-align: left; }
.brand img { display: block; width: 64px; height: 64px; object-fit: cover; mix-blend-mode: screen; }
.brand-wordmark strong { display: block; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 18px; letter-spacing: .16em; text-shadow: 0 0 18px rgba(239,59,22,.22); }
.brand-wordmark small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
.status-cluster { display: flex; align-items: center; gap: 12px; }
.status-pill { border: 1px solid rgba(103,197,140,.35); border-radius: 999px; background: rgba(103,197,140,.1); color: #8ee0ac; padding: 8px 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-pill.offline { border-color: rgba(239,59,22,.35); background: rgba(181,31,14,.12); color: #ff896e; }
.store-name { font-size: 12px; font-weight: 700; color: var(--muted); }
main { min-height: calc(100vh - 145px); position: relative; }
.view { width: min(1280px, calc(100% - 36px)); margin: 0 auto; }
.home-view { padding: clamp(34px, 6vw, 76px) 0 78px; }
.hero-stage { min-height: 480px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr); gap: clamp(36px, 7vw, 96px); align-items: center; position: relative; }
.hero-stage::before { content: ""; position: absolute; width: 360px; height: 360px; right: 2%; top: -4%; border-radius: 50%; background: radial-gradient(circle, rgba(239,59,22,.15), rgba(181,31,14,.05) 38%, transparent 69%); filter: blur(8px); pointer-events: none; }
.hero-copy { max-width: 760px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--gold); letter-spacing: .24em; font-size: 11px; font-weight: 900; }
h1, h2 { color: var(--ivory); font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
h1 { margin: 0; font-size: clamp(49px, 7.2vw, 96px); line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
h1 em { color: var(--gold-light); font-weight: 400; text-shadow: 0 0 32px rgba(239,59,22,.35); }
.hero-text { max-width: 640px; margin: 26px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; color: var(--muted); }
.hero-steps { display: flex; gap: 30px; margin-top: 32px; color: #d3c4ae; font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-steps span { position: relative; }
.hero-steps span:not(:last-child)::after { content: ""; position: absolute; width: 16px; height: 1px; top: 50%; right: -23px; background: var(--gold); }
.lookup-card { position: relative; z-index: 1; margin: 0; padding: clamp(25px, 3.5vw, 42px); overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(30,21,15,.97), rgba(9,8,7,.98)); color: white; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,215,122,.12); }
.lookup-card::after { content: ""; position: absolute; inset: auto -20% -42% 18%; height: 190px; background: radial-gradient(ellipse, rgba(181,31,14,.24), transparent 68%); pointer-events: none; }
.scan-orbit { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 8px rgba(217,154,39,.04), 0 0 34px rgba(239,59,22,.18); }
.scan-orbit span { width: 28px; height: 28px; border: solid var(--gold-light); border-width: 2px 0; position: relative; }
.scan-orbit span::before, .scan-orbit span::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--gold-light); }
.scan-orbit span::before { left: 5px; box-shadow: 7px 0 var(--gold-light), 13px 0 var(--gold-light); }
.scan-orbit span::after { right: 3px; }
.scan-kicker { margin: 0 0 8px !important; color: var(--ember-bright) !important; font-size: 10px !important; font-weight: 900; letter-spacing: .22em; }
.lookup-card label { display: block; margin-bottom: 18px; font: 600 clamp(27px, 3vw, 39px)/1 Georgia, serif; color: var(--ivory); }
.lookup-row { display: grid; grid-template-columns: 1fr; gap: 11px; }
input, select, textarea { color: var(--ivory); }
.lookup-card input { width: 100%; min-height: 60px; border: 1px solid rgba(255,215,122,.26); border-radius: 11px; padding: 0 17px; background: rgba(0,0,0,.62); }
input::placeholder { color: #8c7d70; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.lookup-card p { position: relative; z-index: 1; margin: 12px 0 0; color: #9f9183; font-size: 12px; }
.primary-button { min-height: 56px; border: 1px solid #f4bd4a; border-radius: 10px; padding: 0 24px; background: linear-gradient(135deg, #f0b73e, #b76c11); color: #1a0e02; font-weight: 900; letter-spacing: .04em; box-shadow: 0 9px 24px rgba(181,31,14,.16); }
.primary-button:hover, .primary-button:focus { background: linear-gradient(135deg, var(--gold-light), #d98d1c); transform: translateY(-1px); }
.primary-button.wide { width: 100%; margin-top: 20px; }
.catalog-section { margin-top: clamp(40px, 6vw, 74px); padding-top: 42px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h2 { margin: 0; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.025em; }
.text-button, .back-button { border: 0; background: none; color: var(--gold-light); text-decoration: underline; text-underline-offset: 5px; font-weight: 760; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { min-height: 288px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid rgba(225,167,60,.18); border-radius: 18px; padding: 0; background: linear-gradient(145deg, rgba(27,21,17,.98), rgba(10,9,8,.98)); color: var(--ivory); text-align: left; box-shadow: 0 13px 40px rgba(0,0,0,.28); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.product-card:hover, .product-card:focus { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); outline: 0; }
.card-image { position: relative; height: 180px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 80%, rgba(181,31,14,.45), transparent 48%), linear-gradient(150deg, #1e110c, #070707); color: var(--gold-light); }
.card-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -45px 45px rgba(5,5,5,.5); }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-image span { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--gold); transform: rotate(45deg); font-family: Georgia, serif; font-size: 25px; font-weight: 700; background: rgba(0,0,0,.55); box-shadow: 0 0 28px rgba(239,59,22,.2); }
.card-image span b { transform: rotate(-45deg); }
.card-copy { display: block; padding: 20px 21px 22px; border-top: 1px solid rgba(225,167,60,.14); }
.card-copy strong { display: block; color: var(--ivory); font-family: Georgia, serif; font-size: 23px; line-height: 1.08; }
.card-copy small { display: block; margin-top: 7px; color: var(--muted); }
.card-copy em { display: inline-block; margin-top: 13px; padding: 6px 10px; border: 1px solid rgba(239,59,22,.52); border-radius: 999px; background: rgba(181,31,14,.16); color: #ffb291; font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .11em; }
.empty-card { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.product-view { padding: 36px 0 76px; }
.back-button { margin-bottom: 26px; font-size: 15px; }
.product-stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); gap: clamp(30px, 5vw, 68px); align-items: start; }
.video-frame { aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #020202; color: white; box-shadow: var(--shadow), 0 0 60px rgba(181,31,14,.11); }
.video-frame iframe, .video-frame video, .video-frame img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-placeholder { padding: 30px; text-align: center; color: #d5c5b6; }
.video-note { color: var(--muted); font-size: 13px; }
.product-copy { padding-left: clamp(0px, 2vw, 20px); border-left: 1px solid var(--line); }
.product-copy h1 { font-size: clamp(43px, 5.7vw, 74px); }
.product-photo { display: block; width: 100%; max-width: 340px; max-height: 220px; object-fit: contain; margin: 0 0 18px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.product-photo[hidden] { display: none; }
.brand-line { margin: 12px 0; color: var(--muted); font-weight: 700; }
.offer { display: inline-block; margin: 22px 0 8px; padding: 10px 15px; border: 1px solid rgba(239,59,22,.55); border-radius: 999px; background: rgba(181,31,14,.17); color: #ffb18e; font-size: clamp(18px, 2.4vw, 28px); font-weight: 900; letter-spacing: .06em; }
.offer-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.effects { font-size: 16px; line-height: 1.6; color: #d5c6b7; }
.message-view { min-height: 72vh; display: grid; place-items: center; padding: 50px 0; }
.message-view[hidden] { display: none; }
.message-card { width: min(620px, 100%); padding: clamp(34px, 6vw, 68px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, var(--panel-raised), #090807); box-shadow: var(--shadow); text-align: center; }
.message-card h1 { font-size: clamp(38px, 6vw, 62px); }
.message-card p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.55; }
.message-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 23px; border: 1px solid var(--gold); transform: rotate(45deg); color: var(--gold-light); font: 700 35px Georgia, serif; }
footer { display: flex; justify-content: space-between; padding: 24px clamp(18px, 4vw, 60px); border-top: 1px solid var(--line); color: #7f7266; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
footer b { color: var(--ember); }
footer a { color: #7f7266; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 370px; transform: translateY(120px); opacity: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 11px; background: #1c1410; color: white; box-shadow: var(--shadow); transition: .25s ease; z-index: 30; }
.toast.show { transform: translateY(0); opacity: 1; }

/* Administrator */
.admin-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 70px; }
.admin-hero { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.admin-hero h1 { font-size: clamp(40px, 6vw, 68px); }
.panel { margin-bottom: 22px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: rgba(21,17,14,.94); box-shadow: 0 12px 38px rgba(0,0,0,.24); }
.panel h2 { font-size: 28px; margin-bottom: 16px; }
.panel p { color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field label { display: block; margin-bottom: 7px; color: #c8b9a8; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; border: 1px solid rgba(225,167,60,.2); border-radius: 9px; padding: 10px 12px; background: #090807; color: var(--ivory); }
.form-field textarea { min-height: 88px; resize: vertical; }
.button-row { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 18px; }
.secondary-button, .danger-button { min-height: 48px; border: 1px solid var(--gold); border-radius: 9px; padding: 0 18px; background: transparent; color: var(--gold-light); font-weight: 800; }
.danger-button { border-color: var(--ember-bright); color: #ff8a6b; background: rgba(181,31,14,.1); }
.login-card { width: min(500px, 100%); margin: 70px auto; }
.login-card h1 { font-size: 50px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid rgba(225,167,60,.12); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.admin-table button { border: 0; background: none; color: var(--gold-light); text-decoration: underline; }
.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-cards.import-summary { margin-top: 18px; }
.summary-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.summary-card strong { display: block; color: var(--gold-light); font: 700 27px Georgia, serif; }
.summary-card span { color: var(--muted); font-size: 12px; }
.notice { padding: 12px 14px; border-left: 4px solid var(--gold); background: rgba(217,154,39,.09); color: #e4d1a6; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; color: #d5c6b7; font-weight: 700; }
.checkbox-row input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--gold); }
details { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #090807; }
details summary { cursor: pointer; font-weight: 800; }
.error { border-left-color: var(--ember-bright); background: rgba(181,31,14,.13); color: #ffb19e; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-stage { grid-template-columns: 1fr; min-height: 0; }
  .lookup-card { max-width: 720px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-stage { grid-template-columns: 1fr; }
  .product-copy { max-width: 760px; border-left: 0; padding-left: 0; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .topbar { min-height: 78px; align-items: center; }
  .brand img { width: 54px; height: 54px; }
  .brand-wordmark strong { font-size: 15px; }
  .brand-wordmark small, .store-name { display: none; }
  .status-cluster { padding-top: 0; }
  .home-view { padding-top: 32px; }
  .hero-stage { gap: 34px; }
  .hero-steps { gap: 22px; }
  .hero-steps span:not(:last-child)::after { display: none; }
  .catalog-grid, .form-grid { grid-template-columns: 1fr; }
  .section-heading, .admin-hero { align-items: flex-start; flex-direction: column; }
  .summary-cards { grid-template-columns: 1fr 1fr; }
  footer span { max-width: 260px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Video review (manager screen) */
.video-review { display: grid; gap: 16px; margin-top: 18px; }
.vr-item { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.vr-item header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.vr-item header strong { display: block; color: var(--ivory); font-size: 17px; }
.vr-item header small { color: var(--muted); font-size: 12px; }
.vr-note { color: var(--gold-light); font-size: 12px; max-width: 360px; }
.vr-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vr-cand { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid rgba(225,167,60,.14); border-radius: 12px; background: rgba(0,0,0,.25); }
.vr-cand.current { border-color: var(--gold); }
.vr-cand img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.vr-cand strong { font-size: 13px; line-height: 1.35; color: var(--ivory); }
.vr-cand small { color: var(--muted); font-size: 11px; }
.vr-cand .secondary-button { min-height: 40px; margin-top: auto; }
.vr-paste { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vr-paste input { flex: 1 1 240px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.35); color: var(--ivory); font: inherit; }
.vr-paste .secondary-button { min-height: 44px; }
