/* =============================================================================
   Spirits Market Journal — 2026
   "Auction-House Editorial" design system.
   Warm paper ground, ink type, a single claret accent, Playfair Display
   masthead headings, hairline rules, crisp corners, ruled price-list tables.
   No glassmorphism, no generic SaaS blue.
   ============================================================================= */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg:        #f1ebde;   /* warm parchment */
  --bg-2:      #fcf9f2;   /* light paper */
  --bg-3:      #fbf7ee;   /* input paper */
  --paper:     #fcf9f2;
  --surface:   #fcf9f2;   /* SOLID paper, not translucent */
  --surface-2: #efe7d6;

  --border:    rgba(28, 24, 19, 0.14);   /* ink hairline */
  --border-2:  rgba(28, 24, 19, 0.30);
  --rule:      #1c1813;                    /* solid ink rule */

  --ink:       #1b1712;
  --text:      #1b1712;
  --text-2:    #4c443a;
  --muted:     #837868;
  --faint:     #ab9f8b;

  /* claret / oxblood accent (var names kept for compatibility) */
  --gold:      #8a2f28;
  --gold-2:    #6f241d;
  --gold-deep: #4c1814;
  --amber-grad: linear-gradient(135deg, #9a352d 0%, #7a2620 100%);
  --gold-glow: none;

  --oxblood:   #8a2f28;
  --emerald:   #3a6b4f;
  --rose:      #a8392d;

  --radius:    5px;
  --radius-sm: 3px;
  --radius-lg: 7px;

  --shadow:    0 30px 60px -42px rgba(28, 24, 19, 0.32);
  --shadow-sm: 0 14px 30px -26px rgba(28, 24, 19, 0.22);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:"Space Grotesk", "JetBrains Mono", ui-monospace, monospace;
  --font-label: "Space Grotesk", "JetBrains Mono", monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(138,47,40,0.04), transparent 42%),
    radial-gradient(circle at 86% 8%, rgba(28,24,19,0.04), transparent 40%);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono, table.smj .t-price, table.smj .t-bottles, .t-date, .kpi .v { font-variant-numeric: tabular-nums; }
::selection { background: rgba(138, 47, 40, 0.20); color: var(--ink); }

/* custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(28,24,19,0.26); border-radius: 0; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

/* --------------------------------------------------------- paper backdrop */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx::after {  /* fine paper grain */
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: multiply;
}
.blob { display: none; }
.bg-vignette { display: none; }

/* --------------------------------------------------------------- container */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1480px; }

