/* ============================================
   SIMADDA PREMIUM GAMING MARKETPLACE
   Global Design System — Obsidian Kinetic
   ============================================ */

/* Text fonts are self-hosted via assets/css/fonts.css (linked from header).
   Material Symbols load async from Google Fonts (narrow axes) to avoid a ~1MB local icon font. */

/* ── CSS Custom Properties ── */
:root {
  /* Backgrounds */
  --bg-primary:   #050505;
  --bg-secondary: #111111;
  --bg-card:      #171717;
  --bg-input:     #0D0D0D;

  /* Accents */
  --gold:         #D4AF37;
  --gold-dim:     #B8972E;
  --gold-glow:    rgba(212, 175, 55, 0.4);
  --red:          #C1121F;
  --orange:       #FF7A00;

  /* Text */
  --text-primary:  #EAE1D4;
  --text-muted:    #D0C5AF;
  --text-faint:    #99907C;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.08);
  --border-gold:   rgba(212,175,55,0.3);
  --border-gold-strong: rgba(212,175,55,0.7);

  /* Spacing */
  --gutter: 24px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --max-w: 1440px;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  /* Base black canvas + large faded gold geometric squares (first layer).
     Opacity is intentionally subtle but clearly readable so the grid reads as texture. */
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.085) 1px, transparent 1px),
    linear-gradient(rgba(212, 175, 55, 0.14) 2px, transparent 2px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.14) 2px, transparent 2px),
    radial-gradient(ellipse at 50% 0%, rgba(40, 32, 12, 0.7) 0%, var(--bg-primary) 72%);
  background-size:
    96px 96px,
    96px 96px,
    192px 192px,
    192px 192px,
    auto;
  background-position: 0 0, 0 0, 0 0, 0 0, center top;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Shared patterned black layer for full-bleed sections that used to be solid black. */
.site-canvas-bg {
  background-color: rgba(5, 5, 5, 0.82);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(212, 175, 55, 0.15) 2px, transparent 2px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.15) 2px, transparent 2px);
  background-size: 96px 96px, 96px 96px, 192px 192px, 192px 192px;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
/* Lock every text-entry control to black bg + white typed text.
   Tailwind forms (CDN) can otherwise paint white fields while light text inherits. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not([type="color"]),
textarea,
select {
  font-family: inherit;
  background-color: #000000;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  color-scheme: dark;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not([type="color"])::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
}
select option {
  background-color: #000000;
  color: #ffffff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Typography ── */
.font-display  { font-family: 'Montserrat', sans-serif; font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.font-headline { font-family: 'Montserrat', sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; }
.font-subhead  { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.font-body     { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.6; }
.font-small    { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 400; line-height: 1.5; }
.font-label    { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; }
.font-mono     { font-family: 'JetBrains Mono', monospace; }
/* Last-word accent — matches Gaming News / homepage section titles */
.title-accent {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── Glass Components ── */
.glass {
  background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}
.glass-heavy {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
}
.glass-gold {
  background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #050505;
  box-shadow: 0 4px 15px rgba(212,175,55,0.2);
}
.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(212,175,55,0.5);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.5);
}
.btn-secondary:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.2);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}
.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, #8B0D16 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(193,18,31,0.3);
}
.btn-red:hover {
  box-shadow: 0 8px 25px rgba(193,18,31,0.5);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 40px; font-size: 12px; }
.btn-sm { padding: 8px 16px; font-size: 10px; }

/* Homepage PS5 Spotlight CTA — keep gold button visible against inherit link styles */
a.ps5-spotlight-cta.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%) !important;
  color: #050505 !important;
  box-shadow: 0 4px 15px rgba(212,175,55,0.2);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
a.ps5-spotlight-cta.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(212,175,55,0.5);
  transform: translateY(-2px);
  color: #050505 !important;
}
a.ps5-spotlight-cta .material-symbols-outlined {
  color: #050505 !important;
  font-size: 20px;
}
.ps5-spotlight-features {
  margin-top: 48px;
}

