/* ============================================================
   XFX.SYSTEMS — design system (v2)
   ------------------------------------------------------------
   Loaded AFTER assets/css/style.css on every page. Re-tokens the
   whole site (near-black + light gray, the same graphite shell the
   in-game overlay uses) and restyles the shared shell:
   nav, buttons, cards, tables, forms, footer, modals.
   No markup or backend contract is changed by this file.
   ============================================================ */

:root {
  /* ── Surfaces ── */
  --bg:        #050505;
  --bg-1:      #0a0a0a;
  --bg-2:      #0e0e0e;
  --card:      #101010;
  --card-2:    #161616;
  --card-3:    #1c1c1c;
  --line:      #1e1e1e;
  --line-2:    #2a2a2a;
  --line-3:    #3a3a3a;
  --line-4:    #4a4a4a;

  /* ── Text ── */
  --text:      #f4f4f4;
  --text-2:    #b8b8b8;
  --text-3:    #7a7a7a;
  --text-4:    #4a4a4a;
  --text-5:    #2a2a2a;

  /* ── Brand accent ──
     White/gray monochrome, matching the pre-redesign palette byte for byte.
     The in-game overlay's own shell uses the equivalent graphite values
     from VisualsConfig in Source/Config/Structs.hpp:
       MenuAccentColor #D2D2D5 · ThemeWindowBg #0A0A0A
       ThemeSidebarBg #101011 · ThemeCardBg #181819 · ThemeBorder #2B2B2E
     Swap --accent to #d2d2d5 if you want the site pixel-identical to the
     overlay; everything below reads the token either way. */
  --accent:      #ffffff;
  --accent-2:    #d8d8d8;
  --accent-dim:  #a0a0a0;
  --accent-glow: rgba(255, 255, 255, .32);
  --accent-soft: rgba(255, 255, 255, .10);

  --warn:   #d4a24a;
  --danger: #c0392b;
  --ok:     #8ee0b0;

  --radius:    14px;
  --radius-lg: 20px;

  --shadow-1: 0 18px 44px -26px rgba(0, 0, 0, .95);
  --shadow-2: 0 34px 80px -40px rgba(0, 0, 0, 1);
  --xfx-mono: var(--font-mono);
}

