:root {
  /* Brand Colors */
  --c-bg: #07090b;
  --c-bg-panel: rgba(14, 18, 24, 0.7);
  --c-bg-panel-solid: #0e1218;
  --c-border: rgba(255, 64, 64, 0.2);
  --c-border-subtle: rgba(255, 255, 255, 0.06);
  --c-primary: #ff4040;
  --c-primary-glow: rgba(255, 64, 64, 0.4);
  --c-accent: #ff8a4c;
  --c-accent-glow: rgba(255, 138, 76, 0.3);
  --c-text: #e2e8f0;
  --c-text-muted: #8b9bb4;
  --c-neutral: #94a3b8;
  --c-neutral-border: rgba(148, 163, 184, 0.36);
  --c-neutral-bg: rgba(148, 163, 184, 0.08);
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;

  /* Geometry & Timing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Rajdhani', monospace;
  --font-sans: 'Inter', sans-serif;
}

:root {
  /* Brand Colors */
  --c-bg: #07090b;
  --c-bg-panel: rgba(14, 18, 24, 0.7);
  --c-bg-panel-solid: #0e1218;
  --c-border: rgba(255, 64, 64, 0.2);
  --c-border-subtle: rgba(255, 255, 255, 0.06);
  --c-primary: #ff4040;
  --c-primary-glow: rgba(255, 64, 64, 0.4);
  --c-accent: #ff8a4c;
  --c-accent-glow: rgba(255, 138, 76, 0.3);
  --c-text: #e2e8f0;
  --c-text-muted: #8b9bb4;
  --c-neutral: #94a3b8;
  --c-neutral-border: rgba(148, 163, 184, 0.36);
  --c-neutral-bg: rgba(148, 163, 184, 0.08);
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;

  /* Geometry & Timing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Rajdhani', monospace;
  --font-sans: 'Inter', sans-serif;
}

.hidden { display: none !important; }

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 0;
}

body.app-ready #appContent {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

body.app-ready .hero,
body.app-ready .hero-content,
body.app-ready .hero-left,
body.app-ready .hero-right,
body.app-ready .upload-card,
body.app-ready .dashboard {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.app-ready .hero {
  position: relative;
  min-height: auto !important;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1.2rem, 3vw, 2.5rem) 2.5rem !important;
  overflow: hidden;
}

body.app-ready .hero-content {
  align-items: start !important;
  transform: none !important;
  position: relative;
  z-index: 1;
}

body.app-ready .hero-right {
  align-items: flex-start;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  padding-left: 280px;
  min-height: 100vh;
  cursor: none;
  transition: padding-left var(--transition-smooth);
}

body.sidebar-collapsed {
  padding-left: 80px;
}

body.auth-pending {
  overflow: hidden;
}

body.auth-pending > :not(.boot-shell) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.upload-pending {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   BOOT SHELL — Premium Redesign
═══════════════════════════════════════════════════ */
.boot-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  z-index: 10050;
  background: #060810;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.auth-pending .boot-shell {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hex grid background */
.boot-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,90,54,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,90,54,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
}

/* Ambient glow */
.boot-shell::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,54,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: bootAmbientPulse 3s ease-in-out infinite;
}

/* FX ICON AREA */
.boot-shell__fx {
  position: relative;
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  margin-bottom: -1rem;
}

/* Outer ring — slow rotate */
.boot-shell__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.boot-shell__halo--outer {

border-color: rgba(255, 64, 64, 0.18);
  box-shadow:
    0 0 42px rgba(255, 64, 64, 0.16),
    inset 0 0 30px rgba(255, 64, 64, 0.1);
  animation: bootRotate 16s linear infinite;
}

/* Inner ring — counter rotate */
.boot-shell__halo--inner {
  inset: 18%;
  border: 1px dashed rgba(255,158,94,0.2);
  border-style: dashed;
  border-color: rgba(255, 138, 76, 0.26);
  box-shadow: inset 0 0 22px rgba(255, 138, 76, 0.12);
  animation: bootRotateReverse 8s linear infinite;
}

/* Core pulsing glow */
.boot-shell__core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), rgba(255, 138, 76, 0.2) 32%, rgba(255,64,64,0.1) 58%, transparent 76%);
  box-shadow:
    0 0 28px rgba(255, 64, 64, 0.24),
    0 0 54px rgba(255, 138, 76, 0.12);
  animation: bootPulse 1.7s ease-in-out infinite;
}

/* Scan line */
.boot-shell__scan {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.boot-shell__scan::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 14%;
  top: -18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255, 64, 64, 0.32), rgba(255,255,255,0));
  filter: blur(2px);
  animation: bootScanLine 2.8s ease-in-out infinite;
}

/* The X mark in the center */
.boot-shell__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 245, 245, 0.92);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.22),
    0 0 32px rgba(255, 64, 64, 0.22);
  mix-blend-mode: screen;
  animation: bootMarkFloat 2.4s ease-in-out infinite;
}

.boot-shell__mark::before,
.boot-shell__mark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.7;
  pointer-events: none;
}

.boot-shell__mark::before {
  color: rgba(255, 138, 76, 0.85);
  text-shadow: -4px 0 12px rgba(255, 138, 76, 0.34);
  clip-path: polygon(0 12%, 100% 0, 100% 34%, 0 44%);
  animation: bootMarkGlitchA 1.8s steps(2, end) infinite;
}

.boot-shell__mark::after {
  color: rgba(255, 64, 64, 0.9);
  text-shadow: 4px 0 12px rgba(255, 64, 64, 0.3);
  clip-path: polygon(0 58%, 100% 48%, 100% 100%, 0 88%);
  animation: bootMarkGlitchB 2.1s steps(2, end) infinite;
}

/* LOGO TEXT */
.boot-shell__logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #eef2ff;
  text-shadow: 0 0 24px rgba(255, 64, 64, 0.18);
  animation: bootLogoFloat 2.6s ease-in-out infinite;
}

.boot-shell__logo span {
  color: var(--c-primary);
}

/* BETA tag */
.beta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.48rem;
  border: 1px solid rgba(255, 138, 76, 0.45);
  border-radius: 999px;
  background: rgba(255, 138, 76, 0.12);
  color: var(--c-accent);
  font-family: var(--font-ui);
  font-size: 0.36em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 0 18px rgba(255, 138, 76, 0.12);
}

.beta-tag--boot {
  transform: translateY(-0.18em);
}

/* STATUS TEXT */
.boot-shell__status {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* DETAIL TEXT */
.boot-shell__detail {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 0 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.8);
}

/* PROGRESS BAR */
.boot-shell__loader {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 42px;
  margin-top: 0.35rem;
}

.boot-shell__loader span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255, 138, 76, 0.72), rgba(255, 64, 64, 0.22));
  box-shadow: 0 0 16px rgba(255, 64, 64, 0.22);
  animation: bootBar 1.15s ease-in-out infinite;
  transform-origin: bottom center;
}

.boot-shell__loader span:nth-child(1) { animation-delay: -0.15s; }

.boot-shell__loader span:nth-child(2) { animation-delay: 0s; }
.boot-shell__loader span:nth-child(3) { animation-delay: -0.28s; }
.boot-shell__loader span:nth-child(4) { animation-delay: -0.08s; }
.boot-shell__loader span:nth-child(5) { animation-delay: -0.22s; }

.upload-shell {
  position: fixed;
  inset: 0;
  z-index: 10045;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 64, 64, 0.14), transparent 28%),
    radial-gradient(circle at 50% 68%, rgba(255, 138, 76, 0.08), transparent 24%),
    rgba(7, 9, 11, 0.58);
  backdrop-filter: blur(8px);
}

.upload-shell__panel {
  width: min(520px, 100%);
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 64, 64, 0.22);
  background: rgba(14, 18, 24, 0.76);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  text-align: center;
}

.upload-shell__spinner {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
}

.upload-shell__spinner span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--c-primary);
  border-right-color: rgba(255, 138, 76, 0.7);
  animation: uploadSpin 1.4s linear infinite;
}

.upload-shell__spinner span:nth-child(2) {
  inset: 10px;
  border-top-color: rgba(255,255,255,0.9);
  border-right-color: rgba(255, 64, 64, 0.5);
  animation-duration: 1.1s;
  animation-direction: reverse;
}

.upload-shell__spinner span:nth-child(3) {
  inset: 24px;
  border-top-color: var(--c-accent);
  border-right-color: rgba(255,255,255,0.55);
  animation-duration: 0.9s;
}

.upload-shell__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.9rem;
}

.upload-shell__file {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.upload-shell__meta {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  line-height: 1.6;
}

.upload-shell__progress,
.upload-flow-panel {
  margin-top: 1rem;
}

.upload-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6, #ff8a4c);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.34);
  transition: width 0.35s ease;
}

.upload-progress-percent {
  margin-top: 0.45rem;
  color: #d1fae5;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.upload-shell__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.upload-shell__steps span {
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: rgba(226, 232, 240, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* ═══ KEYFRAMES ═══ */
@keyframes bootAmbientPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes bootRotate {
  to { transform: rotate(360deg); }
}

@keyframes bootRotateReverse {
  to { transform: rotate(-360deg); }
}

@keyframes bootPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.68; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes bootScanLine {
  0% { top: -18%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}

@keyframes bootLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bootBar {
  0%, 100% { height: 10px; opacity: 0.45; }
  50% { height: 42px; opacity: 1; }
}

@keyframes uploadSpin {
  to { transform: rotate(360deg); }
}

@keyframes bootMarkFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}

@keyframes bootMarkGlitchA {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  12% { transform: translate(-4px, -2px); opacity: 0.85; }
  14% { transform: translate(2px, 1px); opacity: 0.45; }
  16% { transform: translate(0, 0); opacity: 0.2; }
  44% { transform: translate(0, 0); opacity: 0.2; }

46% { transform: translate(-3px, 2px); opacity: 0.8; }
  48% { transform: translate(0, 0); opacity: 0.2; }
}

@keyframes bootMarkGlitchB {
  0%, 100% { transform: translate(0, 0); opacity: 0.18; }
  22% { transform: translate(4px, 2px); opacity: 0.78; }
  24% { transform: translate(-2px, -1px); opacity: 0.4; }
  26% { transform: translate(0, 0); opacity: 0.18; }
  62% { transform: translate(0, 0); opacity: 0.18; }
  64% { transform: translate(3px, -2px); opacity: 0.72; }
  66% { transform: translate(0, 0); opacity: 0.18; }
}

/* Background Gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 30%, rgba(255, 64, 64, 0.08), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255, 138, 76, 0.05), transparent 40%),
    linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
  pointer-events: none;
  z-index: -1;
}

/* Grid Pattern Removed as requested, replaced by JS particles */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

/* ═══ CURSOR ═══ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20000;
  box-shadow: 0 0 10px var(--c-primary);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 19999;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  box-shadow: 0 0 15px var(--c-primary-glow), inset 0 0 15px var(--c-primary-glow);
}

.cursor-ring.active {
  width: 60px;
  height: 60px;
  border-color: var(--c-accent);
  transition: all 0.2s;
}

/* ═══ NAVBAR ═══ */
.navbar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  width: 280px;
  height: 100vh;
  background: rgba(7, 9, 11, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid rgba(255, 64, 64, 0.18);
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 1px 0 0 rgba(255,64,64,0.08), 8px 0 32px rgba(0,0,0,0.6);
  transition: width var(--transition-smooth), padding var(--transition-smooth);
  overflow: hidden;
}

body.sidebar-collapsed .navbar {
  width: 80px;
  padding: 2.5rem 0.5rem;
  align-items: center;
}

.nav-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-smooth);
}

