/* =====================================================================
   XENON-PRO — clean theme
   Colours come from the Tebex template options (see head.twig):
   --color-primary, --color-primary-hover, --dark-color-primary,
   --dark-color-secondary
   ===================================================================== */

:root {
  --bg: var(--dark-color-primary, #111114);
  --bg-raised: color-mix(in srgb, #ffffff 4%, var(--bg));
  --bg-footer: color-mix(in srgb, #ffffff 3%, var(--bg));
  --accent: var(--color-primary, #ffb53d);
  --accent-hover: var(--color-primary-hover, #c58d32);
  --on-accent: var(--bg);

  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.48);
  --text-faint: rgba(255, 255, 255, 0.3);

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --card-bg: radial-gradient(74.31% 154.58% at 50% 50%, rgba(0, 0, 0, 0.31) 0%, rgba(51, 51, 51, 0.31) 100%);
  --panel-bg: radial-gradient(74.31% 154.58% at 50% 50%, rgba(0, 0, 0, 0.31) 0%, rgba(71, 71, 71, 0.22) 100%);
  --pill-bg: radial-gradient(74.31% 154.58% at 50% 50%, #323232 0%, #5f5e5e 100%);

  --danger: #ff4d5a;
  --sale: #ef4444;
  --discord: #5865f2;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --gutter: 16px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Text on accent: white for dark accents, near-black for light ones */
@supports (color: oklch(from red l c h)) {
  :root {
    --on-accent: oklch(from var(--accent) clamp(0.16, (0.7 - l) * 1000, 1) 0 0);
  }
}

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

@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  outline: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

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

.no-scroll,
.no-scroll body {
  overflow: hidden;
}

/* ---------- Page transitions ---------- */

/* Cross-document view transitions (Chrome, Edge, Safari 18.2+) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-page-out 0.3s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: vt-page-in 0.6s var(--ease-out) 0.08s both;
}

::view-transition-group(site-nav) {
  animation-duration: 0.3s;
}

::view-transition-group(nav-pill) {
  animation-duration: 0.55s;
  animation-timing-function: var(--ease-out);
}

@keyframes vt-page-out {
  to {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(6px);
  }
}

@keyframes vt-page-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
}

/* Fallback for other browsers (main.js adds .is-leaving before navigating) */
/* "backwards" (not "both") so no transform/filter lingers — fixed modals inside stay viewport-relative */
.no-vt .page-main {
  animation: vt-page-in 0.6s var(--ease-out) backwards;
}

.is-leaving .page-main,
.is-leaving .footer {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

/* Top loading bar shown while the next page loads */
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 60%, #ffffff);
  box-shadow: 0 0 12px var(--accent), 0 0 4px var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.is-navigating .route-progress {
  opacity: 1;
  animation: route-progress 2.4s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

@keyframes route-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.9);
  }
}

/* ---------- Worm mascot (assets/twig/worm.twig) ---------- */

.worm {
  --worm-line: color-mix(in srgb, var(--accent) 62%, #063a33);
  --worm-body: color-mix(in srgb, var(--accent) 22%, #ffffff);
  display: inline-block;
  flex: none;
  width: 48px;
  height: auto;
  overflow: visible;
}

.worm__line {
  fill: var(--worm-line);
}

.worm__fill {
  fill: var(--worm-body);
}

.worm__shine {
  fill: #ffffff;
}

.worm__eye {
  fill: #08090b;
}

.worm__tip {
  fill: var(--accent);
}

.worm__z rect {
  fill: var(--text-muted);
}

/* Movement is stepped one pixel at a time to stay true to the pixel-art look */
@keyframes worm-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes worm-wiggle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes worm-wave {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1px);
  }
}

/* Sleeping worm: Z's drift up and fade */
.worm__z {
  animation: worm-z 2.8s steps(7, end) infinite both;
}

.worm__z--late {
  animation-delay: 1.4s;
}

@keyframes worm-z {
  0% {
    opacity: 0;
    transform: translate(0, 2px);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(1px, -3px);
  }
}

/* Hero badge: crawls in once, wiggles on hover */
.worm--badge {
  width: 48px;
  animation: worm-badge-in 1.4s steps(14, end) 0.4s both;
}

.worm--badge :is(.worm__seg, .worm__head) {
  animation: worm-bob 0.35s steps(1, end) 4 both;
  animation-delay: calc(0.4s - var(--d) * 0.07s);
}

.hero__badge:hover .worm--badge :is(.worm__seg, .worm__head) {
  animation: worm-wiggle 0.35s steps(1, end) infinite;
  animation-delay: calc(var(--d) * -0.07s);
}

.hero__badge:hover .worm--badge .worm__antennae {
  animation: worm-wave 0.5s steps(1, end) infinite;
}

@keyframes worm-badge-in {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: none;
  }
}

/* Page loading: a worm crawls along the progress bar */
.route-worm {
  position: fixed;
  top: 2px;
  left: 0;
  z-index: 401;
  opacity: 0;
  transform: translateX(-100%);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
  pointer-events: none;
}

.route-worm .worm {
  display: block;
  width: 36px;
}

.is-navigating .route-worm {
  opacity: 1;
  animation: route-worm 2.4s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

.is-navigating .route-worm :is(.worm__seg, .worm__head) {
  animation: worm-bob 0.4s steps(1, end) infinite;
  animation-delay: calc(var(--d) * -0.08s);
}

/* Same timing as .route-progress, so the worm stays at the bar's leading edge */
@keyframes route-worm {
  from {
    left: 0;
  }
  to {
    left: 90%;
  }
}

/* Footer: peeks over the edge once, waves its antennae, wiggles on hover */
.footer__peek {
  position: absolute;
  right: 9%;
  bottom: 100%;
  width: 72px;
  height: 30px;
  overflow: hidden;
}

.footer__peek .worm {
  display: block;
  width: 72px;
}

.footer__peek-worm {
  transform: translateY(100%);
  transition: transform 0.8s steps(8, end);
}

.footer.is-peeking .footer__peek-worm {
  transform: none;
}

.footer.is-peeking .footer__peek .worm__antennae {
  animation: worm-wave 0.4s steps(1, end) 0.9s 5;
}

.footer.is-peeking .footer__peek .worm__head {
  animation: worm-bob 0.4s steps(1, end) 0.9s 5;
}

.footer.is-peeking .footer__peek:hover :is(.worm__seg, .worm__head) {
  animation: worm-wiggle 0.4s steps(1, end) infinite;
  animation-delay: calc(var(--d) * -0.08s);
}

@media (prefers-reduced-motion: reduce) {
  .worm,
  .worm * {
    animation: none !important;
  }

  .route-worm {
    display: none;
  }

  .footer__peek-worm {
    transform: none;
    transition: none;
  }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.page-main {
  position: relative;
  flex: 1;
  min-height: 50vh;
}

.page-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(55% 50% at 50% 0%, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 72%);
}

.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 0%, #000 0%, transparent 75%);
}

.page-backdrop__img {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(1920px, 100%);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
}

.container {
  width: 100%;
  max-width: calc(1280px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.section {
  margin-top: clamp(72px, 9vw, 120px);
}

.section--page {
  margin-top: clamp(24px, 4vw, 48px);
}

/* ---------- Typography helpers ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  font-weight: 500;
  line-height: 1.65;
}

.section-sub strong {
  color: var(--text);
  font-weight: 600;
}

.text-accent {
  color: var(--accent);
}

/* Soft glow on section titles — kept subtle so letter edges stay crisp */
.text-glow {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
}

.text-glow-accent {
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 24%, transparent);
}

.text-accent-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 65%, #ffffff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons & small UI ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.btn--lg {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn--square {
  flex: none;
  width: 46px;
  padding: 0;
}

.btn--light {
  background: #ffffff;
  color: #0b0b0d;
}

.btn--light:hover {
  background: #e8e8ea;
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-strong);
}

.btn--pill {
  background: var(--pill-bg);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn--pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--danger {
  background: color-mix(in srgb, var(--danger) 13%, transparent);
  border-color: color-mix(in srgb, var(--danger) 22%, transparent);
  color: var(--danger);
}

.btn--danger:hover {
  background: color-mix(in srgb, var(--danger) 22%, transparent);
}

.btn__arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 18px;
  transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: var(--pill-bg);
  border-color: var(--border);
}

.icon-btn__badge {
  position: absolute;
  top: 1px;
  right: -1px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.chip--sm {
  padding: 2px 6px;
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--sale {
  background: var(--sale);
  color: #ffffff;
}

.badge--accent {
  padding: 4px 8px;
  background: var(--accent);
  color: var(--on-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price small {
  font-size: 0.6em;
  font-weight: 600;
  opacity: 0.6;
}

.price--lg {
  font-size: 32px;
}

.price--free {
  color: var(--accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Category ↔ subcategory switcher (e.g. All Products / Free Resources) */
.subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.subnav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.25s, background-color 0.25s;
}

.subnav__item:hover {
  color: var(--text);
}

.subnav__item.is-active {
  background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--text);
}

.subnav__item i {
  color: var(--accent);
  font-size: 12px;
}

.empty-state .worm {
  display: block;
  width: 72px;
  margin: 12px auto 18px;
}

.empty-state a {
  color: var(--accent);
  font-weight: 600;
}

.price-old {
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

@media (min-width: 768px) {
  .panel {
    padding: 24px;
  }
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, background-color 0.2s;
}

.input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}

.input::placeholder {
  color: var(--text-faint);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb i {
  font-size: 9px;
}

.breadcrumb span {
  color: var(--text-muted);
}

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/*
 * Two Chrome quirks would stop the frosted dropdown panels from blurring the page:
 * a backdrop-filter on .nav itself, and a permanent view-transition-name on it.
 * So the navbar glass sits on ::before, and the transition name is only set while a
 * page transition runs (.vt-active, toggled in head.twig).
 */
.vt-active .nav {
  view-transition-name: site-nav;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.nav.is-scrolled::before,
.nav.is-menu-open::before {
  opacity: 1;
}

.nav.is-scrolled,
.nav.is-menu-open {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-height);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}

.nav__brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__divider {
  flex: none;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.nav__tebex {
  display: none;
  flex: none;
  height: 26px;
  width: auto;
  opacity: 0.6;
}

.nav__divider--brand {
  display: none;
}

.nav__links {
  position: relative;
  display: none;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__dropdown.is-open > .nav__link,
.nav__link.is-active {
  color: var(--text);
}

/* Active page pill — morphs to the next active link during page transitions */
.nav__pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: inherit;
  background:
    radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    color-mix(in srgb, var(--accent) 9%, rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px -10px color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
  view-transition-name: nav-pill;
}

/* Hover highlight that glides between links */
.nav__hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: var(--w, 0);
  height: var(--h, 0);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0);
  pointer-events: none;
  transition:
    transform 0.45s var(--ease-out),
    width 0.45s var(--ease-out),
    opacity 0.25s ease;
}

.nav__hover.is-visible {
  opacity: 1;
}

.nav__hover.no-transition {
  transition: opacity 0.25s ease;
}

.nav__chevron {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav__dropdown {
  position: relative;
}

.nav__chevron {
  transition: transform 0.35s var(--ease-out);
}

.nav__dropdown.is-open .nav__chevron {
  transform: rotate(180deg);
}

/*
 * Dropdowns stay in the DOM and animate both ways: the panel unrolls from the top
 * (clip-path), list items follow one after another. Visibility is delayed on close
 * so the closing animation can finish.
 */
.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 80;
  padding-top: 10px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.35s;
}

.nav__dropdown--right .nav__menu {
  left: auto;
  right: 0;
}

.nav__menu > * {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top left;
  clip-path: inset(0 0 100% 0 round 16px);
  transition:
    opacity 0.25s ease,
    transform 0.45s var(--ease-out),
    clip-path 0.45s var(--ease-out);
}

.nav__dropdown--right .nav__menu > * {
  transform-origin: top right;
}

.menu--list .menu-item {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.3s var(--ease-out),
    background-color 0.25s,
    border-color 0.25s;
}

.nav__dropdown.is-open > .nav__menu {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav__dropdown.is-open > .nav__menu > * {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 16px);
}

.nav__dropdown.is-open .menu--list .menu-item {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 100ms), calc(var(--i, 0) * 60ms + 100ms), 0s, 0s;
}

@media (hover: hover) {
  .nav__dropdown:hover > .nav__menu {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav__dropdown:hover > .nav__menu > * {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0 round 16px);
  }

  .nav__dropdown:hover .menu--list .menu-item {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 60ms + 100ms), calc(var(--i, 0) * 60ms + 100ms), 0s, 0s;
  }

  .nav__dropdown:hover > .nav__link {
    color: var(--text);
  }

  .nav__dropdown:hover .nav__chevron {
    transform: rotate(180deg);
  }
}

/* Rich list items (category dropdowns) */
/* Frosted-glass panel: translucent fill + blur of the page behind it */
.menu.menu--list {
  gap: 4px;
  min-width: 320px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%),
    color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 50px -16px rgba(0, 0, 0, 0.7);
}

.menu-item__title,
.menu-item__desc {
  white-space: nowrap;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
}

.menu-item:hover,
.menu-item:focus-visible,
.menu-item.is-active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.menu-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 15px;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.menu-item:hover .menu-item__icon,
.menu-item--free .menu-item__icon {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}

.menu-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.menu-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.menu-item__desc {
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 500;
}

.menu-item__arrow {
  color: var(--accent);
  font-size: 11px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.menu-item:hover .menu-item__arrow {
  opacity: 1;
  transform: none;
}

.badge--free {
  padding: 2px 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
}

.menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.menu__item i {
  font-size: 11px;
  opacity: 0.6;
}

.menu__item:hover,
.menu__item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.menu__item--danger,
.menu__item--danger:hover {
  color: #ff6b6b;
}

.menu__item--danger:hover {
  background: rgba(255, 77, 79, 0.12);
}

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

.nav__desktop {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #ffffff;
  color: #0b0b0d;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.currency-btn::-webkit-details-marker {
  display: none;
}

.currency-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.currency-btn .nav__chevron {
  font-style: normal;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
}

.currency-grid__item {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.currency-grid__item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.currency-grid__item.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0b0d;
}

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.user-btn__avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.user-btn__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile menu */
.mobile-menu {
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 20px;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s, color 0.2s;
}

.mobile-menu__link::-webkit-details-marker {
  display: none;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mobile-menu__link i {
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s;
}

details[open] > .mobile-menu__link i {
  transform: rotate(180deg);
}

.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 6px 16px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.mobile-menu__sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.mobile-menu__sublink > i {
  width: 16px;
  color: var(--accent);
  font-size: 13px;
  text-align: center;
}

/* Smooth open/close for the mobile <details> lists (Chrome 131+, falls back to instant) */
.mobile-menu {
  interpolate-size: allow-keywords;
}

.mobile-menu details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}

.mobile-menu details[open]::details-content {
  block-size: auto;
}

.mobile-menu__sublink:hover,
.mobile-menu__sublink.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-currency .currency-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.mobile-currency .currency-grid__item {
  min-width: 0;
}

@media (min-width: 640px) {
  .nav__tebex,
  .nav__divider--brand {
    display: block;
  }
}

@media (min-width: 1024px) {
  .nav__links,
  .nav__desktop {
    display: flex;
  }

  .nav__burger,
  .mobile-menu {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .nav__left {
    gap: 32px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 8px;
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: 40px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.hero__title {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.125rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.nowrap {
  white-space: nowrap;
}

.hero__text {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 500;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.hero__visual {
  display: none;
  place-items: center;
}

.hero__image {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 0 24px;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 420px;
  }

  .hero__content {
    align-items: flex-start;
    text-align: left;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__visual {
    display: grid;
  }
}

/* ---------- About page ---------- */

.about-hero {
  padding: 48px 0 8px;
}

.about-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.about-hero .hero__title {
  max-width: 980px;
}

.about-hero .hero__actions {
  justify-content: center;
}

/* Glowing tagline with a slow shimmer sweeping across it */
.about-hero__tagline {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent) 35%,
    #ffffff 50%,
    var(--accent) 65%,
    var(--accent) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent))
    drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 30%, transparent));
  animation: tagline-shimmer 5s linear infinite;
}

@keyframes tagline-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}

.about-story.container {
  max-width: calc(960px + var(--gutter) * 2);
}

.about-story__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.about-story__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Story text: wide column, brighter text, comfortable size */
.cms-content.panel {
  margin-top: 0;
  padding: clamp(24px, 4vw, 48px);
}

.cms-content {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.9;
}

.cms-content > :first-child {
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.cms-content.package-description strong,
.cms-content.package-description b {
  color: var(--accent);
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 0 4px;
}

.about-contact__label {
  font-size: 15px;
  font-weight: 700;
}

.about-contact .link-chip i {
  color: var(--accent);
}

.values {
  display: grid;
  border-top: 1px solid var(--border);
}

.value {
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
}

.value__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.value__index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.value__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 18px;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.value:hover .value__icon {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
}

.value__title {
  margin: 22px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.value__text {
  max-width: 360px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.catalog-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.catalog-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.catalog-tile > * {
  position: relative;
}

.catalog-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translateY(-4px);
}

.catalog-tile:hover::before {
  opacity: 1;
}

.catalog-tile__index {
  color: transparent;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  transition: -webkit-text-stroke-color 0.35s var(--ease-out);
}

.catalog-tile:hover .catalog-tile__index {
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.catalog-tile__name {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.catalog-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s;
}

.catalog-tile__cta i {
  font-size: 12px;
  transition: transform 0.35s var(--ease-out);
}

.catalog-tile:hover .catalog-tile__cta {
  color: var(--accent);
}

.catalog-tile:hover .catalog-tile__cta i {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
  }

  .value {
    padding: 32px 32px 36px;
    border-bottom: 0;
    border-left: 1px solid var(--border);
  }

  .value:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .value:last-child {
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .about-hero {
    padding: 96px 0 24px;
  }
}

/* ---------- Package cards ---------- */

/* Category pages: 3 large cards per row on desktop, 2 on tablets, 1 on phones */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.package-grid .package-card {
  border-radius: var(--radius-lg);
}

.package-grid .package-card__body {
  gap: 12px;
  padding: 18px 20px 20px;
}

.package-grid .package-card__title {
  font-size: 19px;
}

.package-grid .package-card__tops {
  top: 14px;
  right: 14px;
}

.package-grid .price {
  font-size: 26px;
}

.package-grid .package-card__actions .btn {
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
}

.package-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.package-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.package-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.package-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.package-card__tops {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 80%;
}

.package-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.package-card__title {
  display: -webkit-box;
  min-height: calc(1.35em * 2);
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}

.package-card__title:hover {
  color: var(--accent);
}

.package-card__tags,
.package-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.package-card__tags:empty,
.package-card__tops:empty,
.package-info__tags:empty,
.package-info__tops:empty {
  display: none;
}

.package-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.package-card__actions .btn {
  height: 38px;
}

/* ---------- Hot packages marquee ---------- */

.hot-packages-viewport {
  --hot-packages-gap: 16px;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.hot-packages-track {
  display: flex;
  width: max-content;
  align-items: stretch;
  gap: var(--hot-packages-gap);
  animation: hot-packages-marquee var(--hot-packages-duration, 45s) linear infinite;
}

.hot-packages-viewport:hover .hot-packages-track,
.hot-packages-viewport:focus-within .hot-packages-track {
  animation-play-state: paused;
}

.hot-packages-group {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: var(--hot-packages-gap);
}

.hot-packages-group > * {
  width: 290px;
  flex-shrink: 0;
}

.hot-section__more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

@keyframes hot-packages-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--hot-packages-shift, 0px) * -1), 0, 0);
  }
}

@media (min-width: 768px) {
  .hot-packages-group > * {
    width: 340px;
  }
}

/* ---------- Generic marquee (recent payments) ---------- */

.marquee {
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  padding-right: 16px;
}

.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 320px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.payment-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-card__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.payment-card__info {
  min-width: 0;
}

.payment-card__name,
.payment-card__meta {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-card__name {
  font-weight: 600;
}

.payment-card__meta {
  color: var(--text-faint);
  font-size: 13px;
}

.payment-card__price {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Features (services) ---------- */

.feature-grid {
  display: grid;
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(74.31% 154.58% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(49, 49, 49, 0.31) 100%);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-card--accent {
  background: radial-gradient(74.31% 154.58% at 50% 50%, rgba(0, 0, 0, 0.31) 0%, color-mix(in srgb, var(--accent) 13%, transparent) 100%);
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}

.feature-card--accent .feature-card__icon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.feature-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card--accent .feature-card__title {
  color: var(--accent);
}

.feature-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat__value {
  display: flex;
  justify-content: center;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.stat--accent .stat__value {
  color: var(--accent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.stat__label {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 500;
}

.stat--accent .stat__label {
  color: color-mix(in srgb, var(--accent) 60%, transparent);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq-search {
  position: relative;
  margin-bottom: 14px;
}

.faq-search > i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--text-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  height: 50px;
  padding: 0 110px 0 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: radial-gradient(74.31% 154.58% at 50% 50%, rgba(31, 31, 31, 0.31) 0%, rgba(71, 71, 71, 0.31) 100%);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
}

.faq-search input:focus {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-search input::placeholder {
  color: var(--text-faint);
}

.faq-search__count {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--text-faint);
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel-bg);
}

.faq-item {
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s, border-color 0.2s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-item.is-open {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.faq-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.25s, background-color 0.25s, color 0.25s;
}

.faq-item.is-open .faq-item__icon {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}

.faq-item__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-item__content {
  grid-template-rows: 1fr;
}

.faq-item__answer {
  min-height: 0;
  overflow: hidden;
}

.faq-item__answer-inner {
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-empty {
  padding: 24px;
  color: var(--text-faint);
  text-align: center;
}

.faq-empty p {
  margin: 0;
}

.faq-empty .worm {
  display: block;
  width: 48px;
  margin: 0 auto 12px;
}

/* ---------- Discord CTA ---------- */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 240px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 90% at 88% 50%, rgba(88, 101, 242, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.cta__accent {
  color: var(--discord);
}

.cta__text {
  margin: 10px 0 22px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.cta__icon {
  position: absolute;
  top: 50%;
  right: 6%;
  display: none;
  color: rgba(88, 101, 242, 0.18);
  font-size: 210px;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}

@media (min-width: 768px) {
  .cta {
    padding: 40px 44px;
  }

  .cta__icon {
    display: block;
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--border);
  background: var(--bg-footer);
}

.footer__top {
  display: grid;
  gap: 44px;
  padding: 52px 0 40px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.footer__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.footer__powered {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
}

.footer__powered img {
  height: 22px;
  width: auto;
  opacity: 0.55;
}

.footer__note {
  max-width: 320px;
  margin: 14px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  margin-left: -8px;
}

.footer__socials .icon-btn {
  color: var(--text-muted);
  font-size: 17px;
}

.footer__socials .icon-btn:hover {
  color: var(--text);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.footer__col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14.5px;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer__dmca {
  width: 110px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__dmca:hover {
  opacity: 1;
}

.footer__bottom {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.footer__bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer__cols {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }

  .footer__col a {
    overflow-wrap: normal;
  }
}

@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: minmax(240px, 1fr) 2.2fr;
    gap: 72px;
  }
}

/* ---------- Category page ---------- */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-desc {
  max-width: 620px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-field i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--text-faint);
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-field input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.search-field input::placeholder {
  color: var(--text-faint);
}

.tag-filter {
  position: relative;
}

.select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 140px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s;
}

.select-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.select-btn i {
  font-size: 10px;
  opacity: 0.6;
}

.tag-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  max-height: 300px;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
}

.tag-menu.hidden {
  display: none;
}

.tag-option {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: background-color 0.2s, color 0.2s;
}

.tag-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-faint);
  text-align: center;
}

@media (min-width: 768px) {
  .page-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .toolbar {
    flex-wrap: nowrap;
  }

  .search-field {
    flex: none;
    width: 300px;
  }
}

/* ---------- Package page ---------- */

.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.package-layout > * {
  min-width: 0;
}

.package-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.package-gallery {
  padding: 12px;
}

.package-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.package-info__tops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.package-info__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.package-info__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.package-info__note {
  margin: -8px 0 0;
  color: var(--text-faint);
  font-size: 12.5px;
}

.package-info__actions {
  display: flex;
  gap: 10px;
}

.package-info__divider {
  height: 1px;
  margin: 2px 0;
  border: 0;
  background: var(--border);
}

.package-info__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.link-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.link-chip--youtube i {
  color: #ff4444;
}

.link-chip--cfx i {
  color: #e8794a;
}

.link-chip--docs i {
  color: var(--accent);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-methods img,
.payment-methods__more {
  width: 52px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.payment-methods__more {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.help-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
}

.help-box__title {
  margin: 0;
  font-weight: 700;
}

.help-box__text {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

@media (min-width: 1024px) {
  .package-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
    gap: 24px;
  }

  .package-layout__aside {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
  }
}

/* Package description (rich text from Tebex) */
.package-description {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.package-description > :first-child {
  margin-top: 0 !important;
}

.package-description :is(p, ul, ol, h1, h2, h3, h4, table, iframe, blockquote, hr):not(:last-child) {
  margin-bottom: 0.85rem;
}

.package-description li + li {
  margin-top: 0.35rem;
}

.package-description h1,
.package-description h2,
.package-description h3,
.package-description h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

.package-description h1 { font-size: 1.6rem; }
.package-description h2 { font-size: 1.35rem; }
.package-description h3 { font-size: 1.15rem; }

.package-description a {
  color: var(--accent);
  transition: opacity 0.15s;
}

.package-description a:hover {
  text-decoration: underline;
}

.package-description b,
.package-description strong {
  color: #ffffff;
}

.package-description ol li,
.package-description ul li {
  position: relative;
  padding-left: 2ch;
}

.package-description ul li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--accent);
}

.package-description ol {
  counter-reset: ol-counter;
}

.package-description ol li {
  counter-increment: ol-counter;
}

.package-description ol li::before {
  content: counter(ol-counter) ". ";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.package-description img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.package-description hr {
  border: 0;
  border-top: 1px solid var(--border-strong);
}

.package-description iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
}

.package-description table {
  width: 100%;
  border-collapse: collapse;
}

.package-description td,
.package-description th {
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
}

/* Swiper (package gallery) */
.packageMainSwiper {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0b0b0d;
}

.packageMainSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0b0d;
}

.packageMainSwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.packageMainSwiper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.packageThumbsSwiper {
  margin-top: 12px;
}

.packageThumbsSwiper .swiper-slide {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #0b0b0d;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.25s, border-color 0.25s;
}

.packageThumbsSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.packageThumbsSwiper .swiper-slide:hover {
  opacity: 0.8;
}

.packageThumbsSwiper .swiper-slide-thumb-active {
  border-color: var(--accent);
  opacity: 1;
}

.thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.swiper-button-next,
.swiper-button-prev {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--accent);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #ffffff;
  font-size: 14px !important;
  font-weight: 700;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: var(--on-accent);
}

/* ---------- Basket drawer ---------- */

.basket,
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.overlay {
  z-index: 210;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  border-left: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.6);
  animation: drawer-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.drawer__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.drawer__sub {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}

.drawer__head .icon-btn {
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
}

.drawer__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.basket-view {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 40px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.basket-items {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px 22px;
  overflow-y: auto;
}

.basket-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.basket-item__media {
  flex: none;
  width: 104px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.basket-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.basket-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-right: 34px;
}

.basket-item__name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.basket-item__gift {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.basket-item__tags,
.basket-item__options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.basket-item__tags:empty,
.basket-item__options:empty {
  display: none;
}

.basket-item__options li {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.basket-item__options strong {
  color: var(--text);
  font-weight: 600;
}

.basket-item__price {
  font-size: 15px;
  font-weight: 800;
}

.basket-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 13px;
  transition: background-color 0.2s;
}

.basket-item__remove:hover {
  background: color-mix(in srgb, var(--danger) 24%, transparent);
}

.basket-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.basket-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.basket-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.basket-user img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.basket-user__label,
.basket-total__label {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
}

.basket-user__name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-total {
  flex: none;
  text-align: right;
}

.basket-total__value {
  font-size: 22px;
  font-weight: 800;
}

.basket-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 15px;
  font-weight: 500;
}

.basket-empty .worm {
  width: 72px;
  margin-bottom: 6px;
}

@keyframes drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ---------- Modals (login, gift, lightbox, options) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s;
}

.modal.hidden {
  display: none;
}

.modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: calc(100% - 32px);
  max-width: 400px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg-raised);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  text-align: center;
  transition: scale 0.3s, transform 0.3s;
}

.modal-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.modal-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-card__actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.modal-card__actions > * {
  flex: 1;
}

.auth {
  min-height: 480px;
}

.auth__logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  transition: scale 0.3s, transform 0.3s;
}

/* Options popup built by main.js */
.popup {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.popup-scroll-cont {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg-raised);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 13px;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.popup-content label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.popup-content input:not([type="checkbox"]):not([type="radio"]),
.popup-content select,
.popup-content textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.popup-content button[type="submit"],
.popup-content .actions button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.popup-content .actions.updating {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Discord gate (free resources) ---------- */

.btn--discord {
  background: var(--discord);
  color: #ffffff;
  box-shadow: 0 12px 30px -14px rgba(88, 101, 242, 0.9);
}

.btn--discord:hover {
  background: #4752c4;
}

.chip--discord {
  border-color: rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.14);
  color: #c7ccff;
}

.package-info__note .fa-discord {
  color: #aab2ff;
}

.gate__card {
  position: relative;
  gap: 18px;
  max-width: 440px;
  padding: 28px 28px 24px;
  overflow: hidden;
}

.gate__card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 420px;
  height: 300px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(88, 101, 242, 0.32) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.gate__card > * {
  position: relative;
}

.gate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

/* Worm → trail → Discord portal */
.gate__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 96px;
  margin-top: 4px;
}

.gate__worm {
  width: 72px;
}

.gate__trail {
  width: 52px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 4px, transparent 4px 9px);
}

.gate__portal {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.38) 0%, rgba(88, 101, 242, 0.08) 58%, transparent 72%);
  color: #ffffff;
  font-size: 32px;
}

.gate__portal i {
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.9));
}

.gate__ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: rgba(88, 101, 242, 0.95);
  border-right-color: rgba(88, 101, 242, 0.35);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

.gate__ring + .gate__ring {
  inset: 10px;
  border-top-color: color-mix(in srgb, var(--accent) 85%, transparent);
  border-right-color: transparent;
  animation-duration: 2s;
  animation-direction: reverse;
}

/* Redirect step: the worm crawls into the portal, rings spin faster */
.gate[data-state="redirect"] .gate__worm {
  animation: gate-worm-in 1.6s steps(16, end) forwards;
}

.gate[data-state="redirect"] .gate__worm :is(.worm__seg, .worm__head) {
  animation: worm-bob 0.3s steps(1, end) infinite;
  animation-delay: calc(var(--d) * -0.06s);
}

.gate[data-state="redirect"] .gate__ring {
  animation-duration: 0.7s;
}

.gate[data-state="claim"] .gate__ring:first-child {
  border-top-color: var(--accent);
}

@keyframes gate-worm-in {
  to {
    opacity: 0;
    transform: translateX(150px) scale(0.2);
  }
}

.gate__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  animation: gate-step-in 0.4s var(--ease-out);
}

