:root {
  --accent: var(--accent-primary, #2563eb);
  --accent-light: var(--accent-primary-hover, #3b82f6);
  --accent-glow: #60a5fa;
  --accent-dim: var(--accent-soft, rgba(37, 99, 235, 0.16));
  --accent-border: rgba(96, 165, 250, 0.3);
  --bg: var(--background-primary, #0a0c10);
  --bg-nav: rgba(9, 11, 15, 0.62);
  --bg-card: var(--surface-primary, #0f1219);
  --bg-card-2: var(--surface-secondary, #111520);
  --bg-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eaecf4;
  --text-soft: rgba(190, 203, 225, 0.68);
  --text-muted: rgba(190, 203, 225, 0.46);
  --text-dim: rgba(190, 203, 225, 0.3);
  --success: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-card: 16px;
  --radius-control: 12px;
  --shell: 1240px;
  --font-heading: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --font-ui: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.22), 0 14px 36px -14px rgba(0, 0, 0, 0.42);
  --shadow-lift: 0 24px 56px -14px rgba(0, 0, 0, 0.62), 0 0 40px -18px rgba(37, 99, 235, 0.3);
  color-scheme: dark;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.4) transparent;
  /* Decorative glows bleed past the grids; clip so they can never create
     horizontal scroll. Older browsers fall back to body overflow-x hidden. */
  overflow-x: clip;
}

/* Custom scrollbar, themed to match the storefront accent. */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 12, 16, 0.5);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 3px solid var(--bg);
  background-color: rgba(96, 165, 250, 0.32);
  background-clip: padding-box;
  transition: background-color 200ms var(--ease);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(96, 165, 250, 0.55);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(96, 165, 250, 0.72);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body.f4-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 50% at 80% -5%, rgba(37, 99, 235, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 6% 14%, rgba(139, 92, 246, 0.05), transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 108%, rgba(37, 99, 235, 0.06), transparent 60%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body.f4-body {
    overflow-x: hidden;
  }
}

body.f4-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

/* Interactive dot field replaces the static dot grid when JS is available. */
.f4-dotfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

body.has-dotfield::before {
  display: none;
}


.f4-cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .f4-cursor-trail {
    display: none;
  }
}

body.has-dotfield .f4-dotfield {
  display: block;
}

body.f4-body::after {
  /* content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(96, 165, 250, 0.06) 48%, transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8px);
  opacity: 0.72; */
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
}

.f4-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.f4-sprite symbol,
.f4-sprite path,
.f4-sprite circle,
.f4-sprite rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f4-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;
}

.f4-skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  padding: 9px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-control);
  background: var(--bg-card);
  transform: translateY(-150%);
  transition: transform 180ms var(--ease);
}

.f4-skip-link:focus {
  transform: translateY(0);
}

.f4-shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), 100%);
  padding-inline: 40px;
  margin-inline: auto;
}

.f4-main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
}

.f4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.f4-kicker span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

.f4-kicker--pill {
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-kicker--pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}

