/* ==========================================================================
   JBxSM Designs — Tebex store template
   assets/style.css
   --------------------------------------------------------------------------
   Sections
     01  Tokens
     02  Reset & base
     03  Typography helpers (chrome text, eyebrows, section heads)
     04  Buttons, badges, pills
     05  Panels & surfaces
     06  Header / navigation
     07  Hero
     08  Package cards & grids
     09  Package detail
     10  Basket / checkout
     11  Forms (login, options, coupon)
     12  CMS / docs pages
     13  Sidebar modules
     14  Discord + support bands
     15  Footer
     16  Toasts & misc
     17  Responsive
   ========================================================================== */

/* 01 ── Tokens ============================================================ */

:root {
  --bg:          #05070a;
  --bg-2:        #080c12;
  --surface:     #0c1119;
  --surface-2:   #111823;
  --surface-3:   #16202d;

  --line:        rgba(146, 176, 196, 0.14);
  --line-soft:   rgba(146, 176, 196, 0.08);
  --line-strong: rgba(146, 176, 196, 0.26);

  --txt:         #e6edf3;
  --muted:       #93a6b6;
  --dim:         #64778c;

  --acc:         #45e3e8;
  --acc-deep:    #0fb6c2;
  --acc-soft:    rgba(69, 227, 232, 0.14);
  --acc-line:    rgba(69, 227, 232, 0.38);
  --acc-glow:    rgba(69, 227, 232, 0.30);

  --danger:      #ff6161;
  --ok:          #4ade80;
  --warn:        #fbbf24;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  --shadow-3: 0 28px 60px -24px rgba(0, 0, 0, 0.9);

  --wrap: 1200px;
  --font-display: "Chakra Petch", "Rajdhani", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --chrome: linear-gradient(
    177deg,
    #ffffff 0%,
    #e4eef4 32%,
    #a2b4c2 50%,
    #f6fbfd 66%,
    #c3d2dc 100%
  );
}

/* 02 ── Reset & base ====================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient field — a slow cyan wash + fine grid, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(69, 227, 232, 0.13), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, rgba(23, 122, 168, 0.10), transparent 65%),
    linear-gradient(180deg, #070b11 0%, var(--bg) 45%, #04060a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(146, 176, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 176, 196, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(1100px 720px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 720px at 50% 0%, #000 0%, transparent 78%);
}

img { max-width: 100%; display: block; }

a { color: var(--acc); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: #8bf3f6; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line-soft); margin: 28px 0; }

::selection { background: rgba(69, 227, 232, 0.28); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #06090d; }
::-webkit-scrollbar-thumb {
  background: #1b2734;
  border-radius: 99px;
  border: 3px solid #06090d;
}
::-webkit-scrollbar-thumb:hover { background: #26384a; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.tc { text-align: center; }
.hide { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 03 ── Typography helpers ================================================ */

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(69, 227, 232, 0.22));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc));
}

.section { padding: 74px 0; position: relative; }
.section-tight { padding: 46px 0; }

.section-head { margin-bottom: 34px; max-width: 660px; }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.lede { font-size: 17px; color: var(--muted); }

/* Rich text coming out of Tebex (descriptions, CMS pages) */
.rt { color: var(--muted); font-size: 15px; }
.rt h1, .rt h2, .rt h3, .rt h4 { color: var(--txt); margin-top: 1.4em; }
.rt h1:first-child, .rt h2:first-child, .rt h3:first-child { margin-top: 0; }
.rt h2 { font-size: 24px; text-transform: uppercase; }
.rt h3 { font-size: 19px; }
.rt a { text-decoration: underline; text-underline-offset: 3px; }
/* CMS pages can use the store's own components — buttons must not inherit
   the underline that plain links in rich text get. */
