/* ============================================================
   SINNERS RUST — Tebex Template (Cinematic theme, v3)
   Author: Sinners
   Look: full-screen dimmed video hero, red-edged nav bar with
   centred emblem, heavy white/red display type, stat pill.
   Type: Montserrat 800 (display) · Barlow (body) · IBM Plex Mono (meta)
   ============================================================ */

:root {
  --ink:    #0B0B0D;   /* page background              */
  --panel:  #131316;   /* section background            */
  --card:   #17171B;   /* card surface                  */
  --line:   #26262B;   /* borders                       */
  --bone:   #FFFFFF;   /* primary text                  */
  --mute:   #A3A3AC;   /* muted text                    */
  --red:    #C41A1A;   /* primary red                   */
  --red-hot:#E32222;   /* hover                         */
  --green:  #2FD573;   /* online indicator              */

  --font-head: "Montserrat", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --maxw: 1180px;
  --r: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-video { display: none; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--red); color: var(--bone); }

/* ------------------------------------------------------------
   TOP NAV — black bar, red gradient edges, centred emblem
   ------------------------------------------------------------ */
.site-header {
  position: absolute;
  top: 24px; left: 0; right: 0;
  z-index: 50;
}
.site-header .bar {
  max-width: 1280px;
  margin: 0 auto;
  background:
    linear-gradient(90deg, rgba(196,26,26,.85) 0%, rgba(10,10,10,.92) 22%, rgba(10,10,10,.92) 78%, rgba(196,26,26,.85) 100%);
  border-radius: var(--r);
  backdrop-filter: blur(6px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 28px;
  gap: 16px;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  transform: translateY(-3px); /* centre links within the bar */
}
.nav-side.nav-right { justify-content: flex-end; }

.nav-side a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;            /* decreased from 14px */
  letter-spacing: 0.02em;
  color: var(--bone);
  padding: 8px 10px;          /* decreased from 10px 13px */
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;        /* prevent multi-line wrapping */
}
.nav-side a:hover, .nav-side a.active { background: rgba(255,255,255,.08); }
.nav-side a:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

.brand-emblem {
  width: 108px; height: 108px;
  margin: 0 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow: 0 6px 22px rgba(0,0,0,.6), 0 0 0 4px rgba(10,10,10,.9);
  transform: translateY(14px);
  background: #000;
}
.brand-emblem img { width: 100%; height: 100%; object-fit: cover; }