/* Locked Gaming Assistance console — industrial neon frame matching design reference */
.ps5-spotlight-visual {
  position: relative;
}
.ps5-spotlight-card {
  --ps5-led: 30, 144, 255;
  --ps5-led-soft: 90, 167, 255;
  position: relative !important;
  background:
    linear-gradient(160deg, #2a2e36 0%, #14161c 28%, #0a0b0e 62%, #050607 100%) !important;
  border: 2px solid rgba(70, 82, 104, 0.9) !important;
  border-radius: 22px !important;
  padding: 36px 28px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow:
    0 0 0 1px rgba(var(--ps5-led), 0.55),
    0 0 0 5px #0c0d10,
    0 0 0 6px rgba(var(--ps5-led), 0.45),
    0 0 28px rgba(var(--ps5-led), 0.35),
    0 0 60px rgba(var(--ps5-led), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 8px rgba(0, 0, 0, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.7) !important;
  gap: 0 !important;
  overflow: visible !important;
  min-height: 420px !important;
}
.ps5-spotlight-card.ps5-led--yellow {
  --ps5-led: 240, 200, 74;
  --ps5-led-soft: 255, 220, 100;
}
.ps5-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ps5-led-soft), 0.28);
  box-shadow:
    0 0 24px rgba(var(--ps5-led), 0.12) inset,
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 0;
}
.ps5-spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.35) 100%);
  opacity: 0.9;
}
.ps5-spotlight-frame-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 30% at 50% 8%, rgba(var(--ps5-led), 0.42), transparent 72%),
    radial-gradient(ellipse 60% 26% at 50% 100%, rgba(var(--ps5-led), 0.3), transparent 70%);
  opacity: 0.95;
  z-index: 0;
}
/* Corner vent plates with diagonal LED slots */
.ps5-console-corner {
  position: absolute;
  width: 42px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(160deg, #1a1d24 0%, #0b0c10 100%);
  border: 1px solid rgba(90, 100, 120, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 10px rgba(0,0,0,0.5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 6px 5px;
  align-content: center;
}
.ps5-console-corner--tl { top: 14px; left: 16px; }
.ps5-console-corner--tr { top: 14px; right: 16px; }
.ps5-console-corner span {
  display: block;
  width: 100%;
  height: 11px;
  border-radius: 1px;
  transform: skewX(-28deg);
  background: rgba(var(--ps5-led), 0.95);
  box-shadow: 0 0 6px rgba(var(--ps5-led), 0.95), 0 0 12px rgba(var(--ps5-led), 0.55);
}
.ps5-led-strip {
  position: absolute;
  top: 48px;
  bottom: 48px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--ps5-led), 0.4) 10%,
    rgba(var(--ps5-led), 1) 50%,
    rgba(var(--ps5-led), 0.4) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(var(--ps5-led), 0.9),
    0 0 22px rgba(var(--ps5-led), 0.55);
  z-index: 2;
  pointer-events: none;
}
.ps5-led-strip--left { left: 12px; }
.ps5-led-strip--right { right: 12px; }
.ps5-led-dash-row {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
  pointer-events: none;
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #14161c 0%, #08090c 100%);
  border: 1px solid rgba(80, 90, 110, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.ps5-led-dash-row i {
  display: block;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: rgba(var(--ps5-led), 0.98);
  box-shadow: 0 0 8px rgba(var(--ps5-led), 0.95);
}
.ps5-spotlight-card.ps5-led-anim .ps5-led-strip,
.ps5-spotlight-card.ps5-led-anim .ps5-led-dash-row i,
.ps5-spotlight-card.ps5-led-anim .ps5-console-corner span,
.ps5-spotlight-card.ps5-led-anim .ps5-spotlight-frame-glow,
.ps5-spotlight-card.ps5-led-anim .ps5-duo-aura {
  animation: ps5LedPulse 2.4s ease-in-out infinite;
}
.ps5-spotlight-card.ps5-led-anim .ps5-led-strip--right {
  animation-delay: 0.35s;
}
.ps5-spotlight-card.ps5-led-anim .ps5-led-dash-row i:nth-child(2) {
  animation-delay: 0.2s;
}
.ps5-spotlight-card.ps5-led-anim .ps5-led-dash-row i:nth-child(3) {
  animation-delay: 0.4s;
}
.ps5-spotlight-card.ps5-led-anim .ps5-console-corner--tr span {
  animation-delay: 0.25s;
}
@keyframes ps5LedPulse {
  0%, 100% { opacity: 0.55; filter: brightness(0.85); }
  50% { opacity: 1; filter: brightness(1.25); }
}
/* CSS 3D PC + console duo — minimal float, no WebGL dependency */
.ps5-spotlight-visual-icon {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 4px auto 8px !important;
  flex-shrink: 0;
  z-index: 2;
  width: 220px;
  height: 150px;
  perspective: 520px;
}
.ps5-duo-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ps5-duo-aura {
  position: absolute;
  inset: -20px -28px 8px;
  background: radial-gradient(ellipse at 50% 55%, rgba(var(--ps5-led), 0.42) 0%, rgba(var(--ps5-led), 0.1) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.ps5-duo-stage {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 120px;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
  animation: ps5DuoFloat 5.5s ease-in-out infinite;
}
@keyframes ps5DuoFloat {
  0%, 100% { transform: rotateX(12deg) rotateY(-18deg) translateY(0); }
  50% { transform: rotateX(10deg) rotateY(-12deg) translateY(-5px); }
}
.ps5-duo-floor {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 150px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--ps5-led), 0.35) 0%, transparent 70%);
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}
/* Gaming PC tower */
.ps5-duo-pc {
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 52px;
  height: 88px;
  transform-style: preserve-3d;
  transform: translateZ(8px);
}
.ps5-duo-pc-front,
.ps5-duo-pc-side,
.ps5-duo-pc-top {
  position: absolute;
  display: block;
  box-sizing: border-box;
}
.ps5-duo-pc-front {
  inset: 0;
  width: 42px;
  height: 88px;
  border-radius: 4px 4px 3px 3px;
  background:
    linear-gradient(160deg, #2a2e36 0%, #12141a 40%, #0a0b0e 100%);
  border: 1px solid rgba(180, 190, 210, 0.35);
  box-shadow:
    0 0 16px rgba(var(--ps5-led), 0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  z-index: 2;
}
.ps5-duo-pc-glass {
  position: absolute;
  top: 10px;
  left: 6px;
  right: 6px;
  height: 42px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(120, 200, 255, 0.18) 0%, rgba(40, 60, 90, 0.35) 50%, rgba(10, 14, 22, 0.7) 100%);
  border: 1px solid rgba(var(--ps5-led-soft), 0.35);
  box-shadow: inset 0 0 12px rgba(var(--ps5-led), 0.25);
}
.ps5-duo-pc-vent {
  position: absolute;
  bottom: 14px;
  left: 8px;
  right: 8px;
  height: 16px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.08) 0 2px,
    transparent 2px 5px
  );
  opacity: 0.85;
}
.ps5-duo-pc-led {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 10px;
  height: 3px;
  margin-left: -5px;
  border-radius: 2px;
  background: rgba(var(--ps5-led), 1);
  box-shadow: 0 0 8px rgba(var(--ps5-led), 0.95), 0 0 16px rgba(var(--ps5-led), 0.5);
  animation: ps5DuoLedBlink 2.2s ease-in-out infinite;
}
.ps5-duo-pc-side {
  top: 0;
  left: 42px;
  width: 16px;
  height: 88px;
  background: linear-gradient(180deg, #1a1d24 0%, #08090c 100%);
  border: 1px solid rgba(90, 100, 120, 0.4);
  border-left: none;
  transform: skewY(-8deg);
  transform-origin: left top;
  z-index: 1;
}
.ps5-duo-pc-top {
  top: -8px;
  left: 2px;
  width: 42px;
  height: 10px;
  background: linear-gradient(90deg, #3a404c 0%, #1c2028 100%);
  border: 1px solid rgba(140, 150, 170, 0.35);
  border-radius: 2px 4px 0 0;
  transform: skewX(-28deg);
  z-index: 3;
}
/* Slim console silhouette */
.ps5-duo-console {
  position: absolute;
  right: 22px;
  bottom: 16px;
  width: 36px;
  height: 96px;
  transform-style: preserve-3d;
  transform: translateZ(16px) rotateY(-8deg);
}
.ps5-duo-console-body {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 14px;
  height: 88px;
  border-radius: 3px;
  background: linear-gradient(180deg, #1a1a1e 0%, #0a0a0c 100%);
  border: 1px solid rgba(160, 170, 185, 0.4);
  box-shadow: 0 0 14px rgba(var(--ps5-led), 0.3);
  z-index: 2;
}
.ps5-duo-console-wing {
  position: absolute;
  top: 0;
  width: 18px;
  height: 96px;
  border-radius: 40% 10% 10% 40% / 8% 4% 4% 8%;
  background: linear-gradient(180deg, #f4f6f8 0%, #c5ccd6 45%, #9aa3b0 100%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 12px rgba(var(--ps5-led), 0.25);
  z-index: 1;
}
.ps5-duo-console-wing--l {
  left: 0;
  transform: skewY(-2deg);
  border-radius: 8px 2px 2px 48% / 6px 2px 2px 12%;
}
.ps5-duo-console-wing--r {
  right: 0;
  left: auto;
  transform: skewY(2deg);
  border-radius: 2px 8px 48% 2px / 2px 6px 12% 2px;
  background: linear-gradient(180deg, #e8ebf0 0%, #aeb6c2 50%, #8b94a2 100%);
}
.ps5-duo-console-light {
  position: absolute;
  left: 12px;
  top: 28px;
  width: 10px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(var(--ps5-led), 0.95), transparent);
  box-shadow: 0 0 10px rgba(var(--ps5-led), 0.9), 0 0 20px rgba(var(--ps5-led), 0.45);
  z-index: 3;
  animation: ps5DuoLedBlink 2.8s ease-in-out infinite 0.4s;
}
@keyframes ps5DuoLedBlink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ps5-duo-stage,
  .ps5-duo-pc-led,
  .ps5-duo-console-light,
  .ps5-game-tile-dot {
    animation: none !important;
  }
}
.ps5-spotlight-platform {
  display: block !important;
  width: 100%;
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  text-shadow: 0 0 22px rgba(212,175,55,0.5), 0 2px 0 rgba(0,0,0,0.45);
  margin: 2px 0 10px !important;
  z-index: 2;
  line-height: 1.15 !important;
  position: relative;
}
.ps5-spotlight-genres {
  display: block !important;
  width: 100% !important;
  font-family: 'Montserrat', sans-serif !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  margin: 0 0 24px !important;
  z-index: 2;
  letter-spacing: 0.03em;
  position: relative;
}
.ps5-spotlight-genres-text {
  color: var(--text-primary) !important;
}
.ps5-spotlight-game-tiles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  z-index: 2;
  margin-top: auto;
  position: relative;
  padding-bottom: 8px;
}
.ps5-game-tile {
  --tile-accent: 234, 179, 8;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(18,20,26,0.95) 0%, rgba(6,7,10,0.98) 100%) !important;
  border: 1.5px solid rgba(var(--tile-accent), 0.9) !important;
  box-shadow: 0 0 16px rgba(var(--tile-accent), 0.45), inset 0 0 12px rgba(var(--tile-accent), 0.16) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.ps5-game-tile-dot {
  flex: 0 0 8px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgb(var(--tile-accent)) !important;
  box-shadow: 0 0 8px rgba(var(--tile-accent), 0.95), 0 0 14px rgba(var(--tile-accent), 0.55) !important;
  animation: ps5TileDotBlink 1.6s ease-in-out infinite !important;
}
@keyframes ps5TileDotBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.ps5-game-tile-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}
.ps5-game-tile-title,
.ps5-game-tile-sub {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-family: 'Montserrat', sans-serif !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.02em;
  text-align: center !important;
}
.ps5-game-tile-sub {
  margin-top: 2px;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  opacity: 1;
}
.ps5-game-tile--purple { --tile-accent: 192, 38, 211; }
.ps5-game-tile--red { --tile-accent: 239, 68, 68; }
.ps5-game-tile--blue { --tile-accent: 59, 130, 246; }
.ps5-game-tile--gold { --tile-accent: 234, 179, 8; }
.ps5-spotlight-title .assist-gold,
.ps5-spotlight-title [data-assist-gold] {
  color: var(--gold) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.1);
  transform: translateY(-4px);
}
.card-featured {
  border: 1px solid var(--gold);
  animation: goldPulse 3s ease-in-out infinite;
}

/* ── Badges ── */
.badge-blue    { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.4); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.badge-gold    { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid rgba(212,175,55,0.4); }
.badge-red     { background: rgba(193,18,31,0.15); color: #ff6b6b; border: 1px solid rgba(193,18,31,0.4); }
.badge-orange  { background: rgba(255,122,0,0.15); color: var(--orange); border: 1px solid rgba(255,122,0,0.4); }
.badge-grey    { background: rgba(255,255,255,0.05); color: var(--text-faint); border: 1px solid var(--border-subtle); }
.badge-green   { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.form-input, .form-select, .form-textarea {
  background: #000000;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  color-scheme: dark;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
}

/* ── Autofill/suggestion override (centralized) ──
   Browsers (Chrome/Edge/Safari) paint their own background on
   autofilled/suggested fields and can leave light text on a light
   background. Force black boxes + white typed text in all autofill states. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
  box-shadow: 0 0 0px 1000px #000000 inset !important;
  caret-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}
input:autofill, textarea:autofill, select:autofill {
  color: #ffffff;
  background: #000000;
}
input, textarea, select { caret-color: #ffffff; }

/* ── Section Utilities ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--margin-desktop); }
@media (max-width: 768px) { .container { padding: 0 var(--margin-mobile); } }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.text-gold { color: var(--gold); }
.text-red  { color: var(--red); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }

/* ── Data Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.data-table th {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.02);
}
.data-table tr:hover td {
  background: rgba(255,255,255,0.01);
}

@media (max-width: 768px) {
  .data-table thead { display: none; }
  .data-table tr {
    display: block;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-card);
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding: 10px 0;
  }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
  }
}

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}
.divider-gold {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}

/* ── Grid Utilities ── */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gutter); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── CTA Grid Utility ── */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gutter);
  align-items: center;
}
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 24px;
  }
  .cta-grid .reveal {
    align-items: center !important;
    text-align: center !important;
  }
}

