/* Crowe's Store — design system. Mockup only; all data is fictional. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/oxanium.woff2") format("woff2");
}

:root {
  --bg: #0a0e17;
  --bg-2: #0c121e;
  --surface: #121826;
  --surface-2: #1a2235;
  --surface-3: #222c44;
  --blue: #1e90ff;
  --blue-deep: #0d4f99;
  --cyan: #00e5ff;
  --silver: #c9d1dc;
  --white: #ffffff;
  --heading: #f5f8fc;
  --muted: #6b7a90;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f5b942;
  --gold: #e8c36a;
  --line: rgba(30, 144, 255, 0.16);
  --line-soft: rgba(201, 209, 220, 0.08);
  --text: var(--silver);
  --font-display: "Oxanium", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --banner-h: 36px;
  --sidebar: 248px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background: url("assets/noise.png") repeat;
  mix-blend-mode: overlay;
}

/* Typography */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--heading);
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-weight: 700;
}
.display {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(40px, 5.4vw, 74px);
  letter-spacing: 0.03em;
}
.display .line-accent {
  display: block;
  background: linear-gradient(90deg, #7ec8ff 0%, var(--cyan) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.muted { color: var(--muted); }
.lead { font-size: 16px; color: var(--silver); max-width: 42ch; }
.mono { font-variant-numeric: tabular-nums; }

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.wrap-wide {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

/* Sample banner */
.sample-banner {
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(90deg, #07101d, #0c1a33 40%, #07101d);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ea0b8;
}
.sample-banner strong { color: var(--cyan); font-weight: 700; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(22px) saturate(1.35);
  background: rgba(10, 14, 23, 0.72);
  border-bottom: 1px solid rgba(30, 144, 255, 0.14);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.05), 0 12px 40px rgba(0, 0, 0, 0.25);
}
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1280px, calc(100% - 48px));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.55));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--heading);
  text-transform: uppercase;
}
.brand-text .sub {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--blue);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a, .nav-link {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover, .nav-link:hover { color: var(--heading); background: rgba(30, 144, 255, 0.08); }
.nav a.active, .nav-link.active { color: var(--heading); }
.nav a.active::after, .nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background: rgba(26, 34, 53, 0.6);
  color: var(--silver);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover {
  color: var(--heading);
  border-color: rgba(30, 144, 255, 0.45);
  box-shadow: 0 0 18px rgba(30, 144, 255, 0.2);
}
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--cyan);
  color: #041018;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4aa6ff 0%, #1e90ff 42%, #1574d4 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 8px 28px rgba(30, 144, 255, 0.38);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 10px 34px rgba(30,144,255,0.5); }
