/* ============================================================
   Rayx Services — Nitro Claims
   Onyx UI · single muted accent · no rainbow, no glow
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #08090c;
  --bg-2:      #0b0d12;
  --surface:   #0e1117;
  --surface-2: #131722;
  --raised:    #171b27;
  --line:      #1d2230;
  --line-2:    #262c3d;

  /* Text */
  --text:      #e7e9ef;
  --text-dim:  #b2b7c5;
  --muted:     #7a8092;
  --faint:     #555a6a;

  /* Accent (single, muted indigo) */
  --accent:        #6366f1;
  --accent-2:      #818cf8;
  --accent-soft:   rgba(99,102,241,.14);
  --accent-line:   rgba(99,102,241,.32);

  /* Status (muted, not neon) */
  --ok:        #22c55e;
  --ok-soft:   rgba(34,197,94,.12);
  --warn:      #eab308;
  --warn-soft: rgba(234,179,8,.12);
  --err:       #ef4444;
  --err-soft:  rgba(239,68,68,.12);
  --info:      #38bdf8;
  --info-soft: rgba(56,189,248,.12);

  /* Radii / shadows */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.02) inset, 0 1px 2px rgba(0,0,0,.45);
  --shadow-md: 0 1px 0 rgba(255,255,255,.02) inset, 0 8px 24px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex; flex-direction: column;
}
main.container { flex: 1; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #a5b4fc; }
.muted { color: var(--muted); }
.dim   { color: var(--text-dim); }
.small { font-size: 12px; }
.mono  { font-family: "JetBrains Mono", ui-monospace, "SF Mono", monospace; font-size: 12.5px; }

h1, h2, h3, h4 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p  { margin: 0 0 12px; color: var(--text-dim); }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* Ambient backgrounds — barely-there, no neon */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(99,102,241,.08), transparent 70%);
  pointer-events: none;
}

/* ===== Nav ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,12,.78);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.brand-rayx { color: var(--text); }
.brand-services { color: var(--accent-2); }
.brand-x { color: var(--faint); margin: 0 2px; }
.brand-sub { color: var(--muted); margin-left: 8px; font-weight: 400; font-size: 12px; border-left: 1px solid var(--line); padding-left: 10px; }
.links { display: flex; align-items: center; gap: 6px; }
.links a {
  color: var(--text-dim);
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.links a.cta {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.links a.cta:hover { background: var(--accent-2); color: white; }
.links a.admin-link { color: var(--accent-2); }
.links a.ghost { border: 1px solid var(--line-2); color: var(--text-dim); }

/* ===== Container ===== */
.container { width: 100%; max-width: none; margin: 28px 0; padding: 0 36px; }
.container.narrow { max-width: 720px; padding: 0 24px; margin: 28px auto; }
.container.boxed { max-width: 1480px; margin: 28px auto; }
main.container { flex: 1 1 auto; width: 100%; }

/* ===== Hero ===== */
.hero { display: grid; gap: 18px; margin-bottom: 36px; }
.hero h1 { font-size: 44px; line-height: 1.05; margin: 4px 0 10px; font-weight: 700; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent-2); }
.hero-sub { display: block; margin-top: 10px; font-size: 18px; font-weight: 500; color: var(--text-dim); letter-spacing: -0.005em; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  box-shadow: 0 0 24px var(--accent-soft);
}
.lede { color: var(--text-dim); max-width: 660px; font-size: 15.5px; line-height: 1.6; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; max-width: 720px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.stat:hover { border-color: var(--accent-line); box-shadow: 0 0 24px var(--accent-soft); }
.stat .num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* Hero with logo (homepage) */
.hero-with-logo {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 24px;
  margin-bottom: 24px;
}
.hero-with-logo .hero-copy { order: 2; }
.hero-with-logo .hero-logo-wrap { order: 1; }
.hero-logo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
  perspective: 1200px;
}
.hero-logo {
  position: relative; z-index: 2;
  width: 100%; max-width: 560px;
  height: auto;
  filter:
    drop-shadow(0 20px 60px rgba(99,102,241,.35))
    drop-shadow(0 0 80px rgba(168,85,247,.25))
    drop-shadow(0 0 120px rgba(56,189,248,.18));
  transition: transform .25s cubic-bezier(.2,.7,.3,1.4), filter .25s ease;
  will-change: transform;
  transform-style: preserve-3d;
  animation: hero-float 6s ease-in-out infinite;
}
.hero-logo-wrap:hover .hero-logo {
  filter:
    drop-shadow(0 24px 70px rgba(99,102,241,.55))
    drop-shadow(0 0 100px rgba(168,85,247,.4))
    drop-shadow(0 0 150px rgba(56,189,248,.3));
}
.hero-logo-glow {
  position: absolute; z-index: 1;
  inset: 10%;
  background:
    radial-gradient(closest-side, rgba(99,102,241,.55), transparent 70%),
    radial-gradient(closest-side at 30% 50%, rgba(56,189,248,.35), transparent 70%),
    radial-gradient(closest-side at 70% 50%, rgba(236,72,153,.32), transparent 70%);
  filter: blur(30px);
  border-radius: 50%;
  animation: hero-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-logo-spark {
  position: absolute; z-index: 3;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 8px white,
    0 0 16px rgba(168,85,247,.9),
    0 0 32px rgba(99,102,241,.7);
  pointer-events: none;
  opacity: 0;
}
.hero-logo-spark.spark-1 { top: 20%; left: 20%; animation: spark 5s ease-in-out infinite; }
.hero-logo-spark.spark-2 { bottom: 22%; right: 24%; animation: spark 5s ease-in-out 2.2s infinite; }

@keyframes hero-pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-0.6deg); }
}
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(.6); }
  10%      { opacity: 1; transform: scale(1.4); }
  40%      { opacity: 0; transform: scale(.6); }
}

@media (max-width: 980px) {
  .hero-with-logo { grid-template-columns: 1fr; gap: 24px; padding: 16px 0; }
  .hero-with-logo .hero-logo-wrap { order: 1; min-height: 260px; }
  .hero-with-logo .hero-copy { order: 2; }
  .hero-logo { max-width: 360px; }
}

/* ===== Products ===== */
.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 24px 0 36px;
  max-width: 1180px;
  margin-left: auto; margin-right: auto;
}
.product {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 20px 18px;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
  --p-accent: var(--accent);
  --p-accent-2: var(--accent-2);
}
.product.t-random  { --p-accent: #7c3aed; --p-accent-2: #a78bfa; }
.product.t-boost   { --p-accent: #ec4899; --p-accent-2: #f0abfc; }
.product.t-yearly  { --p-accent: #06b6d4; --p-accent-2: #67e8f9; }

/* Maintenance / Locked state: hatch the card out and drop a Locked badge on top.
   Reusable across the storefront products and the loyalty rewards section. */
.product-locked, .maint-locked { filter: grayscale(.85); opacity: .7; }
.product-locked:hover { transform: none; box-shadow: none; }
.maint-locked { position: relative; }
.product-lock-overlay {
  content: ""; position: absolute; inset: 0; z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,.42) 0,
      rgba(0,0,0,.42) 12px,
      rgba(255,255,255,.06) 12px,
      rgba(255,255,255,.06) 24px
    );
  display: flex; align-items: center; justify-content: center;
}
.product-lock-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px; letter-spacing: .04em;
  color: #fff;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(15,17,25,.85);
  border: 1px solid var(--err);
  box-shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(239,68,68,.3);
  transform: rotate(-6deg);
}

/* Animated conic gradient halo (rotating glow border) */
.product::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--p-accent) 60deg,
    var(--p-accent-2) 90deg,
    transparent 180deg,
    transparent 360deg
  );
  opacity: 0; filter: blur(14px);
  animation: prod-spin 6s linear infinite;
  transition: opacity .35s ease;
}
.product:hover::before { opacity: .75; }

