/* fxderal.usa — shared styles for storefront, party pages, admin, success and
   order pages. Near-black + lime, heavy italic display type (Saira).
   The storefront is always dark (html[data-lock-theme]); the admin keeps a
   light-mode toggle ([data-theme="light"]). */

:root {
  --bg: #08090b;
  --bg-2: #0c0e11;
  --surface: #111418;
  --surface-2: #161a1f;
  --surface-3: #1e2329;
  --ink: #f3f5f0;
  --ink-2: #c4c9c1;
  --muted: #868d87;
  --line: #20252b;
  --line-2: #2d333a;
  --accent: #9ef01a;
  --accent-soft: color-mix(in srgb, var(--accent) 15%, #0e1110);
  --accent-text: color-mix(in srgb, var(--accent) 88%, white);
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --on-accent: #0a0c09;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .13);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .15);
  --warn-ink: #fbbf24;
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, .14);
  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 34px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .9);
  --on-ink: #0a0b0d;            /* text that sits on an --ink background */
  --on-ink-line: rgba(0, 0, 0, .25);
  --glass: rgba(8, 9, 11, .82);
  --hero-bg: #0a0c0e;           /* panels that stay dark in both themes */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  --arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c4c9c1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  --font-display: "Saira", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Saira", "Inter", system-ui, sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f5f1;
  --bg-2: #ecede8;
  --surface: #ffffff;
  --surface-2: #f5f6f2;
  --surface-3: #e9ebe5;
  --ink: #101210;
  --ink-2: #363b36;
  --muted: #6b726c;
  --line: #e1e4dd;
  --line-2: #cfd3ca;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, white);
  --accent-text: color-mix(in srgb, var(--accent) 45%, #1a2e05);
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --warn-ink: #92400e;
  --danger: #e11d48;
  --danger-soft: #ffe4e6;
  --shadow: 0 1px 2px rgba(16, 18, 16, .05), 0 12px 30px -16px rgba(16, 18, 16, .2);
  --shadow-lg: 0 24px 60px -20px rgba(16, 18, 16, .35);
  --on-ink: #ffffff;
  --on-ink-line: rgba(255, 255, 255, .3);
  --glass: rgba(244, 245, 241, .88);
  --arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, white); transform: translateY(-1px); box-shadow: 0 10px 26px -12px var(--accent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover { background: var(--accent); }
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); box-shadow: none; transform: none; }
.btn-ghost:disabled:hover { background: transparent; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: none; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-pill { border-radius: 999px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--muted); background: var(--surface-2); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.icon-btn svg { width: 17px; height: 17px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: var(--arrow); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.select option { background: var(--surface); color: var(--ink); }
.input-money { position: relative; }
.input-money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-money .input { padding-left: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
code { font-size: .92em; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }

.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); border: none; padding: 0; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.35; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge-ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.badge-accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.badge-danger, .badge-refund { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* status pills in admin tables (mockup: rounded rectangles) */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-accent { background: var(--accent-soft); color: var(--accent-text); }
.pill-muted { background: var(--surface-2); color: var(--muted); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: none; background: transparent; font-size: 17px; font-weight: 500; transition: background .12s; }
.stepper button:hover:not(:disabled) { background: var(--surface-3); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output, .stepper input { width: 38px; text-align: center; font-weight: 600; font-size: 14px; border: none; background: transparent; padding: 0; }
.stepper input { outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.price-was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .86em; margin-left: 8px; font-family: var(--font-body); }
.price-sale { color: var(--accent-text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; pointer-events: auto; text-align: center; }
.toast.error { background: var(--danger); border-color: transparent; color: #fff; }
.toast.ok { background: var(--accent); border-color: transparent; color: var(--on-accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- logo ---------- */
/* Slanted three-bar mark + heavy italic wordmark; the part after the first
   dot ("usa") is lime. Built by brand() in shop.js / events.js / admin.js. */
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--font-logo); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1;
  letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.logo-mark { width: 40px; height: 28px; flex-shrink: 0; color: var(--accent); filter: drop-shadow(0 0 10px var(--accent-glow)); }
.logo-word em { font-style: italic; color: var(--accent); }
.logo-dot { display: none; }

/* ---------- buttons (storefront voice) ---------- */
.btn { font-weight: 700; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent); }
.btn-outline:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); border-color: var(--ink); color: var(--ink); box-shadow: none; }
.btn .arr { width: 17px; height: 17px; }

/* ---------- storefront: header ---------- */
.announce { background: var(--accent); color: var(--on-accent); text-align: center; font-size: 12.5px; font-weight: 700; padding: 7px 16px; letter-spacing: .03em; }
.header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 30px; }
.main-nav { display: flex; gap: 6px; align-items: stretch; align-self: stretch; margin-left: 18px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .15s; }
.main-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.header .search { flex: 1 1 230px; max-width: 270px; min-width: 150px; margin-left: auto; position: relative; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.search .input { padding: 11px 16px 11px 46px; border-radius: 999px; background: var(--bg-2); border-color: var(--line-2); font-size: 14px; }
.header-icons { display: flex; align-items: center; gap: 10px; }
.icon-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; transition: background .15s, border-color .15s; }
.icon-link:hover { background: var(--surface-2); border-color: var(--muted); }
.icon-link svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.cart-count.is-zero { display: none; }
.group-btn { padding: 11px 18px; border-radius: 10px; }
.group-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }
@media (max-width: 1320px) { .main-nav { margin-left: 4px; } .main-nav a { padding: 0 10px; font-size: 14.5px; } .header-inner { gap: 20px; } }
@media (max-width: 1120px) {
  .main-nav a span.lbl-long { display: none; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .main-nav.open a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .main-nav.open a.active::after { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: 132px; }
  .header-inner { flex-wrap: wrap; height: auto; gap: 10px 10px; padding: 10px 0; }
  .header .logo { font-size: 23px; }
  .header .logo-mark { width: 32px; height: 22px; }
  .header-icons { margin-left: auto; gap: 8px; }
  .header .search { order: 3; flex: 1 0 100%; margin: 0; }
  .group-btn .lbl { display: none; }
  .group-btn { padding: 10px 12px; }
  .icon-link { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .header .logo { font-size: 20px; } .header .logo-mark { display: none; } }

/* ---------- storefront: page texture ---------- */
.store-page { background:
    radial-gradient(900px 500px at 70% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--bg); }
.store-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .05; }

/* ---------- storefront: top (hero + community) ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 24px; padding-top: 22px; }
.home-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 26px; align-items: center; min-height: 380px; }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 0 8px; min-width: 0; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 16px 5px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 0 24px -6px var(--accent-glow); }
.eyebrow-pill .eb-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--on-accent); display: grid; place-items: center; }
.eyebrow-pill .eb-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2.5rem, 5.3vw, 5.6rem); line-height: .9; letter-spacing: -.012em; color: #fff; margin: 4px 0 0; text-shadow: 0 6px 30px rgba(0, 0, 0, .55); }
.hero h1 em { display: block; font-style: italic; color: var(--accent); text-shadow: 0 0 34px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-sub { margin: 2px 0 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-ctas .btn { padding: 15px 28px; font-size: 16.5px; border-radius: 12px; }
.hero-ctas .btn svg { width: 19px; height: 19px; }

/* Right side: the featured product in a lit showcase frame, with the lime
   slashes behind it. Works for white-background product shots and photos. */
.hero-art { position: relative; z-index: 1; align-self: stretch; min-height: 340px; }
.hero-slash { position: absolute; top: 2%; left: 4%; width: 22%; height: 92%; background: var(--accent); transform: skewX(-22deg); box-shadow: 0 0 70px -6px var(--accent-glow); border-radius: 3px; }
.hero-slash::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0, 0, 0, .13) 6px 7px); }
.hero-slash.thin { left: auto; right: 3%; width: 3.5%; top: -2%; height: 50%; opacity: .85; }
.hero-frame { position: absolute; inset: 7% 5% 7% 14%; border-radius: 18px; overflow: hidden; background: var(--grain), radial-gradient(80% 80% at 50% 40%, #22272d, #0e1013 80%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 60px -30px var(--accent-glow); transform: rotate(-1.5deg); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform 1.2s ease; transform: scale(1.04); }
.hero-slide.active { opacity: 1; transform: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); pointer-events: none; }
.hero-controls { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.hero-arrow { width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .15s, border-color .15s; flex-shrink: 0; }
.hero-arrow:hover { background: rgba(0, 0, 0, .8); border-color: var(--accent); }
.hero-arrow svg { width: 15px; height: 15px; }
.hero-count { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .82); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: 1; max-width: max-content; padding: 7px 13px 7px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .62); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 500; margin-right: auto; }
.hero-tag:hover { border-color: var(--accent); }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-tag .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tag b { font-weight: 800; color: var(--accent); flex-shrink: 0; }
.hero.no-art { grid-template-columns: 1fr; }

