/* ─────────────────────────────────────────────────────────────
   Vice Stories | Store
   Tebex template in the Vice Stories look (kabuki_ui palette): sunset pink and
   orange over deep night purple, ocean teal, Archivo across its width
   axis (expanded = titles, normal = UI), painted bay lines, glass panels.
   Every colour below can be overridden from the template schema
   (Webstore → Appearance → Edit template); layout.html writes them
   onto :root.
───────────────────────────────────────────────────────────── */
:root {
  --accent: #FF4F9A;      /* sunset pink  */
  --accent-2: #FFA94D;    /* sunset orange */
  --teal: #3FE0B0;        /* ocean teal   */
  --info: #4FC8F0;
  --bad: #FF5A6E;
  --asphalt: #150F22;     /* deep night purple: page */
  --concrete: #211833;    /* cards */
  --concrete-2: #2B2042;  /* raised elements */
  --line: #3D2F5A;
  --chalk: #FFF0E8;
  --fog: #A897C4;
  --fog-2: #77699A;
  --accent-ink: #FFFFFF;

  --accent-a12: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-a35: color-mix(in srgb, var(--accent) 35%, transparent);
  --line-soft: color-mix(in srgb, var(--chalk) 7%, transparent);
  --sunset: linear-gradient(100deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--accent-2)) 55%, var(--accent-2) 100%);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-wdth: 125;
  --r: 16px;
  --r-md: calc(var(--r) * .625);
  --r-sm: calc(var(--r) * .375);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04);
  --wrap: 1240px;

  /* Tebex legal footer (must stay visible, but may be styled) */
  --tebex-legal-footer-background-color: var(--asphalt);
  --tebex-legal-footer-text-color: var(--fog);
  --tebex-legal-footer-border-color: var(--line);
  --tebex-legal-footer-logo-color: var(--fog);
  --tebex-legal-footer-max-width: var(--wrap);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-variation-settings: 'wdth' 100; font-size: 15px; line-height: 1.55;
  color: var(--chalk); background: var(--asphalt); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--asphalt); }
::-webkit-scrollbar-track { background: var(--asphalt); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* night sky backdrop: sunset glow + ocean glow + painted bay lines */
.kb-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.kb-sky::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% -5%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 10% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%),
    var(--asphalt);
}
.kb-sky::after {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 38%;
  background: repeating-linear-gradient(90deg, transparent 0 14%, color-mix(in srgb, var(--chalk) 4%, transparent) 14% 14.35%);
  transform: perspective(700px) rotateX(64deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000, transparent);
}