/* Inner subtle gradient wash */
.product::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(420px 200px at 50% -10%, color-mix(in srgb, var(--p-accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    0 0 0 1px color-mix(in srgb, var(--p-accent) 60%, transparent),
    0 0 40px color-mix(in srgb, var(--p-accent) 30%, transparent);
}

/* Hover shimmer sweep */
.product .shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.08) 50%, transparent 75%);
  transform: translateX(-110%);
  transition: transform .9s ease;
}
.product:hover .shimmer { transform: translateX(110%); }

/* Product header row with icon */
.product-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.product-icon-img {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: cover;
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--p-accent) 60%, transparent))
    drop-shadow(0 0 20px color-mix(in srgb, var(--p-accent) 30%, transparent));
  transition: transform .25s ease, filter .25s ease;
}
.product:hover .product-icon-img {
  transform: scale(1.12) rotate(-3deg);
  filter:
    drop-shadow(0 0 14px color-mix(in srgb, var(--p-accent) 80%, transparent))
    drop-shadow(0 0 28px color-mix(in srgb, var(--p-accent) 50%, transparent));
}

.product-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--p-accent) 30%, var(--line));
  background: color-mix(in srgb, var(--p-accent) 12%, transparent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--p-accent-2);
  text-transform: uppercase;
}
.product-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--p-accent);
  box-shadow: 0 0 8px var(--p-accent);
}
.product-tag.popular {
  background: color-mix(in srgb, var(--p-accent) 22%, transparent);
  color: white;
  animation: tag-pulse 2.2s ease-in-out infinite;
}

.product .name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--text);
  margin: 4px 0 2px;
  letter-spacing: -0.02em;
}
.price {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 28px; font-weight: 800;
  margin: 6px 0 4px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--p-accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--p-accent) 35%, transparent));
  transition: filter .25s ease;
}
.product:hover .price {
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--p-accent) 65%, transparent));
}
.price .per {
  -webkit-text-fill-color: var(--muted);
  font-size: 12px; margin-left: 6px; font-weight: 500;
  filter: none;
}
.product .desc { font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; min-height: 32px; line-height: 1.45; }
.product form { display: grid; gap: 10px; }
.product label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.product .btn {
  background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
  border-color: transparent;
}
.product .btn:hover {
  background: linear-gradient(135deg, var(--p-accent-2), var(--p-accent));
  box-shadow: 0 6px 24px color-mix(in srgb, var(--p-accent) 45%, transparent);
}

@keyframes prod-spin {
  to { transform: rotate(360deg); }
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p-accent) 40%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--p-accent) 0%, transparent); }
}

/* Product banner image at the top of the card */
.product-banner {
  position: relative;
  margin: -20px -20px 14px;
  height: 130px;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--p-accent) 25%, transparent), transparent 70%);
}
.product-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, var(--surface) 100%);
}
.product-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .3, 1), filter .35s ease;
  filter: saturate(1.05);
  animation: banner-breathe 7s ease-in-out infinite;
}
.product:hover .product-banner img {
  transform: scale(1.08) translateY(-4px);
  filter: saturate(1.2) brightness(1.05);
}
.product-banner .stars {
  position: absolute; inset: 0; pointer-events: none;
}
.product-banner .stars span {
  position: absolute;
  width: 3px; height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px white, 0 0 14px color-mix(in srgb, var(--p-accent-2) 80%, transparent);
  opacity: 0;
  animation: twinkle 3.5s ease-in-out infinite;
}
.product-banner .stars span:nth-child(1) { top: 22%; left: 18%; animation-delay: 0s; }
.product-banner .stars span:nth-child(2) { top: 45%; left: 82%; animation-delay: 1.1s; }
.product-banner .stars span:nth-child(3) { top: 70%; left: 28%; animation-delay: 2.0s; }
.product-banner .stars span:nth-child(4) { top: 30%; left: 60%; animation-delay: 0.7s; }
.product-banner .stars span:nth-child(5) { top: 60%; left: 50%; animation-delay: 1.6s; }

@keyframes banner-breathe {
  0%, 100% { transform: scale(1)    translateY(0); }
  50%      { transform: scale(1.03) translateY(-2px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5); }
  40%      { opacity: 1; transform: scale(1.4); }
  60%      { opacity: 1; transform: scale(1); }
}

/* Settings toggle switch */
.toggle-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  user-select: none;
  margin: 12px 0;
}
.toggle-row > input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.toggle-slider {
  flex: 0 0 44px;
  width: 44px; height: 24px; border-radius: 999px;
  background: var(--line-2);
  position: relative;
  transition: background .2s ease;
}
.toggle-slider::after {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  background: white; border-radius: 50%;
  top: 3px; left: 3px;
  transition: left .2s ease, background .2s ease, box-shadow .2s ease;
}
.toggle-row input:checked + .toggle-slider {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.toggle-row input:checked + .toggle-slider::after {
  left: 23px;
  box-shadow: 0 0 8px rgba(255,255,255,.45);
}
.toggle-label { display: grid; gap: 4px; font-weight: 500; color: var(--text); font-size: 14px; }
.toggle-label .muted { font-weight: 400; }

/* ===== Inputs ===== */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-family: inherit;
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface);
}
input::placeholder { color: var(--faint); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white; font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover {
  background: var(--accent-2); border-color: var(--accent-2);
  color: white; text-decoration: none;
  box-shadow: 0 4px 16px rgba(99,102,241,.25);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.small { padding: 6px 12px; font-size: 12.5px; }
.btn.tiny  { padding: 4px 10px; font-size: 11.5px; border-radius: 6px; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
}
.btn.ghost:hover { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn.danger { background: transparent; border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.btn.danger:hover { background: var(--err-soft); border-color: var(--err); color: #fecaca; }
.btn.discord { background: #5865F2; border-color: #5865F2; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; }
.btn.block { width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 30px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-soft);
}
.card h3 { font-size: 17px; }
.card h3 { margin: 0 0 14px; font-size: 15px; color: var(--text); font-weight: 600; }
.card label { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; font-weight: 500; }
.card .h-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }

/* ===== Auth card ===== */
.auth-wrap {
  max-width: 460px;
  margin: 64px auto;
  perspective: 1100px;
  animation: auth-rise .6s cubic-bezier(.22,.9,.3,1.15) both;
}
.auth-card {
  max-width: 640px; margin: 90px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 44px 40px 36px;
  box-shadow:
    var(--shadow-md),
    0 0 100px rgba(99,102,241,.16),
    0 0 0 1px var(--accent-soft);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  animation: auth-rise .55s cubic-bezier(.22,.9,.3,1.2) both;
}
/* Inside the tilt wrapper: the wrapper owns sizing + entrance, the card owns the tilt */
.auth-wrap .auth-card { max-width: none; margin: 0; animation: none; }
.auth-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 200px at 50% -50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  animation: auth-aura 6s ease-in-out infinite;
}
.auth-card::after {
  content: ""; position: absolute; inset: -1px; z-index: 0; pointer-events: none;
  border-radius: var(--r-xl);
  background: conic-gradient(from 0deg, transparent, var(--accent-line), transparent 50%, var(--accent-line), transparent);
  opacity: .25;
  filter: blur(20px);
  animation: auth-spin 10s linear infinite;
}
.auth-card > * { position: relative; z-index: 1; }
.auth-card.center { text-align: center; }

/* Header: floating badge + centered title */
.auth-head { text-align: center; }
.auth-badge {
  width: 54px; height: 54px; border-radius: 16px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 28px rgba(99,102,241,.45), 0 0 0 1px rgba(255,255,255,.1) inset;
  animation: badge-float 3.6s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}
.auth-card h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 0%, #c7d2fe 35%, #a5b4fc 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: auth-flow 5s linear infinite;
}
.auth-head p { margin: 0; font-size: 14px; }

.auth-card form { display: grid; gap: 18px; margin-top: 28px; }
.auth-card label {
  display: grid; gap: 8px; font-size: 13px;
  color: var(--text-dim); font-weight: 500;
  transition: color .2s ease;
}
.auth-card label:focus-within { color: var(--accent-2); }
.auth-card input {
  padding: 13px 16px; font-size: 15px;
  border-radius: var(--r-md);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.auth-card input:hover { border-color: var(--line-2); }
.auth-card input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 30px -12px rgba(99,102,241,.5);
  transform: translateY(-1px);
}

/* Inputs with a leading icon */
.input-wrap { position: relative; }
.input-wrap .field-icon {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--faint); pointer-events: none;
  display: flex;
  transition: color .2s ease, filter .2s ease;
}
.input-wrap input { padding-left: 46px; }
.input-wrap:focus-within .field-icon {
  color: var(--accent-2);
  filter: drop-shadow(0 0 6px var(--accent-line));
}

/* Show / hide password */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  padding: 8px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: var(--accent-2); background: var(--accent-soft); }
.pw-toggle.on { color: var(--accent); }
.pw-toggle.on svg { filter: drop-shadow(0 0 6px var(--accent-line)); }