.rt .btn, .rt .badge { text-decoration: none; }
.rt .grid { margin: 20px 0; }
.rt .feature h3 { margin-top: 0; }
.rt .steps-num { list-style: none; padding: 0; counter-reset: s; }
.rt .steps-num > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 0 44px;
  margin-bottom: 18px;
}
.rt .steps-num > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--acc);
}
.rt .steps-num > li strong { display: block; color: var(--txt); margin-bottom: 2px; }
.rt ul, .rt ol { padding-left: 20px; margin: 0 0 1em; }
.rt li { margin-bottom: 6px; }
.rt img { border-radius: var(--r); border: 1px solid var(--line); margin: 18px 0; }
.rt code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--acc);
}
.rt pre {
  background: #070b10;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  overflow-x: auto;
}
.rt pre code { background: none; border: 0; padding: 0; color: var(--txt); }
.rt blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--acc-line);
  color: var(--muted);
}
.rt table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rt th, .rt td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.rt th { background: var(--surface-2); color: var(--txt); font-weight: 600; }

/* 04 ── Buttons, badges, pills ============================================ */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--txt);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  --btn-fg: #04191c;
  --btn-line: transparent;
  background: linear-gradient(180deg, #7cf0f4 0%, var(--acc) 42%, var(--acc-deep) 100%);
  box-shadow: 0 8px 24px -10px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: 0 14px 34px -10px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
/* sheen sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.btn-primary:hover::after { left: 150%; }

.btn-ghost {
  background: rgba(146, 176, 196, 0.05);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--acc-line); background: var(--acc-soft); color: #bff6f8; }

.btn-outline { background: transparent; border-color: var(--acc-line); color: var(--acc); }
.btn-outline:hover { background: var(--acc-soft); }

.btn-danger { background: rgba(255, 97, 97, 0.10); border-color: rgba(255, 97, 97, 0.34); color: #ff8f8f; }
.btn-danger:hover { background: rgba(255, 97, 97, 0.18); color: #ffb3b3; }

.btn-discord { --btn-fg: #fff; background: #5865f2; border-color: transparent; }
.btn-discord:hover { background: #6b76f5; box-shadow: 0 12px 30px -12px rgba(88, 101, 242, 0.8); }

.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45; pointer-events: none; filter: grayscale(0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  line-height: 1.5;
}
.badge-acc { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc); }
.badge-ok { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.1); color: var(--ok); }
.badge-warn { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.1); color: var(--warn); }
.badge-danger { border-color: rgba(255, 97, 97, 0.32); background: rgba(255, 97, 97, 0.1); color: #ff8f8f; }

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* 05 ── Panels & surfaces ================================================= */

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(146, 176, 196, 0.05), rgba(146, 176, 196, 0.015)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h3, .panel-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt);
}
.panel-head .ico { color: var(--acc); display: flex; }
.panel-head .ico svg { width: 16px; height: 16px; }
.panel-body { padding: 18px; }

/* Hairline of cyan across the top of a highlighted panel */
.panel-lit::before {
  content: "";
  position: absolute;
  top: -1px; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0.75;
}

.shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.shell-full { display: block; }
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }

.page-head { padding: 40px 0 6px; }
.page-head .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--dim); margin-bottom: 12px;
}
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--acc); }
.page-head .crumbs span { color: var(--dim); }
.page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-head .sub { color: var(--muted); max-width: 640px; margin: 0; }

/* 06 ── Header / navigation =============================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-stuck {
  background: rgba(5, 7, 10, 0.92);
  box-shadow: 0 12px 34px -20px rgba(0, 0, 0, 1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 34px; width: auto; filter: drop-shadow(0 0 14px rgba(69, 227, 232, 0.35)); }
.brand .brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--txt); background: rgba(146, 176, 196, 0.06); }
.nav-links a.is-active { color: var(--txt); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
}

.nav-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }

/* currency + account dropdowns */
.dd { position: relative; }
.dd-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(146, 176, 196, 0.05);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dd-toggle:hover { color: var(--txt); border-color: var(--line-strong); }
.dd-toggle svg { width: 14px; height: 14px; }
.dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}
.dd.is-open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-menu a, .dd-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 8px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.dd-menu a:hover, .dd-menu button:hover { background: rgba(146, 176, 196, 0.08); color: var(--txt); }
.dd-menu a.is-active { color: var(--acc); background: var(--acc-soft); }
.dd-sep { height: 1px; background: var(--line-soft); margin: 5px 3px; }