.btn-ghost {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.16);
}
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #f87171, #ef4444);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 20px rgba(239,68,68,0.28);
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 11px; border-radius: 9px; }
.btn-block { width: 100%; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  width: fit-content;
  flex: 0 0 auto;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-cyan { background: rgba(0, 229, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.28); }
.badge-blue { background: rgba(30, 144, 255, 0.14); color: #8cc5ff; border: 1px solid rgba(30, 144, 255, 0.28); }
.badge-gold { background: rgba(232, 195, 106, 0.12); color: var(--gold); border: 1px solid rgba(232, 195, 106, 0.3); }
.badge-green { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.28); }
.badge-amber { background: rgba(245, 185, 66, 0.12); color: var(--warning); border: 1px solid rgba(245, 185, 66, 0.28); }
.badge-red { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.28); }
.badge-mute { background: rgba(107, 122, 144, 0.12); color: #93a0b4; border: 1px solid rgba(107, 122, 144, 0.25); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.hero-glow-a {
  width: 720px; height: 720px;
  right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.28), rgba(0, 229, 255, 0.06) 45%, transparent 70%);
}
.hero-glow-b {
  width: 520px; height: 420px;
  left: -120px; bottom: 0;
  background: radial-gradient(circle, rgba(0, 80, 160, 0.35), transparent 70%);
}
.hero-horizon {
  position: absolute;
  left: -15%; right: -15%;
  bottom: -28%;
  height: 52%;
  background-image:
    linear-gradient(rgba(30, 144, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 144, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(500px) rotateX(62deg);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, transparent 85%);
  opacity: 0.45;
}
.hero-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 3px,
    rgba(0, 0, 0, 0.08) 3px, rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero-copy .eyebrow::before,
.hero-copy .eyebrow::after { content: ""; height: 1px; width: 28px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hero-copy .eyebrow::after { background: linear-gradient(90deg, transparent, var(--cyan)); width: 0; }
.hero-copy .display { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 32px; font-size: 17px; line-height: 1.65; color: #b7c3d3; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--heading);
}
.online-pill small {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.hero-orb {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.28), rgba(0, 229, 255, 0.08) 40%, transparent 68%);
  filter: blur(8px);
  animation: orb 8s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(30, 144, 255, 0.18);
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.08), inset 0 0 40px rgba(0, 229, 255, 0.04);
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.16);
}
.hero-logo {
  position: relative;
  width: min(100%, 480px);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(30, 144, 255, 0.35));
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes orb {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.stat {
  background: rgba(18, 24, 38, 0.72);
  padding: 20px 24px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--heading);
  letter-spacing: 0.04em;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */
.section { padding: 80px 0; position: relative; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head p { color: var(--muted); font-size: 14px; max-width: 46ch; margin-top: 8px; }

/* Category tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.tab {
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: 0.2s var(--ease);
}
.tab:hover { color: var(--heading); background: rgba(30, 144, 255, 0.08); }
.tab.active {
  color: var(--heading);
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.28), rgba(30, 144, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.35), 0 6px 18px rgba(30, 144, 255, 0.15);
}

/* Product grid / cards */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%),
    linear-gradient(180deg, #1a2235 0%, #121826 100%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 144, 255, 0.45);
  box-shadow:
    0 1px 0 rgba(0, 229, 255, 0.1) inset,
    0 0 0 1px rgba(30, 144, 255, 0.12),
    0 28px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(30, 144, 255, 0.12);
}
.card-art {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 80%, rgba(30, 144, 255, 0.18), transparent 60%), #0b101b;
}
.card-art svg { width: 100%; height: 100%; display: block; }
.card-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(to top, #121826, transparent);
  pointer-events: none;
}
.card:hover .card-art svg { transform: scale(1.04); }
.card-art svg { transition: transform 0.5s var(--ease); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
}
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--heading);
  letter-spacing: 0.02em;
}
.price small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }
.card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(30, 144, 255, 0.28);
  background:
    linear-gradient(120deg, rgba(30, 144, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #151c2d, #0e1420);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.05) inset, 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 80px rgba(30, 144, 255, 0.08);
}
.featured-art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(30, 144, 255, 0.32), transparent 58%),
    radial-gradient(ellipse at 80% 85%, rgba(0, 229, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #10182a 0%, #0a0e17 100%);
}
.featured-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/noise.png") repeat;
  opacity: 0.04;
  pointer-events: none;
}
.featured-art::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(30, 144, 255, 0.18);
  box-shadow: 0 0 60px rgba(30, 144, 255, 0.12), inset 0 0 40px rgba(0, 229, 255, 0.04);
  pointer-events: none;
}
.featured-art img {
  position: relative;
  z-index: 1;
  width: min(80%, 400px);
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) drop-shadow(0 0 24px rgba(30,144,255,0.4));
}
.featured-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { margin: 12px 0 14px; font-size: 36px; }
.featured-body .lead { margin-bottom: 20px; }
.included { display: grid; gap: 8px; margin: 0 0 28px; }
.included li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--silver);
}
.included li svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.featured-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.featured-cta .price { font-size: 32px; }

/* Ticker */
.ticker-wrap {
  border-block: 1px solid var(--line);
  background: rgba(18, 24, 38, 0.65);
  overflow: hidden;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
}
.ticker {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 13px;
  color: var(--silver);
  border-right: 1px solid var(--line-soft);
}
.ticker-item b { color: var(--heading); font-weight: 600; }
.ticker-item .when { color: var(--muted); font-size: 12px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Footer */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0c111c, #080b12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 13.5px; max-width: 32ch; }
.footer-col h3 { margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--silver);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}
.pay-row { display: flex; gap: 8px; align-items: center; }
.pay-chip {
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: rgba(26, 34, 53, 0.6);
  display: grid;
  place-items: center;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Login modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}
.modal.open { display: grid; }
.login-card {
  width: min(420px, 100%);
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, #161d2e, #101622);
  border: 1px solid rgba(30, 144, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(30,144,255,0.12);
  text-align: center;
}
.login-card img.login-logo { width: 200px; margin: 0 auto 8px; filter: drop-shadow(0 0 20px rgba(30,144,255,0.4)); }
.login-card h2 { margin: 4px 0 8px; }
.login-card p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.field { text-align: left; margin-bottom: 12px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 23, 0.7);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: rgba(30, 144, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}
.modal-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: var(--silver);
}
.login-card { position: relative; }