/* Password strength meter (register) */
.pw-meter {
  display: grid; gap: 6px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease;
}
.pw-meter.show { max-height: 44px; opacity: 1; }
.pw-meter-bars { display: flex; gap: 6px; }
.pw-meter-bars span {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--line-2);
  transition: background .35s ease, box-shadow .35s ease;
}
.pw-meter[data-score="1"] .pw-meter-bars span:nth-child(1)     { background: var(--err); }
.pw-meter[data-score="2"] .pw-meter-bars span:nth-child(-n+2)  { background: var(--warn); }
.pw-meter[data-score="3"] .pw-meter-bars span:nth-child(-n+3)  { background: var(--accent-2); }
.pw-meter[data-score="4"] .pw-meter-bars span                  { background: var(--ok); box-shadow: 0 0 10px rgba(34,197,94,.45); }
.pw-meter-label { font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }
.pw-meter[data-score="4"] .pw-meter-label { color: var(--ok); }

/* Buttons: lift on hover, press down on click, shine sweep, ripple */
.auth-card .btn {
  padding: 15px 20px; font-size: 15px; margin-top: 6px;
  border-radius: var(--r-md);
  position: relative; overflow: hidden;
  transition:
    transform .18s cubic-bezier(.34,1.56,.64,1),
    box-shadow .2s ease,
    background .15s ease, border-color .15s ease;
}
.auth-card .btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(99,102,241,.55); }
.auth-card .btn:active { transform: translateY(1px) scale(.98); box-shadow: 0 3px 10px -4px rgba(99,102,241,.4); }
.auth-card .btn.discord:hover { box-shadow: 0 12px 28px -6px rgba(88,101,242,.6); }
.auth-card .btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.auth-card .btn:hover::after { transform: translateX(100%); }
.auth-card .btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0); pointer-events: none;
  animation: ripple-out .6s ease-out forwards;
}
@keyframes ripple-out { to { transform: scale(3.2); opacity: 0; } }

/* Cursor-tracking spotlight */
.auth-card { --mx: 50%; --my: 0%; }
.auth-card .spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(129,140,248,.18), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.auth-card:hover .spotlight { opacity: 1; }

/* Staggered entrance for form fields */
.auth-head { animation: field-in .5s cubic-bezier(.22,.9,.3,1.2) .05s both; }
.auth-card form label { animation: field-in .5s cubic-bezier(.22,.9,.3,1.2) both; }
.auth-card form label:nth-of-type(1) { animation-delay: .12s; }
.auth-card form label:nth-of-type(2) { animation-delay: .2s; }
.auth-card form .btn { animation: field-in .5s cubic-bezier(.22,.9,.3,1.2) .28s both; }
.auth-card .or { animation: field-in .5s cubic-bezier(.22,.9,.3,1.2) .36s both; }
.auth-card > p.muted.small:last-child { animation: field-in .5s cubic-bezier(.22,.9,.3,1.2) .52s both; }

@keyframes field-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Discord button glow pulse */
.auth-card .btn.discord { animation: field-in .5s cubic-bezier(.22,.9,.3,1.2) .42s both, discord-pulse 2.6s ease-in-out .9s infinite; }
@keyframes discord-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88,101,242,.35); }
  50%      { box-shadow: 0 0 24px 4px rgba(88,101,242,.35); }
}

/* Password-toggle click feedback */
.pw-toggle svg { transition: transform .2s ease; }
.pw-toggle:active svg { transform: scale(.82); }

/* Error flash shake */
.flash-error { animation: shake-x .4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake-x {
  10%, 90%      { transform: translateX(-1px); }
  20%, 80%      { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60%      { transform: translateX(4px); }
}

/* Submit loading spinner */
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
  z-index: 2;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes auth-aura {
  0%, 100% { transform: translateY(-4px); opacity: .9; }
  50%      { transform: translateY(4px);  opacity: 1; }
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
@keyframes auth-flow {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}
.auth-card .or { text-align: center; color: var(--faint); margin: 26px 0 22px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.auth-card .or::before, .auth-card .or::after { content: ""; display: inline-block; width: 100px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 10px; }

/* ===== Terminal (live feed) ===== */
.terminal-wrap { margin: 32px 0; }
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.terminal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.t-title {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em; color: var(--text-dim);
  font-weight: 600; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  cursor: default;
  transition: color .2s ease, text-shadow .2s ease, letter-spacing .25s ease;
}
.t-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft);
  animation: pulse 2s ease-in-out infinite;
}
.t-title .t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent-2);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
.terminal-header:hover .t-title {
  color: var(--accent-2);
  text-shadow:
    0 0 8px rgba(129,140,248,.65),
    0 0 16px rgba(129,140,248,.35);
  letter-spacing: 0.1em;
}
.terminal-header:hover .t-title::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent);
}
@keyframes blink {
  0%, 50%  { opacity: 1; }
  51%, 100%{ opacity: 0; }
}
.t-dots { display: flex; gap: 6px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; opacity: .55; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }

.terminal-body {
  padding: 12px 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  height: 380px; overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.terminal.mini .terminal-body { height: 460px; padding: 16px 22px; }
.terminal.mini .claim-row { padding: 8px 8px; font-size: 14px; }
.terminal.mini .claim-icon.nitro-icon img { width: 26px; height: 26px; }
.terminal-body::-webkit-scrollbar { width: 8px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }

/* Terminal-styled live feed rows */
.claim-row {
  display: grid; grid-template-columns: 22px 1fr auto;
  gap: 10px; align-items: center;
  padding: 6px 8px;
  font-size: 13.5px;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  animation: fadein .35s ease;
  border-radius: 4px;
}
.claim-row:hover { background: rgba(255,255,255,.025); }
.claim-row.new {
  background: linear-gradient(90deg, rgba(124,58,237,.18) 0%, transparent 80%);
  animation: highlight 1.6s ease-out;
}
.claim-icon {
  font-size: 15px; line-height: 1; text-align: center;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 6px currentColor);
}
.claim-icon.nitro-icon { filter: none; }
.claim-icon.nitro-icon img {
  display: block;
  width: 22px; height: 22px;
  border-radius: 5px;
  object-fit: cover;
  filter:
    drop-shadow(0 0 6px rgba(168,85,247,.55))
    drop-shadow(0 0 12px rgba(99,102,241,.35));
  transition: transform .2s ease, filter .2s ease;
}
.claim-row:hover .claim-icon.nitro-icon img {
  transform: scale(1.18);
  filter:
    drop-shadow(0 0 10px rgba(168,85,247,.85))
    drop-shadow(0 0 20px rgba(99,102,241,.5));
}
.claim-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: inline-flex; align-items: baseline; flex-wrap: nowrap; gap: 8px;
}
.claim-time {
  color: #6b7280;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}
.word { display: inline; line-height: 1.4; }
.word.w1 { color: #e5e9f5; font-weight: 600; }
.word.w2 { color: #fbbf24; font-weight: 600; }
.word.w3 { color: #94a3b8; }
.word.product {
  color: #c084fc;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(192,132,252,.45);
}
.word.duration {
  color: #fde047;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(253,224,71,.35);
}
.word.user {
  color: #67e8f9;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(103,232,249,.45);
  cursor: pointer;
}
.word.user:hover { color: #a5f3fc; text-shadow: 0 0 16px rgba(165,243,252,.7); }

@keyframes highlight {
  0%   { box-shadow: 0 0 0 0 var(--accent-line); }
  60%  { box-shadow: 0 0 0 3px var(--accent-line); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ===== Profile layout (sidebar + main, full screen) ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: none;
}
.profile-main { min-width: 0; width: 100%; }
.profile-main .prof-section { width: 100%; }
.profile-side {
  position: sticky; top: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 16px;
  box-shadow: var(--shadow-md);
}
.profile-side .side-user {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.profile-side .side-user .avatar,
.profile-side .side-user img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-side .side-user .avatar {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700; font-size: 20px;
}
.profile-side .side-user .who {
  font-size: 15px; font-weight: 700; color: var(--text);
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-side .side-user .who-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.profile-side .side-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
  padding: 14px 14px 8px;
}
.profile-side a, .profile-side button.side-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 14.5px; font-weight: 500;
  margin-bottom: 3px;
  border: 0; background: transparent;
  width: 100%; text-align: left;
  cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.profile-side a:hover, .profile-side button.side-btn:hover {
  background: rgba(255,255,255,.04); color: var(--text);
  text-decoration: none; transform: translateX(2px);
}
.profile-side a.active, .profile-side button.side-btn.active {
  background: var(--accent-soft); color: var(--accent-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.profile-side a .icon, .profile-side button.side-btn .icon {
  width: 18px; opacity: .8; text-align: center;
}
.profile-side .count {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-dim);
}
.profile-main { min-width: 0; }

/* ===== Profile head ===== */
.profile-head {
  display: flex; align-items: center; gap: 28px;
  padding: 40px 48px; margin-bottom: 28px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px var(--accent-soft),
    0 0 60px rgba(99,102,241,.08);
  position: relative;
  overflow: hidden;
}
.profile-head::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.prof-avatar img, .avatar-fallback {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 32px rgba(0,0,0,.4);
}
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800; font-size: 40px;
}
.profile-head h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.025em; }
.profile-head .meta { color: var(--text-dim); font-size: 15px; }
.profile-head .meta code { color: var(--text-dim); font-size: 13px; }
.profile-head > div { position: relative; z-index: 1; }

.order {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin: 14px 0;
  background: var(--bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.order:hover { border-color: var(--accent-line); background: var(--surface-2); }
.o-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.o-head b { font-weight: 700; font-size: 16px; }
.o-head .price-tag { color: var(--text); font-weight: 600; }
.redeem-form { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.redeem-form label { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); font-weight: 500; }
.redeem-form input, .redeem-form select { padding: 11px 13px; font-size: 14px; }
.redeem-form .btn { padding: 11px 18px; font-size: 14px; margin-top: 4px; }
details > summary {
  cursor: pointer; user-select: none;
  font-size: 13px; color: var(--text-dim);
  padding: 8px 0;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--muted); }
details[open] > summary::before { content: "▾ "; }

/* ===== Status pills ===== */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text-dim);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status-pending { color: #fde68a; border-color: rgba(234,179,8,.3); background: var(--warn-soft); }
.status-pending::before { background: var(--warn); }
.status-confirming, .status-confirmed, .status-sending {
  color: #7dd3fc; border-color: rgba(56,189,248,.3); background: var(--info-soft);
}
.status-confirming::before, .status-confirmed::before, .status-sending::before { background: var(--info); }
.status-finished, .status-paid {
  color: #86efac; border-color: rgba(34,197,94,.35); background: var(--ok-soft);
}
.status-finished::before, .status-paid::before { background: var(--ok); }
.status-failed, .status-expired, .status-cancelled, .status-refunded {
  color: #fca5a5; border-color: rgba(239,68,68,.3); background: var(--err-soft);
}
.status-failed::before, .status-expired::before, .status-cancelled::before, .status-refunded::before { background: var(--err); }
.badge.ok {
  background: var(--ok-soft); color: #86efac;
  padding: 2px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Flash ===== */
.flash-wrap { display: grid; gap: 8px; margin-bottom: 18px; }
.flash {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 13px;
  background: var(--surface);
}
.flash-ok      { background: var(--ok-soft);   border-color: rgba(34,197,94,.32);  color: #bbf7d0; }
.flash-error   { background: var(--err-soft);  border-color: rgba(239,68,68,.32);  color: #fecaca; }
.flash-warning { background: var(--warn-soft); border-color: rgba(234,179,8,.32);  color: #fde68a; }

/* ===== Admin layout ===== */
.admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.admin-side {
  position: sticky; top: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 14px 12px;
}
.admin-side .side-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
  padding: 10px 12px 8px;
}
.admin-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 14px; font-weight: 500;
  margin-bottom: 2px;
}
.admin-side a:hover { background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; }
.admin-side a.active { background: var(--accent-soft); color: var(--accent-2); }
.admin-side a .icon { width: 18px; opacity: .7; text-align: center; }
.admin-main { min-width: 0; }
.admin-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.admin-h h2 { margin: 0; font-size: 24px; }

/* KPI grid */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-bottom: 36px;
  width: 100%;
}
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .kpis { grid-template-columns: 1fr; } }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 34px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 40%);
  opacity: .55;
}
.kpi > * { position: relative; z-index: 1; }
.kpi:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 12px 32px rgba(99,102,241,.18);
}
.kpi .lbl {
  color: var(--muted); font-size: 12px;
  font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kpi .num {
  font-size: 48px; font-weight: 800;
  margin-top: 14px; letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.kpi-money .num { color: #86efac; }
.kpi-money { border-color: rgba(34,197,94,.3); }
.kpi-money::after { background: linear-gradient(135deg, rgba(34,197,94,.18) 0%, transparent 40%); }
.kpi-money:hover { box-shadow: var(--shadow-md), 0 12px 32px rgba(34,197,94,.2); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  table-layout: auto;
}
.tbl.wide { width: 100%; }
.tbl th, .tbl td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl th {
  color: var(--muted); font-weight: 600;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-2);
  position: sticky; top: 0;
}
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.tbl select {
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-dim); padding: 6px 10px;
  border-radius: 6px; font-size: 12.5px;
  width: auto;
}
/* Allow horizontal scroll on narrow screens without breaking full-width on wide ones */
.card:has(> .tbl.wide), .card:has(> table.tbl.wide) { overflow-x: auto; }

.inline { display: inline; }

/* Logs */
.logs-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px; font-size: 13px;
}
.logs-list li {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.log-type {
  display: inline-block; padding: 1px 8px;
  border-radius: 4px; font-size: 10px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-right: 8px;
  border: 1px solid transparent;
}
.t-payment      { background: var(--ok-soft);   color: #86efac; border-color: rgba(34,197,94,.25); }
.t-payment_error,
.t-auth_fail,
.t-security     { background: var(--err-soft);  color: #fca5a5; border-color: rgba(239,68,68,.25); }
.t-redeem       { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.t-auth         { background: var(--info-soft); color: #7dd3fc; border-color: rgba(56,189,248,.25); }
.t-admin        { background: var(--warn-soft); color: #fde68a; border-color: rgba(234,179,8,.25); }
.t-claim_link   { background: rgba(255,255,255,.04); color: var(--text-dim); border-color: var(--line); }

.search {
  display: flex; gap: 8px; margin-bottom: 14px;
  align-items: stretch;
}
.search input, .search select { flex: 1; max-width: none; }
.search .btn { flex: 0 0 auto; }

/* Tabs */
.tabs {
  display: flex; gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 14px; font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  border-radius: 6px 6px 0 0;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.03); }
.tab.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
  background: rgba(99,102,241,.06);
}
.tab .count {
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line);
}
.tab.active .count {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: var(--accent-line);
}

/* Order row expand */
.row-expand {
  background: transparent; border: 0;
  color: var(--muted); font-size: 13px;
  cursor: pointer; padding: 4px 8px;
  border-radius: 6px; font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.row-expand:hover { background: rgba(255,255,255,.05); color: var(--accent-2); }
.order-row { cursor: pointer; }
.order-row.expanded { background: var(--accent-soft); }
.order-row.expanded .row-expand { color: var(--accent-2); }
.order-details td { background: var(--bg-2); padding: 18px 24px; }
.detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.detail-block {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.detail-block .dl {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.detail-block .dv {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
}
.copy-mini {
  background: var(--raised); border: 1px solid var(--line-2);
  color: var(--text-dim); font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px;
  cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.copy-mini:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent-line); }
.copy-mini.copied { background: var(--ok-soft); color: #86efac; border-color: rgba(34,197,94,.4); }
@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ===== Payment page ===== */
.pay-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 940px; margin: 12px auto; }
.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.pay-card h2 { font-size: 18px; margin-bottom: 4px; }
.pay-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pay-amount {
  display: flex; align-items: baseline; gap: 8px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.pay-amount .val {
  font-family: "JetBrains Mono", monospace;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
  word-break: break-all;
}
.pay-amount .cur { color: var(--accent-2); font-weight: 600; font-size: 14px; }
.pay-amount .usd { margin-left: auto; color: var(--muted); font-size: 12px; }

.pay-address {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.pay-address .addr {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px; color: var(--text);
  word-break: break-all; flex: 1;
}
.copy-btn {
  flex: 0 0 auto;
  background: var(--raised); border: 1px solid var(--line-2);
  color: var(--text-dim); font-size: 12px;
  padding: 6px 10px; border-radius: 6px;
  cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.copy-btn:hover { background: var(--surface-2); color: var(--text); }
.copy-btn.copied { color: #86efac; border-color: rgba(34,197,94,.4); background: var(--ok-soft); }

.qr-box {
  display: flex; align-items: center; justify-content: center;
  background: white;
  padding: 16px; border-radius: var(--r-md);
  margin: 0 auto 14px; width: fit-content;
}
.qr-box img { display: block; width: 220px; height: 220px; }

.pay-timer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  font-size: 13px;
}
.pay-timer .label { color: var(--muted); }
.pay-timer .clock {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700; color: var(--text); font-size: 15px;
  letter-spacing: 0.02em;
}
.pay-timer .clock.warn { color: var(--warn); }
.pay-timer .clock.expired { color: var(--err); }

.pay-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  font-size: 13px;
}
.pay-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-soft);
  animation: pulse 1.6s ease-in-out infinite;
}
.pay-status.paid    { background: var(--ok-soft);   border-color: rgba(34,197,94,.35); }
.pay-status.paid    .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: none; }
.pay-status.failed  { background: var(--err-soft);  border-color: rgba(239,68,68,.35); }
.pay-status.failed  .dot { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); animation: none; }

.pay-steps {
  display: grid; gap: 10px; margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.01);
}
.pay-steps h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.pay-steps ol { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 13px; }
.pay-steps li { margin: 4px 0; }

.pay-summary { display: grid; gap: 10px; font-size: 13px; }
.pay-summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-summary .row:last-child { border-bottom: 0; }
.pay-summary .row .k { color: var(--muted); }
.pay-summary .row .v { color: var(--text); font-weight: 500; }
.pay-summary .row.total .v { color: var(--accent-2); font-weight: 700; font-size: 16px; }

/* ===== Foot ===== */
.foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  color: var(--faint); font-size: 11px;
  letter-spacing: 0.02em;
  margin-top: 32px;
  background: rgba(0,0,0,.25);
}
.foot .brand-mini { color: var(--text-dim); font-weight: 500; }
.foot .sep { margin: 0 8px; color: var(--line-2); }
.foot .live { display: inline-flex; align-items: center; gap: 6px; }
.foot .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Boost progress (Nitro Yearly) ===== */
.boost-progress {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
}
.bp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim); margin-bottom: 8px;
}
.bp-count { font-family: "JetBrains Mono", monospace; color: var(--accent-2); font-weight: 700; }
.bp-bar {
  width: 100%; height: 8px;
  background: var(--surface-2);
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line);
}
.bp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width .4s ease;
  box-shadow: 0 0 12px var(--accent-line);
}

/* ===== Chat widget (bottom-right) ===== */
.chat-widget {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 80;
  display: flex; flex-direction: column-reverse; align-items: flex-end;
  gap: 10px;
  font-family: inherit;
}
.chat-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  box-shadow:
    0 8px 24px rgba(99,102,241,.45),
    0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  position: relative;
}
.chat-toggle:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,.55);
}
.chat-toggle-icon { font-size: 16px; }
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--err); color: white;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  border: 2px solid var(--bg);
  min-width: 18px; text-align: center;
}
.chat-panel {
  display: none;
  width: 380px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 60px rgba(0,0,0,.6),
    0 0 0 1px var(--accent-soft),
    0 0 60px rgba(99,102,241,.18);
  overflow: hidden;
  flex-direction: column;
}
.chat-widget.open .chat-panel { display: flex; animation: chat-pop .25s ease; }
.chat-widget.open .chat-toggle { background: var(--surface); color: var(--text); }
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
}
.chat-title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.chat-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.chat-x {
  background: transparent; border: 0;
  color: var(--muted); font-size: 22px;
  line-height: 1; cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
}
.chat-x:hover { background: rgba(255,255,255,.05); color: var(--text); }
.chat-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.chat-empty {
  margin: auto; text-align: center; color: var(--muted);
  padding: 30px 20px;
}
.chat-system {
  text-align: center; color: var(--muted);
  font-size: 12px; padding: 8px;
  border-top: 1px dashed var(--line);
}
.msg {
  max-width: 78%;
  padding: 10px 14px 8px;
  border-radius: 16px;
  font-size: 13.5px; line-height: 1.5;
  animation: chat-msg .22s ease;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(180deg, var(--accent) 0%, #4f46e5 100%);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
}
.msg.admin {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.msg-meta {
  font-size: 10.5px; opacity: .75;
  display: flex; gap: 6px; align-items: baseline;
  margin-bottom: 4px;
  font-weight: 500;
}
.msg.user .msg-meta { color: rgba(255,255,255,.85); }
.msg.user .msg-meta b { font-weight: 600; }
.msg.user .msg-meta .muted { color: rgba(255,255,255,.6) !important; }
.msg.admin .msg-meta b { color: var(--accent-2); }
.msg-body { white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 1.5; }
.chat-form {
  display: flex; gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.chat-form input[type=text] {
  flex: 1; padding: 10px 12px;
  font-size: 13.5px;
}
.chat-form .btn { padding: 10px 16px; font-size: 16px; }

@keyframes chat-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Vouches wall (bottom of home, rotating marquee) ---------- */
.vouches-wall {
  margin: 32px auto;
  max-width: 1200px;
  padding: 0 18px;
}
.vw-head { text-align: center; margin-bottom: 18px; }
.vw-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  background: linear-gradient(90deg, var(--accent-2), #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vw-viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  padding: 16px 0;
  perspective: 1200px;
}
.vw-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: vw-roll 38s linear infinite;
  transform-style: preserve-3d;
}
.vw-track.paused { animation-play-state: paused; }
@keyframes vw-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.vw-card {
  flex: 0 0 320px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.6);
  animation: vw-tilt 7s ease-in-out infinite;
  transform-origin: center;
}
.vw-card:nth-child(3n)   { animation-delay: -1.4s; }
.vw-card:nth-child(3n+1) { animation-delay: -3.1s; }
.vw-card:nth-child(3n+2) { animation-delay: -5.0s; }
@keyframes vw-tilt {
  0%, 100% { transform: rotateY(-6deg) rotateX(2deg) translateZ(0); }
  50%      { transform: rotateY(6deg) rotateX(-2deg) translateZ(12px); }
}
.vw-track.paused .vw-card { animation-play-state: paused; }

.vw-card-head { display: flex; align-items: center; gap: 10px; }
.vw-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
  background: var(--surface);
}
.vw-avatar.fallback {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent-2);
}
.vw-name { font-weight: 600; font-size: 13.5px; }
.vw-stars span { color: #44485a; font-size: 12px; letter-spacing: 1px; }
.vw-stars span.on { color: #fbbf24; }
.vw-prod { width: 26px; height: 26px; object-fit: contain; opacity: .85; }

.vw-body {
  font-size: 13.5px; line-height: 1.5; color: var(--text);
  white-space: pre-wrap; word-wrap: break-word;
  max-height: 5.6em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.vw-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--line); padding-top: 8px;
  font-size: 12px;
}
.vw-product-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124,58,237,.18);
  color: #c4b5fd;
  font-weight: 600; font-size: 11.5px;
}