.nav-basket {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  background: none;                              /* no box — sits like a nav link */
  border: 0;
  color: var(--bone);
  padding: 8px 10px;
  border-radius: 8px;
  margin-left: 4px;
  transition: background .15s ease;
}
.nav-basket:hover { background: rgba(255,255,255,.08); }
.nav-basket .basket-count {
  background: var(--red);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.nav-basket .basket-total { font-family: var(--font-mono); font-weight: 500; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------
   HERO — full-screen video, heavy dim, left-aligned title
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero { background: #000; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* the dim — heavy like the reference, fading into the page */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,13,.55) 0%, rgba(11,11,13,.72) 55%, var(--ink) 98%),
    radial-gradient(ellipse 90% 70% at 30% 45%, rgba(0,0,0,.25), transparent 70%);
}

.hero .wrap { width: 100%; padding-top: 120px; }

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero h1 .h1-accent { color: var(--red); display: block; }

.hero-copy {
  color: #E7E7EA;
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 26px 0 30px;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}

/* stat pill — online / rates / mode */
.stat-pill {
  display: inline-flex;
  align-items: stretch;
  background: rgba(16,16,18,.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  margin-bottom: 34px;
}
.stat-cell {
  padding: 14px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .stat-v {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.stat-cell .stat-v.online { color: var(--green); }
.stat-cell .stat-v.mode { color: var(--red-hot); }
.stat-cell .stat-v .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.stat-cell .stat-k {
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

.btn-primary { background: var(--red); color: var(--bone); }
.btn-primary:hover { background: var(--red-hot); }

.btn-ghost {
  background: rgba(16,16,18,.6);
  color: var(--bone);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--bone); }

.btn-block { width: 100%; justify-content: center; }

/* ------------------------------------------------------------
   WIPE STRIP — slim, sits at the seam of hero and content
   ------------------------------------------------------------ */
.wipe-ticker {
  background: #0E0E10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wipe-ticker .wrap {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.wipe-ticker .wrap::-webkit-scrollbar { display: none; }
.wipe-ticker strong { color: var(--bone); font-weight: 500; }
.wipe-ticker .tick-label { color: var(--red-hot); font-weight: 600; }
.wipe-ticker .tick-sep { color: var(--line); }

/* ------------------------------------------------------------
   SECTIONS — centred heads like the reference
   ------------------------------------------------------------ */
.section { padding: 84px 0; }
.section-smoke { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-head h2 span { color: var(--red-hot); }
.section-head .section-note {
  display: block;
  font-size: 16px;
  color: var(--mute);
  margin-top: 8px;
}

/* ------------------------------------------------------------
   CATEGORY RAIL
   ------------------------------------------------------------ */
.cat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.cat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.cat-tile:hover { border-color: var(--red); transform: translateY(-3px); }
.cat-tile .cat-go {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
  display: block;
  margin-top: 10px;
  transition: color .15s ease;
}
.cat-tile:hover .cat-go { color: var(--red-hot); }
.cat-tile h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
}
.cat-tile p { color: var(--mute); font-size: 13px; margin-top: 6px; }

/* ------------------------------------------------------------
   PACKAGE GRID
   ------------------------------------------------------------ */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.pkg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pkg-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}

.pkg-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #1E1E23, #101013);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.pkg-media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-media .pkg-glyph {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 44px;
  color: #2A2A31;
  text-transform: uppercase;
}

.pkg-flag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--bone);
  padding: 4px 10px;
  border-radius: 999px;
}

.pkg-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.pkg-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pkg-desc {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.pkg-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.pkg-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--bone);
}
.pkg-price .pkg-price-was {
  font-size: 12px;
  color: var(--mute);
  text-decoration: line-through;
  margin-right: 8px;
  font-weight: 500;
}
.pkg-price .pkg-cycle { font-size: 11px; color: var(--mute); font-weight: 500; }

.btn-add {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--bone);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-add:hover { background: var(--red-hot); }
.btn-add:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.btn-add[disabled] { background: var(--line); color: var(--mute); cursor: not-allowed; }

/* ------------------------------------------------------------
   CATEGORY PAGE
   ------------------------------------------------------------ */
.cat-header {
  padding: 160px 0 56px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(11,11,13,.7), var(--ink) 90%),
    var(--hero-image, none) center 25% / cover no-repeat,
    var(--panel);
}
.cat-header .crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cat-header .crumb a:hover { color: var(--red-hot); }
.cat-header h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  text-transform: uppercase;
  line-height: 1.05;
}
.cat-header .cat-desc { color: var(--mute); max-width: 62ch; margin: 14px auto 0; }

/* ------------------------------------------------------------
   PACKAGE MODAL
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 5, 6, 0.85);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mute);
  width: 34px; height: 34px;
  font-family: var(--font-mono);
  font-size: 15px;
  cursor: pointer;
}
.modal-close:hover { color: var(--bone); border-color: var(--red); }

.modal h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-right: 44px;
}
.modal .modal-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--red-hot);
  margin-bottom: 18px;
}
.modal .modal-desc { color: var(--mute); font-size: 15px; margin-bottom: 24px; }
.modal .modal-desc ul { margin: 10px 0 10px 20px; }
.modal .modal-desc li { margin: 4px 0; }
.modal .modal-actions { display: grid; gap: 10px; }

/* ------------------------------------------------------------
   SIDEBAR MODULES
   ------------------------------------------------------------ */
.modules-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.modules-row > *,
.module-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}