/* App shell (client / admin) */
body.app { display: flex; flex-direction: column; min-height: 100vh; }
.app-frame {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--banner-h));
  position: relative;
  background: linear-gradient(180deg, #101624, #0c111c);
}
.app-frame::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  background: linear-gradient(180deg, #101624, #0c111c);
  border-right: 1px solid var(--line);
  pointer-events: none;
}
.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: transparent;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  align-self: flex-start;
  z-index: 1;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.sidebar-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(30,144,255,0.5)); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label {
  margin: 16px 10px 6px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: 0.2s var(--ease);
}
.side-link svg { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.side-link:hover { background: rgba(30, 144, 255, 0.08); color: var(--heading); }
.side-link.active {
  background: linear-gradient(90deg, rgba(30, 144, 255, 0.2), rgba(30, 144, 255, 0.06));
  color: var(--heading);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.side-link.active svg { color: var(--cyan); opacity: 1; }
.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-top: 1px solid var(--line-soft);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0a4a8c);
  box-shadow: 0 0 0 2px rgba(30,144,255,0.25);
  flex-shrink: 0;
}
.sidebar-user .who { font-size: 13px; color: var(--heading); font-weight: 600; }
.sidebar-user .role { font-size: 11px; color: var(--muted); }

.app-main {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 48px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(30, 144, 255, 0.07), transparent 40%),
    var(--bg);
}
.app-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.app-top h1 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.app-top .crumb {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* KPI / overview cards */
.kpi-grid, .overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi, .panel {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    linear-gradient(180deg, #161d2e, #121826);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.25);
}
.kpi { padding: 18px 20px 16px; position: relative; overflow: hidden; }
.kpi::before {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  right: -30px; top: -40px;
  background: radial-gradient(circle, rgba(30,144,255,0.16), transparent 70%);
  pointer-events: none;
}
.kpi .label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.kpi .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--heading);
  letter-spacing: 0.03em;
  line-height: 1;
}
.kpi .delta { margin-top: 8px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.delta.up { color: #4ade80; }
.delta.down { color: #f87171; }
.kpi .hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

.panel { padding: 20px 22px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.panel-head h2, .panel-head h3 { font-size: 14px; letter-spacing: 0.12em; }

.split-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.split-2b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { font-size: 13.5px; }
table.data th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
table.data td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--silver);
  vertical-align: middle;
}
table.data tr:hover td { background: rgba(30, 144, 255, 0.04); }
table.data .name { color: var(--heading); font-weight: 600; }
.actions { display: flex; gap: 6px; }
.linkish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(26, 34, 53, 0.5);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  transition: 0.2s;
  white-space: nowrap;
}
.linkish svg { width: 13px; height: 13px; flex-shrink: 0; }
.actions { flex-wrap: nowrap; }
table.data td, table.data th { white-space: nowrap; }
table.data td.wrap { white-space: normal; }
.linkish:hover { border-color: rgba(30,144,255,0.4); color: var(--heading); }
.linkish.danger:hover { border-color: rgba(239,68,68,0.5); color: #f87171; }

/* Linked accounts / perks */
.account-list, .perk-list, .ticket-list, .log-list { display: grid; gap: 10px; }
.account, .perk, .ticket, .log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 14, 23, 0.45);
  border: 1px solid var(--line-soft);
}
.account .ico, .perk .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(30, 144, 255, 0.12);
  color: var(--cyan);
  flex-shrink: 0;
}
.account .ico svg, .perk .ico svg { width: 18px; height: 18px; }
.account .meta, .perk .meta { flex: 1; min-width: 0; }
.account .meta b, .perk .meta b, .ticket b { display: block; color: var(--heading); font-size: 13.5px; }
.account .meta span, .perk .meta span, .ticket span { font-size: 12px; color: var(--muted); }

