/* =========================================================================
   ModsHub — Tebex custom theme
   Design tokens, layout, components, responsive. Implemented from Figma.
   ========================================================================= */

:root {
  /* Colours (Figma: "Colors FiveMods") */
  --bg: linear-gradient(301deg, #0D1016 50%, #192434 100%);                           /* Black (page gradient) */
  --bg-solid: #0D1016;                    /* Solid dark — for text on light/accent fills (color: can't take a gradient) */
  --text: #F5F9FF;                        /* Siren Text */
  --text-60: rgba(245, 249, 255, 0.6);
  --text-40: rgba(245, 249, 255, 0.4);
  --siren: 176, 192, 232;                 /* Siren base — always used with alpha */
  --surface-3: rgba(var(--siren), 0.03);
  --surface-5: rgba(var(--siren), 0.05);
  --border-5: rgba(var(--siren), 0.05);
  --border-10: rgba(var(--siren), 0.10);
  --fill-10: rgba(var(--siren), 0.10);
  --fill-15: rgba(var(--siren), 0.15);
  --accent: #85A2F3;                      /* blue — icon plates + product hover */
  --blue: #00A9FF;                        /* Colors FiveMods/Blue — active tabs, toggle, Showcase button */

  --container: 1400px;
  --pad: 120px;                           /* container side padding */
  --section-pad: 64px;                    /* section vertical padding */

  /* Tebex legal/credit footer (injected by Tebex) — match our palette.
     https://docs.tebex.io/developers/templates/footer */
  --tebex-legal-footer-background-color: var(--bg-solid);
  --tebex-legal-footer-text-color: var(--text-60);
  --tebex-legal-footer-border-color: var(--border-10);
  --tebex-legal-footer-logo-color: var(--text);
  --tebex-legal-footer-max-width: var(--container);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Ubuntu Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Shared section heading */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  margin-bottom: 64px;
}
.section-head--center { text-align: center; }
.section-head__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.section-head__title--center { text-align: center; }
.section-head__lead {
  max-width: 580px;
  font-size: 16px;
  color: var(--text);
}
.is-bright { color: var(--text); }
.is-muted { color: var(--text-60); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, background .15s ease, opacity .15s ease, border-color .15s ease;
}
.btn--solid {
  background: var(--text);
  color: var(--bg-solid);
  border-radius: 100px;
  padding: 8px 28px;
  min-height: 40px;
}
.btn--solid:hover { opacity: .9; }
.btn--ghost {
  background: var(--surface-5);
  border: 1px solid var(--border-10);
  color: var(--text);
  border-radius: 10px;
  padding: 0 14px;
  min-height: 32px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--fill-10); }
.btn--pill { border-radius: 32px; min-height: 40px; padding: 0 20px; }
.btn--fill {
  background: var(--fill-10);
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 16px;
  width: 100%;
}
.btn--fill:hover { background: var(--fill-15); }