/* ── Animations ── */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(212,175,55,0.2), 0 0 20px rgba(212,175,55,0.05); }
  50%       { box-shadow: 0 0 20px rgba(212,175,55,0.5), 0 0 40px rgba(212,175,55,0.2); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes counterUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scanLine {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 3px); opacity: 0; }
}
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Shared form submit loading (SimaddaForm) ── */
.simadda-spinner {
  width: 1.05em;
  height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.15em;
  animation: spin 0.7s linear infinite;
}
button.is-loading,
.btn.is-loading,
.verify-btn.is-loading {
  pointer-events: none !important;
  cursor: wait !important;
  opacity: 0.88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.simadda-btn-load-label {
  font-size: inherit;
  letter-spacing: 0.02em;
}
.simadda-form-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  padding: 24px;
}
.simadda-form-overlay.active { display: flex; }
.simadda-form-overlay .simadda-spinner {
  width: 28px;
  height: 28px;
  border-width: 2.5px;
  color: var(--gold, #D4AF37);
}
.simadda-form-overlay-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #D0C5AF);
  text-align: center;
}

/* 3D progress bar */
.simadda-load-bar {
  width: min(220px, 70vw);
  perspective: 420px;
}
.simadda-load-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 55%, #151515 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(212, 175, 55, 0.12);
  overflow: hidden;
  transform: rotateX(18deg);
  transform-style: preserve-3d;
}
.simadda-load-bar-fill {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #8a6a12 0%,
    #d4af37 35%,
    #f3e2a0 55%,
    #d4af37 75%,
    #8a6a12 100%
  );
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  animation: simaddaLoadFill 1.35s ease-in-out infinite;
}
.simadda-load-bar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 62%
  );
  animation: simaddaLoadShine 1.6s linear infinite;
  pointer-events: none;
}
@keyframes simaddaLoadFill {
  0%   { width: 12%; left: 2px; }
  50%  { width: 62%; }
  100% { width: 18%; left: calc(100% - 22%); }
}
@keyframes simaddaLoadShine {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Full-page loading gate */
html.simadda-loading,
html.simadda-loading body {
  cursor: wait;
}
.simadda-page-loader {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(212, 175, 55, 0.12), transparent 55%),
    rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
}
.simadda-page-loader.active { display: flex; }
.simadda-page-loader-card {
  position: relative;
  width: min(360px, 92vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 28px 28px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(24, 24, 24, 0.95), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.simadda-page-loader-orb {
  position: absolute;
  top: -28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3e2a0, #d4af37 45%, #6b5210 100%);
  box-shadow:
    0 10px 28px rgba(212, 175, 55, 0.45),
    inset 0 -4px 8px rgba(0, 0, 0, 0.35),
    inset 0 3px 4px rgba(255, 255, 255, 0.35);
  animation: simaddaOrbPulse 1.8s ease-in-out infinite;
}
@keyframes simaddaOrbPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(3px) scale(1.05); }
}
.simadda-page-loader .simadda-spinner {
  width: 34px;
  height: 34px;
  border-width: 3px;
  color: var(--gold, #D4AF37);
  margin-top: 18px;
}
.simadda-page-loader-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #D4AF37);
  font-weight: 600;
}
.simadda-page-loader-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #D0C5AF);
  opacity: 0.85;
}
.simadda-page-loader .simadda-load-bar {
  width: min(260px, 78%);
}
.simadda-form-overlay .simadda-load-bar {
  width: min(200px, 80%);
}