/* basket button */
.cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #04191c;
  background: linear-gradient(180deg, #7cf0f4, var(--acc) 45%, var(--acc-deep));
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 15px;
  box-shadow: 0 8px 22px -12px var(--acc-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-btn:hover { transform: translateY(-1px); color: #04191c; box-shadow: 0 14px 30px -12px var(--acc-glow); }
.cart-btn svg { width: 16px; height: 16px; }
.cart-btn .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  font-size: 11px;
  border-radius: 99px;
  background: rgba(4, 25, 28, 0.82);
  color: #9df5f8;
}
.cart-btn.is-empty {
  background: rgba(146, 176, 196, 0.05);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}
.cart-btn.is-empty:hover { color: var(--txt); border-color: var(--line-strong); }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(146, 176, 196, 0.05);
  font-size: 13px; color: var(--muted);
  cursor: pointer;
}
.user-chip:hover { border-color: var(--line-strong); color: var(--txt); }
.user-chip img { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); }

.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(146, 176, 196, 0.05);
  color: var(--txt);
  cursor: pointer;
}
.nav-burger svg { width: 19px; height: 19px; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(330px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.3, 0.8, 0.3, 1);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel .drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.drawer-panel a.drawer-link {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px;
  border-radius: 10px;
}
.drawer-panel a.drawer-link:hover,
.drawer-panel a.drawer-link.is-active { color: var(--txt); background: rgba(146, 176, 196, 0.07); }
.drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: none; color: var(--muted); cursor: pointer;
}
.drawer-close svg { width: 17px; height: 17px; }

/* 07 ── Hero ============================================================== */

.hero {
  position: relative;
  padding: 78px 0 66px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  left: 50%; top: -180px;
  width: 900px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(69, 227, 232, 0.20), transparent 72%);
  pointer-events: none;
  filter: blur(10px);
}
.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
  mask-image: linear-gradient(180deg, #000, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
}
.hero-inner { position: relative; text-align: center; }

.hero-logo {
  max-width: 460px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 40px rgba(69, 227, 232, 0.35));
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 62px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  animation: rise 0.7s 0.06s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero .lede {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 17px;
  animation: rise 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: rise 0.7s 0.18s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 30px;
  animation: rise 0.7s 0.24s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* trust strip under the hero */
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 44px;
}
.trust-cell {
  background: var(--surface);
  padding: 20px 18px;
  text-align: center;
}
.trust-cell .n {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.1;
}
.trust-cell .l {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 5px;
  display: block;
}

/* 08 ── Package cards & grids ============================================= */

.grid { display: grid; gap: 20px; }
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(146, 176, 196, 0.055), rgba(146, 176, 196, 0.012)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.22s ease, box-shadow 0.22s ease;
}
.pkg:hover {
  transform: translateY(-4px);
  border-color: var(--acc-line);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(69, 227, 232, 0.12),
              0 22px 60px -30px var(--acc-glow);
}
.pkg::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.pkg:hover::before { opacity: 0.9; }