.f4-button,
.f4-icon-button,
.f4-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 800;
  transition:
    background-color 180ms var(--ease),
    /* border-color 180ms var(--ease), */
    color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.f4-button {
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.f4-button svg,
.f4-button i,
.f4-icon-button svg,
.f4-icon-button i,
.f4-cart-button svg,
.f4-cart-button i {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.f4-button--primary {
  color: #07101f;
  background: linear-gradient(180deg, #ffffff, #e9effb);
  /* border-color: rgba(255, 255, 255, 0.92); */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.f4-button--primary:hover {
  background: linear-gradient(180deg, #ffffff, #dbe7fa);
  /* border-color: #fff; */
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(37, 99, 235, 0.35), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.f4-button--discord {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 26px -6px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.f4-button--discord:hover {
  background: linear-gradient(180deg, #4f8ef7, #1d4ed8);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.f4-button--soft,
.f4-button--ghost {
  color: var(--accent-glow);
  background: rgba(255, 255, 255, 0.04);
  /* border-color: var(--accent-border); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-button--soft:hover,
.f4-button--ghost:hover {
  color: #fff;
  background: var(--accent-dim);
  /* border-color: var(--accent-light); */
}

.f4-button--full {
  width: 100%;
}

.f4-button:active,
.f4-icon-button:active,
.f4-cart-button:active {
  transform: translateY(1px);
}

.f4-button:disabled,
.f4-icon-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.f4-icon-button,
.f4-cart-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  /* border-color: var(--border); */
}

.f4-icon-button:hover,
.f4-cart-button:hover {
  color: #fff;
  background: var(--accent-dim);
  /* border-color: var(--accent-border); */
}

.f4-icon-button--accent {
  color: var(--accent-glow);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.f4-cart-button {
  position: relative;
}

.f4-cart-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.f4-announcement {
  position: relative;
  z-index: 100;
  overflow: hidden;
  min-height: 46px;
  /* background: linear-gradient(90deg, #123c9f 0%, #1d56d8 48%, #123c9f 100%); */
  background: #36476d05;
  backdrop-filter: blur(12px) saturate(160%);
  /* border-bottom: 1px solid rgba(96, 165, 250, 0.34); */
}

.f4-announcement__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: f4-sweep 3s linear infinite;
}

.f4-announcement__inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.f4-announcement__icon svg,
.f4-announcement__icon i {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
}

.f4-announcement__text {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.f4-announcement__code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  /* border: 1px solid rgba(255, 255, 255, 0.24); */
  cursor: pointer;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.f4-announcement__copy {
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.f4-announcement__timer {
  display: flex;
  align-items: center;
  gap: 5px;
}

.f4-announcement__timer span {
  display: grid;
  gap: 1px;
  text-align: center;
}

.f4-announcement__timer strong {
  min-width: 32px;
  padding: 1px 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.38);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.f4-announcement__timer em {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.f4-announcement__timer b {
  color: rgba(255, 255, 255, 0.46);
}

.f4-announcement__link {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
}

.f4-announcement__close {
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin-left: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.f4-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 240;
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.f4-header.is-scrolled {
  background: rgba(9, 11, 15, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.6);
}

.f4-header__inner {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.f4-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.f4-brand__mark {
  /* position: relative;
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none; */
}

.f4-brand__logo {
  /* position: absolute; */
 
  width: 58px;
  /* border: solid 1px rgba(255, 255, 255, 0.08); */
  height: 58px;
  max-width: none;
  /* object-fit: contain; */
  /* align-items:center; */
  /* justify-content:center; */
  /* object-position: 50% 54%; */
  opacity: 0.96;
}

.f4-brand__text {
  display: grid;
  gap: 1px;
}

.f4-brand strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.f4-brand__text span,
.f4-brand span span {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.f4-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.f4-nav__link {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-soft);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.f4-nav__link:hover,
.f4-nav__trigger[aria-expanded="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}

.f4-nav__link svg,
.f4-nav__link i {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
}

.f4-nav__dropdown {
  position: relative;
}

.f4-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  background: rgba(15, 18, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  backdrop-filter: blur(80px) saturate(150%);
  -webkit-backdrop-filter: blur(80px) saturate(150%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms var(--ease);
}

.f4-nav__dropdown.is-open .f4-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.f4-nav__menu-list {
  display: grid;
  gap: 2px;
}

.f4-nav__menu-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.f4-nav__menu-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.f4-nav__menu-item em {
  display: none;
}

.f4-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Custom theme dropdown for currency (no native select). Reuses the nav
   dropdown open/close behavior via data-dropdown-trigger. */
.f4-currency {
  position: relative;
}

.f4-currency__trigger {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 160ms var(--ease);
}

.f4-currency__trigger:hover,
.f4-currency.is-open .f4-currency__trigger {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.f4-currency.is-open .f4-currency__caret {
  transform: rotate(180deg);
}

.f4-header__login {
  height: 38px;
  min-height: 38px;
  gap: 7px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
}

.f4-header__login:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  transform: none;
}

.f4-header__login i {
  color: var(--text-muted);
  font-size: 13px;
}

.f4-header__login {
  position: relative;
  min-width: 96px;
  overflow: hidden;
}

.f4-header__login-name,
.f4-header__login-user,
.f4-header__login-logout {
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.f4-header__login-logout {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  color: #fff;
  transform: translateY(4px);
}

.f4-header__login:hover .f4-header__login-name,
.f4-header__login:hover .f4-header__login-user,
.f4-header__login:focus-visible .f4-header__login-name,
.f4-header__login:focus-visible .f4-header__login-user {
  opacity: 0;
  transform: translateY(-4px);
}

.f4-header__login:hover .f4-header__login-logout,
.f4-header__login:focus-visible .f4-header__login-logout {
  opacity: 1;
  transform: translateY(0);
}

.f4-header__login-logout i {
  color: var(--accent-glow);
}

.f4-header__login:hover i {
  color: #fff;
}

.f4-currency__trigger > i:first-of-type {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.f4-currency__caret {
  width: 10px;
  height: 10px;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 10px;
  pointer-events: none;
  transition: transform 200ms var(--ease);
}

.f4-currency__menu {
  left: auto;
  right: 0;
  width: 148px;
  min-width: 0;
  max-height: min(320px, calc(100vh - 92px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.42) transparent;
}

.f4-currency__menu::-webkit-scrollbar {
  width: 8px;
}

.f4-currency__menu::-webkit-scrollbar-track {
  background: transparent;
}

.f4-currency__menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.42);
  background-clip: padding-box;
}

.f4-currency__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.f4-currency__option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.f4-currency__option.is-active {
  color: #fff;
  background: var(--accent-soft);
}

.f4-currency__option.is-active i {
  color: var(--accent-primary);
  font-size: 11px;
}

.f4-mobile-toggle {
  display: none;
}

.f4-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 320;
  visibility: hidden;
}

.f4-mobile-panel[aria-hidden="false"] {
  visibility: visible;
}

.f4-mobile-panel__scrim,
.f4-drawer__scrim,
.f4-modal__scrim,
.f4-search-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.f4-mobile-panel[aria-hidden="false"] .f4-mobile-panel__scrim {
  opacity: 1;
}

.f4-mobile-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(16, 19, 24, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 260ms var(--ease);
}

.f4-mobile-panel[aria-hidden="false"] .f4-mobile-panel__sheet {
  transform: translateX(0);
}

.f4-mobile-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.f4-mobile-panel__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f4-mobile-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f4-mobile-panel__link {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
}

.f4-mobile-panel__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.f4-mobile-panel__group {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.f4-mobile-panel__group summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.f4-mobile-panel__group summary::-webkit-details-marker {
  display: none;
}

.f4-mobile-panel__group summary i {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 200ms var(--ease);
}

.f4-mobile-panel__group[open] summary i {
  transform: rotate(180deg);
}

.f4-mobile-panel__sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 8px 10px;
}

.f4-mobile-panel__sublist a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

.f4-mobile-panel__sublist a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.f4-mobile-panel__sublist em {
  display: none;
}

.f4-mobile-panel__cta {
  margin-top: auto;
}

.f4-hero {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 84px 0 72px;
}

.f4-hero::after {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  width: 64%;
  height: 124%;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.16), transparent 65%);
}

.f4-hero::before {
  content: "";
  position: absolute;
  bottom: -18%;
  left: -12%;
  width: 52%;
  height: 90%;
  pointer-events: none;
  background: radial-gradient(ellipse at 35% 60%, rgba(139, 92, 246, 0.07), transparent 65%);
}

/* Faint brand artwork behind the hero. The stylesheet is inlined into the page
   by layout.html, so a relative path would resolve against the page URL, not
   this file — the image is addressed absolutely on the R2 bucket instead. */
.f4-hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("https://pub-e7a6c8fa65a24b3bb0355c639dc3a32f.r2.dev/img/pattern.svg");
  background-repeat: no-repeat;
  background-position: 82% center;
  background-size: 115% auto;
  opacity: 0.06;
  -webkit-mask-image: radial-gradient(72% 82% at 76% 48%, #000 18%, transparent 78%);
  mask-image: radial-gradient(72% 82% at 76% 48%, #000 18%, transparent 78%);
}

.f4-hero__grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(72px, 7vw, 132px);
}

.f4-hero__copy {
  position: relative;
  z-index: 2;
}

.f4-hero__copy h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-family: var(--font-heading);
  font-size: 62px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  /* Avoid single-word orphan lines when a heading line wraps. */
  text-wrap: balance;
}

.f4-hero__copy h1 em {
  color: var(--accent-light);
  font-style: normal;
}

.f4-hero__copy h1 > span,
.f4-heading-break {
  display: block;
}

.f4-hero__copy p {
  max-width: 500px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.f4-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.f4-hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 500px;
  overflow: visible;
}

/* ---- 3D shattered logo -------------------------------------------------- */
.f4-hero3d {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: pan-y;
}

.f4-hero3d__glow {
  position: absolute;
  inset: 4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, var(--accent-dim), transparent 62%),
    radial-gradient(circle at 62% 66%, rgba(139, 92, 246, 0.16), transparent 60%);
  filter: blur(14px);
  opacity: 0.9;
  transition: opacity 400ms var(--ease);
}

.f4-hero3d__canvas {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.f4-hero3d__fallback {
  position: absolute;
  z-index: 1;
  width: 62%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  transition: opacity 300ms var(--ease);
}

.f4-hero3d.is-ready .f4-hero3d__fallback {
  opacity: 0;
  pointer-events: none;
}

.f4-hero3d__hint {
  position: absolute;
  bottom: 4%;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(13, 15, 20, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.f4-hero3d.is-ready .f4-hero3d__hint {
  opacity: 0.85;
}

.f4-hero3d__hint i {
  font-size: 11px;
  color: var(--accent-glow);
}

@media (hover: none) {
  .f4-hero3d__hint {
    display: none;
  }
}

.f4-orbit {
  position: relative;
  width: min(560px, 100%);
  max-width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  aspect-ratio: auto;
}

.f4-orbit > img,
.f4-hero-character {
  width: auto;
  max-width: none;
  height: clamp(440px, 52vh, 520px);
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(6%);
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.38));
}

.f4-orbit__ring {
  position: absolute;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 50%;
  animation: f4-rotate linear infinite;
}

.f4-orbit__ring:nth-child(1) {
  inset: 0;
  animation-duration: 24s;
}

.f4-orbit__ring:nth-child(2) {
  inset: 52px;
  animation-duration: 34s;
  animation-direction: reverse;
}

.f4-orbit__ring:nth-child(3) {
  inset: 104px;
  animation-duration: 20s;
}

.f4-orbit__ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(96, 165, 250, 0.12);
  border-radius: 50%;
}

.f4-orbit__core {
  position: absolute;
  inset: 138px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(96, 165, 250, 0.36);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(37, 99, 235, 0.05));
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.2), inset 0 0 30px rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(4px);
}

.f4-orbit__core strong {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
}

.f4-orbit__core span {
  color: var(--accent-light);
}

.f4-orbit__metric {
  position: absolute;
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: rgba(15, 18, 25, 0.92);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
  animation: f4-float 5s ease-in-out infinite;
}

.f4-orbit__metric span,
.f4-orbit__metric strong {
  display: block;
}

.f4-orbit__metric span {
  margin-bottom: 3px;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.f4-orbit__metric strong {
  color: var(--accent-glow);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.f4-orbit__metric--top {
  top: 34px;
  right: 10px;
}

.f4-orbit__metric--left {
  bottom: 70px;
  left: 0;
  animation-delay: 1.8s;
}

.f4-orbit__metric--right {
  top: 48%;
  right: -10px;
  animation-delay: 3.2s;
}

.f4-section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.f4-section--compact {
  padding: 64px 0;
}

.f4-section--catalog {
  padding-top: 0;
}

.f4-section--stats,
.f4-section__header {
  max-width: 650px;
  margin: 0 auto 48px;
  text-align: center;
}

.f4-section__header--left {
  margin-inline: 0;
  text-align: left;
}

.f4-section__header--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.f4-section__header h2,
.f4-compatibility h2,
.f4-final-cta h2,
.f4-discord-cta h2 {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.f4-section__header h2 em,
.f4-discord-cta h2 em {
  color: var(--accent-light);
  font-style: normal;
}

.f4-section__header p,
.f4-compatibility p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.f4-section__header--left p {
  margin-inline: 0;
}

.f4-section__footer,
.f4-product-grid + .f4-section__footer {
  margin-top: 36px;
  text-align: center;
}

.f4-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  width: min(var(--shell), calc(100% - 80px));
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.f4-product-grid,
.f4-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: 1fr;
  justify-content: stretch;
  justify-items: stretch;
  align-items: stretch;
  gap: 24px;
}

.f4-section--catalog .f4-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.f4-product-grid--featured {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

/* Featured resources auto-scrolling swiper (single row) */
.f4-swiper {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

/* NOTE: no mask-image here — a mask on an ancestor creates a backdrop root,
   which silently kills backdrop-filter on the glass cards inside. */
.f4-swiper__viewport {
  overflow: hidden;
}

.f4-swiper__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: none;
  padding-block: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.f4-swiper__track::-webkit-scrollbar {
  display: none;
}

.f4-swiper.is-dragging .f4-swiper__track {
  cursor: grabbing;
}

.f4-swiper__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.f4-swiper__slide > .f4-product-card {
  height: 100%;
}

.f4-swiper__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 18, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.f4-swiper__nav:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.f4-swiper__nav--prev {
  left: -12px;
}

.f4-swiper__nav--next {
  right: -12px;
}

.f4-swiper__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .f4-swiper__slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 720px) {
  .f4-swiper__slide {
    flex-basis: 82%;
  }

  .f4-swiper__nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f4-swiper__track {
    scroll-behavior: auto;
  }
}

.f4-product-grid > .f4-product-card,
.f4-featured-grid > .f4-product-card {
  width: 100%;
  max-width: none;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
  align-self: stretch;
  justify-self: stretch;
}

/* Ambient glow painted behind the card grids — this is what the glass
   cards actually blur, so the frosted effect stays visible. */
.f4-product-grid,
.f4-featured-grid {
  position: relative;
}

.f4-swiper::before,
.f4-product-grid::before,
.f4-featured-grid::before {
  content: "";
  position: absolute;
  inset: -10% -4%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 16% 16%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(38% 52% at 84% 80%, rgba(139, 92, 246, 0.11), transparent 70%),
    radial-gradient(30% 45% at 55% 45%, rgba(96, 165, 250, 0.07), transparent 70%);
  filter: blur(28px);
}

.f4-product-card {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* border: 1px solid var(--glass-border); */
  border-radius: var(--radius-card);
  background: rgba(88, 88, 88, 0.116);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.f4-product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.f4-product-card:hover,
.f4-product-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-product-card:hover::before,
.f4-product-card:focus-within::before {
  opacity: 1;
}

.f4-product-card__media {
  position: relative;
  display: block;
  /* 2:1 matches the top-anchored server-side crop that removes the banner
     artwork's decorative bottom strip. */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  line-height: 0;
  background: rgb(15, 18, 25);
}

/* Bottom fade reaches full opacity at the edge so bright banner artwork
   (white shard decorations) cannot leave a ragged light strip where the
   image meets the card body. */
.f4-product-card__media::after {
  display: none;
}

/* Shimmer placeholder while the image is still downloading, so slow
   networks show a live surface instead of a dead dark box. */
.f4-product-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 26%, rgba(148, 180, 255, 0.14) 50%, transparent 74%);
  opacity: 0;
}

.f4-product-card__media.is-loading::before {
  opacity: 1;
  animation: f4-sweep 1.3s linear infinite;
}

.f4-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Top anchor keeps the un-proxied fallback image cropped the same way
     as the server-side a=top crop. */
  object-position: center top;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 500ms var(--ease), opacity 360ms var(--ease);
}

.f4-product-card__media.is-loading img {
  opacity: 0;
}

.f4-product-card:hover .f4-product-card__media img {
  transform: scale(1.05);
}

.f4-product-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d1428, #0a1020);
}

.f4-product-card__fallback img {
  width: 36%;
  height: 36%;
  object-fit: contain;
  opacity: 0.8;
}

.f4-product-card__shade {
  display: none;
}

.f4-product-card__status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 15, 20, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f4-product-card__status.is-sale {
  color: #fff;
  background: var(--danger);
  border-color: transparent;
}

.f4-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.f4-product-card h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.f4-product-card h3 a:hover {
  color: var(--accent-glow);
}

.f4-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.f4-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.f4-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.f4-tag__logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Framework accent colours */
.f4-tag[data-fw="esx"] i { background: #f59e0b; }
.f4-tag[data-fw="qbcore"] i,
.f4-tag[data-fw="qb-core"] i { background: #22c55e; }
.f4-tag[data-fw="qbox"] i { background: #38bdf8; }
.f4-tag[data-fw="standalone"] i { background: #a78bfa; }
.f4-tag[data-fw="ox"] i,
.f4-tag[data-fw="ox_core"] i { background: #f472b6; }

.f4-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.f4-price {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.f4-price__was {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.f4-price__off {
  padding: 3px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--danger);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.f4-product-card__cta {
  margin-top: 2px;
}

.f4-product-card__cta form {
  width: 100%;
}

.f4-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -18px 0 40px;
}

.f4-rating-row strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
}

.f4-rating-row span:last-child {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.f4-stars {
  color: var(--warning);
  font-family: Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

.f4-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.f4-review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.f4-review-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55);
}

.f4-review-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.f4-review-card__avatar,
.f4-payment-item > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--accent-border);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  font-family: var(--font-heading);
  font-weight: 900;
}

.f4-review-card strong,
.f4-review-card span,
.f4-review-card time {
  display: block;
}

.f4-review-card__top strong {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
}

.f4-review-card__top span,
.f4-review-card time {
  color: var(--text-dim);
  font-size: 11px;
}

.f4-review-card p {
  flex: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.f4-review-card em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  color: var(--accent-glow);
  background: var(--accent-dim);
  font-family: var(--font-ui);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.f4-review-card em svg,
.f4-review-card em i {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
}

.f4-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.f4-value-card,
.f4-value-grid > article {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(130% 80% at 50% -12%, rgba(37, 99, 235, 0.09), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 44%),
    var(--bg-card);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.f4-value-card::after,
.f4-value-grid > article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  transition: opacity 220ms var(--ease);
}

.f4-value-card:hover,
.f4-value-grid > article:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-value-card:hover::after,
.f4-value-grid > article:hover::after {
  opacity: 1;
}

.f4-value-card > span,
.f4-value-grid > article > svg,
.f4-value-grid > article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-glow);
  background: var(--accent-dim);
}

.f4-value-card > span svg,
.f4-value-card > span i,
.f4-value-grid > article > svg,
.f4-value-grid > article > span svg,
.f4-value-grid > article > span i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}

.f4-value-card h3,
.f4-value-grid > article h3 {
  margin: 0 0 7px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.f4-value-card p,
.f4-value-grid > article p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.f4-value-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-glow);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
}

.f4-value-card a svg,
.f4-value-card a i {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
}

/* Why Choose Us — flat, minimal icon + label + title columns.
   Narrower, centered container keeps the mirrored columns close together
   instead of leaving a dead zone down the middle. */
.f4-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 64px;
  max-width: 1000px;
  margin-inline: auto;
}

.f4-why-item {
  position: relative;
  padding-left: 22px;
}

/* Thin accent tab that marks each item, grows on hover */
.f4-why-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 2px;
  height: 34px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: height 340ms var(--ease), background 340ms var(--ease);
}

.f4-why-item:hover::before {
  height: 52px;
  background: var(--accent-light);
}

.f4-why-item__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.f4-why-item__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--text);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  transition: color 300ms var(--ease), border-color 300ms var(--ease), background 300ms var(--ease);
}

.f4-why-item__icon i {
  font-size: 19px;
}

.f4-why-item:hover .f4-why-item__icon {
  color: var(--accent-glow);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.f4-why-item__titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.f4-why-item__kicker {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.f4-why-item__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}

.f4-why-item > p {
  margin: 0 0 16px;
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.72;
}

.f4-why-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  transition: color 240ms var(--ease);
}

.f4-why-item__link i {
  font-size: 12px;
}

.f4-why-item__arrow {
  transition: transform 240ms var(--ease);
}

.f4-why-item__link:hover,
.f4-why-item__link:focus-visible {
  color: var(--accent-glow);
}

.f4-why-item__link:hover .f4-why-item__arrow {
  transform: translateX(4px);
}

/* Right column mirrors the left so the two face each other */
.f4-why-item:nth-child(even) {
  padding-left: 0;
  padding-right: 22px;
  text-align: right;
}

.f4-why-item:nth-child(even)::before {
  left: auto;
  right: 0;
}

.f4-why-item:nth-child(even) .f4-why-item__head {
  flex-direction: row-reverse;
}

.f4-why-item:nth-child(even) .f4-why-item__titles {
  align-items: flex-end;
}

.f4-why-item:nth-child(even) > p {
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 768px) {
  .f4-why-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Stack in one column — drop the mirroring, keep everything left-aligned */
  .f4-why-item:nth-child(even) {
    padding-left: 22px;
    padding-right: 0;
    text-align: left;
  }

  .f4-why-item:nth-child(even)::before {
    left: 0;
    right: auto;
  }

  .f4-why-item:nth-child(even) .f4-why-item__head {
    flex-direction: row;
  }

  .f4-why-item:nth-child(even) .f4-why-item__titles {
    align-items: flex-start;
  }

  .f4-why-item:nth-child(even) > p {
    margin-left: 0;
  }
}

.f4-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.f4-stat-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    var(--bg-card);
  background-size: 28px 28px;
  text-align: center;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.f4-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55);
}

.f4-stat-card--accent {
  border-color: var(--accent-border);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(52, 211, 153, 0.08)),
    var(--bg-card);
}

.f4-stat-card strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.f4-stat-card span {
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.f4-payments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 48px;
}

.f4-payment-list {
  display: grid;
  gap: 9px;
}

.f4-payment-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr auto 8px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.f4-payment-item:hover {
  transform: translateX(3px);
  border-color: var(--accent-border);
}

.f4-payment-item strong,
.f4-payment-item em,
.f4-payment-item b {
  display: block;
}

.f4-payment-item strong {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
}

.f4-payment-item em {
  color: var(--text-dim);
  font-size: 12px;
  font-style: normal;
}

.f4-payment-item b {
  color: var(--accent-glow);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
}

.f4-payment-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

/* ---- Recent payments autoplay swiper ----------------------------------- */
.f4-payments-swiper {
  margin-top: 42px;
}

.f4-module-source[hidden],
[data-featured-module-shell][hidden],
[data-featured-empty][hidden] {
  display: none !important;
}
/* Payment cards size to their own width instead of the 3-up product grid. */
.f4-payments-swiper .f4-swiper__slide {
  flex: 0 0 auto;
}

.f4-payments-swiper .f4-swiper__track {
  cursor: default;
}

.f4-pay-card {
  width: clamp(260px, 30vw, 320px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  /* border: 1px solid var(--border); */
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(37, 99, 235, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.f4-pay-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-pay-card__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(139, 92, 246, 0.28));
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.f4-pay-card__avatar img,
.f4-payment-item > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.f4-pay-card__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.f4-pay-card__meta strong {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.f4-pay-card__meta em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.f4-pay-card__amount {
  margin-left: auto;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.f4-trust-card {
  position: sticky;
  top: 92px;
  padding: 28px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), transparent 48%),
    var(--bg-card);
  box-shadow: 0 24px 70px -30px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-trust-card > strong {
  display: block;
  color: var(--accent-glow);
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.f4-trust-card > span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
}

.f4-trust-card > em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-ui);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.f4-trust-card svg,
.f4-trust-card i {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
}

.f4-trust-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.f4-trust-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 13px;
}

.f4-trust-card li svg,
.f4-trust-card li i {
  color: var(--success);
}

.f4-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
}

.f4-faq-search {
  min-height: 56px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 10px 0 20px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.f4-faq-search:focus-within {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.f4-faq-search svg,
.f4-faq-search i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 180ms var(--ease);
}

.f4-faq-search:focus-within i {
  color: var(--accent-glow);
}

.f4-faq-search input {
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.f4-faq-search span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-glow);
  background: var(--accent-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.f4-accordion {
  display: grid;
  gap: 12px;
}

.f4-accordion details {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.f4-accordion details:hover {
  border-color: var(--border-strong);
}

.f4-accordion details[open] {
  border-color: var(--accent-border);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 46%),
    var(--bg-card);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.f4-accordion summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 18px 17px 20px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.f4-accordion summary::-webkit-details-marker {
  display: none;
}

.f4-accordion__num {
  flex: 0 0 auto;
  width: 28px;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  transition: color 220ms var(--ease);
}

.f4-accordion summary:hover .f4-accordion__num,
.f4-accordion details[open] .f4-accordion__num {
  color: var(--accent-glow);
}

.f4-accordion__q {
  flex: 1;
  min-width: 0;
}

.f4-accordion__toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 260ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.f4-accordion__toggle i {
  font-size: 11px;
}

.f4-accordion details[open] .f4-accordion__toggle {
  transform: rotate(45deg);
  color: var(--accent-glow);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.f4-accordion p {
  margin: 0;
  padding: 0 56px 20px 64px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  animation: f4-acc-open 280ms var(--ease);
}

@keyframes f4-acc-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.f4-faq-aside {
  position: sticky;
  top: 92px;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(37, 99, 235, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 46%),
    var(--bg-card);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-faq-aside__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  color: var(--accent-glow);
  background: var(--accent-dim);
  box-shadow: 0 0 30px -8px rgba(37, 99, 235, 0.4);
}

.f4-faq-aside__icon i {
  font-size: 20px;
}

.f4-faq-aside h3 {
  margin: 18px 0 8px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f4-faq-aside p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.f4-faq-aside .f4-button + .f4-button {
  margin-top: 8px;
}

.f4-faq-aside__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.f4-faq-aside__note i {
  color: var(--accent-glow);
  font-size: 12px;
}

.f4-discord-cta {
  position: relative;
  z-index: 1;
  padding: 60px 0 72px;
}

.f4-discord-cta__inner {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 44px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.04)),
    var(--bg-card);
  box-shadow: 0 28px 80px -32px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.f4-discord-cta h2 {
  max-width: 640px;
  margin: 0;
}

.f4-discord-cta p {
  max-width: 620px;
  margin: 12px 0 8px;
  color: var(--text-soft);
  line-height: 1.75;
}

.f4-discord-cta small {
  color: var(--text-dim);
}

.f4-page-hero {
  position: relative;
  z-index: 1;
  padding: 60px 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
  /* backdrop-filter: blur(70px); */
}

.f4-page-hero--tight {
  padding-bottom: 18px;
}

.f4-page-hero h1 {
  max-width: 900px;
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.f4-page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
}

/* ---- Category page (hero, filter console, catalog grid) ---------------- */

.f4-cat-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 72px 0 108px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(56% 72% at 14% -6%, rgba(37, 99, 235, 0.14), transparent 62%),
    radial-gradient(44% 60% at 88% 16%, rgba(139, 92, 246, 0.1), transparent 68%),
    rgba(255, 255, 255, 0.012);
}

.f4-cat-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.f4-cat-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: f4-orb-drift 18s ease-in-out infinite alternate;
}

.f4-cat-hero__orb--one {
  top: -160px;
  left: 4%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.34), transparent 70%);
}

.f4-cat-hero__orb--two {
  top: 8%;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.26), transparent 70%);
  animation-duration: 22s;
  animation-delay: -7s;
}

.f4-cat-hero__orb--three {
  bottom: -180px;
  left: 42%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.18), transparent 70%);
  animation-duration: 26s;
  animation-delay: -13s;
}