/* legacy panel kept hidden (no longer used on cards) */
.vouches-panel { display: none; }

.vouch-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.vouch-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
  font-size: 13px;
}
.vouch-body {
  font-size: 13.5px; color: var(--text);
  line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.vouch-actions { margin-top: 8px; display: flex; gap: 6px; }

.stars-static span { color: #44485a; font-size: 14px; letter-spacing: 1px; }
.stars-static span.on { color: #fbbf24; }

/* Profile vouches form */
.vouch-form {
  display: grid; gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 12px;
}
.vouch-product { font-size: 14px; }
.vouch-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}
.rating-row {
  display: inline-flex; align-items: center; gap: 4px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.rating-row .star {
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 28px;
  line-height: 1;
  color: #3a3f54;
  cursor: pointer;
  transform-origin: center;
  transition: color .15s ease, transform .15s ease, text-shadow .15s ease, filter .15s ease;
  filter: drop-shadow(0 0 0 transparent);
}
.rating-row .star.on {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251,191,36,.55);
}
.rating-row .star.hover {
  color: #fde68a;
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 0 8px rgba(253,224,71,.55));
}
.rating-row .star:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.rating-row .rating-label {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: .3px;
  min-width: 64px;
}

/* ---------- Discount badge on product card ---------- */
.discount-banner {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed var(--p-accent, var(--accent-2));
  background: rgba(255,255,255,.03);
  display: grid; gap: 2px;
  font-size: 12.5px;
}
.discount-banner b { color: var(--p-accent-2, var(--accent-2)); }
.discount-banner .expiry { color: var(--text-dim); font-size: 11.5px; }

@keyframes chat-msg {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Admin ticket view */
.ticket-thread {
  height: 60vh; min-height: 360px;
  overflow-y: auto;
  padding: 18px 20px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.ticket-thread .msg { max-width: 70%; }
.ticket-input {
  display: flex; gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.ticket-input input[type=text] { flex: 1; padding: 12px 14px; font-size: 14px; }
.ticket-closed-msg {
  padding: 16px;
  text-align: center;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 720px) {
  .chat-widget { right: 12px; bottom: 12px; }
  .chat-panel { width: calc(100vw - 24px); height: 70vh; }
}

/* ===== Animations ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.92); }
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .products { grid-template-columns: 1fr 1fr; }
  .pay-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .products { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .grid2 { grid-template-columns: 1fr; }
  .nav { padding: 12px 18px; }
  .links a { padding: 6px 8px; font-size: 12.5px; }
  .brand-sub { display: none; }
  .container { padding: 0 16px; }
}

/* ===== Discord button ===== */
.hero-actions {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}
.btn-discord {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  background: #5865F2;
  color: white;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 16px rgba(88,101,242,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-discord::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-discord:hover {
  background: #4752c4;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(88,101,242,.6), 0 0 0 1px rgba(255,255,255,.06) inset;
  text-decoration: none;
}
.btn-discord:active { transform: translateY(0); }
.btn-discord svg { flex-shrink: 0; }

/* ===== Queue section ===== */
.queue-section {
  margin: 10px 0 32px;
  max-width: 680px;
}
.queue-inner {
  display: flex; align-items: center; gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.queue-inner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(99,102,241,.07) 0%, transparent 60%);
  pointer-events: none;
}
.queue-inner > * { position: relative; z-index: 1; }
.queue-emoji-wrap {
  flex-shrink: 0;
}
.queue-gif {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(99,102,241,.4), 0 4px 16px rgba(0,0,0,.4);
}
.queue-info { flex: 1; min-width: 0; }
.queue-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.queue-stats {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 14px;
}
.queue-stat { text-align: center; }
.queue-num {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); line-height: 1;
}
.queue-lbl {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}
.queue-divider {
  width: 1px; height: 36px;
  background: var(--line-2);
  flex-shrink: 0;
}
.priority-badge {
  font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.priority-buy-form {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.btn-priority {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none; border-radius: var(--r-md);
  font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 14px rgba(245,158,11,.4);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  letter-spacing: -0.01em;
}
.btn-priority:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,158,11,.55);
  filter: brightness(1.08);
}
.btn-priority:active { transform: translateY(0); }
.priority-active-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: var(--r-md);
  color: #fbbf24;
  font-size: 13px; font-weight: 600;
}

/* Admin priority claims card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-ok  { background: var(--ok-soft);  color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.badge-err { background: var(--err-soft); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.btn-err { background: var(--err-soft); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.btn-err:hover { background: rgba(239,68,68,.22); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

@media (max-width: 600px) {
  .queue-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .queue-gif { width: 48px; height: 48px; }
}

/* ===== Full Queue Section ===== */
.queue-wrap {
  margin: 8px 0 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.queue-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 14px;
  background: var(--bg-2);
}
.queue-head-left {
  display: flex; align-items: center; gap: 14px;
}
.queue-head-gif {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(99,102,241,.4);
}
.queue-my-status {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.qms-item { text-align: center; }
.qms-val {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); line-height: 1;
}
.qms-lbl { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.qms-sep { width: 1px; height: 32px; background: var(--line-2); }

/* Queue table */
.queue-table-wrap { overflow-x: auto; }
.queue-tbl {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.queue-tbl th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.queue-tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.queue-tbl tbody tr:last-child td { border-bottom: 0; }
.queue-tbl tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ===== Music Player ===== */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  transition: opacity .2s;
}
.music-player:hover { opacity: 1 !important; }
.music-btn {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-2);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
  flex-shrink: 0;
}
.music-btn:hover { background: var(--accent); color: #fff; }
.music-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.music-vol-icon { font-size: 13px; }
.music-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  outline: none;
  cursor: pointer;
}
.music-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  cursor: pointer;
}
.music-vol::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 0;
  cursor: pointer;
}
.music-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .music-label { display: none; }
  .music-vol { width: 60px; }
}