.goal-bar { background: var(--line); height: 10px; border-radius: 999px; margin-bottom: 10px; overflow: hidden; }
.goal-bar > span { display: block; height: 10px; background: var(--red); border-radius: 999px; }

/* ------------------------------------------------------------
   ALERT / USER MESSAGE
   ------------------------------------------------------------ */
.store-alert {
  background: var(--card);
  border: 1px solid var(--red);
  border-radius: var(--r);
  padding: 14px 20px;
  margin: 24px auto 0;
  max-width: var(--maxw);
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  z-index: 60;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  background: #09090B;
  padding: 48px 0 32px;
  margin-top: 84px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
}
.footer-brand em { font-style: normal; color: var(--red-hot); }
.footer-note { color: var(--mute); font-size: 13px; margin-top: 10px; max-width: 40ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--bone); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--red-hot); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .site-header { position: relative; top: 0; padding: 12px 12px 0; }
  .site-header .bar { border-radius: var(--r); }
  .nav {
    grid-template-columns: auto 1fr auto;
    height: auto;
    padding: 12px 16px;
  }
  .brand-emblem { width: 64px; height: 64px; transform: none; order: -1; }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    justify-self: end;
  }
  .nav-side { display: none; }
  .nav-side.open { display: flex; flex-direction: column; grid-column: 1 / -1; align-items: stretch; }
  .nav-basket { grid-column: 1 / -1; justify-content: center; margin: 6px 0 0; }

  .hero { min-height: 78vh; }
  .hero .wrap { padding-top: 48px; }
  .stat-pill { display: flex; }
  .stat-cell { flex: 1; padding: 12px 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* ------------------------------------------------------------
   COMMUNITY BOARD — styling for Tebex's injected module HTML
   ------------------------------------------------------------ */
.modules-row h3, .modules-row h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 14px;
}
.modules-row p { font-size: 14px; margin: 4px 0; }
.modules-row ul { list-style: none; margin: 0; padding: 0; }
.modules-row li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.modules-row li:last-child { border-bottom: 0; }
.modules-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.modules-row table { width: 100%; border-collapse: collapse; font-size: 14px; }
.modules-row td, .modules-row th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.modules-row th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.modules-row a:not(.btn):not(.bubble-solid):not(.bubble-ghost) { color: var(--red-hot); }
.modules-row progress { width: 100%; height: 10px; accent-color: var(--red); }
.modules-row .progress, .modules-row .progress-bar { border-radius: 999px; overflow: hidden; }

/* featured package module */
.mod-featured { text-align: center; }
.mod-featured .mod-img {
  width: 100%; height: auto;            /* full image, never cropped */
  border-radius: 8px; border: 1px solid var(--line); margin-bottom: 14px;
}
.mod-featured .mod-price {
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  color: var(--red-hot); margin: 2px 0 0;
}

/* button bubble — subscribe left, add to basket right */
.mod-btn-bubble {
  display: flex; gap: 6px;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  margin-top: 16px;
}
.mod-btn-bubble a {
  flex: 1;
  display: flex;                       /* centre the label vertically even when */
  align-items: center;                 /* the other button wraps to two lines   */
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
}
.mod-btn-bubble .bubble-ghost {
  color: var(--bone);
  background: rgba(255,255,255,.05);   /* visible as its own button */
  border: 1px solid rgba(255,255,255,.28);
}
.mod-btn-bubble .bubble-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
.mod-btn-bubble .bubble-solid { background: var(--red); color: var(--bone); }
.mod-btn-bubble .bubble-solid:hover { background: var(--red-hot); }


/* ------------------------------------------------------------
   STEAM SIGN-IN BUTTON (username.html)
   ------------------------------------------------------------ */
.btn-steam {
  display: inline-flex;                /* auto width, not full-width */
  align-items: center;
  gap: 10px;
  background: #171A21;                 /* Steam's dark navy */
  border: 1px solid #2A475E;
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  margin-top: 6px;
  transition: background .15s ease, border-color .15s ease;
}
.btn-steam svg { width: 20px; height: 20px; }
.btn-steam:hover { background: #1B2838; border-color: #66C0F4; }
.btn-steam svg { flex-shrink: 0; }
.form-card .form-foot {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--mute);
}