/* Final success / error confirmation after uploads & saves */
.simadda-result-screen {
  position: fixed;
  inset: 0;
  z-index: 200010;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(212, 175, 55, 0.14), transparent 55%),
    rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
}
.simadda-result-screen.active { display: flex; }
.simadda-result-card {
  width: min(420px, 92vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 28px 28px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(24, 24, 24, 0.96), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  animation: fadeInUp 0.35s ease both;
}
.simadda-result-icon .material-symbols-outlined {
  font-size: 52px;
  color: #4ade80;
}
.simadda-result-screen.is-error .simadda-result-icon .material-symbols-outlined {
  color: #f87171;
}
.simadda-result-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.simadda-result-message {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, #D0C5AF);
  max-width: 34ch;
}
.simadda-result-btn {
  margin-top: 8px;
  min-width: 160px;
  justify-content: center;
}

.animate-fade-up   { animation: fadeInUp 0.6s ease both; }
.animate-fade      { animation: fadeIn 0.5s ease both; }
.animate-pulse-dot { animation: pulse 2s ease infinite; }
.animate-float     { animation: float 4s ease-in-out infinite; }

/* Stagger children */
.stagger > * { opacity: 0; animation: fadeInUp 0.6s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  overflow: visible;
  display: flex; align-items: center;
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(5,5,5,0.95);
  border-bottom-color: var(--border-gold);
}
.navbar-inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--margin-desktop);
  display: flex; align-items: center; gap: 40px;
}
.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.navbar-brand img {
  height: clamp(24px, 4vw, 36px) !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  transition: all 0.3s ease;
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
}
.navbar-nav {
  display: flex; align-items: center; gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: center;
  overflow: visible;
  margin: 0 12px;
}
.navbar-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
  white-space: nowrap;
  line-height: 1.2;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--gold); }

/* Top-level tabs — ALL direct links + dropdown parents are theme buttons
   (Home / Support / Community Chat must match Train Sim / Marketplace chrome).
   !important beats Tailwind CDN preflight which loads after global.css. */
.navbar-nav > a,
.navbar-nav > .nav-dropdown > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 7px 11px !important;
  background: #1c1c1c !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: var(--radius-md) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}
.navbar-nav > a:hover,
.navbar-nav > .nav-dropdown > a:hover,
.navbar-nav > .nav-dropdown.open > a,
.navbar-nav > a:focus-visible,
.navbar-nav > .nav-dropdown > a:focus-visible {
  color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: var(--border-gold) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.navbar-nav > a:active,
.navbar-nav > .nav-dropdown > a:active {
  transform: scale(0.96);
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: var(--gold) !important;
}
.navbar-nav > a.active,
.navbar-nav > .nav-dropdown > a.active {
  color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.16) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.navbar-nav > a.active::after,
.navbar-nav > .nav-dropdown > a.active::after {
  display: none !important;
}
.navbar-nav .nav-assist-accent {
  color: var(--gold) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.navbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }

/* Auth / register: logo + Become Vendor only — nav tabs / search / cart hidden */
.navbar.navbar-auth-only .navbar-inner {
  justify-content: space-between;
}
.navbar.navbar-auth-only .navbar-nav,
.navbar.navbar-auth-only .mobile-menu-btn,
.navbar.navbar-auth-only .nav-action-icon:not(.nav-auth-vendor-btn),
.navbar.navbar-auth-only a.btn-secondary,
.navbar.navbar-auth-only .profile-dropdown-container {
  display: none !important;
}
.navbar.navbar-auth-only .navbar-actions {
  display: flex !important;
  margin-left: auto;
}
.navbar.navbar-auth-only .navbar-actions a.btn-primary.nav-auth-vendor-btn {
  display: inline-flex !important;
}
@media (max-width: 767px) {
  .navbar.navbar-auth-only .navbar-actions a.btn-primary.nav-auth-vendor-btn.nav-desktop-btn {
    display: none !important;
  }
  .navbar.navbar-auth-only .navbar-actions a.nav-auth-vendor-btn.nav-mobile-btn {
    display: flex !important;
  }
}

/* Dropdown */
.nav-dropdown { position: relative; flex-shrink: 0; }
/* Invisible hover bridge so the cursor can reach submenu items without closing */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown > a {
  text-decoration: none;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0e0e0e;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(212,175,55,0.1);
  display: none;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}
/* Invisible bridge so the cursor can reach submenu items without closing */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: slideDown 0.2s ease;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}
.nav-dropdown-menu a:hover { background: rgba(212,175,55,0.08); color: var(--gold); }

/* Nested flyout under a submenu item (e.g. Scenarios → Free/Paid Premium) */
.nav-dropdown-menu .nav-dropdown-nested {
  position: relative;
  width: 100%;
}
.nav-dropdown-menu .nav-dropdown-nested > a.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.nav-dropdown-menu .nav-dropdown-nested > .nav-dropdown-menu {
  top: 0;
  left: calc(100% + 4px);
  min-width: 230px;
}
.nav-dropdown-menu .nav-dropdown-nested::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 12px;
  height: 100%;
}
@media (max-width: 1100px) {
  .nav-dropdown-menu .nav-dropdown-nested > .nav-dropdown-menu {
    left: 8px;
    right: 8px;
    top: calc(100% + 2px);
    min-width: 0;
  }
}

/* Mobile menu */
.nav-action-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all .2s ease;
  background: none;
  cursor: pointer;
}
.nav-action-icon:hover { border-color: var(--border-gold); color: var(--gold); }
.nav-desktop-btn { display: inline-flex; }
.nav-mobile-btn { display: none; }

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--gold); color: #050505;
  font-size: 9px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Hamburger — same action-chip box as .nav-action-icon (phone/tablet/desktop) */
.mobile-menu-btn {
  display: none;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.3s ease, opacity 0.2s ease;
}
.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.mobile-menu-btn span:nth-child(3) { width: 12px; align-self: flex-end; margin-right: 11px; }
.mobile-menu-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.mobile-menu-btn:hover span { background: var(--gold); }