/* Highlight the logged-in user's row */
.queue-row-me td { background: rgba(99,102,241,.07); }
.queue-row-me:hover td { background: rgba(99,102,241,.11); }
/* Priority row */
.queue-row-priority td { background: rgba(245,158,11,.06); }
.queue-row-priority:hover td { background: rgba(245,158,11,.1); }

/* Position cell */
.queue-pos { width: 56px; }
.pos-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 12px; font-weight: 800;
}
.pos-top {
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid var(--accent-line);
}
.pos-priority {
  background: rgba(245,158,11,.18);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,.35);
  font-size: 14px;
}
.pos-num { color: var(--faint); font-size: 13px; font-weight: 700; padding-left: 4px; }

/* User cell */
.queue-user { display: flex; align-items: center; gap: 10px; }
.queue-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.queue-avatar.fallback {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-2);
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.queue-name { font-weight: 500; color: var(--text); }
.you-tag {
  display: inline-block; padding: 1px 7px;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--accent-line);
  border-radius: 999px; font-size: 10px; font-weight: 700;
  margin-left: 6px; text-transform: uppercase; letter-spacing: .06em;
}

/* Credits */
.credit-pill {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 10px;
  background: var(--raised); border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--text-dim);
}
.cr-done { color: var(--ok); }
.cr-sep  { color: var(--faint); margin: 0 1px; }
.cr-total { color: var(--text-dim); }