/* ----------------------------------------------------------------- topbar */
/* dateline / masthead strip */
.topbar { background: var(--ink); color: #d8cdba; font-size: 11px; }
.topbar-inner { display: flex; align-items: center; height: 36px; gap: 16px; }
.topbar .tagline { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.22em; color: #b6a98f; }
.topbar .acct { margin-left: auto; display: flex; align-items: center; gap: 13px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }
.topbar .acct a { color: #ece3d2; font-weight: 500; transition: color 0.2s; }
.topbar .acct a:hover { color: #fff; }
.topbar .acct .ghost-link { color: #b6a98f; }
.topbar .acct .trial { color: #e8a39b; font-weight: 600; }
.topbar .acct .sep { color: #5a4f40; }
.topbar .welcome { color: #b6a98f; }
.topbar .welcome b { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------ navbar */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.4s;
}
.nav.scrolled { box-shadow: 0 10px 30px -22px rgba(28,24,19,0.4); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 3px; flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: #f6efe2;
  background: var(--gold); letter-spacing: -0.02em;
}
.brand .name { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand .name small { display: block; font-family: var(--font-label); font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 16px; font-size: 12.5px; color: var(--text-2); font-family: var(--font-label);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--gold); }
.nav-cta {
  margin-left: 12px; padding: 11px 22px !important; color: #f6efe2 !important; background: var(--ink);
  border-radius: 4px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold) !important; color: #f6efe2 !important; }
.nav-cta.active::after { display: none; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--rule); border-radius: 3px; width: 44px; height: 44px; color: var(--ink); font-size: 20px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid var(--rule);
  background: transparent; color: var(--ink); font-weight: 600; font-size: 12.5px;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em;
  transition: all 0.22s var(--ease); white-space: nowrap;
}
.btn:hover { background: rgba(28,24,19,0.05); transform: translateY(-1px); }
.btn-gold { background: var(--ink); color: #f6efe2; border-color: var(--ink); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: #f6efe2; }
.btn-ghost { background: transparent; border-color: var(--border-2); }
.btn-sm { padding: 8px 15px; font-size: 11px; }
.btn-danger { color: var(--rose); border-color: rgba(168,57,45,0.45); }
.btn-danger:hover { background: rgba(168,57,45,0.08); }
.btn-icon { width: 42px; height: 42px; padding: 0; letter-spacing: 0; }
.btn[hidden] { display: none !important; }

/* ------------------------------------------------------------------ chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  border-radius: 100px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-label); background: transparent; border: 1px solid var(--border-2); color: var(--text-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.chip-live .dot { background: var(--emerald); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* editorial kicker with leading rule */
.eyebrow { font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block; }
.section-head.center .eyebrow { justify-content: center; }

/* -------------------------------------------------------------- paper card */
.glass {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bottle, .price-tag { animation: none !important; } }

/* =================================================================== HERO */
.hero { position: relative; padding: 76px 0 64px; }
.hero::before { content: ""; position: absolute; top: 40px; left: 32px; right: 32px; height: 1px; background: var(--rule); opacity: 0.5; }
.hero-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(46px, 6.4vw, 92px); font-weight: 500; line-height: 0.96; letter-spacing: -0.02em; }
.hero h1 .em { font-style: italic; color: var(--gold); }
.hero .lede { font-size: 18px; color: var(--text-2); max-width: 520px; margin: 26px 0 32px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 40px; display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 24px; }
.hero-trust div { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--border); color: var(--muted); font-size: 11px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; }
.hero-trust div:last-child { border-right: none; }
.hero-trust b { color: var(--ink); font-family: var(--font-display); font-size: 30px; font-weight: 600; display: block; letter-spacing: -0.01em; margin-bottom: 5px; }

/* hovering bottle showcase */
.hero-art { position: relative; height: 480px; display: grid; place-items: center; }
.bottle { position: relative; width: 150px; height: 430px; animation: float 6s var(--ease) infinite alternate; filter: drop-shadow(0 40px 50px rgba(28,24,19,0.28)); }
@keyframes float { to { transform: translateY(-20px); } }
.hero-ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--border); }
.hero-ring.r2 { width: 320px; height: 320px; border-color: rgba(138,47,40,0.30); }
.hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(138,47,40,0.10), transparent 62%); }
.price-tag {
  position: absolute; padding: 13px 16px; border-radius: 4px; background: var(--paper);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
  animation: float 7s var(--ease) infinite alternate;
}
.price-tag .pl { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-family: var(--font-label); }
.price-tag .pv { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.price-tag .pn { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.price-tag.t1 { top: 24px; right: -10px; }
.price-tag.t2 { bottom: 36px; left: -20px; animation-delay: -2s; }

/* ====================================================== section / headings */
section { position: relative; }
.section { padding: 76px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 54px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
.section-head p { font-size: 17px; color: var(--text-2); margin-top: 16px; line-height: 1.6; }

/* ---------------------------------------------------------------- KPI stats */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--border); }
.kpi { padding: 28px 26px; position: relative; border-right: 1px solid var(--border); }
.kpi:last-child { border-right: none; }
.kpi .v { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.kpi .l { color: var(--muted); font-size: 10.5px; margin-top: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-label); }
.kpi .v .unit { color: var(--gold); }

/* --------------------------------------------------------------- feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.feat { padding: 34px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background 0.3s; }
.feat:hover { background: var(--surface-2); }
.feat .ico { width: 46px; height: 46px; border-radius: 3px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border-2); color: var(--gold); margin-bottom: 22px; }
.feat h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.feat p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ----------------------------------------------------------- featured lots */
.lot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lot-card {
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.lot-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.lot-thumb { height: 188px; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.lot-thumb .glyph { font-family: var(--font-display); font-size: 60px; color: rgba(246,239,226,0.16); font-weight: 600; }
.lot-thumb .thumb-bottle { height: 162px; width: auto; filter: drop-shadow(0 18px 24px rgba(8,6,4,0.5)); transition: transform 0.4s var(--ease); }
.lot-card:hover .thumb-bottle { transform: translateY(-4px) scale(1.03); }
.lot-thumb .badge { position: absolute; top: 14px; left: 14px; background: rgba(28,24,19,0.72); border-color: rgba(246,239,226,0.25); color: #f2ebdd; }
.lot-thumb .badge .dot { background: var(--gold); }
.lot-thumb .badge-price { position: absolute; bottom: 14px; right: 14px; padding: 7px 12px; border-radius: 3px; background: var(--paper); border: 1px solid var(--rule); font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 16px; }
.lot-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.lot-body h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.22; margin-bottom: 8px; }
.lot-body .meta { color: var(--muted); font-size: 11px; display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; }
.lot-body .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================ PRICES PAGE */
.prices-head { padding: 48px 0 12px; }
.search-bar { display: grid; grid-template-columns: 1.5fr 1fr auto auto auto; gap: 12px; align-items: end; }
.field label { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 9px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; font-family: var(--font-label); }
.input, .select {
  width: 100%; padding: 14px 16px; border-radius: 4px; background: var(--bg-3);
  border: 1px solid var(--border-2); color: var(--ink); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(138,47,40,0.14); }
.search-input-wrap { position: relative; }
.search-input-wrap .input { padding-left: 44px; }
.search-input-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* password visibility toggle */
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; margin: 0;
  border: 0; border-radius: 4px; background: transparent;
  color: var(--muted); cursor: pointer; line-height: 0;
  transition: color 0.18s, background 0.18s;
}
.password-toggle:hover { color: var(--ink); background: rgba(28,24,19,0.05); }
.password-toggle:focus-visible { outline: none; color: var(--gold); box-shadow: 0 0 0 3px rgba(138,47,40,0.14); }
.password-toggle svg { width: 18px; height: 18px; display: block; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-visible .eye { display: none; }
.password-toggle.is-visible .eye-off { display: block; }

/* ------------------------------------------------------------ autocomplete */
.suggest {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 5px; list-style: none;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(28, 24, 19, 0.18); max-height: 332px; overflow-y: auto;
}
.suggest[hidden] { display: none; }
/* spinner shown in the search box while suggestions load */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--border-2); border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
}
.ac-spinner {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--gold);
  animation: spin 0.7s linear infinite; pointer-events: none;
}
.ac-spinner[hidden] { display: none; }
.suggest li {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius); cursor: pointer; color: var(--text-2);
}
.suggest li:hover, .suggest li.active { background: var(--surface-2); }
.suggest li .s-name { flex: 1; font-size: 14px; color: var(--ink, #1c1813); }
.suggest li .s-name b { color: var(--gold); font-weight: 700; }
.suggest li .s-kind { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.suggest li .s-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.suggest .s-head { padding: 7px 12px 5px; font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); cursor: default; }
.suggest .s-head:hover { background: none; }

.result-title { text-align: center; font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); font-weight: 500; margin: 40px 0 8px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-title .q { color: var(--gold); font-style: italic; }
.result-sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 32px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; }

/* toolbar above table */
.table-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.table-toolbar .left { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.table-toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mini-select { padding: 9px 12px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--ink); font-size: 13px; }

/* ------------------------------------------------------------- data table */
.table-card { position: relative; border-radius: 0; overflow: hidden; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); background: var(--paper); }
/* loading overlay shown over the results table during a search */
.tbl-loader {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: rgba(250, 247, 240, 0.72); backdrop-filter: blur(2px);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; color: var(--muted);
}
.tbl-loader[hidden] { display: none; }
.tbl-scroll { overflow-x: auto; scrollbar-width: thin; }
.tbl-scroll-y {
  max-height: min(520px, 62vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tbl-scroll-y::-webkit-scrollbar { width: 10px; height: 10px; }
.tbl-scroll::-webkit-scrollbar { height: 10px; }
.tbl-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }
table.smj { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 940px; }
table.smj.smj-calendar { min-width: 0; }
table.smj thead th {
  position: sticky; top: 0; z-index: 2; text-align: left; padding: 12px 12px;
  background: var(--surface-2); color: var(--ink);
  font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-label);
  white-space: nowrap; border-bottom: 1.5px solid var(--rule); user-select: none; cursor: pointer;
}
table.smj thead th:hover { color: var(--gold); }
table.smj thead th .arrow { opacity: 0.35; margin-left: 5px; font-size: 10px; }
table.smj thead th.sorted { color: var(--gold); }
table.smj thead th.sorted .arrow { opacity: 1; }
table.smj thead th.num, table.smj td.num { text-align: right; }
table.smj tbody td { padding: 10px 7px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.smj tbody tr { transition: background 0.15s; }
table.smj tbody tr:hover { background: var(--surface-2); }
table.smj tbody tr:last-child td { border-bottom: none; }
.t-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); max-width: 230px; line-height: 1.25; }
.t-title .type { white-space: normal; display: block; font-family: var(--font-label); font-size: 9.5px; color: var(--gold); font-weight: 600; letter-spacing: 0.12em; margin-top: 5px; text-transform: uppercase; }
.t-desc { color: var(--muted); max-width: 240px; font-size: 12.5px; line-height: 1.5; word-wrap: break-word;}
.t-desc .more { color: var(--gold); cursor: pointer; font-weight: 600; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; }
.t-house { white-space: nowrap; font-size: 13px; }
.t-date { white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.t-price { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--ink); white-space: nowrap; font-size: 14px; }
.t-price.bprice { color: var(--gold); }
.t-bottles { text-align: right; font-family: var(--font-mono); color: var(--text-2); }
.view-lot { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; font-size: 11px; white-space: nowrap; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; }
.view-lot:hover { text-decoration: underline; }
.tag-forum { font-size: 9.5px; padding: 4px 9px; border-radius: 2px; background: transparent; border: 1px solid var(--border-2); color: var(--text-2); white-space: nowrap; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.tag-forum.live { color: var(--emerald); border-color: rgba(58,107,79,0.5); }

/* Responsive prices table — progressive column hiding on tablet, card layout on mobile.
   Column order: 1 Title · 2 Description · 3 Lot · 4 Continent · 5 Forum ·
   6 House · 7 Date · 8 Bottles · 9 Lot Price · 10 Bottle Price */
@media (max-width: 1240px) {
  table.smj th:nth-child(2), table.smj td:nth-child(2) { display: none; }
}
@media (max-width: 1060px) {
  table.smj th:nth-child(4), table.smj td:nth-child(4) { display: none; }
}
@media (max-width: 920px) {
  table.smj th:nth-child(5), table.smj td:nth-child(5) { display: none; }
}

@media (max-width: 768px) {
  /* Restore columns hidden at tablet widths — cards show every field */
  table.smj tbody td:nth-child(2),
  table.smj tbody td:nth-child(4),
  table.smj tbody td:nth-child(5) { display: flex !important; }
  table.smj tbody td.t-desc { display: block !important; }

  .result-title { white-space: normal; font-size: clamp(28px, 8vw, 40px); }
  .table-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .table-toolbar .left { flex-wrap: wrap; }
  .table-toolbar .right {
    margin-left: 0; flex-direction: column; align-items: stretch; gap: 10px;
  }
  .table-toolbar .right .chip { justify-content: center; }
  .table-toolbar .right .mini-select { width: 100% !important; max-width: none; }
  .table-card { border-radius: var(--radius); border: 1px solid var(--border); }
  .tbl-scroll { overflow-x: visible; }
  .tbl-scroll-y { max-height: min(440px, 55vh); overflow-y: auto; }
  table.smj { min-width: 0; display: block; font-size: 14px; }
  table.smj thead { display: none; }
  table.smj tbody { display: block; padding: 12px; }
  table.smj tbody tr.lot-row {
    display: flex; flex-direction: column;
    margin-bottom: 14px; padding: 16px 18px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-2);
    box-shadow: 0 1px 0 rgba(28, 24, 19, 0.04);
  }
  table.smj tbody tr.lot-row:last-child { margin-bottom: 0; }
  table.smj tbody tr.lot-row:hover { background: var(--surface-2); }
  table.smj tbody tr.empty-row { display: block; margin: 0; padding: 0; border: none; background: none; box-shadow: none; }
  table.smj tbody tr.empty-row td { display: block; padding: 0; border: none; }
  table.smj tbody tr.empty-row td::before { display: none; }
  table.smj tbody td {
    display: flex !important; align-items: flex-start; justify-content: space-between; gap: 14px;
    padding: 9px 0; border-bottom: 1px solid var(--border); text-align: right;
  }
  table.smj tbody td:last-child { border-bottom: none; }
  table.smj tbody td::before {
    content: attr(data-label);
    font-family: var(--font-label); font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
    text-align: left; flex: 0 0 38%; max-width: 42%; padding-top: 2px;
  }
  table.smj tbody td.t-title {
    display: block !important; order: 1;
    padding: 0 0 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--rule);
    max-width: none; white-space: normal;
  }
  table.smj tbody td.t-title::before { display: none; }
  table.smj tbody td.t-house { order: 2; }
  table.smj tbody td.t-date { order: 3; }
  table.smj tbody td.t-desc {
    display: block !important; order: 4;
    max-width: none; text-align: left;
    padding: 10px 0; border-bottom: 1px solid var(--border);
  }
  table.smj tbody td.t-desc::before {
    display: block; margin-bottom: 6px; content: attr(data-label);
  }
  table.smj tbody td.t-bottles { order: 5; }
  table.smj tbody td.t-price { order: 6; font-size: 15px; }
  table.smj tbody td.t-price.bprice { order: 7; font-size: 15px; }
  table.smj tbody td:nth-child(4) { order: 8; }  /* Continent */
  table.smj tbody td:nth-child(5) { order: 9; }  /* Forum */
  table.smj tbody td.t-lot {
    order: 10; justify-content: center; padding-top: 14px; margin-top: 4px;
    border-bottom: none; border-top: 1px solid var(--border);
  }
  table.smj tbody td.t-lot::before { display: none; }
  table.smj tbody td.t-lot .view-lot { font-size: 12px; padding: 8px 0; }
  .pager { flex-direction: column; align-items: stretch; text-align: center; }
  .pager .pages { justify-content: center; flex-wrap: wrap; }
}

