/* ════════════════════════════════════════════════════════════
   DUSK — NS-Dev RedM Scripts Store  |  style.css
   ════════════════════════════════════════════════════════════ */

:root {
  --color-primary:  #b8332d;
  --color-bg:       #0a0807;
  --color-surface:  #15110f;
  --color-elevated: #1f1916;
  --color-border:   #2c241e;
  --color-fg:       #f0e6dc;
  --color-muted:    #8a8079;
  --accent-from:    #d4a02e;
  --accent-to:      #8a5a14;
  --radius:         14px;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script:  'Kaushan Script', cursive;

  --tebex-legal-footer-background-color: #0a0807;
  --tebex-legal-footer-text-color:       #8a8079;
  --tebex-legal-footer-border-color:     #2c241e;
  --tebex-legal-footer-max-width:        1200px;
  --tebex-legal-footer-logo-color:       #f0e6dc;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 64px;
}

img, svg, iframe, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--color-primary); color: #fff; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-fg);
}
p { line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.eyebrow--script {
  font-family: var(--font-script);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
.eyebrow--muted { color: var(--color-muted); }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.page-main { padding-bottom: 8rem; }

/* ─── Site Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 2rem);
  gap: 1.5rem;
  background: rgba(10, 8, 7, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}
.header__brand img { height: 30px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.06);
}
.nav__link.is-active {
  color: var(--color-fg);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.header__icon-btn:hover {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.06);
}
.header__icon-btn--discord:hover {
  color: #fff;
  background: #5865F2;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.4);
}

.header__user {
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding-inline: 0.5rem;
  white-space: nowrap;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease, background 0.15s ease;
}
.header__hamburger:hover {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.06);
}

.header__mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: rgba(10, 8, 7, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  padding: 1.25rem;
  gap: 0.375rem;
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
}
.header__mobile-nav.is-open { display: flex; }
.header__mobile-nav .nav__link {
  height: 50px;
  font-size: 1rem;
  border-radius: var(--radius);
  padding-inline: 1.25rem;
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__hamburger { display: inline-flex; }
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero__bg--fallback {
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(184, 51, 45, 0.32), transparent 60%),
    radial-gradient(ellipse 60% 55% at 20% 75%, rgba(212, 160, 46, 0.10), transparent 60%),
    linear-gradient(160deg, #150807 0%, #0a0807 55%, #060403 100%);
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #08060a;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  opacity: 0;
  will-change: transform, opacity;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.50) 40%,
    rgba(10, 8, 7, 0.80) 85%,
    var(--color-bg) 100%
  );
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem clamp(1rem, 4vw, 2rem) 5rem;
  width: 100%;
  max-width: 940px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 30px;
  padding-inline: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.75rem;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 1.5rem;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(135deg, var(--accent-from) 20%, var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 44rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 680px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.125rem 0.75rem;
  background: rgba(21, 17, 15, 0.85);
  gap: 0.25rem;
  backdrop-filter: blur(8px);
}
.hero__stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
}

/* Page hero (category / inner pages) */
.page-hero {
  padding: 3.5rem 0 2.75rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(184, 51, 45, 0.10), transparent 70%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3.5rem;
}
.page-hero .eyebrow { display: block; }
.page-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.page-hero__desc {
  color: var(--color-muted);
  max-width: 60ch;
  font-size: 1.0625rem;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.625rem;
  height: 46px;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.15s ease,
              border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn--lg { height: 52px; padding-inline: 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow:
    0 14px 32px -8px color-mix(in srgb, var(--color-primary) 60%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-fg);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.20);
}

.btn--danger {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn--danger:hover:not(:disabled) { color: #ff7070; border-color: rgba(255, 112, 112, 0.4); }

/* ─── Section primitives ──────────────────────────────────── */
.section { padding-block: 5rem; }
.section__head {
  text-align: center;
  margin-bottom: 3rem;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}
.section__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.section__lede {
  color: var(--color-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* Old section-head compat */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
.section-lede { color: var(--color-muted); font-size: 1.0625rem; margin: 0; }

/* ─── Feature grid ────────────────────────────────────────── */
.features { padding-block: 5rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.feature {
  padding: 1.875rem 1.625rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  background: var(--color-elevated);
}
.feature__stat {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.875rem;
}
.feature__stat small {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature__title { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.feature__desc { color: var(--color-muted); font-size: 0.9375rem; margin: 0; line-height: 1.6; }

/* ─── Category cards ──────────────────────────────────────── */
.categories { padding-block: 5rem; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-fg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.22s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.category-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.category-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: var(--color-elevated);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
.category-card:hover::after { transform: scaleX(1); }
.category-card__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.category-card__count { font-size: 0.8125rem; color: var(--color-muted); margin: 0.25rem 0 0; }
.category-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.category-card:hover .category-card__arrow {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
}

/* ─── Package grid ────────────────────────────────────────── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.25rem;
}
.package-grid--list { grid-template-columns: 1fr; }
.package-grid--list .pkg-card { flex-direction: row; }
.package-grid--list .pkg-card__media { width: 220px; flex-shrink: 0; aspect-ratio: 1/1; }
.package-grid--list .pkg-card__body { padding: 1.5rem; }

/* ─── Package card ────────────────────────────────────────── */
.pkg-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--color-fg);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.22s ease, box-shadow 0.25s ease;
}
.pkg-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  box-shadow: 0 28px 52px -22px rgba(0, 0, 0, 0.65);
}
.pkg-card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-bg);
  overflow: hidden;
}
.pkg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pkg-card:hover .pkg-card__media img { transform: scale(1.05); }
.pkg-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 80% at 25% 28%, rgba(184, 51, 45, 0.20), transparent 60%),
    radial-gradient(ellipse 55% 60% at 78% 75%, rgba(212, 160, 46, 0.08), transparent 55%),
    linear-gradient(135deg, #150807, #0a0807);
}
.pkg-card__badges {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.pkg-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}
.pkg-card__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
.pkg-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}
.pkg-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.pkg-card__price s { font-size: 0.875rem; font-weight: 500; color: var(--color-muted); }
.pkg-card__price strong {
  font-size: 1.1875rem;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pkg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: gap 0.15s ease;
}
.pkg-card:hover .pkg-card__cta { gap: 0.45rem; }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
}
.badge--sale { background: color-mix(in srgb, var(--color-primary) 82%, transparent); color: #fff; }
.badge--free { background: rgba(20, 80, 50, 0.9); color: #c9f0d3; border-color: rgba(80, 200, 120, 0.2); }
.badge--featured { background: linear-gradient(135deg, var(--accent-from), var(--accent-to)); color: #1a1200; }

/* ─── Empty state ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 0.875rem;
  border: 1px dashed color-mix(in srgb, var(--color-border) 180%, transparent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}
.empty-state__icon {
  color: var(--color-muted);
  opacity: 0.45;
  margin-bottom: 0.25rem;
}
.empty-state__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.empty-state__text {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 36ch;
}

/* ─── Package detail ──────────────────────────────────────── */
.package { padding-top: 3rem; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--color-fg); }
.breadcrumb__current { color: var(--color-fg); font-weight: 500; }

.package__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}
@media (max-width: 900px) { .package__layout { grid-template-columns: 1fr; } }

.package__media {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}
.package__gallery { display: flex; flex-direction: column; gap: 2px; }
.package__gallery img, .package__gallery iframe {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 0;
}
.package__placeholder {
  aspect-ratio: 16/10;
  background:
    radial-gradient(ellipse 60% 80% at 30% 30%, rgba(184, 51, 45, 0.18), transparent 60%),
    linear-gradient(135deg, #150807, #0a0807);
}
.package__badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.package__sidebar {
  position: sticky;
  top: calc(64px + 1.5rem);
  align-self: start;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.package__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }

.package__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.package__price-old { color: var(--color-muted); font-size: 1rem; text-decoration: line-through; }
.package__price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.package__currency { color: var(--color-muted); font-size: 0.875rem; font-weight: 600; }
.package__in-cart {
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
  margin: 0;
}
.package__in-cart a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

.not-purchasable {
  padding: 1rem 1.125rem;
  background: rgba(184, 51, 45, 0.07);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: calc(var(--radius) - 4px);
}
.not-purchasable strong { display: block; margin-bottom: 0.25rem; font-size: 0.9375rem; }
.not-purchasable p { margin: 0; font-size: 0.875rem; color: var(--color-muted); }

.package__meta {
  list-style: none;
  padding-top: 1.25rem;
  margin-top: 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.package__meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.package__meta li span { color: var(--color-muted); }
.package__meta li strong { color: var(--color-fg); font-weight: 600; }
.package__price--free {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #4ade80;
}

/* Dependencies / frameworks tag rows */
.pkg-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.pkg-info-section__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-muted);
}
.pkg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.pkg-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pkg-tag--dep {
  background: rgba(212, 160, 46, 0.10);
  color: var(--accent-from);
  border: 1px solid rgba(212, 160, 46, 0.22);
}
.pkg-tag--fw {
  background: rgba(59, 130, 246, 0.09);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.20);
}

/* Free price text in package cards */
.pkg-card__price--free {
  font-weight: 700;
  font-size: 1.05rem;
  color: #4ade80;
}

.package__desc { padding-top: 2.5rem; border-top: 1px solid var(--color-border); }

/* ─── Card pane (login / checkout) ───────────────────────── */
.card-pane {
  max-width: 540px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.card-pane--narrow { max-width: 440px; }
.card-pane__title { font-size: 1.75rem; margin: 0 0 0.625rem; }
.card-pane__lede { color: var(--color-muted); margin: 0 0 1.5rem; font-size: 1rem; }

/* ─── Cart ────────────────────────────────────────────────── */
.cart {
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.cart__item, .cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9375rem 1.125rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.cart__item:last-of-type { border-bottom: 0; }
.cart__item-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1; }
.cart__item-name { font-weight: 600; }
.cart__item-qty { font-size: 0.8125rem; color: var(--color-muted); }
.cart__item-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.cart__item-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.cart__remove {
  background: transparent;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
  transition: color 0.15s ease;
}
.cart__remove:hover { color: #ff7070; }
.cart__total {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-weight: 700;
  border-bottom: 0;
  border-top: 1px solid var(--color-border);
}
.cart__total strong { font-size: 1.125rem; color: var(--color-fg); }

.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.coupon-row input {
  flex: 1;
  height: 46px;
  padding-inline: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}
.coupon-row input:focus { outline: none; border-color: var(--color-primary); }
.coupon-row input::placeholder { color: var(--color-muted); }

/* ─── Forms ───────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.375rem;
}
.field input, .field select {
  width: 100%;
  height: 48px;
  padding-inline: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
  appearance: none;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-elevated);
}
.field input::placeholder { color: var(--color-muted); }
.field__hint { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--color-muted); }

/* ─── Modules / social proof ──────────────────────────────── */
.social-proof {
  border-top: 1px solid var(--color-border);
  padding-block: 4rem;
  margin-bottom: 0;
}
.social-proof__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.module {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.module__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.module__empty { color: var(--color-muted); font-size: 0.875rem; }

.payments-list { display: flex; flex-direction: column; }
.payment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "user price" "pkg time";
  gap: 0.1rem 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
.payment-row:first-child { padding-top: 0; }
.payment-row:last-child { padding-bottom: 0; border-bottom: 0; }
.payment-row__user { grid-area: user; font-weight: 600; }
.payment-row__pkg { grid-area: pkg; color: var(--color-muted); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-row__price {
  grid-area: price;
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.payment-row__time { grid-area: time; color: var(--color-muted); font-size: 0.75rem; text-align: right; }

.topdonator { display: flex; align-items: center; gap: 1rem; }
.topdonator__avatar { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--color-border); background: var(--color-bg); flex-shrink: 0; }
.topdonator__meta { display: flex; flex-direction: column; min-width: 0; }
.topdonator__name { font-size: 1rem; font-weight: 700; }
.topdonator__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topdonator__period { color: var(--color-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }

.bar { position: relative; height: 6px; background: var(--color-bg); border-radius: 999px; overflow: hidden; margin: 0.875rem 0 0.5rem; }
.bar__fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, var(--accent-from))); border-radius: 999px; transition: width 0.8s ease; }

.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #5a8c3a; box-shadow: 0 0 10px rgba(90, 140, 58, 0.6); animation: dot-pulse 2s ease-in-out infinite; }
.status--offline .status__dot { background: var(--color-primary); box-shadow: 0 0 10px color-mix(in srgb, var(--color-primary) 60%, transparent); animation: none; }
.status__players { color: var(--color-muted); font-size: 0.8125rem; margin-left: auto; }

/* ─── Toast / error ───────────────────────────────────────── */
.error { color: #ff7070; margin-top: 0.875rem; font-size: 0.875rem; }

/* ─── Prose ───────────────────────────────────────────────── */
.prose {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 70ch;
}
.prose h2 { margin: 2.5rem 0 0.875rem; }
.prose h3 { margin: 1.75rem 0 0.625rem; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.375rem; }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--color-fg); }
.prose code { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 5px; font-size: 0.875em; padding: 0.125em 0.375em; font-family: ui-monospace, monospace; }
.prose pre { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; font-family: ui-monospace, monospace; font-size: 0.875em; }

/* ─── Skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-elevated) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.pkg-card--skeleton .pkg-card__media { background: var(--color-surface); }

/* ─── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 4rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
  .hero__slides--active .hero__slide { animation: none !important; opacity: 0; transform: none; }
  .hero__slides--active .hero__slide:first-child { opacity: 1; }
  .hero__badge-dot, .status__dot { animation: none; }
}
