:root {
  --primary: #a855f7;
  --accent: #e879f9;
  --bg: #07030f;
  --text: #f4eeff;
  --primary-rgb: 168, 85, 247;
  --accent-rgb: 232, 121, 249;
  --radius: 18px;
  --glass: 16px;
  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --faint: color-mix(in srgb, var(--text) 40%, transparent);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

::selection {
  background: rgba(var(--primary-rgb), 0.5);
}

/* ── 3D canvas & atmosphere ───────────────────────────────── */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(var(--primary-rgb), 0.16), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(var(--accent-rgb), 0.1), transparent 60%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

body.no-webgl #scene {
  display: none;
}

body.no-webgl .atmosphere {
  background:
    radial-gradient(800px 500px at 30% 20%, rgba(var(--primary-rgb), 0.35), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(var(--accent-rgb), 0.25), transparent 60%);
}

/* ── Loader ───────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.6);
  animation: loaderPulse 1.4s var(--ease) infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: perspective(400px) rotateY(0deg) scale(1);
  }
  50% {
    transform: perspective(400px) rotateY(180deg) scale(0.9);
  }
}

/* ── Layout ───────────────────────────────────────────────── */
main,
.footer,
.nav,
.announce {
  position: relative;
  z-index: 2;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

section.block {
  padding: 120px 0 40px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding-bottom: 0.14em;
  margin: 0 0 calc(14px - 0.14em);
  font-weight: 700;
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--primary) 45%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  white-space: pre-line;
}

/* ── Announcement & nav ───────────────────────────────────── */
.announce {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.35), rgba(var(--accent-rgb), 0.25), rgba(var(--primary-rgb), 0.35));
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  border-bottom: 1px solid var(--line);
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(16px, calc((100% - 1180px) / 2));
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 3, 15, 0.55);
  backdrop-filter: blur(var(--glass)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass)) saturate(140%);
  border-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.55);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--card-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-burger span:first-child {
  top: 15px;
}

.nav-burger span:last-child {
  top: 23px;
}

.nav.open .nav-burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.open .nav-burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.user-chip {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
}

.user-btn img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(14, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.user-chip.open .user-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.user-menu a,
.user-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: none;
  font-size: 14px;
  text-align: left;
  color: var(--muted);
}

.user-menu a:hover,
.user-menu button:hover {
  background: var(--card-strong);
  color: var(--text);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--card-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, var(--accent)));
  box-shadow: 0 10px 40px -10px rgba(var(--primary-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px -10px rgba(var(--primary-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-discord {
  border-color: transparent;
  background: #5865f2;
  box-shadow: 0 10px 30px -12px rgba(88, 101, 242, 0.9);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  padding: 40px 0 120px;
  perspective: 900px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 28px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px var(--good);
  margin-left: 4px;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  /* background-clip:text only paints inside the box — leave room for descenders (y, g, p) */
  padding: 0.04em 0.04em 0.2em 0;
  margin: -0.04em 0 calc(28px - 0.2em);
  background: linear-gradient(120deg, #fff 0%, #fff 30%, color-mix(in srgb, var(--primary) 70%, #fff) 50%, var(--accent) 70%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleFlow 10s ease-in-out infinite;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 10px 50px rgba(var(--primary-rgb), 0.35));
}

@keyframes titleFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  margin: 0 0 40px;
  white-space: pre-line;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero > * {
  opacity: 0;
  transform: translateY(30px) rotateX(-20deg);
  transform-origin: 50% 100%;
}

body.ready .hero > * {
  animation: heroIn 1.1s var(--ease) forwards;
}

body.ready .hero > :nth-child(2) {
  animation-delay: 0.1s;
}

body.ready .hero > :nth-child(3) {
  animation-delay: 0.22s;
}

body.ready .hero > :nth-child(4) {
  animation-delay: 0.34s;
}

body.ready .hero > :nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px) rotateX(-12deg) scale(0.98);
  transform-origin: 50% 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.grid-3d {
  perspective: 1200px;
}

/* ── Glass card + tilt ────────────────────────────────────── */
.glass {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), rgba(10, 7, 20, 0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--glass)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass)) saturate(140%);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0);
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.tilt.tilting {
  transition: transform 0.08s linear, border-color 0.3s, box-shadow 0.3s;
}

.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tilt:hover::after {
  opacity: 1;
}

.tilt:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 40px 100px -40px rgba(var(--primary-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* ── Shop ─────────────────────────────────────────────────── */
.shop-closed {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
  margin-bottom: 28px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 26px;
  min-height: 100%;
  overflow: hidden;
}

.product::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-rgb, var(--primary-rgb)), 0.45), transparent 70%);
  filter: blur(10px);
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.6s var(--ease);
  pointer-events: none;
}

.product:hover::before {
  opacity: 1;
  transform: scale(1.25);
}

.product[data-cat='boost'] {
  --c-rgb: 244, 114, 182;
}

.product[data-cat='nitro'] {
  --c-rgb: var(--primary-rgb);
}

.product[data-cat='other'] {
  --c-rgb: var(--accent-rgb);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(var(--c-rgb), 0.35), rgba(var(--c-rgb), 0.08));
  border: 1px solid rgba(var(--c-rgb), 0.4);
  box-shadow: 0 10px 30px -10px rgba(var(--c-rgb), 0.8);
}

.product-icon svg {
  width: 30px;
  height: 30px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 20px -6px rgba(var(--primary-rgb), 0.9);
}

.badge.soldout {
  background: rgba(248, 113, 113, 0.2);
  color: var(--bad);
  box-shadow: none;
}