/* Status */
.status-priority {
  color: #fbbf24; font-weight: 700; font-size: 13px;
}
.status-normal {
  color: var(--muted); font-size: 13px;
}

/* Empty state */
.queue-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 48px 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .queue-head { flex-direction: column; align-items: flex-start; }
  .queue-my-status { gap: 12px; }
  .queue-tbl th:nth-child(4),
  .queue-tbl td:nth-child(4) { display: none; }
}

/* ================= Mobile polish (≤820px) ================= */
@media (max-width: 820px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .nav {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 12px;
  }
  .nav .links { flex-wrap: wrap; gap: 8px; row-gap: 6px; }
  .nav .links a { padding: 6px 10px; font-size: 13px; }
  .brand-sub { display: none; }

  /* Profile: side becomes a horizontal scroll tab-bar */
  .profile-layout { grid-template-columns: 1fr; gap: 14px; }
  .profile-side {
    position: static;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    scrollbar-width: none;
  }
  .profile-side::-webkit-scrollbar { display: none; }
  .profile-side .side-user { flex-shrink: 0; margin: 0 6px 0 0; padding-right: 10px; border-right: 1px solid var(--line); }
  .profile-side .side-label { display: none; }
  .profile-side a,
  .profile-side button.side-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .profile-side .count { margin-left: 6px; }

  /* Product grid single column */
  .products, .product-grid, .product-cards { grid-template-columns: 1fr !important; }

  /* Queue table: hide the timestamp column on very narrow screens too */
  .queue-tbl { font-size: 12px; }
  .queue-tbl th, .queue-tbl td { padding: 8px 6px; }
  .queue-avatar { width: 26px; height: 26px; }

  /* Pay page: stack columns */
  .pay-wrap { grid-template-columns: 1fr !important; }

  /* Auth card: full width with breathing room */
  .auth-wrap { max-width: 100%; margin: 16px auto; }
  .auth-card { width: 100%; max-width: 100%; padding: 28px 20px 24px; margin: 12px auto; }
  .auth-card h2 { font-size: 24px; }
  .auth-badge { width: 46px; height: 46px; border-radius: 13px; }

  /* Redeem entry row: stack labels */
  .redeem-entry-row { font-size: 0.78rem !important; }

  /* Flash + card padding */
  .card { padding: 14px !important; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .num { font-size: 22px; }

  /* Music player: shrink to icon-only */
  .music-player { transform: scale(0.85); transform-origin: bottom right; }
}

@media (max-width: 480px) {
  .nav .brand { font-size: 14px; }
  .brand-x { display: none; }
  .queue-tbl th:nth-child(3),
  .queue-tbl td:nth-child(3) { display: none; } /* hide credits col on very narrow */
  .foot { flex-direction: column; gap: 4px; padding: 12px; font-size: 12px; }
}

/* ============================================================
   Profile v2 — rewards, top seller, tags
   ============================================================ */

/* Small identity chips under the profile head name */
.prof-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px; font-weight: 600;
}
.prof-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.prof-tag-gold {
  background: linear-gradient(135deg, rgba(250,204,21,.14), rgba(245,158,11,.08));
  border-color: rgba(250,204,21,.35);
  color: #fde68a;
}
.prof-tag-tier {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-2);
}

/* Reward-flavoured KPI variant */
.kpi-gold { border-color: rgba(250,204,21,.35); }
.kpi-gold::after {
  background: linear-gradient(135deg, rgba(250,204,21,.18) 0%, transparent 45%);
}
.kpi-gold .num { color: #fde68a; }
.kpi-gold:hover { box-shadow: var(--shadow-md), 0 12px 32px rgba(250,204,21,.18); }

/* Rewards mini-grid on overview */
.rewards-hero {
  background:
    linear-gradient(135deg, rgba(250,204,21,.05) 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
}
.reward-flare {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(250,204,21,.14);
}
.reward-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}
@media (max-width: 720px) { .reward-mini-grid { grid-template-columns: 1fr; } }
.reward-mini {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--bg-2);
  display: grid; gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.reward-mini:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.reward-mini.is-claimed {
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(135deg, rgba(34,197,94,.06), var(--bg-2));
}
.reward-mini.is-ready {
  border-color: rgba(250,204,21,.45);
  background: linear-gradient(135deg, rgba(250,204,21,.08), var(--bg-2));
  box-shadow: 0 0 0 1px rgba(250,204,21,.18);
}
.reward-mini-head { display: flex; justify-content: space-between; align-items: center; }
.reward-mini-label { font-size: 13px; font-weight: 700; color: var(--text); }
.reward-mini-goal {
  font-size: 12px; font-weight: 700;
  color: #fde68a;
  padding: 2px 8px;
  background: rgba(250,204,21,.12);
  border-radius: 999px;
}
.reward-mini-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--muted);
}
.reward-mini-state {
  font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.reward-mini-state.ok { background: var(--ok-soft); color: #86efac; }
.reward-mini-state.ready { background: rgba(250,204,21,.16); color: #fde68a; }

/* Rewards page — full track + cards */
.credit-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250,204,21,.16), rgba(245,158,11,.06));
  border: 1px solid rgba(250,204,21,.35);
  color: #fde68a;
  font-size: 12.5px; font-weight: 600;
}
.credit-chip-num {
  font-size: 15px; font-weight: 800; color: #fff59d;
  letter-spacing: -0.02em;
}
.reward-track {
  margin: 18px 4px 22px;
  padding: 20px 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.reward-track-bar {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  margin: 0 12px;
}
.reward-track-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  border-radius: 999px;
  transition: width .4s ease;
  box-shadow: 0 0 12px rgba(250,204,21,.35);
}
.reward-track-node {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
}
.reward-track-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--faint);
  z-index: 2;
}
.reward-track-node.is-claimed .reward-track-dot {
  background: #86efac; border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.reward-track-node.is-ready .reward-track-dot {
  background: #fde68a; border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250,204,21,.18);
  animation: pulse-gold 1.6s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 4px rgba(250,204,21,.14); }
  50%      { box-shadow: 0 0 0 8px rgba(250,204,21,.28); }
}
.reward-track-label {
  position: absolute; top: 14px;
  font-size: 10.5px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.reward-track-meta {
  display: flex; justify-content: space-between;
  margin-top: 30px;
  font-size: 12.5px; color: var(--text-dim);
}
.reward-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}
@media (max-width: 900px) { .reward-cards { grid-template-columns: 1fr; } }
.reward-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--bg-2);
  display: grid; gap: 10px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.reward-card:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.reward-card.is-ready {
  border-color: rgba(250,204,21,.45);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(250,204,21,.12), transparent 60%),
    var(--bg-2);
  box-shadow: 0 0 0 1px rgba(250,204,21,.22), 0 12px 32px rgba(250,204,21,.12);
}
.reward-card.is-claimed {
  border-color: rgba(34,197,94,.3);
  background: linear-gradient(135deg, rgba(34,197,94,.06), var(--bg-2));
  opacity: .96;
}
.reward-card-top {
  display: flex; justify-content: space-between; align-items: center;
}
.reward-card-label {
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: -.01em;
}
.reward-card-tier {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.reward-card.is-ready .reward-card-tier,
.reward-card.is-claimed .reward-card-tier {
  color: #fde68a; background: rgba(250,204,21,.12); border-color: rgba(250,204,21,.32);
}
.reward-card-reward {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 0 4px;
  border-bottom: 1px dashed var(--line);
}
.reward-card-num {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  color: #fde68a;
  line-height: 1;
}
.reward-card-unit {
  font-size: 13px; color: var(--text-dim); font-weight: 600;
}
.reward-card-goal { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.reward-card-goal b { color: var(--text); font-weight: 700; }
.reward-card-progress {
  font-size: 11px; color: var(--muted);
  display: flex; justify-content: flex-end;
  margin-top: -4px;
}
.reward-card .btn.block { margin-top: 6px; }

.reward-log {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; gap: 6px;
}
.reward-log li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 13px;
}
.reward-log-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(250,204,21,.12);
  color: #fde68a;
  border: 1px solid rgba(250,204,21,.28);
}
.reward-log li > span:nth-child(2) { flex: 1; color: var(--text-dim); }