.pkg-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(69, 227, 232, 0.10), transparent 70%),
    var(--surface-2);
  overflow: hidden;
  display: block;
}
.pkg-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pkg:hover .pkg-media img { transform: scale(1.045); }
.pkg-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 9, 13, 0.82) 100%);
  pointer-events: none;
}
.pkg-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; letter-spacing: 0.16em;
  color: rgba(146, 176, 196, 0.16);
  text-transform: uppercase;
}
.pkg-flags {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.pkg-flags .badge { backdrop-filter: blur(8px); background: rgba(8, 12, 18, 0.72); }

.pkg-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.pkg-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}
.pkg-title a { color: var(--txt); }
.pkg-title a:hover { color: var(--acc); }
.pkg-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pkg-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.price .amt { font-size: 25px; font-weight: 700; letter-spacing: -0.015em; color: var(--txt); }
.price .cur { font-size: 12px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.price .was { font-size: 14px; color: var(--dim); text-decoration: line-through; }
.price .free { font-size: 19px; font-weight: 700; color: var(--ok); }
.pkg-actions { display: flex; gap: 8px; align-items: center; }

.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.pkg-row:hover { border-color: var(--acc-line); transform: translateX(2px); }
.pkg-row .thumb {
  width: 64px; height: 44px; flex: none;
  border-radius: 8px; overflow: hidden;
  background: var(--surface-2);
}
.pkg-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pkg-row .meta { min-width: 0; flex: 1; }
.pkg-row .meta .n {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-transform: uppercase;
}
.pkg-row .meta .d {
  color: var(--dim); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.empty {
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--dim);
  background: rgba(146, 176, 196, 0.02);
}
.empty svg { width: 34px; height: 34px; margin-bottom: 12px; opacity: 0.5; }

/* countdown pill */
.countdown {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffbcbc;
}

/* 09 ── Package detail ==================================================== */

.pd { display: grid; grid-template-columns: minmax(0, 1.25fr) 380px; gap: 30px; align-items: start; }

.pd-gallery {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.pd-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.pd-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-slide { opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.pd-slide.is-on { opacity: 1; pointer-events: auto; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-slide iframe { border: 0; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumbs button {
  flex: none;
  width: 92px; height: 56px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.16s ease, border-color 0.16s ease;
  position: relative;
}
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs button.is-on, .pd-thumbs button:hover { opacity: 1; border-color: var(--acc-line); }
.pd-thumbs .vid-mark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 9, 13, 0.55); color: #fff;
}
.pd-thumbs .vid-mark svg { width: 20px; height: 20px; }

.pd-buy { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.pd-buy .price { margin-bottom: 4px; }
.pd-buy .price .amt { font-size: 36px; }
.pd-facts { display: flex; flex-direction: column; gap: 0; }
.pd-facts .f {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.pd-facts .f:last-child { border-bottom: 0; }
.pd-facts .f .k { color: var(--dim); letter-spacing: 0.04em; }
.pd-facts .f .v { color: var(--txt); font-weight: 500; text-align: right; }

.pd-body h2 { font-size: 22px; text-transform: uppercase; }

/* 10 ── Basket / checkout ================================================= */

.basket-table { width: 100%; border-collapse: collapse; }
.basket-table th {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
  text-align: left;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.basket-table td { padding: 16px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.basket-table tr:last-child td { border-bottom: 0; }
.basket-table .b-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; text-transform: uppercase; }
.basket-table .b-opts { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.basket-table .b-price { font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.basket-table .b-actions { text-align: right; white-space: nowrap; }
input.qty-input {
  width: 78px;
  text-align: center;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 600;
}

.summary { display: flex; flex-direction: column; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.summary .line.total {
  border-top: 1px solid var(--line);
  margin-top: 6px; padding-top: 14px;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; color: var(--txt);
  text-transform: uppercase;
}
.summary .line.total .v { color: var(--acc); }

.coupon-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.coupon-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--acc-line);
  background: var(--acc-soft);
  border-radius: 9px;
  font-size: 13.5px;
}
.coupon-chip .code { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; color: var(--acc); }
.coupon-chip a { color: #ff8f8f; display: flex; }
.coupon-chip svg { width: 15px; height: 15px; }

.pay-note {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13px; color: var(--dim);
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(146, 176, 196, 0.03);
}
.pay-note svg { width: 16px; height: 16px; flex: none; color: var(--acc); margin-top: 1px; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pay-methods .pm {
  height: 26px; padding: 0 9px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em;
  color: var(--muted); text-transform: uppercase;
}

/* 11 ── Forms ============================================================= */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field .hint { font-size: 12.5px; color: var(--dim); margin-top: 6px; }

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: #070b10;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a6b6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--acc-line);
  box-shadow: 0 0 0 3px rgba(69, 227, 232, 0.12);
  background: #080d13;
}
input::placeholder, textarea::placeholder { color: #4d5f72; }

.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

.login-card { max-width: 460px; margin: 0 auto; }
.login-card .panel-body { padding: 30px; text-align: center; }
.login-card .prov-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--acc-line);
  background: var(--acc-soft);
  color: var(--acc);
}
.login-card .prov-icon svg { width: 26px; height: 26px; }
.login-card h1 { font-size: 24px; text-transform: uppercase; }

/* 12 ── CMS / docs pages ================================================== */

.docs { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.doc-body { max-width: 780px; }
.doc-body .rt { font-size: 15.5px; }
.doc-toc { position: sticky; top: 92px; }
.doc-toc .panel-body { padding: 14px; }
.doc-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
}
.doc-toc a:hover { color: var(--txt); background: rgba(146, 176, 196, 0.06); }
.doc-toc a.lvl-3 { padding-left: 22px; font-size: 13px; }

/* 13 ── Sidebar modules =================================================== */

.mod { }
.mod .panel-body { padding: 16px 18px; }

.mod-payments { display: flex; flex-direction: column; gap: 2px; }
.mod-payments .row-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mod-payments .row-item:last-child { border-bottom: 0; }
.mod-payments .av {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px; overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.mod-payments .av img { width: 100%; height: 100%; object-fit: cover; }
.mod-payments .who {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mod-payments .what {
  font-size: 12px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mod-payments .amt {
  margin-left: auto;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--acc); white-space: nowrap;
}

.meter {
  height: 9px;
  border-radius: 99px;
  background: #070b10;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.meter > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
  box-shadow: 0 0 16px var(--acc-glow);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.meter.striped > i {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.16) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.16) 75%, transparent 75%, transparent
  ), linear-gradient(90deg, var(--acc-deep), var(--acc));
  background-size: 16px 16px, auto;
}
.meter.animated > i { animation: meter-move 1s linear infinite; }
@keyframes meter-move { from { background-position: 0 0, 0 0; } to { background-position: 16px 0, 0 0; } }

.meter-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  margin-bottom: 9px;
}
.meter-label .pct { color: var(--acc); }

.mod-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  display: inline-block;
}
.mod-status .dot.off { background: var(--danger); box-shadow: 0 0 10px rgba(255, 97, 97, 0.7); }
.mod-status .ip {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px; color: var(--txt);
  word-break: break-all;
}
.mod-status .players { font-size: 13px; color: var(--muted); margin-top: 5px; }

.mod-top .who { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; }
.mod-top .amt { font-size: 13px; color: var(--muted); }
.mod-top .av {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--acc-line);
  box-shadow: 0 0 20px -6px var(--acc-glow);
  flex: none;
}
.mod-top .av img { width: 100%; height: 100%; object-fit: cover; }

.mod-featured .pkg { box-shadow: none; }

/* 14 ── Discord + support bands =========================================== */

.band {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(69, 227, 232, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(146, 176, 196, 0.05), rgba(146, 176, 196, 0.012)),
    var(--surface);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.band-discord {
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(88, 101, 242, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(146, 176, 196, 0.05), rgba(146, 176, 196, 0.012)),
    var(--surface);
  border-color: rgba(88, 101, 242, 0.3);
}

/* Support band — sitewide, above the footer. Cyan rather than Discord purple,
   because the ticket link is the primary action and Discord is the fallback. */
.band-support {
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(69, 227, 232, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(146, 176, 196, 0.05), rgba(146, 176, 196, 0.012)),
    var(--surface);
  border-color: var(--acc-line);
}
/* Specificity has to beat `.band .band-icon`, which is defined further down. */
.band.band-support .band-icon {
  background: var(--acc-soft);
  border-color: var(--acc-line);
  color: var(--acc);
}
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.band .band-icon {
  width: 62px; height: 62px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #a3aaf7;
}
.band .band-icon svg { width: 30px; height: 30px; }
.band .band-icon { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); }
.band:hover .band-icon { transform: rotate(30deg); }
.band .band-text { flex: 1; min-width: 240px; }
.band .band-text h3 { font-size: 23px; text-transform: uppercase; margin-bottom: 6px; }
.band .band-text p { color: var(--muted); margin: 0; }

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--acc-line); transform: translateY(-2px); }
.feature .fi {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  color: var(--acc);
  margin-bottom: 14px;
}
.feature .fi svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.faq details[open] { border-color: var(--acc-line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 18px 18px; color: var(--muted); font-size: 14.5px; }

/* 15 ── Footer ============================================================ */

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(146, 176, 196, 0.025), transparent);
  padding: 52px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 38px;
}
.footer-grid h4 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt); margin-bottom: 14px;
}
.footer-grid p { color: var(--dim); font-size: 13.5px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul a { color: var(--muted); font-size: 13.5px; }
.footer-grid ul a:hover { color: var(--acc); }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--dim);
}
.footer-bottom a { color: var(--muted); }