@keyframes f4-orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(46px, 30px, 0) scale(1.12);
  }
}

.f4-cat-hero__ring {
  position: absolute;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(215deg, #000 20%, transparent 76%);
  mask-image: linear-gradient(215deg, #000 20%, transparent 76%);
}

.f4-cat-hero__ring--outer {
  top: -290px;
  right: -180px;
  width: 620px;
  height: 620px;
}

.f4-cat-hero__ring--inner {
  top: -190px;
  right: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.5;
  animation: f4-float 9s ease-in-out infinite;
}

.f4-cat-hero__inner > * {
  animation: f4-cat-rise 520ms var(--ease) backwards;
}

.f4-cat-hero__inner > :nth-child(1) { animation-delay: 30ms; }
.f4-cat-hero__inner > :nth-child(2) { animation-delay: 80ms; }
.f4-cat-hero__inner > :nth-child(3) { animation-delay: 130ms; }
.f4-cat-hero__inner > :nth-child(4) { animation-delay: 180ms; }
.f4-cat-hero__inner > :nth-child(5) { animation-delay: 230ms; }

@keyframes f4-cat-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.f4-cat-hero__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.f4-cat-hero__crumbs a {
  transition: color 180ms var(--ease);
}

.f4-cat-hero__crumbs a:hover {
  color: var(--accent-glow);
}

.f4-cat-hero__crumbs i {
  font-size: 9px;
  opacity: 0.7;
}

.f4-cat-hero__crumbs span {
  color: var(--text-soft);
}

.f4-cat-hero__title {
  max-width: 900px;
  margin: 20px 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .f4-cat-hero__title {
    background: linear-gradient(180deg, #ffffff 26%, rgba(190, 203, 225, 0.72));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Subcategory part of the title ("QBCore & Qbox <em>Escrow</em>") in the
   accent color, same treatment as section-header emphasis. */
.f4-cat-hero__title em {
  font-style: normal;
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
}

.f4-cat-hero__lead {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.f4-cat-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.f4-cat-stat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.f4-cat-stat i {
  color: var(--accent-glow);
  font-size: 13px;
}

.f4-cat-stat strong {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Filter console: a glass panel docked over the hero edge. */
.f4-cat-controls {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: -54px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(13, 16, 23, 0.78);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: f4-cat-rise 520ms var(--ease) 160ms backwards;
}

.f4-cat-controls__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.f4-cat-search {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: text;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.f4-cat-search:focus-within {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.f4-cat-search > i {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 180ms var(--ease);
}

.f4-cat-search:focus-within > i {
  color: var(--accent-glow);
}

.f4-cat-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
}

.f4-cat-search input::placeholder {
  color: var(--text-muted);
}

.f4-cat-search input::-webkit-search-cancel-button,
.f4-cat-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.f4-cat-search__clear {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 12px;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.f4-cat-search__clear:hover {
  color: #fff;
  background: var(--accent-dim);
}

.f4-cat-search__clear[hidden] {
  display: none;
}

.f4-cat-search__key {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-right: 4px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.f4-cat-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.f4-cat-field:focus-within {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.f4-cat-field > i {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 180ms var(--ease);
}

.f4-cat-field:focus-within > i {
  color: var(--accent-glow);
}

.f4-cat-field__label {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f4-cat-field__input {
  width: 74px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.f4-cat-field__input::-webkit-outer-spin-button,
.f4-cat-field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.f4-cat-field__input::placeholder {
  color: var(--text-muted);
}

.f4-cat-field__dash {
  width: 10px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--border-strong);
}

.f4-cat-field--sort {
  padding-right: 40px;
  cursor: pointer;
}

.f4-cat-field--sort select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}

.f4-cat-field--sort select option {
  color: var(--text);
  background: #10141c;
}

.f4-cat-field__caret {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
  transition: color 180ms var(--ease);
}

.f4-cat-field--sort:focus-within .f4-cat-field__caret {
  color: var(--accent-glow);
}

.f4-cat-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.f4-cat-reset:hover {
  color: #fff;
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.f4-cat-reset[hidden] {
  display: none;
}

.f4-cat-controls__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.f4-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.f4-cat-chip:hover {
  color: var(--accent-glow);
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.f4-cat-chip.is-active {
  color: var(--accent-glow);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.f4-cat-chip em {
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.f4-cat-chip.is-active em {
  color: var(--accent-glow);
  background: rgba(37, 99, 235, 0.2);
}

.f4-cat-controls__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.f4-cat-count {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.f4-cat-count strong {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.f4-cat-active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f4-cat-active[hidden] {
  display: none;
}

.f4-cat-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 5px 0 13px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-glow);
  background: var(--accent-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  animation: f4-chip-in 240ms var(--ease) backwards;
}

.f4-cat-active__chip button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 10px;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.f4-cat-active__chip button:hover {
  color: #fff;
  background: var(--danger);
}

@keyframes f4-chip-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.f4-cat-grid {
  margin-top: 28px;
}

.f4-cat-grid.is-empty {
  display: none;
}

/* The card's own display: flex outranks the UA [hidden] rule, so filtered
   cards need an explicit hide. */
.f4-product-grid > [data-search-item][hidden] {
  display: none;
}

/* Card entrance: pure-CSS cascade that starts with the first paint, so
   nothing waits for scripts. Once the user filters or sorts, is-ready
   switches the entrance off so re-ordered cards never replay it. */
.f4-cat-grid > .f4-product-card {
  animation: f4-card-in 460ms var(--ease) backwards;
}

.f4-cat-grid > .f4-product-card:nth-child(1) { animation-delay: 30ms; }
.f4-cat-grid > .f4-product-card:nth-child(2) { animation-delay: 60ms; }
.f4-cat-grid > .f4-product-card:nth-child(3) { animation-delay: 90ms; }
.f4-cat-grid > .f4-product-card:nth-child(4) { animation-delay: 120ms; }
.f4-cat-grid > .f4-product-card:nth-child(5) { animation-delay: 150ms; }
.f4-cat-grid > .f4-product-card:nth-child(6) { animation-delay: 180ms; }
.f4-cat-grid > .f4-product-card:nth-child(7) { animation-delay: 210ms; }
.f4-cat-grid > .f4-product-card:nth-child(8) { animation-delay: 240ms; }
.f4-cat-grid > .f4-product-card:nth-child(9) { animation-delay: 270ms; }
.f4-cat-grid > .f4-product-card:nth-child(n + 10) { animation-delay: 300ms; }

.f4-cat-grid.is-ready > .f4-product-card {
  animation: none;
}

@keyframes f4-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Quick settle animation whenever the filtered set changes. */
.f4-cat-grid.is-ready > .f4-cat-pop {
  animation: f4-cat-pop 340ms var(--ease) backwards;
}

@keyframes f4-cat-pop {
  from {
    opacity: 0.25;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.f4-cat-empty {
  width: 100%;
  margin-top: 28px;
  padding: 72px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.02);
  text-align: center;
  animation: f4-cat-rise 420ms var(--ease) backwards;
}

.f4-cat-empty[hidden] {
  display: none;
}

.f4-cat-empty__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  color: var(--accent-glow);
  background: var(--accent-dim);
  font-size: 22px;
  box-shadow: 0 0 44px -10px rgba(37, 99, 235, 0.45);
}

.f4-cat-empty h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f4-cat-empty p {
  max-width: 460px;
  margin: 10px auto 24px;
  color: var(--text-soft);
}

@media (max-width: 1024px) {
  .f4-cat-hero {
    padding: 56px 0 96px;
  }
}

@media (max-width: 768px) {
  .f4-cat-hero {
    padding: 44px 0 84px;
  }

  .f4-cat-hero__crumbs {
    margin-bottom: 20px;
  }

  .f4-cat-hero__title {
    margin: 16px 0 12px;
  }

  .f4-cat-hero__lead {
    font-size: 15px;
  }

  .f4-cat-hero__stats {
    gap: 8px;
    margin-top: 22px;
  }

  .f4-cat-stat {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .f4-cat-controls {
    margin-top: -46px;
    padding: 14px;
    border-radius: 18px;
  }

  .f4-cat-search {
    flex-basis: 100%;
  }

  .f4-cat-search__key {
    display: none;
  }

  .f4-cat-field--price {
    flex: 1 1 auto;
  }

  .f4-cat-field__input {
    flex: 1;
    width: 64px;
  }

  .f4-cat-field--sort {
    flex: 1 1 auto;
  }

  .f4-cat-field--sort select {
    flex: 1;
    min-width: 0;
  }

  .f4-cat-reset {
    flex: 1 1 auto;
    justify-content: center;
  }

  .f4-cat-controls__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .f4-cat-grid {
    margin-top: 22px;
  }

  .f4-cat-empty {
    padding: 52px 18px;
  }

  .f4-cat-empty h2 {
    font-size: 22px;
  }
}

@media (max-width: 430px) {
  .f4-cat-stat {
    gap: 7px;
    padding: 0 11px;
  }

  .f4-cat-field {
    padding: 0 13px;
  }

  .f4-cat-field__label {
    display: none;
  }
}

.f4-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.f4-category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.f4-category-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55);
}

.f4-category-tile__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-glow);
  background: var(--accent-dim);
}

.f4-category-tile__icon svg {
  width: 20px;
  height: 20px;
}

.f4-category-tile strong {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 900;
}

.f4-category-tile p {
  margin: 7px 0 20px;
  color: var(--text-soft);
  font-size: 14px;
}

.f4-category-tile > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--accent-glow);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
}

.f4-category-tile svg {
  width: 14px;
  height: 14px;
}

/* ---- Package detail page (hero, media, buy panel, content) ------------- */

.f4-pkg-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}

.f4-pkg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.f4-pkg-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  animation: f4-orb-drift 20s ease-in-out infinite alternate;
}

.f4-pkg-hero__orb--one {
  top: -180px;
  left: 6%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.3), transparent 70%);
}

.f4-pkg-hero__orb--two {
  bottom: -220px;
  right: -70px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.2), transparent 70%);
  animation-duration: 26s;
  animation-delay: -9s;
}

.f4-pkg-hero__ring {
  position: absolute;
  top: -250px;
  right: -150px;
  width: 560px;
  height: 560px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(215deg, #000 20%, transparent 76%);
  mask-image: linear-gradient(215deg, #000 20%, transparent 76%);
}

.f4-pkg-hero__inner > .f4-pkg-crumbs {
  animation: f4-cat-rise 480ms var(--ease) 20ms backwards;
}

.f4-pkg-hero__grid > .f4-pkg-media {
  animation: f4-cat-rise 560ms var(--ease) 90ms backwards;
}

.f4-pkg-hero__grid > .f4-pkg-panel {
  animation: f4-cat-rise 560ms var(--ease) 90ms backwards;
}

.f4-pkg-hero__grid > .f4-pkg-perks {
  animation: f4-cat-rise 560ms var(--ease) 240ms backwards;
}

.f4-pkg-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.f4-pkg-crumbs a {
  transition: color 180ms var(--ease);
}

.f4-pkg-crumbs a:hover {
  color: var(--accent-glow);
}

.f4-pkg-crumbs i {
  font-size: 9px;
  opacity: 0.7;
}

.f4-pkg-crumbs span {
  overflow: hidden;
  max-width: 46ch;
  color: var(--text-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Two columns, two rows: the buy panel spans both rows on the right while
   the perk tiles fill the space under the 16:9 media on the left. Stacked
   layouts reset the placement so the order becomes media > panel > perks. */
.f4-pkg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 14px 28px;
}

.f4-pkg-hero__grid > .f4-pkg-media {
  grid-column: 1;
  grid-row: 1;
}

.f4-pkg-hero__grid > .f4-pkg-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
}

.f4-pkg-hero__grid > .f4-pkg-perks {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.f4-pkg-media {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Ambient glow painted behind the frame — this is what the glass buy panel
   next to it blurs, and it keeps the media from floating on flat black. */
.f4-pkg-media::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 24% 20%, rgba(37, 99, 235, 0.18), transparent 70%),
    radial-gradient(40% 55% at 80% 84%, rgba(139, 92, 246, 0.12), transparent 70%);
  filter: blur(30px);
}

.f4-pkg-media__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #0e1424, #0a0d16);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.f4-pkg-media__frame:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Shimmer placeholder while the hero image downloads (same treatment as
   the product cards, driven by initMediaLoading). */
.f4-pkg-media__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 26%, rgba(148, 180, 255, 0.14) 50%, transparent 74%);
  opacity: 0;
}

.f4-pkg-media__frame.is-loading::before {
  opacity: 1;
  animation: f4-sweep 1.3s linear infinite;
}

.f4-pkg-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity 320ms var(--ease);
}

.f4-pkg-media__frame.is-loading img,
.f4-pkg-media__frame img.is-fading {
  opacity: 0;
}

.f4-pkg-media__frame:hover img {
  transform: scale(1.035);
}

.f4-pkg-media__fallback {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 80% at 50% 30%, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(135deg, #0d1428, #0a1020);
}

.f4-pkg-media__fallback img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.6;
}

.f4-pkg-media__fallback span {
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.f4-pkg-media__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 15, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.f4-pkg-media__badge.is-sale {
  border-color: transparent;
  background: var(--danger);
}

.f4-pkg-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.f4-pkg-thumb {
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.f4-pkg-thumb:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.f4-pkg-thumb.is-active {
  opacity: 1;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.f4-pkg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f4-pkg-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.f4-pkg-perk {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: rgba(15, 18, 25, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease), transform 220ms var(--ease);
}

a.f4-pkg-perk:hover {
  border-color: var(--accent-border);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.f4-pkg-perk__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  /* border: 1px solid var(--border-strong); */
  border-radius: 10px;
  color: var(--accent-glow);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.f4-pkg-perk strong {
  display: block;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
}

.f4-pkg-perk div span {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.f4-pkg-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: rgba(15, 18, 25, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.f4-pkg-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16%;
  left: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.f4-pkg-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f4-pkg-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.f4-pkg-chip i {
  color: var(--accent-glow);
  font-size: 11px;
}

a.f4-pkg-chip:hover {
  color: #fff;
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.f4-pkg-chip--soft {
  color: var(--text-muted);
}

.f4-pkg-chip--soft i {
  color: var(--text-muted);
}

.f4-pkg-panel__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .f4-pkg-panel__title {
    background: linear-gradient(180deg, #ffffff 30%, rgba(190, 203, 225, 0.74));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.f4-pkg-panel__summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.f4-pkg-price {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.f4-pkg-price__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.f4-pkg-price__value {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.f4-pkg-price__note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
}

.f4-pkg-price__note i {
  color: var(--success);
  font-size: 11px;
}

.f4-pkg-actions {
  display: grid;
  gap: 10px;
}

.f4-pkg-actions .f4-button {
  min-height: 48px;
}

.f4-pkg-actions__row {
  display: flex;
  gap: 10px;
}

.f4-pkg-actions__row > * {
  flex: 1 1 0;
  min-width: 0;
}

.f4-button--youtube {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  /* border-color: var(--border-glass); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); */
  /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); */
}

.f4-button__yt {
  display: inline-grid;
  place-items: center;
  color: #ff5252;
  font-size: 18px;
  transition: color 180ms var(--ease);
}

.f4-button--youtube:hover {
  color: #fff;
  border-color: rgba(255, 82, 82, 0.38);
  background: rgba(255, 61, 61, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px rgba(255, 61, 61, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-button--youtube:hover .f4-button__yt {
  color: #ff6b6b;
}

.f4-pkg-panel__foot {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.f4-pkg-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.f4-pkg-panel__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 180ms var(--ease);
}

.f4-pkg-panel__links a i {
  color: var(--accent-glow);
  font-size: 13px;
}

.f4-pkg-panel__links a:hover {
  color: #fff;
}

.f4-pkg-panel .f4-secure-note {
  margin: 0;
  font-size: 13px;
}

.f4-pkg-body {
  padding-top: 56px;
}

.f4-pkg-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.f4-pkg-article,
.f4-pkg-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: rgba(15, 18, 25, 0.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.f4-pkg-article {
  padding: 34px 38px;
}

.f4-pkg-article__head {
  position: relative;
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.f4-pkg-article__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}

.f4-pkg-article__head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Rich description body: Tebex delivers arbitrary HTML here, so every
   common tag gets a deliberate, readable treatment. */
.f4-pkg-prose {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.f4-pkg-prose > :first-child,
.f4-pkg-prose div > :first-child {
  margin-top: 0;
}

.f4-pkg-prose > :last-child {
  margin-bottom: 0;
}

.f4-pkg-prose h2 {
  margin: 30px 0 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f4-pkg-prose h3,
.f4-pkg-prose h4 {
  margin: 24px 0 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
}

.f4-pkg-prose p {
  margin: 0 0 14px;
}

.f4-pkg-prose ul,
.f4-pkg-prose ol {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.f4-pkg-prose li::marker {
  color: var(--accent-glow);
}

.f4-pkg-prose a {
  color: var(--accent-glow);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms var(--ease);
}

.f4-pkg-prose a:hover {
  text-decoration-color: currentColor;
}

.f4-pkg-prose img {
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.f4-pkg-prose iframe,
.f4-pkg-prose video {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.f4-pkg-prose code {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.f4-pkg-prose pre {
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: rgba(0, 0, 0, 0.28);
}

.f4-pkg-prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.f4-pkg-prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.025);
}

.f4-pkg-prose hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--border);
}

.f4-pkg-prose table {
  display: block;
  overflow-x: auto;
  margin: 18px 0;
  border-collapse: collapse;
}

.f4-pkg-prose th,
.f4-pkg-prose td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.f4-pkg-prose th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.f4-pkg-prose__empty {
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--text-muted);
}

.f4-pkg-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.f4-pkg-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.f4-pkg-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.f4-pkg-card h3 i {
  color: var(--accent-glow);
  font-size: 13px;
}

.f4-pkg-card__rows {
  display: grid;
  margin: 0;
}

.f4-pkg-card__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.f4-pkg-card__rows > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.f4-pkg-card__rows > div:first-child {
  padding-top: 0;
}

.f4-pkg-card__rows dt {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.f4-pkg-card__rows dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.f4-pkg-card__rows dd a:hover {
  color: var(--accent-glow);
}

.f4-pkg-card__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .f4-pkg-hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 22px;
  }

  .f4-pkg-hero__grid > .f4-pkg-media,
  .f4-pkg-hero__grid > .f4-pkg-panel,
  .f4-pkg-hero__grid > .f4-pkg-perks {
    grid-column: 1;
    grid-row: auto;
  }

  .f4-pkg-panel,
  .f4-pkg-aside {
    position: static;
  }

  .f4-pkg-body__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .f4-pkg-hero {
    padding: 26px 0 44px;
  }

  .f4-pkg-crumbs {
    margin-bottom: 18px;
  }

  .f4-pkg-panel {
    padding: 20px;
  }

  .f4-pkg-price__value {
    font-size: 28px;
  }

  .f4-pkg-actions__row {
    flex-direction: column;
  }

  .f4-pkg-thumb {
    width: 92px;
  }

  .f4-pkg-article {
    padding: 24px 20px;
  }

  .f4-pkg-perks {
    grid-template-columns: 1fr;
  }

  .f4-pkg-article__head h2 {
    font-size: 24px;
  }

  .f4-pkg-body {
    padding-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f4-pkg-hero__inner > .f4-pkg-crumbs,
  .f4-pkg-hero__grid > .f4-pkg-media,
  .f4-pkg-hero__grid > .f4-pkg-panel,
  .f4-pkg-hero__grid > .f4-pkg-perks,
  .f4-pkg-hero__orb,
  .f4-pkg-hero__ring {
    animation: none;
  }
}

.f4-purchase-panel,
.f4-basket-summary,
.f4-checkout-panel,
.f4-side-facts {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: rgba(15, 18, 25, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.f4-purchase-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.f4-purchase-panel h1 {
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.f4-purchase-panel > p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.f4-purchase-panel__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.f4-sale-note {
  color: var(--success);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
}

.f4-purchase-panel__links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.f4-purchase-panel__links a,
.f4-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.f4-purchase-panel__links svg,
.f4-purchase-panel__links i,
.f4-secure-note svg,
.f4-secure-note i {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: var(--accent-glow);
}

.f4-secure-note {
  margin: 14px 0 0;
}

.f4-form {
  display: grid;
  gap: 10px;
}

.f4-form label,
.f4-coupon-form label {
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
}

.f4-form input,
.f4-form select,
.f4-form textarea,
.f4-coupon-form input,
.f4-search-modal input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.f4-form textarea {
  min-height: 120px;
  padding-block: 10px;
}

.f4-form input:focus,
.f4-form select:focus,
.f4-form textarea:focus,
.f4-coupon-form input:focus,
.f4-search-modal input:focus {
  border-color: var(--accent-light);
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.f4-option-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.03);
}

.f4-option-line input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.f4-goal-bar {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.f4-goal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-glow));
}

.f4-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.f4-rich-content {
  color: var(--text-soft);
}

.f4-rich-content--wide {
  max-width: 900px;
}

.f4-rich-content h2,
.f4-side-facts h2,
.f4-basket-summary h2,
.f4-checkout-panel h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.f4-rich-content p:first-child {
  margin-top: 0;
}

.f4-rich-content a {
  color: var(--accent-glow);
}

.f4-rich-content code,
.f4-rich-content pre {
  font-family: Consolas, "Courier New", monospace;
}

.f4-rich-content pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.22);
}

.f4-side-facts {
  padding: 20px;
}

.f4-side-facts ul,
.f4-gateway-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.f4-side-facts li,
.f4-gateway-list li {
  display: flex;
  gap: 8px;
  color: var(--text-soft);
}

.f4-side-facts svg,
.f4-side-facts i,
.f4-gateway-list svg,
.f4-gateway-list i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent-glow);
}

.f4-mobile-buybar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 320ms var(--ease);
}

/* JS docks the bar away while the hero purchase button is on screen. */
.f4-mobile-buybar.is-hidden {
  transform: translateY(110%);
}

.f4-mobile-buybar__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.f4-mobile-buybar__meta strong {
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.f4-mobile-buybar__meta .f4-price {
  font-size: 19px;
}

.f4-mobile-buybar form .f4-button {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .f4-mobile-buybar {
    transition: none;
  }
}

.f4-basket-layout,
.f4-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 18px;
}

.f4-basket-list {
  display: grid;
  gap: 10px;
}

.f4-basket-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
}

.f4-basket-row img {
  width: 130px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
}

.f4-basket-row h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 900;
}

.f4-basket-row p {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.f4-basket-summary,
.f4-checkout-panel {
  padding: 20px;
}

.f4-checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
}

.f4-alert-wrap {
  padding-top: 14px;
}

.f4-alert {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-card);
}

.f4-alert svg,
.f4-alert i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.f4-alert p {
  margin: 0;
}

.f4-alert--success {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
}

.f4-alert--warning {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.f4-alert--error {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.f4-alert--info {
  color: var(--accent-glow);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.f4-empty {
  width: min(640px, 100%);
  margin-inline: auto;
  padding: 44px 20px;
  text-align: center;
}

.f4-empty__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-glow);
  background: var(--accent-dim);
}

.f4-empty__mark svg,
.f4-empty__mark i {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
}

.f4-empty h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.f4-empty p {
  max-width: 520px;
  margin: 10px auto 22px;
  color: var(--text-soft);
}

/* Overlays must cover the sticky header (z-index 240). */
.f4-drawer,
.f4-modal,
.f4-search-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
}

.f4-drawer[aria-hidden="false"],
.f4-modal[aria-hidden="false"],
.f4-search-modal[aria-hidden="false"] {
  display: block;
}

/* Tebex keeps its fixed lightbox in the DOM during the close transition. If a
   browser misses transitionend, the transparent layer must not block the
   storefront while the JS fallback lets Tebex complete its cleanup. */
.tebex-js-lightbox:not(.tebex-js-lightbox--visible) {
  pointer-events: none !important;
}

.f4-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(15, 18, 25, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 220ms var(--ease);
}

.f4-drawer[aria-hidden="false"] .f4-drawer__panel {
  transform: translateX(0);
}

.f4-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.f4-drawer__header h2 {
  margin: 5px 0 0;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.f4-cart-list {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  overflow-y: auto;
}

.f4-cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
}

.f4-cart-item img,
.f4-cart-item__fallback {
  width: 74px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.f4-cart-item__fallback {
  display: grid;
  place-items: center;
  color: var(--accent-glow);
  background: var(--bg-card-2);
}

.f4-cart-item__fallback svg,
.f4-cart-item__fallback i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
}

.f4-cart-item h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 900;
}

.f4-cart-item p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.f4-cart-summary {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.f4-cart-summary .f4-secure-note {
  margin: 0;
}

.f4-cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.f4-cart-summary__row span {
  color: var(--text-soft);
}

.f4-coupon-form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.f4-coupon-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* Keep the checkout call-to-action and its security note distinct from the
   coupon form, including when Tebex replaces the button with its web component. */
.f4-purchase-panel > tebex-checkout,
.f4-purchase-panel > .f4-form + .f4-form {
  display: block;
  margin-top: 16px;
}

.f4-purchase-panel > .f4-secure-note {
  margin-top: 18px;
}

.f4-search-modal__panel,
.f4-modal__panel {
  position: absolute;
  left: 50%;
  top: 9vh;
  width: min(720px, calc(100vw - 32px));
  transform: translate(-50%, -8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(17, 20, 27, 0.88);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.f4-search-modal[aria-hidden="false"] .f4-search-modal__panel,
.f4-modal[aria-hidden="false"] .f4-modal__panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

.f4-search-modal__top {
  display: grid;
  grid-template-columns: 24px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.f4-search-modal__top > svg,
.f4-search-modal__top > i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--accent-glow);
}

.f4-search-modal input {
  border: 0;
  background: transparent;
  font-size: 18px;
}

.f4-search-modal__results {
  max-height: min(60vh, 580px);
  overflow-y: auto;
  padding: 12px;
}

.f4-search-modal__hint {
  padding: 28px;
  text-align: center;
}

.f4-search-modal__hint p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.f4-search-result {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
}

.f4-search-result:hover,
.f4-search-result[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.05);
}

.f4-search-result img,
.f4-search-result__fallback {
  width: 68px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-card-2);
}

.f4-search-result strong,
.f4-search-result span {
  display: block;
}

.f4-search-result span {
  color: var(--text-muted);
  font-size: 13px;
}

.f4-modal__panel {
  width: min(420px, calc(100vw - 32px));
  padding: 26px;
}

.f4-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.f4-modal__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
}

.f4-modal h2 {
  margin: 8px 0 6px;
  font-family: var(--font-heading);
  font-size: 34px;
  text-transform: uppercase;
}

.f4-modal p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.f4-system-state {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.f4-system-state .f4-shell {
  text-align: center;
}

.f4-pagination {
  margin-top: 26px;
}

.f4-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(37, 99, 235, 0.05), transparent 60%),
    rgba(8, 10, 14, 0.98);
}

.f4-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.9fr);
  gap: 36px;
  padding: 56px 0;
}

.f4-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.f4-footer__brand h2 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.f4-footer__brand h2 small {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.f4-footer__brand p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
}

.f4-footer__powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
}

.f4-footer__powered svg,
.f4-footer__powered i {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--accent-glow);
}