body.sidebar-collapsed .nav-brand-row {
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--c-text-muted);
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255, 64, 64, 0.1);
  color: #fff;
  border-color: rgba(255, 64, 64, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: all var(--transition-smooth);
}

body.sidebar-collapsed .nav-logo {
  justify-content: center;
  width: 100%;
  margin-left: 5px;
}

.logo-x {
  color: var(--c-primary);
  font-size: 1.9rem;
  text-shadow: 0 0 20px var(--c-primary-glow), 0 0 40px rgba(255,64,64,0.25);
  transition: text-shadow 0.3s;
}

.logo-text, .logo-beta, .logo-dot {
  transition: opacity 0.3s var(--transition-smooth), visibility 0.3s;
}

body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .logo-beta,
body.sidebar-collapsed .logo-dot {
  opacity: 0;
  visibility: hidden;
  width: 0;
  margin: 0;
  position: absolute;
}

.logo-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.48rem;
  border: 1px solid rgba(255, 138, 76, 0.42);
  border-radius: 999px;
  background: rgba(255, 138, 76, 0.1);
  color: var(--c-accent);
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;

box-shadow: 0 0 14px rgba(255, 138, 76, 0.12);
}

.logo-dot {
  width: 7px; height: 7px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-left: 5px;
  box-shadow: 0 0 12px var(--c-accent), 0 0 24px rgba(255,138,76,0.4);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.75); }
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  max-width: 100%;
  padding: 0 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #6ee7b7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s;
}

body.sidebar-collapsed .session-badge {
  width: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
}

body.sidebar-collapsed .session-badge span {
  display: none;
}

.session-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  animation: sessionPulse 2s ease-in-out infinite;
}
@keyframes sessionPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nav-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  gap: 0.75rem;
  margin-left: 0;
  transition: all var(--transition-smooth);
}

body.sidebar-collapsed .nav-right {
  align-items: center;
}

/* Navbar divider */
.nav-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  margin: 0.5rem 0;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--c-border-subtle);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}

body.sidebar-collapsed .subscription-badge {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
}

.subscription-badge__label,
.subscription-badge strong {
  transition: opacity 0.2s;
}

body.sidebar-collapsed .subscription-badge__label,
body.sidebar-collapsed .subscription-badge strong {
  display: none;
}

body.sidebar-collapsed .subscription-badge::after {
  content: 'P';
  font-weight: 800;
  font-size: 1rem;
}

.subscription-badge.is-success {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1);
  color: #6ee7b7;
}
.subscription-badge.is-success strong { color: #34d399; }

.subscription-badge.is-danger {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}
.subscription-badge.is-danger strong { color: #f87171; }

.subscription-badge.is-warning {
  border-color: rgba(245,158,11,0.28);
  background: rgba(245,158,11,0.08);
  color: #fcd34d;
}
.subscription-badge.is-warning strong { color: #fbbf24; }

.subscription-badge.is-admin {
  border-color: rgba(255,138,76,0.35);
  background: rgba(255,138,76,0.1);
  color: #fdba74;
}
.subscription-badge.is-admin strong { color: var(--c-accent); }

.btn-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 138, 76, 0.35);
  background: rgba(255, 138, 76, 0.1);
  color: var(--c-accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

body.sidebar-collapsed .btn-admin-link {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.btn-admin-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,138,76,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-admin-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 76, 0.6);
  background: rgba(255, 138, 76, 0.18);
  box-shadow: 0 4px 20px rgba(255, 138, 76, 0.25);
  color: #fff;
}
.btn-admin-link:hover::before { opacity: 1; }

.btn-home-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-text-muted);

text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}

body.sidebar-collapsed .btn-home-link {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
}

.btn-home-link:hover {
  color: #fff;
  background: rgba(255,64,64,0.1);
  border-color: rgba(255,64,64,0.25);
  transform: translateX(4px);
}

body.sidebar-collapsed .btn-home-link:hover {
  transform: scale(1.1);
}

.nav-text {
  transition: opacity 0.2s;
}

body.sidebar-collapsed .nav-text {
  display: none;
}

.nav-right .user-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-smooth);
}

body.sidebar-collapsed .user-info {
  align-items: center;
}

.nav-right .user-info:hover {
  border-color: rgba(255,255,255,0.14);
}

.user-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(255,64,64,0.35);
  transition: opacity 0.2s;
}

body.sidebar-collapsed #userName,
body.sidebar-collapsed .user-plan-meta {
  display: none;
}

.user-plan-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-plan-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
  max-width: 172px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-plan-meta span:first-child {
  color: rgba(186, 230, 253, 0.86);
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.12rem 0.38rem;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-chip-time {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}

.mini-chip-credit {
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}

.mini-chip-end {
  border-color: rgba(251, 146, 60, 0.36);
  background: rgba(251, 146, 60, 0.12);
  color: #fed7aa;
}

.btn-logout {
  background: rgba(255,64,64,0.07);
  border: 1px solid rgba(255,64,64,0.25);
  color: rgba(255,100,100,0.9);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

body.sidebar-collapsed .btn-logout {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

body.sidebar-collapsed .btn-logout .nav-text {
  display: none;
}

.btn-logout:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ═══ AUTH SCREEN ═══ */

.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060810;
  z-index: 10000;
  padding: 2rem;
  overflow: hidden;
}

.auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,90,54,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,90,54,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1), transparent 70%);
  pointer-events: none;
}

.auth-screen::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,54,0.08) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
  transition: max-width 0.5s var(--transition-smooth);
  position: relative;
  z-index: 10020;
}

.auth-card {
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,90,54,0.15);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.03);
  animation: cardIn 0.8s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255,90,54,0.15), transparent 60%);
  pointer-events: none;
}

.auth-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #FF5A36, #FF9E5E, transparent);
  box-shadow: 0 0 12px 2px rgba(255,90,54,0.5);
}
@keyframes cardIn {
  from { transform: translateY(40px) rotateX(-10deg); opacity: 0; }
  to { transform: translateY(0) rotateX(0); opacity: 1; }
}

.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; letter-spacing: -1px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25rem; }
.auth-logo span { color: var(--c-primary); }
.auth-header h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.auth-header p { color: var(--c-text-muted); font-size: 0.9rem; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-group label {
  display: block;
  line-height: 1.2;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -0.15rem;
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-toggle:hover {
  color: var(--c-text);
}

.remember-toggle input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--c-primary);
  cursor: pointer;
}

/* Form Rows and Groups */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {

.auth-row { grid-template-columns: 1fr; }
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap--select::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  font-size: 0.95rem;
  color: var(--c-text-muted);
  pointer-events: none;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  color: var(--c-text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.auth-form input:not([type='checkbox']),
.auth-form select {
  width: 100%;
  background: #0a0a0f; /* Matte black input */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 3rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.auth-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
}

.auth-form select:required:invalid {
  color: var(--c-text-muted);
}

.auth-form select option {
  color: #fff;
  background: #0a0a0f;
}

.auth-form input:not([type='checkbox']):focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--c-primary);
  background: rgba(255,64,64,0.03);
  box-shadow: 0 0 20px rgba(255,64,64,0.1), inset 0 0 10px rgba(255,64,64,0.05);
}

.input-wrap:focus-within .input-icon {
  color: var(--c-primary);
}

.auth-form .input-invalid {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.12), inset 0 0 8px rgba(239, 68, 68, 0.05);
}

.field-error {
  min-height: 1rem;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--c-danger);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.field-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-footer { text-align: center; margin-top: 2rem; font-size: 0.9rem; color: var(--c-text-muted); }
.auth-footer a { color: var(--c-primary); text-decoration: none; font-weight: 700; margin-left: 5px; }
.auth-footer a:hover { text-decoration: underline; }

.btn-neon.full { width: 100%; justify-content: center; }
.auth-form > .btn-neon.full { margin-top: 0.35rem; }
.auth-form > .auth-footer { margin-top: 0.75rem; }

/* ═══ TOAST SYSTEM ═══ */
.auth-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30,30,40,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,64,64,0.3);
  border-left: 4px solid var(--c-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  z-index: 100000;
  transition: all 0.5s var(--ease-out-expo);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  pointer-events: none;
}

.auth-toast.show { transform: translateX(-50%) translateY(0); }
.auth-toast.error { border-left-color: #ff4040; border-color: rgba(255,64,64,0.5); }
.auth-toast.success { border-left-color: #40ff40; border-color: rgba(64,255,64,0.5); }

.hero-bg-lines {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255,64,64,0.03) 100px, rgba(255,64,64,0.03) 101px);
  z-index: -1;
  animation: moveLines 60s linear infinite;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  color: var(--c-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.eyebrow-line { width: 40px; height: 1px; background: var(--c-accent); box-shadow: 0 0 10px var(--c-accent); }

.hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.title-row { 
  display: block; 
  color: #fff;
}
.title-row.title-sub { 
  font-size: 2.2rem; 
  color: #c9dbf2;
}
.char-animate { display: inline-block; transition: transform var(--transition-fast), color var(--transition-fast); }
.char-animate:hover { transform: translateY(-5px) scale(1.1); color: var(--c-primary); text-shadow: 0 0 20px var(--c-primary-glow); }
.char-animate.accent { color: var(--c-text); }
.char-animate.accent:hover { color: var(--c-accent); text-shadow: 0 0 20px var(--c-accent-glow); }

.title-sep { color: var(--c-text-muted); margin: 0 0.5rem; font-weight: 300; }
.title-sep.sm { font-size: 2rem; margin: 0 1rem; }

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
}

.feature-chip:hover {
  background: rgba(255,64,64,0.1);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,64,64,0.15);
}

.chip-icon { filter: grayscale(1); transition: filter var(--transition-fast); }
.feature-chip:hover .chip-icon { filter: grayscale(0); }

/* Upload Card */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}


.upload-card {
  width: 100%;
  max-width: 450px;
  background: var(--c-bg-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow var(--transition-smooth);
}

.upload-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,64,64,0.1);
}

.upload-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,90,54,0.4), transparent 40%, transparent 60%, rgba(255,90,54,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: uploadBorderPulse 3s ease-in-out infinite;
}

@keyframes uploadBorderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(255,90,54,0.3); }
}

.dropzone {
  position: relative;
  z-index: 2;
  border: 2px dashed rgba(255,90,54,0.2);
  border-radius: var(--radius-md);
  padding: 4rem 2rem;
  text-align: center;
  transition: all var(--transition-smooth);
  background: rgba(255,90,54,0.02);
}

.dropzone.drag-active {
  border-color: #FF5A36;
  background: rgba(255,90,54,0.08);
  transform: scale(1.02);
}
.drop-icon-wrap {
  position: relative;
  width: 120px; /* Larger icon */
  height: 120px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-engine {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 25px rgba(255,64,64,0.6));
  /* animation removed for performance */
}

.engine-svg { width: 100%; height: 100%; }

.drop-icon-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  z-index: 1;
}

.drop-title { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.5rem; }
.drop-sub { color: var(--c-text-muted); font-size: 0.9rem; margin: 0 0 2rem; }

/* Neon Button */
.btn-neon {
  position: relative;
  display: inline-flex;
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dropzone .btn-neon {
  animation: btnPulse 3s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255, 64, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0); }
}

.btn-neon:hover { transform: scale(1.05); }
.btn-neon:active { transform: scale(0.95); }

.btn-neon-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-primary));
  background-size: 200% auto;
  animation: gradientShift 3s linear infinite;
  border-radius: var(--radius-sm);
  z-index: 0;
}