/* 16 ── Toasts & misc ===================================================== */

.toast-wrap {
  position: fixed;
  top: 84px; right: 20px;
  z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: rgba(12, 17, 25, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-3);
  font-size: 14px;
  animation: toast-in 0.32s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.toast .ti { flex: none; margin-top: 1px; }
.toast .ti svg { width: 18px; height: 18px; }
.toast.success { border-color: rgba(74, 222, 128, 0.4); }
.toast.success .ti { color: var(--ok); }
.toast.danger, .toast.error { border-color: rgba(255, 97, 97, 0.42); }
.toast.danger .ti, .toast.error .ti { color: var(--danger); }
.toast.warning { border-color: rgba(251, 191, 36, 0.4); }
.toast.warning .ti { color: var(--warn); }
.toast.info .ti { color: var(--acc); }
.toast .tx { flex: 1; }
.toast .tc-close {
  background: none; border: 0; color: var(--dim); cursor: pointer;
  padding: 0; display: flex;
}
.toast .tc-close svg { width: 15px; height: 15px; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 55;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 17, 25, 0.9);
  backdrop-filter: blur(10px);
  color: var(--muted);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--acc); border-color: var(--acc-line); }
.to-top svg { width: 18px; height: 18px; }

/* 17 ── Responsive ======================================================== */