/* ------------------------------------------------------------
   LOGIN PAGE — missing card styles + top-left placement
   ------------------------------------------------------------ */
.form-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px 24px 70px;   /* clears the floating nav bar */
  display: flex;
  justify-content: flex-start; /* card sits top-left of the content area */
}
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  width: min(420px, 100%);
  text-align: left;
}
.form-card h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-card p { color: var(--mute); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.form-card label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 12px 0 6px;
}
.form-card input[type="text"] {
  width: 100%;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
}
.form-card input[type="text"]:focus { outline: none; border-color: var(--red); }
.form-card .btn { margin-top: 16px; }

/* ------------------------------------------------------------
   ANIMATED RED BORDER — every box on the page
   A red streak orbits the card edge. Applied to community
   board modules, package cards, category tiles, form cards,
   the basket card and custom-page panels.
   ------------------------------------------------------------ */
.modules-row > *,
.module-shell,
.pkg-card,
.cat-tile,
.form-card,
.basket-card,
.page-panel {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.modules-row > *::before,
.module-shell::before,
.pkg-card::before,
.cat-tile::before,
.form-card::before,
.basket-card::before,
.page-panel::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%; top: 50%;
  width: 240%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 280deg,
    rgba(227, 34, 34, .25) 310deg,
    var(--red-hot) 340deg,
    #FF8A6B 352deg,
    transparent 360deg
  );
  animation: border-orbit 4.5s linear infinite;
}
.modules-row > *::after,
.module-shell::after,
.pkg-card::after,
.cat-tile::after,
.form-card::after,
.basket-card::after,
.page-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: var(--card);
  border-radius: inherit;
}
/* taller cards need a bigger orbit square to reach the corners */
.pkg-card::before,
.form-card::before,
.basket-card::before,
.page-panel::before { width: 300%; }
@keyframes border-orbit { to { rotate: 1turn; } }


/* ------------------------------------------------------------
   OPTIONS PAGE — Discord linking + package variables
   ------------------------------------------------------------ */
.form-card-wide { width: min(520px, 100%); }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;                 /* Discord blurple */
  border: 1px solid #4752C4;
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  margin-top: 4px;
  transition: background .15s ease;
}
.btn-discord:hover { background: #4752C4; }
.btn-discord svg { flex-shrink: 0; }

.discord-linked {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #101013;
  border: 1px solid #2FD57355;
  border-radius: 8px;
  color: var(--bone);
  font-size: 14px;
  padding: 12px 14px;
}
.discord-linked svg { color: #5865F2; }

.form-card select {
  width: 100%;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  appearance: none;
}
.form-card select:focus { outline: none; border-color: var(--red); }


/* options page extras */
.form-card .field { margin-bottom: 6px; }
.options-actions { margin-top: 20px; display: grid; gap: 12px; justify-items: center; }
.options-actions .btn-block, .btn-discord-block { width: 100%; justify-content: center; display: flex; }
.link-text { color: var(--mute); font-size: 13px; }
.link-text:hover { color: var(--red-hot); text-decoration: underline; }


/* ------------------------------------------------------------
   BASKET PAGE
   ------------------------------------------------------------ */
.basket-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 80px;
}
.basket-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.basket-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 8px;
}
.basket-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
}
.basket-meta { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
.basket-empty { color: var(--mute); padding: 24px 0 8px; }

.basket-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.bi-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
}
.bi-name:hover { color: var(--red-hot); }
.bi-options { list-style: none; margin: 4px 0 6px; padding: 0; }
.bi-options li { color: var(--mute); font-size: 13px; padding: 1px 0; border: 0; display: block; }
.bi-price { font-family: var(--font-head); font-weight: 800; font-size: 16px; }