.f4-payment-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

/* Tebex "we-accept" brand images, rendered plain - no chip, border or
   background around them. The Visa/Amex marks are trimmed tighter than the
   Apple/Google pills, so their heights are balanced individually. */
.f4-payment-brands img {
  height: 26px;
  width: auto;
  display: block;
}

.f4-payment-brands img[alt="Visa"] {
  height: 15px;
}

.f4-payment-brands img[alt="Mastercard"] {
  height: 22px;
}

.f4-payment-brands img[alt="American Express"] {
  height: 24px;
}

.f4-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.f4-footer__links h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.f4-footer__links a {
  display: block;
  margin: 8px 0;
  color: var(--text-soft);
  font-size: 14px;
}

.f4-footer__links a:hover {
  color: var(--accent-glow);
}

.f4-footer__bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.f4-footer__bottom p {
  margin: 0;
}

.f4-footer__copyright {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.f4-footer__copyright i {
  color: var(--accent-glow);
  font-size: 13px;
}

.f4-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.f4-footer__social a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

.f4-footer__social a:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.f4-footer__bottom-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.f4-footer__tebex {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.f4-footer__tebex i {
  color: var(--accent-glow);
}

.f4-footer__top {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-soft);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

.f4-footer__top:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.f4-toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: grid;
  gap: 8px;
}

.f4-toast {
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(21, 21, 25, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* NOTE: keep the entrance free of `filter` and `will-change: opacity` —
   either one on an ancestor creates a backdrop root and silently disables
   backdrop-filter on the glass cards inside. */
.f4-body.js-reveal .f4-reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: transform;
}

.f4-body.js-reveal .f4-reveal.is-visible,
.f4-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Words split by the scroll-linked "writing" reveal (initScrollText). */
.f4-word {
  display: inline-block;
  will-change: opacity, transform;
  transition: opacity 240ms linear, transform 240ms var(--ease);
}

@keyframes f4-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes f4-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes f4-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (max-width: 1180px) {
  :root {
    --shell: 1240px;
  }

  .f4-shell {
    padding-inline: 24px;
  }

  .f4-nav,
  .f4-header__login,
  .f4-currency {
    display: none;
  }

  .f4-mobile-toggle {
    display: inline-flex;
  }

  .f4-header__inner {
    grid-template-columns: auto auto;
  }

  .f4-header__actions {
    justify-self: end;
  }

  .f4-hero__grid,
  .f4-content-grid,
  .f4-basket-layout,
  .f4-checkout-layout,
  .f4-payments-layout,
  .f4-faq-layout,
  .f4-footer__inner {
    grid-template-columns: 1fr;
  }

  .f4-hero__grid {
    min-height: 0;
    gap: 0;
  }

  /* Single-column hero: scale the heading with the viewport so long
     heading lines never leave a lone word on its own line. */
  .f4-hero__copy h1 {
    font-size: clamp(34px, 5vw, 56px);
  }

  /* The 3D shattered logo only reads correctly beside the copy in the
     two-column layout; stacked underneath it floats misaligned, so the
     single-column hero is copy-only (same as mobile). */
  .f4-hero__visual {
    display: none;
  }

  .f4-orbit {
    width: min(520px, 100%);
    min-height: 460px;
  }

  .f4-orbit > img,
  .f4-hero-character {
    height: clamp(420px, 48vh, 500px);
    max-height: 500px;
    transform: translateX(0);
  }

  .f4-purchase-panel,
  .f4-trust-card,
  .f4-faq-aside {
    position: static;
  }

  .f4-product-grid,
  .f4-section--catalog .f4-product-grid,
  .f4-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f4-review-grid,
  .f4-category-grid,
  .f4-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f4-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --shell: 1240px;
  }

  .f4-shell {
    padding-inline: 16px;
  }

  .f4-divider {
    width: calc(100% - 32px);
  }

  .f4-announcement__inner {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: hidden;
    padding-block: 8px;
  }

  .f4-announcement__text {
    min-width: 0;
    flex: 1 1 230px;
    line-height: 1.35;
  }

  .f4-announcement__timer {
    display: none;
  }

  .f4-announcement__copy,
  .f4-announcement__link {
    display: none;
  }

  .f4-announcement__code {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  .f4-header__inner {
    height: 62px;
    gap: 12px;
  }

  .f4-brand__text span {
    display: none;
  }

  .f4-header__actions > [data-open-login] {
    display: none;
  }

  .f4-hero {
    padding: 42px 0 54px;
  }

  .f4-hero__grid {
    gap: 0;
  }

  .f4-hero__copy h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .f4-hero__copy p,
  .f4-hero__actions {
    max-width: 340px;
  }

  .f4-hero__actions .f4-button {
    flex: 1 1 100%;
    width: 100%;
    white-space: normal;
  }

  .f4-hero__visual {
    display: none;
  }


  .f4-section {
    padding: 64px 0;
  }

  .f4-section__header {
    margin-bottom: 32px;
  }

  .f4-section__header--row,
  .f4-discord-cta__inner {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .f4-section__header h2,
  .f4-page-hero h1,
  .f4-discord-cta h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .f4-product-grid,
  .f4-section--catalog .f4-product-grid,
  .f4-featured-grid,
  .f4-review-grid,
  .f4-category-grid,
  .f4-value-grid,
  .f4-stat-grid,
  .f4-footer__links {
    grid-template-columns: 1fr;
  }

  .f4-rating-row {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .f4-product-card__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .f4-product-card__actions {
    justify-content: space-between;
  }

  .f4-product-card__actions .f4-button {
    flex: 1;
  }

  .f4-payment-item {
    grid-template-columns: 42px 1fr auto;
  }

  .f4-payment-item i {
    display: none;
  }

  .f4-discord-cta__inner {
    padding: 28px;
  }

  .f4-basket-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .f4-basket-row img {
    width: 86px;
    height: 66px;
  }

  .f4-basket-row .f4-price,
  .f4-basket-row form {
    grid-column: 2;
  }

  .f4-mobile-buybar {
    display: flex;
  }

  body[data-page="package"] .f4-footer {
    padding-bottom: 78px;
  }

  .f4-drawer__panel {
    width: 100vw;
  }

  .f4-search-modal__panel {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform: translate(0, 12px);
  }

  .f4-search-modal[aria-hidden="false"] .f4-search-modal__panel {
    transform: translate(0, 0);
  }

  .f4-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }
}

@media (max-width: 430px) {
  :root {
    --shell: 1240px;
  }

  .f4-header__actions {
    gap: 6px;
  }

  .f4-header__actions [data-open-search] {
    display: none;
  }

  .f4-hero__copy h1,
  .f4-page-hero h1 {
    font-size: 27px;
    line-height: 1.04;
  }

  .f4-hero__copy p,
  .f4-hero__actions {
    max-width: 330px;
  }

  .f4-section__header h2,
  .f4-discord-cta h2 {
    font-size: 24px;
    line-height: 1.08;
  }

  .f4-coupon-form div,
  .f4-faq-search {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }

  .f4-faq-search svg,
  .f4-faq-search i,
  .f4-faq-search span {
    display: none;
  }

  .f4-search-result {
    grid-template-columns: 54px 1fr;
  }

  .f4-search-result img,
  .f4-search-result__fallback {
    width: 54px;
    height: 42px;
  }

  .f4-search-result .f4-price {
    grid-column: 2;
    font-size: 16px;
  }
}

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

  /* Motion-sensitive users (and Windows with "show animations" off) still
     get a gentle, vestibular-safe opacity fade — no movement, blur or
     parallax — so the storefront never feels static on scroll. */
  .f4-body.js-reveal .f4-reveal {
    opacity: 0;
    transform: none !important;
    filter: none !important;
    transition: opacity 600ms ease !important;
    transition-delay: 0ms !important;
  }

  .f4-body.js-reveal .f4-reveal.is-visible,
  .f4-reveal.is-visible {
    opacity: 1;
  }

}

/* ------------------------------------------------------------------ */
/* Migration additions: package video preview, checkout coupons,      */
/* options actions and the Tebex-rendered login form.                 */
/* ------------------------------------------------------------------ */

/* Privacy-enhanced YouTube embed under the package gallery. */
.f4-pkg-video {
  position: relative;
  margin: 14px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #0e1424, #0a0d16);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-pkg-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Applied coupons on the checkout summary panel. */
.f4-coupon-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}

.f4-coupon-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--surface-secondary);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.f4-coupon-list li i {
  margin-right: 6px;
  color: var(--accent-primary);
}

/* Back / continue row on the package options form. */
.f4-option-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.f4-option-actions .f4-button {
  flex: 1;
  justify-content: center;
}

/* Tebex-rendered login form (e.g. FiveM/CFX.re) on the username page.
   The markup comes from Tebex, so style its bare controls to match. */
.f4-loginform form {
  display: grid;
  gap: 12px;
}

.f4-loginform input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--surface-secondary);
  color: inherit;
  font: inherit;
}

