/* ============================================================
   Rayx Services — Pro theme layer
   Loaded AFTER style.css. Everything here is either a token
   override (so the change cascades through the whole site) or a
   new component the base sheet doesn't know about.
   ============================================================ */

/* ---------- 1. Tokens ---------------------------------------------------
   Same onyx family, pushed deeper and cooler, with a two-stop accent so
   gradients read as one system instead of ad-hoc colours per component. */
:root {
  --bg:        #06070a;
  --bg-2:      #090b11;
  --surface:   #0d0f16;
  --surface-2: #12151f;
  --raised:    #171a26;
  --line:      #1b2030;
  --line-2:    #262d40;

  --text:      #edeff5;
  --text-dim:  #b6bcca;
  --muted:     #7c8396;
  --faint:     #565d70;

  --accent:      #6366f1;
  --accent-2:    #8b93ff;
  --accent-3:    #22d3ee;          /* second gradient stop, used sparingly */
  --accent-soft: rgba(99,102,241,.13);
  --accent-line: rgba(99,102,241,.34);
  --accent-grad: linear-gradient(120deg, var(--accent) 0%, #7c6cf5 45%, var(--accent-3) 100%);

  --gold:      #f5c451;

  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Layered elevation: a hairline, an inner top highlight, then the drop. */
  --shadow-sm:
    0 0 0 1px rgba(255,255,255,.03),
    0 1px 0 rgba(255,255,255,.04) inset,
    0 2px 6px rgba(0,0,0,.5);
  --shadow-md:
    0 0 0 1px rgba(255,255,255,.03),
    0 1px 0 rgba(255,255,255,.05) inset,
    0 14px 38px -12px rgba(0,0,0,.75);
  --shadow-lg:
    0 0 0 1px rgba(255,255,255,.04),
    0 1px 0 rgba(255,255,255,.06) inset,
    0 30px 70px -20px rgba(0,0,0,.85);
  --glow: 0 0 0 1px var(--accent-line), 0 12px 40px -8px rgba(99,102,241,.35);

  --ease: cubic-bezier(.22,.75,.25,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .22s;
}

/* The UA rule for [hidden] is `display:none` at zero specificity, so any class
   rule further down that sets display (flex/grid/block) silently un-hides the
   element. Every panel this sheet toggles with `el.hidden` — the nav scrim,
   the blacklist dialog, the chat composer, the checkout discount rows —
   depends on this winning. */
[hidden] { display: none !important; }

body {
  font-size: 14.5px;
  letter-spacing: -0.008em;
  background:
    radial-gradient(1200px 700px at 78% -8%,  rgba(34,211,238,.045), transparent 62%),
    radial-gradient(1000px 620px at 12% 4%,   rgba(99,102,241,.07),  transparent 60%),
    var(--bg);
}

h1 { font-size: 34px; letter-spacing: -0.032em; }
h2 { font-size: 23px; letter-spacing: -0.024em; }

/* ---------- 2. Ambient background ------------------------------------ */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}

/* Slow aurora drifting behind everything. Two blobs, long period, low
   opacity — it should register as depth, not as an animation. */
.bg-glow {
  background: none;
  overflow: hidden;
}
.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.bg-glow::before {
  width: 780px; height: 560px;
  top: -280px; left: 8%;
  background: radial-gradient(circle, rgba(99,102,241,.42), transparent 68%);
  animation: aurora-a 26s var(--ease) infinite alternate;
}
.bg-glow::after {
  width: 620px; height: 460px;
  top: -200px; right: 6%;
  background: radial-gradient(circle, rgba(34,211,238,.24), transparent 68%);
  animation: aurora-b 32s var(--ease) infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(120px,60px,0) scale(1.18); }
}
@keyframes aurora-b {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-140px,40px,0) scale(.92); }
}

/* Film grain — kills the banding that big blurred gradients cause. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Lift the in-flow content above the grain layer (z-index 0), which would
   otherwise paint over it. Deliberately excludes the nav and the fixed
   widgets: they already carry their own stacking (.nav is sticky at z-index
   50, the chat widget and music player are fixed), and restating position
   here would quietly demote them — the nav would lose `sticky` and drop
   underneath the mobile menu's scrim. */
main.container, footer.foot { position: relative; z-index: 1; }

/* ---------- 3. Nav ---------------------------------------------------- */
.nav {
  padding: 13px 32px;
  background: rgba(8,9,13,.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.055);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled {
  padding: 9px 32px;
  background: rgba(8,9,13,.86);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.9);
}
/* Reading-progress hairline along the bottom edge of the nav. */
.nav::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: var(--scroll-progress, 0%);
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(99,102,241,.6);
  transition: width .1s linear;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-grad);
  font-size: 13px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 4px 14px -4px rgba(99,102,241,.8);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 6px 22px -4px rgba(99,102,241,1);
}
.brand-services {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.brand-mini { color: var(--text-dim); font-weight: 600; }

/* Nav links get a sliding underline rather than a background swap. */
.links a { position: relative; }
.links a:not(.cta):not(.ghost)::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 1.5px; border-radius: 2px;
  background: var(--accent-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.links a:not(.cta):not(.ghost):hover::after { transform: scaleX(1); }
.links a.cta {
  background: var(--accent-grad);
  border: 0;
  box-shadow: 0 4px 16px -4px rgba(99,102,241,.7);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.links a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px -6px rgba(99,102,241,.95);
}

/* ---------- 4. Reveal on scroll --------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 5. Buttons ------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--accent-grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: 0 4px 16px -6px rgba(99,102,241,.7);
  transition: background-position .45s var(--ease),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease);
}
.btn:hover {
  background: var(--accent-grad);
  background-size: 160% 100%;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(99,102,241,.9);
}
.btn:active { transform: translateY(0) scale(.985); }
/* Light sweep across the face on hover. */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn.ghost, .btn.danger { background: transparent; box-shadow: none; }
.btn.ghost { border: 1px solid var(--line-2); }
.btn.ghost:hover {
  background: rgba(255,255,255,.045);
  border-color: var(--accent-line);
  color: var(--text);
  box-shadow: none;
  transform: translateY(-1px);
}
.btn.ghost.on { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.btn.danger { border: 1px solid rgba(239,68,68,.4); }
.btn.danger:hover { background: var(--err-soft); box-shadow: 0 6px 20px -8px rgba(239,68,68,.6); }
.btn:disabled { opacity: .45; transform: none !important; box-shadow: none; }
.btn:disabled::after { display: none; }

/* ---------- 6. Cards -------------------------------------------------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 120px),
    var(--surface);
  border: 1px solid rgba(255,255,255,.055);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease-out);
}
.card:hover {
  border-color: rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg);
}
/* Cards flagged as interactive lift; static content cards don't. */
.card[data-lift]:hover { transform: translateY(-2px); }

/* Cursor spotlight — a soft light that follows the pointer inside the card.
   fx.js writes --mx / --my; with no JS the layer stays invisible. */
.card, .product, .an-kpi, .stat {
  --mx: 50%; --my: 0%;
}
.card::before, .product::before, .an-kpi::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(99,102,241,.10), transparent 62%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover::before, .product:hover::before, .an-kpi:hover::before { opacity: 1; }

/* ---------- 7. Inputs ------------------------------------------------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], select, textarea {
  background: rgba(255,255,255,.028);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 10px 13px;
  font-family: inherit; font-size: 13.5px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; line-height: 1.55; }
::placeholder { color: var(--faint); }
::selection { background: rgba(99,102,241,.35); color: #fff; }

/* Focus ring for keyboard users, everywhere. */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- 8. Hero --------------------------------------------------- */
.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.038em;
  background: linear-gradient(180deg, #ffffff 0%, #c3c8dc 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tag {
  background: rgba(99,102,241,.1);
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 30px -6px rgba(99,102,241,.5);
  position: relative; overflow: hidden;
}
.hero-tag::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: tag-sweep 4.5s var(--ease) infinite;
}
@keyframes tag-sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.lede { font-size: 16px; max-width: 620px; }

.hero-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); max-width: 100%; }
.stat {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 70%),
    var(--surface);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.stat::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--glow); }