.kb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.kb-title { font-variation-settings: 'wdth' var(--display-wdth); font-weight: 850; letter-spacing: -.01em; line-height: 1; overflow-wrap: anywhere; }
.kb-sunset-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kb-dash { display: block; width: 1.75rem; height: 3px; border-radius: 2px; background: var(--sunset); margin-bottom: .75rem; }
.kb-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.kb-eyebrow i.bar { width: 1.5rem; height: 3px; border-radius: 2px; background: var(--sunset); font-style: normal; }
.kb-muted { color: var(--fog); }
.kb-glass { background: color-mix(in srgb, var(--concrete) 82%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }

/* ─── buttons ───────────────────────────────────────────────── */
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 2.75rem; padding: 0 1.15rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: .875rem; white-space: nowrap; letter-spacing: .01em;
  background: var(--concrete-2); color: var(--chalk); border: 1px solid transparent;
  transition: filter .15s, transform .1s, background .15s, color .15s, border-color .15s, box-shadow .2s;
}
.kb-btn:hover { filter: brightness(1.15); }
.kb-btn:active { transform: translateY(1px); }
.kb-btn[disabled], .kb-btn.is-disabled { opacity: .45; pointer-events: none; }
.kb-btn.primary { background: var(--sunset); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--accent); }
.kb-btn.primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px var(--accent); }
.kb-btn.teal { background: var(--teal); color: #0B1E19; }
.kb-btn.ghost { background: transparent; color: var(--fog); border-color: var(--line); }
.kb-btn.ghost:hover { color: var(--chalk); border-color: var(--fog-2); filter: none; }
.kb-btn.block { width: 100%; }
.kb-btn.lg { height: 3.25rem; font-size: 1rem; padding: 0 1.5rem; }
.kb-btn.sm { height: 2.1rem; padding: 0 .8rem; font-size: .8125rem; }
.kb-btn.icon { width: 2.75rem; padding: 0; }
.kb-btn .count {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 1rem; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800;
}
.kb-btn.primary .count { background: rgba(0, 0, 0, .25); }

.kb-input {
  height: 2.75rem; width: 100%; padding: 0 .95rem; border-radius: var(--r-sm);
  background: var(--asphalt); border: 1px solid var(--line); outline: none; transition: border-color .15s;
}
.kb-input:focus { border-color: var(--accent); }
.kb-input::placeholder { color: var(--fog-2); }
textarea.kb-input { height: auto; min-height: 6rem; padding: .75rem .95rem; resize: vertical; }
select.kb-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fog) 50%), linear-gradient(135deg, var(--fog) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
select.kb-input option { background: var(--asphalt); }
.kb-field { display: grid; gap: .45rem; }
.kb-field > label { font-size: .8125rem; color: var(--fog); font-weight: 600; }
.kb-field .hint { font-size: .75rem; color: var(--fog-2); }

/* ─── announcement + header ─────────────────────────────────── */
.kb-announce { background: var(--sunset); color: var(--accent-ink); text-align: center; font-size: .8125rem; font-weight: 700; padding: .5rem 1rem; }
.kb-announce a { text-decoration: underline; }

.kb-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--asphalt) 78%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.kb-header .kb-wrap { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.kb-brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.kb-brand img { height: 40px; width: auto; }
.kb-brand.has-logo { gap: .55rem; }
.kb-brand .kb-logo { height: 60px; margin-block: -6px; filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent)); transition: transform .25s var(--ease); }
.kb-brand:hover .kb-logo { transform: rotate(-2deg) scale(1.04); }
.kb-suffix { padding: .22rem .5rem; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--fog); font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kb-footer-logo { height: 96px !important; filter: drop-shadow(0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent)); }
.kb-hero-logo { margin: .6rem 0 1.2rem; line-height: 0; }
.kb-hero-logo img { width: min(440px, 100%); height: auto; filter: drop-shadow(0 18px 50px color-mix(in srgb, var(--accent) 45%, transparent)); animation: kb-float 6s ease-in-out infinite; }
@keyframes kb-float { 50% { transform: translateY(-8px); } }
.kb-brand .word { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 600; color: var(--fog); }
.kb-brand .word b { color: var(--chalk); font-variation-settings: 'wdth' var(--display-wdth); font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.kb-brand .word em { font-style: normal; color: var(--line); font-weight: 400; }
.kb-brand .word i { width: 1.4rem; height: 3px; background: var(--sunset); border-radius: 2px; }

.kb-nav { display: flex; align-items: center; gap: .25rem; flex: 1; min-width: 0; }
.kb-nav > a { flex: none; }
.kb-nav > a, .kb-nav .kb-drop > a {
  display: inline-flex; align-items: center; gap: .45rem; height: 2.5rem; padding: 0 .85rem; border-radius: var(--r-sm);
  color: var(--fog); font-weight: 600; font-size: .875rem; white-space: nowrap; transition: color .15s, background .15s;
}
.kb-nav > a:hover, .kb-nav .kb-drop > a:hover, .kb-nav a.active { color: var(--chalk); background: var(--line-soft); }
.kb-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.kb-nav a.subs { color: var(--accent-2); }
.kb-nav a.subs i { color: var(--accent); }
.kb-drop { position: relative; }
.kb-drop .menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: .4rem; border-radius: var(--r-md);
  background: var(--concrete); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s var(--ease);
}
.kb-drop:hover .menu, .kb-drop:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.kb-drop .menu a { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); color: var(--fog); font-size: .875rem; font-weight: 600; }
.kb-drop .menu a:hover { background: var(--line-soft); color: var(--chalk); }

