/* ==========================================================================
   OrionsVault.gg — design system
   ========================================================================== */

:root {
  --bg-void: #05070d;
  --bg-navy: #0a0e1a;
  --bg-navy-2: #0d1224;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #eef1fb;
  --text-secondary: #b7bdd6;
  --text-muted: #7c839f;

  --blue: #4d9fff;
  --blue-soft: #8ec2ff;
  --violet: #9b6bff;
  --violet-soft: #c3a8ff;

  --glow-blue: rgba(77, 159, 255, 0.45);
  --glow-violet: rgba(155, 107, 255, 0.45);

  --success: #37d99b;
  --warning: #f5b95c;
  --danger: #ff6b81;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Starfield background canvas, fixed behind everything */
#orion-starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(77, 159, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(155, 107, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-navy) 100%);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #06080f;
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 8px 30px var(--glow-blue);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px rgba(155, 107, 255, 0.18);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px var(--glow-blue);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--panel);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mobile-menu { display: none; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-navy);
  margin-top: 96px;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-col a:hover { color: var(--blue-soft); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer-socials a:hover { border-color: var(--border-strong); color: var(--text-primary); }

.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #06080f;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 40px rgba(77, 159, 255, 0.35);
  border: none;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 48px rgba(155, 107, 255, 0.45); }

/* ==========================================================================
   Glass card
   ========================================================================== */

