/* ==========================================================================
   BKing Development — Tebex theme
   Night-shift navy storefront. Police blue for actions, crown gold for
   prices and the brand, matching the product artwork.
   ========================================================================== */

:root {
  color-scheme: dark;
  --paper: #0D1320;       /* page — deep night navy */
  --surface: #141C2E;     /* cards, header, panels */
  --surface-2: #1B2540;   /* raised: hovers, inputs, menus */
  --foot: #090E19;        /* footer */
  --ink: #EDF1F8;
  --ink-2: #A4AEC4;
  --ink-3: #76819A;
  --line: #232E48;
  --line-2: #34426A;
  --blue: #3563F0;        /* police blue — primary actions */
  --blue-hover: #4A76FF;
  --blue-tint: #1A2850;
  --link: #8EAEFF;
  --gold: #F2B233;        /* crown — prices, brand, highlights */
  --gold-ink: #1A1300;    /* text on gold */
  --red: #FF6B7D;         /* sale / remove */
  --red-tint: #33161D;
  --red-line: #6A2632;
  --green: #45D48F;
  --green-tint: #10301F;
  --warn: #F2C14E;
  --warn-tint: #33290C;
  --shadow: rgba(0, 0, 0, .5);
  --scrim: rgba(4, 7, 14, .7);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --gutter: 16px;
  --head-h: 68px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
main { display: block; min-height: 55vh; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: var(--gold-ink); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.375rem; font-weight: 600; }
p { margin: 0 0 1em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--blue); border-radius: var(--radius-sm);
  background: var(--blue); color: #fff;
  font-family: var(--body); font-weight: 600; font-size: .95rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }

.btn-danger { background: transparent; color: var(--red); border-color: var(--red-line); }
.btn-danger:hover { background: var(--red-tint); border-color: var(--red); color: var(--red); }

.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------------------
   Toast / page messages
   -------------------------------------------------------------------------- */
.notice {
  padding: 12px 0; font-weight: 500; font-size: .95rem;
  background: var(--blue-tint); color: var(--link); border-bottom: 1px solid var(--line-2);
}
.notice--success { background: var(--green-tint); color: var(--green); border-color: var(--line); }
.notice--danger, .notice--error { background: var(--red-tint); color: var(--red); border-color: var(--red-line); }
.notice--warning { background: var(--warn-tint); color: var(--warn); border-color: var(--line); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(20, 28, 46, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1;
  letter-spacing: .01em;
}
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a, .nav summary {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none;
  cursor: pointer; list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav .ext::after { content: "↗"; font-size: .8em; color: var(--ink-3); }

.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.drop { position: relative; }
.drop > summary {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; list-style: none; user-select: none;
}
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.drop > summary:hover { border-color: var(--line-2); color: var(--ink); }
.drop-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 160px; max-height: 320px; overflow: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 16px 40px var(--shadow);
}
.drop-menu--left { left: 0; right: auto; }
.drop-menu a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: .9rem;
}
.drop-menu a:hover { background: var(--line); color: var(--ink); }
.drop-menu a[aria-current="true"] { color: var(--gold); font-weight: 600; }

.account {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.account:hover { border-color: var(--line-2); color: var(--ink); }
.account svg { width: 18px; height: 18px; }

.basket-btn { position: relative; padding: 0 16px; }
.basket-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold); color: var(--gold-ink);
  font-size: .75rem; font-weight: 700; line-height: 22px; text-align: center;
}