.kb-actions { display: flex; align-items: center; gap: .5rem; flex: none; margin-left: auto; }
.kb-user { display: inline-flex; align-items: center; gap: .55rem; height: 2.75rem; padding: 0 .4rem 0 .4rem; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: .8125rem; font-weight: 700; }
.kb-user .av { width: 1.9rem; height: 1.9rem; border-radius: var(--r-sm); background: var(--sunset); display: grid; place-items: center; color: var(--accent-ink); font-weight: 900; font-size: .8rem; }
.kb-user a { color: var(--fog-2); padding: 0 .45rem; }
.kb-user a:hover { color: var(--bad); }
.kb-burger { display: none; }

/* ─── hero ──────────────────────────────────────────────────── */
.kb-hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.kb-hero.has-img::before {
  content: ''; position: absolute; inset: 0; background-image: var(--hero-img); background-size: cover; background-position: center;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 100%);
}
.kb-hero .kb-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; align-items: center; }
.kb-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 1rem 0 1.1rem; text-transform: uppercase; }
.kb-hero h1 span { display: block; }
.kb-hero p.lead { max-width: 560px; font-size: 1.05rem; color: var(--fog); }
.kb-hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.kb-ip {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r);
  background: color-mix(in srgb, var(--concrete) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px);
  cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; width: 100%;
}
.kb-ip:hover { border-color: var(--teal); transform: translateY(-2px); }
.kb-ip .ic { width: 3rem; height: 3rem; flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); font-size: 1.2rem; }
.kb-ip small { display: block; color: var(--fog); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.kb-ip strong { font-variation-settings: 'wdth' 112; font-size: 1.05rem; word-break: break-all; }
.kb-ip .live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--teal); font-weight: 700; white-space: nowrap; }
.kb-ip .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); animation: kb-pulse 2s infinite; }
@keyframes kb-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.kb-hero-side { display: grid; gap: .75rem; }

/* ─── sections / cards ──────────────────────────────────────── */
.kb-main { flex: 1; padding-bottom: 72px; }
.kb-section { padding: 40px 0; }
.kb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.kb-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }
.kb-page-head { padding: 52px 0 28px; }
.kb-page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); text-transform: uppercase; margin-top: .6rem; }
.kb-page-head .desc { margin-top: .9rem; max-width: 760px; color: var(--fog); }
.kb-crumbs { display: flex; gap: .5rem; align-items: center; font-size: .8125rem; color: var(--fog-2); font-weight: 600; }
.kb-crumbs a:hover { color: var(--chalk); }

.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.kb-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.kb-sidebar { display: grid; gap: 16px; position: sticky; top: 92px; }

.kb-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.kb-cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
  min-height: 150px; padding: 1.25rem; border-radius: var(--r); background: var(--concrete); border: 1px solid var(--line-soft);
  transition: transform .2s var(--ease), border-color .2s;
}
.kb-cat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, var(--accent-a12), transparent 60%); }
.kb-cat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sunset); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.kb-cat:hover { transform: translateY(-3px); border-color: var(--line); }
.kb-cat:hover::after { transform: scaleX(1); }
.kb-cat .ic { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 1.6rem; color: var(--line); transition: color .2s; }
.kb-cat:hover .ic { color: var(--accent); }
.kb-cat h3 { position: relative; font-size: 1.15rem; text-transform: uppercase; }
.kb-cat span { position: relative; font-size: .8125rem; color: var(--fog); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.kb-cat.featured { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--concrete)), var(--concrete) 60%); }
.kb-cat.featured .ic { color: var(--accent-2); }

.kb-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-feature { padding: 1.4rem; border-radius: var(--r); background: var(--concrete); border: 1px solid var(--line-soft); }
.kb-feature i { font-size: 1.25rem; color: var(--accent); margin-bottom: .9rem; display: block; }
.kb-feature:nth-child(2) i { color: var(--accent-2); }
.kb-feature:nth-child(3) i { color: var(--teal); }
.kb-feature h3 { font-size: 1rem; margin-bottom: .35rem; font-variation-settings: 'wdth' 112; }
.kb-feature p { color: var(--fog); font-size: .875rem; }