.stat:hover::after { opacity: 1; }
.stat .num {
  font-size: 30px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #b9bfd6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; font-weight: 600; }

/* ---------- 9. Product cards ------------------------------------------ */
.product {
  position: relative;
  border-radius: var(--r-xl);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
/* Gradient hairline that lights up on hover, drawn with a mask so it stays
   a 1px ring instead of a filled block. */
.product::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.product:hover::after { opacity: .85; }
.product:hover { box-shadow: var(--shadow-lg), 0 24px 60px -28px rgba(99,102,241,.6); }
.product .price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.product-tag.popular {
  background: linear-gradient(120deg, rgba(245,196,81,.16), rgba(245,196,81,.05));
  border-color: rgba(245,196,81,.4);
  color: var(--gold);
}

/* ---------- 10. Terminal / live feed ---------------------------------- */
.terminal {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.terminal-header {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.claim-row {
  transition: background .2s var(--ease);
  border-radius: 6px;
}
.claim-row:hover { background: rgba(255,255,255,.03); }
.claim-row.new { animation: claim-in .5s var(--ease-out) both; }
@keyframes claim-in {
  from { opacity: 0; transform: translateX(-14px); background: var(--accent-soft); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 11. Tables ------------------------------------------------ */
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, #14172010, var(--surface-2));
  backdrop-filter: blur(6px);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line-2);
}
.tbl tbody tr { transition: background .15s var(--ease); }
.tbl tbody tr:hover { background: rgba(255,255,255,.028); }

.user-link {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px dashed var(--line-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.user-link:hover { color: var(--accent-2); border-color: var(--accent); }

/* ---------- 12. Profile ----------------------------------------------- */
.prof-section {
  scroll-margin-top: 90px;
  position: relative;
}
.side-btn {
  position: relative;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              padding-left var(--dur) var(--ease);
}
.side-btn::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
  background: var(--accent-grad);
  transform: scaleY(0); transform-origin: center;
  transition: transform .3s var(--ease-out);
}
.side-btn:hover::before, .side-btn.active::before { transform: scaleY(1); }
.side-btn:hover, .side-btn.active { padding-left: 16px; }

.kpi .num, .stat .num, .an-kpi .k-val { font-variant-numeric: tabular-nums; }
.bp-bar { overflow: hidden; border-radius: 999px; }
.bp-fill {
  position: relative;
  background: var(--accent-grad) !important;
  overflow: hidden;
}
/* Animated stripes so a progress bar reads as "in flight". */
.bp-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,.16) 0 8px, transparent 8px 18px);
  animation: bp-flow 1.1s linear infinite;
}
@keyframes bp-flow { to { transform: translateX(18px); } }

/* ---------- 13. Admin shell ------------------------------------------- */
.admin-side { box-shadow: var(--shadow-md); }
.admin-side a {
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease-out);
}
.admin-side a:hover { transform: translateX(2px); }
.admin-side a.active {
  background: var(--accent-soft);
  color: var(--accent-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.admin-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search input[type="text"] { min-width: 260px; flex: 1; }
.inline { display: inline-block; }

/* ---------- 14. Analytics --------------------------------------------- */
.an-range {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 16px;
}
.an-range label { margin: 0; }
.an-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.an-compare { margin-left: auto; align-self: center; }

.an-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.an-kpi {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 70%), var(--surface);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--r-lg);
  padding: 15px 17px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.an-kpi:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--glow); }
.an-kpi.accent { border-color: var(--accent-line); }
.an-kpi.accent::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent-grad);
}
.an-kpi .k-lbl {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
}
.an-kpi .k-val {
  font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
  margin: 6px 0 4px; line-height: 1.1;
}
.an-kpi .k-unit { font-size: 16px; color: var(--muted); margin-left: 1px; }
.an-kpi .k-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.an-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.an-delta.up   { color: #86efac; background: var(--ok-soft); }
.an-delta.down { color: #fca5a5; background: var(--err-soft); }
.an-delta.flat { color: var(--muted); background: rgba(255,255,255,.04); }

.an-chart-card { padding: 20px 22px; }
.an-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.an-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.an-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.an-legend .lg::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.lg-visits::before { background: var(--accent); }
.lg-rev::before    { background: var(--accent-3); }

.an-chart {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2px; align-items: end;
  height: 190px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
}
.an-col { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.an-bars { display: flex; gap: 1px; align-items: flex-end; width: 100%; height: 100%; }
.an-bar {
  flex: 1; min-width: 2px;
  height: var(--h);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: bar-grow .6s var(--ease-out) both;
  transition: filter var(--dur) var(--ease);
}
.b-visits { background: linear-gradient(180deg, var(--accent-2), rgba(99,102,241,.32)); }
.b-rev    { background: linear-gradient(180deg, var(--accent-3), rgba(34,211,238,.28)); }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.an-col:hover .an-bar, .an-col:focus .an-bar { filter: brightness(1.35); }

.an-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 6px);
  display: grid; gap: 2px;
  min-width: 170px; padding: 9px 11px;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  font-size: 11.5px; color: var(--text-dim);
  opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity .18s var(--ease), transform .18s var(--ease-out);
}
.an-col:hover .an-tip, .an-col:focus .an-tip { opacity: 1; transform: translate(-50%, 0); }
.an-tip b { color: var(--text); }
/* Keep the first/last tooltips inside the card. */
.an-col:first-child .an-tip { left: 0; transform: translate(0, 6px); }
.an-col:first-child:hover .an-tip { transform: translate(0, 0); }
.an-col:last-child .an-tip { left: auto; right: 0; transform: translate(0, 6px); }
.an-col:last-child:hover .an-tip { transform: translate(0, 0); }

.an-axis {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 8px;
}

.an-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 16px; }
.an-split .card { margin-bottom: 0; }
.an-sub-head { padding: 15px 18px 12px; border-bottom: 1px solid var(--line); }

.an-share { height: 5px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: 3px; }
.an-share i { display: block; height: 100%; border-radius: 999px; background: var(--accent-grad); }

.an-status-mix { display: flex; gap: 10px; flex-wrap: wrap; }
.an-status-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}

/* ---------- 15. Blacklist --------------------------------------------- */
.bl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bl-stat {
  background: var(--surface); border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--r-lg); padding: 14px 16px;
}
.bl-stat .num { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bl-stat .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }

.bl-kind {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid;
}
.bl-ip       { color: #fca5a5; border-color: rgba(239,68,68,.35);  background: var(--err-soft); }
.bl-email    { color: #7dd3fc; border-color: rgba(56,189,248,.35); background: var(--info-soft); }
.bl-username { color: #fde68a; border-color: rgba(234,179,8,.35);  background: var(--warn-soft); }
tr.bl-off { opacity: .5; }

/* Blacklist confirmation dialog */
.bl-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.bl-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,5,8,.7); backdrop-filter: blur(6px);
  animation: fade-in .2s var(--ease) both;
}
.bl-modal-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  animation: modal-in .28s var(--ease-out) both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.bl-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.bl-modal-head .accent { color: var(--accent-2); }
.bl-modal-kinds { display: grid; gap: 8px; margin: 14px 0 16px; }
.bl-kind-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  margin: 0; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bl-kind-row:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.bl-kind-row.disabled { opacity: .45; cursor: default; }
.bl-kind-val { min-width: 0; word-break: break-all; }
.bl-ip-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-height: 110px; overflow-y: auto; }
.bl-modal-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 16. User detail ------------------------------------------- */
.ud-top { display: grid; grid-template-columns: minmax(320px, 1.1fr) 1.4fr; gap: 14px; align-items: start; }
.ud-id { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-bottom: 0; }
.ud-avatar {
  width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--accent-grad);
  font-size: 26px; font-weight: 700; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(99,102,241,.9);
}
.ud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ud-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ud-flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.ud-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.ud-meta dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; align-self: center; }
.ud-meta dd { margin: 0; color: var(--text-dim); word-break: break-word; }
.ud-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.ud-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .ud-top { grid-template-columns: 1fr; } }