.product h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0;
  line-height: 1.2;
}

.product .duration {
  display: inline-block;
  margin: 6px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--c-rgb));
  filter: brightness(1.25);
}

.product .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.features li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(var(--c-rgb), 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.price .amount {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price .per {
  color: var(--faint);
  font-size: 14px;
}

.shop-note {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  padding: 16px 18px;
  white-space: pre-line;
}

.ltc-dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: #345d9d;
}

/* ── Portfolio ────────────────────────────────────────────── */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.project {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-media {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  margin: 8px 8px 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.5), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(var(--accent-rgb), 0.45), transparent 55%),
    #0d0a18;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project:hover .project-media img {
  transform: scale(1.06);
}

.project-media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.project-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project h3 {
  font-family: var(--display);
  font-size: 21px;
  margin: 0 0 8px;
}

.project p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  white-space: pre-line;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ── About ────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  font-size: 18px;
  color: var(--muted);
  white-space: pre-line;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat {
  padding: 26px 22px;
}

.stat-value {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

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

.faq-q::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-q::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

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

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  white-space: pre-line;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.footer-cta {
  padding: 80px 0 60px;
  text-align: center;
}

.footer-cta h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

/* ── Modal ────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px;
  background: linear-gradient(160deg, rgba(28, 20, 50, 0.92), rgba(12, 9, 24, 0.95));
  animation: modalIn 0.5s var(--ease);
}

.modal-card.wide {
  width: min(680px, 100%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(14deg) translateY(30px) scale(0.96);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}

.modal-title {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 4px;
  padding-right: 44px;
}

.modal-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

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

.field small {
  color: var(--faint);
  font-size: 12px;
}

.input,
textarea.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  border-color: rgba(var(--primary-rgb), 0.7);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
}

textarea.input {
  resize: vertical;
  min-height: 80px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 20px;
}

.qty output {
  min-width: 60px;
  text-align: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  margin: 6px 0 18px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

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

.summary-row.total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.form-error {
  color: var(--bad);
  font-size: 14px;
  margin: -6px 0 14px;
}

/* Order view */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.st-new {
  color: var(--accent);
}

.st-pending,
.st-detected,
.st-review {
  color: var(--warn);
}

.st-paid,
.st-delivered {
  color: var(--good);
}

.st-expired,
.st-cancelled {
  color: var(--faint);
}

.st-detected::before,
.st-pending::before {
  animation: blink 1.2s ease-in-out infinite;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 22px 0;
}

.step {
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.step::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  margin-bottom: 8px;
  transition: background 0.5s;
}

.step.done {
  color: var(--text);
}

.step.done::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
}

.pay-box {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.qr {
  width: 170px;
  height: 170px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 20px 50px -20px rgba(var(--primary-rgb), 0.7);
}

.copy-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.copy-field span {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.copy-row code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copy-row code.big {
  font-size: 18px;
  font-weight: 700;
}

.copy-btn {
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--card-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.notice {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  margin-bottom: 16px;
}

.notice.good {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.07);
}

.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.delivery {
  padding: 16px;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.delivery h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--good);
}

.delivery a {
  color: var(--accent);
  text-decoration: underline;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

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

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.order-row:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: var(--card-strong);
}

.order-row .meta {
  font-size: 12px;
  color: var(--faint);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Toasts ───────────────────────────────────────────────── */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  gap: 10px;
  max-width: calc(100vw - 32px);
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(20, 15, 36, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  animation: toastIn 0.4s var(--ease);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.5);
}

.toast.good {
  border-color: rgba(52, 211, 153, 0.5);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

/* ── Live editor mode (inside the panel preview) ──────────── */
body.editing [data-edit] {
  outline: 1px dashed transparent;
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  transition: outline-color 0.15s;
}

body.editing [data-edit]:hover {
  outline-color: rgba(var(--accent-rgb), 0.7);
}

body.editing [data-edit]:focus {
  outline: 2px solid var(--accent);
  -webkit-text-fill-color: var(--text);
}

body.editing .hero-title:focus {
  -webkit-text-fill-color: #fff;
}

body.editing .flash {
  animation: flash 1.2s ease;
}

@keyframes flash {
  0%,
  100% {
    box-shadow: none;
  }
  30% {
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.7);
  }
}

body.editing .reveal {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  .nav-burger {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 8px;
    border-radius: 16px;
    background: rgba(14, 10, 26, 0.95);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .nav.open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-actions {
    order: 3;
  }

  .user-btn .name {
    display: none;
  }

  .user-btn {
    padding: 4px;
  }

  .btn-login-text {
    display: none;
  }

  section.block {
    padding-top: 90px;
  }

  .pay-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pay-box > div:last-child {
    width: 100%;
  }

  .modal-card {
    padding: 22px 18px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Grid cells: the reveal animation lives on the cell, the 3D tilt on the card. */
.cell {
  display: flex;
}

.cell > * {
  flex: 1;
  min-width: 0;
}

/* ── Order chat ───────────────────────────────────────────── */
.chat {
  margin: 4px 0 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
}

.chat h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 10px;
}

.chat-empty {
  color: var(--faint);
  font-size: 13px;
  padding: 6px 0;
}

.msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
}

.msg.them {
  align-self: flex-start;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.55), rgba(var(--accent-rgb), 0.35));
  border-bottom-right-radius: 4px;
}

.msg-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.msg-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-compose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
}

.row-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.unread {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--text);
  margin-left: auto;
}

.user-btn {
  position: relative;
}

.unread-dot {
  position: absolute;
  top: 2px;
  left: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--accent);
}