/* ── Base ─────────────────────────────────────────────────── */
html { background: #050505; }
body {
  background:
    radial-gradient(90% 55% at 50% -12%, rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(60% 40% at 92% 8%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(180deg, #050505 0%, #060607 100%);
  background-attachment: fixed;
  font-size: 15px;
  letter-spacing: -.005em;
}
#rainCanvas { opacity: .22 !important; }
.bg-vignette {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, .10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .92) 15%, transparent 72%);
}
::selection { background: var(--accent); color: #000; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-4); background-clip: content-box; }

/* Tiny uppercase mono label — the reference design uses this everywhere */
.xfx-eyebrow,
.plist-kicker,
.section-tag,
.hero-xl-badge,
.hero-badge {
  font-family: var(--xfx-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.xfx-eyebrow {
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
}
.xfx-eyebrow .dot,
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.section-tag { color: var(--text-3); }
.section-tag .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.accent { color: var(--accent); }
.mono, .cell-mono { font-family: var(--xfx-mono); }

/* sr-only + helpers */
.xfx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Nav (full bar only — the floating pill keeps its own look) ── */
.nav:not(.nav-float) {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1240px; height: 72px; padding: 0 28px; gap: 20px; }
.nav-brand { gap: 11px; }
.nav-brand-logo {
  width: 34px !important; height: 34px !important;
  border-radius: 9px; border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.nav-brand:hover .nav-brand-logo { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-brand-text { font-size: 14.5px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.nav-brand-text .accent { color: var(--accent); }
.nav-links { gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 16px;
  font-family: var(--xfx-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); border-radius: 8px;
  transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.nav-links a.active { color: var(--text); background: transparent; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 1px;
  height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.nav-float .nav-links a.active::after { content: none; }
.nav-float .nav-links a {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.nav-discord { display: inline-flex; align-items: center; gap: 8px; }

/* User pill + dropdown */
.nav-user { position: relative; }
.nav-user-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background .2s;
}
.nav-user-trigger:hover { border-color: var(--line-4); background: rgba(255, 255, 255, .05); }
.nav-user-avatar, .nav-user-menu-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; font-weight: 800;
  background: linear-gradient(160deg, #2a2a2a, #161616);
  color: var(--text); text-transform: uppercase;
}
.nav-user-avatar { width: 32px; height: 32px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-2); }
.nav-user-avatar img, .nav-user-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-avatar.role-owner, .nav-user-menu-avatar.role-owner { border-color: rgba(255, 215, 0, .55); color: #ffd766; }
.nav-user-avatar.role-admin, .nav-user-menu-avatar.role-admin { border-color: rgba(255, 255, 255, .55); color: #c9c9c9; }
.nav-user-name { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.nav-user-caret { color: var(--text-3); }
.nav-user-menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 300;
  min-width: 280px; padding: 8px;
  background: #0d0d10; border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-user.open .nav-user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-user-menu-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nav-user-menu-avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; border: 1px solid var(--line-2); }
.nav-user-menu-name { font-size: 15px; font-weight: 700; }
.nav-user-menu-role { font-family: var(--xfx-mono); font-size: 10px; letter-spacing: .2em; color: var(--text-3); margin-top: 2px; }
.nav-user-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: background .14s, color .14s;
}
.nav-user-menu-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-user-menu-item.danger { color: #b8b8b8; }
.nav-user-menu-item.danger:hover { background: rgba(255, 255, 255, .12); color: #b8b8b8; }
.nav-user-menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.nav-cart-badge, #cartBadge { background: var(--accent) !important; color: #0a0a0a !important; font-family: var(--xfx-mono); font-size: 10px; font-weight: 700; }

/* Floating pill: centered links, logo in the middle, account tools on the right. */
.nav.nav-float {
  position: sticky; top: 0; z-index: 60;
  background: transparent; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav-cta-float .nav-cart-btn {
  position: relative;
  width: 40px; height: 40px; padding: 0;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,10,.92);
}
.nav-cta-float .nav-cart-badge,
.nav-cta-float #cartBadge {
  position: absolute; top: -5px; right: -5px;
  margin: 0; min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff !important; color: #111 !important;
}
.nav-cta-float .nav-user-trigger {
  height: 40px; padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: rgba(10,10,10,.92);
  border: 1px solid rgba(255,255,255,.10);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  font-family: var(--xfx-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  transition: all .18s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover { border-color: var(--line-4); background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.btn-primary {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -14px rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { background: #fff; border-color: #fff; box-shadow: 0 16px 40px -14px rgba(255, 255, 255, .45); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .045); border-color: transparent; }
.btn-sm { padding: 8px 14px; font-size: 10.5px; letter-spacing: .12em; }
.btn-lg { padding: 14px 28px; font-size: 12px; }
.btn-xs { padding: 6px 11px; font-size: 10px; letter-spacing: .1em; }
.btn-block { width: 100%; }
.btn-danger { color: #b8b8b8; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.btn-danger:hover { background: rgba(255, 255, 255, .18); border-color: var(--accent); color: #fff; }
.btn[disabled], .btn:disabled { opacity: .45; pointer-events: none; }

/* ── CTA bar ─────────────────────────────────────────────── */
.cta-bar {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 84px 24px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(255, 255, 255, .17), transparent 62%),
    linear-gradient(180deg, #0c0c0f, #050505);
}
.cta-bar h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
.cta-bar p { color: var(--text-2); max-width: 560px; margin: 0 auto 30px; font-size: 15.5px; line-height: 1.7; }

/* ── Cards / surfaces ────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-1);
}
.card-title {
  font-family: var(--xfx-mono);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 16px;
}
.card-sub {
  font-family: var(--xfx-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
  margin: 22px 0 10px;
}
.section { padding: 96px 24px; max-width: 1200px; }
.section-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.035em;
  line-height: 1.06;
}
.section-lead { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }

/* ── Tables (dashboard + admin) ──────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.admin-table th,
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th {
  background: #0c0c0f;
  font-family: var(--xfx-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.admin-table tbody tr { transition: background .14s; }
.admin-table tbody tr:hover td { background: rgba(255, 255, 255, .022); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table-scroll { overflow-x: auto; border-radius: var(--radius); padding-bottom: 2px; }
.cell-mono { font-family: var(--xfx-mono); font-size: 12px; color: var(--text-2); }
.cell-muted { color: var(--text-3); }

/* ── Badges / chips ──────────────────────────────────────── */
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--xfx-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.admin-badge.role-owner { background: rgba(255, 215, 0, .12); border-color: rgba(255, 215, 0, .4); color: #ffd766; }
.admin-badge.role-admin { background: var(--accent-soft); border-color: rgba(255, 255, 255, .42); color: #c9c9c9; }
.admin-badge.role-user  { color: var(--text-2); }
.admin-badge.inactive,
.admin-badge.sev-warn   { background: rgba(255, 215, 0, .1); border-color: rgba(255, 215, 0, .38); color: #f2c979; }
.admin-badge.sev-info   { background: rgba(255, 255, 255, .05); border-color: var(--line-2); color: var(--text-2); }
.admin-badge.rem-ok     { background: rgba(80, 200, 120, .1); border-color: rgba(80, 200, 120, .34); color: #8ee0b0; }
.admin-badge.rem-soon   { background: rgba(255, 215, 0, .1); border-color: rgba(255, 215, 0, .38); color: #f2c979; }
.admin-badge.rem-life   { background: var(--accent-soft); border-color: rgba(255, 255, 255, .42); color: #c9c9c9; }
.product-badge-dash {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #c9c9c9;
  font-family: var(--xfx-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.ok { color: var(--ok); }
.err { color: var(--danger); }
.warning { color: var(--warn); }
.danger { color: var(--danger); }

/* ── Forms ───────────────────────────────────────────────── */
input, select, textarea { font-family: inherit; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=tel], select, textarea,
.input, .admin-toolbar input, .admin-toolbar select, .redeem-input {
  background: #0c0c0f;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 13.5px;
  max-width: 100%;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: var(--text-4); }
input:focus, select:focus, textarea:focus,
.admin-toolbar input:focus, .admin-toolbar select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #0e0e12;
}
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field label, .setting-label {
  font-family: var(--xfx-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.msg { font-size: 13px; padding: 10px 14px; border-radius: 11px; margin-top: 12px; border: 1px solid transparent; }
.msg.ok  { background: rgba(80, 200, 120, .09); border-color: rgba(80, 200, 120, .3); color: #8ee0b0; }
.msg.err { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); color: #c9c9c9; }
.redeem-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.redeem-input { flex: 1; min-width: 230px; font-family: var(--xfx-mono); letter-spacing: .06em; }
.redeem-btn {
  padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e6e6e6);
  border: 1px solid #ffffff; color: #0a0a0a;
  font-family: var(--xfx-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  transition: all .18s;
}
.redeem-btn:hover { background: linear-gradient(180deg, #ffffff, #e6e6e6); transform: translateY(-1px); }
.copy-btn {
  padding: 5px 11px; border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-family: var(--xfx-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
  transition: all .16s;
}
.copy-btn:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.tgl { background: var(--line-2); border-color: var(--line-2); }
.tgl.on { background: var(--accent); border-color: var(--accent); }
.tgl.on::after { background: #0a0a0a; }
input[type=range] { accent-color: var(--accent); }
.tall { max-height: 70vh; overflow: auto; }
[hidden] { display: none !important; }

/* ── Drawer / modal surfaces ─────────────────────────────── */
.drawer-backdrop { background: rgba(4, 4, 6, .78); backdrop-filter: blur(4px); }
.drawer-panel { background: #0a0a0a; border-left: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
.drawer-head { border-bottom: 1px solid var(--line); padding: 20px 22px; }
.drawer-title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.drawer-sub { color: var(--text-3); font-size: 12.5px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 13, .6), rgba(6, 6, 8, .95));
  margin-top: 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 28px 34px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer h4 {
  font-family: var(--xfx-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer a { display: block; font-size: 13.5px; color: var(--text-2); padding: 5px 0; transition: color .14s; }
.footer a:hover { color: var(--accent-2); }
.footer-brand-desc { font-size: 13px; color: var(--text-3); line-height: 1.7; margin-top: 12px; }
.footer-copy {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 28px 34px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3);
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ── Mobile navigation drawer ────────────────────────────── */
/* Hidden above the mobile breakpoint: xfx.js injects this panel on every
   page, so it must be display:none by default and only styled when opened. */
.xfx-burger { display: none; }
.xfx-mobile { display: none; }
@media (max-width: 940px) {
  .xfx-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
    color: var(--text); cursor: pointer;
  }
  .xfx-mobile {
    position: fixed; inset: 72px 0 auto 0; z-index: 59;
    background: rgba(9, 9, 12, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 18px 22px;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .xfx-mobile.open { display: block; }
  .xfx-mobile a {
    display: flex; align-items: center;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--xfx-mono);
    font-size: 12px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-2);
  }
  .xfx-mobile a:hover, .xfx-mobile a.active { color: var(--text); }
  .xfx-mobile .btn { margin-top: 16px; width: 100%; }
}

/* ── Reveal-on-scroll (driven by assets/js/xfx.js) ────── */
.xfx-reveal { opacity: 0; transform: translateY(18px); }
.xfx-reveal.xfx-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .xfx-reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Brand lockup sizing for the landing hero ────────────── */
.xfx-hero-word.xfx-lockup { font-size: clamp(44px, 8.2vw, 104px); }
.xfx-hero-word .thin { font-weight: 300; opacity: .88; }

/* ── Utility ─────────────────────────────────────────────── */
.xfx-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.xfx-center { text-align: center; }
.xfx-mt { margin-top: 28px; }
.xfx-mt-lg { margin-top: 52px; }
.xfx-muted { color: var(--text-3); }
.xfx-mono { font-family: var(--xfx-mono); }
.xfx-hide { display: none; }

/* ── Catalog cards (products page) ───────────────────────── */
.xfx-product-media { display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.xfx-product.xfx-card { min-height: 0; }
.xfx-card-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.xfx-card-desc { font-size: 13px; color: var(--text-3); line-height: 1.65; }
.xfx-product-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.xfx-product-actions .btn { flex: 1 1 auto; justify-content: center; }
.xfx-products.is-cards .xfx-product-media { min-height: 152px; }

/* ============================================================
   Monochrome palette fidelity
   ------------------------------------------------------------
   These re-state the original assets/css/style.css colours for
   rules that would otherwise become white-on-white now that the
   accent is white again. `html body` keeps them winning over the
   later-loaded xfx-* sheets regardless of load order.
   ============================================================ */
html body ::selection { background: var(--accent); color: #000; }
html body .tgl.on::after { background: #000; }
html body .redeem-btn { color: #000; }
html body .xfx-life { color: #000; }
html body .xfx-filter button.active { color: #000; }
html body .admin-tab.active { color: #000; }
html body .admin-tab.active .admin-tab-count { background: rgba(0, 0, 0, .18); color: #000; }
html body .xfx-status.xfx-dev i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Status colours — the exact semantic hues the original site used */
html body .msg.err { background: rgba(192, 57, 43, .1); border-color: rgba(192, 57, 43, .34); color: #e8a49a; }
html body .msg.ok  { background: rgba(80, 200, 120, .09); border-color: rgba(80, 200, 120, .3); color: #8ee0b0; }

/* Role colours — original owner-gold / admin-blue, not the accent */
html body .admin-badge.role-owner,
html body .dash-role.role-owner,
html body .dash-avatar.role-owner,
html body .nav-user-avatar.role-owner,
html body .nav-user-menu-avatar.role-owner {
  color: #ffd766;
  border-color: rgba(255, 215, 0, .35);
  background: rgba(255, 215, 0, .1);
}
html body .admin-badge.role-admin,
html body .dash-role.role-admin,
html body .dash-avatar.role-admin,
html body .nav-user-avatar.role-admin,
html body .nav-user-menu-avatar.role-admin {
  color: #a8c1ff;
  border-color: rgba(168, 193, 255, .3);
  background: rgba(168, 193, 255, .08);
}
html body .admin-badge.role-user,
html body .dash-role.role-user {
  color: var(--text-2);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
}
html body .product-badge-dash {
  color: #c9c9c9;
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-2);
}
.xfx-page-top { padding: 76px 24px 0; text-align: center; }
.xfx-page-top .xfx-head { margin-bottom: 38px; }

/* ── Hero scroll cue: sit above the docked music player ──── */
.xfx-hero .xfx-scroll { bottom: 116px; cursor: pointer; }
.xfx-hero .xfx-scroll b { font-weight: 600; }

/* ── Season toggle (injected by site.js) restyled to match ──
   Higher specificity + !important because assets/css/halloween.css
   is injected at runtime (so it comes after us in the cascade). */
html body .xfx-theme-toggle {
  position: fixed; left: 16px; bottom: 122px; z-index: 45;
  padding: 8px 14px;
  border: 1px solid var(--line-2) !important;
  border-radius: 999px;
  background: rgba(10, 10, 13, .9) !important;
  backdrop-filter: blur(10px);
  color: var(--text-3) !important;
  font-family: var(--xfx-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .16s, border-color .16s, background .16s;
}
html body .xfx-theme-toggle:hover {
  color: #fff !important;
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, .14) !important;
}
@media (max-width: 720px) { html body .xfx-theme-toggle { display: none; } }