.btn-neon-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.upload-status {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);

color: var(--c-text-muted);
  font-size: 0.9rem;
}

.upload-flow-panel {
  margin: 1rem 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(3, 7, 18, 0.18)),
    radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.16), transparent 32%);
  backdrop-filter: blur(8px);
}

.upload-flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.upload-flow-top span {
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.upload-flow-top strong {
  color: #5eead4;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.upload-flow-panel p,
.upload-flow-ecu small {
  margin: 0.7rem 0 0;
  color: rgba(203, 213, 225, 0.78);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.upload-flow-ecu {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 138, 76, 0.24);
  border-radius: 12px;
  background: rgba(255, 138, 76, 0.08);
}

.upload-flow-ecu span {
  display: block;
  color: #fff7ed;
  font-size: 0.9rem;
  line-height: 1.45;
}

.upload-flow-ecu strong {
  color: #ffcf9a;
}

.upload-flow-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem;
}

.upload-flow-actions button {
  min-height: 36px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

.upload-flow-actions button:first-child {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.2);
  color: #d1fae5;
}

.upload-file-name {
  margin-top: 1rem;
  min-height: 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  word-break: break-word;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.upload-file-name.has-file {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 138, 76, 0.18);
}

/* ═══ BRANDS MARQUEE ═══ */
.brands-section {
  padding: 2rem;
  border-top: 1px solid var(--c-border-subtle);
  border-bottom: 1px solid var(--c-border-subtle);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  justify-content: center;
}

.label-line { height: 1px; flex-grow: 1; max-width: 100px; background: var(--c-border-subtle); }

.brands-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  /* Simple flex wrap for now, JS will handle marquee if needed, or just grid */
  justify-content: center;
  flex-wrap: wrap;
}

.brand-box {
  width: 120px;
  height: 60px;
  background: var(--c-bg-panel-solid);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  filter: grayscale(0) opacity(0.8);
  transition: all var(--transition-smooth);
}

.brand-box:hover {
  filter: grayscale(0) opacity(1);
  border-color: var(--c-primary);
  box-shadow: 0 0 20px rgba(255,64,64,0.2);
  transform: translateY(-3px);
}

.brand-box.active {
  filter: grayscale(0) opacity(1);
  border-color: var(--c-accent);
  box-shadow: 0 0 20px rgba(255,138,76,0.2), inset 0 0 10px rgba(255,138,76,0.1);
  position: relative;
}

.brand-box.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--c-accent);
  box-shadow: 0 -2px 10px var(--c-accent);
}

.brand-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ecu-catalog-section {
  padding: 2.75rem 2rem 0;
}

.ecu-catalog-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 76, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.94), rgba(8, 11, 16, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.ecu-catalog-shell::before,
.ecu-catalog-shell::after {
  content: '';
  position: absolute;

border-radius: 999px;
  pointer-events: none;
}

.ecu-catalog-shell::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 64, 64, 0.2), transparent 68%);
  filter: blur(12px);
}

.ecu-catalog-shell::after {
  width: 340px;
  height: 1px;
  right: 2rem;
  top: 5.75rem;
  background: linear-gradient(90deg, transparent, rgba(255, 64, 64, 0.72), transparent);
}

.ecu-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.catalog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 76, 0.26);
  background: rgba(255, 138, 76, 0.08);
  color: #ffb28a;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.catalog-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 14px rgba(255, 138, 76, 0.65);
}

.catalog-title {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
  line-height: 1.08;
}

.catalog-desc {
  margin: 1rem 0 0;
  max-width: 760px;
  color: var(--c-text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.ecu-catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-stat-card {
  min-height: 116px;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-stat-label {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: #fff4ed;
}

.ecu-family-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ecu-family-card {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr 180px;
  align-items: stretch;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.015), transparent),
    rgba(9, 13, 18, 0.8);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.ecu-family-card:hover {
  border-color: rgba(255, 138, 76, 0.4);
  transform: translateX(4px);
}

.ecu-family-card::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 64, 64, 0.86), transparent 80%);
  opacity: 0.7;
}

.ecu-family-card--ford::before,
.ecu-family-card--psa::before,
.ecu-family-card--fiat::before,
.ecu-family-card--iveco::before,
.ecu-family-card--mitsubishi::before,
.ecu-family-card--renault::before,
.ecu-family-card--toyota::before,
.ecu-family-card--hyundai::before,
.ecu-family-card--gm::before,
.ecu-family-card--chevrolet::before {
  content: '';
  position: absolute;
  inset: auto -60px -120px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(10px);
}

.ecu-family-card--ford::before {
  background: radial-gradient(circle, rgba(23, 115, 255, 0.12), transparent 65%);
}

.ecu-family-card--psa::before {
  background: radial-gradient(circle, rgba(55, 140, 255, 0.14), transparent 65%);
}

.ecu-family-card--fiat::before {
  background: radial-gradient(circle, rgba(255, 64, 64, 0.12), transparent 65%);
}

.ecu-family-card--iveco::before {
  background: radial-gradient(circle, rgba(214, 226, 242, 0.16), transparent 66%);
}

.ecu-family-card--mitsubishi::before {
  background: radial-gradient(circle, rgba(255, 140, 76, 0.16), transparent 66%);
}

.ecu-family-card--renault::before {
  background: radial-gradient(circle, rgba(255, 215, 64, 0.13), transparent 66%);
}

.ecu-family-card--toyota::before,
.ecu-family-card--chevrolet::before {
  background: radial-gradient(circle, rgba(255, 64, 64, 0.13), transparent 66%);
}

.ecu-family-card--hyundai::before {
  background: radial-gradient(circle, rgba(72, 160, 255, 0.13), transparent 66%);
}

.ecu-family-card--gm::before {

background: radial-gradient(circle, rgba(214, 226, 242, 0.13), transparent 66%);
}

.ecu-family-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 0;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.1);
}

.ecu-family-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ecu-family-brand img {
  width: 60px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ecu-family-logo-text {
  width: 60px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: #eaf2ff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ecu-family-brand-copy h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.2;
}

.ecu-family-kicker {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ecu-family-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 76, 0.26);
  background: rgba(255, 138, 76, 0.08);
  color: #ffd6c4;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.ecu-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1.15rem;
  align-content: center;
}

.ecu-chip {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #c9dbf2;
}

.ecu-family-foot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 0;
  background: linear-gradient(90deg, transparent, rgba(255,64,64,0.015));
}

.family-capability {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 64, 64, 0.16);
  background: rgba(255, 64, 64, 0.05);
  color: #ffb7b7;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ecu-catalog-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.025);
}

.ecu-note-pill {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #aef5dd;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ecu-note-text {
  color: var(--c-text-muted);
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .ecu-catalog-head {
    grid-template-columns: 1fr;
  }
  .ecu-family-card {
    grid-template-columns: 1fr 220px;
  }
  .ecu-family-top {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .ecu-catalog-section {
    padding: 2rem 1rem 0;
  }

  .ecu-catalog-shell {
    padding: 1.35rem;
  }

  .ecu-catalog-stats {
    grid-template-columns: 1fr;
  }

  .ecu-family-card {
    grid-template-columns: 1fr;
  }

  .ecu-family-top,
  .ecu-catalog-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .ecu-family-brand {
    width: 100%;
  }

  .ecu-family-brand img {
    width: 76px;
    height: 40px;
  }
}

/* ═══ DASHBOARD GRID ═══ */
.dashboard {
  position: relative;
  max-width: 1320px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.65rem;
}

.dashboard::before {
  content: '';
  position: absolute;
  top: -2.4rem;
  left: 2rem;
  right: 2rem;

height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 76, 0.34), rgba(14, 165, 233, 0.22), transparent);
  box-shadow: 0 0 18px rgba(255, 64, 64, 0.16);
}

.dash-card {
  background: var(--c-bg-panel);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.dash-card:hover {
  border-color: rgba(255,64,64,0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,64,64,0.05);
}

.dash-card.full-width { grid-column: 1 / -1; }
.identity-card { z-index: 50; }

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.card-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border-subtle);
}

.card-label {
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.2rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.card-header-glow {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary));
  opacity: 0.5;
  transform: translateY(-50%);
}

/* Identity Grid */
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.id-metric {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.id-metric.glow-metric {
  background: rgba(255,64,64,0.05);
  border-color: var(--c-border);
}

.id-label { font-family: var(--font-mono); color: var(--c-text-muted); font-size: 0.9rem; letter-spacing: 1px; }
.id-value { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: #fff; }

.metric-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.05);
}

.metric-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--c-primary);
  box-shadow: 0 0 10px var(--c-primary);
  transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.id-metric.glow-metric .metric-bar-fill { width: 100%; }

.member-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.member-strip.is-success {
  border-color: rgba(16,185,129,0.24);
  background: rgba(16,185,129,0.08);
}

.member-strip.is-danger {
  border-color: rgba(239,68,68,0.24);
  background: rgba(239,68,68,0.08);
}

.member-strip.is-warning {
  border-color: rgba(245,158,11,0.22);
  background: rgba(245,158,11,0.08);
}

.member-strip.is-admin {
  border-color: rgba(255,138,76,0.24);
  background: rgba(255,138,76,0.08);
}

.member-strip__status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.member-strip__kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--c-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-strip__status strong {
  font-size: 1.1rem;
  color: #fff;
}

.member-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.member-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.04);
}

.member-stat span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--c-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-stat strong {
  color: #fff;
  font-size: 1rem;
}

/* Scrollbar overrides for Custom Select Menus */
.custom-select-menu::-webkit-scrollbar,
.custom-select-options::-webkit-scrollbar { width: 6px; }

.custom-select-menu::-webkit-scrollbar-track,
.custom-select-options::-webkit-scrollbar-track { background: var(--c-bg-panel-solid); border-radius: 4px; }
.custom-select-menu::-webkit-scrollbar-thumb,
.custom-select-options::-webkit-scrollbar-thumb { background: rgba(255,138,76,0.3); border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.custom-select-menu::-webkit-scrollbar-thumb:hover,
.custom-select-options::-webkit-scrollbar-thumb:hover { background: rgba(255,138,76,0.5); }

/* Custom Select Overrides */
.custom-select-trigger {
  width: 100%;
  padding: 1rem;
  background: var(--c-bg-panel-solid);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.custom-select-search {
  width: calc(100% - 1rem);
  margin: 0.5rem;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0f1622;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  outline: none;
}

.custom-select-search:focus {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.custom-select-options {
  max-height: 190px;
  overflow-y: auto;
}

.custom-select-brand {
  padding: 0.72rem 1rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(90deg, rgba(255, 138, 76, 0.1), rgba(15, 23, 42, 0.78));
  color: #ffb08a;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.custom-select-option {
  padding: 0.88rem 1rem;
  cursor: pointer;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--c-border-subtle);
  color: #e5edf7;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.custom-select-option:hover {
  background: rgba(255, 64, 64, 0.12);
  color: #fff;
}

.custom-select-empty {
  padding: 1rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}

.ecu-choice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  margin: 0.55rem 0 0.7rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 90% 20%, rgba(16, 185, 129, 0.12), transparent 36%);
}