.f4-loginform input[type="submit"],
.f4-loginform button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  background: var(--accent-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 200ms var(--ease);
}

.f4-loginform input[type="submit"]:hover,
.f4-loginform button:hover {
  background: var(--accent-primary-hover);
}

/* Kount fraud-screening beacon iframe on checkout. */
.f4-visually-hidden-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

/* Checkout: same dark, luminous visual language as the storefront. */
.f4-checkout-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 68px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(52% 100% at 8% 0%, rgba(37, 99, 235, 0.24), transparent 68%),
    radial-gradient(42% 80% at 92% 12%, rgba(139, 92, 246, 0.14), transparent 72%),
    rgba(255, 255, 255, 0.012);
}

.f4-checkout-hero::after {
  content: '';
  position: absolute;
  right: 5%;
  bottom: -160px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(96, 165, 250, 0.025), 0 0 90px rgba(37, 99, 235, 0.18);
  pointer-events: none;
}

.f4-checkout-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 28px;
}

.f4-checkout-hero h1 {
  margin: 16px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.f4-checkout-hero h1 em,
.f4-checkout-basket__head h2 em,
.f4-checkout-summary__head h2 em {
  color: var(--accent-light);
  font-style: normal;
}

.f4-checkout-hero p {
  max-width: 600px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.f4-checkout-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.f4-checkout-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.f4-checkout-hero__trust i {
  color: var(--accent-glow);
}

.f4-checkout {
  padding-top: 52px;
}

.f4-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 28px;
}

.f4-checkout-basket {
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: rgba(15, 18, 25, 0.62);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.f4-checkout-basket__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.f4-checkout-basket__head h2,
.f4-checkout-summary__head h2 {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.f4-checkout-basket__count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-glow);
  background: var(--accent-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
}

.f4-checkout-basket .f4-cart-list {
  gap: 12px;
  padding: 20px 0 0;
  overflow: visible;
}

.f4-checkout-basket .f4-cart-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.f4-checkout-basket .f4-cart-item:hover {
  border-color: var(--accent-border);
  background: rgba(37, 99, 235, 0.07);
  transform: translateY(-1px);
}

.f4-checkout-basket .f4-cart-item img,
.f4-checkout-basket .f4-cart-item__fallback {
  width: 82px;
  height: 64px;
  border-radius: 10px;
}

.f4-checkout-basket .f4-cart-item h3 {
  font-size: 16px;
}

.f4-checkout-basket .f4-cart-item .f4-price {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent-glow);
  font-size: 14px;
}

.f4-checkout-summary {
  top: 102px;
  padding: 26px;
  border-color: var(--accent-border);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(37, 99, 235, 0.17), transparent 62%),
    rgba(15, 18, 25, 0.86);
}