/* While the drawer is open, hide the header hamburger so only the in-menu X shows */
.mobile-menu-btn.is-menu-open {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  max-height: calc(100dvh - 72px);
  background: rgba(5,5,5,0.98);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 32px var(--margin-mobile);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: none;
  flex-direction: column; gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.open { display: flex; animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
body.has-admin-bar .mobile-menu {
  top: 120px;
  height: calc(100dvh - 120px);
  max-height: calc(100dvh - 120px);
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#mobileMenuBackdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 98;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#mobileMenuBackdrop.open { display: block; opacity: 1; }

.mobile-menu a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--gold); border-color: var(--border-gold); background: rgba(212,175,55,0.05); }
.mobile-menu-label {
  flex: 1 1 auto;
  min-width: 0;
  display: inline;
  white-space: normal;
}
.mobile-menu .nav-assist-accent {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline;
}

/* Accordion Menu */
.mobile-menu-dropdown {
  display: flex;
  flex-direction: column;
}
.mobile-menu-dropdown-trigger {
  cursor: pointer;
  justify-content: space-between;
  width: 100%;
}
.mobile-menu-dropdown-trigger .mobile-menu-label {
  flex: 1 1 auto;
  text-align: left;
}
.mobile-menu-dropdown-trigger .material-symbols-outlined {
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}
.mobile-menu-dropdown.active .mobile-menu-dropdown-trigger .material-symbols-outlined {
  transform: rotate(180deg);
}
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  transition: max-height 0.3s ease-out;
}
.mobile-menu-dropdown.active .mobile-submenu {
  max-height: none;
  overflow: visible;
}

.mobile-menu-dropdown-nested {
  margin: 4px 0 4px 8px;
  border-left: 1px solid rgba(255,255,255,0.06);
  padding-left: 8px;
}
.mobile-menu-dropdown-nested > .mobile-menu-dropdown-trigger {
  font-size: 13px;
  opacity: 0.95;
}
.mobile-menu-dropdown-nested .mobile-submenu a {
  padding-left: 12px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .navbar-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-inner { padding: 0 var(--margin-mobile); }
}

@media (max-width: 768px) {
  .nav-desktop-btn { display: none !important; }
  .nav-mobile-btn { display: flex !important; }
  .navbar-actions { gap: 8px; }
  .nav-action-icon { width: 36px; height: 36px; }
  .nav-action-icon .material-symbols-outlined { font-size: 18px !important; }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .mobile-menu-btn span { width: 16px; }
  .mobile-menu-btn span:nth-child(3) { width: 11px; margin-right: 10px; }
}

/* ── Footer ── */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px; font-weight: 800; letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; line-height: 1.6; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--text-faint);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.05); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr !important; } .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(212,175,55,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(193,18,31,0.06) 0%, transparent 60%),
              var(--bg-primary);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.5) 50%, rgba(5,5,5,0.8) 100%);
}
.hero-content { position: relative; z-index: 2; }

/* ── Product Card ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}
.product-card:hover {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 24px rgba(212,175,55,0.1);
  transform: translateY(-6px);
}
.product-card-img {
  position: relative; height: 220px; overflow: hidden; background: #000;
}
.product-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.8s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.03); }
.product-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, transparent 60%);
}
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-vendor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-height: 2.9em;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--gold);
}
.product-price span { font-size: 13px; font-weight: 400; color: var(--text-faint); }
.product-card-actions { display: flex; gap: 8px; }
.cart-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-md);
  color: var(--gold);
  transition: all 0.3s ease;
}
.cart-btn:hover { background: var(--gold); color: #050505; box-shadow: 0 0 16px rgba(212,175,55,0.4); }
/*
 * Product-page CTAs reuse .cart-btn for add-to-cart JS hooks.
 * .cart-btn alone is gold-on-dark (listing cards). Combined with .btn-primary
 * it must stay black-on-gold — otherwise equal-specificity gold text wins and
 * Add to Cart becomes invisible on every Train Sim / marketplace product.
 */