.ecu-choice-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.ecu-choice-copy span,
.ecu-choice-copy small {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ecu-choice-copy strong {
  color: #eff6ff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ecu-choice-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ecu-choice-actions button {
  min-height: 38px;
  padding: 0.58rem 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

.ecu-choice-actions button:first-child {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.18);
  color: #d1fae5;
}

.ecu-choice-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ecu-select,
.ecu-select option,
.report-panel select,
.report-panel select option {
  background: #111722;
  color: #f8fafc;
}

.detection-tools {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.btn-small {
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-fix {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.btn-report {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.report-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(249,115,22,0.35);
  background: rgba(10, 14, 22, 0.92);
}

.report-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.report-panel-head button {
  background: transparent;
  color: var(--c-text-muted);
  font-weight: 700;
}

.report-panel label {
  display: grid;
  gap: 0.35rem;
}

.report-panel span {
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.report-panel input,
.report-panel textarea,
.report-panel select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111722;
  color: #fff;
  padding: 0.75rem;
}

.admin-ecu-profile {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background:
    linear-gradient(180deg, rgba(14, 25, 42, 0.96), rgba(8, 13, 22, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 18px 40px rgba(0,0,0,0.28);
}

.admin-ecu-profile-head,
.admin-ecu-profile-actions,
.mini-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-ecu-profile-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  text-transform: uppercase;
}

.admin-ecu-profile-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.admin-ecu-profile-head button {
  background: transparent;
  color: var(--c-text-muted);
  font-weight: 800;
}

.admin-ecu-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  color: var(--c-text-muted);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  color: #cffafe;
  font-weight: 900;
}

.flow-step strong {
  min-width: 0;
  color: #fff;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.profile-stat {
  min-width: 0;
  padding: 0.78rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15, 23, 42, 0.72);
}

.profile-stat span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.profile-stat strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.admin-ecu-profile-list {
  display: grid;
  gap: 0.7rem;
}

.admin-ecu-profile-list h4 {
  margin: 0.35rem 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-status-banner,
.profile-empty {
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--c-text-muted);
  background: rgba(255,255,255,0.035);
}

.profile-status-banner {
  display: grid;
  gap: 0.25rem;
}

.profile-status-banner strong {
  color: #fff;
}

.profile-status-banner.is-ready {
  border-color: rgba(34,197,94,0.5);
  background: linear-gradient(135deg, rgba(22,101,52,0.26), rgba(15,23,42,0.5));
}

.profile-status-banner.is-missing,
.profile-empty-error {
  border-color: rgba(249,115,22,0.5);
  background: linear-gradient(135deg, rgba(124,45,18,0.26), rgba(15,23,42,0.5));
}

.profile-support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-support-strip span {
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.28);
  color: #fecaca;
  background: rgba(127,29,29,0.18);
  font-size: 0.76rem;
  font-weight: 800;
}

.profile-support-strip span.is-supported {
  border-color: rgba(34,197,94,0.32);
  color: #bbf7d0;
  background: rgba(22,101,52,0.18);
}

.mini-profile-card {
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
}

.mini-profile-card div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.mini-profile-card strong,
.mini-profile-card em {
  color: #fff;

font-style: normal;
  overflow-wrap: anywhere;
}

.mini-profile-card span,
.mini-profile-card small {
  color: var(--c-text-muted);
  overflow-wrap: anywhere;
}

.admin-ecu-profile-actions {
  flex-wrap: wrap;
}

.admin-ecu-profile-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.solution-picker {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.28);
  background:
    linear-gradient(135deg, rgba(22,101,52,0.14), rgba(15,23,42,0.7));
}

.solution-picker-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
}

.solution-picker-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}

.solution-picker-head strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.solution-picker-head em {
  color: #bbf7d0;
  font-style: normal;
  font-weight: 800;
  font-size: 0.86rem;
}

.hex-open-btn {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.38);
  background: rgba(14,165,233,0.14);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-weight: 900;
}

.hex-open-btn:hover {
  border-color: rgba(125,211,252,0.76);
  background: rgba(14,165,233,0.24);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.solution-choice {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas:
    "check title"
    "check reason";
  gap: 0.16rem 0.65rem;
  width: 100%;
  min-height: 74px;
  padding: 0.78rem;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  color: #fff;
}

.solution-choice:hover {
  border-color: rgba(34,197,94,0.45);
  background: rgba(22,101,52,0.16);
}

.solution-choice.is-selected {
  border-color: rgba(34,197,94,0.78);
  background: linear-gradient(135deg, rgba(22,163,74,0.28), rgba(15,23,42,0.76));
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.14);
}

.solution-check {
  grid-area: check;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.8);
  color: #bbf7d0;
  font-weight: 900;
}

.solution-choice strong {
  grid-area: title;
  font-family: var(--font-display);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.solution-choice small {
  grid-area: reason;
  color: var(--c-text-muted);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.solution-choice-dtc {
  border-color: rgba(56,189,248,0.55);
  background: linear-gradient(135deg, rgba(2,132,199,0.24), rgba(15,23,42,0.76));
}

.solution-choice-dtc:hover {
  border-color: rgba(125,211,252,0.82);
  background: linear-gradient(135deg, rgba(14,165,233,0.34), rgba(15,23,42,0.78));
}

.solution-choice-dtc .solution-check {
  width: 36px;
  border-radius: 8px;
  color: #bae6fd;
  border-color: rgba(125,211,252,0.42);
}

.solution-choice-dtc.is-missing-map {
  border-color: rgba(249,115,22,0.42);
  background: linear-gradient(135deg, rgba(154,52,18,0.22), rgba(15,23,42,0.76));
}

.solution-choice-dtc.is-missing-map .solution-check {
  color: #fed7aa;
  border-color: rgba(251,146,60,0.42);
}

.solution-empty {
  grid-column: 1 / -1;
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(249,115,22,0.34);
  background: rgba(124,45,18,0.16);
  color: #fed7aa;
}

.compact-download {
  grid-template-columns: minmax(220px, 300px) 1fr;
  padding-top: 0.85rem;
}

.dtc-modal.hidden { display: none; }

.dtc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.dtc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.82);
  backdrop-filter: blur(8px);
}

.dtc-modal-panel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(56,189,248,0.34);
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(3,7,18,0.98));

box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

.dtc-modal-head,
.dtc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.dtc-modal-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}

.dtc-modal-head strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.dtc-icon-btn,
.dtc-action-btn,
.dtc-off-btn,
.dtc-select {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
}

.dtc-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.dtc-toolbar {
  flex-wrap: wrap;
}

.dtc-search {
  flex: 1 1 320px;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.34);
  background: rgba(15,23,42,0.84);
  color: #fff;
}

.dtc-action-btn {
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
}

.dtc-action-btn.primary {
  border-color: rgba(34,197,94,0.46);
  background: linear-gradient(135deg, rgba(34,197,94,0.9), rgba(5,150,105,0.9));
}

.dtc-stats {
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.22);
  background: rgba(14,165,233,0.1);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.dtc-stats strong,
.dtc-stats em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-style: normal;
  border: 1px solid rgba(148,163,184,0.2);
}

.dtc-stats .is-on {
  color: #5eead4;
  background: rgba(20,184,166,0.12);
}

.dtc-stats .is-off {
  color: #86efac;
  background: rgba(34,197,94,0.12);
}

.dtc-stats .is-partial {
  color: #fde68a;
  background: rgba(245,158,11,0.14);
}

.dtc-table-wrap {
  min-height: 0;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.2);
}

.dtc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  color: #e5e7eb;
}

.dtc-table th,
.dtc-table td {
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid rgba(148,163,184,0.16);
  text-align: left;
  vertical-align: middle;
}

.dtc-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111827;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.dtc-table tr.is-on {
  background: rgba(255,255,255,0.03);
}

.dtc-table tr.is-off {
  background: rgba(16,185,129,0.08);
}

.dtc-table tr.is-partial {
  background: rgba(245,158,11,0.07);
}

.dtc-status {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.dtc-status.on {
  color: #5eead4;
  background: rgba(20,184,166,0.14);
  border: 1px solid rgba(45,212,191,0.34);
}

.dtc-status.off {
  color: #86efac;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(74,222,128,0.34);
}

.dtc-status.partial {
  color: #fde68a;
  background: rgba(245,158,11,0.16);
  border: 1px solid rgba(251,191,36,0.34);
}

.dtc-select {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.dtc-select.is-selected {
  background: rgba(34,197,94,0.78);
}

.dtc-select:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dtc-info-title,
.dtc-reason,
.dtc-address-meta {
  display: block;
}

.dtc-reason,
.dtc-address-meta {
  margin-top: 0.28rem;
  color: #94a3b8;
  line-height: 1.35;
}

.dtc-address-meta {
  color: #67e8f9;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.dtc-detail {
  margin-top: 0.28rem;
}

.dtc-detail summary {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 900;
}

.dtc-off-btn {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: 7px;
  background: #64748b;
}

.dtc-off-btn:not(:disabled):hover {
  background: #0ea5e9;
}

.dtc-off-btn:disabled {
  opacity: 0.45;
}

.dtc-empty,
.dtc-empty-cell {
  padding: 1rem;
  color: var(--c-text-muted);
}

.hex-modal.hidden { display: none; }

.hex-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.hex-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.86);
  backdrop-filter: blur(8px);
}

.hex-modal-panel {
  position: relative;
  width: min(1220px, 96vw);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(56,189,248,0.34);
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(3,7,18,0.98));
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

.hex-modal-head,
.hex-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hex-modal-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}

.hex-modal-head strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.hex-toolbar {
  flex-wrap: wrap;
}

.hex-icon-btn,
.hex-action-btn,
.hex-source,
.hex-offset-input {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15,23,42,0.84);
  color: #fff;
  font-weight: 800;
}

.hex-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.hex-action-btn,
.hex-source,
.hex-offset-input {
  min-height: 42px;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.hex-offset-input {
  flex: 1 1 220px;
  font-family: var(--font-mono);
}

.hex-action-btn.primary {
  border-color: rgba(34,197,94,0.46);

background: linear-gradient(135deg, rgba(34,197,94,0.9), rgba(5,150,105,0.9));
}

.hex-stats {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.22);
  background: rgba(14,165,233,0.1);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-weight: 800;
}

.hex-table-wrap {
  min-height: 0;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.2);
  background: #020617;
}

.hex-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  color: #e5e7eb;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.hex-table th,
.hex-table td {
  padding: 0.44rem 0.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.13);
  text-align: center;
  white-space: nowrap;
}

.hex-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111827;
  color: #93c5fd;
}

.hex-table tr:hover {
  background: rgba(14,165,233,0.08);
}

.hex-table .hex-offset {
  text-align: left;
  color: #fbbf24;
  font-weight: 900;
}

.hex-table .hex-ascii {
  text-align: left;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

.hex-empty {
  padding: 1rem;
  color: var(--c-text-muted);
}

.admin-quick-learn {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.78));
}

.admin-quick-learn-head {
  display: grid;
  gap: 0.2rem;
}

.admin-quick-learn-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}

.admin-quick-learn-head span,
.admin-quick-learn label span {
  color: var(--c-text-muted);
  font-size: 0.78rem;
}

.admin-quick-learn label {
  display: grid;
  gap: 0.35rem;
}

.admin-quick-learn input[type="file"],
.admin-quick-learn select,
.admin-quick-learn textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111722;
  color: #fff;
  padding: 0.7rem;
}

.solution-preset-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.solution-preset-row button {
  min-height: 36px;
  padding: 0.45rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #dbeafe;
  font-weight: 900;
  font-size: 0.76rem;
}

.solution-preset-row button.active,
.solution-preset-row button:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(14, 165, 233, 0.18);
  color: #fff;
}

.admin-quick-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-learn-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.admin-learn-feature-grid label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.admin-learn-feature-grid input {
  accent-color: #2563eb;
}

.inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.55rem !important;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.24);
  background: rgba(22,101,52,0.13);
}

.inline-check input {
  accent-color: #22c55e;
}

.inline-check span {
  color: #dcfce7 !important;
  font-weight: 800;
}

.native-select-hidden {
  display: none !important;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.support-item {
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255,255,255,0.02);
  transition: all var(--transition-fast);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.support-item h4 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 1px; }
.support-item.supported {
  border-color: rgba(16, 185, 129, 0.68);
  background:
    linear-gradient(180deg, rgba(16,185,129,0.12), rgba(16,185,129,0.05)),
    rgba(255,255,255,0.02);
  box-shadow:
    inset 0 0 0 1px rgba(16,185,129,0.1),

0 0 22px rgba(16,185,129,0.08);
}

.support-item.unsupported {
  border-color: rgba(239, 68, 68, 0.72);
  background:
    linear-gradient(180deg, rgba(239,68,68,0.12), rgba(239,68,68,0.05)),
    rgba(255,255,255,0.02);
  box-shadow:
    inset 0 0 0 1px rgba(239,68,68,0.08),
    0 0 22px rgba(239,68,68,0.08);
}

.support-item.na {
  border-color: var(--c-neutral-border);
  background:
    linear-gradient(180deg, rgba(148,163,184,0.08), rgba(148,163,184,0.04)),
    rgba(255,255,255,0.02);
  box-shadow:
    inset 0 0 0 1px rgba(148,163,184,0.05),
    0 0 18px rgba(148,163,184,0.04);
}

.s-state { font-weight: 700; font-size: 1.1rem; }
.s-reason { color: var(--c-text-muted); font-size: 0.9rem; }
.support-item.supported .s-state { color: #61f0b4; }
.support-item.unsupported .s-state { color: #ff7b7b; }
.support-item.na .s-state { color: #c6d0df; }

/* Analysis Grid */
.analysis-card-panel {
  overflow: hidden;
  border-color: rgba(14, 165, 233, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 15, 24, 0.9), rgba(5, 8, 14, 0.92)),
    radial-gradient(circle at 88% 4%, rgba(14, 165, 233, 0.1), transparent 32%),
    radial-gradient(circle at 10% 92%, rgba(255, 138, 76, 0.08), transparent 30%);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.analysis-item {
  min-height: 124px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 1rem;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(3, 7, 18, 0.48));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.analysis-item::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--analysis-color, rgba(148, 163, 184, 0.65)), transparent);
  opacity: 0.9;
}

.analysis-item::after {
  content: '';
  position: absolute;
  inset: -40% -25% auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--analysis-glow, rgba(148, 163, 184, 0.08));
  filter: blur(10px);
}

.analysis-item-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.analysis-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--analysis-color, rgba(148, 163, 184, 0.7));
  box-shadow: 0 0 14px var(--analysis-color, rgba(148, 163, 184, 0.28));
}

.analysis-tag {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.analysis-item h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  color: rgba(226, 232, 240, 0.86);
  font-size: 1.05rem;
}

.a-val {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--analysis-color, #fff);
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.analysis-item.is-active {
  --analysis-color: #22c55e;
  --analysis-glow: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.32);
  background:
    linear-gradient(180deg, rgba(20, 83, 45, 0.22), rgba(3, 7, 18, 0.48));
}

.analysis-item.is-warning {
  --analysis-color: #f59e0b;
  --analysis-glow: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
}

.analysis-item.is-success {
  --analysis-color: #10b981;
  --analysis-glow: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.25);
}

.analysis-item.is-error {
  --analysis-color: #ef4444;
  --analysis-glow: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.3);
  background:
    linear-gradient(180deg, rgba(127, 29, 29, 0.22), rgba(3, 7, 18, 0.5));
}

.analysis-item.is-muted {
  --analysis-color: #94a3b8;
  --analysis-glow: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(3, 7, 18, 0.48));
}

.analysis-item.is-error .analysis-tag {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.analysis-item.is-success .analysis-tag {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #bbf7d0;
}

.analysis-item.is-active .analysis-tag {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.analysis-item.is-warning .analysis-tag {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.analysis-item.is-muted .analysis-tag {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.07);
  color: #cbd5e1;
}

.analysis-boxes { display: flex; flex-direction: column; gap: 1rem; }
.validation-box, .checksum-box {
  background:

linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(3, 7, 18, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 1rem;
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  white-space: normal;
  border-left: 3px solid var(--c-accent);
  overflow: hidden;
}

.analysis-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.analysis-summary-head span,
.checksum-summary span {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-summary-head strong {
  color: #5eead4;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.analysis-summary-row {
  display: grid;
  gap: 0.28rem;
  padding: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.48);
}

.analysis-summary-row span {
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.7rem;
}

.analysis-summary-row strong {
  color: #f8fafc;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.analysis-summary-row.is-active strong {
  color: #86efac;
}

.analysis-summary-row.is-warning strong {
  color: #fbbf24;
}

.analysis-summary-row.is-success strong {
  color: #5eead4;
}

.analysis-summary-row.is-error strong {
  color: #fca5a5;
}

.analysis-summary-row.is-error {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(127, 29, 29, 0.12);
}

.analysis-summary-row.is-active {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(20, 83, 45, 0.16);
}

.analysis-summary-row.is-warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(120, 53, 15, 0.12);
}

.analysis-summary-row.is-success {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(6, 78, 59, 0.12);
}

.analysis-summary-row.is-muted {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.42);
}

.analysis-summary-empty {
  color: var(--c-text-muted);
}

.checksum-summary {
  display: grid;
  gap: 0.45rem;
}

.checksum-summary strong {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
}

.checksum-summary.is-ready strong {
  color: #d1fae5;
}

/* Risk Notice */
.risk-card-panel {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(14, 18, 24, 0.88)),
    var(--c-bg-panel);
}

.risk-card-panel.warning {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.08);
}

.risk-card-panel.danger {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.1);
}

.risk-notice {
  border-left: 4px solid var(--c-warning);
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-family: var(--font-sans);
  color: var(--c-text);
  line-height: 1.6;
}

.risk-card-panel.danger .risk-notice {
  border-left-color: var(--c-danger);
}

.risk-card-panel.warning .risk-notice {
  border-left-color: var(--c-warning);
}

/* Actions Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.action-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.015);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.action-item.is-clickable {
  cursor: pointer;
}

.action-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.action-item.action-item-full {
  background:
    linear-gradient(180deg, rgba(255, 138, 76, 0.08), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.015);
}

.action-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.action-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--c-text-muted);
  text-transform: uppercase;
}

.action-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.action-item h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  text-align: left;
  letter-spacing: 0.02em;
}

.a-reason {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--c-text-muted);
  text-align: left;
  min-height: 48px;
}

.action-item.is-ready {
  border-color: rgba(16,185,129,0.3);
  background:
    linear-gradient(180deg, rgba(16,185,129,0.08), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.015);
  box-shadow:
    inset 0 0 0 1px rgba(16,185,129,0.06),
    0 0 20px rgba(16,185,129,0.06);
}

.action-item.is-ready.is-clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.55);
  box-shadow:
    inset 0 0 0 1px rgba(16,185,129,0.12),
    0 18px 36px rgba(16,185,129,0.12);
}

.action-item.is-ready .action-state-pill {
  color: #61f0b4;
  border-color: rgba(16,185,129,0.32);
  background: rgba(16,185,129,0.1);
}

.action-item.is-applied {
  border-color: rgba(255, 138, 76, 0.26);
  background:
    linear-gradient(180deg, rgba(255,138,76,0.08), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.015);
}

.action-item.is-applied .action-state-pill {
  color: #ffc18f;
  border-color: rgba(255,138,76,0.3);
  background: rgba(255,138,76,0.1);
}

.action-item.is-locked {
  border-color: rgba(148,163,184,0.16);
  background:
    linear-gradient(180deg, rgba(148,163,184,0.05), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.015);
}

.action-item.is-locked .action-state-pill {
  color: #c6d0df;
  border-color: rgba(148,163,184,0.22);
  background: rgba(148,163,184,0.08);
}

.btn-action {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-action:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(255,64,64,0.2), rgba(255,138,76,0.15));
  border-color: rgba(255, 64, 64, 0.46);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,64,64,0.2);
}

.btn-action:not(:disabled)::before {
  content: ''; position: absolute; top:0; left:-100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn-action:not(:disabled):hover::before { left: 150%; }

.btn-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: rgba(226,232,240,0.74);
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.05);
}

.action-item.is-clickable .btn-action {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.action-item.is-ready.is-clickable .btn-action {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.16), rgba(16,185,129,0.18));
  border-color: rgba(16,185,129,0.34);
}

.action-item.is-ready.is-clickable .btn-action::after {
  content: 'TIKLA UYGULA';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(151, 255, 214, 0.92);
}

.download-row {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  align-items: stretch;
  gap: 1.2rem;
  padding-top: 1.45rem;
  border-top: 1px dashed var(--c-border-subtle);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, var(--c-success), #059669);
  border: none;
  border-radius: var(--radius-sm);
  min-height: 72px;
  padding: 1rem 1.4rem;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 20px rgba(16,185,129,0.2);
}

.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16,185,129,0.3);

filter: brightness(1.1);
}
.btn-download:disabled {
  opacity: 0.45;
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

.download-meta {
  display: flex;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16,185,129,0.18);
  background: linear-gradient(180deg, rgba(16,185,129,0.08), rgba(255,255,255,0.015));
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  line-height: 1.55;
  word-break: break-word;
}

/* Premium file identity workspace */
.identity-card {
  grid-column: 1 / -1;
  width: min(100%, 1240px);
  justify-self: center;
  padding: 2.15rem;
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 18, 27, 0.88), rgba(7, 10, 15, 0.92)),
    radial-gradient(circle at 80% 8%, rgba(255, 64, 64, 0.1), transparent 34%),
    radial-gradient(circle at 8% 76%, rgba(14, 165, 233, 0.08), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.34);
}

.identity-card .card-header {
  margin-bottom: 1.05rem;
}

.identity-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(10, 15, 24, 0.92));
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 26px rgba(0,0,0,0.26);
}

.identity-card .card-header-glow {
  width: 96px;
  opacity: 0.62;
}

.identity-grid {
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.id-metric {
  min-height: 76px;
  padding: 0.82rem 0.95rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(18, 25, 38, 0.7), rgba(10, 13, 20, 0.78));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.id-metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,64,64,0.08), transparent 46%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.id-metric:hover::before,
.id-metric.glow-metric::before {
  opacity: 1;
}

.id-metric.glow-metric {
  border-color: rgba(255, 64, 64, 0.3);
  background:
    linear-gradient(180deg, rgba(35, 17, 23, 0.72), rgba(14, 13, 20, 0.86));
}

.id-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.id-value {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.metric-bar {
  height: 2px;
  background: rgba(148, 163, 184, 0.12);
}

.metric-bar-fill {
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  box-shadow: 0 0 14px rgba(255, 64, 64, 0.45);
}

.member-strip {
  align-items: stretch;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border-radius: 14px;
  border-color: rgba(255, 138, 76, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.1), rgba(15, 23, 42, 0.62));
}

.member-strip__status {
  padding: 0.45rem 0.45rem 0.45rem 0.55rem;
}

.member-strip__status strong,
.member-stat strong {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.member-stat {
  min-height: 56px;
  justify-content: center;
  border-color: rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.28);
}