.stats { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); border-radius: var(--radius-lg); backdrop-filter: blur(6px); position: relative; z-index: 3; }
.stat { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 20px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat svg { width: 44px; height: 44px; color: var(--accent); flex-shrink: 0; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.stat span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.community { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px 26px 0; min-height: 100%; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.community h2, .panel-title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.community h2 { font-size: 23px; }
.community p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.community .btn { padding: 12px 22px; font-size: 16px; border-radius: 10px; }
.globe { width: 118%; margin: auto -26px 0 auto; transform: translate(10%, 12%); aspect-ratio: 1; color: #59606a; pointer-events: none; flex-shrink: 0; max-width: 420px; }
.globe .glow { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.community .comm-next { width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; }
.community .comm-next img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.community .comm-next b { display: block; font-size: 14px; }
.community .comm-next span { display: block; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .home-top { grid-template-columns: 1fr; }
  .community { min-height: 0; padding-bottom: 26px; }
  .globe { position: absolute; right: -60px; bottom: -80px; width: 280px; margin: 0; transform: none; opacity: .55; z-index: -1; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hero { grid-template-columns: 1fr .8fr; gap: 20px; }
}
@media (max-width: 760px) {
  .home-top { padding-top: 14px; }
  .hero { grid-template-columns: 1fr; gap: 6px; min-height: 0; }
  .hero-art { order: -1; min-height: 0; aspect-ratio: 1.15; margin: 0 4px; }
  .hero-frame { inset: 4% 3% 6% 8%; }
  .hero-copy { padding-top: 0; }
  .hero-sub { font-size: 16px; }
  .hero-ctas .btn { padding: 13px 20px; font-size: 15px; flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr; }
  .stat { justify-content: flex-start; padding: 14px 18px; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line-2); }
  .stat svg { width: 34px; height: 34px; }
  .stat b { font-size: 25px; }
}

/* ---------- storefront: section heads ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 48px 0 16px; flex-wrap: wrap; }
.section-head h2, .panel-title { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 25px; letter-spacing: .01em; }
.section-head h2::before, .panel-title.slash::before { content: ""; width: 14px; height: 24px; background: var(--accent); transform: skewX(-22deg); border-radius: 2px; box-shadow: 0 0 12px var(--accent-glow); flex-shrink: 0; }
.view-all { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: none; padding: 0; text-decoration: none; }
.view-all:hover { color: var(--accent); }
.view-all svg { width: 16px; height: 16px; }

/* ---------- storefront: featured drops + announcements ---------- */
.home-row { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 24px; margin-top: 28px; align-items: start; }
.home-row.solo { grid-template-columns: 1fr; }
.feature-panel, .ann-panel { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.feature-panel .section-head, .ann-panel .section-head { margin: 2px 2px 16px; }
.feature-panel .section-head h2 { font-size: 23px; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ann-panel .panel-title { font-size: 20px; }
.ann-panel .panel-title svg { width: 30px; height: 30px; color: var(--accent); }
.ann-list { display: flex; flex-direction: column; }
.ann { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; padding: 12px 2px; align-items: start; text-decoration: none; color: inherit; border-radius: 10px; }
.ann + .ann { border-top: 1px solid var(--line); }
a.ann:hover .ann-title { color: var(--accent); }
.ann-ico { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, #10140c), #0b0d0b 75%); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent); overflow: hidden; }
.ann-ico svg { width: 30px; height: 30px; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.ann-ico img { width: 100%; height: 100%; object-fit: cover; }
.ann-title { font-weight: 700; font-size: 15px; line-height: 1.3; transition: color .15s; }
.ann-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 3px; }
.ann-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.ann-pin { color: var(--accent); }
@media (max-width: 1100px) { .home-row { grid-template-columns: 1fr; } .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-panel, .ann-panel { padding: 14px 12px; } .featured-grid { gap: 10px; } }

/* ---------- storefront: category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-tile { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; text-align: left; color: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .86)); }
.cat-tile::before { content: ""; position: absolute; z-index: 1; left: 15px; bottom: 56px; width: 26px; height: 4px; background: var(--accent); transform: skewX(-24deg); transition: width .25s; }
.cat-tile .lbl { position: absolute; left: 14px; bottom: 12px; right: 12px; z-index: 1; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 17px; line-height: 1.15; }
.cat-tile .lbl small { display: block; font-family: var(--font-body); font-style: normal; text-transform: none; font-size: 12px; font-weight: 500; opacity: .75; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile:hover::before { width: 46px; }
.cat-tile:hover { border-color: var(--line-2); }
.cat-tile.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px -8px var(--accent-glow); }
.cat-tile .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
@media (max-width: 640px) {
  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; gap: 10px; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 42%; scroll-snap-align: start; }
}

/* ---------- storefront: shop toolbar + grid ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 9px 18px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.tab:hover { border-color: var(--muted); color: var(--ink); }
.tab.active { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 700; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px 7px 13px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.filter-pill span { font-size: 15px; line-height: 1; opacity: .8; }
.toolbar .spacer { flex: 1; }
.toolbar .select, .section-head .select { width: auto; padding: 9px 36px 9px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; background-color: var(--surface); }
.results-line { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.product { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.product:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
.product-hit { position: absolute; inset: 0; z-index: 1; background: none; border: 0; padding: 0; border-radius: inherit; }
.product-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.product-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(80% 80% at 50% 40%, #23282e, #14171b 75%); overflow: hidden; margin: 8px 8px 0; border-radius: 9px; }
.product-media img, .product-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-media img { transform: scale(1.05); }
.product-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--line-2); }
.product-media .placeholder svg { width: 40px; height: 40px; }
.product-badges { position: absolute; top: 9px; left: 9px; right: 48px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.product-badges .badge { background: rgba(8, 9, 11, .74); color: #fff; border-color: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); border-radius: 6px; }
.product-badges .badge-accent { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.fav-btn { position: absolute; top: 15px; right: 15px; z-index: 2; width: 32px; height: 32px; border-radius: 999px; border: none; background: rgba(8, 9, 11, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: transform .15s, background .15s, color .15s; }
.fav-btn:hover { transform: scale(1.08); background: rgba(8, 9, 11, .8); }
.fav-btn svg { width: 16px; height: 16px; }
.fav-btn.on { color: var(--accent); }
.fav-btn.on svg { fill: currentColor; }
.product.sold .product-media img { filter: grayscale(1) brightness(.6); }
.sold-stamp { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: .1em; color: #fff; text-transform: uppercase; }
.sold-stamp span { background: rgba(8, 9, 11, .85); padding: 6px 18px; border-radius: 6px; transform: skewX(-8deg); border: 1px solid rgba(255, 255, 255, .15); }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.product-name { font-weight: 600; font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.product-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.stock-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 800; line-height: 1.2; background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.stock-chip.low { background: var(--warn); color: #140c00; }
.stock-chip.out { background: var(--surface-3); color: var(--muted); }
.stock-chip.soon { background: var(--ink); color: var(--on-ink); font-variant-numeric: tabular-nums; }
.product-price { font-size: 18px; text-align: right; line-height: 1.1; }
.product .price { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.product .price.price-sale, .modal-info .price.price-sale { color: var(--accent); }
.modal-info .price { color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.product .price-was { display: block; margin: 0; font-size: 12px; }
.product.upcoming .product-media img { opacity: .85; }
.media-badge { position: absolute; right: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; background: rgba(8, 9, 11, .8); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; backdrop-filter: blur(4px); }
.media-badge svg { width: 9px; height: 9px; fill: currentColor; }
@media (max-width: 760px) {
  .product-media { margin: 6px 6px 0; }
  .product-body { padding: 10px 10px 12px; }
  .product-name { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .product-price { font-size: 16px; }
  .stock-chip { font-size: 10.5px; padding: 3px 6px; }
  .fav-btn { top: 11px; right: 11px; }
}

.empty { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); font-family: var(--font-display); font-style: italic; text-transform: uppercase; }

/* ---------- storefront: drop banner ---------- */
.drop-banner { margin-top: 28px; }
.drop-banner-inner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 55%); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); flex-wrap: wrap; }
.drop-pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.drop-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.drop-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 800; }
.drop-text strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-clock { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent); }
@media (max-width: 560px) { .drop-clock { margin-left: 0; flex-basis: 100%; } }
.stock-line.drop { color: var(--ink); }
.stock-line.drop span { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- storefront: reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.review-stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.review-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.review-meta { font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* ---------- storefront: newsletter ---------- */
.newsletter { position: relative; overflow: hidden; isolation: isolate; margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; padding: 28px 30px; background: linear-gradient(100deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--radius-lg); flex-wrap: wrap; }
.newsletter::before { content: ""; position: absolute; z-index: -1; right: 34%; top: -30%; width: 90px; height: 170%; background: var(--accent); opacity: .9; transform: skewX(-24deg); box-shadow: 0 0 60px -8px var(--accent-glow); }
.newsletter::after { content: ""; position: absolute; z-index: -1; right: calc(34% - 40px); top: -30%; width: 16px; height: 170%; background: var(--accent); opacity: .6; transform: skewX(-24deg); }
.newsletter-bg { position: absolute; z-index: -2; inset: 0 auto 0 0; width: 40%; background-size: cover; background-position: center; opacity: .18; -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent); mask-image: linear-gradient(90deg, #000 10%, transparent); pointer-events: none; }
.newsletter-copy { position: relative; }
.newsletter h3 { font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1; }
.newsletter h3 em { color: var(--accent); font-style: italic; }
.newsletter p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.news-form { position: relative; display: flex; gap: 8px; flex: 0 1 440px; padding: 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.news-form .input { border: none; background: transparent; padding: 10px 12px; box-shadow: none; }
.news-form .btn { border-radius: 8px; padding-inline: 24px; }
@media (max-width: 760px) {
  .newsletter { padding: 22px 18px; }
  .newsletter::before, .newsletter::after { right: -30px; opacity: .25; }
  .news-form { flex-basis: 100%; }
}

/* ---------- storefront: footer ---------- */
.footer { margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px 40px; padding: 40px 0 34px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-brand .logo { font-size: 26px; }
.footer-brand p { margin: 0; color: var(--ink-2); max-width: 40ch; white-space: pre-wrap; }
.footer-col h4 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; color: var(--ink); margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col a, .footer-col button { text-decoration: none; font-weight: 500; color: var(--ink-2); background: none; border: none; padding: 0; font-size: 14px; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-policy { font-size: 13px; color: var(--muted); }
.footer-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #060708; }
.footer-band-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.band-stripes { position: absolute; left: 0; top: 0; bottom: 0; width: min(22%, 300px); pointer-events: none;
  background: repeating-linear-gradient(115deg, var(--accent) 0 26px, transparent 26px 40px, color-mix(in srgb, var(--accent) 70%, black) 40px 48px, transparent 48px 74px);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); opacity: .95; }
.band-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent)); }
.band-line.r { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
.band-text { font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .38em; font-size: 19px; color: #fff; white-space: nowrap; }
.band-text .sep { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 .9em 3px .5em; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }
.band-text em { color: var(--accent); font-style: italic; }
.socials { display: flex; gap: 6px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); transition: color .15s, background .15s; }
.socials a:hover { color: var(--accent); background: var(--surface-2); }
.socials svg { width: 22px; height: 22px; }
.footer-band .socials { position: relative; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding: 14px 0 22px; font-size: 12.5px; padding-right: 72px; }
.theme-link { background: none; border: none; padding: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.theme-link:hover { color: var(--ink); }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .footer-band-inner { flex-direction: column; gap: 10px; padding: 18px 0; }
  .band-line { display: none; }
  .band-text { letter-spacing: .2em; font-size: 14px; white-space: normal; text-align: center; }
  .band-stripes { width: 90px; opacity: .5; }
}

/* ---------- overlays: modal & drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 100; opacity: 0; transition: opacity .2s; backdrop-filter: blur(3px); }
.overlay.open { opacity: 1; }

.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal-box { position: relative; width: min(980px, 100%); max-height: min(92vh, 900px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; pointer-events: auto; transform: translateY(12px) scale(.98); opacity: 0; transition: transform .22s cubic-bezier(.2,.7,.2,1), opacity .18s; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; border-radius: 999px; }
.gallery { background: var(--surface-2); display: flex; flex-direction: column; min-height: 0; }
.gallery-main { flex: 1; min-height: 320px; position: relative; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: var(--surface); border-top: 1px solid var(--line); }
.gallery-thumbs button { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); flex-shrink: 0; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs video { width: 100%; height: 100%; object-fit: cover; background: #000; pointer-events: none; }
.play-ico { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play-ico span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.play-ico svg { width: 10px; height: 10px; fill: #111; margin-left: 2px; }
/* Capped at the box's own max-height (minus its border) so a long column scrolls
   instead of stretching the grid row and getting clipped by the box. */
.modal-info { padding: 34px 32px 26px; max-height: calc(min(92vh, 900px) - 2px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; position: relative; }
.modal-info h2 { font-size: 26px; line-height: 1.12; padding-right: 36px; }
.modal-info .product-price { font-size: 23px; margin: 0; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-desc { color: var(--ink-2); white-space: pre-wrap; font-size: 14.5px; }
.modal-actions { margin-top: auto; display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.modal-actions .btn { flex: 1; }
.modal-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stock-line { font-size: 13px; font-weight: 600; color: var(--ok); }
.stock-line.low { color: var(--warn-ink); }
.stock-line.out { color: var(--muted); }
.views-line { margin-top: -6px; }
@media (max-width: 800px) {
  .modal { padding: 0; align-items: end; }
  .modal-box { grid-template-columns: 1fr; max-height: 94vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow-y: auto; }
  .gallery-main { min-height: 0; aspect-ratio: 1; flex: none; }
  .modal-info { padding: 22px 20px 28px; max-height: none; overflow: visible; }
}

.offer-toggle { align-self: flex-start; background: none; border: none; padding: 0; font-weight: 600; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.offer-toggle:hover { color: var(--accent-text); }
.offer-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.offer-head { display: flex; flex-direction: column; gap: 2px; }
.offer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.waitlist { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); }

.size-pick { display: flex; flex-direction: column; gap: 8px; }
.size-pick-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { min-width: 46px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 14px; transition: all .12s; }
.size-chip:hover:not(:disabled) { border-color: var(--muted); }
.size-chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.size-chip.out { color: var(--muted); text-decoration: line-through; opacity: .6; }
.size-chip.out.active { background: var(--surface-3); color: var(--muted); border-color: var(--line-2); opacity: 1; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); z-index: 110; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img, .cart-item .thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.cart-item .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-item .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-item .controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item .remove { background: none; border: none; color: var(--muted); font-size: 12.5px; padding: 0; text-decoration: underline; }
.cart-item .remove:hover { color: var(--danger); }
.cart-item .line-price { font-weight: 600; font-family: var(--font-display); text-align: right; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 600; font-size: 17px; font-family: var(--font-display); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals #discountRow, .totals #bundleRow { color: var(--ok); font-weight: 600; }
.drawer-empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.secure-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.secure-note svg { width: 13px; height: 13px; }
.code-box { display: flex; gap: 8px; margin-bottom: 12px; }
.code-box .input { flex: 1; padding: 9px 14px; text-transform: uppercase; }
.code-box .input::placeholder { text-transform: none; }
.code-applied { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); margin-bottom: 12px; }
.code-applied .remove { background: none; border: none; color: var(--ok); font-size: 12.5px; text-decoration: underline; padding: 0; }
.bundle-nudge { font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); margin-bottom: 12px; }

/* ---------- success + order lookup pages ---------- */
.success-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(70% 50% at 50% 0%, var(--accent-soft), transparent 70%); }
.success-card { width: min(520px, 100%); padding: 40px 36px; text-align: center; box-shadow: var(--shadow-lg); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.success-icon svg { width: 30px; height: 30px; }
.success-card h1 { font-size: 28px; margin-bottom: 8px; }
.success-card p { color: var(--muted); }
.order-lines { text-align: left; margin: 22px 0; border-top: 1px solid var(--line); }
.order-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-lines .total { font-weight: 600; font-family: var(--font-display); font-size: 16px; }
.order-card { text-align: center; }
.order-card .stack { text-align: center; }
.order-card h1 { margin-bottom: 4px; }
.track-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); margin: 6px 0 14px; font-size: 16px; }
.review-form { text-align: left; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.star-input { display: flex; gap: 4px; justify-content: center; margin-bottom: 4px; }
.star-input button { background: none; border: none; font-size: 34px; line-height: 1; color: var(--line-2); padding: 2px; transition: color .1s, transform .1s; }
.star-input button.on { color: var(--accent-text); }
.star-input button:hover { transform: scale(1.15); }

/* ---------- chat widget (storefront) ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 54px; height: 54px; border-radius: 50%; border: none; background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 34px -10px var(--accent); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .15s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 23px; height: 23px; }
.chat-fab .ico-x { display: none; }
.chat-fab.open .ico-x { display: block; }
.chat-fab.open .ico-chat { display: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-panel { position: fixed; right: 20px; bottom: 88px; z-index: 150; width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 110px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .18s, transform .2s cubic-bezier(.2,.7,.2,1); }
.chat-panel.open { opacity: 1; transform: none; }
@media (max-width: 560px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } .chat-fab { bottom: 16px; right: 16px; } .chat-fab.open { display: none; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.chat-sub { font-size: 12px; color: var(--muted); }
.chat-start { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.chat-intro { margin: 0; font-size: 14px; color: var(--ink-2); }
.chat-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg-text { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg.me .msg-text { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.msg.them .msg-text { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.msg-imgs img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.msg-time { font-size: 11px; color: var(--muted); padding: 0 4px; }
.chat-pending { display: flex; gap: 6px; padding: 6px 14px 0; flex-wrap: wrap; }
.pend { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.pend img { width: 100%; height: 100%; object-fit: cover; }
.pend button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; line-height: 1; }
.pend .spinner { width: 18px; height: 18px; border-width: 2px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-compose .input { flex: 1; resize: none; padding: 10px 12px; max-height: 120px; line-height: 1.4; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 10px; }
.chat-foot .offer-toggle { font-size: 12px; margin: 0; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent-text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   ADMIN
   ===================================================================== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%); }
.login-card { width: min(400px, 100%); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 24px; }
.login-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.admin-app { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px 18px; display: flex; flex-direction: column; gap: 24px; scrollbar-width: thin; }
.sidebar .logo { font-size: 27px; padding: 6px 10px 0; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.side-nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-nav button:hover { background: var(--surface-2); color: var(--ink); }
.side-nav button.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 26px -14px var(--accent); }
.side-nav .count { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.side-nav button.active .count { background: rgba(255, 255, 255, .22); color: #fff; }
.side-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.side-foot a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.side-foot a:hover { background: var(--surface-2); color: var(--ink); }
.side-foot svg { width: 17px; height: 17px; }
.admin-scrim { display: none; }

.admin-body { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.menu-btn { display: none; }
.topsearch { flex: 0 1 420px; position: relative; }
.topsearch .input { border-radius: var(--radius-sm); background: var(--surface); font-size: 13.5px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 62vh; overflow: auto; z-index: 60; }
.sr-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px; background: none; border: none; text-align: left; font-size: 13px; }
.sr-item:hover, .sr-item.active { background: var(--surface-2); }
.sr-item img, .sr-item .sr-ph { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.sr-item .sr-main { min-width: 0; flex: 1; }
.sr-item .sr-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item .sr-main small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sr-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.user-menu { position: relative; margin-left: auto; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 6px 8px; border-radius: var(--radius-sm); text-align: left; }
.user-btn:hover { background: var(--surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #db2777); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.user-btn .who b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-btn .who small { display: block; font-size: 11.5px; color: var(--muted); }
.user-btn > svg { width: 15px; height: 15px; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-lg); z-index: 70; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; text-decoration: none; background: none; border: none; color: var(--ink); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu .danger { color: var(--danger); }
.menu .danger svg { color: var(--danger); }
.pop-menu { position: fixed; z-index: 120; right: auto; top: 0; }

.admin-main { padding: 26px 28px 80px; width: 100%; max-width: 1440px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; }
.page-sub { color: var(--muted); font-size: 13.5px; margin: 5px 0 0; }
.page-head .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-head .search { width: 260px; }
.page-head .search .input { border-radius: var(--radius-sm); background: var(--surface); }
.range-select { position: relative; display: inline-flex; align-items: center; }
.range-select svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.range-select .select { padding: 9px 36px 9px 36px; background-color: var(--surface); font-size: 13px; font-weight: 500; width: auto; }

@media (max-width: 1000px) {
  .admin-app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 90; transform: translateX(-100%); transition: transform .22s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-lg); }
  .admin-app.nav-open .sidebar { transform: none; }
  .admin-app.nav-open .admin-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, .55); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; gap: 10px; }
  .admin-main { padding: 20px 16px 70px; }
}
@media (max-width: 640px) {
  .user-btn .who, .user-btn > svg { display: none; }
  .page-head .search { width: 100%; }
  .page-head .actions { width: 100%; }
}

.setup { padding: 13px 18px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: var(--warn-soft); border-color: transparent; font-size: 13.5px; }
.setup strong { margin-right: 4px; }
.setup .step { display: inline-flex; align-items: center; gap: 6px; }
.setup .step.ok { color: var(--ok); }
.setup .step.todo { color: var(--warn-ink); }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis, .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis, .kpis.six, .kpis.three { gap: 10px; } }
.kpi { padding: 18px 20px; min-width: 0; }
.kpi-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 14px; }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi .label { font-size: 13px; color: var(--ink-2); }
.kpi .value { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.kpi .delta svg { width: 13px; height: 13px; }
.kpi .delta.up { color: var(--ok); }
.kpi .delta.down { color: var(--danger); }
.kpi .delta.flat { color: var(--muted); }
.kpi .vs { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 520px) { .kpi { padding: 14px; } .kpi-icon { width: 34px; height: 34px; margin-bottom: 10px; } .kpi .value { font-size: 20px; } }

/* dashboard grid */
.dash { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(290px, 1fr); gap: 16px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.panel-card { padding: 18px 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3, .panel-card > h3 { font-size: 15px; }
.panel-card > h3 { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.panel-card > h3 span { font-size: 12.5px; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.link-btn { background: none; border: none; padding: 0; color: var(--accent-text); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini-select { width: auto; padding: 6px 30px 6px 11px; font-size: 12.5px; border-radius: 8px; background-color: var(--surface-2); background-position: right 9px center; }

/* chart */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .area { opacity: .9; }
.chart .line { fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .guide { stroke: var(--line-2); stroke-dasharray: 3 4; opacity: 0; }
.chart .hot { fill: var(--accent-text); stroke: var(--surface); stroke-width: 3; opacity: 0; }
.chart.hover .guide, .chart.hover .hot { opacity: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink); font-size: 12px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .1s; box-shadow: var(--shadow); z-index: 2; }
.chart-tip.show { opacity: 1; }
.chart-tip b { display: block; font-size: 13px; }
.chart-empty { color: var(--muted); font-size: 13.5px; padding: 30px 0; text-align: center; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink); }
.table .clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--surface-2); }
.prod-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb-sm { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; }
.kebab { width: 30px; height: 30px; border-radius: 8px; border: none; background: none; color: var(--muted); display: inline-grid; place-items: center; }
.kebab:hover { background: var(--surface-2); color: var(--ink); }
.kebab svg { width: 17px; height: 17px; }

/* top sellers, quick actions, activity */
.top-list { display: flex; flex-direction: column; gap: 12px; }
.top-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.top-item img, .top-item .thumb-ph { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.top-item .n { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-item .v { text-align: right; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.top-item .s { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa button { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; text-align: left; transition: border-color .15s, background .15s; }
.qa button:hover { border-color: var(--accent); background: var(--accent-soft); }
.qa svg { width: 20px; height: 20px; color: var(--accent-text); flex-shrink: 0; }
.activity { display: flex; flex-direction: column; gap: 14px; }
.act { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.act-ico { width: 34px; height: 34px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-text); }
.act-ico svg { width: 16px; height: 16px; }
.act .t { font-size: 13px; line-height: 1.4; padding-top: 1px; }
.act .w { display: block; font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 2px; }

/* ranked bars (analytics) */
.ranked { display: flex; flex-direction: column; gap: 12px; }
.ranked .r { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 13.5px; }
.ranked .r .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked .r .v { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ranked .r .bar-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ranked .r .bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-text)); }
.stat-rows { display: flex; flex-direction: column; }
.stat-rows .r { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.stat-rows .r:last-child { border-bottom: none; }
.stat-rows .r .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-rows .r .n { color: var(--ink-2); }

/* filter chips (admin lists) */
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: all .12s; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.list-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-toolbar .filter-chips { margin: 0; }
.list-toolbar .search { width: 260px; }
@media (max-width: 640px) { .list-toolbar .search { width: 100%; } }

/* products list */
.rows { display: flex; flex-direction: column; }
.rows-head, .row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px 140px 64px auto; gap: 16px; align-items: center; padding: 12px 18px; }
.rows-head { padding: 12px 18px; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row.hidden-row { opacity: .55; }
.row .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--line-2); }
.row .thumb svg { width: 20px; height: 20px; }
.row .name { font-weight: 600; font-size: 14px; }
.row .meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row .price-cell .price { font-size: 14px; }
.row .stock-cell { display: flex; align-items: center; gap: 8px; }
.row .stock-cell .stepper output { width: 40px; }
.row .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row .row-actions .icon-btn { width: 34px; height: 34px; }
.vis-inline { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sizes-inline { font-size: 12px; color: var(--muted); }
.sizes-inline b { color: var(--ink-2); font-weight: 600; }
.notify-btn { cursor: pointer; border: none; font: inherit; font-size: 11.5px; font-weight: 600; }
.notify-btn:hover { filter: brightness(1.1); }
@media (max-width: 860px) {
  .rows-head { display: none; }
  .row { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "thumb info" "stock stock" "actions actions"; gap: 10px 14px; padding: 14px 16px; }
  .row .thumb { grid-area: thumb; }
  .row .info { grid-area: info; }
  .row .price-cell { display: none; }
  .row .stock-cell { grid-area: stock; }
  .row .vis-cell { display: none; }
  .row .row-actions { grid-area: actions; }
  .row .row-actions .vis-inline { display: inline-flex; margin-right: auto; }
}

/* orders list */
.order-head, .order-sum { display: grid; grid-template-columns: 128px minmax(140px, 1.3fr) minmax(140px, 1.8fr) 96px 104px 108px 22px; gap: 12px; align-items: center; }
.order-head { padding: 13px 18px; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.order { border-bottom: 1px solid var(--line); }
.order:last-child { border-bottom: none; }
.order-sum { width: 100%; padding: 13px 18px; background: none; border: none; text-align: left; font-size: 13px; }
.order-sum:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.order-sum .ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.order-sum .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-sum .who small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-sum .its { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-sum .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.order-sum .date { color: var(--muted); white-space: nowrap; }
.order-sum .chev { color: var(--muted); transition: transform .15s; display: grid; place-items: center; }
.order-sum .chev svg { width: 16px; height: 16px; }
.order.open .order-sum .chev { transform: rotate(90deg); }
.order.open .order-sum { background: var(--surface-2); }
.order-detail { display: none; padding: 4px 18px 18px; background: var(--surface-2); gap: 16px 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.order.open .order-detail { display: grid; }
.order-detail h4 { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 6px; }
.order-detail .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.order-detail .line:last-child { border-bottom: none; }
.order-detail .addr { white-space: pre-line; font-size: 13.5px; color: var(--ink-2); }
.order-detail .extras { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.order-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.order-actions .spacer { flex: 1; }
.text-btn { background: none; border: none; padding: 4px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }
.text-btn.danger { color: var(--danger); }
@media (max-width: 900px) {
  .order-head { display: none; }
  .order-sum { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ref status" "who amt" "its date"; gap: 4px 12px; }
  .order-sum .ref { grid-area: ref; }
  .order-sum .st { grid-area: status; justify-self: end; }
  .order-sum .who { grid-area: who; }
  .order-sum .amt { grid-area: amt; justify-self: end; }
  .order-sum .its { grid-area: its; }
  .order-sum .date { grid-area: date; justify-self: end; }
  .order-sum .chev { display: none; }
  .order-detail { grid-template-columns: 1fr; padding: 4px 16px 16px; }
}

/* customers */
.cust { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cust .avatar { width: 32px; height: 32px; font-size: 12.5px; }
.cust b { display: block; font-weight: 600; }
.cust small { display: block; color: var(--muted); font-size: 11.5px; }
.sub-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.sub-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sub-row:last-child { border-bottom: none; }
.sub-row .e { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-row .d { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sub-row .icon-btn { width: 28px; height: 28px; }

/* slide-over editor */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); z-index: 110; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.panel.open { transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 20px; }
.panel-body { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.panel-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }

.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); font-size: 13.5px; transition: all .15s; cursor: pointer; background: var(--surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.dropzone strong { color: var(--ink); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.image-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.image-tile img { width: 100%; height: 100%; object-fit: cover; }
.image-tile video { width: 100%; height: 100%; object-fit: cover; background: #000; pointer-events: none; }
.image-tile .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.8); color: #fff; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.image-tile .x:hover { background: var(--danger); }
.image-tile .cover { position: absolute; bottom: 6px; left: 6px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.image-tile .kind { position: absolute; bottom: 6px; left: 6px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.8); color: #fff; }
.image-tile.uploading::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.image-tile .spin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.image-tile .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.35); z-index: 1; }
.image-tile .prog i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.image-tile.uploading .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; z-index: 1; }
.image-tile[draggable="true"] { cursor: grab; }
.image-tile.dragging { opacity: .4; }
.image-tile.drop-target { outline: 2px solid var(--accent); outline-offset: 2px; }
.image-tile .mv { position: absolute; top: 6px; left: 6px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; }
.image-tile:hover .mv, .image-tile:focus-within .mv { opacity: 1; }
@media (hover: none) { .image-tile .mv { opacity: 1; } }
.image-tile .mv button { width: 24px; height: 24px; border-radius: 6px; border: none; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; }
.image-tile .mv button:disabled { opacity: .3; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.variant-rows { display: flex; flex-direction: column; gap: 8px; }
.variant-row { display: grid; grid-template-columns: 1fr 110px 38px; gap: 8px; align-items: center; }
.variant-add { align-self: flex-start; }

/* offers */
.offer-row { padding: 16px 18px; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; margin-bottom: 10px; }
.offer-row .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.offer-row .amounts { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.offer-row .amounts .offer-amt { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.offer-row .amounts .asking { font-size: 13px; color: var(--muted); }
.offer-row .buyer { font-size: 13.5px; margin-top: 2px; }
.offer-row .buyer a { color: var(--accent-text); }
.offer-row .msg { font-size: 13px; color: var(--ink-2); font-style: italic; margin-top: 6px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; max-width: none; display: block; }
.offer-row .when { font-size: 12px; color: var(--muted); margin-top: 6px; }
.offer-row .side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.offer-row .side .actions { display: flex; gap: 6px; }
.offer-row .link-box { font-size: 12px; color: var(--muted); max-width: 240px; word-break: break-all; }
.offer-row.done { opacity: .72; }
@media (max-width: 600px) { .offer-row { grid-template-columns: 56px 1fr; } .offer-row .side { grid-column: 1 / -1; align-items: flex-start; } }

/* codes & bundles */
.code-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.code-row:last-child { border-bottom: none; }
.code-row .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.code-row .desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.code-row .uses { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.code-row.off { opacity: .55; }
@media (max-width: 600px) { .code-row { grid-template-columns: 1fr auto; } .code-row .uses { grid-column: 1 / -1; } }
.code-form, .bundle-form { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.code-form .field { min-width: 0; }
.kind-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.kind-toggle button { border: none; background: var(--surface-2); padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--muted); }
.kind-toggle button.active { background: var(--accent); color: var(--on-accent); }
.copy-btn { font-size: 12px; }
.sub-head { font-size: 16px; margin: 0 0 10px; }

/* reviews (admin) */
.review-row { padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-bottom: 10px; }
.review-row .review-stars { font-size: 14px; }
.review-row .who { font-weight: 600; margin-top: 4px; }
.review-row .what { font-size: 12.5px; color: var(--muted); }
.review-row .side { display: flex; gap: 6px; align-items: flex-start; }
.review-row.hidden-review { opacity: .55; }

/* messages */
.msgs-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 60vh; }
.conv-list { display: flex; flex-direction: column; overflow-y: auto; max-height: 70vh; }
.conv { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border: none; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; background: none; border-left: 3px solid transparent; color: inherit; font: inherit; }
.conv:last-child { border-bottom: none; }
.conv:hover { background: var(--surface-2); }
.conv.active { background: var(--surface-2); border-left-color: var(--accent); }
.conv .who { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.conv .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.conv .ctx { font-size: 12px; color: var(--accent-text); grid-column: 1 / -1; }
.conv .prev { font-size: 13px; color: var(--muted); grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .t { font-size: 11px; color: var(--muted); white-space: nowrap; }
.conv.closed { opacity: .6; }
.thread-pane { display: flex; flex-direction: column; min-height: 60vh; max-height: 75vh; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thread-head .who { font-weight: 600; }
.thread-head .meta { font-size: 12.5px; color: var(--muted); }
.thread-head .meta a { color: var(--accent-text); }
.thread-head .actions { display: flex; gap: 6px; }
.thread-pane .chat-messages { padding: 16px 18px 8px; }
.thread-empty { flex: 1; display: grid; place-items: center; color: var(--muted); padding: 40px; text-align: center; }
@media (max-width: 860px) {
  .msgs-layout { grid-template-columns: 1fr; }
  .msgs-layout.viewing .conv-list-card { display: none; }
  .msgs-layout:not(.viewing) .thread-card { display: none; }
  .thread-pane { max-height: none; }
}
.back-btn { display: none; }
@media (max-width: 860px) { .back-btn { display: inline-flex; } }

/* settings, tax */
.settings-form { max-width: 680px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.settings-form h3 { font-size: 15px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-form h3:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px var(--surface); transition: transform .12s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--ink); }
.swatch-custom { width: 32px; height: 32px; border-radius: 50%; border: 2px dashed var(--line-2); padding: 0; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; position: relative; overflow: hidden; }
.swatch-custom input { position: absolute; inset: -10px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.accent-preview { display: inline-flex; gap: 8px; align-items: center; margin-left: 8px; }
.email-log { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 260px; overflow-y: auto; }
.email-row { display: grid; grid-template-columns: 18px minmax(120px, 1fr) 2fr auto; gap: 4px 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; }
.email-row:last-child { border-bottom: none; }
.email-status { font-weight: 700; color: var(--ok); }
.email-row.failed .email-status { color: var(--danger); }
.email-to { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-subj { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-when { color: var(--muted); white-space: nowrap; }
.email-err { grid-column: 2 / -1; color: var(--danger); }
@media (max-width: 600px) { .email-row { grid-template-columns: 18px 1fr auto; } .email-subj { grid-column: 2 / -1; } }

/* =====================================================================
   EVENTS (th0se2lit.nights) + TICKETS
   ===================================================================== */
.party-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: #fff; border-bottom: 1px solid #1e1e28; }
.party-hero-bg { position: absolute; inset: 0 0 0 36%; z-index: -2; background: radial-gradient(90% 90% at 70% 40%, #3b1d6e, var(--hero-bg) 70%) center / cover no-repeat; }
.party-hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--hero-bg) 34%, rgba(10, 10, 15, .78) 50%, rgba(10, 10, 15, .18) 74%, rgba(10, 10, 15, .4)),
    linear-gradient(0deg, rgba(10, 10, 15, .6), rgba(10, 10, 15, 0) 40%); }
.party-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 360px; padding: 54px 0; }
.party-copy { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.party-title { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: #fff; overflow-wrap: anywhere; }
.party-title em { font-style: normal; color: color-mix(in srgb, var(--accent) 72%, white); }
.party-tagline { margin: 4px 0 0; font-size: 18px; font-weight: 500; color: #fff; }
.party-blurb { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .74); max-width: 54ch; }
.party-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.party-follow { color: #fff; border-color: rgba(255, 255, 255, .34); }
.party-follow:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .6); }
.party-words { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.party-words i { width: 42px; height: 2px; border-radius: 2px; background: var(--accent); margin-top: 8px; }
@media (max-width: 820px) {
  .party-hero-bg { inset: 0; opacity: .55; }
  .party-hero-shade { background: linear-gradient(0deg, var(--hero-bg) 20%, rgba(10, 10, 15, .55)); }
  .party-hero-inner { min-height: 0; padding: 40px 0 34px; }
  .party-words { display: none; }
  .party-tagline { font-size: 16px; }
}

.my-tickets { margin-top: 18px; }
.my-tickets-inner { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); overflow-x: auto; scrollbar-width: none; }
.my-tickets-inner::-webkit-scrollbar { display: none; }
.mt-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.mt-label svg { width: 18px; height: 18px; }
.mt-list { display: flex; gap: 8px; }
.mt-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; font-size: 13px; transition: border-color .15s; }
.mt-chip:hover { border-color: var(--accent); }
.mt-chip b { font-weight: 600; }
.mt-chip small { color: var(--muted); font-size: 12px; }
.mt-chip svg { width: 14px; height: 14px; color: var(--accent-text); }

.party-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.event-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.event-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.event-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.event-card:hover .event-media img { transform: scale(1.04); }
.event-ph { width: 100%; height: 100%; min-height: 160px; background: radial-gradient(120% 90% at 70% 20%, #3b1d6e, var(--hero-bg) 70%); }
.date-badge { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: center; padding: 6px 10px 5px; border-radius: 10px; background: rgba(10, 10, 15, .78); border: 1px solid rgba(255, 255, 255, .2); color: #fff; line-height: 1.05; backdrop-filter: blur(6px); }
.date-badge small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.date-badge b { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.age-badge { position: absolute; top: 12px; right: 12px; background: rgba(10, 10, 15, .72); color: #fff; border-color: rgba(255, 255, 255, .16); }
.event-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.event-body h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.event-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.event-line svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--accent-text); }
.event-line b { font-weight: 500; }
.event-line small { display: block; font-size: 12px; color: var(--muted); }
.event-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.event-price { position: relative; padding-top: 9px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.event-price::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 2px; border-radius: 2px; background: var(--accent); }
.event-cta { border-color: var(--accent); }
.event-cta svg { width: 14px; height: 14px; }
.event-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.event-card.is-past { cursor: default; opacity: .7; }
.event-card.is-past:hover { transform: none; box-shadow: none; border-color: var(--line); }
#past .section-head { margin-top: 36px; }

.party-side { display: flex; flex-direction: column; gap: 16px; margin-top: 44px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card h3 { font-size: 17px; }
.side-card p { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.side-card .socials { margin-left: 0; }
.loop-card { position: relative; overflow: hidden; padding: 0; background: var(--hero-bg); border-color: #1e1e28; }
.loop-bg { position: absolute; inset: 0; background: radial-gradient(90% 90% at 70% 20%, #3b1d6e, var(--hero-bg) 70%) center / cover no-repeat; opacity: .42; filter: grayscale(.4); }
.loop-inner { position: relative; padding: 26px 20px 20px; background: linear-gradient(180deg, rgba(10, 10, 15, .2), rgba(10, 10, 15, .88)); color: #fff; }
.loop-card h3 { font-size: 21px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.loop-card p { color: rgba(255, 255, 255, .84); }
.loop-card .news-form { flex: none; }
.loop-card .news-form .input { min-width: 0; background: rgba(0, 0, 0, .45); color: #fff; border-color: rgba(255, 255, 255, .26); }
.loop-card .news-form .btn { padding-inline: 18px; }
@media (max-width: 1080px) {
  .party-main { grid-template-columns: minmax(0, 1fr); }
  .party-side { position: static; margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* event modal: ticket picker */
.ev-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* The whole flyer, never cropped, over a blurred copy of itself. */
.ev-media { position: relative; min-height: 320px; background: #000; overflow: hidden; }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ev-media .ev-media-bg { object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.2); transform: scale(1.2); }
.ev-media .event-ph { position: absolute; inset: 0; }
.ev-when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); padding-right: 40px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta svg { width: 16px; height: 16px; color: var(--accent-text); }
.ev-lock { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13px; color: var(--ink-2); }
.ev-lock svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--accent-text); }
.ev-form, #evBuyer { display: flex; flex-direction: column; gap: 12px; }
.ev-human:empty { display: none; }
.ev-form .code-box, .ev-form .code-applied, .ev-form .totals { margin: 0; }
.tier-list { display: flex; flex-direction: column; gap: 8px; }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.tier.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tier.off { opacity: .55; }
.tier-name { font-weight: 600; font-size: 14.5px; }
.tier-desc { font-size: 12.5px; color: var(--muted); }
.tier-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tier-note.low { color: var(--warn-ink); }
.tier-price { font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap; }
.tier .stepper button { width: 32px; height: 32px; }
.tier .stepper output { width: 28px; }
.tier-off-pill { color: var(--muted); padding: 0 12px; }
.tier-empty { padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; text-align: center; }
/* .ev-box sits after the shared modal rules, so its phone layout is restated here. */
@media (max-width: 800px) {
  .ev-box { grid-template-columns: minmax(0, 1fr); }
  .ev-media { min-height: 0; height: min(56vh, 470px); }
}
@media (max-width: 400px) { .tier { grid-template-columns: minmax(0, 1fr) auto; } .tier .stepper, .tier-off-pill { grid-column: 1 / -1; justify-self: end; } }

/* ticket page */
.tk-back { margin-left: auto; }
.tk-back svg { width: 14px; height: 14px; }
.container.tk-wrap { width: min(640px, 100% - 32px); padding: 26px 0 70px; display: flex; flex-direction: column; gap: 14px; }
.tk-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 24px; text-align: center; }
.tk-state h1 { font-size: 24px; }
.tk-state p { margin: 0; }
.tk-event { overflow: hidden; }
.tk-event-media { position: relative; aspect-ratio: 16 / 8; background: var(--surface-2); }
.tk-event-media img, .tk-event-media .event-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk-event-info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.tk-eyebrow { color: var(--accent-text); letter-spacing: .16em; font-size: 11.5px; }
.tk-event-info h1 { font-size: 25px; }
.tk-line { font-size: 14px; color: var(--ink-2); }
.tk-address { padding: 18px 20px; }
.tk-address.locked { text-align: center; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tk-address.open { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.tk-addr-label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tk-addr { font-size: 17px; font-weight: 600; white-space: pre-line; }
.tk-addr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-count { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; margin: 2px 0 6px; }
.tk-tip { font-size: 13px; color: var(--muted); text-align: center; padding: 2px 8px; }
.tk-list { display: flex; flex-direction: column; gap: 12px; }
.tk-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; }
.tk-qr { aspect-ratio: 1; background: #fff; border-radius: 12px; overflow: hidden; }
.tk-qr img { width: 100%; height: 100%; display: block; }
.tk-card-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.tk-tier { font-family: var(--font-display); font-size: 21px; font-weight: 600; }.tk-card.used .tk-qr { opacity: .5; }
.tk-card.void .tk-qr { opacity: .2; }
.tk-foot { text-align: center; margin: 4px 0 0; }
@media (max-width: 540px) {
  .tk-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tk-card-info { align-items: center; }
  .tk-qr { width: min(280px, 100%); }
}

/* ---------- admin: events ---------- */
.ev-admin-list { display: flex; flex-direction: column; gap: 12px; }
.ev-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; cursor: pointer; transition: border-color .15s; }
.ev-row:hover { border-color: var(--line-2); }
.ev-row-media { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-2); position: relative; }
.ev-row-media img, .ev-row-media .event-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.ev-row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-row h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row-stats { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ev-row-stats b { color: var(--ink); font-weight: 600; }
.ev-progress { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 6px; max-width: 360px; }
.ev-progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-text)); }
.ev-row-actions { display: flex; gap: 6px; align-items: center; }
.warn-text { color: var(--warn-ink); }
@media (max-width: 760px) {
  .ev-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .ev-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.kpi .value small { font-size: 15px; font-weight: 500; }
.guest-search { width: 240px; }
.guest-search .input { padding-top: 8px; padding-bottom: 8px; border-radius: var(--radius-sm); }
@media (max-width: 640px) { #eventDetail .card-head { flex-wrap: wrap; } .guest-search { width: 100%; } }
.btn svg { flex-shrink: 0; }

/* single-photo picker (event flyer, party banner) */
.img-pick-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.img-pick-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-pick-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.img-pick-actions .btn-ghost { background: rgba(10, 10, 15, .78); color: #fff; border-color: rgba(255, 255, 255, .28); }
.img-pick-empty { width: 100%; padding: 28px 16px; font: inherit; }

/* ticket type editor */
.tier-edit-list { display: flex; flex-direction: column; gap: 10px; }
.tier-edit { padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.tier-edit.off { opacity: .6; }
.tier-edit-head { display: flex; gap: 6px; align-items: center; }
.tier-edit-head .input { font-weight: 600; }
.tier-edit-head .icon-btn { width: 36px; height: 36px; }
.tier-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tier-edit-grid .field label { font-size: 12px; }
.tier-edit details summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.tier-edit-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tier-edit-foot .check { font-size: 13px; }
.tier-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 480px) { .tier-edit-grid { grid-template-columns: 1fr 1fr; } }

/* door scanner (full screen, always dark) */
.scanner { position: fixed; inset: 0; z-index: 160; background: #050507; color: #fff; display: flex; flex-direction: column; }
.scan-top { display: flex; gap: 10px; align-items: center; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
.scan-top .select { flex: 1; min-width: 0; background-color: #16161d; color: #fff; border-color: #2c2c38; }
.scan-top .icon-btn { background: #16161d; color: #fff; border-color: #2c2c38; }
.scan-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.scan-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 50%; top: 50%; width: min(64vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); border-radius: 18px; }
.scan-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--accent-text); }
.scan-frame i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.scan-frame i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.scan-frame i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.scan-frame i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.scan-msg { position: absolute; left: 16px; right: 16px; bottom: 18px; text-align: center; font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.scan-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; animation: toast-in .18s ease; }
.scan-result.ok { background: rgba(22, 163, 74, .94); }
.scan-result.warn { background: rgba(217, 119, 6, .95); }
.scan-result.bad { background: rgba(225, 29, 72, .95); }
.sr-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 700; background: rgba(255, 255, 255, .2); }
.sr-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.sr-name { font-size: 22px; font-weight: 600; }
.sr-tier { font-size: 15px; opacity: .9; }
.sr-id { margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .28); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.scan-bottom { padding: 12px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: #0b0b10; border-top: 1px solid #1e1e28; max-height: 42vh; overflow-y: auto; }
.scan-count { font-size: 14px; color: #c6c6cf; text-align: center; }
.scan-count b { color: #fff; font-size: 18px; }
.scan-bottom .code-box { margin: 0; }
.scan-bottom .input { background: #16161d; border-color: #2c2c38; color: #fff; }
.scan-found { display: flex; flex-direction: column; gap: 6px; }
.sf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #16161d; }
.sf-row b { display: block; font-size: 14px; }
.sf-row small { display: block; font-size: 12px; color: #9b9ba8; }

/* =====================================================================
   fxderal.usa admin additions: brand, partner chips, split, team, homepage
   ===================================================================== */
.sidebar .logo { font-size: 23px; padding: 6px 8px 0; gap: 8px; }
.sidebar .logo .logo-mark { width: 32px; height: 22px; }
.login-card .logo { font-size: 26px; align-self: flex-start; }
.login-card h1, .page-head h1 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.side-nav button.active { font-weight: 700; }
.side-nav button.active .count { background: rgba(0, 0, 0, .2); color: var(--on-accent); }
.avatar { background: linear-gradient(135deg, var(--accent), #38bdf8); color: var(--on-accent); }

.owner-chip { --c: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.owner-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.owner-chip.shared { --c: var(--muted); }
.owner-chip.gone { --c: var(--line-2); color: var(--muted); }
.owner-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.owner-chips .chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

.split-list { display: flex; flex-direction: column; gap: 14px; }
.split-row { display: flex; flex-direction: column; gap: 6px; }
.split-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.split-top b { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.split-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.split-bar i { display: block; height: 100%; border-radius: inherit; box-shadow: 0 0 12px -2px currentColor; }
.split-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.split-table tfoot td { border-top: 1px solid var(--line-2); border-bottom: none; padding-top: 10px; }

.ann-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.ann-rows, .team-rows { display: flex; flex-direction: column; }
.ann-row, .team-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ann-row:last-child, .team-row:last-child { border-bottom: none; }
.ann-row-main, .team-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ann-row .name, .team-row .name { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ann-row .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden-row { opacity: .6; }
.stat-cfg { display: flex; flex-direction: column; gap: 10px; }
.stat-cfg-row { display: grid; grid-template-columns: 24px minmax(0, 1.3fr) minmax(0, 1fr) 110px minmax(0, 1.4fr); gap: 8px; align-items: center; }
.stat-cfg-row [hidden] { display: block !important; visibility: hidden; }
@media (max-width: 760px) { .stat-cfg-row { grid-template-columns: 1fr 1fr; } .stat-cfg-row > span { display: none; } .stat-cfg-row [hidden] { display: none !important; } }

/* header fit + announcements head (fxderal pass 2) */
.ann-panel .section-head { flex-wrap: nowrap; }
.ann-panel .panel-title { font-size: 18px; gap: 10px; white-space: nowrap; }
.ann-panel .panel-title svg { width: 26px; height: 26px; }
.ann-panel .view-all { font-size: 13px; white-space: nowrap; }
@media (max-width: 1500px) {
  .header .logo { font-size: 27px; }
  .header .logo-mark { width: 36px; height: 25px; }
  .header .search { max-width: 220px; min-width: 120px; flex-basis: 180px; }
  .main-nav a { padding: 0 9px; font-size: 14px; gap: 7px; }
  .main-nav a svg { width: 18px; height: 18px; }
  .group-btn { padding: 10px 14px; font-size: 13.5px; }
}
@media (max-width: 1240px) { .main-nav a span.lbl-long { display: none; } .header .search { min-width: 100px; } }
.store-page .container { width: min(1400px, 100% - 48px); }
@media (max-width: 640px) { .store-page .container { width: calc(100% - 32px); } }
#homeForm, #meForm { max-width: 900px; margin-top: 18px; }
.stat-cfg-row { grid-template-columns: 24px minmax(170px, 1.3fr) minmax(120px, 1fr) 100px minmax(140px, 1.4fr); }
@media (max-width: 1100px) { .stat-cfg-row { grid-template-columns: 1fr 1fr; } .stat-cfg-row > span { display: none; } .stat-cfg-row [hidden] { display: none !important; } }
@media (max-width: 640px) { .header .search { max-width: none; min-width: 0; flex: 1 0 100%; } }
.main-nav.open a span.lbl-long { display: inline; }