.table-empty { padding: 72px 20px; text-align: center; color: var(--muted); }
.table-empty .big { font-family: var(--font-display); font-size: 28px; color: var(--text-2); margin-bottom: 8px; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px 0; flex-wrap: wrap; gap: 12px; }
.pager .info { color: var(--muted); font-size: 11px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; }
.pager .pages { display: flex; gap: 6px; }
.pg-btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 3px; background: transparent; border: 1px solid var(--border-2); color: var(--text-2); font-size: 13px; font-weight: 600; display: grid; place-items: center; font-family: var(--font-mono); }
.pg-btn:hover:not(:disabled) { border-color: var(--rule); color: var(--ink); }
.pg-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* --------------------------------------------------- settings drawer / panel */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(28,24,19,0.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 92vw); z-index: 201;
  background: var(--bg-2); border-left: 2px solid var(--rule); box-shadow: -30px 0 80px rgba(28,24,19,0.3);
  transform: translateX(100%); transition: transform 0.4s var(--ease); display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { padding: 24px 26px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.drawer-body { padding: 24px 26px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 18px 26px; border-top: 1px solid var(--rule); display: flex; gap: 12px; }
.set-group { margin-bottom: 30px; }
.set-group > .gl,
.set-head { font-family: var(--font-label); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.set-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.set-head .gl { margin: 0; padding: 0; border: 0; letter-spacing: 0.18em; }
.radio-row, .check-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 3px; border: 1px solid var(--border); margin-bottom: 9px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.radio-row[hidden], .check-row[hidden] { display: none !important; }
.radio-row.is-disabled, .check-row.is-disabled { opacity: 0.45; cursor: not-allowed; background: var(--surface-2); }
.radio-row:hover, .check-row:hover { border-color: var(--border-2); background: var(--surface-2); }
.radio-row input, .check-row input { accent-color: var(--gold); width: 17px; height: 17px; }
.radio-row .rl { font-weight: 600; font-size: 14px; }
.radio-row .rd { font-size: 12px; color: var(--muted); }
.house-grid, .continent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 6px; }
.house-grid .check-row, .continent-grid .check-row { margin-bottom: 0; font-size: 13px; padding: 9px 11px; }
.filter-actions { display: flex; gap: 12px; flex-shrink: 0; }
.filter-actions a { font-family: var(--font-label); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; cursor: pointer; }
.filter-actions a:hover { text-decoration: underline; }

/* ============================================================== ADMIN */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side { border-right: 1px solid var(--rule); background: var(--paper); padding: 24px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { margin-bottom: 34px; padding: 0 6px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 3px; color: var(--text-2); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a.active { background: var(--ink); color: var(--paper); }
.admin-nav a.active svg { color: var(--paper); }
.admin-nav a svg { flex: 0 0 auto; }
.admin-side .side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.admin-main { padding: 32px 40px 60px; overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 2px solid var(--rule); }
.admin-topbar h1 { font-family: var(--font-display); font-size: 38px; font-weight: 500; }
.admin-topbar .sub { color: var(--muted); font-size: 14px; margin-top: 5px; }
.admin-topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.admin-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; overflow: hidden; }
.admin-card .ac-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.admin-card .ac-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.admin-card .ac-head .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; padding: 13px 18px; font-family: var(--font-label); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 1.5px solid var(--rule); white-space: nowrap; }
.admin-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-table .ttl { font-family: var(--font-display); font-weight: 600; max-width: 360px; font-size: 14.5px; }
.icon-btn { width: 34px; height: 34px; border-radius: 3px; border: 1px solid var(--border-2); background: transparent; color: var(--text-2); display: grid; place-items: center; transition: all 0.2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--rule); background: var(--surface-2); }
.icon-btn.del:hover { color: var(--rose); border-color: rgba(168,57,45,0.5); background: rgba(168,57,45,0.08); }