.select-label {
  display: block;
  margin: 0.15rem 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.custom-select-trigger,
.ecu-select {
  min-height: 52px;
  border-radius: 12px;
  border-color: rgba(255, 138, 76, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 92, 64, 0.88), rgba(255, 138, 76, 0.8)),
    #141925;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(255, 64, 64, 0.12), inset 0 1px 0 rgba(255,255,255,0.12);
}

.custom-select.is-collapsed {
  display: none;
}

.custom-select.open {
  display: block;
}

.ecu-choice-panel {
  border-color: rgba(14, 165, 233, 0.24);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.12), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ecu-confidence {
  height: 5px;
  width: min(280px, 100%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 0.52rem;
}

.ecu-confidence i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #14b8a6, #38bdf8);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.28);
}

.ecu-detection-reason {
  display: block;
  max-width: 760px;
  margin-top: 0.38rem;
  color: rgba(203, 213, 225, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  font-style: normal;
  overflow-wrap: anywhere;
}

.detection-tools {
  margin-top: 0.75rem;
}

.btn-small {
  border-radius: 10px;
  min-height: 44px;
}

.solution-picker {
  gap: 0.95rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border-color: rgba(20, 184, 166, 0.26);
  background:
    linear-gradient(180deg, rgba(9, 23, 31, 0.82), rgba(6, 14, 20, 0.88)),
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.12), transparent 32%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.solution-picker-head {
  align-items: center;

padding-bottom: 0.15rem;
}

.solution-picker-head span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.solution-picker-head strong {
  font-size: 1rem;
  line-height: 1.2;
}

.hex-open-btn {
  min-width: 116px;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
}

.solution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.solution-choice {
  min-height: 88px;
  padding: 0.9rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(17, 25, 38, 0.86), rgba(9, 14, 24, 0.92));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.solution-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.solution-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.solution-main em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-main b.solution-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.solution-confidence.is-high {
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: rgba(6, 78, 59, 0.32);
  color: #a7f3d0;
}

.solution-confidence.is-medium {
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(30, 64, 175, 0.22);
  color: #bfdbfe;
}

.solution-confidence.is-review {
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(120, 53, 15, 0.28);
  color: #fde68a;
}

.solution-confidence.is-missing {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
}

.solution-choice strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.solution-choice small {
  font-size: 0.82rem;
  line-height: 1.24;
}

.solution-choice.is-selected {
  border-color: rgba(16, 185, 129, 0.72);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.26), rgba(8, 17, 24, 0.9));
}

.solution-choice.is-selected .solution-main em {
  border-color: rgba(187, 247, 208, 0.36);
  background: rgba(16, 185, 129, 0.16);
  color: #bbf7d0;
}

.solution-choice-pack {
  border-color: rgba(16, 185, 129, 0.32);
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.23), rgba(8, 17, 24, 0.9));
}

.solution-choice-exact {
  border-color: rgba(34, 197, 94, 0.26);
}

.solution-choice-family {
  border-color: rgba(14, 165, 233, 0.28);
}

.solution-choice-fallback {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.2), rgba(8, 17, 24, 0.92));
}

.solution-choice-stage {
  border-color: rgba(245, 158, 11, 0.28);
}

.solution-check {
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
}

.solution-choice.is-selected .solution-check {
  background: var(--c-success);
  color: #06251a;
  border-color: rgba(187, 247, 208, 0.5);
}

.solution-choice-dtc {
  border-color: rgba(56, 189, 248, 0.46);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(8, 17, 28, 0.9));
}

.solution-choice-dtc .solution-main em {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(14, 165, 233, 0.14);
  color: #bae6fd;
}

.solution-empty {
  padding: 0.95rem 1rem;
  border-radius: 12px;
}

.solution-picker.is-analysis-pending {
  background:
    linear-gradient(180deg, rgba(9, 23, 31, 0.48), rgba(6, 14, 20, 0.42)),
    radial-gradient(circle at 84% 15%, rgba(14, 165, 233, 0.12), transparent 32%);
  backdrop-filter: blur(7px);
}

.solution-loading-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.32);
}

.solution-loading-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.16);
  border-top-color: #38bdf8;
  border-right-color: #14b8a6;
  animation: uploadSpin 1s linear infinite;
}

.solution-loading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.solution-loading-head span,
.solution-loading-head strong {
  font-family: var(--font-display);
  color: #eff6ff;
}

.solution-loading-head strong {
  color: #5eead4;
}

.solution-loading-card p {
  margin: 0.65rem 0 0;
  color: rgba(203, 213, 225, 0.78);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.solution-loading-steps {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.solution-loading-steps span {
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  color: rgba(226, 232, 240, 0.72);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.compact-download {
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: 0.9rem;
  padding-top: 0.95rem;
  border-top-color: rgba(148, 163, 184, 0.13);
}

.btn-download {
  min-height: 84px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #10b981, #14b8a6);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0;
  box-shadow: 0 16px 32px rgba(16,185,129,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-download-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
}

.download-meta {
  display: grid;
  align-content: center;
  gap: 0.28rem;
  min-height: 84px;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 13, 22, 0.86));
  border-color: rgba(20, 184, 166, 0.22);
  font-family: var(--font-sans);
}

.download-meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.download-meta strong {
  display: block;
  color: #d1fae5;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.download-meta em {
  color: #5eead4;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.download-quality-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.download-quality-strip span {
  width: auto;
  padding: 0.34rem 0.52rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.download-quality-strip span.is-ok {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(6, 78, 59, 0.28);
  color: #a7f3d0;
}

.download-quality-strip span.is-warning {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(120, 53, 15, 0.28);
  color: #fde68a;
}

.download-quality-strip span.is-neutral {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(30, 64, 175, 0.2);
  color: #bfdbfe;
}

.pre-download-modal.hidden { display: none; }

.pre-download-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pre-download-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.pre-download-panel {
  position: relative;
  width: min(1040px, 96vw);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background:
    radial-gradient(circle at 14% 0%, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(255, 122, 69, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.pre-download-head,
.pre-download-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.pre-download-actions {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 0;
  justify-content: flex-end;
}

.pre-download-head span,
.pre-download-section-head span,
.pre-download-summary span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.pre-download-head strong {
  display: block;
  margin-top: 0.18rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.pre-download-close,
.pre-download-secondary,
.pre-download-primary {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-weight: 900;
  cursor: pointer;
}

.pre-download-close {
  width: 40px;
  padding: 0;
  font-family: var(--font-mono);
}

.pre-download-primary {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ecfdf5;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.18);
}

.pre-download-primary:disabled {
  cursor: wait;
  opacity: 0.62;
}

.pre-download-body {
  overflow: auto;
  padding: 1.1rem;
}

.pre-download-loading,
.pre-download-error {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: #cbd5e1;
}

.pre-download-loading strong,
.pre-download-error strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.pre-download-loading span,
.pre-download-error span {
  color: #94a3b8;
}

.pre-download-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.pre-download-summary article,
.pre-download-section {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 12px;
}

.pre-download-summary article {
  min-height: 130px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pre-download-summary strong {
  color: #f8fafc;
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pre-download-summary em,
.pre-download-solution span,
.pre-download-solution em,
.pre-download-warning-list p {
  color: #94a3b8;
  font-style: normal;
  line-height: 1.45;
}

.pre-download-summary .is-risk-low {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.48), rgba(15, 23, 42, 0.68));
}

.pre-download-summary .is-risk-medium {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.38), rgba(15, 23, 42, 0.72));
}

.pre-download-summary .is-risk-warning {
  border-color: rgba(248, 113, 113, 0.42);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.72));
}

.pre-download-section {
  margin-top: 0.85rem;
  padding: 0.9rem;
}

.pre-download-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.pre-download-section-head strong {
  color: #e0f2fe;
  text-align: right;
}

.pre-download-solution-list {
  display: grid;
  gap: 0.65rem;
}

.pre-download-solution {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(140px, 0.35fr);
  gap: 0.55rem 0.8rem;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.36);
}

.pre-download-solution strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.pre-download-solution b {
  display: block;
  color: #67e8f9;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: right;
}

.pre-download-solution em {
  display: block;
  text-align: right;
}

.pre-download-solution p,
.pre-download-solution small {
  grid-column: 1 / -1;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.pre-download-solution small {
  color: #fed7aa;
}

.pre-download-solution.is-ok {
  border-color: rgba(16, 185, 129, 0.3);
}

.pre-download-solution.is-medium {
  border-color: rgba(245, 158, 11, 0.32);
}

.pre-download-solution.is-warning {
  border-color: rgba(248, 113, 113, 0.4);
}

.pre-download-warning-list {
  display: grid;
  gap: 0.45rem;
}

.pre-download-warning-list p {
  margin: 0;
  padding: 0.62rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(120, 53, 15, 0.18);
  color: #fde68a;
}

.pre-download-warning-list.is-clean p {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(6, 78, 59, 0.2);
  color: #a7f3d0;
}

@media (max-width: 860px) {
  .pre-download-summary,
  .pre-download-solution {
    grid-template-columns: 1fr;
  }

  .pre-download-solution b,
  .pre-download-solution em,
  .pre-download-section-head strong {
    text-align: left;
  }

  .pre-download-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

.download-progress-line {
  height: 6px;
  overflow: hidden;

border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.download-progress-line i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6, #ff8a4c);
  box-shadow: 0 0 14px rgba(20, 184, 166, 0.28);
  transition: width 0.35s ease;
}

@media (min-width: 1180px) {
  .identity-card .identity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .identity-card .member-strip {
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
  }

  .identity-card .solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .identity-card .compact-download {
    grid-template-columns: minmax(420px, 1.15fr) minmax(300px, 0.85fr);
  }
}

/* Messages */
.messages { display: flex; flex-direction: column; gap: 0.8rem; max-height: 300px; overflow-y: auto; padding-right: 10px;}
.messages::-webkit-scrollbar { width: 4px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.messages::-webkit-scrollbar-thumb { background: var(--c-border-subtle); border-radius: 4px; }
.msg-item {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  animation: slideInLeft 0.3s ease-out forwards;
}
.msg-item.info { border-left-color: #3b82f6; background: rgba(59,130,246,0.05); }
.msg-item.success { border-left-color: var(--c-success); background: rgba(16,185,129,0.05); }
.msg-item.warning { border-left-color: var(--c-warning); background: rgba(245,158,11,0.05); }
.msg-item.error { border-left-color: var(--c-danger); background: rgba(239,68,68,0.05); }
.msg-item.notice { border-left-color: #8b5cf6; background: rgba(139,92,246,0.07); }

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 4rem 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0), rgba(13, 17, 23, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.text-gradient {
  background: linear-gradient(90deg, #fff, #ff8a4c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.5rem;
  max-width: 580px;
}

.h-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.h-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 64, 64, 0.3);
  background: rgba(255, 64, 64, 0.05);
}

.h-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 64, 64, 0.1);
  color: #ffb7b7;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 64, 64, 0.2);
}

.h-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.h-stat-info strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.h-stat-info span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #8fa0ba;
}
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: rgba(255,64,64,0.1);
  color: #fff;
  border-color: rgba(255,64,64,0.3);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  z-index: 2;
  position: relative;
}

.footer-bottom-right {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-right a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-right a:hover {
  color: #fff;
}

.footer-signature {
  margin-top: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  box-shadow: inset 0 4px 15px rgba(0,0,0,0.2);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.footer-signature:hover {
  border-color: rgba(255, 64, 64, 0.15);
}

.sig-title {
  font-size: 0.7rem;
  color: #8fa0ba;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.sig-names {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #c9dbf2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}

.sig-sep {
  color: var(--c-primary);
  margin: 0 0.5rem;
  font-weight: 300;
  opacity: 0.8;
  -webkit-text-fill-color: initial;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 64, 64, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-logo { font-family: var(--font-display); color: #fff; font-weight: 700; }
.footer-sep { color: var(--c-border); }

/* Animations */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,64,64,0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,64,64,0); } 100% { box-shadow: 0 0 0 0 rgba(255,64,64,0); } }
@keyframes moveLines { 0% { background-position: 0 0; } 100% { background-position: 100px 100px; } }
@keyframes rotateRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spinHex { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* Init Animations */
.anim-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.anim-in.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem;}
  .hero-eyebrow { justify-content: center; }
  .hero-title { align-items: center; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-features { justify-content: center; }
  .dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-grid { grid-template-columns: repeat(3, 1fr); }
  .identity-grid, .support-grid { grid-template-columns: 1fr; }
  .admin-flow-steps,
  .solution-preset-row,
  .admin-learn-feature-grid,

.solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-strip { grid-template-columns: 1fr; }
  .download-row { grid-template-columns: 1fr; }
  body { cursor: auto; }
  .cursor-glow { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .title-row.title-sub { font-size: 2rem; }
  .action-grid { grid-template-columns: 1fr; }
  .analysis-grid,
  .analysis-summary-grid { grid-template-columns: 1fr; }
  .admin-ecu-profile-grid,
  .admin-quick-learn-grid,
  .admin-flow-steps,
  .solution-preset-row,
  .admin-learn-feature-grid,
  .solution-grid,
  .compact-download { grid-template-columns: 1fr; }
  .download-row { flex-direction: column; text-align: center; }
  .site-footer { flex-direction: column; gap: 0.5rem; }
  .ecu-choice-panel { grid-template-columns: 1fr; }
  .ecu-choice-actions { justify-content: stretch; }
  .ecu-choice-actions button { flex: 1 1 140px; }
  .solution-loading-card { grid-template-columns: 1fr; }
  .upload-shell__steps { grid-template-columns: 1fr; }
  .upload-flow-panel { margin-left: 0.75rem; margin-right: 0.75rem; }
  .nav-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1;
  gap: 1rem;
  margin-left: 0;
}
  .nav-right .user-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
  .member-strip__grid { grid-template-columns: 1fr; }
}

.brand-box--ford img {
  transform: scale(1.02);
}

.brand-box--fiat {
  padding: 0.22rem 0.18rem;
}

.brand-box--fiat img {
  max-width: 108%;
  max-height: 104%;
  transform: scale(1.02) translateY(0);
  transform-origin: center;
  filter:
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 10px rgba(255, 120, 80, 0.10));
}

.brand-box--iveco {
  padding: 0.18rem 0.16rem;
}

.brand-box--iveco img {
  max-width: 112%;
  max-height: 108%;
  transform: scale(1.03);
  transform-origin: center;
  filter:
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 12px rgba(214, 226, 242, 0.14));
}

 / *   L e g a l   M o d a l s   * / 
 . l e g a l - m o d a l - o v e r l a y   { 
     p o s i t i o n :   f i x e d ; 
     t o p :   0 ;   l e f t :   0 ;   r i g h t :   0 ;   b o t t o m :   0 ; 
     b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 7 ) ; 
     b a c k d r o p - f i l t e r :   b l u r ( 8 p x ) ; 
     z - i n d e x :   1 0 0 0 0 ; 
     d i s p l a y :   f l e x ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     a l i g n - i t e m s :   c e n t e r ; 
     o p a c i t y :   0 ; 
     p o i n t e r - e v e n t s :   n o n e ; 
     t r a n s i t i o n :   o p a c i t y   0 . 3 s   e a s e ; 
     f o n t - f a m i l y :   v a r ( - - f o n t - m o n o ) ; 
 } 
 . l e g a l - m o d a l - o v e r l a y . a c t i v e   { 
     o p a c i t y :   1 ; 
     p o i n t e r - e v e n t s :   a l l ; 
 } 
 . l e g a l - m o d a l - c o n t e n t   { 
     b a c k g r o u n d :   r g b a ( 1 3 ,   1 7 ,   2 3 ,   0 . 9 5 ) ; 
     b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   6 4 ,   6 4 ,   0 . 1 5 ) ; 
     b o r d e r - r a d i u s :   1 6 p x ; 
     w i d t h :   9 0 % ; 
     m a x - w i d t h :   6 5 0 p x ; 
     m a x - h e i g h t :   8 5 v h ; 
     b o x - s h a d o w :   0   2 0 p x   6 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     t r a n s f o r m :   t r a n s l a t e Y ( 2 0 p x ) ; 
     t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   c u b i c - b e z i e r ( 0 . 1 7 5 ,   0 . 8 8 5 ,   0 . 3 2 ,   1 . 2 7 5 ) ; 
 } 
 . l e g a l - m o d a l - o v e r l a y . a c t i v e   . l e g a l - m o d a l - c o n t e n t   { 
     t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 . l e g a l - m o d a l - h e a d e r   { 
     p a d d i n g :   1 . 5 r e m   2 r e m ; 
     b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ; 
     d i s p l a y :   f l e x ; 
     j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
     a l i g n - i t e m s :   c e n t e r ; 
 } 
 . l e g a l - m o d a l - h e a d e r   h 2   { 
     f o n t - f a m i l y :   v a r ( - - f o n t - d i s p l a y ) ; 

     f o n t - s i z e :   1 . 4 r e m ; 
     c o l o r :   # f f f ; 
     m a r g i n :   0 ; 
 } 
 . l e g a l - m o d a l - c l o s e   { 
     c o l o r :   v a r ( - - c - t e x t - m u t e d ) ; 
     f o n t - s i z e :   1 . 8 r e m ; 
     c u r s o r :   p o i n t e r ; 
     t r a n s i t i o n :   c o l o r   0 . 2 s ; 
     l i n e - h e i g h t :   1 ; 
 } 
 . l e g a l - m o d a l - c l o s e : h o v e r   { 
     c o l o r :   v a r ( - - c - p r i m a r y ) ; 
 } 
 . l e g a l - m o d a l - b o d y   { 
     p a d d i n g :   2 r e m ; 
     o v e r f l o w - y :   a u t o ; 
     c o l o r :   # a 4 b 4 c b ; 
     l i n e - h e i g h t :   1 . 7 ; 
     f o n t - s i z e :   0 . 9 5 r e m ; 
 } 
 . l e g a l - m o d a l - b o d y   p   { 
     m a r g i n - b o t t o m :   1 . 2 r e m ; 
 } 
 . l e g a l - m o d a l - b o d y   s t r o n g   { 
     c o l o r :   # f f f ; 
 } 
 
 
 


/* H-STAT CARDS PREMIUM */
.h-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.h-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
}