@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .pd-buy { position: static; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .dd-currency { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 54px 0; }
  .hero { padding: 54px 0 44px; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .band { padding: 24px; }
  .band-actions { width: 100%; }
  .band-actions .btn { flex: 1; min-width: 190px; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
  .basket-table thead { display: none; }
  .basket-table, .basket-table tbody, .basket-table tr, .basket-table td { display: block; width: 100%; }
  .basket-table tr {
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 10px;
    padding: 6px 4px;
  }
  .basket-table td { border-bottom: 0; padding: 8px 12px; }
  .basket-table .b-actions { text-align: left; }
  .toast-wrap { top: 76px; right: 12px; left: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Homepage module strip — modules vary in height, so don't stretch them. */
.module-strip { align-items: start; }
.module-strip .mod { height: auto; }

/* Package and category descriptions arrive from Tebex as HTML. Tebex's Twig
   sandbox has no `striptags` filter, so the markup is flattened with CSS
   instead — everything reads as one line of running text inside a clamped box. */
.flatten * {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.flatten br,
.flatten img,
.flatten iframe,
.flatten video,
.flatten table,
.flatten hr,
.flatten figure,
.flatten blockquote { display: none; }
/* Flattening removes the line breaks that used to separate blocks, so give
   the former block elements a trailing space or words run together. */
.flatten h1::after, .flatten h2::after, .flatten h3::after, .flatten h4::after,
.flatten p::after, .flatten div::after, .flatten ul::after,
.flatten ol::after { content: " "; }
.flatten li { display: inline; }
.flatten li::after { content: " · "; color: var(--dim); }
.flatten li:last-child::after { content: ""; }

.section-head .flatten { color: var(--muted); font-size: 15.5px; }

/* ── Partner lockup (Ayrshire RP page) ───────────────────────────────────
   Two marks either side of a hairline ×. The ARP logo is gold and the store
   is cyan, so they get equal size and no tint — let each brand be itself. */
.partner-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 54px);
  flex-wrap: wrap;
  padding: 38px clamp(20px, 4vw, 48px);
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 130% at 20% 0%, rgba(69, 227, 232, 0.10), transparent 60%),
    radial-gradient(90% 130% at 80% 100%, rgba(212, 168, 74, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(146, 176, 196, 0.05), rgba(146, 176, 196, 0.012)),
    var(--surface);
  box-shadow: var(--shadow-2);
}

.partner-lockup .partner-mark {
  height: clamp(58px, 9vw, 96px);
  width: auto;
  flex: none;
  filter: drop-shadow(0 0 26px rgba(69, 227, 232, 0.28));
}
/* Gold reads better with a warm glow than the store's cyan one. */
.partner-lockup .partner-mark-arp {
  filter: drop-shadow(0 0 26px rgba(212, 168, 74, 0.34));
}

.partner-lockup .partner-x {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  color: var(--dim);
  line-height: 1;
  flex: none;
}

@media (max-width: 420px) {
  .partner-lockup { gap: 16px; padding: 26px 18px; }
}