.basket-mini {
  display: none; position: relative; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; margin-left: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
}
.basket-mini svg { width: 22px; height: 22px; }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; margin-left: 0; }
  .basket-mini { display: inline-flex; }
  .head-actions .basket-btn { display: none; }
  .head-row { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav, .head-actions { display: none; width: 100%; }
  .site-head.is-open .nav { display: flex; flex-direction: column; align-items: stretch; order: 3; }
  .site-head.is-open .head-actions { display: flex; flex-wrap: wrap; order: 4; padding-bottom: 4px; }
  .nav a, .nav summary { padding: 12px 8px; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .nav .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}

/* --------------------------------------------------------------------------
   Basket drawer
   -------------------------------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60; background: var(--scrim);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -16px 0 40px var(--shadow);
  transform: translateX(100%); transition: transform .25s ease;
  visibility: hidden;
}
.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.75rem; margin: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer-total span { color: var(--ink-2); }
.drawer-total strong { font-family: var(--display); font-size: 1.75rem; color: var(--gold); }
.drawer-empty { padding: 32px 0; color: var(--ink-2); }

.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-thumb { width: 72px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); object-fit: cover; background: var(--paper); }
.line-thumb--empty { display: grid; place-items: center; }
.line-thumb--empty img { width: 28px; height: 28px; opacity: .6; }
.line-name { font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.line-name:hover { color: var(--link); }
.line-meta { font-size: .875rem; color: var(--ink-2); }
.line-remove { color: var(--ink-3); padding: 8px; border-radius: var(--radius-sm); display: inline-flex; }
.line-remove:hover { color: var(--red); background: var(--red-tint); }
.line-remove svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Prices & badges
   -------------------------------------------------------------------------- */
.price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--gold); white-space: nowrap; }
.price small { font-family: var(--body); font-size: .7rem; font-weight: 600; color: var(--ink-3); margin-left: 3px; letter-spacing: .02em; }
.price del { color: var(--ink-3); font-size: .7em; font-weight: 600; margin-right: 6px; }
.price--sale { color: var(--red); }
.price--note { font-family: var(--body); font-size: .9rem; font-weight: 600; color: var(--ink-2); }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 2px 8px var(--shadow);
}
.badge--sale { background: var(--red); color: #2A0A10; }
.badge--sub { background: var(--blue); color: #fff; }
.badge--in { background: var(--gold); color: var(--gold-ink); }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.hero { padding: 56px 0 16px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5rem); line-height: .94; letter-spacing: -.01em;
  margin-bottom: 20px; max-width: 12ch;
}
.hero-lede { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { margin: 0; }
.hero-figure a { display: block; text-decoration: none; color: var(--ink); }
.hero-figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
}
.hero-figure figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px;
  padding: 12px 2px 0; font-weight: 600;
}
.hero-figure figcaption span { color: var(--ink-2); font-weight: 500; font-size: .9rem; }

.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* How buying works — a real sequence, so it's numbered */
.steps {
  display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 28px 28px 26px; position: relative; }
.steps li + li { border-top: 1px solid var(--line); }
@media (min-width: 800px) { .steps li + li { border-top: 0; border-left: 1px solid var(--line); } }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 1.375rem;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.steps-note { margin: 14px 2px 0; font-size: .9rem; color: var(--ink-2); }

