/* =============================================================================
   STATIC MODEL KIT INVENTORY — THEME INDUSTRIAL WORKBENCH
   Master Stylesheet — Space Grotesk / Chivo / Space Mono Typography
   Dark Slate-Green Cutting Mat (#121917), Crisp Dark Cards (#1B2421),
   Industrial Yellow Accents (#F59E0B)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@300;400;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── DESIGN TOKENS: INDUSTRIAL WORKBENCH PALETTE ─────────────────────────── */
:root {
  /* Surfaces: Tappetino da Taglio & Banco da Lavoro */
  --surface:                  #1B2421;
  --surface-dim:              #141C19;
  --surface-bright:           #222E2A;
  --surface-container-lowest: #0F1614;
  --surface-container-low:    #161F1C;
  --surface-container:        #1B2421;
  --surface-container-high:   #222E2A;
  --surface-container-highest:#2B3A35;

  /* Typography Colors */
  --on-surface:               #E8EFEA;
  --on-surface-variant:       #9BAEA6;
  --inverse-surface:          #E8EFEA;
  --inverse-on-surface:       #121917;

  /* Outlines & Borders */
  --outline:                  #3D524A;
  --outline-variant:          #2A3933;
  --surface-tint:             #F59E0B;

  /* Primary Accent: Giallo Industriale */
  --primary:                  #F59E0B;
  --on-primary:               #121917;
  --primary-container:        rgba(245, 158, 11, 0.16);
  --on-primary-container:     #FCD34D;
  --inverse-primary:          #B45309;
  --neon-magenta:             #F59E0B;

  /* Secondary Accent: Acciaio / Verde Tecnico */
  --secondary:                #34D399;
  --on-secondary:             #121917;
  --secondary-container:      rgba(52, 211, 153, 0.14);
  --on-secondary-container:   #6EE7B7;
  --neon-cyan:                #38BDF8;

  /* Tertiary: Ambra / Arancio Industriale */
  --tertiary:                 #F59E0B;
  --on-tertiary:              #121917;
  --tertiary-container:       rgba(245, 158, 11, 0.18);
  --on-tertiary-container:    #FDE68A;
  --neon-amber:               #F59E0B;
  --neon-orange:              #FB923C;

  /* Semantic */
  --error:                    #EF4444;
  --on-error:                 #ffffff;
  --error-container:          rgba(239, 68, 68, 0.16);
  --background:               #121917;
  --on-background:            #E8EFEA;
  --surface-variant:          #1E2925;

  /* Glows Industriali */
  --glow-pink:    0 0 12px rgba(245, 158, 11, 0.28), 0 0 24px rgba(245, 158, 11, 0.10);
  --glow-cyan:    0 0 10px rgba(56, 189, 248, 0.28), 0 0 20px rgba(56, 189, 248, 0.10);
  --glow-amber:   0 0 10px rgba(245, 158, 11, 0.35), 0 0 20px rgba(245, 158, 11, 0.14);

  /* Fonts */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Chivo', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Consolas', 'Courier New', monospace;

  /* Spacing */
  --gutter:        1.25rem;
  --margin:        2rem;
  --space-xs:      0.25rem;
  --space-sm:      0.5rem;
  --space-md:      1rem;
  --space-lg:      1.5rem;
  --space-xl:      2.5rem;

  /* Radius — Bordi nitidi da banco tecnico */
  --r-sm:   2px;
  --r-base: 4px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-xl:   10px;
  --r-full: 9999px;

  /* Struttura bordi nitida */
  --bevel-top:      1px solid #2F403A;
  --bevel-bottom:   1px solid #0C1210;
  --border-chassis: 1px solid #2C3C36;
  --inset-well:     inset 0 2px 6px rgba(0, 0, 0, 0.35);

  --scanline-color: rgba(245, 158, 11, 0.025);
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: #121917;
  color: var(--on-surface);
  min-height: 100vh;
  overflow-x: hidden;
  /* Sottile griglia millimetrica da tappetino da taglio per modellismo */
  background-image:
    linear-gradient(to right, rgba(167, 204, 189, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 204, 189, 0.085) 1px, transparent 1px),
    linear-gradient(to right, rgba(167, 204, 189, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 204, 189, 0.032) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0E1412; }
::-webkit-scrollbar-thumb { background: #33453E; border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: #F59E0B; }

/* ─── CONTROLLI RISERVATI SOLO ALL'ADMIN ────────────────────────────────── */
.admin-only {
  display: none !important;
}
body.is-admin .admin-only {
  display: inline-flex !important;
}

/* ─── STICKY TOP BAR & USER ACCOUNT BUTTON ──────────────────────────────── */
.sticky-top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px var(--gutter);
  background: rgba(18, 25, 23, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 3px solid #F59E0B;
  border-bottom: 1px solid #2D3E38;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.user-account-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  background: #F59E0B;
  color: #121917;
  border: 1px solid #FBBF24;
  border-radius: var(--r-base);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.32);
  transition: all 0.15s ease;
}
.user-account-sticky-btn:hover {
  background: #FBBF24;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.48);
}
.user-account-sticky-btn:active {
  transform: translateY(0);
}

/* ─── MAIN CHASSIS FRAME ─────────────────────────────────────────────────── */
.cockpit-chassis {
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--space-md) var(--margin) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ─── HEADER BINNACLE ───────────────────────────────────────────────────── */
.binnacle-header {
  background: linear-gradient(180deg, #1E2825 0%, #17201D 100%);
  border: var(--border-chassis);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--gutter);
  position: relative;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.strip-left, .strip-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}
.strip-left {
  flex: 1;
  overflow: hidden;
}
.strip-right {
  flex-shrink: 0;
}
.vfd-indicator {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #33453E;
  flex-shrink: 0;
}
.vfd-indicator.active-dot {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.75);
}
.vfd-divider { color: #344740; font-family: var(--font-mono); }
.telemetry-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #F59E0B;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.telemetry-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-surface-variant);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sticky-top-bar {
    padding: 8px 12px;
  }
  .vfd-divider,
  #clockTelemetry {
    display: none;
  }
  .telemetry-label {
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
  .user-account-sticky-btn {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 11px;
  }
}

/* Titolo Header */
.cockpit-title-bar {
  display: flex;
  align-items: center;
  width: 100%;
}
.branding-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
.crest-svg {
  width: 92px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.25));
}
.title-text-stack { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.main-headline {
  font-family: 'Orbitron', var(--font-display), sans-serif;
  font-size: clamp(18px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #F3F7F5;
  background: linear-gradient(90deg, #F3F7F5 0%, #F59E0B 55%, #FCD34D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.headline-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #9BAEA6;
  text-transform: uppercase;
  border-top: 1px solid rgba(245, 158, 11, 0.28);
  padding-top: 4px;
}

/* ─── CAMPO DIGITAZIONE MARCA KIT & LOCK AUTENTICAZIONE ────────────────── */
.btn-clear-brand {
  background: transparent;
  border: none;
  color: #8CA299;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.btn-clear-brand:hover {
  color: #F87171;
  background: rgba(239, 68, 68, 0.14);
}
body.app-auth-locked .cockpit-chassis {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0.22;
}
#authModalBackdrop.auth-mandatory-lock {
  background: rgba(10, 15, 13, 0.90) !important;
  backdrop-filter: blur(6px);
}

/* ─── CASSETTE DECK UNIT ────────────────────────────────────────────────── */
.cassette-deck-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 320px;
}
.cassette-well {
  background: #131B18;
  border: 1px solid #2A3933;
  border-radius: var(--r-md);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--inset-well);
}
.tape-window {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: 42px;
}
.tape-reel {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid #2D3E37;
  border-top-color: #F59E0B;
  flex-shrink: 0;
  position: relative;
  background: #1B2421;
}
.tape-reel::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid #2D3E37;
}
.tape-reel-spinning { animation: spoolSpin 1.2s linear infinite; }
@keyframes spoolSpin { to { transform: rotate(360deg); } }

.tape-bridge { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tape-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #F59E0B;
  text-transform: uppercase;
  font-weight: 700;
}
.tape-center-window {
  background: #0E1412;
  border: 1px solid #2C3C36;
  border-radius: var(--r-sm);
  padding: 1px 12px;
}
.tape-counter-vfd {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #F59E0B;
  letter-spacing: 0.15em;
}

/* Tasti Meccanici Cassette */
.cassette-transport-rack {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: nowrap;
}
.transport-key {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  background: #1B2421;
  border: 1px solid #2E3F38;
  border-radius: var(--r-base);
  color: #C9D8D1;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  min-width: 52px;
}
.transport-key:hover {
  color: #F59E0B;
  border-color: #F59E0B;
  background: #232F2B;
  transform: translateY(-1px);
}
.transport-key:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); }
.key-icon { font-size: 13px; line-height: 1; }
.key-label { font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }

.rec-key { color: #F59E0B !important; font-weight: 700; }
.active-glow-rec { border-color: #F59E0B !important; background: rgba(245, 158, 11, 0.15) !important; }

/* ─── INSTRUMENT CLUSTER (3 POD GAUGE) ──────────────────────────────────── */
.instrument-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gauge-pod-binnacle {
  background: #1B2421;
  border: var(--border-chassis);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  position: relative;
}

.binnacle-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #151D1A;
  border-bottom: 1px solid var(--outline-variant);
  padding: 4px 10px;
}
.strip-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #F59E0B;
  text-transform: uppercase;
  font-weight: 700;
}
.strip-status {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
  text-transform: uppercase;
}