.btn-primary.cart-btn,
.btn.btn-primary.cart-btn,
a.btn-primary.cart-btn {
  width: auto;
  height: auto;
  min-height: 52px;
  padding: 16px 24px;
  color: #050505 !important;
  border-color: transparent;
}
.btn-primary.cart-btn .material-symbols-outlined,
.btn.btn-primary.cart-btn .material-symbols-outlined,
a.btn-primary.cart-btn .material-symbols-outlined {
  color: #050505 !important;
}
.btn-primary.cart-btn:hover,
.btn.btn-primary.cart-btn:hover,
a.btn-primary.cart-btn:hover {
  color: #050505 !important;
}
.cart-btn-buy {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  gap: 6px;
  background: var(--gold);
  color: #050505 !important;
  border-color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-btn-buy:hover {
  background: var(--gold-dim);
  color: #050505 !important;
  box-shadow: 0 0 16px rgba(212,175,55,0.45);
}
.cart-btn-buy .material-symbols-outlined { color: #050505 !important; }
.wish-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.wish-btn:hover { border-color: rgba(193,18,31,0.4); color: var(--red); }
.wish-btn.active { color: var(--red); border-color: rgba(193,18,31,0.5); }

/* ── Stats ── */
.stats-bar {
  background: linear-gradient(90deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: var(--gold);
  margin-bottom: 4px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Category Cards ── */
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #000;
}
.category-card:hover { transform: scale(1.02); }
.category-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.03); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.3) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.category-card-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.category-card-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-chip:hover { border-color: var(--border-gold); color: var(--gold); }
.filter-chip.active {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Search Bar ── */
.search-bar {
  position: relative; display: flex; align-items: center;
}
.search-bar .icon {
  position: absolute; left: 14px;
  color: var(--text-faint); pointer-events: none;
  font-size: 20px;
}
.search-input {
  width: 100%;
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 44px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  color-scheme: dark;
  font-family: 'Montserrat', sans-serif; font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }
.search-input::placeholder { color: rgba(255,255,255,0.45); -webkit-text-fill-color: rgba(255,255,255,0.45); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}
.breadcrumb a { color: var(--text-faint); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ── Page Header ── */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(to bottom, rgba(212,175,55,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Rental Card ── */
.rental-card {
  background: rgba(15,15,15,0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
}
.rental-card:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 20px rgba(212,175,55,0.1);
  transform: translateY(-4px);
}
.rental-card-img { position: relative; height: 280px; overflow: hidden; background: #000; }
.rental-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.8s ease;
}
.rental-card:hover .rental-card-img img { transform: scale(1.03); }

/* ── Waveform ── */
.waveform {
  display: flex; align-items: flex-end; gap: 3px; height: 48px;
}
.wave-bar {
  flex: 1; min-width: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform-origin: bottom;
  animation: waveBar 1.4s ease-in-out infinite alternate;
}

/* ── Smooth page transitions ── */
body { animation: pageFadeIn .3s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================
   COMPREHENSIVE RESPONSIVE SYSTEM — All screen sizes
   Ensures the entire site is smooth and pixel-perfect on every
   device: 320px phones → 4K desktops
   ============================================================= */

/* ── Base: Prevent overflow everywhere ── */
html, body { max-width: 100vw; overflow-x: hidden; }

/* ── Touch targets: minimum 44px on interactive elements ── */
button, [role="button"] { min-height: 44px; }
.btn-sm { min-height: 36px !important; }
.nav-action-icon { min-height: 40px; min-width: 40px; }

/* ── Smooth GPU-accelerated transitions ── */
a, button, .card, .product-card, .rental-card, .vendor-card,
.news-card, .deal-card, .filter-chip, .category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── GPU hints for performance ── */
.navbar, .mobile-menu, .nav-dropdown-menu { will-change: transform, opacity; }
.product-card:hover, .card:hover { will-change: transform, box-shadow; }

/* ── Image handling: fill frame holders precisely (cover), never letterbox cards ── */
img { max-width: 100%; display: block; }
.product-card-img,
.rental-card-img,
.news-card-img,
.category-card,
.featured-product-media,
.deal-card-img,
.scroll-products .product-card-img {
  position: relative;
  overflow: hidden;
  background: #000;
}
.product-card-img img,
.rental-card-img img,
.news-card-img img,
.category-card img,
.featured-product-wrap img,
.featured-product-media img,
.deal-card img,
.deal-card-img img,
.scroll-products .product-card-img img,
.featured-article img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
/* News list thumbs stay in a fixed box beside the title/link — do not absolute-escape. */
.news-card-thumb {
  position: relative;
  overflow: hidden;
}
.news-card-thumb img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  background: #111;
}
.navbar-brand img,
.logo img {
  object-fit: contain !important;
  background: transparent;
}

/* Featured / Editor's Choice — absolute cover fill; badges stay pinned on the image */
.featured-product-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #000;
}
.featured-product-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.featured-product-badges {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

/* ── Prevent text overflow ── */
.product-card-title, .news-card-title, .category-card-title,
.featured-product-title, .hot-deal-card h3, .deal-card [style*="font-weight:600"] {
  overflow-wrap: break-word; word-break: break-word;
}
.news-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-excerpt,
.featured-article-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-card {
  min-height: 0;
  align-items: stretch;
}
.deal-card .deal-card-title,
.deal-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Smooth sticky navbar (GPU layer) ── */
.navbar {
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translateZ(0);
}

/* ── Focus styles for accessibility ── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Smooth scrollable areas ── */
.scroll-products, .filter-bar, .mobile-menu { scroll-behavior: smooth; }
.scroll-products { -webkit-overflow-scrolling: touch; }

/* ─────────────────────────────────
   LARGE TABLET / LAPTOP (≤ 1360px)
   Keep tabs readable without overlap; collapse earlier if needed.
   ───────────────────────────────── */
@media (max-width: 1360px) {
  .navbar-inner { gap: 14px; padding-left: 16px; padding-right: 16px; }
  .navbar-nav { gap: 4px; margin: 0 8px; }
  .navbar-nav > a,
  .navbar-nav > .nav-dropdown > a {
    padding: 6px 8px !important;
    letter-spacing: 0.04em !important;
  }
  .navbar-actions { gap: 10px; }
}

@media (max-width: 1200px) {
  .navbar-inner { gap: 12px; }
  .navbar-nav { gap: 4px; }
  .navbar-nav > a,
  .navbar-nav > .nav-dropdown > a {
    padding: 6px 7px !important;
  }
  /* Prefer hamburger before labels collide with Become Vendor / cart */
  .navbar-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* ─────────────────────────────────
   TABLET (≤ 1024px)
   ───────────────────────────────── */
@media (max-width: 1024px) {
  .font-display  { font-size: clamp(32px, 4vw, 48px); }
  .font-headline { font-size: clamp(22px, 3vw, 28px); }
  .grid-4-col    { grid-template-columns: repeat(2, 1fr) !important; }
  .navbar-inner  { padding: 0 var(--margin-mobile); }
  .navbar-nav    { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .admin-sidebar { display: none !important; }
  .mobile-admin-nav { display: flex !important; }
  .admin-main { padding: 24px var(--margin-mobile) !important; }
}

/* ─────────────────────────────────
   MOBILE TABLET (≤ 768px)
   ───────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .section   { padding: 48px 0; }

  /* Typography */
  .font-display  { font-size: clamp(28px, 6vw, 36px); }
  .font-subhead  { font-size: 18px; }
  .font-headline { font-size: clamp(20px, 5vw, 26px); }

  /* Navbar */
  .nav-desktop-btn { display: none !important; }
  .nav-mobile-btn  { display: flex !important; }
  .navbar-actions  { gap: 8px; }

  /* Hero CTA: stack buttons */
  .hero-cta-group { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto !important; }

  /* Grids: collapse to 1 col */
  .grid-2-col, .grid-3-col, .grid-4-col { grid-template-columns: 1fr !important; }
  .grid-4-col { grid-template-columns: 1fr 1fr !important; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Vendor strip */
  .vendor-strip { grid-template-columns: repeat(2, 1fr) !important; }

  /* News */
  .news-strip { grid-template-columns: 1fr !important; }

  /* Featured product wrap — aspect frame on mobile so cover fill + badges stay on image */
  .featured-product-wrap { grid-template-columns: 1fr !important; }
  .featured-product-wrap > div:first-child,
  .featured-product-media {
    min-height: 220px;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Category mega grid */
  .category-mega-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }
  .category-mega-grid .category-card { aspect-ratio: 4 / 3; height: auto; }
  .category-mega-grid .cat-main { grid-row: auto !important; }
  .category-mega-bottom {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* How it works: 2 col */
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .how-it-works-connector { display: none !important; }
  .how-it-works-grid > div { overflow: visible; padding: 0 8px !important; }

  /* PS5 spotlight two-col → single col */
  .ps5-spotlight-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .ps5-spotlight-title { font-size: clamp(28px, 7vw, 40px) !important; }
  .ps5-spotlight-desc { font-size: 15px !important; }
  .ps5-spotlight-card { padding: 28px 18px 20px !important; min-height: 0 !important; }
  .ps5-spotlight-visual-icon { width: 180px !important; height: 128px !important; }
  .ps5-duo-stage { width: 150px; height: 102px; }
  .ps5-console-corner { width: 34px; height: 22px; padding: 4px 4px; }
  .ps5-spotlight-game-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .ps5-game-tile { height: 58px !important; min-height: 58px !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stagger > * { opacity: 1 !important; animation: none !important; }

  /* Deal cards: 1 col */
  .deal-grid { grid-template-columns: 1fr !important; }

  /* Testimonials: 1 col */
  .testimonial-grid { grid-template-columns: 1fr !important; }

  /* Modal responsive */
  .modal-card { width: 96% !important; max-width: none !important; }
  .modal-body { padding: 16px !important; }

  /* Admin tables */
  .grid-4-col { grid-template-columns: repeat(2, 1fr) !important; }
  .admin-main .data-table th,
  .admin-main .data-table td { padding: 10px 8px; font-size: 11px; }

  /* CMS page config layout */
  #sec-page-config > div[style*="display:grid"],
  .cms-editor-layout { grid-template-columns: 1fr !important; }
}

/* Page Configuration CMS — directory sidebar + editor grid */
.cms-editor-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cms-page-directory {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
  max-height: calc(100vh - 160px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cms-page-directory-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.cms-page-directory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}
.cms-page-directory-item {
  text-decoration: none;
  font-size: 12px;
  padding: 10px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  box-sizing: border-box;
}
.cms-page-directory-item:hover {
  background: rgba(255,255,255,.03);
  color: #fff;
}
.cms-page-directory-item.is-active {
  color: var(--gold);
  background: rgba(255,255,255,.03);
}
.cms-page-directory-item.is-locked {
  opacity: .7;
}
.cms-page-directory-item.is-locked:hover {
  opacity: 1;
}
.cms-page-directory-name {
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.cms-page-directory-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.cms-page-directory-badge.primary-only { color: #d4af37; }
.cms-editor-main { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.cms-image-row { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.02); padding-bottom: 12px; flex-wrap: wrap; }
.cms-image-row img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-subtle); flex-shrink: 0; }
.cms-image-row-fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.cms-upload-btn { font-size: 11px; align-self: flex-start; }

/* ─────────────────────────────────
   SMALL MOBILE (≤ 480px)
   ───────────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 13px; }
  .section { padding: 36px 0; }

  .font-display  { font-size: clamp(24px, 7vw, 30px); }
  .font-headline { font-size: clamp(18px, 5vw, 22px); }

  /* Stats: 2 col */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .stat-value { font-size: clamp(24px, 6vw, 32px) !important; }

  /* Category: 1 col */
  .category-mega-grid { grid-template-columns: 1fr !important; }
  .category-mega-bottom { grid-template-columns: 1fr !important; }

  /* Vendor: 2 col */
  .vendor-strip { grid-template-columns: repeat(2, 1fr) !important; }

  /* Footer: 1 col */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* How it works: 1 col */
  .how-it-works-grid { grid-template-columns: 1fr !important; }
  .how-it-works-connector { display: none !important; }
  .how-it-works-grid > div { padding: 0 4px !important; }

  /* PS5 spotlight compact on small phones */
  .ps5-spotlight-grid { gap: 24px !important; }
  .ps5-spotlight-card { padding: 22px 14px 16px !important; }
  .ps5-spotlight-visual-icon { width: 156px !important; height: 112px !important; }
  .ps5-duo-stage { width: 132px; height: 90px; }
  .ps5-duo-pc { transform: scale(0.88) translateZ(8px); transform-origin: left bottom; }
  .ps5-duo-console { transform: scale(0.88) translateZ(16px) rotateY(-8deg); transform-origin: right bottom; }
  .ps5-console-corner { display: none; }
  .ps5-spotlight-platform { font-size: 20px !important; }
  .ps5-spotlight-genres { font-size: 12px !important; }
  .ps5-game-tile { height: 54px !important; min-height: 54px !important; padding: 8px 10px !important; }

  /* Cards padding */
  .product-card-body { padding: 14px; }
  .vendor-card { padding: 16px; }
  .testimonial-card { padding: 20px; }

  /* Scroll products smaller */
  .scroll-products > * { width: min(280px, 75vw) !important; }

  /* Featured — pad text column only, not the media plane */
  .featured-product-wrap > div:not(.featured-product-media) { padding: 24px !important; }

  /* Keep hero scroll hint visible and centered under CTAs on small phones */
  .hero-scroll-hint {
    display: flex !important;
    left: 0;
    right: 0;
    width: 100%;
    margin-inline: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* Hero CTA smaller text */
  .hero-cta-group .btn { font-size: 10px; padding: 12px 16px; }

  /* Admin grid */
  .grid-4-col { grid-template-columns: 1fr 1fr !important; }

  /* Navbar actions tighter */
  .navbar-actions { gap: 6px; }
  .nav-action-icon { width: 36px; height: 36px; }
}

/* ─────────────────────────────────
   EXTRA SMALL (≤ 360px)
   ───────────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .font-display  { font-size: 22px; }
  .font-headline { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .vendor-strip { grid-template-columns: 1fr 1fr !important; }
  .scroll-products > * { width: min(280px, 75vw) !important; }
  .hero-cta-group .btn { font-size: 9px; padding: 10px 12px; }
}

/* ─────────────────────────────────
   HIGH-DPI / RETINA improvements
   ───────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar { border-bottom-width: 0.5px; }
}

/* ─────────────────────────────────
   PRINT (remove backgrounds)
   ───────────────────────────────── */
@media print {
  .navbar, .mobile-menu, .audio-player, .footer { display: none; }
  body { background: white; color: black; }
}

/* ── QR Payment ── */
.qr-scanner-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(212,175,55,0.5);
  animation: scanLine 2.5s ease-in-out infinite;
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Tooltip ── */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1a1a1a; border: 1px solid var(--border-gold);
  padding: 6px 12px; border-radius: var(--radius-md);
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
  z-index: 50;
}
.tooltip-wrap:hover .tooltip { opacity: 1; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
}
.upload-zone:hover {
  border-color: rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.03);
}
.upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(212,175,55,0.07);
}

/* ── Sidebar Dashboard ── */
.dashboard-sidebar {
  width: 260px; flex-shrink: 0;
  background: #0a0a0a;
  border-right: 1px solid var(--border-subtle);
  padding: 32px 0;
  min-height: calc(100vh - 72px);
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.sidebar-nav-item:hover { color: var(--gold); border-left-color: rgba(212,175,55,0.3); background: rgba(212,175,55,0.03); }
.sidebar-nav-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(212,175,55,0.06); }

/* ── News Card ── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.news-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
}
.news-card-img { position: relative; height: 200px; overflow: hidden; background: #000; }
.news-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.news-card-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.news-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-faint); letter-spacing: 0.08em;
}

/* ── Deal Card ── */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; gap: 16px; align-items: center;
  transition: all 0.3s ease;
}
.deal-card:hover { border-color: rgba(193,18,31,0.4); transform: translateY(-2px); }
.deal-badge-big {
  background: linear-gradient(135deg, var(--red), #8B0D16);
  color: #fff; font-weight: 800; font-size: 18px;
  padding: 10px 14px; border-radius: var(--radius-md);
  flex-shrink: 0; min-width: 64px; text-align: center;
}

/* ── Sticky Audio Player ── */
.audio-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: 72px;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 24px;
}

/* ── Sound Pack demo audio: native player look, download control hidden ── */
.sound-demo-audio {
  width: 100%;
  height: 34px;
  margin: 10px 0 2px;
  filter: sepia(1) saturate(.6) hue-rotate(350deg);
}
.sound-demo-audio::-webkit-media-controls-enclosure {
  overflow: hidden;
}
.sound-demo-audio::-internal-media-controls-download-button,
.sound-demo-audio::-webkit-media-controls-download-button {
  display: none !important;
}

/* ── Vendor Card ── */
.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.4s ease;
}
.vendor-card:hover {
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.08);
}
.vendor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  margin: 0 auto 16px;
  overflow: hidden;
}

/* ── Table ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 16px 16px; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Misc Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── News Strip (3-col grid) ── */
.news-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .news-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .news-strip { grid-template-columns: 1fr; } }

/* ── Responsive Visibility ── */
.hidden { display: none !important; }
@media (min-width: 768px) { .hidden.md-visible { display: inline !important; } }
@media (max-width: 1024px) { .navbar-nav { display: none !important; } }

/* ── Select arrow styling ── */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  color-scheme: dark;
}
.form-select option { background: #111; color: var(--text-primary); }

/* ── Marquee track ── */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Gold gradient text ── */
.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Verify btn (used in checkout) ── */
.verify-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #050505;
  border: none; border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer;
  transition: all .3s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(212,175,55,.3);
}
.verify-btn:hover {
  box-shadow: 0 8px 30px rgba(212,175,55,.5);
  transform: translateY(-2px);
}

/* ── Checkout step header items ── */
.hidden.md-visible { display: none; }
@media(min-width: 640px) { .hidden.md-visible { display: inline; } }

/* ── Responsive Grid Helpers ── */
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Smooth page transitions ── */
body { animation: pageFadeIn .3s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Universal Responsive Optimizations ── */
@media (max-width: 1024px) {
  /* Tablet scale adjustments */
  .font-display { font-size: clamp(32px, 4vw, 48px); }
  .font-headline { font-size: clamp(22px, 3vw, 28px); }
  .grid-4-col { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  /* Phone strict optimization */
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .font-display { font-size: clamp(28px, 6vw, 36px); }
  .font-subhead { font-size: 18px; }
  
  /* Stack grid layouts */
  .grid-2-col, .grid-3-col, .grid-4-col { grid-template-columns: 1fr !important; }
  
  /* Ensure media never overflows the viewport; keep framed holders filled via cover */
  img, video, iframe, canvas {
    max-width: 100% !important;
  }
  .product-card-img img,
  .rental-card-img img,
  .news-card-img img,
  .category-card img,
  .featured-product-media img,
  .featured-product-wrap img,
  .deal-card img,
  .scroll-products .product-card-img img,
  .news-card-thumb img {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  
  .navbar-brand img {
    height: clamp(24px, 4vw, 36px) !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Ensure inputs and buttons span full width if needed */
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
}

/* ── Heading Wrap & Overflow Protection ── */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: normal;
  word-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  max-width: 100%;
}
p, li, td, th, label {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

/* ── Responsive Data Tables ── */
.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table td.nowrap, .data-table th.nowrap {
  white-space: nowrap;
}

/* ── Responsive Form Enhancements ── */
.form-input, .form-select, textarea {
  max-width: 100%;
  word-break: normal;
}

/* ============================================
   Profile Dropdown System Styles
   ============================================ */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
}
.profile-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  user-select: none;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold, #d4af37);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.profile-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 220px;
  background: #0d0d0d;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 8px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 1001;
}
.profile-dropdown-container.open .profile-dropdown-menu {
  display: flex !important;
}
.profile-dropdown-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.profile-dropdown-header .user-name {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}
.profile-dropdown-header .user-role {
  font-size: 11px;
  color: var(--gold, #d4af37);
  margin-top: 2px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.profile-dropdown-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold, #d4af37);
}
.profile-dropdown-item span {
  font-size: 12px;
}
.profile-dropdown-item.sign-out {
  color: var(--red, #c1121f) !important;
}
.profile-dropdown-item.sign-out:hover {
  background: rgba(193, 18, 31, 0.1) !important;
  color: var(--red, #c1121f) !important;
}

/* =============================================================
   VIEWPORT FIT LOCK — no cut letters, no off-frame boxes
   Phone / tablet portrait+landscape / laptop / desktop
   ============================================================= */
html {
  max-width: 100%;
  overflow-x: clip;
}
body {
  max-width: 100%;
  overflow-x: clip;
  width: 100%;
}
main,
section,
.container,
.product-layout,
.marketplace-layout,
.cart-layout,
.info-layout,
.dash-layout,
.admin-layout,
.product-info-card,
.footer .container {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Horizontal toolbars/tabs scroll inside their own frame */
.tab-scroll,
.product-tab-bar,
.toolbar-scroll,
.filter-bar,
.cms-tabs,
.mobile-admin-nav {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

/* Long copy: stay readable; scroll vertically when tall */
.text-scroll-panel {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
}

/* Fluid search fields — never force page wider than viewport */
.search-bar,
.fluid-search {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.fluid-search input,
.search-bar input {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

/* Stack common side-by-side tool rows on phones */
@media (max-width: 767px) {
  .navbar-actions {
    gap: 6px !important;
    flex-shrink: 1;
    min-width: 0;
  }
  .navbar-inner {
    gap: 8px !important;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
  }
  .profile-dropdown-trigger .nav-desktop-btn,
  .profile-dropdown-trigger > span.nav-desktop-btn,
  .admin-profile-name {
    display: none !important;
  }
  .hero-toolbar-row,
  .marketplace-hero-tools {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }
  .marketplace-hero-tools > * {
    width: 100%;
  }
  .sort-select {
    width: 100% !important;
    max-width: 100%;
  }

  /* Admin panel — phone fit */
  .admin-layout {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
  }
  .admin-main {
    padding: 16px max(12px, env(safe-area-inset-left, 0px)) 28px max(12px, env(safe-area-inset-right, 0px)) !important;
    overflow-x: auto !important;
  }
  .admin-main .btn,
  .admin-main .btn-primary,
  .admin-main .btn-ghost {
    max-width: 100%;
    white-space: normal;
  }
  .admin-main input,
  .admin-main select,
  .admin-main textarea,
  .admin-main .form-input {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
  }
  .admin-main img,
  .admin-main iframe,
  .admin-main video,
  .admin-main table {
    max-width: 100%;
  }
  .admin-main h1,
  .admin-main h2,
  .admin-main p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .table-scroll,
  .admin-main > div[style*="overflow-x"] {
    max-width: 100%;
  }
}

/* Tablet: keep hamburger density tidy in portrait + landscape */
@media (max-width: 1024px) {
  .navbar-actions { gap: 10px; }
  #simadda-admin-bar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .admin-main {
    min-width: 0;
    max-width: 100%;
  }
}

/* Extra-small phones */
@media (max-width: 400px) {
  .navbar-brand img {
    max-width: 120px !important;
  }
  .nav-action-icon {
    min-width: 36px;
    min-height: 36px;
  }
  .mobile-menu-btn {
    min-width: 36px;
    min-height: 36px;
  }
  .admin-main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Public site content protection (deterrent; cannot fully prevent DevTools) */
body.site-protect img {
  -webkit-user-drag: none;
  user-select: none;
}
body.site-protect .no-copy,
body.site-protect.protect-select {
  -webkit-user-select: none;
  user-select: none;
}
body.site-protect input,
body.site-protect textarea,
body.site-protect [contenteditable="true"],
body.site-protect .allow-select {
  -webkit-user-select: text;
  user-select: text;
}