/* Category index — type as the visual */
.cat-index { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--gold); }
.cat-index li { border-bottom: 1px solid var(--line-2); }
.cat-index a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; text-decoration: none; color: var(--ink);
}
.cat-index .cat-name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.75rem); line-height: .95; letter-spacing: .005em;
}
.cat-index .cat-go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-2); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.cat-index .cat-go svg { width: 20px; height: 20px; }
.cat-index a:hover .cat-name { color: var(--gold); }
.cat-index a:hover .cat-go { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.cat-index .cat-subs { display: block; margin-top: 6px; font-size: .9rem; color: var(--ink-2); font-weight: 500; text-transform: none; font-family: var(--body); letter-spacing: 0; }

.pillars { display: grid; gap: 28px; }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.pillar h3 { display: flex; align-items: center; gap: 10px; }
.pillar h3 svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.pillar p { color: var(--ink-2); margin: 0; }

.support-band { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 36px 32px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 800px) { .support-band { grid-template-columns: 1fr auto; padding: 40px 44px; } }
.support-band h2 { margin-bottom: 8px; }
.support-band p { margin: 0; color: var(--ink-2); max-width: 56ch; }

.modules-row { display: grid; gap: 20px; }
@media (min-width: 800px) { .modules-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

/* --------------------------------------------------------------------------
   Page head & breadcrumbs
   -------------------------------------------------------------------------- */
.page-head { padding-top: 40px; padding-bottom: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { margin-bottom: 8px; }
.page-head .count { color: var(--ink-2); margin: 0; }
.page-head .rich { margin-top: 16px; max-width: 72ch; }

/* --------------------------------------------------------------------------
   Layout with sidebar
   -------------------------------------------------------------------------- */
.with-side { display: grid; gap: 32px; padding-bottom: 72px; }
@media (min-width: 1024px) { .with-side { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
.side { display: grid; gap: 20px; align-content: start; }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .with-side .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .with-side .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s;
}
.card:hover, .card:focus-within { border-color: var(--line-2); background: var(--surface-2); }
.card-media { position: relative; display: block; background: var(--paper); aspect-ratio: 16 / 9; }
.card-media img.cover { width: 100%; height: 100%; object-fit: cover; }
.card-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); }
.card-ph img { width: 56px; height: 56px; object-fit: contain; opacity: .5; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; gap: 14px; }
.card-title { font-size: 1.375rem; font-weight: 600; line-height: 1.1; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-foot .btn { position: relative; z-index: 1; }
.card-title a:hover { color: var(--ink); }

/* List display type */
.grid--list { grid-template-columns: 1fr !important; gap: 12px; }
.grid--list .card { flex-direction: row; align-items: stretch; }
.grid--list .card-media { width: 192px; flex: none; aspect-ratio: 16 / 9; align-self: center; }
@media (max-width: 519px) { .grid--list .card-media { width: 128px; } }
.grid--list .card-body { flex-direction: row; align-items: center; flex-wrap: wrap; }
.grid--list .card-foot { margin-top: 0; margin-left: auto; }

.empty {
  padding: 48px 28px; text-align: center; color: var(--ink-2);
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty h2 { color: var(--ink); }

/* --------------------------------------------------------------------------
   Package page
   -------------------------------------------------------------------------- */
.page-head--tight { padding-top: 24px; padding-bottom: 18px; }
.product { display: grid; gap: 28px; padding-bottom: 32px; }
@media (min-width: 1000px) {
  .product { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
}
.product-media { position: relative; }
.product-media img, .product-ph {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.product-ph { display: grid; place-items: center; }
.product-ph img { width: 72px; height: 72px; aspect-ratio: auto; border: 0; box-shadow: none; background: none; opacity: .5; }
.product-media .badge--off { position: absolute; top: 14px; right: 14px; }

.buybox { display: grid; gap: 18px; align-content: center; }
.chip {
  justify-self: start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.chip:hover { color: var(--ink); border-color: var(--gold); }
.product-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price--xl { font-size: 2.75rem; }
.price-was { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--red); opacity: .85; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-actions .btn { flex: 1 1 auto; }
.buy-actions .btn-cta { flex: 1 1 200px; }
.buybox-reason { font-size: .9rem; color: var(--red); margin: 0; }
.gift-form { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.gift-form label { font-weight: 600; font-size: .95rem; }
.buy-note { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; font-size: .925rem; color: var(--ink-2); }
.buy-note svg { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }

/* Trust strip */
.trust {
  display: grid; gap: 4px; margin: 8px 0 40px; padding: 22px 24px; list-style: none;
  border-radius: var(--radius-lg); border: 1px solid #2B4B9C;
  background: linear-gradient(100deg, #18306F 0%, #1D3D8F 50%, #18306F 100%);
}
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); padding: 26px 32px; } }
.trust li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 0; }
.trust svg { width: 34px; height: 34px; flex: none; color: #fff; }
.trust span { display: grid; line-height: 1.15; }
.trust strong { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.trust strong a { color: #fff; text-decoration: none; }
.trust strong a:hover { color: var(--gold); }
.trust small { font-size: .85rem; color: #BFD0FF; }

/* Description panel */
.panel--desc { padding: 28px; margin-bottom: 28px; }
@media (min-width: 800px) { .panel--desc { padding: 32px 36px; } }
.panel-title, .panel--desc .rich h1, .panel--desc .rich h2 {
  display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .02em;
}
.panel-title { font-size: 1.75rem; margin: 0 0 18px; }
.panel-title::before, .panel--desc .rich h1::before, .panel--desc .rich h2::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--gold);
}
.panel--desc .rich h1, .panel--desc .rich h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.panel--desc .rich > h1:first-child, .panel--desc .rich > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.desc-docs { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }

/* Subscription prompt */
.upsell {
  display: grid; gap: 18px; align-items: center; margin-bottom: 48px; padding: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 100% 50%, rgba(242, 178, 51, .14), transparent 55%), var(--surface);
}
@media (min-width: 760px) { .upsell { grid-template-columns: auto 1fr auto; padding: 24px 28px; } }
.upsell-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--gold); color: var(--gold); background: rgba(242, 178, 51, .08); }
.upsell-icon svg { width: 26px; height: 26px; }
.upsell h2 { font-size: 1.9rem; text-transform: uppercase; margin: 0 0 2px; }
.upsell p { margin: 0; color: var(--ink-2); }
.upsell .eyebrow { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

/* More from this category */
.related { padding-bottom: 72px; }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.related-head h2 { font-size: 1.75rem; text-transform: uppercase; margin: 0; }
.related-nav { display: flex; gap: 8px; }
.related-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 60px) / 4)); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.related-track::-webkit-scrollbar { display: none; }
.related-track .card { scroll-snap-align: start; }
@media (max-width: 760px) { .related-track { grid-auto-columns: 78%; } }
.facts a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.input, .loginform input[type="text"], .loginform input[type="email"], .form select, .form input[type="text"], .form input[type="number"] {
  width: 100%; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit; font-size: .95rem;
}
.input::placeholder { color: var(--ink-3); }
.input:focus, .loginform input:focus, .form select:focus, .form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form .field { margin-bottom: 20px; }
.form .hint { font-size: .875rem; color: var(--ink-2); margin-top: 6px; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }

/* --------------------------------------------------------------------------
   Panels: checkout, login, generic pages
   -------------------------------------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.625rem; }
.narrow { max-width: 640px; }

.checkout { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; } }
.checkout .line-item { grid-template-columns: 96px 1fr auto; }
.checkout .line-thumb { width: 96px; }
.line-actions { display: flex; align-items: center; gap: 8px; }
.qty { width: 64px; min-height: 36px; text-align: center; padding: 0 6px; }
.line-opts { font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
.summary { display: grid; gap: 16px; }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--head-h) + 20px); } }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-row--total { padding-top: 14px; border-top: 1px solid var(--line); }
.summary-row--total .price { font-size: 2rem; }
.coupon-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.coupon-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--green-tint); color: var(--green); font-size: .9rem; font-weight: 600; }
.coupon-list a { color: var(--green); }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.secure-note { display: flex; gap: 10px; font-size: .85rem; color: var(--ink-2); margin: 0; }
.secure-note svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 1px; }

.login-panel { text-align: left; }
.loginform form { display: grid; gap: 12px; }
.loginform a, .loginform button, .loginform input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  background: var(--blue); color: #fff; border: 0; font-weight: 600; text-decoration: none; cursor: pointer;
}
.loginform a:hover, .loginform button:hover, .loginform input[type="submit"]:hover { background: var(--blue-hover); color: #fff; }
.loginform p { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Sidebar modules
   -------------------------------------------------------------------------- */
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.module h3 { font-size: 1.375rem; margin-bottom: 12px; }
.module p:last-child { margin-bottom: 0; }
.module .rich a { word-break: break-word; }

.payments { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.payments li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.payments img, .avatar-fallback { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.avatar-fallback { display: grid; place-items: center; font-weight: 700; color: var(--link); background: var(--blue-tint); }
.payments .who-paid { font-weight: 600; line-height: 1.2; word-break: break-all; }
.payments .what { font-size: .85rem; color: var(--ink-2); }

.feature { display: grid; gap: 12px; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.feature-name { font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.1; color: var(--ink); text-decoration: none; }
.feature-name:hover { color: var(--link); }
.feature-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.meter { height: 10px; border-radius: 5px; background: var(--paper); overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: var(--gold); }
.meter-label { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }

.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-dot--on { color: var(--green); }
.status-dot--off { color: var(--red); }

/* --------------------------------------------------------------------------
   Rich text from the Tebex editor — normalised so old inline colours
   (e.g. white text from the previous dark theme) stay readable.
   -------------------------------------------------------------------------- */
.rich { color: var(--ink); overflow-wrap: anywhere; }
.rich [style*="color"], .rich font[color] { color: inherit !important; }
.rich [style*="font-family"] { font-family: inherit !important; }
.rich span[style*="font-size"] { font-size: inherit !important; }
.rich p:first-child > span[style*="font-size"]:only-child { font-size: 1.25rem !important; font-weight: 500; color: var(--ink-2) !important; }
.rich h1, .rich h2, .rich h3, .rich h4 { margin: 1.6em 0 .5em; }
.rich h1 { font-size: 1.875rem; }
.rich h2 { font-size: 1.5rem; }
.rich h3, .rich h4 { font-size: 1.25rem; }
.rich h1:first-child, .rich h2:first-child { margin-top: 0; }
.rich p:empty, .rich p > br:only-child { display: none; }
.rich img { border-radius: var(--radius-sm); height: auto !important; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich table { width: 100% !important; border-collapse: collapse; }
.rich td, .rich th { padding: 6px 8px; vertical-align: top; }
.rich code, .rich pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .875em; background: var(--paper); border-radius: 4px; }
.rich code { padding: 2px 5px; }
.rich pre { padding: 14px; overflow: auto; }
.rich blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--gold); color: var(--ink-2); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.25em; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-foot { background: var(--foot); color: var(--ink-2); margin-top: 0; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 32px; padding: 48px 0 36px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ink); }
.foot-brand img { width: 36px; height: 36px; object-fit: contain; }
.foot-brand span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.site-foot p { max-width: 42ch; font-size: .95rem; }
.site-foot h2 { font-size: 1.25rem; color: var(--ink); margin-bottom: 12px; }
.foot-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); }
.socials a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot-base ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.foot-base .drop > summary { border-color: var(--line-2); color: var(--ink-2); }
.foot-base .drop-menu { top: auto; bottom: calc(100% + 6px); }
.foot-base .drop-menu a { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Store chrome: announcement, pill nav, buttons, cards, footer call-out
   -------------------------------------------------------------------------- */
.announce {
  background: linear-gradient(90deg, #1E3FA8, #3563F0 45%, #B9861E 100%);
  color: #fff; text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.announce .wrap { padding-top: 9px; padding-bottom: 9px; }
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

@media (min-width: 1181px) {
  .nav {
    margin: 0 auto; padding: 5px; gap: 2px;
    background: rgba(13, 19, 32, .7); border: 1px solid var(--line-2); border-radius: 999px;
  }
  .nav a, .nav summary {
    font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink); border-radius: 999px; padding: 7px 12px; white-space: nowrap;
  }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--surface-2); color: var(--gold); border-radius: 999px; }
  .nav .nav-sub {
    color: var(--gold); border: 1px solid rgba(242, 178, 51, .55); margin-left: 4px;
    box-shadow: 0 0 18px rgba(242, 178, 51, .18), inset 0 0 12px rgba(242, 178, 51, .08);
  }
  .nav .nav-sub::before { content: "\2726"; font-size: .7em; margin-right: 6px; }
  .nav .nav-sub::after { content: "\2726"; font-size: .7em; margin-left: 6px; }
  .nav .nav-sub:hover { background: rgba(242, 178, 51, .1); color: var(--gold); }
}
.nav-sub { color: var(--gold); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--blue); border-radius: 999px; }
.btn-outline:hover { background: var(--blue-tint); border-color: var(--blue-hover); color: var(--ink); }
.account { border-radius: 999px; }
.head-actions .drop > summary { border-radius: 999px; }