/* admin modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(28,24,19,0.5); z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 680px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); animation: fadeUp 0.3s var(--ease); }
.modal-head { padding: 22px 26px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between;}
.modal-head h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 24px 26px; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--rule); display: flex; gap: 12px; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-family: var(--font-label); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.form-field textarea { width: 100%; padding: 12px 14px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--ink); font-size: 14px; min-height: 92px; resize: vertical; }
.form-field .hint { font-size: 11.5px; color: var(--faint); margin-top: 6px; text-transform: none; letter-spacing: 0; font-family: var(--font-ui); }
.link-quiet {
  background: none; border: none; padding: 0; font: inherit; color: var(--muted);
  font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.link-quiet:hover { color: var(--ink); }

/* toast */
.toast-stack { position: fixed; bottom: 26px; right: 26px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 20px; border-radius: 4px; background: var(--ink); color: #f2ebdd; border: 1px solid var(--ink); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; animation: toastIn 0.35s var(--ease); }
.toast .bar { width: 3px; align-self: stretch; border-radius: 0; background: var(--gold); }
.toast.ok .bar { background: var(--emerald); }
.toast.err .bar { background: var(--rose); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* badge cell for spirit type */
.pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 2px; font-family: var(--font-label); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; background: transparent; border: 1px solid var(--border-2); color: var(--text-2); white-space: nowrap; }

/* ----------------------------------------------------------------- editorial */
.editorial { max-width: 720px; margin: 0 auto; }
.editorial p { font-size: 18px; color: var(--text-2); line-height: 1.8; }
.editorial h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 44px 0 14px; }
.editorial a { color: var(--gold); border-bottom: 1px solid rgba(138,47,40,0.4); }
.drop-cap::first-letter { font-family: var(--font-display); font-size: 4.6em; float: left; line-height: 0.78; padding: 8px 14px 0 0; color: var(--gold); font-weight: 600; }