/* package grid */
.kb-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kb-pkg {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--concrete); border: 1px solid var(--line-soft); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.kb-pkg:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 20px 40px -24px var(--accent); }
.kb-pkg .media { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 30%, var(--concrete-2), var(--asphalt)); display: grid; place-items: center; overflow: hidden; }
.kb-pkg .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.kb-pkg:hover .media img { transform: scale(1.04); }
.kb-pkg .media .ph { font-size: 3rem; color: var(--line); }
.kb-pkg .body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.kb-pkg h3 { font-size: 1rem; font-variation-settings: 'wdth' 112; font-weight: 800; }
.kb-pkg .price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin-top: auto; }
.kb-pkg .price strong { font-size: 1.25rem; font-weight: 850; font-variation-settings: 'wdth' 112; }
.kb-pkg .price small { color: var(--fog); font-size: .75rem; font-weight: 600; }
.kb-pkg .price del { color: var(--fog-2); font-size: .85rem; }
.kb-pkg .actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.kb-badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .3rem .55rem; border-radius: var(--r-sm);
  font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--sunset); color: var(--accent-ink);
}
.kb-badge.teal { background: var(--teal); color: #0B1E19; }
.kb-badge.right { left: auto; right: .75rem; }

.kb-pkg-list { display: grid; gap: 12px; }
.kb-pkg-list .kb-pkg { flex-direction: row; align-items: stretch; }
.kb-pkg-list .kb-pkg .media { width: 120px; aspect-ratio: auto; flex: none; }
.kb-pkg-list .kb-pkg .body { flex-direction: row; align-items: center; gap: 1rem; }
.kb-pkg-list .kb-pkg .body > div:first-child { flex: 1; }
.kb-pkg-list .kb-pkg .price { margin-top: 0; }

/* package page */
.kb-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.kb-gallery { display: grid; gap: 12px; }
.kb-gallery .main { border-radius: var(--r); overflow: hidden; background: var(--concrete); aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid var(--line-soft); }
.kb-gallery .main img, .kb-gallery .main iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.kb-gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-gallery .thumbs button { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; background: var(--concrete); display: grid; place-items: center; color: var(--fog); }
.kb-gallery .thumbs button.on { border-color: var(--accent); }
.kb-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.kb-buybox { padding: 1.75rem; border-radius: var(--r); }
.kb-buybox h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; margin: .6rem 0 1rem; }
.kb-buybox .price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.kb-buybox .price strong { font-size: 2.2rem; font-weight: 900; font-variation-settings: 'wdth' 118; }
.kb-buybox .price del { color: var(--fog-2); }
.kb-buybox .price .off { padding: .2rem .5rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); font-weight: 800; font-size: .8rem; }
.kb-buybox .btns { display: grid; gap: .6rem; }
.kb-buybox .note { margin-top: 1rem; font-size: .8125rem; color: var(--fog); display: flex; gap: .5rem; align-items: center; }