.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.glass-card.hoverable:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 30px rgba(77, 159, 255, 0.15);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-constellation {
  position: absolute;
  top: 50%;
  right: max(2vw, calc((100vw - 1240px) / 2 + 8px));
  height: 92%;
  max-height: 560px;
  aspect-ratio: 300 / 440;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.hero-constellation svg { width: 100%; height: 100%; overflow: visible; }
.hero-constellation .const-lines { opacity: 0.6; }
.hero-constellation .hc-figure { opacity: 0.62; }
.hero-constellation .hc-outline { fill: #8aa0d8; stroke: #8aa0d8; stroke-width: 2.6; stroke-linejoin: round; }
.hero-constellation .hc-fill { fill: #0c1533; stroke: none; }
.hero-constellation .hc-hatch { fill: url(#hcHatch); stroke: none; }
.hero-constellation .hc-detail { fill: none; stroke: #b4c8f5; stroke-opacity: 0.6; stroke-width: 0.85; stroke-linecap: round; stroke-linejoin: round; }
.hero-constellation .star { transform-box: fill-box; transform-origin: center; animation: orion-twinkle 4.5s ease-in-out infinite; }
.hero-constellation .s2 { animation-delay: -0.6s; }
.hero-constellation .s3 { animation-delay: -1.3s; }
.hero-constellation .s4 { animation-delay: -2.1s; }
.hero-constellation .s5 { animation-delay: -2.8s; }
.hero-constellation .s6 { animation-delay: -3.4s; }
.hero-constellation .s7 { animation-delay: -0.9s; }
.hero-constellation .s8 { animation-delay: -1.8s; }
.hero-constellation .s9 { animation-delay: -3.9s; }
@keyframes orion-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}
@media (max-width: 1100px) {
  .hero-constellation { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-constellation .star { animation: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--blue-soft);
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 780px;
  line-height: 1.08;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--blue-soft), var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.08rem;
  max-width: 560px;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--panel-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
}
.search-bar input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  padding: 10px 0;
}
.search-bar .btn { flex-shrink: 0; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .search-icon { color: var(--text-muted); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--blue-soft), var(--violet-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.9rem; margin: 0; }
.section-head p { margin: 6px 0 0; max-width: 520px; }
.section-link { color: var(--blue-soft); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.section-link:hover { color: var(--blue); }

.eyebrow-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-soft);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* ==========================================================================
   Game grid + cards
   ========================================================================== */

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover { color: var(--text-primary); border-color: var(--border-strong); }
.chip.active {
  color: var(--text-primary);
  border-color: rgba(77, 159, 255, 0.5);
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.16), rgba(155, 107, 255, 0.16));
  box-shadow: 0 0 18px rgba(77, 159, 255, 0.15);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.game-card-glyph {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  color: #06080f;
}
.accent-blue .game-card-glyph { background: linear-gradient(135deg, var(--blue), var(--blue-soft)); box-shadow: 0 0 24px var(--glow-blue); }
.accent-violet .game-card-glyph { background: linear-gradient(135deg, var(--violet), var(--violet-soft)); box-shadow: 0 0 24px var(--glow-violet); }

.game-icon-svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.offer-visual-icon { display: flex; width: 96px; height: 96px; color: rgba(255, 255, 255, 0.85); }
.offer-visual-icon .game-icon-svg { width: 100%; height: 100%; stroke-width: 1.3; }
.offer-visual-icon .game-icon-img { border-radius: 20px; }

.game-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.game-card .category-tag { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.game-card p { font-size: 0.88rem; margin-bottom: 16px; }
.game-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.game-card-footer .price { color: var(--text-primary); font-weight: 600; font-family: var(--font-head); }

/* ==========================================================================
   Trust indicators
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  padding: 26px 22px;
  text-align: left;
}
.trust-item .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.trust-item h3 { font-size: 1rem; margin-bottom: 6px; }
.trust-item p { font-size: 0.86rem; margin: 0; }

/* ==========================================================================
   Badges / ratings / pills
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-secondary);
}
.badge-verified { color: var(--blue-soft); border-color: rgba(77,159,255,0.3); background: rgba(77,159,255,0.08); }
.badge-success { color: var(--success); border-color: rgba(55,217,155,0.3); background: rgba(55,217,155,0.08); }
.badge-warning { color: var(--warning); border-color: rgba(245,185,92,0.3); background: rgba(245,185,92,0.08); }
.badge-danger { color: var(--danger); border-color: rgba(255,107,129,0.3); background: rgba(255,107,129,0.08); }

.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--text-secondary); }
.rating .stars { color: var(--warning); letter-spacing: 1px; }

/* ==========================================================================
   Category page: filters + offer list
   ========================================================================== */

.category-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.category-hero-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.category-hero .game-card-glyph { margin-bottom: 0; }
.crumbs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text-secondary); }

.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0 90px;
  align-items: start;
  min-width: 0;
}
.category-layout > * { min-width: 0; }

.filter-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}
.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 7px 0;
  cursor: pointer;
}
.filter-option input { accent-color: var(--blue); width: 15px; height: 15px; }
.filter-option:hover { color: var(--text-primary); }
.filter-count { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.results-count { font-size: 0.9rem; color: var(--text-muted); }
.sort-select {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
}

.offer-list { display: flex; flex-direction: column; gap: 14px; }
.offer-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
}
.offer-type-chip {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.offer-main h3 { font-size: 1.02rem; margin-bottom: 6px; }
.offer-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); }
.offer-meta .seller-name { color: var(--text-secondary); font-weight: 600; }
.offer-price-block { text-align: right; }
.offer-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.offer-price small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   Offer detail page
   ========================================================================== */

.offer-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 40px 0 100px;
  align-items: start;
}
.offer-visual {
  height: 220px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.offer-detail-panel { padding: 28px; }
.offer-detail-panel h2 { font-size: 1.5rem; }
.spec-list { margin: 20px 0; }
.spec-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-muted); }
.spec-row span:last-child { color: var(--text-primary); font-weight: 500; }

.buy-box { padding: 24px; position: sticky; top: 96px; }
.price-tag {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-soft), var(--violet-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.buy-box .unit { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.buy-box .stock-line { font-size: 0.82rem; color: var(--success); margin: 14px 0; display:flex; align-items:center; gap:6px; }

.seller-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  margin-top: 20px;
}
.seller-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #06080f;
}
.seller-card h4 { margin: 0 0 4px; font-size: 0.98rem; }
.seller-card .seller-meta { font-size: 0.8rem; color: var(--text-muted); }

.guarantee-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.guarantee-strip .icon { color: var(--success); font-size: 1.2rem; }

/* ==========================================================================
   Forms (login / signup / seller)
   ========================================================================== */

.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
}
.auth-card .brand { justify-content: center; margin-bottom: 28px; }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; margin-bottom: 30px; font-size: 0.9rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 7px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  outline: none;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77,159,255,0.15);
}
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; }
.field-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.field-check input { accent-color: var(--blue); }