.icon { display: block; }
.icon--discord { width: 18px; height: 14px; }
.icon--bag { width: 21px; height: auto; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.icon-btn--fill {
  background: rgba(var(--siren), 0.2);
  color: var(--text-40);
  border-radius: 10px;
  width: 46px;
  height: 40px;
  flex: none;
}
.icon-btn--fill:hover { background: rgba(var(--siren), 0.28); color: var(--text); }
.is-adding { opacity: .6; pointer-events: none; }
.cart__count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-solid);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}
.link-arrow svg { width: 24px; height: 24px; flex: none; }
.link-arrow:hover { opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 22, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo__mark { width: 24px; height: 24px; color: var(--text); display: block; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { color: var(--text); font-weight: 500; font-size: 16px; transition: opacity .15s ease; }
.nav__link:hover { opacity: .75; }
.nav__link--muted { color: var(--text-40); cursor: default; }
.nav__link--muted:hover { opacity: 1; }

.btn--showcase {
  background: var(--blue);
  color: var(--text);
  border-radius: 10px;
  min-height: 32px;
  padding: 0 14px;
}
.btn--showcase:hover { opacity: .9; }
.icon--server { width: 16px; height: 12px; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.cart .icon--bag { width: 20px; height: auto; }

/* Logged-in chip: shows the player, swaps to "Log out" on hover/focus.
   Both labels are stacked in a single grid cell so the button's width is the
   max of the two and never reflows on hover — otherwise the shorter "Log out"
   collapses the box out from under the cursor, causing a hover flicker loop. */
.user-name { max-width: 180px; display: grid; align-items: center; justify-items: center; }
.user-name > * { grid-area: 1 / 1; max-width: 100%; }
.user-name__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-name__logout { visibility: hidden; }
.user-name:hover .user-name__name,
.user-name:focus-visible .user-name__name { visibility: hidden; }
.user-name:hover .user-name__logout,
.user-name:focus-visible .user-name__logout { visibility: visible; }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(208deg, rgba(25, 36, 52, 0.12) 9.7%, rgba(13, 16, 22, 0.9) 90.3%);
}
.hero__inner {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  padding-block: 64px;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__lead { max-width: 420px; font-size: 16px; color: var(--text); }
.hero__meta { max-width: 420px; font-size: 16px; color: var(--text-60); }
.hero__buttons { display: flex; align-items: center; gap: 16px; }

/* ---------- Features ---------- */
.features { background: var(--surface-3); padding-block: var(--section-pad); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 96px; }
.feature { display: flex; flex-direction: column; gap: 26px; }
.feature__head { display: flex; align-items: center; gap: 26px; }
.feature__title {
  font-weight: 700; font-size: 24px; line-height: 1.2;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.feature__desc { font-size: 16px; }

.icon-plate {
  width: 40px; height: 40px;
  border-radius: 7.5px;
  border: 0.75px solid var(--accent);
  background: linear-gradient(to bottom, var(--fill-15), rgba(var(--siren), 0.02));
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex: none;
}
.icon-plate svg { width: 20px; height: 20px; }

/* ---------- Featured products ---------- */
.products { padding-block: var(--section-pad); }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
  background: var(--surface-5);
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-card__media {
  display: block;
  aspect-ratio: 260 / 170;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px; flex: 1; padding: 20px;
}
.product-card__text { display: flex; flex-direction: column; gap: 20px; }
.product-card__name {
  font-weight: 700; font-size: 20px; line-height: 1.2;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.product-card__price { font-weight: 700; font-size: 20px; line-height: 1; }
.product-card__actions { display: flex; align-items: stretch; gap: 14px; }
.product-card__view { flex: 1; }

/* ---------- Why our mapping ---------- */
.why { background: var(--surface-3); padding-block: var(--section-pad); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.why-card { display: flex; flex-direction: column; }
.why-card__media {
  position: relative;
  aspect-ratio: 344 / 462;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface-3);
}
.why-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.why-card__overlay { mix-blend-mode: normal; }
.why-card__text { display: flex; flex-direction: column; gap: 14px; padding: 20px 10px; }
.why-card__title {
  font-weight: 700; font-size: 20px; line-height: 1.2;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.why-card__desc { font-size: 16px; color: var(--text-60); }

/* ---------- Built by team ---------- */
.built-by { padding-block: var(--section-pad); }
.built-by__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.built-by__lead { max-width: 580px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--surface-3); padding-block: var(--section-pad); }
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.review-card {
  background: var(--surface-3);
  border-radius: 10px;
  padding: 15px 20px 25px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-card__name {
  font-weight: 700; font-size: 24px; line-height: 1.2;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.review-card__stars { display: flex; gap: 4px; }
.star { width: 14px; height: 14px; color: var(--border-10); }
.star.is-on { color: #3B9DFF; }
.review-card__text { font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-pad); }
.faq .section-head__title--center { text-align: center; margin-bottom: 64px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface-3); border-radius: 10px; overflow: hidden; }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px;
  background: none; border: 0; color: var(--text); cursor: pointer; text-align: left;
}
.faq-item__question {
  font-weight: 700; font-size: 20px; line-height: 1.2;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.faq-item__chevron {
  flex: none; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: transform .3s ease;
}
.faq-item__chevron svg { width: 24px; height: 24px; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item__a p { padding: 0 72px 20px 20px; color: var(--text-60); font-size: 16px; }

/* ---------- Questions CTA ---------- */
.questions { background: var(--surface-3); padding-block: var(--section-pad); }
.questions__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.questions__lead { max-width: 580px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--section-pad); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center; }
.footer-card {
  border: 1px solid var(--border-10);
  border-radius: 40px;
  padding: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-card__brand { font-size: 16px; line-height: 1.5; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-40); font-size: 16px; transition: color .15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-disclaimer { max-width: 580px; color: var(--text-60); font-size: 16px; }

/* ---------- Package page ---------- */
.package { padding-block: var(--section-pad); }
.package__detail { display: flex; flex-direction: column; gap: 48px; align-items: flex-start; max-width: 1160px; }
.package__gallery { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.package__main { aspect-ratio: 1920 / 1080; border-radius: 10px; overflow: hidden; background: var(--surface-5); cursor: zoom-in; }
.package__main img { width: 100%; height: 100%; object-fit: cover; }
.package__thumbs { display: flex; flex-wrap: wrap; gap: 14px; }
.package__thumb { flex: none; width: 104px; aspect-ratio: 104 / 59; border-radius: 10px; overflow: hidden; background: var(--surface-5); cursor: pointer; }
.package__thumb img { width: 100%; height: 100%; object-fit: cover; }
.package__thumb--active img { opacity: .42; }
/* Video items (YouTube from media[]): play badge over the poster. */
.package__main--video, .package__thumb--video { position: relative; }
.package__main--video::before, .package__thumb--video::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(13, 16, 22, 0.55); border-radius: 50%; pointer-events: none;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.package__main--video::after, .package__thumb--video::after {
  content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none;
  transform: translate(-42%, -50%);
  border-style: solid; border-color: transparent transparent transparent var(--text);
}
.package__main--video::before { width: 72px; height: 72px; }
.package__main--video::after { border-width: 12px 0 12px 20px; }
.package__thumb--video::before { width: 30px; height: 30px; }
.package__thumb--video::after { border-width: 5px 0 5px 9px; }
.package__main--video { cursor: pointer; }
/* Inline video: iframe fills the main slot; hide the poster badge while playing. */
.package__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.package__video[hidden] { display: none; }
.package__main--playing { cursor: default; }
.package__main--playing::before, .package__main--playing::after { display: none; }
.package__expand {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(13, 16, 22, 0.6); color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.package__expand:hover { background: rgba(13, 16, 22, 0.85); }
.package__expand[hidden] { display: none; }
.package__expand svg { width: 18px; height: 18px; }

/* ---------- Lightbox (package gallery fullscreen) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  background: rgba(5, 8, 13, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; }
.lightbox__img[hidden] { display: none; }
.lightbox__video { width: min(100%, 1280px); aspect-ratio: 16 / 9; max-height: 100%; }
.lightbox__video[hidden] { display: none; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.lightbox__btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--surface-5); color: var(--text);
  font-size: 28px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.lightbox__btn:hover { background: var(--fill-15); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__prev[hidden], .lightbox__next[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 560px) {
  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
.package__head { display: flex; flex-direction: column; gap: 26px; }
.package__title { font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.04em; text-transform: uppercase; }
.package__tagline { font-size: 16px; }
.package__buy { display: flex; align-items: center; gap: 32px; }
.package__price { font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.package__desc { font-size: 16px; line-height: 1.5; }
.package__desc ul { list-style: disc; padding-left: 24px; margin: 0; }
.package__desc li { margin-bottom: 8px; }
.package__desc p { margin: 0 0 12px; }
.package__desc :last-child { margin-bottom: 0; }

/* ---------- Purchase-success popup ---------- */
.purchase {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.purchase[hidden] { display: none; }
.purchase__card {
  position: relative;
  width: 630px; max-width: 100%;
  padding: 64px 120px;
  border-radius: 24px;
  background: linear-gradient(-56deg, rgba(23, 26, 32, 0.94) 50%, rgba(35, 46, 62, 0.94) 100%);
  border: 1px solid var(--border-5);
  display: flex; flex-direction: column; align-items: center; gap: 48px;
  text-align: center;
}
.purchase__close {
  position: absolute; top: 20px; right: 20px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; cursor: pointer;
  background: none; color: var(--text-60);
  transition: background .15s ease, color .15s ease;
}
.purchase__close:hover { background: var(--fill-10); color: var(--text); }
.purchase__close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.purchase__close svg { width: 14px; height: 14px; }
.purchase__head { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.purchase__logo { display: block; width: 46px; height: 46px; color: var(--text); }
.purchase__logo svg { width: 100%; height: 100%; }
.purchase__title { font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.purchase__lead { font-size: 16px; line-height: 1.5; }
.purchase__body { display: flex; flex-direction: column; align-items: center; gap: 26px; width: 390px; max-width: 100%; }
.purchase__cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; padding: 26px 32px;
  border: 1px solid var(--border-10); border-radius: 40px;
}
.purchase__cta-text { font-size: 16px; line-height: 1.5; }
.purchase__note { font-size: 16px; line-height: 1.5; color: var(--text-60); }
.purchase__note a { color: var(--text); text-decoration: underline; }
body.modal-open { overflow: hidden; }

/* ---------- Showcase server CTA (package page) ---------- */
.showcase { position: relative; overflow: hidden; padding-block: var(--section-pad); }
.showcase__glow {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 100%;
  aspect-ratio: 1400 / 514;
  background-repeat: no-repeat; background-size: 100% 100%;
  pointer-events: none;
}
.showcase__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.showcase__text { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.showcase__title { font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.showcase__lead { font-size: 16px; line-height: 1.5; }
.showcase__btn { padding: 14px 24px; }
.showcase__icon { width: 16px; height: 12px; }
.showcase__render { width: 410px; max-width: 100%; height: auto; }

/* ---------- Login / auth page (username.html, served at /login) ---------- */
.auth { padding-block: 192px; }
.auth__inner { display: flex; flex-direction: column; align-items: center; gap: 64px; text-align: center; }
.auth__logo { display: block; width: 80px; height: 80px; color: var(--text); }
.auth__logo svg { width: 100%; height: 100%; }
.auth__text { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.auth__title { font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.auth__lead { font-size: 16px; line-height: 1.5; max-width: 606px; color: var(--text); }
.auth__btn { padding: 14px 24px; }
.auth__icon { width: 20px; height: 20px; }
.auth__form { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 360px; }
.auth__input {
  width: 100%;
  background: var(--surface-5);
  border: 1px solid var(--border-10);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 11px 16px;
  text-align: center;
}
.auth__input::placeholder { color: var(--text-60); }
.auth__input:focus { outline: none; border-color: rgba(var(--siren), 0.5); }

/* ---------- Checkout / basket (checkout.html) ----------
   Layout follows the Exo base (item cards, info left / controls right,
   bulleted options, accent price, full-width checkout) on our colour tokens. */
.site-content {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: var(--section-pad);
}
.basket { display: flex; flex-direction: column; gap: 16px; }

.basket-title {
  font-weight: 700; font-size: 32px; line-height: 1.1;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.basket-second-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-10);
}
.basket-second-header .count { color: var(--text-60); font-size: 16px; }
.basket-second-header .total { font-weight: 700; font-size: 18px; }

.basket-items { display: flex; flex-direction: column; gap: 12px; }
.basket-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface-5);
  border: 1px solid var(--border-5);
  border-radius: 10px;
}
.basket-item .info { flex: 1; min-width: 0; margin-right: auto; display: flex; flex-direction: column; gap: 5px; }
.basket-item .title {
  font-weight: 700; font-size: 15px; line-height: 1.2;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.basket-item .title a { color: var(--text); transition: color .15s ease; }
.basket-item .title a:hover { color: var(--accent); }
.basket-item .options { display: flex; flex-direction: column; gap: 3px; color: var(--text-60); font-size: 13px; }
.basket-item .options li { display: flex; align-items: center; gap: 8px; }
.basket-item .options li::before {
  content: ""; flex: none; width: 3px; height: 3px;
  border-radius: 50%; background: currentColor;
}
.basket-item .price { font-weight: 700; font-size: 15px; color: var(--accent); }

.quantity-field {
  display: flex; align-items: center; flex: none;
  border: 1px solid var(--border-10); border-radius: 9px; overflow: hidden;
  background: var(--fill-10);
}
.quantity-field .quantity {
  width: 40px; height: 34px; border: 0; background: transparent;
  color: var(--text); text-align: center; font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.quantity-field .quantity::-webkit-outer-spin-button,
.quantity-field .quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-glyph.adjust {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0;
  background: transparent; color: var(--text);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.btn-glyph.adjust:hover:not([disabled]) { background: var(--fill-15); }
.btn-glyph.adjust[disabled] { opacity: .35; cursor: not-allowed; }

.remove.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--border-10); background: transparent;
  color: var(--text-60); font-size: 13px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.remove.btn-secondary:hover { color: var(--text); border-color: var(--accent); }

.basket-checkout {
  margin-top: 8px; padding-top: 20px;
  border-top: 1px solid var(--border-10);
}
.basket-checkout h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
  font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--text-60);
}
.basket-checkout .total { color: var(--text); font-weight: 700; font-size: 24px; }
.btn-primary.checkout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; padding: 0 32px; border: 0; border-radius: 100px;
  background: var(--text); color: var(--bg-solid);
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: opacity .15s ease;
}
.btn-primary.checkout:hover { opacity: .9; }

@media (max-width: 560px) {
  .basket-item { flex-wrap: wrap; }
  .basket-item .info { flex-basis: 100%; }
}

/* ---------- Basket side drawer (Exo-style, opens in place) ---------- */
.basket-drawer {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; justify-content: flex-end;
  background: rgba(5, 8, 13, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.basket-drawer.is-open { opacity: 1; visibility: visible; }
.basket-drawer__panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 480px; height: 100%;
  background: var(--bg-solid);
  border-left: 1px solid var(--border-10);
  overflow-y: auto;
  translate: 100% 0;
  transition: translate .25s ease;
}
.basket-drawer.is-open .basket-drawer__panel { translate: 0 0; }
.basket-drawer__panel.is-loading { pointer-events: none; }
.basket-drawer__panel.is-loading .basket-drawer__body { opacity: .4; }
.basket-drawer__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-5); color: var(--text);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.basket-drawer__close:hover { background: var(--fill-15); }
.basket-drawer__body { padding: 28px 24px; }
.basket-drawer .site-content { max-width: none; padding: 0; }
.basket-empty { padding: 40px 0; text-align: center; color: var(--text-60); font-size: 18px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 560px) {
  .basket-drawer__panel { max-width: none; }
}

/* =========================================================================
   Mods page — See the difference, billing toggle, mods product card
   ========================================================================= */

/* Shared pill tab (compare packs + billing period) */
.compare__tab, .billing__tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 20px;
  border-radius: 100px;
  background: var(--surface-5);
  border: 1px solid var(--border-10);
  color: var(--text);
  font: inherit; font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.compare__tab:hover, .billing__tab:hover { background: var(--fill-10); }
.compare__tab.is-active, .billing__tab.is-active {
  background: var(--blue); border-color: var(--blue);
}

/* See the difference */
.compare { background: var(--surface-3); padding-block: var(--section-pad); }
.compare .container { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.compare .section-head { margin-bottom: 0; }
.compare .section-head__lead { max-width: none; white-space: nowrap; }
@media (max-width: 820px) { .compare .section-head__lead { white-space: normal; } }

.compare__viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 1160 / 652;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface-3);
  user-select: none;
  touch-action: none;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; }
/* before/vanilla sits on top, revealed from the left up to the slider position */
.compare__layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--bg-solid);
}
.compare__handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-solid); color: var(--text);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.compare__handle svg { width: 18px; height: 18px; }
/* full-surface range drives the slider (drag + keyboard); thumb is invisible */
.compare__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize;
}
.compare__range:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 100%; cursor: ew-resize; }
.compare__range::-moz-range-thumb { width: 40px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }

.compare__range { z-index: 1; }
.compare__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(13, 16, 22, 0.55); color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .15s ease;
}
.compare__nav:hover { background: rgba(13, 16, 22, 0.85); }
.compare__nav svg { width: 22px; height: 22px; }
.compare__nav--prev { left: 12px; }
.compare__nav--next { right: 12px; }
.compare__nav[hidden] { display: none; }

.compare__tabs { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.compare__desc { max-width: 580px; text-align: center; color: var(--text-60); }

/* Billing toggle */
.billing { display: inline-flex; gap: 16px; }
.billing__note { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 16px; }
.icon--recurring { width: 20px; height: 20px; flex: none; }

/* Mods product card — adds a description line + "Starts at" price note */
.product-card--mods .product-card__body { gap: 30px; }
.product-card--mods .product-card__text { gap: 10px; }
.product-card__desc { font-size: 16px; color: var(--text-60); }
.product-card__pricing { display: flex; align-items: center; gap: 24px; }
.product-card__price-note { font-size: 16px; color: var(--text-60); }
.products__empty { grid-column: 1 / -1; text-align: center; color: var(--text-60); padding: 40px 0; }

/* =========================================================================
   Responsive
   ========================================================================= */

/* Tablet */
@media (max-width: 1024px) {
  :root { --pad: 48px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }   /* 2 x 4 */
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .section-head__title, .hero__title { font-size: 40px; }
}

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .why-card__media { aspect-ratio: 16 / 10; }
  .auth { padding-block: 112px; }
  .auth__inner { gap: 48px; }
  .auth__title { font-size: 36px; }
  .showcase__title { font-size: 36px; }
}

/* Mobile */
@media (max-width: 560px) {
  :root { --pad: 20px; --section-pad: 48px; }

  .hamburger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 16, 22, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-5);
    padding: 8px 20px 16px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; }

  .products__grid { grid-template-columns: 1fr; }              /* 1 x 8 */
  .reviews__grid { grid-template-columns: 1fr; }

  .section-head__title, .section-head__title--center { font-size: 32px; }
  .hero__title { font-size: 34px; }
  .hero__inner { min-height: 520px; }
  .section-head { margin-bottom: 40px; }

  .faq-item__a p { padding-right: 20px; }
  .footer-links { gap: 16px 24px; }
  .purchase__card { padding: 40px 24px; gap: 40px; }
  .purchase__cta { padding: 24px; }

  .btn--showcase { display: none; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 30px; }
  .feature__title { font-size: 20px; }
}