/* rich text (descriptions, CMS pages) */
.kb-prose { color: color-mix(in srgb, var(--chalk) 86%, var(--fog)); line-height: 1.7; }
.kb-prose > * + * { margin-top: .9em; }
.kb-prose h1, .kb-prose h2, .kb-prose h3 { color: var(--chalk); font-variation-settings: 'wdth' 112; margin-top: 1.4em; }
.kb-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.kb-prose ul, .kb-prose ol { padding-left: 1.3em; }
.kb-prose li + li { margin-top: .3em; }
.kb-prose li::marker { color: var(--accent); }
.kb-prose img { border-radius: var(--r-md); }
.kb-prose code { background: var(--concrete-2); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.kb-prose blockquote { margin: 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-a12); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.kb-prose table { width: 100%; border-collapse: collapse; }
.kb-prose td, .kb-prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.kb-card { padding: 1.5rem; border-radius: var(--r); background: var(--concrete); border: 1px solid var(--line-soft); }

/* sidebar modules */
.kb-module { padding: 1.15rem 1.2rem; border-radius: var(--r); background: var(--concrete); border: 1px solid var(--line-soft); }
.kb-module > h4 { display: flex; align-items: center; gap: .55rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); margin-bottom: .9rem; font-weight: 800; }
.kb-module > h4::before { content: ''; width: 1.1rem; height: 3px; border-radius: 2px; background: var(--sunset); }
.kb-bar { height: .65rem; border-radius: 1rem; background: var(--asphalt); overflow: hidden; border: 1px solid var(--line); }
.kb-bar > span { display: block; height: 100%; background: var(--sunset); border-radius: inherit; }
.kb-bar.striped > span { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px), var(--sunset); background-size: 22px 22px, 100% 100%; }
.kb-bar.animated > span { animation: kb-stripes 1s linear infinite; }
@keyframes kb-stripes { to { background-position: 22px 0, 0 0; } }
.kb-pay-list { display: grid; gap: .55rem; }
.kb-pay { display: flex; align-items: center; gap: .65rem; font-size: .8125rem; }
.kb-pay img { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--concrete-2); }
.kb-pay b { display: block; }
.kb-pay small { color: var(--fog); }
.kb-pay .amt { margin-left: auto; color: var(--teal); font-weight: 800; }

/* ─── basket drawer ─────────────────────────────────────────── */
.kb-scrim { position: fixed; inset: 0; background: rgba(8, 4, 16, .6); backdrop-filter: blur(3px); z-index: 80; opacity: 0; visibility: hidden; transition: .2s; }
.kb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90; display: flex; flex-direction: column;
  background: var(--asphalt); border-left: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .3s var(--ease);
}
body.basket-open .kb-scrim { opacity: 1; visibility: visible; }
body.basket-open .kb-drawer { transform: none; }
.kb-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.kb-drawer header h3 { font-size: 1.15rem; text-transform: uppercase; }
.kb-drawer .items { flex: 1; overflow: auto; padding: 1rem 1.4rem; display: grid; align-content: start; gap: .65rem; }
.kb-line { display: flex; align-items: center; gap: .8rem; padding: .7rem; border-radius: var(--r-md); background: var(--concrete); }
.kb-line .thumb { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--concrete-2); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--fog); }
.kb-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-line .nm { flex: 1; min-width: 0; }
.kb-line .nm b { display: block; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-line .nm small { color: var(--fog); font-size: .75rem; }
.kb-line .rm { width: 2rem; height: 2rem; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--fog-2); }
.kb-line .rm:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.kb-empty { text-align: center; padding: 3rem 1rem; color: var(--fog); }
.kb-empty i { font-size: 2.2rem; color: var(--line); display: block; margin-bottom: .9rem; }
.kb-drawer footer { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line-soft); display: grid; gap: .8rem; }
.kb-coupon { display: flex; gap: .5rem; }
.kb-coupon-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.kb-coupon-tags a { display: inline-flex; gap: .4rem; align-items: center; padding: .25rem .55rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); font-size: .75rem; font-weight: 700; }
.kb-total { display: flex; justify-content: space-between; align-items: baseline; }
.kb-total strong { font-size: 1.5rem; font-weight: 900; font-variation-settings: 'wdth' 115; }

/* toast */
.kb-toasts { position: fixed; top: 88px; right: 20px; z-index: 100; display: grid; gap: .6rem; width: min(360px, calc(100% - 40px)); }
.kb-toast {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md);
  background: var(--concrete); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: var(--shadow);
  animation: kb-in .35s var(--ease); font-size: .875rem;
}
.kb-toast.success { border-left-color: var(--teal); }
.kb-toast.error, .kb-toast.danger { border-left-color: var(--bad); }
.kb-toast.info { border-left-color: var(--info); }
.kb-toast.out { animation: kb-out .25s var(--ease) forwards; }
@keyframes kb-in { from { opacity: 0; transform: translateX(20px); } }
@keyframes kb-out { to { opacity: 0; transform: translateX(20px); } }