.gauge-well {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.aux-well { align-items: stretch; justify-content: center; }

/* SVG Gauges — Dimensioni compatte */
.radial-gauge-svg {
  width: 100%;
  max-width: 125px;
  height: 84px;
}
.gauge-track { fill: none; stroke: #273530; stroke-width: 10; stroke-linecap: round; }
.gauge-active-arc {
  fill: none; stroke: #F59E0B; stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.gauge-speed-arc {
  fill: none; stroke: #34D399; stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.gauge-needle {
  stroke: #F59E0B; stroke-width: 2.2; stroke-linecap: round;
  transition: all 0.8s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: 120px 130px;
}
.cyan-needle { stroke: #34D399; }
.gauge-hub { fill: #121917; stroke: #F59E0B; stroke-width: 2; }
.gauge-hub-pin { fill: #F59E0B; }

.gauge-digital-readout { text-align: center; }
.digital-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #F3F7F5;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.cyan-glow { color: #F59E0B !important; }
.digital-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  margin-top: 1px;
}
.gauge-footer-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.lbl-cyan    { color: #38BDF8; }
.lbl-amber   { color: #F59E0B; }
.lbl-pink    { color: #34D399; }
.lbl-redline { color: #FBBF24; }

/* Dual Telemetry Block */
.dual-telemetry-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 5px;
}
.telem-block { display: flex; flex-direction: column; gap: 2px; }
.telem-title { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.1em; color: var(--on-surface-variant); text-transform: uppercase; }
.vfd-display-box {
  background: #121917;
  border: 1px solid #2A3933;
  border-radius: var(--r-sm);
  padding: 4px 8px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  box-shadow: var(--inset-well);
}
.dim-box { background: #141C19; border-color: #273530; }
.vfd-prefix { font-family: var(--font-mono); font-size: 10px; color: #F59E0B; font-weight: 700; }
.vfd-value { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #E8EFEA; letter-spacing: 0.06em; }

/* Boost Bar */
.boost-meter-container { margin-bottom: 5px; }
.boost-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: #C4D4CD;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.boost-track {
  height: 6px;
  background: #0F1614;
  border: 1px solid #2C3C36;
  border-radius: var(--r-full);
  overflow: hidden;
}
.boost-fill {
  height: 100%;
  background: linear-gradient(90deg, #D97706 0%, #F59E0B 60%, #FBBF24 100%);
  border-radius: var(--r-full);
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

/* Scale Pills */
.scale-pills-row { display: flex; flex-wrap: wrap; gap: 4px; }
.scale-pill {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  border: 1px solid #2F403A;
  color: #C9D8D1;
  background: #141C19;
  white-space: nowrap;
  font-weight: 600;
}
.scale-pill:hover { border-color: #F59E0B; color: #F59E0B; background: rgba(245, 158, 11, 0.12); }

/* ─── COCKPIT CONTROL DECK (FILTRI E COMANDI) ────────────────────────────── */
.cockpit-control-deck { padding: 0; }
.control-deck-frame {
  background: #1B2421;
  border: var(--border-chassis);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
}
.deck-title-strip {
  display: flex;
  justify-content: space-between;
  background: #151D1A;
  border-bottom: 1px solid var(--outline-variant);
  padding: 6px var(--gutter);
}
.deck-title-strip span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: #F59E0B; text-transform: uppercase; font-weight: 700; }
.deck-decor { color: var(--on-surface-variant) !important; font-weight: normal !important; }

.deck-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) var(--gutter);
  align-items: start;
}

.control-pod { display: flex; flex-direction: column; gap: var(--space-sm); }
.control-pod-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #9BAEA6;
  text-transform: uppercase;
  font-weight: 700;
}

/* Rocker Matrix Buttons — Filtri */
.rocker-matrix { display: flex; flex-wrap: wrap; gap: 5px; }
.rocker-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #141C19;
  border: 1px solid #2D3E38;
  border-radius: var(--r-base);
  color: #C4D4CD;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.rocker-btn:hover {
  border-color: #F59E0B;
  color: #FCD34D;
  background: #212D29;
  transform: translateY(-1px);
}
.rocker-btn.active {
  background: #F59E0B;
  border-color: #FBBF24;
  color: #121917;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.38);
}
.rocker-btn.active .led-jewel {
  background: #121917 !important;
  box-shadow: none !important;
}
.led-jewel {
  width: 7px; height: 7px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.cyan-led    { background: #38BDF8; }
.amber-led   { background: #F59E0B; }
.magenta-led { background: #34D399; }
.blue-led    { background: #60A5FA; }
.orange-led  { background: #FB923C; }
.red-led     { background: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.55); }

/* Select Box & Compact Filter Deck */
.deck-controls-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px var(--gutter);
}
.deck-selects-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.deck-inputs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.select-pod, .search-pod, .brand-pod, .reset-pod {
  min-width: 0;
}
.telemetry-select-wrapper {
  position: relative;
  width: 100%;
}
.telemetry-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: #141C19;
  border: 1px solid #2D3E38;
  border-radius: var(--r-base);
  color: #E8EFEA;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 28px 9px 10px;
  cursor: pointer;
  min-width: 0;
  box-shadow: var(--inset-well);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.telemetry-select:hover {
  border-color: #F59E0B;
  background: #1B2723;
}
.telemetry-select:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}
.telemetry-select.filter-active {
  border-color: #F59E0B;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
}
.telemetry-select option {
  background: #141C19;
  color: #E8EFEA;
}
.select-indicator {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: #F59E0B; font-size: 9px; pointer-events: none;
}

/* Pulsante Reset Rapido Filtri */
.telemetry-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid #EF4444;
  border-radius: var(--r-base);
  color: #FCA5A5;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.18);
}
.telemetry-reset-btn:hover {
  background: #EF4444;
  color: #121917;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}
.telemetry-reset-btn:active {
  transform: translateY(0);
}

@media (max-width: 960px) {
  .deck-selects-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .deck-inputs-row {
    grid-template-columns: 1fr 1fr;
  }
  .reset-pod {
    grid-column: 1 / -1;
  }
  .reset-pod .control-pod-label {
    display: none;
  }
  .telemetry-reset-btn {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .deck-selects-row,
  .deck-inputs-row {
    grid-template-columns: 1fr;
  }
}

/* Search Input */
.search-pod { flex: 1; min-width: 0; }
.telemetry-input-well {
  display: flex;
  align-items: center;
  min-height: 36px;
  background: #111816;
  border: 1px solid #2E3F38;
  border-radius: var(--r-base);
  padding: 6px 10px;
  gap: var(--space-sm);
  box-shadow: var(--inset-well);
}
.telemetry-input-well:focus-within {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}
.prompt-symbol { font-family: var(--font-mono); color: #F59E0B; font-size: 14px; font-weight: 700; }
.telemetry-search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #E8EFEA;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.telemetry-search-field::placeholder { color: #647B72; font-size: 9px; }
.blinking-block {
  font-family: var(--font-mono);
  color: #F59E0B;
  font-size: 11px;
  animation: blockBlink 1s step-end infinite;
  opacity: 0;
}
.telemetry-input-well:focus-within .blinking-block { opacity: 1; }
@keyframes blockBlink { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* Sorting Bar */
.deck-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-sm) var(--gutter);
  background: #151D1A;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.sorting-controls { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.label-tech { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; color: var(--on-surface-variant); text-transform: uppercase; font-weight: 700; }
.sort-tag-btn {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: #1B2421;
  border: 1px solid #2E3F38;
  border-radius: var(--r-base);
  color: #B8C9C2;
  cursor: pointer;
  transition: all 0.15s;
}
.sort-tag-btn:hover { border-color: #F59E0B; color: #FCD34D; }
.sort-tag-btn.active {
  border-color: #FBBF24;
  color: #121917;
  background: #F59E0B;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.30);
}

.action-buttons-group { display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }

/* ─── BOTTONI ARCADE & AZIONI ───────────────────────────────────────────── */
.arcade-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 15px;
  background: #1B2421;
  border: 1px solid #354A42;
  border-radius: var(--r-base);
  color: #E2EBE7;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.arcade-action-btn:hover {
  border-color: #F59E0B;
  color: #FCD34D;
  background: #232F2B;
  transform: translateY(-1px);
}
.arcade-action-btn:active { transform: translateY(1px); }

.file-upload-label { cursor: pointer; }

.arcade-turbo-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 9px 20px;
  background: #F59E0B;
  border: 2px solid #D97706;
  border-radius: var(--r-base);
  color: #121917;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.30);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.arcade-turbo-btn:hover {
  background: #FBBF24;
  border-color: #F59E0B;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.42);
  transform: translateY(-1px);
}
.arcade-turbo-btn:active { transform: translateY(1px); }
.turbo-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #121917;
  box-shadow: 0 0 4px rgba(18, 25, 23, 0.45);
}

/* Mini Rocker Switch */
.rocker-switch-mini { position: relative; display: inline-block; width: 34px; height: 18px; cursor: pointer; }
.rocker-switch-mini input { opacity: 0; width: 0; height: 0; }
.rocker-slider-mini {
  position: absolute; inset: 0;
  background: #121917;
  border: 1px solid #354A42;
  border-radius: var(--r-full);
  transition: 0.25s;
}
.rocker-slider-mini::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  left: 2px; top: 50%;
  transform: translateY(-50%);
  background: #9BAEA6;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.rocker-switch-mini input:checked + .rocker-slider-mini { background: #F59E0B; border-color: #D97706; }
.rocker-switch-mini input:checked + .rocker-slider-mini::before { transform: translate(16px, -50%); background: #121917; }

/* ─── SEZIONE VETRINA MODELLI ───────────────────────────────────────────── */
.models-inventory-section { padding: 0; }
.section-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.banner-title { display: flex; align-items: center; gap: var(--space-md); }
.neon-line {
  display: inline-block;
  width: 4px; height: 28px;
  background: linear-gradient(180deg, #F59E0B, #D97706);
  border-radius: var(--r-full);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.banner-title h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F3F7F5;
}
.active-count-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--r-sm);
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.12);
  font-weight: 700;
}
.quick-batch-tools { display: flex; gap: var(--space-sm); align-items: center; }
.text-link-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #1B2421;
  border: 1px dashed #3B5048;
  border-radius: var(--r-base);
  color: #B8C9C2;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.text-link-btn:hover { border-color: #F59E0B; color: #F59E0B; background: #222E2A; }

/* ─── GRIGLIA CARD MODELLINI ────────────────────────────────────────────── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: var(--space-lg);
}

/* Card Modellino — Industrial Workbench (#1B2421) */
.model-card {
  background: #1B2421;
  border: 1px solid #2D3E38;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(245, 158, 11, 0.35);
  border-color: #F59E0B;
}

/* Card Header */
.card-utility-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141C19;
  border-bottom: 1px solid #283731;
  padding: 6px var(--space-md);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: #8CA299;
  text-transform: uppercase;
  font-weight: 700;
}
.card-status-badge {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  border: 1px solid;
  font-weight: 700;
}
.status-COMPLETED      { border-color: #34D399; color: #6EE7B7; background: rgba(52, 211, 153, 0.14); }
.status-WIP            { border-color: #F59E0B; color: #FCD34D; background: rgba(245, 158, 11, 0.18); }
.status-BACKLOG        { border-color: #60A5FA; color: #93C5FD; background: rgba(96, 165, 250, 0.14); }
.status-IN_TRANSIT     { border-color: #2DD4BF; color: #5EEAD4; background: rgba(45, 212, 191, 0.14); }
.status-WISHLIST       { border-color: #FB923C; color: #FDBA74; background: rgba(251, 146, 60, 0.14); }
.status-NOT_INTERESTED { border-color: #EF4444; color: #FCA5A5; background: rgba(239, 68, 68, 0.14); }
.status-OTHER          { border-color: #94A3B8; color: #CBD5E1; background: rgba(148, 163, 184, 0.14); }

/* ─── FOTO SCATOLA: Più grande, proporzione uniforme & cornice dedicata ─── */
.card-photo-area {
  width: 100%;
  height: 235px;
  flex-shrink: 0;
  overflow: hidden;
  background: #101715;
  position: relative;
  border-bottom: 1px solid #2B3B35;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boxart-card-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #141D1A;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.05) 0%, rgba(12, 18, 16, 0.45) 100%),
    linear-gradient(to right, rgba(167, 204, 189, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 204, 189, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 16px 16px, 16px 16px;
  border: 1px solid #2A3A34;
  border-radius: var(--r-base);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.card-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card-photo-img.boxart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  padding: 8px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65));
}
.model-card:hover .card-photo-img { transform: scale(1.045); }

.boxart-stamp-pill {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(18, 25, 23, 0.90);
  color: #FCD34D;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}
.boxart-stamp-pill.detail-stamp {
  bottom: 12px;
  right: 12px;
  font-size: 9px;
  padding: 4px 10px;
}
.boxart-detail-banner {
  background-color: #111816;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.05) 0%, rgba(10, 15, 13, 0.5) 100%),
    linear-gradient(to right, rgba(167, 204, 189, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 204, 189, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  border-radius: var(--r-md);
  border: 1px solid #2E3F38;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 240px;
  max-height: 350px;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
}
.boxart-detail-banner img {
  max-height: 315px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
}

.card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-sm);
  background: #141C19;
}
.card-photo-placeholder .ph-icon { font-size: 40px; opacity: 0.45; }
.card-photo-placeholder .ph-scale {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #F59E0B;
}
.card-photo-placeholder .ph-cat {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--on-surface-variant);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Corpo Card */
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.card-model-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #F3F7F5;
  line-height: 1.35;
  margin: 0;
}
.card-model-name .card-model-title {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: #F3F7F5;
}
.card-model-name .card-model-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #F59E0B;
}
.card-brand-scale {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.card-brand {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #A7BAB2;
  text-transform: uppercase;
  font-weight: 700;
}
.card-scale-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E2EBE7;
  background: #141C19;
  border: 1px solid #33463E;
  border-radius: var(--r-sm);
  padding: 2px 7px;
}
.card-scale-tag.scale-tamiya-gp {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.55);
  font-weight: 800;
}
.card-scale-tag.scale-f1-other {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.5);
  font-weight: 800;
}
.card-kitcode {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--r-sm);
  padding: 1px 7px;
}

/* Barra Progresso Card — Giallo Industriale (#F59E0B) */
.card-wip-section { margin-top: auto; padding-top: 4px; }
.card-wip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.card-wip-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: #8CA299; text-transform: uppercase; font-weight: 600; }
.card-wip-pct { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #F59E0B; }
.card-progress-track {
  height: 6px;
  background: #101715;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1px solid #2A3A34;
}
.card-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, #D97706 0%, #F59E0B 65%, #FBBF24 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  transition: width 0.8s ease;
}

.card-stage-text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #8CA299;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Actions */
.card-actions-row {
  display: flex;
  gap: var(--space-sm);
  padding: 8px 16px;
  border-top: 1px solid #283731;
  background: #151D1A;
}
.card-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px;
  background: #1B2421;
  border: 1px solid #33463E;
  border-radius: var(--r-sm);
  color: #E2EBE7;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}
.card-btn:hover {
  border-color: #F59E0B;
  color: #121917;
  background: #F59E0B;
}
.card-btn-danger:hover {
  border-color: var(--error);
  color: #ffffff !important;
  background: var(--error);
}

/* ─── EMPTY STATE ───────────────────────────────────────────────────────── */
.empty-state-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #33463E;
  border-radius: var(--r-lg);
  text-align: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: #1B2421;
}
.empty-icon { font-size: 52px; }
.empty-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #F3F7F5; }
.empty-desc { font-family: var(--font-body); font-size: 13px; color: var(--on-surface-variant); max-width: 440px; line-height: 1.6; }
.empty-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER BAR ────────────────────────────────────────────────────────── */
.cockpit-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #1B2421 0%, #141C19 100%);
  border: var(--border-chassis);
  border-bottom: 3px solid #F59E0B;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--space-sm) var(--gutter);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
.footer-cluster-left, .footer-cluster-right { display: flex; align-items: center; gap: var(--space-md); }
.cluster-divider { color: #344740; }
.cluster-flag { color: #F59E0B; font-weight: 700; }
.glow-text-cyan { color: #FCD34D; font-weight: 700; }
.footer-cluster-center { font-size: 18px; }
.footer-up-btn { color: #F59E0B; text-decoration: none; font-weight: 700; }
.footer-up-btn:hover { color: #FCD34D; }

/* ─── MODALI & FORM ─────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 12, 11, 0.78);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: backdropFadeIn 0.2s ease;
}
@keyframes backdropFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-console-window {
  background: #1B2421;
  border: 1px solid #354A42;
  border-top: 3px solid #F59E0B;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  animation: modalSlideIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideIn { from { opacity: 0; transform: scale(0.95) translateY(15px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.detail-console { max-width: 740px; }

.modal-window-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #141C19;
  border-bottom: 1px solid var(--outline-variant);
  padding: var(--space-md) var(--space-lg);
  position: sticky; top: 0; z-index: 5;
}
.modal-title-box { display: flex; flex-direction: column; gap: 2px; }
.modal-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: #F59E0B; text-transform: uppercase; font-weight: 700; }
.modal-window-header h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #F3F7F5; }
.modal-close-btn {
  background: #1B2421;
  border: 1px solid #354A42;
  border-radius: var(--r-base);
  color: #C4D4CD;
  font-size: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close-btn:hover { border-color: var(--error); color: #FCA5A5; background: rgba(239, 68, 68, 0.15); }

.modal-form { padding: var(--space-lg); }
.form-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.form-column { display: flex; flex-direction: column; gap: var(--space-md); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #F59E0B; font-weight: 700; }
.input-well {
  background: #111816;
  border: 1px solid #2E3F38;
  border-radius: var(--r-base);
  overflow: hidden;
  box-shadow: var(--inset-well);
}
.input-well:focus-within { border-color: #F59E0B; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18); }
.cockpit-input, .cockpit-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #E8EFEA;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
}
.cockpit-input::placeholder, .cockpit-textarea::placeholder { color: #60766D; }
.cockpit-textarea { resize: vertical; min-height: 72px; }
.select-styled { color: #E8EFEA; background-color: #111816; }
.select-styled option { background-color: #1B2421; color: #E8EFEA; }

/* Status Radio */
.status-radio-deck { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.status-radio-pill input { display: none; }
.pill-body {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #2E3F38;
  border-radius: var(--r-base);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C4D4CD;
  cursor: pointer;
  transition: all 0.15s;
  background: #141C19;
}
.pill-body:hover { border-color: #F59E0B; color: #FCD34D; }
.status-radio-pill input:checked + .pill-body {
  border-color: #FBBF24;
  color: #121917;
  background: #F59E0B;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.30);
}

/* WIP Calibration Box */
.wip-calibration-box {
  background: #141C19;
  border: 1px solid #2C3C36;
  border-radius: var(--r-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.wip-cal-header { display: flex; justify-content: space-between; align-items: center; }
.cal-title { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-surface-variant); font-weight: 700; }
.cal-val { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #F59E0B; }
.neon-fader-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #0F1614;
  border: 1px solid #2C3C36;
  border-radius: var(--r-full);
  outline: none;
}
.neon-fader-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: var(--r-sm);
  background: #F59E0B;
  border: 2px solid #121917;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

/* Photo Upload Box */
.photo-upload-binnacle {
  border: 1px dashed #3A4F47;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #141C19;
}
.photo-preview-well { width: 100%; height: 175px; background: #101715; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#formPhotoPreview { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-sm);
  cursor: pointer;
}
.placeholder-icon { font-size: 36px; opacity: 0.45; }
.placeholder-text { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; color: var(--on-surface-variant); text-transform: uppercase; font-weight: 700; }
.placeholder-sub { font-family: var(--font-mono); font-size: 7px; color: #6E857B; }
.photo-buttons-row { display: flex; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: #151D1A; border-top: 1px solid #283731; }
.btn-micro {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px;
  background: #1B2421;
  border: 1px solid #354A42;
  border-radius: var(--r-sm);
  color: #E2EBE7;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}
.btn-micro:hover { border-color: #F59E0B; color: #F59E0B; }

/* Modal Footer */
.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid #283731;
  background: #141C19;
  margin-top: var(--space-lg);
}

/* ─── SCHEDA DETTAGLIO ──────────────────────────────────────────────────── */
.detail-body-content { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
.detail-photo-banner {
  width: 100%; max-height: 320px;
  border-radius: var(--r-md); overflow: hidden;
  background: #101715; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #2C3C36;
}
.detail-photo-banner img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; padding: 10px; }
.detail-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-md); }
.detail-info-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #141C19;
  border: 1px solid #273630;
  border-radius: var(--r-base);
  padding: 8px 10px;
}
.detail-info-label { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #F59E0B; font-weight: 700; }
.detail-info-value { font-family: var(--font-body); font-size: 14px; color: #F3F7F5; font-weight: 700; }
.detail-notes-block { background: #141C19; border: 1px solid #2B3B35; border-radius: var(--r-md); padding: var(--space-md); font-family: var(--font-body); font-size: 13px; color: #C9D8D1; line-height: 1.7; }
.detail-actions-row { display: flex; gap: var(--space-md); justify-content: flex-end; }

/* ─── TASTO BOXART SULLE CARD & OVERLAY ──────────────────────────────────── */
.card-btn-boxart {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.5);
  color: #FCD34D;
  font-weight: 700;
}
.card-btn-boxart:hover {
  background: #F59E0B;
  color: #121917;
  border-color: #FBBF24;
}
.boxart-quick-overlay-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(18, 25, 23, 0.92);
  color: #FCD34D;
  border: 1px solid #F59E0B;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
.boxart-card-container:hover .boxart-quick-overlay-btn {
  opacity: 1;
  transform: translateY(0);
}
.boxart-quick-overlay-btn:hover {
  background: #F59E0B;
  color: #121917;
  border-color: #FBBF24;
}
.detail-boxart-action-bar {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px 0;
}
.detail-boxart-action-bar button {
  width: 100%;
  padding: 10px 16px;
  font-size: 11px;
}

/* ─── MODAL BOXART IMPORT STUDIO ─────────────────────────────────────────── */
.boxart-modal-window {
  max-width: 840px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.boxart-modal-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
}
.boxart-preview-panel {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  background: #141C19;
  border: 1px solid #2C3C36;
  border-radius: var(--r-md);
  padding: var(--space-md);
}
@media (max-width: 600px) {
  .boxart-preview-panel { flex-direction: column; }
}
.boxart-preview-container {
  position: relative;
  width: 210px;
  height: 138px;
  flex-shrink: 0;
  background: #101715;
  border: 1px solid #2E3F38;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}
.boxart-preview-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 6px;
}
.boxart-preview-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  background: #121917;
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 2px 5px;
  border-radius: 2px;
}
.boxart-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.boxart-preview-kitcode {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 0.08em;
}
.boxart-preview-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #F3F7F5;
  line-height: 1.3;
}
.boxart-preview-hint {
  font-family: var(--font-body);
  font-size: 11px;
  color: #9BAEA6;
  line-height: 1.4;
  margin: 4px 0 0 0;
}
.boxart-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid #283731;
  padding-top: var(--space-md);
}
.boxart-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.boxart-section-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  background: #F59E0B;
  color: #121917;
  border-radius: 3px;
  padding: 1px 6px;
}
.boxart-section-header h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #F3F7F5;
  margin: 0;
}
.boxart-section-desc {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8CA299;
}
.boxart-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-sm);
  margin-top: 4px;
}
.boxart-site-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  background: #141C19;
  border: 1px solid #2E3F38;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: #E8EFEA;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.boxart-site-btn:hover {
  border-color: #F59E0B;
  background: #202C28;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.16);
}
.site-icon { font-size: 20px; }
.site-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.site-info strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #F3F7F5;
}
.site-info small {
  font-family: var(--font-body);
  font-size: 9px;
  color: #8CA299;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #F59E0B;
  font-weight: 900;
}
.boxart-url-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
@media (max-width: 600px) {
  .boxart-url-row { flex-direction: column; align-items: stretch; }
}
.boxart-url-row .cockpit-input {
  flex: 1;
  background: #111816;
  border: 1px solid #2E3F38;
  border-radius: var(--r-base);
}
.boxart-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  background: #141C19;
  border: 2px dashed #3A4F47;
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.boxart-upload-label:hover {
  background: #1F2B27;
  border-color: #F59E0B;
}
.boxart-upload-label span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #F59E0B;
  letter-spacing: 0.05em;
}
.boxart-upload-label small {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #8CA299;
}
.boxart-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cockpit-chassis { padding: 0 var(--gutter); }
  .instrument-cluster-grid { grid-template-columns: 1fr 1fr; }
  .deck-controls-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .binnacle-header {
    position: relative !important;
    top: auto !important;
    padding: var(--space-sm) var(--space-md);
  }
  .header-utility-strip {
    display: none;
  }
  .cockpit-title-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }
  .branding-group {
    justify-content: flex-start;
    gap: var(--space-sm);
  }
  .crest-svg { width: 60px; height: 26px; }
  .main-headline {
    font-size: 15px;
    letter-spacing: 0.04em;
    text-align: left;
    white-space: normal;
  }
  .headline-sub {
    text-align: left;
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .brand-dropdown-toggle { max-width: none; }
  .cassette-deck-unit { min-width: unset; }
  .cassette-well { padding: 3px 6px; }
  .tape-window { height: 30px; }
  .tape-reel { width: 26px; height: 26px; }
  .transport-key {
    padding: 4px 2px;
    min-width: 38px;
    font-size: 8px;
  }
  .instrument-cluster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .radial-gauge-svg {
    max-width: 95px;
    height: 68px;
  }
  .gauge-well {
    padding: 4px 5px;
    gap: 2px;
  }
  .digital-val { font-size: 14px; }
  .strip-tag { font-size: 7px; }
  .strip-status { font-size: 6px; }
  .gauge-footer-labels { font-size: 6px; }
  .vfd-display-box { padding: 2px 4px; }
  .vfd-prefix { font-size: 8.5px; }
  .vfd-value { font-size: 10.5px; }
  .boost-track { height: 4px; }
  .scale-pill { font-size: 6.5px; padding: 1px 4px; }
  .card-photo-area { height: 210px; }

  .deck-controls-row { grid-template-columns: 1fr; }
  .form-grid-layout { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .dual-telemetry-cluster { grid-template-columns: 1fr; gap: 4px; }
  .models-grid { grid-template-columns: 1fr; }
}


/* =============================================================================
   MYMODELKIT — VINTAGE 70s-80s MODEL KIT BOX THEME
   Palette: Paper #F4F0E4 | Ink #14213D | Red #D62828 | Blue #1D3F8F
   ============================================================================= */

:root {
  --paper:                    #F4F0E4;
  --paper-card:               #FAF7EE;
  --paper-deep:               #EAE3D0;
  --ink:                      #14213D;
  --ink-muted:                #3C4A68;
  --accent-red:               #D62828;
  --accent-blue:              #1D3F8F;

  --surface:                  #FAF7EE;
  --surface-dim:              #EFE9D8;
  --surface-bright:           #FFFFFF;
  --surface-container-lowest: #EFE9D8;
  --surface-container-low:    #F4F0E4;
  --surface-container:        #FAF7EE;
  --surface-container-high:   #FFFFFF;
  --surface-container-highest:#E6DEC9;

  --on-surface:               #14213D;
  --on-surface-variant:       #3C4A68;
  --inverse-surface:          #14213D;
  --inverse-on-surface:       #F4F0E4;

  --outline:                  #14213D;
  --outline-variant:          rgba(20, 33, 61, 0.28);
  --surface-tint:             #D62828;

  --primary:                  #D62828;
  --on-primary:               #FFFFFF;
  --primary-container:        rgba(214, 40, 40, 0.10);
  --on-primary-container:     #9B1C1C;
  --neon-magenta:             #D62828;

  --secondary:                #1D3F8F;
  --on-secondary:             #FFFFFF;
  --secondary-container:      rgba(29, 63, 143, 0.10);
  --on-secondary-container:   #1D3F8F;
  --neon-cyan:                #1D3F8F;

  --tertiary:                 #D62828;
  --neon-amber:               #D62828;
  --neon-orange:              #D62828;

  --background:               #F4F0E4;
  --on-background:            #14213D;
  --surface-variant:          #EFE9D8;

  --font-display: 'Arial Black', 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'Consolas', 'Courier New', monospace;

  --r-sm:   6px;
  --r-base: 8px;
  --r-md:   12px;
  --r-lg:   14px;
  --r-xl:   18px;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  background-image:
    radial-gradient(rgba(20, 33, 61, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
}

::-webkit-scrollbar-track { background: #E6DEC9; }
::-webkit-scrollbar-thumb { background: #14213D; }
::-webkit-scrollbar-thumb:hover { background: #D62828; }

/* ─── STICKY TOP BAR ────────────────────────────────────────────────────────── */
.sticky-top-bar {
  background: rgba(244, 240, 228, 0.96);
  border-top: 4px solid var(--accent-red);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 3px 0 rgba(29, 63, 143, 0.22);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.sticky-top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
  pointer-events: none;
}
.telemetry-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.telemetry-sub,
.vfd-divider {
  color: var(--ink-muted);
}
.vfd-indicator.active-dot {
  background: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.25);
}

.user-account-sticky-btn {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 var(--accent-red);
}
.user-account-sticky-btn:hover {
  background: var(--accent-blue);
  border-color: var(--ink);
  color: #FFFFFF;
  box-shadow: 3px 3px 0 var(--accent-red);
}

/* ─── VINTAGE BOX HEADER & HERO ─────────────────────────────────────────────── */
.binnacle-header {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  padding: 0;
}
.cockpit-title-bar {
  padding: 1.25rem 1.5rem 1.1rem;
  border-bottom: none;
  background: transparent;
}
.branding-group {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.brand-logo-wrap {
  flex-shrink: 0;
}
.brand-vintage-logo {
  display: block;
  height: 76px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 0 rgba(20, 33, 61, 0.12));
}
.title-text-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.main-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: var(--ink);
}
.headline-sub {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Doppia banda rossa/blu vintage (come la scatola) */
.vintage-twin-band {
  width: 100%;
  height: 14px;
  background: linear-gradient(
    180deg,
    #D62828 0px,
    #D62828 6px,
    #FAF7EE 6px,
    #FAF7EE 8px,
    #1D3F8F 8px,
    #1D3F8F 14px
  );
  border-top: 2px solid var(--ink);
}

/* ─── FILTER CONSOLE (FLIGHT DECK -> VINTAGE CATALOG CONTROLS) ──────────────── */
.control-deck-frame {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}
.deck-title-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--accent-red);
  box-shadow: inset 0 -2px 0 var(--accent-blue);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 11px;
  padding: 9px 16px;
}
.deck-decor {
  color: #F4F0E4;
  opacity: 0.75;
  font-family: var(--font-mono);
  font-style: normal;
}
.control-pod-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.telemetry-select-wrapper {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 rgba(20, 33, 61, 0.16);
}
.telemetry-select-wrapper:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29, 63, 143, 0.18);
}
.telemetry-select {
  color: var(--ink);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
}
.telemetry-select option {
  background: #FFFFFF;
  color: var(--ink);
}
.select-indicator {
  color: var(--accent-red);
}
.telemetry-input-well {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 rgba(20, 33, 61, 0.16);
}
.telemetry-input-well:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29, 63, 143, 0.18);
}
.prompt-symbol {
  color: var(--accent-red);
  font-weight: 900;
}
.telemetry-search-field {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}
.telemetry-search-field::placeholder {
  color: #7A869F;
}
.blinking-block {
  color: var(--accent-blue);
}
.btn-clear-brand {
  color: var(--accent-red);
}

.telemetry-reset-btn {
  background: var(--paper);
  color: var(--accent-red);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}
.telemetry-reset-btn:hover {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--ink);
}

.deck-sub-bar {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
}

/* Buttons */
.arcade-action-btn,
.file-upload-label {
  background: #FFFFFF;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}
.arcade-action-btn:hover,
.file-upload-label:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.arcade-turbo-btn {
  background: var(--accent-red);
  color: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 3px 3px 0 var(--ink);
}
.arcade-turbo-btn:hover {
  background: #B91C1C;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.turbo-led {
  background: #F4F0E4;
  box-shadow: none;
}

/* ─── SECTION BANNER ────────────────────────────────────────────────────────── */
.section-banner {
  border-bottom: 3px solid var(--ink);
  padding-bottom: 0.65rem;
}
.neon-line {
  width: 10px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #D62828 0 50%, #1D3F8F 50% 100%);
  box-shadow: none;
}
.banner-title h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-shadow: none;
}
.active-count-tag {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 12px;
}

/* ─── MODEL CARDS: VINTAGE KIT BOX LABEL STYLE ──────────────────────────────── */
.model-card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.model-card:hover {
  transform: translate(-2px, -3px);
  border-color: var(--ink);
  box-shadow: 7px 8px 0 var(--ink);
}
.card-utility-strip {
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
  padding: 7px 12px;
}
.card-tag {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
}
.card-status-badge {
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  border: 1.5px solid var(--ink);
  padding: 2px 9px;
}
.card-status-badge.status-WISHLIST       { background: #FEF3C7; color: #92400E; border-color: #92400E; }
.card-status-badge.status-BACKLOG        { background: #DBEAFE; color: #1D3F8F; border-color: #1D3F8F; }
.card-status-badge.status-IN_TRANSIT     { background: #CCFBF1; color: #0F766E; border-color: #0F766E; }
.card-status-badge.status-WIP            { background: #FFEDD5; color: #C2410C; border-color: #C2410C; }
.card-status-badge.status-COMPLETED      { background: #DCFCE7; color: #166534; border-color: #166534; }
.card-status-badge.status-NOT_INTERESTED { background: #FEE2E2; color: #991B1B; border-color: #991B1B; }
.card-status-badge.status-OTHER          { background: #E2E8F0; color: #334155; border-color: #334155; }

/* Box art container + doppia banda rossa/blu separatrice */
.card-photo-area {
  background: #FFFFFF;
  position: relative;
  border-bottom: none;
  padding-bottom: 10px;
}
.card-photo-area::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(
    180deg,
    #D62828 0px,
    #D62828 4px,
    #FAF7EE 4px,
    #FAF7EE 6px,
    #1D3F8F 6px,
    #1D3F8F 10px
  );
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  z-index: 2;
}
.boxart-stamp-pill {
  background: rgba(20, 33, 61, 0.88);
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.card-body {
  background: var(--paper-card);
  padding: 12px 14px 10px;
}
.card-model-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.25;
}
.card-model-title {
  color: var(--ink);
}
.card-model-code {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 11px;
}
.card-brand {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10.5px;
}
.card-scale-tag {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.card-scale-tag.scale-tamiya-gp {
  background: var(--accent-red) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
}

.card-wip-label { color: var(--ink-muted); font-weight: 700; }
.card-wip-pct   { color: var(--accent-blue); font-weight: 800; }
.card-progress-track {
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  height: 8px;
}
.card-progress-fill {
  background: linear-gradient(90deg, #D62828 0%, #1D3F8F 100%);
  border-radius: 999px;
}
.card-stage-text {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
}

.card-actions-row {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
  padding: 8px 12px;
}
.card-btn {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 var(--ink);
}
.card-btn:hover {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--ink);
}
.card-btn-danger {
  background: var(--accent-red) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
}

/* ─── EMPTY STATE ───────────────────────────────────────────────────────────── */
.empty-state-card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
}
.empty-title {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}
.empty-desc { color: var(--ink-muted); }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.cockpit-footer-bar {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
}
.cluster-flag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-red);
}
.cluster-item,
.cluster-divider {
  color: var(--ink-muted);
}
.cluster-item strong,
.glow-text-cyan {
  color: var(--accent-blue);
  text-shadow: none;
}
.vintage-footer-stripe {
  display: inline-block;
  width: 90px;
  height: 10px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(180deg, #D62828 0 50%, #1D3F8F 50% 100%);
}
.footer-up-btn {
  background: #FFFFFF;
  color: var(--ink) !important;
  border: 2px solid var(--ink) !important;
  border-radius: 8px;
  font-weight: 800;
}
.footer-up-btn:hover {
  background: var(--accent-blue);
  color: #FFFFFF !important;
}

/* ─── MODALS (ACCOUNT, DETAIL, DATA ENTRY, BOXART STUDIO) ───────────────────── */
.modal-backdrop {
  background: rgba(20, 33, 61, 0.65);
  backdrop-filter: blur(4px);
}
.modal-console-window {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
  overflow: hidden;
}
.modal-window-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 6px solid var(--accent-red);
  box-shadow: inset 0 -3px 0 var(--accent-blue);
}
.modal-tag {
  color: #F4F0E4;
  opacity: 0.8;
}
.modal-title-box h3 {
  font-family: var(--font-display);
  font-style: italic;
  color: #FFFFFF;
}
.modal-close-btn {
  background: var(--accent-red);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
}
.modal-close-btn:hover {
  background: #B91C1C;
}
.modal-footer-actions {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
}

/* Form inputs & labels inside modals */
.form-label,
.detail-spec-label {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
}
.input-well,
.cockpit-input,
.cockpit-select,
.cockpit-textarea {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--ink);
}
.input-well {
  border: 2px solid var(--ink);
  border-radius: 8px;
}
.cockpit-input::placeholder,
.cockpit-textarea::placeholder {
  color: #7A869F;
}

/* Auth modal & Valuation panel inside Account modal */
#authLoginSection {
  background: var(--paper-card) !important;
  border: 2px solid var(--ink) !important;
  border-radius: 12px !important;
}
#authStatusBanner {
  background: #FFFFFF !important;
  border: 2px solid var(--ink) !important;
  color: var(--ink) !important;
}
#betaSlotBanner {
  background: #FFFFFF !important;
  border: 2px solid var(--accent-blue) !important;
  color: var(--ink) !important;
}
#betaSlotStatus {
  color: var(--accent-blue) !important;
  font-weight: 800;
}
#btnAuthLoginSubmit {
  background: var(--accent-blue) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
}
#btnAuthGoogle {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border: 2px solid var(--ink) !important;
  font-weight: 800;
}
#btnAuthGoogle:hover {
  background: var(--paper-deep) !important;
}

.gauge-pod-binnacle {
  background: var(--paper-card);
  border: 2px solid var(--ink) !important;
  border-radius: 12px;
  overflow: hidden;
}
.binnacle-header-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--accent-red);
}
.strip-tag,
.strip-status {
  color: var(--paper);
}
.gauge-well.aux-well {
  background: var(--paper-card);
}
.telem-title {
  color: var(--ink-muted);
  font-weight: 800;
}
.vfd-display-box {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
}
.vfd-prefix { color: var(--accent-red); }
.vfd-value  { color: var(--ink); text-shadow: none; }
.boost-header { color: var(--ink); font-weight: 700; }
.boost-track {
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
}
.boost-fill {
  background: linear-gradient(90deg, #D62828 0%, #1D3F8F 100%);
}
.scale-pill {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 700;
}
#adminUsersList > div {
  background: #FFFFFF !important;
  border: 1.5px solid var(--ink) !important;
  color: var(--ink) !important;
}
#adminUsersList span,
#adminUsersList div {
  color: var(--ink);
}

/* Detail modal & Boxart studio cards */
.detail-spec-card,
.detail-notes-box,
.detail-photo-frame,
.boxart-site-card,
.photo-dropzone {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
}
.detail-spec-value,
.detail-notes-text,
.boxart-site-title {
  color: var(--ink);
}
.boxart-site-desc {
  color: var(--ink-muted);
}
.boxart-site-card:hover {
  border-color: var(--accent-red);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-micro {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
}
.btn-micro:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
}

/* Toast notifications */
.toast-notification,
.telemetry-toast {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 2px solid var(--accent-red) !important;
  box-shadow: 4px 4px 0 rgba(20, 33, 61, 0.35) !important;
}

/* Mobile polish */
@media (max-width: 768px) {
  .cockpit-title-bar {
    padding: 0.9rem 1rem 0.85rem;
  }
  .branding-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .brand-vintage-logo {
    height: 54px;
  }
  .main-headline {
    font-size: 1.35rem;
  }
  .headline-sub {
    font-size: 0.88rem;
  }
}


/* =============================================================================
   MYMODELKIT — VINTAGE DARK NAVY EDITION (DEFAULT THEME)
   Sfondo: #14213D | Card/Superfici: #1B2B4D | Testi & Bordi: #F4F0E4
   Accenti in coppia: Rosso #D62828 & Blu #4A74D9
   (Stesso layout, font e struttura: solo inversione cromatica ad alto contrasto)
   ============================================================================= */

:root {
  --paper:                    #14213D;
  --paper-card:               #1B2B4D;
  --paper-deep:               #101B33;
  --ink:                      #F4F0E4;
  --ink-muted:                #CBC5B5;
  --accent-red:               #D62828;
  --accent-blue:              #4A74D9;

  --surface:                  #1B2B4D;
  --surface-dim:              #101B33;
  --surface-bright:           #243761;
  --surface-container-lowest: #0D162B;
  --surface-container-low:    #14213D;
  --surface-container:        #1B2B4D;
  --surface-container-high:   #22355D;
  --surface-container-highest:#2A406E;

  --on-surface:               #F4F0E4;
  --on-surface-variant:       #CBC5B5;
  --inverse-surface:          #F4F0E4;
  --inverse-on-surface:       #14213D;

  --outline:                  #F4F0E4;
  --outline-variant:          rgba(244, 240, 228, 0.32);
  --surface-tint:             #4A74D9;

  --primary:                  #D62828;
  --on-primary:               #F4F0E4;
  --primary-container:        rgba(214, 40, 40, 0.22);
  --on-primary-container:     #FFD6D6;
  --neon-magenta:             #D62828;

  --secondary:                #4A74D9;
  --on-secondary:             #F4F0E4;
  --secondary-container:      rgba(74, 116, 217, 0.22);
  --on-secondary-container:   #C7D9FF;
  --neon-cyan:                #4A74D9;

  --tertiary:                 #D62828;
  --neon-amber:               #F4F0E4;
  --neon-orange:              #F4F0E4;

  --error:                    #FF6B6B;
  --on-error:                 #14213D;
  --error-container:          rgba(214, 40, 40, 0.28);

  --background:               #14213D;
  --on-background:            #F4F0E4;
  --surface-variant:          #1B2B4D;
}

body {
  background-color: #14213D;
  color: #F4F0E4;
  background-image: radial-gradient(rgba(244, 240, 228, 0.055) 1px, transparent 1px);
  background-size: 20px 20px;
}

::-webkit-scrollbar-track { background: #0E172B; }
::-webkit-scrollbar-thumb { background: #4A74D9; }
::-webkit-scrollbar-thumb:hover { background: #D62828; }

/* ─── STICKY TOP BAR ────────────────────────────────────────────────────────── */
.sticky-top-bar {
  background: rgba(20, 33, 61, 0.96);
  border-top: 4px solid #D62828;
  border-bottom: 3px solid #F4F0E4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.sticky-top-bar::before {
  background: #4A74D9;
}
.telemetry-label { color: #F4F0E4; }
.telemetry-sub,
.vfd-divider { color: #CBC5B5; }
.vfd-indicator.active-dot {
  background: #D62828;
  box-shadow: 0 0 0 2px rgba(244, 240, 228, 0.35);
}

.user-account-sticky-btn {
  background: #F4F0E4;
  color: #14213D;
  border: 2px solid #F4F0E4;
  box-shadow: 2px 2px 0 #D62828;
}
.user-account-sticky-btn:hover {
  background: #4A74D9;
  color: #F4F0E4;
  border-color: #F4F0E4;
  box-shadow: 3px 3px 0 #D62828;
}

/* ─── HEADER & HERO (con riquadro chiaro attorno al logo attuale) ───────────── */
.binnacle-header {
  background: #1B2B4D;
  border: 3px solid #F4F0E4;
  box-shadow: 6px 6px 0 #0B1222;
}
.brand-logo-wrap {
  background: #F4F0E4;
  padding: 6px 10px;
  border-radius: 12px;
  border: 2px solid #F4F0E4;
  box-shadow: 3px 3px 0 #0B1222;
}
.main-headline {
  color: #F4F0E4;
  -webkit-text-fill-color: #F4F0E4;
}
.headline-sub {
  color: #D4CEBE;
}
.vintage-twin-band {
  background: linear-gradient(
    180deg,
    #D62828 0px,
    #D62828 6px,
    #1B2B4D 6px,
    #1B2B4D 8px,
    #4A74D9 8px,
    #4A74D9 14px
  );
  border-top: 2px solid #F4F0E4;
}

/* ─── FILTER CONSOLE ────────────────────────────────────────────────────────── */
.control-deck-frame {
  background: #1B2B4D;
  border: 3px solid #F4F0E4;
  box-shadow: 5px 5px 0 #0B1222;
}
.deck-title-strip {
  background: #101B33;
  color: #F4F0E4;
  border-bottom: 4px solid #D62828;
  box-shadow: inset 0 -2px 0 #4A74D9;
}
.deck-decor { color: #CBC5B5; }
.control-pod-label { color: #F4F0E4; }

.telemetry-select-wrapper,
.telemetry-input-well {
  background: #14213D;
  border: 2px solid #F4F0E4;
  box-shadow: 2px 2px 0 #0B1222;
}
.telemetry-select-wrapper:focus-within,
.telemetry-input-well:focus-within {
  border-color: #4A74D9;
  box-shadow: 0 0 0 3px rgba(74, 116, 217, 0.38);
}
.telemetry-select,
.telemetry-search-field {
  color: #F4F0E4;
  background: transparent;
}
.telemetry-select option {
  background: #14213D;
  color: #F4F0E4;
}
.telemetry-search-field::placeholder {
  color: #9FB0D1;
}
.select-indicator { color: #F4F0E4; }
.prompt-symbol    { color: #D62828; }
.blinking-block   { color: #4A74D9; }
.btn-clear-brand  { color: #FF7B7B; }

.telemetry-reset-btn {
  background: #14213D;
  color: #F4F0E4;
  border: 2px solid #F4F0E4;
  box-shadow: 2px 2px 0 #D62828;
}
.telemetry-reset-btn:hover {
  background: #D62828;
  color: #F4F0E4;
  border-color: #F4F0E4;
}

.deck-sub-bar {
  background: #101B33;
  border-top: 2px solid rgba(244, 240, 228, 0.45);
}

/* Buttons & Disabled States */
.arcade-action-btn,
.file-upload-label {
  background: #14213D;
  color: #F4F0E4;
  border: 2px solid #F4F0E4;
  box-shadow: 2px 2px 0 #0B1222;
}
.arcade-action-btn:hover,
.file-upload-label:hover {
  background: #4A74D9;
  color: #FFFFFF;
  border-color: #F4F0E4;
  box-shadow: 3px 3px 0 #0B1222;
}
.arcade-turbo-btn {
  background: #D62828;
  color: #F4F0E4;
  border: 2px solid #F4F0E4;
  box-shadow: 3px 3px 0 #0B1222;
}
.arcade-turbo-btn:hover {
  background: #B91C1C;
  color: #FFFFFF;
  box-shadow: 4px 4px 0 #0B1222;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  color: #B8C2D8 !important;
  border-color: rgba(244, 240, 228, 0.4) !important;
}

/* ─── SECTION BANNER ────────────────────────────────────────────────────────── */
.section-banner {
  border-bottom: 3px solid #F4F0E4;
}
.neon-line {
  background: linear-gradient(180deg, #D62828 0 50%, #4A74D9 50% 100%);
}
.banner-title h2 { color: #F4F0E4; }
.active-count-tag {
  background: #F4F0E4;
  color: #14213D;
  border: 2px solid #F4F0E4;
}

/* ─── MODEL CARDS: DARK VINTAGE BOX LABEL ───────────────────────────────────── */
.model-card {
  background: #1B2B4D;
  border: 3px solid #F4F0E4;
  box-shadow: 5px 5px 0 #0B1222;
}
.model-card:hover {
  border-color: #F4F0E4;
  box-shadow: 7px 8px 0 #0B1222;
}
.card-utility-strip {
  background: #101B33;
  border-bottom: 2px solid rgba(244, 240, 228, 0.55);
}
.card-tag { color: #CBC5B5; }

/* High-contrast status badges on dark navy */
.card-status-badge {
  border-width: 1.5px;
  border-style: solid;
}
.card-status-badge.status-WISHLIST       { background: #3D2E10; color: #FDE68A; border-color: #F59E0B; }
.card-status-badge.status-BACKLOG        { background: #1B356B; color: #DBEAFE; border-color: #4A74D9; }
.card-status-badge.status-IN_TRANSIT     { background: #103B3A; color: #99F6E4; border-color: #2DD4BF; }
.card-status-badge.status-WIP            { background: #4A2411; color: #FED7AA; border-color: #FB923C; }
.card-status-badge.status-COMPLETED      { background: #133B24; color: #BBF7D0; border-color: #4ADE80; }
.card-status-badge.status-NOT_INTERESTED { background: #4C151B; color: #FECACA; border-color: #D62828; }
.card-status-badge.status-OTHER          { background: #26344F; color: #E2E8F0; border-color: #94A3B8; }

.card-photo-area {
  background: #101B33;
}
.card-photo-area::after {
  background: linear-gradient(
    180deg,
    #D62828 0px,
    #D62828 4px,
    #1B2B4D 4px,
    #1B2B4D 6px,
    #4A74D9 6px,
    #4A74D9 10px
  );
  border-top: 2px solid #F4F0E4;
  border-bottom: 2px solid #F4F0E4;
}
.boxart-stamp-pill {
  background: rgba(20, 33, 61, 0.92);
  color: #F4F0E4;
  border: 1px solid #F4F0E4;
}

.card-body { background: #1B2B4D; }
.card-model-name,
.card-model-title { color: #F4F0E4; }
.card-model-code  { color: #93B4FF; }
.card-brand {
  background: #F4F0E4;
  color: #14213D;
}
.card-scale-tag {
  background: #14213D !important;
  color: #F4F0E4 !important;
  border: 1.5px solid #F4F0E4 !important;
}
.card-scale-tag.scale-tamiya-gp {
  background: #D62828 !important;
  color: #F4F0E4 !important;
  border-color: #F4F0E4 !important;
}

.card-wip-label { color: #CBC5B5; }
.card-wip-pct   { color: #93B4FF; }
.card-progress-track {
  background: #101B33;
  border: 1.5px solid #F4F0E4;
}
.card-progress-fill {
  background: linear-gradient(90deg, #D62828 0%, #4A74D9 100%);
}
.card-stage-text { color: #D4CEBE; }

.card-actions-row {
  background: #101B33;
  border-top: 2px solid rgba(244, 240, 228, 0.45);
}
.card-btn {
  background: #4A74D9;
  color: #FFFFFF;
  border: 2px solid #F4F0E4;
  box-shadow: 2px 2px 0 #0B1222;
}
.card-btn:hover {
  background: #D62828;
  color: #FFFFFF;
  border-color: #F4F0E4;
}
.card-btn-danger {
  background: #D62828 !important;
  color: #F4F0E4 !important;
  border-color: #F4F0E4 !important;
}

/* ─── EMPTY STATE & FOOTER ──────────────────────────────────────────────────── */
.empty-state-card {
  background: #1B2B4D;
  border: 3px solid #F4F0E4;
  box-shadow: 5px 5px 0 #0B1222;
  color: #F4F0E4;
}
.empty-title { color: #F4F0E4; }
.empty-desc  { color: #CBC5B5; }

.cockpit-footer-bar {
  background: #1B2B4D;
  border: 3px solid #F4F0E4;
  box-shadow: 4px 4px 0 #0B1222;
  color: #F4F0E4;
}
.cluster-flag { color: #FF7B7B; }
.cluster-item,
.cluster-divider { color: #CBC5B5; }
.cluster-item strong,
.glow-text-cyan { color: #93B4FF; }
.vintage-footer-stripe {
  border: 1.5px solid #F4F0E4;
  background: linear-gradient(180deg, #D62828 0 50%, #4A74D9 50% 100%);
}
.footer-up-btn {
  background: #14213D;
  color: #F4F0E4 !important;
  border: 2px solid #F4F0E4 !important;
}
.footer-up-btn:hover {
  background: #4A74D9;
  color: #FFFFFF !important;
}

/* ─── MODALS, INPUTS, AUTH & ERROR MESSAGES ─────────────────────────────────── */
.modal-backdrop {
  background: rgba(8, 13, 25, 0.78);
}
.modal-console-window {
  background: #14213D;
  border: 3px solid #F4F0E4;
  box-shadow: 8px 8px 0 #080E1B;
  color: #F4F0E4;
}
.modal-window-header {
  background: #101B33;
  color: #F4F0E4;
  border-bottom: 6px solid #D62828;
  box-shadow: inset 0 -3px 0 #4A74D9;
}
.modal-tag { color: #CBC5B5; }
.modal-title-box h3 { color: #F4F0E4; }
.modal-close-btn {
  background: #D62828;
  color: #F4F0E4;
  border: 2px solid #F4F0E4;
}
.modal-close-btn:hover { background: #B91C1C; }
.modal-footer-actions {
  background: #101B33;
  border-top: 2px solid rgba(244, 240, 228, 0.45);
}

.form-label,
.detail-spec-label { color: #F4F0E4; }

.input-well,
.cockpit-input,
.cockpit-select,
.cockpit-textarea {
  background: #1B2B4D;
  color: #F4F0E4;
  border-color: #F4F0E4;
}
.cockpit-select option {
  background: #14213D;
  color: #F4F0E4;
}
.cockpit-input::placeholder,
.cockpit-textarea::placeholder {
  color: #9FB0D1;
}
.cockpit-input:focus,
.cockpit-select:focus,
.cockpit-textarea:focus {
  outline: none;
  border-color: #4A74D9;
}

#authLoginSection {
  background: #1B2B4D !important;
  border: 2px solid #F4F0E4 !important;
  color: #F4F0E4 !important;
}
#authStatusBanner {
  background: #1B2B4D !important;
  border: 2px solid #F4F0E4 !important;
  color: #F4F0E4 !important;
}
#betaSlotBanner {
  background: #101B33 !important;
  border: 2px solid #4A74D9 !important;
  color: #F4F0E4 !important;
}
#betaSlotStatus {
  color: #93B4FF !important;
}
#btnAuthLoginSubmit {
  background: #4A74D9 !important;
  color: #FFFFFF !important;
  border-color: #F4F0E4 !important;
}
#btnAuthLoginSubmit:hover {
  background: #3862C7 !important;
}
#btnAuthGoogle {
  background: #F4F0E4 !important;
  color: #14213D !important;
  border: 2px solid #F4F0E4 !important;
}
#btnAuthGoogle:hover {
  background: #FFFFFF !important;
}

.gauge-pod-binnacle {
  background: #1B2B4D;
  border: 2px solid #F4F0E4 !important;
}
.binnacle-header-strip {
  background: #101B33;
  color: #F4F0E4;
  border-bottom: 3px solid #D62828;
  box-shadow: inset 0 -1.5px 0 #4A74D9;
}
.strip-tag,
.strip-status { color: #F4F0E4; }
.gauge-well.aux-well { background: #1B2B4D; }
.telem-title { color: #CBC5B5; }
.vfd-display-box {
  background: #101B33;
  border: 2px solid #F4F0E4;
  color: #F4F0E4;
}
.vfd-prefix { color: #FF7B7B; }
.vfd-value  { color: #F4F0E4; }
.boost-header { color: #F4F0E4; }
.boost-track {
  background: #101B33;
  border: 1.5px solid #F4F0E4;
}
.boost-fill {
  background: linear-gradient(90deg, #D62828 0%, #4A74D9 100%);
}
.scale-pill {
  background: #14213D;
  color: #F4F0E4;
  border: 1.5px solid #F4F0E4;
}
#adminUsersList > div {
  background: #14213D !important;
  border: 1.5px solid rgba(244, 240, 228, 0.55) !important;
  color: #F4F0E4 !important;
}
#adminUsersList span,
#adminUsersList div { color: #F4F0E4; }

.detail-spec-card,
.detail-notes-box,
.detail-photo-frame,
.boxart-site-card,
.photo-dropzone {
  background: #1B2B4D;
  border: 2px solid #F4F0E4;
  color: #F4F0E4;
}
.detail-spec-value,
.detail-notes-text,
.boxart-site-title { color: #F4F0E4; }
.boxart-site-desc  { color: #CBC5B5; }
.boxart-site-card:hover {
  border-color: #4A74D9;
  box-shadow: 3px 3px 0 #0B1222;
}
.btn-micro {
  background: #14213D;
  color: #F4F0E4;
  border: 1.5px solid #F4F0E4;
}
.btn-micro:hover {
  background: #4A74D9;
  color: #FFFFFF;
}

/* Error / Alert & Toast Contrast */
.toast-notification,
.telemetry-toast {
  background: #101B33 !important;
  color: #F4F0E4 !important;
  border: 2px solid #F4F0E4 !important;
  box-shadow: 4px 4px 0 #D62828 !important;
}
.toast-notification.error,
.telemetry-toast.error {
  background: #5C1216 !important;
  color: #F4F0E4 !important;
  border-color: #FF8A8A !important;
}


/* =============================================================================
   MYMODELKIT — BRITISH RACING GREEN EDITION (DEFAULT THEME)
   Sfondo: #0F1F1A | Card/Pannelli: #172B24 | Bordi: #2E4A40
   Testi: #F4F0E4 | Secondari & Label: #9DB5AA
   Accento Principale: Oro #E3B23C (testo #0F1F1A) | Secondario: Rosso #D62828
   (Stesso layout, font, contenuti e logo attuale: solo palette coerente)
   ============================================================================= */

:root {
  --paper:                    #0F1F1A;
  --paper-card:               #172B24;
  --paper-deep:               #11231D;
  --ink:                      #F4F0E4;
  --ink-muted:                #9DB5AA;
  --accent-gold:              #E3B23C;
  --accent-red:               #D62828;
  --accent-blue:              #E3B23C;

  --surface:                  #172B24;
  --surface-dim:              #11231D;
  --surface-bright:           #1E372E;
  --surface-container-lowest: #0B1713;
  --surface-container-low:    #0F1F1A;
  --surface-container:        #172B24;
  --surface-container-high:   #1D342C;
  --surface-container-highest:#244036;

  --on-surface:               #F4F0E4;
  --on-surface-variant:       #9DB5AA;
  --inverse-surface:          #F4F0E4;
  --inverse-on-surface:       #0F1F1A;

  --outline:                  #2E4A40;
  --outline-variant:          #2E4A40;
  --surface-tint:             #E3B23C;

  --primary:                  #E3B23C;
  --on-primary:               #0F1F1A;
  --primary-container:        rgba(227, 178, 60, 0.16);
  --on-primary-container:     #F4F0E4;
  --neon-magenta:             #E3B23C;

  --secondary:                #9DB5AA;
  --on-secondary:             #0F1F1A;
  --secondary-container:      rgba(157, 181, 170, 0.14);
  --on-secondary-container:   #F4F0E4;
  --neon-cyan:                #9DB5AA;

  --tertiary:                 #E3B23C;
  --neon-amber:               #9DB5AA;
  --neon-orange:              #9DB5AA;

  --error:                    #D62828;
  --on-error:                 #F4F0E4;
  --error-container:          rgba(214, 40, 40, 0.22);

  --background:               #0F1F1A;
  --on-background:            #F4F0E4;
  --surface-variant:          #172B24;
}

body {
  background-color: #0F1F1A;
  color: #F4F0E4;
  background-image: radial-gradient(rgba(157, 181, 170, 0.065) 1px, transparent 1px);
  background-size: 20px 20px;
}

::-webkit-scrollbar-track { background: #0B1713; }
::-webkit-scrollbar-thumb { background: #2E4A40; }
::-webkit-scrollbar-thumb:hover { background: #E3B23C; }

/* ─── STICKY TOP BAR ────────────────────────────────────────────────────────── */
.sticky-top-bar {
  background: rgba(15, 31, 26, 0.96);
  border-top: 3px solid #E3B23C;
  border-bottom: 2px solid #2E4A40;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.sticky-top-bar::before {
  height: 2px;
  background: #D62828;
}
.telemetry-label { color: #F4F0E4; }
.telemetry-sub,
.vfd-divider { color: #9DB5AA; }
.vfd-indicator.active-dot {
  background: #E3B23C;
  box-shadow: 0 0 0 2px rgba(227, 178, 60, 0.3);
}

.user-account-sticky-btn {
  background: #E3B23C;
  color: #0F1F1A;
  border: 2px solid #E3B23C;
  box-shadow: 2px 2px 0 #07100D;
}
.user-account-sticky-btn:hover {
  background: #ECC25A;
  color: #0F1F1A;
  border-color: #F4F0E4;
  box-shadow: 3px 3px 0 #07100D;
}

/* ─── HEADER & HERO (logo attuale invariato, bande sottili oro + rosso) ─────── */
.binnacle-header {
  background: #172B24;
  border: 2px solid #2E4A40;
  box-shadow: 6px 6px 0 #07100D;
}
.brand-logo-wrap {
  background: #F4F0E4;
  border: 2px solid #2E4A40;
  box-shadow: 3px 3px 0 #07100D;
}
.main-headline {
  color: #F4F0E4;
  -webkit-text-fill-color: #F4F0E4;
}
.headline-sub {
  color: #9DB5AA;
}
.vintage-twin-band {
  height: 8px;
  background: linear-gradient(
    180deg,
    #E3B23C 0px,
    #E3B23C 3px,
    #172B24 3px,
    #172B24 5px,
    #D62828 5px,
    #D62828 8px
  );
  border-top: 1px solid #2E4A40;
}

/* ─── FILTER CONSOLE ────────────────────────────────────────────────────────── */
.control-deck-frame {
  background: #172B24;
  border: 2px solid #2E4A40;
  box-shadow: 5px 5px 0 #07100D;
}
.deck-title-strip {
  background: #11231D;
  color: #9DB5AA;
  border-bottom: 3px solid #E3B23C;
  box-shadow: inset 0 -1.5px 0 #D62828;
}
.deck-decor { color: #9DB5AA; }
.control-pod-label { color: #9DB5AA; }

.telemetry-select-wrapper,
.telemetry-input-well {
  background: #0F1F1A;
  border: 2px solid #2E4A40;
  box-shadow: 2px 2px 0 #07100D;
}
.telemetry-select-wrapper:focus-within,
.telemetry-input-well:focus-within {
  border-color: #E3B23C;
  box-shadow: 0 0 0 3px rgba(227, 178, 60, 0.28);
}
.telemetry-select,
.telemetry-search-field {
  color: #F4F0E4;
  background: transparent;
}
.telemetry-select option {
  background: #0F1F1A;
  color: #F4F0E4;
}
.telemetry-search-field::placeholder {
  color: #7D998D;
}
.select-indicator { color: #E3B23C; }
.prompt-symbol    { color: #9DB5AA; }
.blinking-block   { color: #E3B23C; }
.btn-clear-brand  { color: #E3B23C; }

/* Reset filtri: azione distruttiva -> rosso secondario #D62828 */
.telemetry-reset-btn {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 2px solid #D62828;
  box-shadow: 2px 2px 0 #07100D;
}
.telemetry-reset-btn:hover {
  background: #D62828;
  color: #F4F0E4;
  border-color: #D62828;
}

.deck-sub-bar {
  background: #11231D;
  border-top: 2px solid #2E4A40;
}

/* Bottoni: principali oro #E3B23C (testo #0F1F1A), secondari sobri su #0F1F1A */
.arcade-action-btn,
.file-upload-label {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 2px solid #2E4A40;
  box-shadow: 2px 2px 0 #07100D;
}
.arcade-action-btn:hover,
.file-upload-label:hover {
  background: #E3B23C;
  color: #0F1F1A;
  border-color: #E3B23C;
  box-shadow: 3px 3px 0 #07100D;
}
.arcade-turbo-btn {
  background: #E3B23C;
  color: #0F1F1A;
  border: 2px solid #E3B23C;
  box-shadow: 3px 3px 0 #07100D;
}
.arcade-turbo-btn:hover {
  background: #ECC25A;
  color: #0F1F1A;
  border-color: #F4F0E4;
  box-shadow: 4px 4px 0 #07100D;
}
.turbo-led {
  background: #0F1F1A;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  color: #9DB5AA !important;
  border-color: #2E4A40 !important;
}

/* ─── SECTION BANNER ────────────────────────────────────────────────────────── */
.section-banner {
  border-bottom: 2px solid #2E4A40;
}
.neon-line {
  background: linear-gradient(180deg, #E3B23C 0 50%, #D62828 50% 100%);
}
.banner-title h2 { color: #F4F0E4; }
.active-count-tag {
  background: #172B24;
  color: #9DB5AA;
  border: 2px solid #2E4A40;
}

/* ─── MODEL CARDS: BRITISH RACING GREEN BOX LABEL ───────────────────────────── */
.model-card {
  background: #172B24;
  border: 2px solid #2E4A40;
  box-shadow: 5px 5px 0 #07100D;
}
.model-card:hover {
  border-color: #E3B23C;
  box-shadow: 7px 8px 0 #07100D;
}
.card-utility-strip {
  background: #11231D;
  border-bottom: 1.5px solid #2E4A40;
}
.card-tag { color: #9DB5AA; }

/* Badge di stato sobri: bordo #2E4A40 e testo crema #F4F0E4 senza colori accesi */
.card-status-badge,
.card-status-badge.status-WISHLIST,
.card-status-badge.status-BACKLOG,
.card-status-badge.status-IN_TRANSIT,
.card-status-badge.status-WIP,
.card-status-badge.status-COMPLETED,
.card-status-badge.status-NOT_INTERESTED,
.card-status-badge.status-OTHER {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 1.5px solid #2E4A40;
}

.card-photo-area {
  background: #11231D;
  padding-bottom: 6px;
}
/* Doppia banda sottile oro + rosso sotto la foto */
.card-photo-area::after {
  height: 6px;
  background: linear-gradient(
    180deg,
    #E3B23C 0px,
    #E3B23C 2.5px,
    #172B24 2.5px,
    #172B24 3.5px,
    #D62828 3.5px,
    #D62828 6px
  );
  border-top: 1px solid #2E4A40;
  border-bottom: 1px solid #2E4A40;
}
.boxart-stamp-pill {
  background: rgba(15, 31, 26, 0.92);
  color: #9DB5AA;
  border: 1px solid #2E4A40;
}

.card-body { background: #172B24; }
.card-model-name,
.card-model-title { color: #F4F0E4; }
.card-model-code  { color: #9DB5AA; }
.card-brand {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 1px solid #2E4A40;
}
.card-scale-tag {
  background: #0F1F1A !important;
  color: #F4F0E4 !important;
  border: 1.5px solid #2E4A40 !important;
}
/* Badge scala speciale (1/20) -> rosso secondario #D62828 */
.card-scale-tag.scale-tamiya-gp {
  background: #D62828 !important;
  color: #F4F0E4 !important;
  border-color: #D62828 !important;
}

.card-wip-label { color: #9DB5AA; }
.card-wip-pct   { color: #E3B23C; }
.card-progress-track {
  background: #2E4A40;
  border: 1px solid #2E4A40;
}
.card-progress-fill {
  background: #E3B23C;
}
.card-stage-text { color: #9DB5AA; }

.card-actions-row {
  background: #11231D;
  border-top: 1.5px solid #2E4A40;
}
/* Bottone principale "DETTAGLI": oro #E3B23C con testo scuro #0F1F1A */
.card-btn {
  background: #E3B23C;
  color: #0F1F1A;
  border: 2px solid #E3B23C;
  box-shadow: 2px 2px 0 #07100D;
}
.card-btn:hover {
  background: #ECC25A;
  color: #0F1F1A;
  border-color: #F4F0E4;
}
.card-btn-danger {
  background: #D62828 !important;
  color: #F4F0E4 !important;
  border-color: #D62828 !important;
}
.card-btn-danger:hover {
  background: #B91C1C !important;
  color: #F4F0E4 !important;
  border-color: #F4F0E4 !important;
}

/* ─── EMPTY STATE & FOOTER ──────────────────────────────────────────────────── */
.empty-state-card {
  background: #172B24;
  border: 2px solid #2E4A40;
  box-shadow: 5px 5px 0 #07100D;
  color: #F4F0E4;
}
.empty-title { color: #F4F0E4; }
.empty-desc  { color: #9DB5AA; }

.cockpit-footer-bar {
  background: #172B24;
  border: 2px solid #2E4A40;
  box-shadow: 4px 4px 0 #07100D;
  color: #F4F0E4;
}
.cluster-flag { color: #9DB5AA; }
.cluster-item,
.cluster-divider { color: #9DB5AA; }
.cluster-item strong,
.glow-text-cyan { color: #F4F0E4; }
.vintage-footer-stripe {
  height: 7px;
  border: 1px solid #2E4A40;
  background: linear-gradient(180deg, #E3B23C 0 50%, #D62828 50% 100%);
}
.footer-up-btn {
  background: #0F1F1A;
  color: #F4F0E4 !important;
  border: 1.5px solid #2E4A40 !important;
}
.footer-up-btn:hover {
  background: #E3B23C;
  color: #0F1F1A !important;
  border-color: #E3B23C !important;
}

/* ─── MODALS, INPUTS, AUTH & DETAIL INSPECTOR ───────────────────────────────── */
.modal-backdrop {
  background: rgba(7, 16, 13, 0.80);
}
.modal-console-window {
  background: #0F1F1A;
  border: 2px solid #2E4A40;
  box-shadow: 8px 8px 0 #060D0A;
  color: #F4F0E4;
}
.modal-window-header {
  background: #11231D;
  color: #F4F0E4;
  border-bottom: 4px solid #E3B23C;
  box-shadow: inset 0 -2px 0 #D62828;
}
.modal-tag { color: #9DB5AA; }
.modal-title-box h3 { color: #F4F0E4; }
.modal-close-btn {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 2px solid #2E4A40;
}
.modal-close-btn:hover {
  background: #D62828;
  color: #F4F0E4;
  border-color: #D62828;
}
.modal-footer-actions {
  background: #11231D;
  border-top: 2px solid #2E4A40;
}

.form-label,
.detail-spec-label,
.detail-info-label { color: #9DB5AA; }

.input-well,
.cockpit-input,
.cockpit-select,
.cockpit-textarea {
  background: #172B24;
  color: #F4F0E4;
  border-color: #2E4A40;
}
.input-well:focus-within {
  border-color: #E3B23C;
  box-shadow: 0 0 0 2px rgba(227, 178, 60, 0.25);
}
.cockpit-select option {
  background: #0F1F1A;
  color: #F4F0E4;
}
.cockpit-input::placeholder,
.cockpit-textarea::placeholder {
  color: #7D998D;
}
.cockpit-input:focus,
.cockpit-select:focus,
.cockpit-textarea:focus {
  border-color: #E3B23C;
}

#authLoginSection {
  background: #172B24 !important;
  border: 2px solid #2E4A40 !important;
  color: #F4F0E4 !important;
}
#authStatusBanner {
  background: #172B24 !important;
  border: 2px solid #2E4A40 !important;
  color: #F4F0E4 !important;
}
#betaSlotBanner {
  background: #0F1F1A !important;
  border: 1.5px solid #2E4A40 !important;
  color: #9DB5AA !important;
}
#betaSlotStatus {
  color: #E3B23C !important;
}
#btnAuthLoginSubmit {
  background: #E3B23C !important;
  color: #0F1F1A !important;
  border-color: #E3B23C !important;
}
#btnAuthLoginSubmit:hover {
  background: #ECC25A !important;
  color: #0F1F1A !important;
}
#btnAuthGoogle {
  background: #0F1F1A !important;
  color: #F4F0E4 !important;
  border: 2px solid #2E4A40 !important;
}
#btnAuthGoogle:hover {
  background: #172B24 !important;
  border-color: #E3B23C !important;
}

.gauge-pod-binnacle {
  background: #172B24;
  border: 2px solid #2E4A40 !important;
}
.binnacle-header-strip {
  background: #11231D;
  color: #9DB5AA;
  border-bottom: 2px solid #E3B23C;
  box-shadow: inset 0 -1px 0 #D62828;
}
.strip-tag,
.strip-status { color: #9DB5AA; }
.gauge-well.aux-well { background: #172B24; }
.telem-title { color: #9DB5AA; }
.vfd-display-box {
  background: #0F1F1A;
  border: 1.5px solid #2E4A40;
  color: #F4F0E4;
}
.vfd-prefix { color: #E3B23C; }
.vfd-value  { color: #F4F0E4; }
.boost-header { color: #9DB5AA; }
.boost-track {
  background: #2E4A40;
  border: 1px solid #2E4A40;
}
.boost-fill {
  background: #E3B23C;
}
.scale-pill {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 1px solid #2E4A40;
}
#adminUsersList > div {
  background: #0F1F1A !important;
  border: 1.5px solid #2E4A40 !important;
  color: #F4F0E4 !important;
}
#adminUsersList span,
#adminUsersList div { color: #F4F0E4; }

.detail-info-block,
.detail-notes-block,
.detail-spec-card,
.detail-notes-box,
.detail-photo-frame,
.boxart-site-card,
.photo-dropzone {
  background: #172B24;
  border: 1.5px solid #2E4A40;
  color: #F4F0E4;
}
.detail-info-value,
.detail-spec-value,
.detail-notes-text,
.boxart-site-title { color: #F4F0E4; }
.boxart-site-desc  { color: #9DB5AA; }
.boxart-site-card:hover {
  border-color: #E3B23C;
  box-shadow: 3px 3px 0 #07100D;
}
.btn-micro {
  background: #0F1F1A;
  color: #F4F0E4;
  border: 1.5px solid #2E4A40;
}
.btn-micro:hover {
  background: #E3B23C;
  color: #0F1F1A;
  border-color: #E3B23C;
}

/* Status radio pills in Edit modal */
.status-radio-pill {
  background: #172B24;
  border: 1.5px solid #2E4A40;
  color: #F4F0E4;
}
input[name="formStatus"]:checked + .status-radio-pill {
  background: #E3B23C;
  color: #0F1F1A;
  border-color: #E3B23C;
}

/* Error / Alert & Toast Contrast */
.toast-notification,
.telemetry-toast {
  background: #172B24 !important;
  color: #F4F0E4 !important;
  border: 2px solid #E3B23C !important;
  box-shadow: 4px 4px 0 #07100D !important;
}
.toast-notification.error,
.telemetry-toast.error {
  background: #4E1414 !important;
  color: #F4F0E4 !important;
  border-color: #D62828 !important;
}