/* Chart */
.chart { width: 100%; height: 240px; display: block; }
.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 95;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #151c2d;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  color: var(--heading);
  font-size: 13px;
}
.toast.show { display: flex; animation: fadeup 0.35s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* Script shop additions */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fw, .ver {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fw-qs { color: var(--cyan); background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.28); }
.fw-qb { color: #8cc5ff; background: rgba(30, 144, 255, 0.12); border: 1px solid rgba(30, 144, 255, 0.28); }
.fw-esx { color: #c9d1dc; background: rgba(201, 209, 220, 0.08); border: 1px solid rgba(201, 209, 220, 0.18); }
.ver { color: var(--muted); background: rgba(107, 122, 144, 0.1); border: 1px solid rgba(107, 122, 144, 0.2); padding: 0 8px; }
.price.free { color: var(--cyan); font-size: 20px; }
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 0 10px; }
.card-desc {
  min-height: 4.35em;
  max-height: 4.35em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.changelog {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.changelog li {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.changelog li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.dl-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 14, 23, 0.45);
  border: 1px solid var(--line-soft);
}
.dl-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl-top .meta { flex: 1; min-width: 0; }
.dl-top b { display: block; color: var(--heading); font-size: 13.5px; }
.dl-top span { font-size: 12px; color: var(--muted); }

.code-chip {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 6px;
  padding: 3px 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid, .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .featured, .split-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 380px; }
  .hero-logo { width: 360px; }
  .featured-art { min-height: 280px; }
  .sidebar { width: 220px; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .wrap, .wrap-wide, .site-header .wrap-wide { width: calc(100% - 32px); }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-h) + var(--banner-h));
    left: 0; right: 0;
    padding: 12px;
    background: rgba(10, 14, 23, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: grid; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 56px; min-height: 0; }
  .display { font-size: 40px; }
  .app-frame { flex-direction: column; }
  .app-frame::before { display: none; }
  .sidebar { width: 100%; height: auto; max-height: none; position: relative; flex-direction: row; flex-wrap: wrap; padding: 12px; background: linear-gradient(180deg, #101624, #0c111c); }
  .sidebar-user { margin-top: 0; border-top: 0; margin-left: auto; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .app-main { padding: 20px 16px 36px; }
  .split-2b { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-products, .kpi-grid, .overview-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* Live catalog / cart */
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-art.has-photo {
  height: auto;
  aspect-ratio: 3 / 2;
  background: #05070c;
}
.card-art.has-photo::after { display: none; }
.pkg-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070c;
}
.catalog-empty, .catalog-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: inherit;
  gap: 20px;
  grid-column: 1 / -1;
}
.grid-products > .skeleton-grid { display: contents; }
.skeleton-card {
  min-height: 360px;
  pointer-events: none;
  background: linear-gradient(90deg, #121826 0%, #1a2235 50%, #121826 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(5, 8, 14, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cart-overlay.open { opacity: 1; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 89;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #161d2e, #101622);
  border-left: 1px solid rgba(30, 144, 255, 0.22);
  box-shadow: -24px 0 60px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-head h2 { font-size: 16px; letter-spacing: 0.14em; }
.cart-body { flex: 1; overflow: auto; padding: 16px 22px; }
.cart-empty { color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-line img {
  width: 64px;
  height: 44px;
  object-fit: contain;
  background: #05070c;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
.cart-line-meta b { display: block; color: var(--heading); font-size: 13px; }
.cart-line-meta span { font-size: 12px; color: var(--muted); }
.cart-foot {
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.cart-totals { display: grid; gap: 6px; }
.cart-totals div { display: flex; justify-content: space-between; font-size: 13px; }
.cart-totals .cart-total { color: var(--heading); font-size: 16px; margin-top: 4px; }
.cart-coupon { display: flex; gap: 8px; }
.cart-coupon input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 23, 0.7);
  outline: none;
}
.cart-coupon input:focus { border-color: rgba(30,144,255,0.55); }
.cart-note { font-size: 11px; line-height: 1.45; }
.cart-coupon-applied { color: var(--cyan); font-size: 12px; }
.nav a.is-user { color: var(--cyan); text-transform: none; letter-spacing: 0.04em; }
.cart-count[hidden] { display: none !important; }
.preview-card { text-align: left; width: min(520px, 100%); }
.preview-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #05070c;
  border-radius: 12px;
  margin-bottom: 16px;
}
.preview-desc { color: var(--silver); margin: 8px 0 20px; }
.creator-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid rgba(30, 144, 255, 0.28);
  background: linear-gradient(90deg, rgba(30,144,255,0.14), rgba(0,229,255,0.05));
}
.creator-callout p { margin: 0; color: var(--silver); font-size: 14px; max-width: 60ch; }
.keymaster-panel .lead { max-width: none; margin: 8px 0 16px; }
@media (max-width: 1100px) {
  .grid-products.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-products.cols-3 { grid-template-columns: 1fr; }
  .creator-callout { flex-direction: column; align-items: flex-start; }
}