/* forms page (login, options, checkout) */
.kb-form-card { max-width: 520px; margin: 0 auto; padding: 2rem; border-radius: var(--r); }
.kb-form-card h1 { font-size: 1.9rem; text-transform: uppercase; margin-bottom: .6rem; }
.kb-form-card form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.kb-form-card.wide { max-width: 720px; }
.kb-login-provider { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-md); background: var(--accent-a12); color: var(--accent); font-size: 1.6rem; margin-bottom: 1.2rem; }

/* footer */
.kb-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 28px; background: color-mix(in srgb, var(--asphalt) 70%, #000); }
.kb-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.kb-footer h5 { margin: 0 0 .9rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.kb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.kb-footer ul a { color: var(--fog); font-size: .875rem; }
.kb-footer ul a:hover { color: var(--chalk); }
.kb-footer .about { color: var(--fog); font-size: .875rem; max-width: 380px; margin-top: .9rem; }
.kb-footer .legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); font-size: .75rem; color: var(--fog-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kb-socials { display: flex; gap: .5rem; margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIPTIONS  ·  tier comparison
   Tier cards sit above their own column; perk rows below line up with
   them. Each tier column has its own colour (--tier), set inline.
═══════════════════════════════════════════════════════════════ */
.kb-subs { --label-w: minmax(240px, 1.35fr); --cols: 3; }
.kb-subs-scroll { overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: thin; }
.kb-subs-grid { min-width: calc(240px + var(--cols) * 170px); display: grid; gap: 10px 14px; grid-template-columns: var(--label-w) repeat(var(--cols), minmax(150px, 1fr)); }

/* top row: tier cards */
.kb-subs-intro { align-self: end; padding: 0 .25rem 1rem; }
.kb-subs-intro h3 { font-size: 1.05rem; text-transform: uppercase; }
.kb-subs-intro p { color: var(--fog); font-size: .8125rem; margin-top: .4rem; }
.kb-tier {
  --tier: var(--accent);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
  padding: 1rem 1rem 1.1rem; border-radius: var(--r); background: var(--concrete);
  border: 1px solid color-mix(in srgb, var(--tier) 22%, var(--line-soft));
  box-shadow: 0 24px 50px -30px var(--tier); transition: transform .25s var(--ease), box-shadow .25s;
}
.kb-tier::before { content: ''; position: absolute; left: 14%; right: 14%; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tier); }
.kb-tier:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px var(--tier); }
.kb-tier.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 18%, var(--concrete)), var(--concrete) 70%); border-color: color-mix(in srgb, var(--tier) 55%, transparent); }
.kb-tier .pop { position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .22rem .6rem; border-radius: 1rem; font-size: .625rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; background: var(--tier); color: #12091C; }
.kb-tier .art { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tier) 28%, var(--asphalt)), var(--asphalt) 72%); display: grid; place-items: center; }
.kb-tier .art img { width: 100%; height: 100%; object-fit: cover; }
.kb-tier .art .ph { font-size: 3.2rem; color: var(--tier); filter: drop-shadow(0 6px 18px var(--tier)); }
.kb-tier h3 { font-size: 1.1rem; text-transform: uppercase; color: var(--tier); }
.kb-tier .price { line-height: 1.1; min-height: 2.75rem; display: flex; flex-direction: column; justify-content: flex-end; }
.kb-tier .price strong { font-size: 1.35rem; font-weight: 900; font-variation-settings: 'wdth' 115; }
.kb-tier .price small { color: var(--fog); font-size: .75rem; font-weight: 600; }
.kb-tier .price del { display: block; color: var(--fog-2); font-size: .8rem; }
.kb-tier .kb-btn { width: 100%; height: 2.5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--tier); color: #12091C; box-shadow: none; }
.kb-tier .kb-btn.in-basket { background: transparent; color: var(--tier); border-color: var(--tier); }
.kb-tier .once { font-size: .72rem; color: var(--fog); text-decoration: underline; text-underline-offset: 3px; }
.kb-tier .once:hover { color: var(--chalk); }