.bi-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.qty-field {
  display: flex; align-items: center;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  background: none; border: 0;
  color: var(--bone);
  font-size: 16px;
  width: 34px; height: 34px;
  cursor: pointer;
  transition: background .15s ease;
}
.qty-btn:hover:not([disabled]) { background: rgba(255,255,255,.08); }
.qty-btn[disabled] { color: var(--line); cursor: not-allowed; }
.qty-field .quantity {
  width: 44px;
  background: none; border: 0;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}
.qty-field .quantity::-webkit-outer-spin-button,
.qty-field .quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-field .quantity:focus { outline: none; }

.bi-remove { color: var(--mute); font-size: 13px; }
.bi-remove:hover { color: var(--red-hot); text-decoration: underline; }

.basket-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
}
.basket-total .bt-amount { font-size: 24px; color: var(--red-hot); }

@media (max-width: 640px) {
  .basket-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bi-controls { width: 100%; justify-content: space-between; }
}


/* ticker login/logout link */
.wipe-ticker .tick-link { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.wipe-ticker .tick-link:hover { color: var(--red-hot); }


/* featured module — disabled bubble state */
.mod-btn-bubble .bubble-disabled {
  flex: 1;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--line);
  color: var(--mute);
  cursor: not-allowed;
}


/* both-type add pair + quote page */
.btn-add-pair { display: inline-flex; gap: 6px; }
.btn-add-alt { background: transparent; border: 1px solid var(--line); color: var(--bone); }
.btn-add-alt:hover { border-color: var(--red); background: transparent; color: var(--red-hot); }
.quote-desc { color: var(--mute); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.quote-desc strong { color: var(--bone); }


/* visible unavailability reason */
.pkg-blocked { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pkg-reason {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red-hot);
  letter-spacing: .04em;
  text-align: right;
  max-width: 180px;
  line-height: 1.4;
}


/* stacked card footer: price above, button bubble full-width below */
.pkg-foot-stacked { display: block; }
.pkg-foot-stacked .pkg-price { display: block; margin-bottom: 12px; }
.pkg-foot-stacked .mod-btn-bubble { margin-top: 0; }


/* ------------------------------------------------------------
   GLOBAL PAGE BACKGROUND VIDEO — every tab except home
   Fixed hero clip behind the whole page. Solid ink band at the
   top keeps the area behind the nav / logo clean, so the video
   reads as starting just below the emblem.
   ------------------------------------------------------------ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: var(--ink);
}
.page-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--ink) 0,
    var(--ink) 136px,                 /* solid to just below the emblem */
    rgba(11, 11, 13, .82) 280px,      /* fade into the dim              */
    rgba(11, 11, 13, .80) 100%
  );
}
@media (prefers-reduced-motion: reduce) { .page-bg video { display: none; } }
@media (max-width: 980px) {
  .page-bg::after {
    background: linear-gradient(180deg, var(--ink) 0, rgba(11,11,13,.86) 140px, rgba(11,11,13,.82) 100%);
  }
}

/* let the video show through page chrome on sub-pages */
.section-smoke {
  background: rgba(19, 19, 22, .72);
}
.site-footer { background: rgba(9, 9, 11, .88); }
.wipe-ticker { background: rgba(14, 14, 16, .85); }
.cat-header {
  background:
    linear-gradient(180deg, rgba(11,11,13,.45), rgba(11,11,13,.25) 90%),
    var(--hero-image, none) center 25% / cover no-repeat;
}


/* ------------------------------------------------------------
   CUSTOM PAGES (pages.html) — About, Rules, etc.
   ------------------------------------------------------------ */
.page-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 36px 40px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 640px) { .page-panel { padding: 24px 20px; } }