.form-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-muted); font-size: 0.78rem; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-foot { text-align: center; margin-top: 22px; font-size: 0.88rem; color: var(--text-muted); }
.auth-foot a { color: var(--blue-soft); font-weight: 600; }

.form-error {
  background: rgba(255,107,129,0.1);
  border: 1px solid rgba(255,107,129,0.3);
  color: var(--danger);
  font-size: 0.84rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  background: rgba(55,217,155,0.1);
  border: 1px solid rgba(55,217,155,0.3);
  color: var(--success);
  font-size: 0.84rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  display: none;
}
.form-success.show { display: block; }

/* ==========================================================================
   Become a seller
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card { padding: 26px 22px; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-soft);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.87rem; margin: 0; }

.perk-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0; }
.perk-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.perk-item .icon { color: var(--success); font-size: 1.1rem; margin-top: 1px; }
.perk-item p { margin: 0; font-size: 0.88rem; }
.perk-item strong { display: block; margin-bottom: 3px; font-size: 0.92rem; color: var(--text-primary); }

.cta-banner {
  padding: 56px;
  text-align: center;
  background: linear-gradient(135deg, rgba(77,159,255,0.1), rgba(155,107,255,0.1));
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: 2rem; max-width: 600px; margin: 0 auto 14px; }
.cta-banner p { max-width: 480px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Trust & Safety page
   ========================================================================== */

.safety-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.pillar-card { padding: 28px 24px; }
.pillar-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.pillar-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar-card p { font-size: 0.9rem; margin: 0; }

.process-timeline { display: flex; flex-direction: column; gap: 0; margin: 40px 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-dot {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #06080f;
  box-shadow: 0 0 20px var(--glow-blue);
  flex-shrink: 0;
}
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.9rem; margin: 0; max-width: 600px; }

.faq-item {
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
}
.faq-question { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, margin-top 0.25s ease; font-size: 0.9rem; }
.faq-item.open .faq-answer { max-height: 300px; margin-top: 12px; }
.faq-toggle { transition: transform 0.2s ease; color: var(--text-muted); }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--blue-soft); }

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0 100px;
  align-items: start;
  min-width: 0;
}
.dash-layout > * { min-width: 0;
}
.dash-sidebar { padding: 22px; position: sticky; top: 96px; }
.dash-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.dash-profile .seller-avatar { width: 44px; height: 44px; }
.dash-profile h4 { margin: 0; font-size: 0.95rem; }
.dash-profile span { font-size: 0.78rem; color: var(--text-muted); }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dash-nav a:hover, .dash-nav a.active { background: var(--panel-strong); color: var(--text-primary); }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.dash-stat { padding: 20px; }
.dash-stat span { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.dash-stat strong { font-family: var(--font-head); font-size: 1.6rem; }

.dash-panel { padding: 26px; margin-bottom: 24px; }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-panel-head h3 { margin: 0; font-size: 1.1rem; }

table.orders-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
}
table.orders-table thead,
table.orders-table tbody {
  display: table;
  width: 100%;
  table-layout: auto;
}
table.orders-table th {
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.orders-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  white-space: nowrap;
}
table.orders-table tr:last-child td { border-bottom: none; }

.saved-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.modal-card p { font-size: 0.92rem; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ==========================================================================
   Utility
   ========================================================================== */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-pillars { grid-template-columns: repeat(1, 1fr); }
  .category-layout, .dash-layout { grid-template-columns: 1fr; }
  .filter-panel, .dash-sidebar { position: static; }
  .offer-detail-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions-desktop { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(8, 11, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .mobile-menu a {
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
  }
  .mobile-menu a:hover { color: var(--text-primary); background: var(--panel); }
  .game-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .perk-list { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .saved-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .offer-row { grid-template-columns: auto 1fr; }
  .offer-price-block { grid-column: 1 / -1; text-align: left; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .hero-stats { gap: 24px; }
  .field-row { flex-direction: column; gap: 0; }
  .chat-launcher { padding: 14px; bottom: 16px; right: 16px; }
  .chat-launcher .chat-label { display: none; }
  .chat-launcher .chat-icon { font-size: 1.1rem; }
}