.f4-checkout-summary__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.f4-checkout-summary .f4-purchase-panel__price {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.f4-checkout-summary .f4-purchase-panel__price > span:first-child {
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.f4-checkout-summary .f4-purchase-panel__price .f4-price {
  color: var(--text);
  font-size: 27px;
}

.f4-checkout-summary > .f4-form {
  margin-top: 18px;
}

.f4-checkout-summary__actions {
  margin-top: 14px;
}

.f4-checkout-summary__actions > tebex-checkout {
  display: block;
}

.f4-checkout-summary__actions > .f4-form {
  margin: 0;
}

.f4-checkout-summary__actions .f4-button {
  min-height: 46px;
}

.f4-checkout-summary > .f4-secure-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .f4-checkout__grid {
    grid-template-columns: 1fr;
  }

  .f4-checkout-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .f4-checkout-hero {
    padding: 52px 0 54px;
  }

  .f4-checkout-hero__content {
    padding-top: 22px;
  }

  .f4-checkout-hero__trust {
    gap: 9px 14px;
    margin-top: 20px;
  }

  .f4-checkout {
    padding-top: 32px;
  }

  .f4-checkout-basket,
  .f4-checkout-summary {
    padding: 20px;
  }

  .f4-checkout-basket__head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .f4-checkout-basket .f4-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px;
  }

  .f4-checkout-basket .f4-cart-item img,
  .f4-checkout-basket .f4-cart-item__fallback {
    width: 64px;
    height: 54px;
  }
}
/* Checkout refinement: quieter storefront treatment. */
.f4-checkout-hero {
  padding: 48px 0 52px;
  background: radial-gradient(60% 110% at 0 0, rgba(37, 99, 235, 0.12), transparent 70%), rgba(255, 255, 255, 0.012);
}