.btn-cta {
  background: linear-gradient(100deg, #2F55E0, #4A76FF); border-color: transparent;
  font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(53, 99, 240, .35);
}
.btn-cta:hover { background: linear-gradient(100deg, #3A61EC, #5C84FF); border-color: transparent; }
.btn-outline-gold {
  background: transparent; color: var(--ink); border-color: var(--gold);
  font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.btn-outline-gold:hover, .btn-outline-gold[aria-expanded="true"] { background: rgba(242, 178, 51, .1); color: var(--gold); border-color: var(--gold); }
.btn-support { background: var(--surface); color: var(--ink); border-color: var(--line-2); gap: 10px; justify-content: flex-start; }
.btn-support:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }
.btn-support svg { width: 22px; height: 22px; }
.btn-support span { display: grid; text-align: left; line-height: 1.1; }
.btn-support strong { font-size: .95rem; }
.btn-support small { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #FFC24D; border-color: #FFC24D; color: var(--gold-ink); }
.btn-pill { border-radius: 999px; background: transparent; color: var(--ink); border-color: var(--line-2); padding: 0 16px; }
.btn-pill:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }
.btn-icon { width: 36px; padding: 0; border-radius: 999px; }
.btn-icon svg { width: 17px; height: 17px; }

.badge--off {
  height: 28px; padding: 0 11px; border-radius: 8px;
  background: linear-gradient(100deg, #F2B233, #FF8A3D); color: #241300;
  font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.card-media .badge--off { position: absolute; top: 10px; right: 10px; }

.card-title { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.card-foot { align-items: center; }
.card-price .price { line-height: 1; display: inline-flex; align-items: baseline; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.card-price .price { font-size: 1.45rem; }
.card-price .price-was { font-size: 1rem; }
.card-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.card-actions .btn { position: relative; z-index: 1; }
.card { transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }

.foot-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.foot-cta p { margin: 0; max-width: none; font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.pill-link {
  display: inline-block; padding: 2px 12px; border-radius: 8px; margin-left: 4px;
  background: var(--gold); color: var(--gold-ink) !important; text-decoration: none !important;
}
.pill-link:hover { background: #FFC24D; }

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.pad-b { padding-bottom: 72px; }
.flush { margin: 0; }

@media (max-width: 480px) {
  .head-row { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.25rem; }
  .basket-mini { padding: 0 10px; }
}

.related--home { padding-top: 40px; padding-bottom: 8px; }
.related-nav .btn-pill { min-height: 40px; }

/* Desktop header: logo-only until there's room for the store name */
@media (min-width: 1181px) {
  .head-row { gap: 16px; }
  .brand-name { font-size: 1.3rem; }
  .account { padding: 0 11px; }
}
@media (min-width: 1181px) and (max-width: 1339px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Category pages without sidebar modules use the full width */
@media (min-width: 1024px) {
  .with-side--full { grid-template-columns: minmax(0, 1fr); }
  .with-side--full .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) { .with-side--full .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .nav .nav-home { display: none; } }

/* --------------------------------------------------------------------------
   "Links" sidebar module, drawn as a social panel
   -------------------------------------------------------------------------- */
.module--social { padding: 16px; }
.module--social h3 { padding: 4px 4px 0; }
.social-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.social-row {
  display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.social-row:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); transform: translateX(2px); }
.social-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-2); color: var(--ink);
}
.social-icon svg { width: 22px; height: 22px; }
.social-row--discord .social-icon { background: #5865F2; color: #fff; }
.social-row--youtube .social-icon { background: #FF0000; color: #fff; }
.social-row--tiktok .social-icon { background: #0E0F14; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.social-row--docs .social-icon { background: var(--gold); color: var(--gold-ink); }
.social-text { display: grid; min-width: 0; line-height: 1.2; }
.social-text strong { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.social-text small { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-go { color: var(--ink-3); display: inline-flex; }
.social-go svg { width: 18px; height: 18px; }
.social-row:hover .social-go { color: var(--gold); }
.modules-row .module--social { grid-column: span 1; }