@keyframes gate-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.gate__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gate__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.gate__text strong {
  color: var(--text);
}

.gate__perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 2px 0 0;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.gate__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

.gate__perks i {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.15);
  color: #aab2ff;
  font-size: 13px;
}

.gate__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.gate__hint {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 12.5px;
}

.gate__link {
  padding: 4px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.gate__link:hover {
  color: var(--text);
}

.gate__progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.gate__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--discord), var(--accent));
  transform-origin: left center;
  animation: gate-progress 2.6s linear forwards;
}

@keyframes gate-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate__ring,
  .gate__step,
  .gate__progress span {
    animation: none !important;
  }
}

/* ---------- Toasts (SweetAlert2) ---------- */

.colored-toast.swal2-popup {
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px !important;
  background: var(--bg-raised) !important;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.75) !important;
}

.colored-toast .swal2-title {
  color: #ffffff !important;
  font-size: 14px !important;
}

.colored-toast .swal2-html-container {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}

.colored-toast .swal2-close {
  color: #ffffff !important;
}

.colored-toast .swal2-timer-progress-bar {
  background: var(--accent) !important;
}

/* ---------- Utilities & loaders (used by main.js) ---------- */

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  --tw-translate-x: -50%;
  --tw-translate-y: -50%;
  translate: var(--tw-translate-x) var(--tw-translate-y);
}

.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.bg-delete {
  background-color: #d84141 !important;
  color: #ffffff !important;
}

.bg-primary {
  background-color: var(--accent) !important;
  color: var(--on-accent) !important;
}

.loading-data {
  width: 44px;
  padding: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: spin 1s infinite linear;
}

.btn-loading {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid currentColor;
  border-radius: 50%;
  animation: prixClipFix 2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes prixClipFix {
  0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); }
  25% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); }
  50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
  75% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
  100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .no-vt .page-main,
  .is-navigating .route-progress,
  .about-hero__tagline,
  .marquee__track,
  .hot-packages-track,
  .hero__image,
  .drawer__panel {
    animation: none;
  }

  .package-card,
  .package-card__media img,
  .nav__menu > *,
  .menu--list .menu-item,
  .mobile-menu details::details-content {
    transition: none;
  }
}