/* contributor card */
.contrib { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); margin-bottom: 16px; }
.contrib .av { width: 60px; height: 60px; border-radius: 3px; flex: 0 0 auto; background: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #f6efe2; font-size: 22px; }
.contrib h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.contrib .role { color: var(--gold); font-family: var(--font-label); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin: 4px 0 9px; }
.contrib p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------------ profile */
.contrib-av-lg { width: 58px; height: 58px; border-radius: 3px; flex: 0 0 auto; background: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #f6efe2; font-size: 22px; }
.month-row td { background: rgba(138,47,40,.06); font-family: var(--font-display); font-size: 15px; padding-top: 16px !important; }
.article-body img { max-width: 100%; height: auto; }
.article-body h2, .article-body h3 { font-family: var(--font-display); color: var(--ink); margin: 1.2em 0 .5em; }

.prof-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.prof-row:last-of-type { border-bottom: none; }
.prof-row b { color: var(--ink); font-weight: 600; }
.saved-search { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.saved-search:last-child { border-bottom: none; }

/* --------------------------------------------------------- pricing / subscribe */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); }
.plan { padding: 32px 26px; background: var(--paper); display: flex; flex-direction: column; position: relative; border-right: 1px solid var(--border); transition: background 0.3s; }
.plan:last-child { border-right: none; }
.plan:hover { background: var(--surface-2); }
.plan.featured { background: var(--ink); color: #ece3d2; }
.plan.featured .pn, .plan.featured .pp { color: #f6efe2; }
.plan.featured .pd { color: #b6a98f; }
.plan.featured ul li { color: #d8cdba; }
.plan.featured ul li svg { color: var(--gold); }
.plan.featured::before { content: "Most Popular"; position: absolute; top: 0; left: 0; right: 0; background: var(--gold); color: #f6efe2; font-family: var(--font-label); font-size: 9.5px; font-weight: 700; padding: 6px 0; text-align: center; letter-spacing: 0.16em; text-transform: uppercase; }
.plan.featured { padding-top: 48px; }
.plan .pn { font-family: var(--font-label); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); }
.plan .pp { font-family: var(--font-display); font-size: 42px; font-weight: 600; margin: 16px 0 2px; letter-spacing: -0.02em; }
.plan .pp .per { font-size: 13px; color: var(--muted); font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.plan .pd { color: var(--muted); font-size: 13px; min-height: 38px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; border-top: 1px solid var(--border); padding-top: 18px; }
.plan.featured ul { border-color: rgba(246,239,226,0.18); }
.plan ul li { padding: 8px 0; font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.plan ul li svg { color: var(--gold); flex: 0 0 auto; margin-top: 3px; }

.form-card { display: grid; grid-template-columns: 1fr; gap: 16px; }
.subscribe-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 28px; align-items: start; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 2px solid var(--rule); padding: 54px 0 36px; margin-top: 64px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { font-family: var(--font-label); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 18px; }
.footer a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer .blurb { color: var(--muted); font-size: 14px; max-width: 300px; margin-top: 16px; line-height: 1.6; }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social a { width: 38px; height: 38px; border-radius: 3px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border-2); color: var(--text-2); padding: 0; transition: all 0.2s; }
.footer .social a:hover { color: var(--gold); border-color: var(--rule); }
.footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; flex-wrap: wrap; gap: 10px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; }

/* ----------------------------------------------------------- cookie bar */
.cookie-bar { position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 620px; margin: 0 auto; z-index: 250;
  background: var(--ink); color: #d8cdba; border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 16px 20px; display: flex; gap: 18px; align-items: center; font-size: 13px; box-shadow: var(--shadow); }
.cookie-bar a { color: var(--rose); border-bottom: 1px solid rgba(168,57,45,0.5); }
.cookie-bar .cookie-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar .btn { border-color: rgba(246,239,226,0.3); color: #ece3d2; }
.cookie-bar .btn:hover { background: rgba(246,239,226,0.1); }
.cookie-bar .btn-gold { background: var(--gold); border-color: var(--gold); color: #f6efe2; }
@media (max-width: 560px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar .cookie-actions { margin-left: 0; } }

.cache-progress { margin-top: 4px; }
.cache-progress-track { height: 10px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; border: 1px solid var(--border); }
.cache-progress-bar { height: 100%; width: 0; background: var(--gold); transition: width .35s ease; }
.cache-progress-label { margin-top: 8px; font-size: 12px; color: var(--muted); font-family: var(--font-mono, ui-monospace, monospace); }

/* ------------------------------------------------------------------ utility */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .gap-12 { gap: 12px; } .items-center { align-items: center; }
.hidden { display: none !important; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { height: 360px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--border); }
  .feat-grid, .lot-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(2) { border-right: none; }
  .subscribe-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; flex-direction: row; align-items: center; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--rule); }
  .admin-side .brand { margin-bottom: 0; }
  .admin-nav { flex-direction: row; }
  .admin-side .side-foot { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.menu-open .nav-links { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .topbar .tagline { display: none; }
  .search-bar { grid-template-columns: 1fr; }
  .kpi-row, .feat-grid, .lot-grid, .plan-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .kpi, .feat { border-right: none; }
  .plan { border-right: none; border-bottom: 1px solid var(--border); }
  .wrap { padding: 0 20px; }
  .admin-main { padding: 22px 18px 50px; }
  .hero::before { display: none; }
}