.page-prose { font-size: 15px; line-height: 1.7; color: #D6D6DC; }
.page-prose h1, .page-prose h2, .page-prose h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1.15;
  margin: 28px 0 12px;
}
.page-prose h1 { font-size: 28px; }
.page-prose h2 { font-size: 22px; }
.page-prose h3 { font-size: 17px; }
.page-prose h1:first-child, .page-prose h2:first-child, .page-prose h3:first-child { margin-top: 0; }
.page-prose h2 span, .page-prose h1 span { color: var(--red-hot); }
.page-prose p { margin: 0 0 14px; }
.page-prose a { color: var(--red-hot); }
.page-prose a:hover { text-decoration: underline; }
.page-prose ul, .page-prose ol { margin: 0 0 16px 22px; }
.page-prose li { margin: 5px 0; }
.page-prose strong { color: var(--bone); }
.page-prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.page-prose img { border-radius: 8px; border: 1px solid var(--line); margin: 8px 0 16px; }
.page-prose blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 16px;
  margin: 0 0 16px;
  color: var(--mute);
}
.page-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.page-prose td, .page-prose th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.page-prose th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* numbered rule cards — used by the rules page content */
.rules-list { counter-reset: rule; list-style: none; margin: 0 !important; padding: 0; }
.rules-list > li {
  counter-increment: rule;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 10px !important;
}
.rules-list > li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--red-hot);
  flex-shrink: 0;
  padding-top: 1px;
}
.rules-list > li strong { display: block; color: var(--bone); margin-bottom: 2px; }


/* ------------------------------------------------------------
   CURRENCY SWITCHER — nav dropdown, styled like a nav link
   ------------------------------------------------------------ */
.currency-switch { display: inline-flex; align-items: center; position: relative; }
.currency-switch::after {
  content: "▾";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bone);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.currency-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  color: var(--bone);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  height: 35px;                 /* same box as the nav links (19px line + 16px pad) */
  line-height: 19px;
  padding: 0 24px 0 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.currency-switch select:hover { background: rgba(255,255,255,.08); }
.currency-switch select:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.currency-switch option { background: #101013; color: var(--bone); }
@media (max-width: 980px) {
  .currency-switch { justify-content: center; width: 100%; }
}


/* ------------------------------------------------------------
   MINI-BASKET DROPDOWN — hover/focus panel under BASKET
   ------------------------------------------------------------ */
.basket-menu { position: relative; }
.basket-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
/* invisible bridge so the panel doesn't vanish crossing the gap */
.basket-pop::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.basket-menu:hover .basket-pop,
.basket-menu:focus-within .basket-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.basket-pop .bp-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
}
.basket-pop .bp-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.basket-pop .bp-items li:last-child { border-bottom: 0; }
.basket-pop .bp-name {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--bone);
  line-height: 1.35;
}
.basket-pop .bp-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
}
.basket-pop .bp-remove {
  color: var(--mute);
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  line-height: 1;
}
.basket-pop .bp-remove:hover { color: var(--red-hot); background: rgba(227,34,34,.12); }

.basket-pop .bp-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
}
.basket-pop .bp-total strong { color: var(--red-hot); font-size: 15px; }

.basket-pop .bp-checkout {
  display: flex;
  justify-content: center;
  width: 100%;
  background: var(--red);
  color: var(--bone);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 999px;
  transition: background .15s ease;
}
.basket-pop .bp-checkout:hover { background: var(--red-hot); }

.basket-pop .bp-empty {
  color: var(--mute);
  font-family: var(--font-body);
  font-size: 13px;
  margin: 0;
  text-align: center;
  padding: 6px 0;
}

/* mobile: nav is a collapsing menu — skip the hover panel, link goes to the basket page */
@media (max-width: 980px) { .basket-pop { display: none; } }


/* ------------------------------------------------------------
   PACKAGE CARD — clickable details
   ------------------------------------------------------------ */
.pkg-card[data-package-id],
.mod-featured[data-package-id] { cursor: pointer; }
.pkg-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
  transition: color .15s ease;
}
.pkg-card:hover .pkg-hint { color: var(--red-hot); }

/* basket: secondary update button above the checkout button */
.bt-update {
  margin-bottom: 10px;
  padding: 10px 16px;
  font-size: 13px;
}