.f4-checkout-hero::after {
  display: none;
}

.f4-checkout-hero__content {
  max-width: 640px;
  padding-top: 22px;
}

.f4-checkout-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.f4-checkout-hero p {
  font-size: 15px;
  line-height: 1.65;
}

.f4-checkout {
  padding-top: 40px;
}

.f4-checkout__grid {
  gap: 24px;
}

.f4-checkout-basket {
  padding: 24px;
  background: rgba(15, 18, 25, 0.7);
}

.f4-checkout-basket__head {
  padding-bottom: 18px;
}

.f4-checkout-basket__head h2,
.f4-checkout-summary__head h2 {
  margin-top: 6px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.f4-checkout-basket__count {
  border-color: var(--border-strong);
  color: var(--text-soft);
  background: transparent;
  font-weight: 700;
}

.f4-checkout-basket .f4-cart-list {
  gap: 10px;
  padding-top: 18px;
}

.f4-checkout-basket .f4-cart-item {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.f4-checkout-basket .f4-cart-item:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  transform: none;
}

.f4-checkout-summary {
  top: 92px;
  padding: 22px;
  border-color: var(--glass-border);
  background: rgba(15, 18, 25, 0.78);
}

.f4-checkout-summary__head {
  padding-bottom: 18px;
}

.f4-checkout-summary .f4-purchase-panel__price {
  padding: 16px 0;
}

.f4-checkout-summary .f4-purchase-panel__price .f4-price {
  font-size: 24px;
}

.f4-checkout-summary > .f4-form {
  margin-top: 14px;
}

.f4-checkout-summary__actions {
  margin-top: 10px;
}

.f4-checkout-summary > .f4-secure-note {
  margin-top: 12px;
  padding-top: 12px;
}

@media (max-width: 640px) {
  .f4-checkout-hero {
    padding: 40px 0 44px;
  }

  .f4-checkout-hero__content {
    padding-top: 18px;
  }

  .f4-checkout {
    padding-top: 28px;
  }

  .f4-checkout-basket,
  .f4-checkout-summary {
    padding: 18px;
  }
}
/* Shared page breadcrumb. */
.f4-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.f4-breadcrumb a {
  color: var(--text-soft);
  transition: color 180ms var(--ease);
}

.f4-breadcrumb a:hover {
  color: var(--accent-glow);
}

.f4-breadcrumb span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.f4-breadcrumb span::before {
  content: '/';
  color: var(--text-muted);
  font-weight: 400;
}

/* Tebex integration refinements. */
.f4-nav__menu {
  z-index: 30;
}

.f4-nav__menu-item--all {
  display: none;
}

.f4-button.is-loading {
  opacity: 0.76;
  cursor: wait;
}

.f4-pkg-panel__summary--rich {
  position: relative;
  max-height: 7.2em;
  overflow: hidden;
}

.f4-pkg-panel__summary--rich::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(15, 18, 25, 0.98));
}