.h-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  transition: width 0.3s ease;
  opacity: 0.8;
}

.h-stat-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.h-stat-card:nth-child(1)::before { background: linear-gradient(180deg, #FF9E5E, #FF5A36); }
.h-stat-card:nth-child(1) .h-stat-icon { color: #FF9E5E; background: rgba(255,90,54,0.1); border: 1px solid rgba(255,90,54,0.2); }

.h-stat-card:nth-child(2)::before { background: linear-gradient(180deg, #00E676, #00B259); }
.h-stat-card:nth-child(2) .h-stat-icon { color: #00E676; background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.2); }

.h-stat-card:nth-child(3)::before { background: linear-gradient(180deg, #42A5F5, #1E88E5); }
.h-stat-card:nth-child(3) .h-stat-icon { color: #42A5F5; background: rgba(66,165,245,0.1); border: 1px solid rgba(66,165,245,0.2); }

.h-stat-card:nth-child(4)::before { background: linear-gradient(180deg, #FFD166, #FFB703); }
.h-stat-card:nth-child(4) .h-stat-icon { color: #FFD166; background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.2); }

.h-stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  z-index: 1;
}

.h-stat-info {
  display: flex; flex-direction: column; gap: 0.35rem; z-index: 1;
}
.h-stat-info strong { font-family: var(--font-display); font-size: 0.95rem; color: #fff; letter-spacing: 0.02em; }
.h-stat-info span { font-size: 0.8rem; color: var(--c-text-muted); line-height: 1.5; }

/* Dosya Kimligi Empty State */
.identity-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--c-text-muted);
}

.identity-empty-state .icon {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.identity-empty-state strong {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.identity-empty-state p {
  font-size: 0.85rem;
  max-width: 250px;
  line-height: 1.5;
}

.identity-grid.is-empty {
  display: none;
}

.file-intel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.intel-btn,
.intel-admin-link {
  min-height: 38px;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(14,165,233,0.12);
  color: #dff7ff;
  font-weight: 900;
  cursor: pointer;
}

.file-intel-panel {
  display: grid;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,0.28);
  background: linear-gradient(135deg, rgba(8,47,73,0.28), rgba(2,6,23,0.66));
}

.intel-panel-head,
.intel-summary,
.intel-score-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.intel-panel-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}

.intel-panel-head button {
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  border-radius: 7px;
  padding: 0.4rem 0.65rem;
}

.intel-summary span,
.intel-score-grid div {
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(15,23,42,0.58);
  border-radius: 8px;
  padding: 0.58rem 0.75rem;
}

.intel-summary .ok { color: #86efac; border-color: rgba(34,197,94,0.35); }
.intel-summary .warn { color: #fde68a; border-color: rgba(245,158,11,0.38); }

.intel-score-grid div {
  display: grid;
  min-width: 145px;
}

.intel-score-grid span,
.file-intel-panel small,
.intel-matrix-list span,
.intel-matrix-list em {
  color: #94a3b8;
  font-size: 0.78rem;
}

.intel-score-grid strong,
.intel-matrix-list strong {
  color: #f8fafc;
}

.intel-matrix-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.intel-matrix-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.48);
}

.intel-matrix-list article.ok {
  border-color: rgba(34,197,94,0.34);
  background: rgba(20,83,45,0.18);
}

.intel-matrix-list article.missing {
  border-color: rgba(245,158,11,0.35);
  background: rgba(120,53,15,0.16);
}

.intel-matrix-list article.off {
  border-color: rgba(148,163,184,0.2);
  opacity: 0.78;
}

.intel-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intel-signal-list em,
.simulation-result {
  border: 1px solid rgba(56,189,248,0.22);
  background: rgba(14,165,233,0.08);
  color: #bae6fd;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-style: normal;
}

.intel-sim-btn {
  justify-self: start;
  margin-top: 4px;
  border: 1px solid rgba(34,197,94,0.34);
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  font-weight: 900;
}

.simulation-result {
  display: grid;
  gap: 4px;
  border-color: rgba(34,197,94,0.34);
  background: rgba(20,83,45,0.18);
}

button.btn-home-link {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.nav-right > #accountPanelBtn.btn-home-link {
  display: none !important;
}

.nav-right .user-info {
  cursor: pointer;
  position: relative;
}

.nav-right .user-info::before {
  content: 'Hesabim';
  position: absolute;
  top: 1.15rem;
  right: 0;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.48rem;
  text-transform: uppercase;
}

body.sidebar-collapsed .nav-right .user-info::before {
  display: none;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(12px);
}

.account-panel {
  position: relative;
  width: min(940px, calc(100vw - 2rem));
  max-height: min(860px, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(10, 16, 26, 0.98), rgba(6, 9, 14, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-panel__head span,
.account-card__head p,
.account-summary-grid article span,
.account-card label span {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-panel__head h2,
.account-card__head h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.account-panel__head button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--c-text);
  cursor: pointer;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-summary-grid article,
.account-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  padding: 1rem;
}

.account-summary-grid article strong {
  display: block;
  margin: 0.35rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.account-summary-grid article em,
.account-session-item em {
  display: block;
  color: var(--c-text-muted);
  font-style: normal;
  font-size: 0.84rem;
}

.account-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.9rem;
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.account-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-card input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--c-text);
  padding: 0.85rem 0.9rem;
  outline: none;
}

.account-card input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.account-card button,
.account-session-item button {
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(14, 165, 233, 0.2));
  color: #dffdf2;
  cursor: pointer;
  font-weight: 800;
  padding: 0.78rem 0.95rem;
}

.account-session-list {
  display: grid;
  gap: 0.65rem;
  max-height: 280px;
  overflow: auto;
}

.account-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.5);
  padding: 0.75rem;
}

.account-session-item strong {
  display: block;
  color: var(--c-text);
}

.account-session-item span {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.86rem;
}

.account-session-item small {
  color: var(--c-success);
  font-weight: 900;
  text-transform: uppercase;
}

.account-session-empty {
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--c-text-muted);
  padding: 0.9rem;
}

.account-session-empty.is-error {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 760px) {
  .account-summary-grid,
  .account-panel__grid {
    grid-template-columns: 1fr;
  }

  .account-panel {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }
}

/* Hesabim panel v2 */
.account-panel {
  width: min(980px, calc(100vw - 2rem));
  border-color: rgba(34, 211, 238, 0.32);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 93, 64, 0.12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(9, 14, 24, 0.99), rgba(5, 8, 14, 0.99));
}

.account-panel__head--upgraded {
  align-items: flex-start;
}

.account-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.account-title-icon,
.account-avatar,
.account-session-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.account-title-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 93, 64, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 93, 64, 0.22), rgba(34, 211, 238, 0.12));
  color: #fff4ee;
  font-family: var(--font-display);
  font-size: 1.45rem;
  box-shadow: 0 0 26px rgba(255, 93, 64, 0.16);
}

.account-panel__head p {
  margin: 0.3rem 0 0;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

.account-panel__head button {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.account-panel__head button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 93, 64, 0.55);
  background: rgba(255, 93, 64, 0.14);
}

.account-hero-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(16, 185, 129, 0.08), rgba(255, 93, 64, 0.08)),
    rgba(2, 6, 23, 0.58);
  padding: 0.9rem 1rem;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(16, 185, 129, 0.48);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(34, 211, 238, 0.18));
  color: #dffdf2;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.account-hero-strip span,
.account-card__head span {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-hero-strip strong {
  display: block;
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.account-hero-strip em {
  display: block;
  color: #7dd3fc;
  font-style: normal;
  font-size: 0.88rem;
}

.account-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
}

.account-summary-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -32px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  opacity: 0.26;
}

.account-summary-user {
  border-color: rgba(34, 211, 238, 0.25);
}

.account-summary-user::after {
  background: #38bdf8;
}

.account-summary-user.is-admin {
  border-color: rgba(255, 93, 64, 0.36);
}

.account-summary-user.is-admin::after {
  background: #ff704d;
}

.account-summary-time.is-unlimited,
.account-summary-time.is-healthy,
.account-summary-credit.is-healthy {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.26), rgba(15, 23, 42, 0.66));
}