/* Top Seller card + leaderboard */
.top-seller-card {
  background:
    linear-gradient(135deg, rgba(250,204,21,.06) 0%, transparent 50%),
    var(--surface);
  border: 1px solid rgba(250,204,21,.24);
}
.trophy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111; font-size: 14px;
  box-shadow: 0 0 0 3px rgba(250,204,21,.14);
}
.leaderboard {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; gap: 8px;
}
.leaderboard li {
  display: grid;
  grid-template-columns: 38px 34px 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  transition: transform .15s ease, border-color .15s ease;
}
.leaderboard li:hover { transform: translateX(2px); border-color: var(--accent-line); }
.leaderboard li.is-first {
  border-color: rgba(250,204,21,.4);
  background: linear-gradient(135deg, rgba(250,204,21,.08), var(--bg-2));
  box-shadow: 0 0 0 1px rgba(250,204,21,.15);
}
.leaderboard li.is-me {
  outline: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-2));
}
.lb-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.leaderboard li.is-first .lb-rank { color: #fde68a; }
.lb-av {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
}
.lb-av-fb {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 13px;
}
.lb-name {
  font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-claims { font-size: 12.5px; color: var(--text-dim); }
.lb-claims b { color: var(--text); font-weight: 700; margin-right: 3px; }
.lb-spent { min-width: 60px; text-align: right; }

@media (max-width: 640px) {
  .leaderboard li { grid-template-columns: 30px 30px 1fr auto; gap: 8px; padding: 8px 10px; }
  .leaderboard .lb-spent { display: none; }
}

/* Top Seller nav link */
.nav .links a.top-seller-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fde68a;
  background: linear-gradient(135deg, rgba(250,204,21,.14), rgba(245,158,11,.05));
  border: 1px solid rgba(250,204,21,.35);
  padding: 6px 12px; border-radius: 999px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.nav .links a.top-seller-link:hover {
  color: #fff4b8;
  border-color: rgba(250,204,21,.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250,204,21,.18);
  text-decoration: none;
}
.nav .links a.top-seller-link .ts-trophy {
  filter: drop-shadow(0 0 4px rgba(250,204,21,.55));
}

/* Top Seller page */
.ts-page { display: grid; gap: 20px; }

.ts-hero {
  position: relative;
  padding: 42px 34px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(800px 320px at 50% -80%, rgba(250,204,21,.18), transparent 60%),
    linear-gradient(180deg, rgba(250,204,21,.05), transparent 60%),
    var(--surface);
  border: 1px solid rgba(250,204,21,.28);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ts-hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 20% 100%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(400px 200px at 80% 0%, rgba(250,204,21,.14), transparent 60%);
  pointer-events: none;
}
.ts-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.ts-hero-badge {
  width: 74px; height: 74px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111; font-size: 34px;
  box-shadow: 0 0 0 6px rgba(250,204,21,.14), 0 16px 40px rgba(250,204,21,.28);
}
.ts-hero h1 {
  font-size: 36px; letter-spacing: -0.03em; margin: 0 0 12px;
  background: linear-gradient(135deg, #fde68a 0%, #facc15 60%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ts-hero-sub { color: var(--text-dim); font-size: 15px; margin: 0 auto 18px; max-width: 560px; }
.ts-hero-sub b { color: var(--text); }
.ts-hero-meta {
  display: inline-flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  font-size: 12.5px; color: var(--muted);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.ts-hero-meta .ts-mine b { color: #fde68a; }
.ts-hero-meta .ts-mine { color: var(--text-dim); }

/* Podium */
.ts-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 16px;
}
@media (max-width: 720px) { .ts-podium { grid-template-columns: 1fr; } }
.ts-podium-slot {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  display: grid; gap: 8px; justify-items: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.ts-podium-slot:hover { transform: translateY(-3px); }
.ts-podium-1 {
  order: 2;
  padding: 34px 22px 26px;
  border-color: rgba(250,204,21,.5);
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(250,204,21,.16), transparent 60%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(250,204,21,.28), 0 20px 46px rgba(250,204,21,.22);
}
.ts-podium-2 { order: 1; border-color: rgba(203,213,225,.35); }
.ts-podium-3 { order: 3; border-color: rgba(217,119,6,.4); }
@media (max-width: 720px) {
  .ts-podium-1, .ts-podium-2, .ts-podium-3 { order: initial; }
}
.ts-podium-rank {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--muted); letter-spacing: -0.02em;
}
.ts-podium-1 .ts-podium-rank { color: #fde68a; font-size: 30px; }
.ts-podium-2 .ts-podium-rank { color: #e2e8f0; }
.ts-podium-3 .ts-podium-rank { color: #fdba74; }
.ts-podium-av {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px rgba(0,0,0,.25);
}
.ts-podium-1 .ts-podium-av {
  width: 80px; height: 80px;
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250,204,21,.18), 0 12px 28px rgba(250,204,21,.28);
}
.ts-podium-av-fb {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 22px;
}
.ts-podium-name {
  font-weight: 700; color: var(--text);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ts-podium-claims { font-size: 15px; color: var(--text-dim); }
.ts-podium-claims b { color: var(--text); font-size: 22px; margin-right: 4px; }
.ts-podium-1 .ts-podium-claims b { color: #fde68a; font-size: 26px; }
.ts-podium-slot.is-me {
  outline: 2px solid var(--accent-line);
  outline-offset: -2px;
}

.ts-rest-card { padding: 20px 22px; }

.ts-empty {
  text-align: center; padding: 60px 24px;
}
.ts-empty-mark {
  font-size: 44px; margin-bottom: 8px; opacity: .8;
  filter: drop-shadow(0 4px 12px rgba(250,204,21,.28));
}

.ts-rules { padding: 20px 22px; }
.ts-rules-list {
  margin: 0; padding: 0 0 0 20px;
  display: grid; gap: 8px;
  color: var(--text-dim); font-size: 13.5px;
}
.ts-rules-list b { color: var(--text); }

@media (max-width: 720px) {
  .ts-hero { padding: 30px 20px; }
  .ts-hero h1 { font-size: 26px; }
  .nav .links a.top-seller-link { padding: 5px 10px; font-size: 13px; }
}