/* section header bars */
.kb-subs-sec {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .7rem; margin-top: 18px; padding: .8rem 1.1rem;
  border-radius: var(--r-md); background: var(--sunset); color: var(--accent-ink);
  font-variation-settings: 'wdth' var(--display-wdth); font-weight: 900; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 14px 30px -18px var(--accent), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.kb-subs-sec i { opacity: .9; }

/* perk rows */
.kb-subs-label {
  display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 52px; padding: .65rem .95rem;
  border-radius: var(--r-md); background: var(--concrete); border: 1px solid var(--line-soft); font-size: .8125rem;
}
.kb-subs-label b { font-weight: 700; color: var(--chalk); }
.kb-subs-label span { color: var(--fog); font-size: .75rem; line-height: 1.4; }
.kb-subs-cell {
  --tier: var(--accent);
  display: grid; place-items: center; min-height: 52px; padding: .5rem; border-radius: var(--r-md); text-align: center;
  background: color-mix(in srgb, var(--asphalt) 70%, #000); border: 1px solid var(--line-soft);
  color: var(--tier); font-weight: 700; font-size: .875rem; transition: background .15s;
}
.kb-subs-cell.featured { background: color-mix(in srgb, var(--tier) 7%, color-mix(in srgb, var(--asphalt) 70%, #000)); border-color: color-mix(in srgb, var(--tier) 22%, transparent); }
.kb-subs-cell .yes { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tier) 22%, transparent); color: var(--tier); font-size: .9rem; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 35%, transparent); }
.kb-subs-cell .no { color: var(--fog-2); font-weight: 400; opacity: .6; }
.kb-subs-row:hover > * { background: var(--concrete-2); }
.kb-subs-row { display: contents; }

.kb-subs-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 28px; padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--concrete); border: 1px solid var(--line-soft); font-size: .8125rem; color: var(--fog); }
.kb-subs-foot i { color: var(--teal); margin-right: .4rem; }
.kb-subs-mobile-hint { display: none; font-size: .75rem; color: var(--fog-2); margin-bottom: .6rem; }

/* sticky first column when the table scrolls sideways */
@media (max-width: 900px) {
  .kb-subs-mobile-hint { display: block; }
  .kb-subs-grid { --label-w: 200px; }
  .kb-subs-label, .kb-subs-intro { position: sticky; left: 0; z-index: 2; }
  .kb-subs-intro { background: var(--asphalt); }
  .kb-subs-sec { position: sticky; left: 0; }
}

/* ─── responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .kb-layout { grid-template-columns: minmax(0, 1fr); }
  .kb-sidebar { position: static; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
/* The open menu hangs from the header (absolute, not fixed: the header's backdrop blur would
   otherwise squash a fixed panel to a thin strip).
   Menu collapses into the burger when it no longer fits: below 1180px always, and above that
   whenever kabuki.js finds the category links would run into the basket (body.kb-nav-compact). */