/* ---------- 17. Support widget ---------------------------------------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.chat-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--accent-grad);
  color: #fff; font: 600 13.5px/1 inherit; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(99,102,241,.85);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.chat-toggle:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px -10px rgba(99,102,241,1); }
/* Slow pulse so the button is noticed once, not constantly. */
.chat-widget.closed .chat-toggle::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(99,102,241,.55);
  animation: chat-pulse 3.4s var(--ease) infinite;
}
@keyframes chat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.chat-toggle { position: relative; }
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--err); color: #fff;
  font: 700 11px/19px inherit; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.chat-panel {
  position: absolute; right: 0; bottom: 60px;
  width: min(384px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity .24s var(--ease), transform .28s var(--ease-out), visibility .28s;
}
.chat-widget.closed .chat-panel {
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(.94);
  pointer-events: none;
}
.chat-widget.open .chat-panel { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px;
  background: linear-gradient(180deg, rgba(99,102,241,.16), rgba(99,102,241,.03));
  border-bottom: 1px solid var(--line);
}
.chat-head-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--accent-grad);
  box-shadow: 0 6px 18px -6px rgba(99,102,241,.9);
  flex-shrink: 0;
}
.chat-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.chat-sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: chat-pulse 2.4s var(--ease) infinite;
}
.chat-head-actions { display: flex; gap: 4px; }
.chat-x {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chat-x:hover { background: rgba(255,255,255,.07); color: var(--text); }

.chat-body {
  flex: 1; min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;           /* nothing inside may widen the panel */
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

/* Bubble model: `.msg` is a plain wrapper (meta on top, bubble below) and
   `.msg-body` is the bubble. style.css puts the bubble on `.msg` itself, so
   that treatment has to be stripped here — otherwise every message renders as
   a box inside a box, and the inner one overflows the outer, which is what
   put a horizontal scrollbar in the chat panel. */
.chat-body .msg,
.ticket-thread .msg {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.msg { max-width: 86%; animation: msg-in .32s var(--ease-out) both; }
.msg.wide { max-width: 100%; }
/* Without this a bot/admin message stretches the full column width. */
.chat-body .msg.admin, .chat-body .msg.bot { align-self: flex-start; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-meta { display: flex; align-items: baseline; gap: 6px; font-size: 11px; margin-bottom: 4px; color: var(--muted); }
.msg-meta b { color: var(--text-dim); font-size: 11.5px; }
.msg-body {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.3px; line-height: 1.55;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: pre-wrap;
  /* `break-word`, never `anywhere`: `anywhere` also drives the box's
     min-content width down to a single character, and a shrink-to-fit bubble
     then collapses into a vertical column of letters. `break-word` still
     breaks a long unbroken token, but sizes the bubble by whole words. */
  overflow-wrap: break-word;
  word-break: normal;
}
.msg.user { align-self: flex-end; }
.msg.user .msg-meta { justify-content: flex-end; }
/* style.css tints this meta white for a light-on-accent bubble; the meta now
   sits on the panel background instead, so put it back to the muted scale. */
.msg.user .msg-meta { color: var(--muted); }
.msg.user .msg-meta .muted { color: var(--muted) !important; }
.msg.user .msg-body {
  background: var(--accent-grad);
  border-color: transparent; color: #fff;
  border-bottom-right-radius: 5px;
}
.msg.bot .msg-body, .msg.admin .msg-body { border-bottom-left-radius: 5px; }
.msg.bot .msg-body { border-color: var(--accent-line); background: rgba(99,102,241,.07); }
.msg.typing .msg-body { padding: 12px 14px; width: fit-content; }

.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); opacity: .5;
  animation: typing 1.2s var(--ease) infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .16s; }
.typing-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0);   opacity: .4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.chat-chips { display: grid; gap: 7px; }
.chat-chip {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 10px 12px;
  text-align: left; cursor: pointer;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text); font: inherit; font-size: 13px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              transform var(--dur) var(--ease-out);
}
.chat-chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateX(3px);
}
.chip-icon { font-size: 17px; flex-shrink: 0; }
.chip-text { display: grid; gap: 1px; min-width: 0; }
.chip-text .muted { font-size: 11.5px; }