.account-summary-time.is-unlimited::after,
.account-summary-time.is-healthy::after,
.account-summary-credit.is-healthy::after {
  background: #10b981;
}

.account-summary-time.is-warning,
.account-summary-credit.is-warning {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.24), rgba(15, 23, 42, 0.66));
}

.account-summary-time.is-warning::after,
.account-summary-credit.is-warning::after {
  background: #f59e0b;
}

.account-summary-time.is-danger,
.account-summary-credit.is-danger {
  border-color: rgba(239, 68, 68, 0.46);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.24), rgba(15, 23, 42, 0.66));
}

.account-summary-time.is-danger::after,
.account-summary-credit.is-danger::after {
  background: #ef4444;
}

.account-card {
  border-color: rgba(34, 211, 238, 0.18);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 38%),
    rgba(8, 13, 24, 0.78);
}

.account-card__head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 0.7rem;
}

.account-card__head h3 {
  color: #f8fafc;
}

.account-card input {
  min-height: 46px;
}

.account-card button,
.account-session-item button {
  min-height: 44px;
}

.account-session-list {
  max-height: 320px;
  padding-right: 0.2rem;
}

.account-session-item {
  align-items: center;
  justify-content: flex-start;
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.74));
}

.account-session-item.is-current {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.24), rgba(2, 6, 23, 0.74));
}

.account-session-badge {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 12px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.1);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.account-session-item.is-current .account-session-badge {
  border-color: rgba(16, 185, 129, 0.44);
  color: #86efac;
  background: rgba(16, 185, 129, 0.14);
}

.account-session-copy {
  min-width: 0;
  flex: 1;
}

.account-session-copy code {
  display: inline-flex;
  margin-top: 0.28rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.45);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
}

.account-session-item button {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(255, 93, 64, 0.18));
  border-color: rgba(239, 68, 68, 0.38);
  color: #fee2e2;
}

.account-session-item small {
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.28rem 0.55rem;
}

@media (max-width: 760px) {
  .account-hero-strip,
  .account-title-wrap {
    align-items: flex-start;
  }

  .account-session-item {
    flex-wrap: wrap;
  }
}

.account-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
  padding: 0.45rem;
}

.account-center-tabs button {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.86rem;
  padding: 0.62rem 0.8rem;
}

.account-center-tabs button.active {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(16, 185, 129, 0.14));
  color: #e0f2fe;
}

.account-center-panel {
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.1), transparent 34%),
    rgba(2, 6, 23, 0.46);
  padding: 0.95rem;
}

.account-kpi-grid,
.account-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-package-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0.8rem 0;
}

.account-kpi,
.account-package-view > article,
.account-timeline-item,
.account-ledger-item,
.account-ticket-card,
.account-report-card,
.account-notification,
.account-recent-ecu {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  padding: 0.8rem;
}

.account-kpi span,
.account-package-view span,
.account-center-columns h4,
.account-package-view h4 {
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.account-kpi strong,
.account-package-view strong {
  display: block;
  margin-top: 0.25rem;
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.account-kpi em,
.account-package-view p,
.account-recent-ecu span,
.account-ticket-card li,
.account-report-card span {
  color: var(--c-text-muted);
  font-style: normal;
  font-size: 0.84rem;
}

.account-kpi-blue {
  border-color: rgba(34, 211, 238, 0.26);
}

.account-kpi-green {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.18), rgba(15, 23, 42, 0.58));
}

.account-kpi-orange {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(145deg, rgba(124, 45, 18, 0.18), rgba(15, 23, 42, 0.58));
}

.account-center-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.account-center-columns section,
.account-package-view section {
  display: grid;
  gap: 0.55rem;
}

.account-notification {
  border-color: rgba(34, 211, 238, 0.22);
}

.account-notification.is-warning {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(120, 53, 15, 0.16);
}

.account-notification.is-danger {
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(127, 29, 29, 0.16);
}

.account-notification strong,
.account-timeline-item strong,
.account-ledger-item strong,
.account-ticket-card strong,
.account-report-card strong,
.account-recent-ecu strong {
  display: block;
  color: #f8fafc;
}

.account-notification span {
  color: var(--c-text-muted);
  font-size: 0.88rem;
}

.account-recent-ecu,
.account-ledger-item,
.account-report-card > div:first-child,
.account-ticket-card > div:first-child,
.account-timeline-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-recent-ecu em,
.account-ledger-item em,
.account-timeline-item em {
  color: #7dd3fc;
  font-style: normal;
  font-weight: 800;
}

.account-timeline,
.account-ledger,
.account-ticket-grid,
.account-report-grid {
  display: grid;
  gap: 0.7rem;
}

.account-timeline-item p,
.account-ticket-card p,
.account-report-card p {
  margin: 0.55rem 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.account-timeline-item small,
.account-ledger-item small {
  display: block;
  color: var(--c-text-muted);
  text-align: right;
}

.account-ledger-item.is-plus {
  border-color: rgba(16, 185, 129, 0.3);
}

.account-ledger-item.is-plus strong {
  color: #86efac;
}

.account-ledger-item.is-minus {
  border-color: rgba(249, 115, 22, 0.3);
}

.account-ledger-item.is-minus strong {
  color: #fdba74;
}

.account-ticket-card.open,
.account-ticket-card.inprogress {
  border-color: rgba(245, 158, 11, 0.34);
}

.account-ticket-card.resolved {
  border-color: rgba(16, 185, 129, 0.32);
}

.account-ticket-card ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.account-ticket-card em {
  display: block;
  margin-top: 0.65rem;
  color: #bae6fd;
  font-style: normal;
}

.account-report-tags,
.account-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.account-report-tags em,
.account-chip-list span {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
  font-style: normal;
  font-size: 0.76rem;
  padding: 0.24rem 0.55rem;
}

.account-package-view {
  display: grid;
  gap: 0.9rem;
}

@media (max-width: 900px) {
  .account-kpi-grid,
  .account-package-grid,
  .account-center-columns {
    grid-template-columns: 1fr;
  }
}

/* Hesap merkezi temiz duzen */
.account-panel {
  width: min(1040px, calc(100vw - 2rem));
  max-height: min(820px, calc(100vh - 2rem));
  padding: 1.15rem;
}

.account-panel__head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.account-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.account-clean-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1rem;
  min-height: 540px;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  padding: 0.85rem;
}

.account-main {
  min-width: 0;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  padding: 0.85rem;
}

.account-clean-shell .account-hero-strip {
  margin: 0;
  border-radius: 14px;
  padding: 0.8rem;
}

.account-clean-shell .account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.account-clean-shell .account-hero-strip strong {
  font-size: 1rem;
}

.account-clean-shell .account-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
}

.account-clean-shell .account-summary-card {
  min-height: auto;
  border-radius: 12px;
  padding: 0.7rem;
}

.account-clean-shell .account-summary-card::after {
  display: none;
}

.account-clean-shell .account-summary-grid article strong {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.account-clean-shell .account-center-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.account-clean-shell .account-center-tabs button {
  display: flex;
  justify-content: flex-start;
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.42);
  color: #94a3b8;
  padding: 0.72rem 0.8rem;
  text-align: left;
}

.account-clean-shell .account-center-tabs button.active {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(16, 185, 129, 0.1));
  color: #f8fafc;
}

.account-clean-shell .account-center-panel,
.account-clean-shell .account-panel__grid {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.account-clean-shell .account-kpi-grid,
.account-clean-shell .account-package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-clean-shell .account-package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-clean-shell .account-kpi,
.account-clean-shell .account-package-view > article,
.account-clean-shell .account-timeline-item,
.account-clean-shell .account-ledger-item,
.account-clean-shell .account-ticket-card,
.account-clean-shell .account-report-card,
.account-clean-shell .account-notification,
.account-clean-shell .account-recent-ecu,
.account-clean-shell .account-card {
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.56);
}

.account-clean-shell .account-panel__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.account-clean-shell .account-panel__grid.hidden,
.account-clean-shell .account-center-panel.hidden {
  display: none;
}

@media (max-width: 900px) {
  .account-clean-shell {
    grid-template-columns: 1fr;
  }

  .account-clean-shell .account-center-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-clean-shell .account-kpi-grid,
  .account-clean-shell .account-package-grid,
  .account-clean-shell .account-panel__grid {
    grid-template-columns: 1fr;
  }
}