.f4-pkg-panel__summary--rich > :first-child,
.f4-purchase-panel__description > :first-child,
.f4-cat-hero__lead--rich > :first-child {
  margin-top: 0;
}

.f4-pkg-panel__summary--rich > :last-child,
.f4-purchase-panel__description > :last-child,
.f4-cat-hero__lead--rich > :last-child {
  margin-bottom: 0;
}

.f4-pkg-panel__summary--rich h1,
.f4-pkg-panel__summary--rich h2,
.f4-pkg-panel__summary--rich h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1rem;
}

.f4-pkg-panel__summary--rich p,
.f4-cat-hero__lead--rich p {
  margin: 0 0 8px;
}

.f4-pkg-panel__summary--rich hr {
  margin: 7px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.f4-purchase-panel__description {
  max-height: 8em;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.f4-purchase-panel__description p {
  margin: 0 0 8px;
}

.f4-cat-hero__lead--rich h1,
.f4-cat-hero__lead--rich h2,
.f4-cat-hero__lead--rich h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

/* Required Discord delivery option. */
.f4-discord-requirement {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin: 6px 0 10px;
  padding: 16px;
  border: 1px solid rgba(88, 101, 242, 0.48);
  border-radius: var(--radius-card);
  background:
    radial-gradient(90% 120% at 0 0, rgba(88, 101, 242, 0.18), transparent 70%),
    rgba(88, 101, 242, 0.055);
}

.f4-discord-requirement[data-variable-type]:not([data-variable-type="discord_id"]):not([data-variable-id="discord_id"]) {
  display: none;
}

.f4-discord-requirement.is-connected {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
}

.f4-discord-requirement__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.3);
  font-size: 22px;
}

.f4-discord-requirement.is-connected .f4-discord-requirement__icon {
  background: var(--success);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.18);
}

.f4-discord-requirement__copy h3 {
  margin: 4px 0 6px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 18px;
}

.f4-discord-requirement__copy p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.f4-discord-requirement.is-connected p {
  margin-bottom: 0;
  color: var(--success);
}

.f4-discord-requirement:not(.is-connected) [data-discord-connected],
.f4-discord-requirement.is-connected [data-discord-missing] {
  display: none;
}

/* Full Tebex login experience. */
.f4-login-page {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: 34px 0 80px;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.34), var(--background-primary)),
    radial-gradient(70% 80% at 12% 12%, rgba(37, 99, 235, 0.17), transparent 68%),
    radial-gradient(52% 70% at 92% 80%, rgba(88, 101, 242, 0.11), transparent 72%);
}

.f4-login-page__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.f4-login-page__ambient span {
  position: absolute;
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(37, 99, 235, 0.08);
}

.f4-login-page__ambient span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -300px;
  left: -180px;
}

.f4-login-page__ambient span:nth-child(2) {
  width: 300px;
  height: 300px;
  right: 5%;
  bottom: -170px;
}

.f4-login-page__ambient span:nth-child(3) {
  width: 640px;
  height: 1px;
  top: 48%;
  right: -180px;
  border-radius: 0;
  transform: rotate(-18deg);
}

.f4-login-page__crumbs {
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
}

.f4-login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
  gap: 22px;
  max-width: 1050px;
  margin: 0 auto;
}

.f4-login-card,
.f4-login-showcase {
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.f4-login-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(14, 17, 24, 0.82);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.f4-login-card__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 17px;
}

.f4-login-card__mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-primary), #183e9e);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
  font-size: 23px;
}

.f4-login-card h1 {
  margin: 9px 0 9px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.f4-login-card__head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.f4-login-card__body {
  margin-top: 34px;
}

.f4-login-provider {
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), #1e48b2);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.22);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

.f4-login-provider:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.3);
}

.f4-login-provider__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 21px;
}

.f4-login-provider > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.f4-login-provider strong {
  font-family: var(--font-ui);
  font-size: 15px;
}

.f4-login-provider small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.f4-login-form {
  gap: 11px;
}

.f4-login-form__control {
  position: relative;
}

.f4-login-form__control > i {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.f4-login-form__control input,
.f4-login-form__control select {
  min-height: 50px;
  padding-left: 43px;
  background: rgba(255, 255, 255, 0.035);
}

.f4-login-form__submit {
  min-height: 50px;
  margin-top: 8px;
}

.f4-login-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: auto;
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.f4-login-card__foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.f4-login-card__foot i {
  color: var(--accent-glow);
}

.f4-login-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(150deg, rgba(37, 99, 235, 0.17), transparent 48%),
    rgba(11, 14, 21, 0.72);
}

.f4-login-showcase::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  top: -110px;
  border: 36px solid rgba(96, 165, 250, 0.035);
  border-radius: 50%;
}

.f4-login-showcase__eyebrow {
  color: var(--accent-glow);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.f4-login-showcase h2 {
  margin: 14px 0 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.f4-login-showcase h2 em {
  color: var(--accent-glow);
  font-style: normal;
}

.f4-login-showcase > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.f4-login-steps {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.f4-login-steps li {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.f4-login-steps li > span {
  color: var(--accent-glow);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
}

.f4-login-steps div {
  display: grid;
  gap: 3px;
}

.f4-login-steps strong {
  color: var(--text);
  font-size: 14px;
}

.f4-login-steps small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.f4-login-showcase__seal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.f4-login-showcase__seal > i {
  color: var(--success);
  font-size: 20px;
}

.f4-login-showcase__seal span {
  display: grid;
  gap: 2px;
}

.f4-login-showcase__seal strong {
  color: var(--text);
  font-size: 12px;
}

.f4-login-showcase__seal small {
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .f4-login-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .f4-login-showcase {
    order: -1;
  }
}

@media (max-width: 560px) {
  .f4-login-page {
    padding-top: 24px;
  }

  .f4-login-page__crumbs {
    margin-bottom: 22px;
  }

  .f4-login-card,
  .f4-login-showcase {
    border-radius: 18px;
  }

  .f4-login-card__head {
    grid-template-columns: 1fr;
  }

  .f4-login-card__mark {
    width: 48px;
    height: 48px;
  }

  .f4-login-provider {
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    padding-inline: 12px;
  }

  .f4-login-provider__icon {
    width: 42px;
    height: 42px;
  }

  .f4-discord-requirement {
    grid-template-columns: 1fr;
  }
}

/* Login refinement: clearer trust state and a more deliberate two-panel flow. */
.f4-login-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.f4-login-card::before {
  content: "";
  position: absolute;
  inset: 0 14% auto;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0.68;
}

.f4-login-card__head {
  align-items: start;
}

.f4-login-card__body {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.f4-login-card__status {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-soft);
}

.f4-login-card__status > span:last-child {
  display: grid;
  gap: 1px;
}

.f4-login-card__status strong {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.f4-login-card__status small {
  color: var(--text-muted);
  font-size: 11px;
}

.f4-login-card__status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.09), 0 0 16px rgba(52, 211, 153, 0.55);
}

.f4-login-provider--discord {
  border-color: rgba(124, 134, 255, 0.48);
  background: linear-gradient(135deg, #5865f2, #404eed);
  box-shadow: 0 16px 38px rgba(88, 101, 242, 0.26);
}

.f4-login-provider--steam {
  border-color: rgba(102, 192, 244, 0.3);
  background: linear-gradient(135deg, #183b56, #101c2d);
  box-shadow: 0 16px 38px rgba(16, 28, 45, 0.34);
}

.f4-login-showcase__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.f4-login-showcase__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
}

.f4-login-showcase__meta i {
  color: var(--accent-glow);
}

.f4-login-steps {
  position: relative;
}

.f4-login-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 17px;
  width: 1px;
  background: linear-gradient(var(--accent-border), var(--border));
}

.f4-login-steps li {
  position: relative;
  z-index: 1;
}

.f4-login-steps li > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: #111722;
  box-shadow: 0 0 0 6px rgba(11, 14, 21, 0.72);
}

@media (max-width: 560px) {
  .f4-login-card__body {
    margin-top: 26px;
    padding: 14px;
    border-radius: 15px;
  }

  .f4-login-card__status small {
    line-height: 1.45;
  }
}