.sol-head { font-size: 13.5px; margin-bottom: 9px; color: var(--text); }
.sol-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sol-steps li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.8px; line-height: 1.55; }
.sol-steps .step-n {
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2); font-size: 10.5px; font-weight: 700;
}
.sol-steps b { color: var(--text); }
.sol-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.chat-link {
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2); font-size: 11.5px; font-weight: 600;
  transition: background var(--dur) var(--ease);
}
.chat-link:hover { background: rgba(99,102,241,.22); color: #fff; }
.sol-ask { font-size: 12.8px; margin-bottom: 9px; }
.sol-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.chat-link-btn {
  padding: 7px 13px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text-dim); font: 600 12px inherit; cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.chat-link-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.chat-link-btn.ok { border-color: rgba(34,197,94,.4); color: #86efac; }
.chat-link-btn.ok:hover { background: var(--ok-soft); border-color: var(--ok); }

.chat-system {
  text-align: center; font-size: 11.5px; color: var(--muted);
  padding: 10px; border-top: 1px dashed var(--line); margin-top: 4px;
}
.chat-form {
  display: flex; gap: 8px; padding: 11px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.chat-form input[type="text"] { flex: 1; border-radius: 999px; }
.chat-form .btn { border-radius: 50%; width: 38px; height: 38px; padding: 0; flex-shrink: 0; }

/* ---------- 17b. Checkout --------------------------------------------- */
.co-wrap { max-width: 1080px; margin: 0 auto; }

.co-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.co-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.co-step .n {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); font-size: 11px;
}
.co-step.done { color: var(--text-dim); }
.co-step.done .n { background: var(--ok-soft); color: #86efac; }
.co-step.current { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.co-step.current .n { background: var(--accent-grad); color: #fff; }

.co-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
@media (max-width: 940px) { .co-grid { grid-template-columns: 1fr; } }

.co-main { padding: 24px 26px; margin-bottom: 0; }

.co-product { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.co-prod-icon {
  width: 62px; height: 62px; border-radius: var(--r-lg);
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(99,102,241,.2), rgba(34,211,238,.08));
  border: 1px solid var(--accent-line);
}
.co-prod-icon img { width: 40px; height: 40px; object-fit: contain; }
.co-prod-price { text-align: right; }
.co-unit {
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}

.co-qty-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-qty-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.co-stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  overflow: hidden; background: rgba(255,255,255,.025);
}
.co-step-btn {
  width: 42px; border: 0; background: transparent;
  color: var(--text-dim); font-size: 19px; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.co-step-btn:hover { background: var(--accent-soft); color: var(--accent-2); }
.co-stepper input {
  width: 84px; text-align: center;
  border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  border-radius: 0; background: transparent;
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.co-stepper input:focus { box-shadow: none; background: rgba(255,255,255,.04); }
.co-stepper input::-webkit-outer-spin-button,
.co-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.co-stepper input { -moz-appearance: textfield; }

.co-presets { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.co-chip {
  padding: 5px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text-dim); font: 600 12px inherit; cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.co-chip:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.co-chip.go { border-color: var(--accent); color: var(--accent-2); margin-left: 8px; }

.co-tiers { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-tiers-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.co-tier-list { display: grid; gap: 7px; }
.co-tier {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-size: 13px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.co-tier.on {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.co-tier .t-qty { font-weight: 700; font-variant-numeric: tabular-nums; }
.co-tier .t-price { color: var(--text); font-variant-numeric: tabular-nums; }
.co-tier .t-save { color: #86efac; font-weight: 700; font-size: 12px; }
.co-tier .t-exp { grid-column: 2 / -1; }
.co-nudge {
  margin-top: 11px; padding: 10px 13px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--accent-line);
  background: rgba(99,102,241,.06);
  font-size: 12.5px; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.co-precheck { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-precheck > summary {
  cursor: pointer; list-style: none;
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.co-precheck > summary::-webkit-details-marker { display: none; }
.co-precheck > summary:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.co-precheck-title { font-weight: 600; font-size: 13px; }
.co-precheck-title::before { content: "🔎 "; }
.co-precheck[open] > summary { border-color: var(--accent-line); background: var(--accent-soft); }
.co-precheck-body { display: grid; gap: 10px; padding: 16px 4px 0; }
.co-precheck-body label { margin: 0; }
.co-precheck-status:empty { display: none; }
.co-precheck-status.ok   { color: #86efac; }
.co-precheck-status.warn { color: #fde68a; }
.co-precheck-status.err  { color: #fca5a5; }

.co-side { position: sticky; top: 88px; display: grid; gap: 14px; }
@media (max-width: 940px) { .co-side { position: static; } }
.co-summary, .co-next { margin-bottom: 0; padding: 22px 24px; }
.co-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.co-line .k { color: var(--muted); }
.co-line .v { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.co-line .v.ok { color: #86efac; font-weight: 600; }
.co-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 0 4px;
}
.co-total .k { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.co-total .v {
  font-size: 30px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.co-saved {
  font-size: 12.5px; color: #86efac; font-weight: 600;
  background: var(--ok-soft); border: 1px solid rgba(34,197,94,.28);
  border-radius: var(--r-sm); padding: 8px 11px; margin-bottom: 14px;
  animation: msg-in .3s var(--ease-out) both;
}
.co-cta { margin-top: 12px; padding: 13px 18px; font-size: 14px; }
.co-cta-arrow { transition: transform var(--dur) var(--ease-out); }
.co-cta:hover .co-cta-arrow { transform: translateX(4px); }
.co-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.co-trust li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.co-trust li::before { content: "✓"; color: var(--ok); font-weight: 700; flex-shrink: 0; }
.co-next-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 12.8px; color: var(--text-dim); line-height: 1.55; }
.co-next-list b { color: var(--text); }

/* ---------- 17c. Payment page ----------------------------------------- */
.pay-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 940px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-main { padding: 24px 26px; margin-bottom: 0; }
.pay-side { position: sticky; top: 88px; display: grid; gap: 14px; }
@media (max-width: 940px) { .pay-side { position: static; } }
.pay-qr-card, .pay-summary-card { margin-bottom: 0; padding: 22px 24px; }

/* Track + timer share one strip so the top of the card is status, not prose. */
.pay-bar {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.pay-bar .pay-track { flex: 1; margin: 0; }

/* style.css styles .pay-timer as a bordered strip; here it's a bare corner
   readout, so the box treatment is unwound explicitly. */
.pay-timer {
  display: grid; gap: 2px; text-align: right;
  padding: 0; margin: 0;
  background: none; border: 0;
}
.pay-timer .clock {
  font: 700 22px/1 "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.pay-timer .clock.warn { color: #fde68a; }
.pay-timer .clock.expired { color: #fca5a5; }
.pay-timer .label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }

/* Payment lifecycle track */
.pay-track {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.pay-track li {
  position: relative;
  display: grid; justify-items: center; gap: 8px;
  font-size: 11px; color: var(--faint); text-align: center;
}
/* The connector runs behind the dots, from each item to the next. */
.pay-track li:not(:last-child)::after {
  content: "";
  position: absolute; top: 6px; left: 50%; right: -50%;
  height: 2px; background: var(--line);
  z-index: 0;
}
.pay-track li.done:not(:last-child)::after { background: var(--accent); }
.pay-track .pt-dot {
  position: relative; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pay-track li.done .pt-dot { background: var(--accent); border-color: var(--accent); }
.pay-track li.on .pt-dot {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: chat-pulse 2s var(--ease) infinite;
}
.pay-track li.done, .pay-track li.on { color: var(--text-dim); }
.pay-track li.on { color: var(--text); font-weight: 600; }

.pay-status {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 22px; padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  background: rgba(99,102,241,.07);
}
.pay-status .dot {
  width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0;
  background: var(--accent-2);
  animation: chat-pulse 1.8s var(--ease) infinite;
}
.pay-status-label { color: var(--text); font-weight: 600; font-size: 14px; }
.pay-status.paid { border-color: rgba(34,197,94,.4); background: var(--ok-soft); }
.pay-status.paid .dot { background: var(--ok); }
.pay-status.failed { border-color: rgba(239,68,68,.4); background: var(--err-soft); }
.pay-status.failed .dot { background: var(--err); animation: none; }

.pay-field-lbl {
  display: block; margin-bottom: 7px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
}

/* QR beside the numbers — the whole payment readable in one glance. */
.pay-core {
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  align-items: start; margin-top: 20px;
}
.pay-qr {
  position: relative;
  padding: 12px; border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 14px 34px -16px rgba(0,0,0,.95);
  overflow: hidden;
}
.pay-qr img { display: block; width: 176px; height: 176px; }
/* A scan line that runs while the payment is still outstanding, so the code
   reads as live rather than as a static picture. Stops once funds land. */
.pay-qr-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(180deg, rgba(99,102,241,.28), transparent);
  animation: qr-scan 2.6s var(--ease) infinite;
  pointer-events: none;
}
.pay-qr.settled .pay-qr-scan { display: none; }
@keyframes qr-scan {
  0%   { transform: translateY(-40%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}
.pay-core-body { min-width: 0; }
.pay-core-actions { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.copy-btn.wide { width: 100%; padding: 8px 12px; margin-top: 10px; }

.pay-usd { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pay-usd-was { text-decoration: line-through; opacity: .6; margin-left: 6px; }

.pay-note {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 18px 0 0; padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid rgba(234,179,8,.28);
  background: var(--warn-soft);
  font-size: 12px; line-height: 1.55; color: var(--text-dim);
}
.pay-note .pw-icon { color: var(--warn); flex-shrink: 0; }
.pay-help { margin-top: 16px; padding-top: 0; border-top: 0; }
.pay-help-list {
  margin: 14px 0 0; padding-left: 20px;
  display: grid; gap: 8px; font-size: 13px; color: var(--text-dim); line-height: 1.55;
}
.pay-help-list b { color: var(--text); }

/* ---- coupon ---- */
.pay-coupon { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-coupon-form label {
  display: block; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
}
.pay-coupon-row { display: flex; gap: 8px; }
.pay-coupon-row input { flex: 1; min-width: 0; letter-spacing: .06em; font-weight: 600; }
.pay-coupon-on {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: var(--r-md);
  border: 1px dashed rgba(34,197,94,.4);
  background: var(--ok-soft);
}
.pc-code { font-weight: 700; color: #86efac; font-size: 13.5px; letter-spacing: .04em; }

/* Coupon code chips in the admin table double as copy buttons. */
.coupon-code {
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2);
  font: 700 12.5px/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.coupon-code:hover { background: rgba(99,102,241,.22); color: #fff; }
.coupon-code.copied { background: var(--ok-soft); border-color: rgba(34,197,94,.4); color: #86efac; }
.copy-btn {
  padding: 4px 11px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text-dim); font: 600 11.5px inherit; cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.copy-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.copy-btn.copied { border-color: var(--ok); color: #86efac; background: var(--ok-soft); }

.pay-amount {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 15px 17px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.025);
}
.pay-amount .val {
  font: 700 26px/1 "JetBrains Mono", ui-monospace, monospace;
  color: var(--text); letter-spacing: -0.02em;
  word-break: break-all;
}
.pay-amount .cur { font-weight: 700; color: var(--accent-2); font-size: 15px; }
.pay-amount .usd { margin-left: auto; color: var(--muted); font-size: 12.5px; }

.pay-address {
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.025);
}
.pay-address .addr { font-size: 13.5px; color: var(--text); word-break: break-all; line-height: 1.5; }

.pay-wallet { margin-top: 14px; }

.pay-warn {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 18px; padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid rgba(234,179,8,.32);
  background: var(--warn-soft);
  font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
}
.pay-warn b { color: #fde68a; display: block; margin-bottom: 2px; }
.pay-warn .pw-icon { color: var(--warn); font-size: 15px; flex-shrink: 0; }

/* Same story: drop the dashed box from style.css, keep a plain divider. */
.pay-steps {
  display: block;
  margin-top: 22px; padding: 20px 0 0;
  border: 0; border-top: 1px solid var(--line);
  background: none;
}
.pay-steps h4 {
  margin: 0 0 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 700;
}
.pay-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.pay-steps b { color: var(--text); }

.co-total-cur { font-size: 16px; }

/* ---------- 17d. Live support (admin side) ----------------------------- */
.side-badge {
  margin-left: auto;
  min-width: 19px; height: 19px; padding: 0 6px;
  border-radius: 999px;
  background: var(--err); color: #fff;
  font: 700 11px/19px inherit; text-align: center;
  box-shadow: 0 0 0 3px rgba(239,68,68,.16);
  animation: chat-pulse 2.6s var(--ease) infinite;
}
.admin-side a { display: flex; align-items: center; gap: 9px; }

.ticket-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 15px; margin-bottom: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: 13px;
}
.tm-sep { width: 1px; height: 14px; background: var(--line-2); }

.ticket-accept {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-color: var(--accent-line) !important;
  background: linear-gradient(120deg, rgba(99,102,241,.10), transparent 70%), var(--surface) !important;
}

/* A grey centred line, not a bubble — "someone joined", not "someone said". */
.msg-system {
  align-self: center;
  max-width: 100%;
  margin: 4px auto;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px; font-weight: 600;
  text-align: center;
  animation: msg-in .32s var(--ease-out) both;
}

.ticket-thread {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; max-height: 60vh; overflow-y: auto;
  scroll-behavior: smooth;
}
/* Mirror of the buyer's view: here *we* are on the right, the buyer on the
   left. style.css aligns .msg.user right for the widget, so it's flipped back. */
.ticket-thread .msg { max-width: 76%; }
.ticket-thread .msg.admin, .ticket-thread .msg.bot { align-self: flex-end; }
.ticket-thread .msg.admin .msg-meta { justify-content: flex-end; }
.ticket-thread .msg.admin .msg-body {
  background: var(--accent-grad); border-color: transparent; color: #fff;
  border-bottom-right-radius: 5px;
}
.ticket-thread .msg.user { align-self: flex-start; }
.ticket-thread .msg.user .msg-meta { justify-content: flex-start; color: var(--muted); }
.ticket-thread .msg.user .msg-body {
  background: var(--surface-2); border-color: var(--line); color: var(--text-dim);
  border-radius: 14px; border-bottom-left-radius: 5px;
}
.ticket-input {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.ticket-input input[type="text"] { flex: 1; border-radius: 999px; }
.ticket-closed-msg {
  padding: 16px; text-align: center;
  color: var(--muted); font-size: 12.5px;
  border-top: 1px dashed var(--line);
}

.ticket-canned { margin-top: 14px; }
.canned-list { display: flex; gap: 7px; flex-wrap: wrap; }
.canned {
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  color: var(--text-dim); font: 500 12.5px inherit; cursor: pointer;
  text-align: left;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.canned:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }

tr.ticket-waiting td { background: rgba(239,68,68,.05); }
.dot-wait {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--err); margin-left: 5px; vertical-align: middle;
  animation: chat-pulse 1.8s var(--ease) infinite;
}

/* ---- emoji picker ---- */
.emoji-wrap { position: relative; flex-shrink: 0; }
.emoji-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.emoji-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.emoji-pop {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  z-index: 60;
  width: 244px; padding: 9px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: modal-in .18s var(--ease-out) both;
}
.emoji-pick {
  border: 0; background: transparent; cursor: pointer;
  font-size: 17px; line-height: 1;
  padding: 5px 0; border-radius: 6px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.emoji-pick:hover { background: var(--accent-soft); transform: scale(1.18); }

/* ---- toasts ---- */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; flex-direction: column; gap: 9px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 13px;
  border-radius: var(--r-md);
  background: var(--raised);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  color: var(--text); text-decoration: none;
  animation: toast-in .3s var(--ease-out) both;
  transition: opacity .24s var(--ease), transform .24s var(--ease-out);
}
.toast:hover { border-color: var(--accent-line); color: var(--text); }
.toast.new { border-color: var(--accent-line); background: linear-gradient(120deg, rgba(99,102,241,.14), transparent 70%), var(--raised); }
.toast.out { opacity: 0; transform: translateX(16px); }
.toast-icon { font-size: 17px; flex-shrink: 0; line-height: 1.3; }
.toast-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.toast-body b { font-size: 13px; }
.toast-text {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toast-x {
  border: 0; background: transparent; color: var(--faint);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px;
  flex-shrink: 0;
}
.toast-x:hover { color: var(--text); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 18. Flash messages ---------------------------------------- */
.flash {
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  animation: flash-in .4s var(--ease-out) both;
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 19. Footer ------------------------------------------------ */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.014));
}

/* ---------- 20. Scrollbar --------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #333c54; }

/* ---------- 21. Mobile -------------------------------------------------
   Everything below the 820px breakpoint. The desktop rules above stay
   untouched; this section only reshapes what actually breaks on a phone. */

/* Burger + scrim exist in the DOM at every size but only show on mobile. */
.nav-burger { display: none; }
.nav-scrim { display: none; }

/* Horizontal scroll container that fx.js wraps every wide table in. */
.tbl-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.tbl-scroll::-webkit-scrollbar { height: 7px; }
/* Edge fade telling the user there's more table to the right. */
.tbl-scroll.has-more::after {
  content: "";
  position: sticky; float: right; top: 0; right: 0;
  width: 34px; height: 100%;
  margin-left: -34px;
  background: linear-gradient(90deg, transparent, var(--surface));
  pointer-events: none;
}

@media (max-width: 1100px) {
  .an-split { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  /* --- shell --- */
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; }
  .container,
  .container.boxed,
  .container.narrow {
    padding-left: 14px; padding-right: 14px;
    margin-top: 18px; margin-bottom: 18px;
  }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  /* style.css forces `.card { padding: 14px !important }` here, which would
     also pad the cards that wrap a flush-edge table. Put those back to 0. */
  .card { border-radius: var(--r-lg); margin-bottom: 14px; }
  .card:hover { transform: none; }          /* no hover lift on touch */
  .card::before, .product::before, .an-kpi::before { display: none; }  /* no spotlight */
  .card:has(> .tbl-scroll),
  .card:has(> .an-sub-head) { padding: 0 !important; }
  .card > .an-sub-head { padding: 14px 16px 11px; }

  /* --- nav becomes a burger + slide-down panel --- */
  .nav {
    padding: 11px 14px;
    flex-wrap: nowrap;
    padding-top: max(11px, env(safe-area-inset-top));
  }
  .nav.scrolled { padding: 9px 14px; }
  .brand-sub { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px;
    margin-left: auto;
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
    background: rgba(255,255,255,.03);
    cursor: pointer;
  }
  .nav-burger span {
    display: block; height: 2px; border-radius: 2px;
    background: var(--text-dim);
    transition: transform .28s var(--ease-out), opacity .2s var(--ease);
  }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Scroll lock while the menu is down — scoped to this breakpoint so it can
     never strand the desktop layout. */
  body.nav-open { overflow: hidden; }

  /* A dropdown anchored to the nav, not a fixed off-canvas panel: the nav's
     backdrop-filter would capture any position:fixed child and anchor it to
     the bar instead of the viewport.
     Specificity note: style.css ships `.nav .links` rules at this same
     breakpoint, so these have to be at least as specific to win. */
  .nav .links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 10;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 30px 60px -22px rgba(0,0,0,.92);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .26s var(--ease-out), visibility .26s;
  }
  body.nav-open .nav .links {
    opacity: 1; visibility: visible; transform: none;
  }
  .nav .links a {
    padding: 13px 14px;
    font-size: 15px;
    border-radius: var(--r-sm);
    min-height: 46px;
    display: flex; align-items: center;
  }
  .nav .links a:not(.cta):not(.ghost)::after { display: none; }
  .nav .links a.cta, .nav .links a.ghost { justify-content: center; margin-top: 6px; }

  /* Gated on the open state, never on the attribute alone — a bare
     `display:block` here would leave the scrim covering the whole page.
     Sits under the nav (z-index 50) so the bar and its dropdown stay lit. */
  body.nav-open .nav-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 45;
    background: rgba(4,5,8,.62);
    backdrop-filter: blur(3px);
    animation: fade-in .22s var(--ease) both;
  }

  /* --- hero --- */
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .lede { font-size: 14.5px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .num { font-size: 23px; }
  .stat:hover { transform: none; }

  /* --- product cards: no tilt/lift on touch --- */
  .product:hover { box-shadow: var(--shadow-md); }
  .product::after { opacity: .5; }          /* show the gradient ring statically */

  /* --- tables --- */
  .tbl { min-width: 640px; }               /* let it scroll instead of squashing */
  .tbl thead th { position: static; }      /* sticky + horizontal scroll fight */
  .tbl th, .tbl td { padding: 9px 10px; font-size: 12.5px; }
  .card[style*="padding:0"] .tbl-scroll::after { background: linear-gradient(90deg, transparent, var(--surface)); }

  /* --- admin shell: sidebar becomes a scrolling pill bar --- */
  .admin { display: block; }
  .admin-side {
    position: static;
    display: flex; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 8px;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
  }
  .admin-side::-webkit-scrollbar { display: none; }
  .admin-side .side-label { display: none; }
  .admin-side a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13px;
  }
  .admin-side a:hover { transform: none; }
  .admin-side a.active { box-shadow: none; border-color: var(--accent-line); }
  .admin-h { margin-bottom: 12px; }
  .grid-form { grid-template-columns: 1fr; }
  .search { flex-direction: column; align-items: stretch; }
  .search input[type="text"] { min-width: 0; width: 100%; }

  /* --- analytics --- */
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .an-kpi { padding: 13px 14px; }
  .an-kpi .k-val { font-size: 23px; }
  .an-kpi:hover { transform: none; }
  .an-range { flex-direction: column; align-items: stretch; padding: 14px; }
  .an-range label { display: grid; }
  .an-range input[type="date"] { width: 100%; }
  .an-presets { justify-content: space-between; }
  .an-compare { margin-left: 0; }
  .an-chart-card { padding: 16px 14px; }
  .an-chart { height: 150px; }
  .an-tip { min-width: 148px; font-size: 11px; }
  /* Tooltips at the edges would overflow the card on a narrow screen. */
  .an-col:nth-child(-n+3) .an-tip { left: 0; transform: translate(0, 6px); }
  .an-col:nth-child(-n+3):hover .an-tip,
  .an-col:nth-child(-n+3):focus .an-tip { transform: translate(0, 0); }

  /* --- user detail --- */
  .ud-id { grid-template-columns: 1fr; }
  .ud-avatar { width: 54px; height: 54px; font-size: 22px; }
  .ud-meta { grid-template-columns: 1fr; gap: 2px 0; }
  .ud-meta dt { margin-top: 8px; }
  .ud-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ud-actions { flex-direction: column; }
  .ud-actions .inline, .ud-actions .btn { width: 100%; }

  /* --- checkout --- */
  .co-steps { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .co-steps::-webkit-scrollbar { display: none; }
  .co-step { flex: 0 0 auto; font-size: 11.5px; padding: 6px 12px 6px 7px; }
  .co-main { padding: 18px 16px; }
  .co-product { grid-template-columns: auto 1fr; row-gap: 12px; }
  .co-prod-price { grid-column: 1 / -1; text-align: left; }
  .co-summary, .co-next { padding: 18px 16px; }
  .co-tier { grid-template-columns: 52px 1fr auto; font-size: 12.5px; padding: 9px 11px; }
  .co-total .v { font-size: 26px; }
  .co-stepper input { width: 70px; }
  .co-step-btn { width: 48px; }             /* comfortable thumb target */

  /* --- payment --- */
  .pay-main, .pay-summary-card { padding: 18px 16px; }
  .pay-bar { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .pay-timer { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .pay-track li { font-size: 9.5px; }
  /* QR above the numbers, centred — side by side is too tight to read. */
  .pay-core { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .pay-core-body { width: 100%; }
  .pay-qr img { width: 200px; height: 200px; }
  .pay-amount { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pay-amount .val { font-size: 22px; }
  .pay-amount .usd { margin-left: 0; }
  .pay-address .addr { font-size: 12.5px; }
  .pay-core-actions { flex-direction: column; }
  .pay-core-actions .copy-btn, .pay-core-actions .btn { width: 100%; }
  .pay-coupon-row { flex-direction: column; }
  .pay-coupon-row .btn { width: 100%; }
  .pay-coupon-on { flex-direction: column; align-items: stretch; gap: 10px; }

  /* --- support widget becomes a bottom sheet --- */
  .chat-widget { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .chat-panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    height: 88vh; height: 88dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    transform-origin: bottom center;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chat-widget.closed .chat-panel { transform: translateY(100%); }
  .chat-head { padding: 14px 16px; }
  .chat-x { width: 34px; height: 34px; }
  .msg { max-width: 92%; }
  .chat-chip { padding: 12px 13px; }
  .chat-form { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .chat-form .btn { width: 42px; height: 42px; }

  /* --- blacklist dialog --- */
  .bl-modal { padding: 0; align-items: flex-end; }
  .bl-modal-card {
    width: 100%; max-height: 92vh; overflow-y: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .bl-modal-foot { flex-direction: column-reverse; }
  .bl-modal-foot .btn { width: 100%; }
  .bl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-stat { padding: 11px 12px; }
  .bl-stat .num { font-size: 20px; }

  /* --- live support --- */
  .toast-stack { right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  .ticket-accept { flex-direction: column; align-items: stretch; }
  .ticket-accept .btn { width: 100%; }
  .ticket-thread { max-height: 55vh; padding: 12px; }
  .ticket-thread .msg { max-width: 88%; }
  .emoji-pop { grid-template-columns: repeat(6, 1fr); width: 210px; }
  .canned { font-size: 12px; }

  /* --- footer --- */
  .foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .an-kpis, .ud-kpis { grid-template-columns: 1fr; }
  .co-presets { justify-content: space-between; }
  .co-presets .co-chip { flex: 1; text-align: center; }
  .bl-stats { grid-template-columns: 1fr; }
  .an-chart { height: 120px; }
}

/* iOS zooms the page whenever a focused input is under 16px. Bump every
   text field on touch devices — the only reliable way to stop it. */
@media (hover: none) and (pointer: coarse) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="date"], input[type="datetime-local"],
  select, textarea { font-size: 16px; }
  /* Comfortable tap targets everywhere. */
  .btn, .copy-btn, .chat-chip, .chat-link-btn, .co-chip, .side-btn { min-height: 40px; }
  .btn.tiny { min-height: 34px; padding: 7px 12px; }
}

/* Landscape phones: a fixed-height sheet would cover the whole screen. */
@media (max-height: 520px) and (max-width: 900px) {
  .chat-panel { height: 96vh; height: 96dvh; }
}

/* ---------- 21b. Accounts selling ---------------------------------------
   The second storefront (/accountsels) and its admin. Everything here reuses
   the tokens above, so the two shops read as one site — the only deliberate
   signature of this one is the green "delivered / in stock" accent, which the
   Nitro side never uses for state. */

:root {
  --as-ok:      #22c55e;
  --as-ok-soft: rgba(34,197,94,.12);
  --as-ok-line: rgba(34,197,94,.32);
  --as-warn:    #f5b13d;
}

/* --- nav entry --- */
.nav .links a.accounts-link { display: inline-flex; align-items: center; gap: 6px; }
.accounts-link .acc-key { font-size: 12px; filter: saturate(1.2); }
.accounts-link.on { color: var(--text); }
.admin-side .side-badge.off {
  background: var(--surface-2); color: var(--faint);
  border: 1px solid var(--line-2); font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- header bar ---
   Deliberately a bar and not a hero: the listings are what people came for, so
   the title earns one line and the grid starts above the fold. */
.as-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 16px 20px; margin: 22px 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(520px 200px at 92% -60%, rgba(34,197,94,.09), transparent 62%),
    linear-gradient(180deg, var(--raised) 0%, var(--surface) 70%);
  box-shadow: var(--shadow-sm);
}
.as-bar-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.as-bar-key {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 19px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.as-bar h1 { margin: 0; font-size: 19px; letter-spacing: -0.025em; line-height: 1.2; }
.as-bar p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.as-bar-stats { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.as-bar-stat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.as-bar-stat b { color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.as-bar-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* --- search + filters --- */
.as-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.as-search { position: relative; flex: 1; min-width: 210px; }
.as-search input {
  width: 100%; margin: 0; padding-left: 34px; padding-right: 32px;
  background: var(--surface) !important;
}
.as-search input::-webkit-search-cancel-button { display: none; }
.as-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--muted); pointer-events: none; line-height: 1;
}
.as-search-x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  cursor: pointer; width: 20px; height: 20px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  color: var(--muted); border: 0; background: var(--surface-2);
}
.as-search-x:hover { color: var(--text); }
.as-filters { display: flex; gap: 5px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); }
.as-filter {
  cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 0; background: transparent;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.as-filter:hover { color: var(--text-dim); }
.as-filter.on { background: var(--accent-soft); color: var(--accent-2); }
.as-sort {
  margin: 0; min-width: 150px; background: var(--surface) !important;
  font-size: 12.5px; padding-top: 9px; padding-bottom: 9px;
}
.as-count { margin: 0 0 12px; }
.as-noresults {
  text-align: center; padding: 50px 24px; margin-bottom: 30px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface);
}
.as-noresults h2 { margin: 0 0 6px; font-size: 18px; }
.as-noresults p { margin: 0 0 16px; }

/* --- notices --- */
.as-notice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 18px; margin-bottom: 20px;
  border: 1px solid rgba(245,177,61,.3); border-radius: var(--r-md);
  background: rgba(245,177,61,.08); color: var(--text-dim); font-size: 13.5px;
}
.as-notice.inline { margin: 16px 0; }
.as-notice span:first-child { font-size: 17px; line-height: 1.2; }
.as-notice b { color: var(--text); }

/* --- storefront grid --- */
.as-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  margin-bottom: 40px;
}
.as-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--raised) 0%, var(--surface) 55%);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.as-card:hover { border-color: var(--accent-line); box-shadow: var(--glow); }
.as-card.is-out { opacity: .72; }
.as-card-media {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden;
}
.as-card-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease-out); }
.as-card:hover .as-card-media img { transform: scale(1.045); }
.as-noimg {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; opacity: .35;
  background: radial-gradient(300px 160px at 50% 40%, var(--accent-soft), transparent 70%);
}
.as-noimg.big { font-size: 72px; }
.as-photo-count, .as-out-badge, .as-low-badge {
  position: absolute; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.as-photo-count { right: 10px; bottom: 10px; background: rgba(6,7,10,.72); color: var(--text-dim); }
.as-low-badge  { left: 10px; top: 10px; background: rgba(245,177,61,.16); color: var(--as-warn);
                 border: 1px solid rgba(245,177,61,.34); }
.as-out-badge  { left: 10px; top: 10px; background: rgba(6,7,10,.8); color: var(--text-dim);
                 border: 1px solid var(--line-2); }
.as-out-badge.big { font-size: 13px; padding: 8px 15px; }
.as-card-body { display: flex; flex-direction: column; gap: 11px; padding: 17px 18px 18px; flex: 1; }
.as-card-body h3 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.as-card-body h3 a { color: var(--text); text-decoration: none; }
.as-card-body h3 a:hover { color: var(--accent-2); }
.as-desc {
  margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chip {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-dim);
}
.as-chip.ok     { background: var(--as-ok-soft); border-color: var(--as-ok-line); color: var(--as-ok); }
.as-chip.zero   { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #f87171; }
.as-chip.auto   { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.as-chip.manual { color: var(--as-warn); border-color: rgba(245,177,61,.3); background: rgba(245,177,61,.08); }
.as-chip.nitro  { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); font-weight: 700; }
.as-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line);
}
.as-price { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.as-price .per { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 5px; }

/* --- empty state --- */
.as-empty {
  text-align: center; padding: 60px 24px; margin-bottom: 30px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface);
}
.as-empty-key { font-size: 46px; opacity: .4; margin-bottom: 10px; }
.as-empty h2 { margin: 0 0 6px; font-size: 19px; }
.as-empty p { margin: 0 0 18px; }

/* --- how it works --- */
.as-how { margin-bottom: 44px; }
.as-how h2 { font-size: 19px; margin: 0 0 16px; letter-spacing: -0.02em; }
.as-steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.as-step {
  display: grid; gap: 5px; padding: 17px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.as-step .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2); font-size: 11.5px; font-weight: 800; margin-bottom: 4px;
}

/* --- breadcrumbs --- */
.as-crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 20px 0 18px; font-size: 12.5px; color: var(--muted);
}
.as-crumbs a { color: var(--text-dim); text-decoration: none; }
.as-crumbs a:hover { color: var(--accent-2); }

/* --- offer detail --- */
.as-detail {
  display: grid; gap: 26px; align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  margin-bottom: 36px;
}
.as-stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-md);
}
.as-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.as-stage-empty { display: grid; place-items: center; }
.as-thumbs { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.as-thumb {
  width: 74px; height: 56px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2);
  transition: border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  opacity: .62;
}
.as-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-thumb:hover { opacity: .9; }
.as-thumb.on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-line); }

.as-buy {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--raised) 0%, var(--surface) 60%);
  box-shadow: var(--shadow-md); position: sticky; top: 84px;
}
.as-buy h1 { margin: 0 0 13px; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.18; letter-spacing: -0.03em; }
.as-price-big {
  margin: 18px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -0.04em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.as-price-big .per {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 4px;
}
/* --- live viewer counts --- */
.as-watching {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; margin: 14px 0 4px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); font-size: 12.5px; color: var(--muted);
}
.as-watching b { color: var(--text); font-weight: 800; }
.as-watching.busy { border-color: rgba(245,177,61,.3); background: rgba(245,177,61,.07); }
.as-watching.busy b { color: var(--as-warn); }
.as-watching-dot {
  flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--as-ok); box-shadow: 0 0 0 3px var(--as-ok-soft);
  animation: as-blink 2.4s var(--ease) infinite;
}
.as-watching.busy .as-watching-dot {
  background: var(--as-warn); box-shadow: 0 0 0 3px rgba(245,177,61,.16);
}
@keyframes as-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.as-watching.bump { animation: as-bump .32s var(--ease-out); }
@keyframes as-bump { 0% { transform: scale(.99); } 55% { transform: scale(1.012); } 100% { transform: scale(1); } }

.as-viewers {
  position: absolute; right: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
  background: rgba(6,7,10,.76); color: var(--text-dim);
  border: 1px solid rgba(245,177,61,.34);
}
.as-viewers b { color: var(--as-warn); }
.as-viewers-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--as-warn);
  animation: as-blink 2.4s var(--ease) infinite;
}

/* --- next-in-queue account summary on the offer page --- */
.as-next {
  margin: 16px 0 4px; padding: 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background:
    radial-gradient(420px 160px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface-2);
}
.as-next-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.as-next-check {
  width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 11px; color: #fff; background: var(--as-ok); letter-spacing: 0;
}
/* Nitro highlight strip */
.as-next-nitro {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  background: linear-gradient(120deg, var(--accent-soft), transparent 78%);
}
.as-next-nitro.expired { border-color: rgba(239,68,68,.32);
  background: linear-gradient(120deg, rgba(239,68,68,.1), transparent 78%); }
.as-next-nitro-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 17px; background: var(--accent-grad); box-shadow: 0 6px 16px -6px rgba(99,102,241,.8);
}
.as-next-nitro b { display: block; font-size: 14px; color: var(--text); letter-spacing: -0.01em; }
.as-next-nitro .muted { display: block; margin-top: 1px; }
.as-next-rows { display: grid; gap: 9px; }
.as-next-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-dim);
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.as-next-row:last-child { padding-bottom: 0; border-bottom: 0; }
.as-next-row b { color: var(--text); font-weight: 700; }
.as-next-row b.ok { color: var(--as-ok); }
.as-next-row b.nitro { color: var(--accent-2); }
.as-next-row b.muted { color: var(--muted); font-weight: 600; }

/* --- buyer order page: creation date + standing badge --- */
.ao-standing {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 4px;
  font-size: 12.5px; color: var(--muted);
}
.ao-standing b { color: var(--text); font-weight: 700; }
.ao-standing b.ok { color: var(--as-ok); }
.ao-standing b.nitro { color: var(--accent-2); }

/* --- pay-currency chooser (LTC / ETH) --- */
.as-pay, .co-pay { margin: 14px 0 4px; }
.as-pay-label, .co-pay .k {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.as-pay-opts, .co-pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.as-pay-opt, .co-pay-opt {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.as-pay-opt input, .co-pay-opt input { accent-color: var(--accent); margin: 0; }
.as-pay-opt:hover, .co-pay-opt:hover { border-color: var(--line); }
.as-pay-opt:has(input:checked), .co-pay-opt:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.as-pay-opt b, .co-pay-opt b { font-size: 13.5px; color: var(--text); }
.co-pay-body { display: flex; flex-direction: column; line-height: 1.2; }

.as-buy-form { margin-top: 18px; }
.as-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; margin: 4px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2);
  font-size: 12.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase;
}
.as-total b { font-size: 20px; color: var(--text); letter-spacing: -0.02em; text-transform: none; }
.as-assure { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.as-assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.8px; color: var(--text-dim); }
.as-assure span { flex-shrink: 0; }

.as-about { margin-bottom: 20px; }
.as-about h2 { font-size: 19px; margin: 0 0 14px; letter-spacing: -0.02em; }
.as-about-body {
  white-space: pre-wrap; line-height: 1.72; color: var(--text-dim);
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.as-note {
  display: flex; gap: 13px; align-items: flex-start; margin-bottom: 40px;
  padding: 16px 19px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.as-note b { display: block; margin-bottom: 3px; font-size: 13.5px; }
.as-note-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}

/* --- buyer's order page --- */
.ao-head { margin: 4px 0 22px; }
.ao-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.ao-head h1 { margin: 0 0 12px; font-size: clamp(22px, 3.2vw, 31px); letter-spacing: -0.03em; line-height: 1.15; }
.ao-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }

.ao-wait { text-align: center; padding: 46px 26px; }
.ao-wait-icon { font-size: 40px; margin-bottom: 10px; }
.ao-wait h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.ao-wait p { max-width: 52ch; margin: 0 auto 16px; }

.ao-delivered {
  display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 18px;
  border: 1px solid var(--as-ok-line); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--as-ok-soft), transparent 72%);
}
.ao-delivered p { margin: 0; flex: 1; min-width: 240px; font-size: 13.2px; }
.ao-delivered-badge {
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px; color: var(--as-ok);
  background: rgba(34,197,94,.14); border: 1px solid var(--as-ok-line); white-space: nowrap;
}

.ao-creds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); margin-bottom: 18px; }
.ao-cred { padding: 22px 22px 18px; }
.ao-cred-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ao-cred-head h3 { margin: 0; font-size: 15.5px; letter-spacing: -0.02em; }
.ao-sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 9px; padding-top: 12px; border-top: 1px solid var(--line);
}
.ao-cred .ao-sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 14px; }
.ao-field {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 9px 11px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2);
}
.ao-label {
  flex: 0 0 84px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.ao-value {
  flex: 1; min-width: 0; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--text); word-break: break-all; user-select: all;
}
.ao-value.masked { color: var(--faint); letter-spacing: .18em; user-select: none; }
.ao-copy, .ao-eye {
  flex-shrink: 0; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 7px; color: var(--text-dim);
  border: 1px solid var(--line-2); background: var(--surface-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ao-copy:hover, .ao-eye:hover { color: var(--text); border-color: var(--accent-line); }
.ao-copy.done { color: var(--as-ok); border-color: var(--as-ok-line); background: var(--as-ok-soft); }

.ao-email { padding: 22px 24px; }
.ao-email-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 15px; }
.ao-email-head b { display: block; margin-bottom: 3px; }
.ao-email-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
}
.ao-email-icon.ok   { background: var(--as-ok-soft); color: var(--as-ok); border: 1px solid var(--as-ok-line); }
.ao-email-icon.warn { background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent-line); }
.ao-email-form { display: flex; gap: 9px; flex-wrap: wrap; }
.ao-email-form input { flex: 1; min-width: 220px; margin: 0; }
.ao-foot { display: flex; gap: 9px; flex-wrap: wrap; margin: 26px 0 40px; }

/* --- profile: accounts rows --- */
.pa-row.pa-ready { border-color: var(--as-ok-line); }
.pa-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* --- admin: offers --- */
.acc-warn {
  display: flex; gap: 13px; align-items: flex-start; padding: 14px 17px; margin-bottom: 16px;
  border: 1px solid rgba(245,177,61,.3); border-radius: var(--r-md);
  background: rgba(245,177,61,.08);
}
.acc-warn b { display: block; margin-bottom: 2px; }
.acc-warn-icon { font-size: 16px; }
.acc-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 16px; }
.acc-stat { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.acc-stat .num { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.acc-stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.acc-stat.alert { border-color: rgba(245,177,61,.34); background: rgba(245,177,61,.07); }
.acc-stat.alert .num { color: var(--as-warn); }

.acc-todo { margin-bottom: 16px; border-color: rgba(245,177,61,.28); }
.acc-todo-list { display: grid; gap: 8px; }
.acc-todo-row {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 12.8px;
}
.acc-todo-row form { margin-left: auto; }

.acc-empty { text-align: center; padding: 48px 26px; }
.acc-empty-key { font-size: 40px; opacity: .4; margin-bottom: 8px; }
.acc-empty h3 { margin: 0 0 8px; }
.acc-empty p { max-width: 54ch; margin: 0 auto 18px; }

.acc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.acc-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.acc-card.is-off { opacity: .68; }
.acc-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.acc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-card-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; opacity: .3; }
.acc-photo-count {
  position: absolute; right: 9px; bottom: 9px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: rgba(6,7,10,.75); color: var(--text-dim);
}
.acc-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 17px 17px; flex: 1; }
.acc-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acc-card-top h3 { margin: 0; font-size: 15px; letter-spacing: -0.02em; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acc-card-desc {
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acc-stock-row { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-pill {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-dim);
}
.acc-pill.ok   { background: var(--as-ok-soft); border-color: var(--as-ok-line); color: var(--as-ok); }
.acc-pill.zero { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #f87171; }
.acc-pill.hold { background: rgba(245,177,61,.1); border-color: rgba(245,177,61,.3); color: var(--as-warn); }
.acc-card-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* --- admin: offer form --- */
.acc-form { display: grid; gap: 14px; max-width: 900px; }
.acc-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.acc-form-grid.three { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.acc-photos-card { max-width: 900px; margin-bottom: 14px; }
.acc-photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.acc-photo { display: grid; gap: 7px; width: 132px; margin: 0; }
.acc-photo-frame {
  position: relative; width: 132px; height: 94px; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
}
.acc-photo.is-cover .acc-photo-frame { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.acc-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-photo-cover {
  position: absolute; left: 6px; top: 6px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: rgba(6,7,10,.8); color: var(--accent-2); border: 1px solid var(--accent-line);
}
.acc-photo-tools { display: flex; gap: 4px; align-items: center; }
.acc-photo-tools form { margin: 0; }
.acc-photo-btn {
  display: grid; place-items: center; cursor: pointer;
  width: 27px; height: 27px; padding: 0; border-radius: 7px;
  font-size: 12px; line-height: 1; color: var(--text-dim);
  border: 1px solid var(--line-2); background: var(--surface-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.acc-photo-btn:hover { color: var(--text); border-color: var(--accent-line); }
.acc-photo-btn.danger:hover { color: #f87171; border-color: rgba(239,68,68,.42); }
.acc-photo-add { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 0; }
.acc-photo-add input[type="file"] { flex: 1; min-width: 220px; margin: 0; }

.acc-radios { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.acc-radio {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer; margin: 0;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.acc-radio:hover { border-color: var(--line-2); }
.acc-radio input { margin: 2px 0 0; width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent); }
.acc-radio:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.acc-radio-body { display: grid; gap: 4px; }

.acc-block {
  position: relative; padding: 17px 18px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2);
}
.acc-block.locked { opacity: .78; border-style: dashed; }
.acc-block-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.acc-block-n {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); white-space: nowrap;
}
.acc-block-label {
  flex: 1; min-width: 150px; margin: 0 !important;
  background: var(--surface) !important; font-size: 12.5px !important;
}
.acc-block-x {
  margin-left: auto; cursor: pointer; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 7px; font-size: 17px; line-height: 1; color: var(--muted);
  border: 1px solid var(--line-2); background: var(--surface);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.acc-block-x:hover { color: #f87171; border-color: rgba(239,68,68,.4); }
.acc-sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 8px;
}
.acc-sub .req { color: var(--as-ok); letter-spacing: .04em; }
.acc-sub .opt { color: var(--faint); letter-spacing: .04em; }
.acc-save { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 30px; }

/* --- admin: derived creation date / standing on a stock block --- */
.acc-derived {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 2px; padding: 8px 12px; font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--as-ok-line); border-radius: var(--r-sm);
  background: var(--as-ok-soft);
}
.acc-derived b { color: var(--text); font-weight: 700; letter-spacing: .01em; }
.acc-derived-sep { color: var(--faint); }
.acc-derived-nitro b { color: var(--accent-2); }

/* --- admin: Nitro controls on a stock block --- */
.acc-nitro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc-nitro-check {
  display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important;
  cursor: pointer; font-size: 13px; color: var(--text-dim); user-select: none;
}
.acc-nitro-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.acc-nitro-until { margin: 0 !important; font-size: 11.5px; color: var(--muted); }
.acc-nitro-until input { margin: 4px 0 0; color-scheme: dark; }
.acc-bulk-ck-tag.nitro { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }

/* --- token check row + result message --- */
.acc-token-row { display: flex; gap: 8px; align-items: center; }
.acc-token-row input { flex: 1; margin: 0 !important; }
.acc-token-row [data-token-check] { flex-shrink: 0; white-space: nowrap; }
.acc-check-msg { display: block; min-height: 16px; margin: 8px 0 2px; font-size: 12px; color: var(--muted); }
.acc-check-msg.ok   { color: var(--as-ok); }
.acc-check-msg.warn { color: var(--as-warn); }
.acc-check-msg.err  { color: #f87171; }

/* --- admin: bulk paste card --- */
.acc-bulk {
  margin: 0 0 16px; border: 1px dashed var(--accent-line); border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--accent-soft), transparent 90%);
  overflow: hidden;
}
.acc-bulk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; cursor: pointer; user-select: none;
}
.acc-bulk-head b { color: var(--text); }
.acc-bulk-caret { color: var(--muted); transition: transform var(--dur) var(--ease); }
.acc-bulk[open] .acc-bulk-caret { transform: rotate(180deg); }
.acc-bulk-body { display: none; padding: 0 16px 16px; }
.acc-bulk[open] .acc-bulk-body { display: block; }
.acc-bulk-body textarea { font-family: var(--f-mono, "JetBrains Mono", monospace); font-size: 12.5px; }
.acc-bulk-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
#accBulkMsg { color: var(--as-ok); }

/* --- bulk token check preview --- */
.acc-bulk-check {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2);
}
.acc-bulk-check-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.acc-bulk-check-head b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.acc-bulk-check-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.acc-bulk-ck {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 7px; font-size: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.acc-bulk-ck.bad { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.07); }
.acc-bulk-ck-n {
  flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
  display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-2);
}
.acc-bulk-ck-id {
  flex: 1; min-width: 120px; font-family: var(--f-mono, "JetBrains Mono", monospace);
  color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-bulk-ck-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  color: var(--text-dim); border: 1px solid var(--line-2); background: var(--bg-2);
}
.acc-bulk-ck-tag.ok   { color: var(--as-ok); border-color: var(--as-ok-line); background: var(--as-ok-soft); }
.acc-bulk-ck-tag.warn { color: var(--as-warn); border-color: rgba(245,177,61,.3); background: rgba(245,177,61,.08); }
.acc-bulk-ck-tag.err  { color: #f87171; border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.1); }

/* --- admin: accounts orders --- */
.acc-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.acc-tab {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; color: var(--text-dim);
  border: 1px solid var(--line); background: var(--surface);
}
.acc-tab:hover { border-color: var(--line-2); color: var(--text); }
.acc-tab.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }

.acc-order { margin-bottom: 12px; }
.acc-order.needs { border-color: rgba(245,177,61,.32); }
.acc-order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.acc-order-id { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.acc-order-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.acc-order-buyer { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.acc-sent   { color: var(--as-ok); font-weight: 600; }
.acc-unsent { color: var(--as-warn); font-weight: 600; }
.acc-reveal { margin-top: 12px; }
.acc-reveal summary { cursor: pointer; font-size: 12.5px; color: var(--text-dim); }
.acc-admin-reveal summary { cursor: pointer; padding: 6px 0; }
.acc-admin-reveal summary b { color: var(--text); }
.acc-admin-reveal[open] summary { margin-bottom: 4px; }
.acc-cred-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 10px; }
.acc-cred { padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }
.acc-cred-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; display: flex; gap: 7px; align-items: baseline; }
.acc-cred-row { display: flex; gap: 10px; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.acc-cred-row span { color: var(--muted); flex-shrink: 0; }
.acc-cred-row code { color: var(--text); word-break: break-all; text-align: right; user-select: all; }
.acc-cred-note { margin-top: 7px; font-size: 11.5px; color: var(--faint); }
.acc-order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 13px; }
.acc-resend { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin: 0; }
.acc-resend input { margin: 0; min-width: 190px; }

/* --- narrow screens --- */
@media (max-width: 900px) {
  .as-detail { grid-template-columns: 1fr; }
  .as-buy { position: static; }
}
@media (max-width: 560px) {
  .as-bar { padding: 14px 16px; }
  .as-bar p { display: none; }
  .as-toolbar { gap: 8px; }
  .as-search { flex-basis: 100%; }
  .as-filters, .as-sort { flex: 1; }
  .as-sort { min-width: 0; }
  .ao-label { flex-basis: 100%; }
  .acc-form-grid, .acc-form-grid.three { grid-template-columns: 1fr; }
  .ao-creds, .as-grid, .acc-grid { grid-template-columns: 1fr; }
}

/* ---------- 21c. Priority claims: destructive actions -------------------
   `.btn-err` (the existing revoke tint) reads as "careful"; permanent deletion
   needs to read as "this one doesn't come back", so it gets a solid fill. */
.btn-danger {
  background: #7f1d1d; color: #fee2e2; border: 1px solid rgba(239,68,68,.45);
  font-weight: 700;
}
.btn-danger:hover { background: #991b1b; border-color: rgba(239,68,68,.7); color: #fff; }

.pc-listhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.pc-bulk { display: flex; gap: 7px; flex-wrap: wrap; }
.pc-bulk form { margin: 0; }

/* ---------- 22. Reduced motion ---------------------------------------- */
/* Removed the global "kill every animation" rule: Windows (Server especially)
   reports reduced-motion by default, which froze the vouch marquee, the live
   dots and every hover effect site-wide. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