@media (max-width: 1180px) {
  .kb-burger { display: inline-flex; }
  .kb-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); flex-direction: column; border-top: 1px solid var(--line-soft); align-items: stretch; gap: .2rem;
    padding: 1rem 20px 2rem; background: var(--asphalt); overflow: auto; transform: translateX(-100%); transition: transform .3s var(--ease);
  }
  body.nav-open .kb-nav { transform: none; }
  .kb-nav > a, .kb-nav .kb-drop > a { height: 3rem; font-size: 1rem; }
  .kb-drop .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; }
  .kb-user .nm { display: none; }
}
body.kb-nav-compact .kb-burger { display: inline-flex; }
body.kb-nav-compact .kb-nav {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); flex-direction: column; border-top: 1px solid var(--line-soft); align-items: stretch; gap: .2rem;
  padding: 1rem 20px 2rem; background: var(--asphalt); overflow: auto; transform: translateX(-100%); transition: transform .3s var(--ease);
}
body.kb-nav-compact.nav-open .kb-nav { transform: none; }
body.kb-nav-compact .kb-nav > a, body.kb-nav-compact .kb-nav .kb-drop > a { height: 3rem; font-size: 1rem; }
body.kb-nav-compact .kb-drop .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; }
@media (max-width: 980px) {
  .kb-hero .kb-wrap { grid-template-columns: 1fr; }
  .kb-product { grid-template-columns: 1fr; }
  .kb-features { grid-template-columns: 1fr; }
  .kb-footer .cols { grid-template-columns: 1fr 1fr; }
  .kb-footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .kb-wrap { padding: 0 16px; }
  .kb-brand .word span, .kb-brand .word em { display: none; }
  .kb-hero { padding: 48px 0 36px; }
  .kb-cat.featured { grid-column: auto; }
  .kb-pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kb-pkg .actions { grid-template-columns: 1fr; }
  .kb-pkg .actions .kb-btn.icon { display: none; }
  .kb-pkg-list .kb-pkg .body { flex-direction: column; align-items: stretch; }
  .kb-pkg-list .kb-pkg .media { width: 88px; }
  .kb-actions .kb-btn .lbl { display: none; }
  .kb-header .kb-wrap { gap: .6rem; }
  .kb-brand .word { gap: .4rem; }
  .kb-brand .word b { font-size: .88rem; }
  .kb-brand img { height: 32px; }
  .kb-brand .kb-logo { height: 48px; margin-block: -4px; }
  .kb-suffix { display: none; }
  .kb-user { padding: 0 .3rem; }
  .kb-user a { display: none; }
  .kb-actions .kb-btn { padding: 0 .7rem; }
  .kb-subs-grid { --label-w: 140px; min-width: calc(140px + var(--cols) * 118px); grid-template-columns: var(--label-w) repeat(var(--cols), minmax(110px, 1fr)); gap: 8px; }
  .kb-subs-label { padding: .55rem .65rem; }
  .kb-tier { padding: .75rem .6rem .85rem; }
  .kb-tier .price strong { font-size: 1.1rem; }
  .kb-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* lock the page behind the open menu */
body.nav-open { overflow: hidden; }

/* Discord connect (options page) */
.kb-discord { display: flex; align-items: center; gap: .85rem; padding: .85rem; border-radius: var(--r-md); background: var(--asphalt); border: 1px solid var(--line); }
.kb-discord .ic { width: 2.75rem; height: 2.75rem; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 1.3rem; background: rgba(88, 101, 242, .16); color: #8C9EFF; }
.kb-discord .txt { flex: 1; min-width: 0; display: grid; }
.kb-discord .txt b { font-size: .9rem; }
.kb-discord .txt small { color: var(--fog); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-discord.on { border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.kb-discord.on .ic { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.kb-discord.on .txt b { color: var(--teal); }
.kb-discord.shake { animation: kb-shake .4s; }
@keyframes kb-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.kb-btn.discord { background: #5865F2; color: #fff; }
@media (max-width: 600px) { .kb-discord { flex-wrap: wrap; } .kb-discord .kb-btn { width: 100%; } }

/* wide screens with too many categories: the burger opens a dropdown card, not a full panel */
@media (min-width: 1181px) {
  body.kb-nav-compact .kb-nav {
    top: calc(100% + 8px); left: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); right: auto; width: 300px;
    height: auto; max-height: calc(100vh - 100px); padding: .5rem; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--concrete); box-shadow: var(--shadow);
    transform: translateY(-6px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s;
  }
  body.kb-nav-compact.nav-open .kb-nav { transform: none; opacity: 1; visibility: visible; }
  body.kb-nav-compact .kb-nav > a, body.kb-nav-compact .kb-nav .kb-drop > a { height: 2.75rem; font-size: .9375rem; }
  body.kb-nav-compact.nav-open { overflow: visible; }
}
