/* ==========================================================
   CadRev Premium Aesthetic — v5 Fine Polish (Engineer Edition)
   Progressive enhancement — graceful fallbacks everywhere
   ========================================================== */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --navy:          #07111a;
  --navy-2:        rgba(11, 23, 35, 0.82);
  --navy-3:        rgba(16, 31, 47, 0.82);
  --amber:         #d98a0c;
  --amber-lit:     #f09c16;
  --amber-dim:     rgba(217, 138, 12, 0.10);
  --amber-border:  rgba(217, 138, 12, 0.22);
  --glass-border:  rgba(78, 106, 130, 0.18);
  --shadow-premium: 0 12px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  --shadow-glow:    0 4px 24px rgba(217, 138, 12, 0.20);
}

/* ── Background ─────────────────────────────────────────── */
body {
  background-color: var(--navy);
  background-image:
    /* ① Noise — subtle grain texture for depth (like premium print) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    /* ② Major accent lines — every 5th cell (300px) — blueprint feel */
    linear-gradient(rgba(78, 106, 130, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 106, 130, 0.13) 1px, transparent 1px),
    /* ③ Minor grid lines — 60px base grid */
    linear-gradient(rgba(78, 106, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 106, 130, 0.055) 1px, transparent 1px);
  background-size:
    200px 200px,
    300px 300px, 300px 300px,
    60px 60px,   60px 60px;
  background-attachment: fixed;
  overflow-y: scroll !important;
  letter-spacing: -0.01em;
}

/* Ambient glow — elegant, right-side, steel blue */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; height: 100vh;
  background: radial-gradient(circle at 95% 65%, rgba(65, 105, 160, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Scroll Progress Bar ────────────────────────────────── */
#cr-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-lit));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ── Typography — Inter as primary, JetBrains Mono for tech labels */
body, p, a, span, div, li, td, th, button, input, select, textarea {
  font-family: 'Inter', system-ui, sans-serif;
}
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
p { line-height: 1.72; }

/* JetBrains Mono stays for technical labels only */
.eyebrow, .ph-eyebrow, .feat-num, .pi-num, .pi-label,
.plan-name, .plan-sub, .ps, .feat-tag, .tl-lbl, .tl-desc,
.feat-tag, .hero-badges, .hero-badge {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Page Hero Spacing — tight and punchy ───────────────── */
.ph {
  padding-top: 96px !important;
  padding-bottom: 16px !important;
  border-bottom: none !important;  /* Remove line — clean separation */
}

/* Section right below hero — reduce top gap dramatically */
section[style*="padding:72px 0 0"],
section[style*="padding: 72px 0 0"] {
  padding-top: 28px !important;
}

/* ── Headline Gradient Text — h1 key words shine ─────────── */
/* Apply .cr-grad to any span inside h1 or h2 for gradient accent */
.cr-grad {
  background: linear-gradient(135deg, #f0a830 0%, #d98a0c 60%, #c07a0a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* h1 on subpages — slightly smaller, tight */
.ph h1 {
  font-size: clamp(28px, 4.5vw, 52px) !important;
  letter-spacing: -0.038em !important;
  line-height: 1.04 !important;
}

/* Subtitle text under headings */
.ph p {
  font-size: 15.5px !important;
  color: rgba(125, 151, 176, 0.9) !important;
  margin-top: 10px !important;
  max-width: 500px;
  line-height: 1.68 !important;
}

/* ph-eyebrow: tighter look */
.ph-eyebrow {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9.5px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--amber) !important;
  margin-bottom: 10px !important;
  opacity: 0.85 !important;
}

/* General section headings — add eyebrow rule to eyebrow class */
.eyebrow {
  font-size: 9.5px !important;
  letter-spacing: 0.18em !important;
  margin-bottom: 10px !important;
  opacity: 0.85 !important;
}

/* h2 in sections — tighter, more elegant */
.section h2, section h2 {
  font-size: clamp(22px, 3vw, 36px) !important;
  letter-spacing: -0.032em !important;
  line-height: 1.08 !important;
}

/* ── Pricing plan overflow fix ──────────────────────────── */
.plans, .plan-tease, .plan, .plan-t { overflow: visible !important; }

/* ── Navbar ─────────────────────────────────────────────── */
nav {
  height: 66px !important;
  background: rgba(7, 17, 26, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}
.nav-inner {
  max-width: 1240px !important;
  position: relative !important;
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  position: relative;
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  letter-spacing: -0.01em !important;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.22s ease;
  border-radius: 2px;
}
.nav-links a:hover::after { width: 60%; }
.nav-links a.cur::after   { width: 100%; }

.logo img { height: 40px !important; }

.nav-ovr {
  margin-left: 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}
/* ── Übersicht badge — Steel-glass, NOT amber (Download is the CTA) ─ */
.nav-ovr {
  margin-left: 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  background: rgba(78, 106, 130, 0.10) !important;
  border: 1px solid rgba(78, 106, 130, 0.22) !important;
  padding: 5px 13px !important;
  border-radius: 4px !important;
  color: var(--white-2) !important;
}
.nav-ovr:hover {
  background: rgba(78, 106, 130, 0.18) !important;
  color: var(--white) !important;
  border-color: rgba(78, 106, 130, 0.32) !important;
}

/* ── Pre-Launch Banner — Inter font, refined ─────────────── */
.prelaunch-banner {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
}
@media (max-width: 768px) {
  .prelaunch-banner {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px 16px !important;
    font-size: 10.5px !important;
    text-align: center !important;
    line-height: 1.55 !important;
  }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.005em !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber-lit), var(--amber)) !important;
  box-shadow: 0 2px 10px rgba(217, 138, 12, 0.18) !important;
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow) !important;
  transform: translateY(-1px);
}
.btn-secondary:hover {
  background: rgba(78, 106, 130, 0.14) !important;
  transform: translateY(-1px);
}

/* ── Keyboard Focus — only when tabbing ─────────────────── */
body.cr-keyboard-nav *:focus {
  outline: 2px solid var(--amber) !important;
  outline-offset: 3px !important;
  border-radius: 3px;
}
body:not(.cr-keyboard-nav) *:focus {
  outline: none !important;
}

/* ── Hero meta badges (Sofort einsatzbereit etc.) ───────── */
.hm {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
  color: rgba(125, 151, 176, 0.75) !important;
  text-transform: none !important;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero::before {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(217, 138, 12, 0.06) 0%, transparent 70%);
}
.hero-text h1 span {
  background: linear-gradient(135deg, #f59e0b, #d98a0c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Liquid Glass Cards ─────────────────────────────────── */
.pi, .vision-card, .prob, .mini-card, .aud, .plan, .cta-box,
.dl-box, .arch-node, .arch-prop, .metric, .qa-cat, .cc,
.meta-card, .state-node, .health-item, .release-card,
.table-wrap, .kpi, .chart-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Card hover lift */
.card, .feat-card, .metric, .aud-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.card:hover, .feat-card:hover, .aud-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(78, 106, 130, 0.30) !important;
}

/* ── CTA Box — more dramatic, with ambient glow ────────── */
.cta-box {
  background: linear-gradient(135deg,
    rgba(16, 31, 47, 0.9) 0%,
    rgba(11, 23, 35, 0.9) 100%) !important;
  border: 1px solid rgba(78, 106, 130, 0.20) !important;
  box-shadow: 0 0 80px rgba(65, 105, 160, 0.08),
              0 24px 48px rgba(0, 0, 0, 0.35) !important;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(217, 138, 12, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  letter-spacing: -0.035em !important;
  line-height: 1.06 !important;
}

/* ── Pricing Cards ──────────────────────────────────────── */
.plan-t {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.plan-t.pop {
  border: 1px solid var(--amber-border) !important;
  box-shadow: var(--shadow-premium), 0 0 0 1px rgba(217, 138, 12, 0.06) inset !important;
}

/* Pricing highlight on hover (driven by JS) */
.plan-t.cr-dim {
  opacity: 0.6;
  transform: scale(0.99);
}
.plan-t.cr-focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), 0 0 32px rgba(78, 106, 130, 0.15) !important;
  border-color: rgba(78, 106, 130, 0.35) !important;
}
.plan-t.pop.cr-focus {
  box-shadow: var(--shadow-premium), 0 0 40px rgba(217, 138, 12, 0.18) !important;
  border-color: rgba(217, 138, 12, 0.35) !important;
}

/* ── Roadmap: current dot pulses ────────────────────────── */
@keyframes cr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 138, 12, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(217, 138, 12, 0); }
}
.tl-dot.now {
  animation: cr-pulse 2s ease-in-out infinite;
  position: relative;
}
.tl-dot.now::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(217, 138, 12, 0.3);
  animation: cr-pulse 2s ease-in-out infinite;
}

/* ── Roadmap Phase Grid ──────────────────────────────────── */
.pi {
  transition: all 0.22s ease !important;
}
.pi:hover {
  border-color: rgba(78, 106, 130, 0.28) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
}

/* ── Feature Rows ───────────────────────────────────────── */
.feat-row {
  transition: background 0.2s ease;
}
.feat-row:hover {
  background: rgba(78, 106, 130, 0.03) !important;
}

/* ── Status Lifecycle nodes ─────────────────────────────── */
.state-flow {
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.state-node {
  font-family: 'Inter', sans-serif !important;
  background: var(--navy-2) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
  padding: 14px 18px !important;
  min-width: 130px !important;
  flex: 1 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.state-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
}
.state-node.st-b { background: rgba(59,130,246,0.07) !important; border-color: rgba(59,130,246,0.22) !important; }
.state-node.st-b .sn-dot { background: #3b82f6 !important; }
.state-node.st-p { background: rgba(168,85,247,0.07) !important; border-color: rgba(168,85,247,0.22) !important; }
.state-node.st-p .sn-dot { background: #a855f7 !important; }
.state-node.st-g { background: rgba(34,197,94,0.07) !important; border-color: rgba(34,197,94,0.22) !important; }
.state-node.st-g .sn-dot { background: #22c55e !important; }
.state-node.st-r { background: rgba(239,68,68,0.07) !important; border-color: rgba(239,68,68,0.22) !important; }
.state-node.st-r .sn-dot { background: #ef4444 !important; }
.sn-dot { width: 7px; height: 7px; border-radius: 50%; margin-bottom: 8px; }
.state-node .sn-name {
  font-size: 12.5px !important; font-weight: 600 !important;
  color: var(--white) !important; margin-bottom: 3px !important;
  font-family: 'Inter', sans-serif !important;
}
.state-node .sn-desc {
  font-size: 11px !important; color: var(--grey) !important;
  line-height: 1.5 !important; font-family: 'Inter', sans-serif !important;
}
.st-arr { color: var(--grey-dim) !important; font-size: 16px !important; }

/* ── Forms ───────────────────────────────────────────────── */
input[type=email], input[type=password], input[type=text],
input[type=number], select, textarea {
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(217, 138, 12, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(217, 138, 12, 0.12) !important;
}

/* ── Modals ─────────────────────────────────────────────── */
.modal-bg { backdrop-filter: blur(10px) !important; }
.modal {
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* ── Download Modal — Login-Card Style ──────────────────── */
.cr-modal {
  background: var(--navy-2, rgba(8,18,28,0.97)) !important;
  border: 1px solid rgba(78, 106, 130, 0.20) !important;
  border-radius: 10px !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.75) !important;
  overflow: hidden !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 0 !important;
  width: 440px !important;
  max-width: calc(100vw - 32px) !important;
  position: relative !important;
}

/* Header with logo background */
.cr-dl-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 24px 28px;
  background-color: rgb(2, 18, 31) !important;
  border-bottom: 1px solid rgba(78, 106, 130, 0.18);
}

/* Close button inside header */
.cr-modal-close-hdr {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.cr-modal-close-hdr:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
}
.cr-modal-close-hdr svg { display: block; }

/* Custom checkbox */
.cr-check-wrap { margin-bottom: 16px; }
.cr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.cr-checkbox-input {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}
.cr-checkbox-box {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border-radius: 3px;
  border: 1px solid rgba(78, 106, 130, 0.40);
  background: rgba(78, 106, 130, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  margin-top: 1px;
  overflow: hidden;
}
.cr-checkbox-box svg {
  display: block;
  width: 9px !important;
  height: 7px !important;
  max-width: 9px !important;
  max-height: 7px !important;
  stroke: var(--amber);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.cr-checkbox-input:checked + .cr-checkbox-box {
  background: rgba(217, 138, 12, 0.12);
  border-color: rgba(217, 138, 12, 0.50);
}
.cr-checkbox-input:checked + .cr-checkbox-box svg { opacity: 1; }
.cr-checkbox-text {
  font-size: 11.5px;
  color: rgba(125, 151, 176, 0.80);
  line-height: 1.55;
}
.cr-checkbox-text a {
  color: rgba(217, 138, 12, 0.90);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cr-checkbox-text a:hover { color: var(--amber-lit); }



/* Amber top bar */
.cr-modal-topbar {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 30%, var(--amber-lit) 50%, var(--amber) 70%, transparent 100%);
}

/* Header row */
.cr-modal-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 20px 14px !important;
  border-bottom: 1px solid rgba(78, 106, 130, 0.12) !important;
}
.cr-modal-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}
.cr-modal-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}
.cr-modal-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(78, 106, 130, 0.10);
  border: 1px solid rgba(78, 106, 130, 0.16);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.cr-modal-close:hover {
  background: rgba(78, 106, 130, 0.22);
  color: var(--white);
}
.cr-modal-close svg { display: block; }

/* Body */
.cr-modal-body { padding: 20px !important; }

.cr-modal-sub {
  font-size: 12.5px !important;
  color: rgba(125, 151, 176, 0.75) !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
}

/* Fields */
.cr-field { margin-bottom: 13px; }
.cr-label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(125, 151, 176, 0.60);
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}

/* Custom checkbox — fixed, no giant SVG */
.cr-check-wrap { margin-bottom: 16px; }
.cr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.cr-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.cr-checkbox-box {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(78, 106, 130, 0.40);
  background: rgba(78, 106, 130, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  margin-top: 1px;
  overflow: hidden;
}
.cr-checkbox-box svg {
  display: block;
  width: 9px !important;
  height: 7px !important;
  min-width: 9px;
  min-height: 7px;
  max-width: 9px;
  max-height: 7px;
  stroke: var(--amber);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.cr-checkbox-input:checked ~ .cr-checkbox-box,
.cr-checkbox-label:has(.cr-checkbox-input:checked) .cr-checkbox-box {
  background: rgba(217, 138, 12, 0.12);
  border-color: rgba(217, 138, 12, 0.50);
}
.cr-checkbox-input:checked ~ .cr-checkbox-box svg,
.cr-checkbox-label:has(.cr-checkbox-input:checked) .cr-checkbox-box svg {
  opacity: 1;
}
.cr-checkbox-text {
  font-size: 11.5px;
  color: rgba(125, 151, 176, 0.80);
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}
.cr-checkbox-text a {
  color: rgba(217, 138, 12, 0.90);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cr-checkbox-text a:hover { color: var(--amber-lit); }

/* Error */
.cr-error {
  font-size: 12px;
  color: #fca5a5;
  margin-bottom: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  padding: 8px 12px;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}

/* Submit button */
.cr-submit-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  gap: 7px !important;
  margin-top: 4px;
}




/* ── Tables ─────────────────────────────────────────────── */
.tbl th, .comp-table th {
  font-family: 'Inter', sans-serif !important;
  background: rgba(8, 23, 41, 0.85) !important;
  backdrop-filter: blur(4px);
}

/* ── App Mockup ─────────────────────────────────────────── */
.app-mockup {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

/* ── Q&A items ───────────────────────────────────────────── */
.qa-item {
  transition: border-color 0.18s ease !important;
}
.qa-item:hover {
  border-color: rgba(78, 106, 130, 0.28) !important;
}
.qa-item.open {
  border-color: rgba(217, 138, 12, 0.25) !important;
  background: rgba(217, 138, 12, 0.02) !important;
}

/* smooth expand/collapse — replaces display:none toggle */
.qa-a {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.qa-a.open {
  max-height: 900px;
  padding-bottom: 16px !important;
}

/* ── Status Lifecycle cards ─────────────────────────────── */
.state-flow {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr !important;
  align-items: stretch !important;
  gap: 0 8px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin-top: 40px !important;
}
.state-node {
  background: var(--navy-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex: 1 !important;
  min-width: 150px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.state-node::before {
  content: '' !important;
  display: block !important;
  height: 3px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}
.state-node .sn-dot,
.state-node .sn-name,
.state-node .sn-desc {
  display: block !important;
}
.state-node .sn-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  margin: 20px 20px 10px !important;
  flex-shrink: 0 !important;
}
.state-node .sn-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  padding: 0 20px 6px !important;
  line-height: 1.3 !important;
}
.state-node .sn-desc {
  font-size: 11px !important;
  color: var(--grey) !important;
  line-height: 1.55 !important;
  padding: 0 20px 20px !important;
  flex: 1 !important;
}
/* blue — In Bearbeitung */
.st-b { border-color: rgba(59,130,246,.2) !important; }
.st-b::before { background: #3b82f6 !important; }
.st-b .sn-dot { background: #3b82f6 !important; box-shadow: 0 0 6px rgba(59,130,246,.5) !important; }
/* purple — Druckbereit */
.st-p { border-color: rgba(139,92,246,.2) !important; }
.st-p::before { background: #8b5cf6 !important; }
.st-p .sn-dot { background: #8b5cf6 !important; box-shadow: 0 0 6px rgba(139,92,246,.5) !important; }
/* green — Freigegeben */
.st-g { border-color: rgba(34,197,94,.2) !important; }
.st-g::before { background: #22c55e !important; }
.st-g .sn-dot { background: #22c55e !important; box-shadow: 0 0 6px rgba(34,197,94,.5) !important; }
/* red — Ungültig */
.st-r { border-color: rgba(239,68,68,.2) !important; }
.st-r::before { background: #ef4444 !important; }
.st-r .sn-dot { background: #ef4444 !important; box-shadow: 0 0 6px rgba(239,68,68,.5) !important; }
/* arrow between cards */
.st-arr {
  font-size: 14px !important;
  color: var(--grey-dim) !important;
  padding: 0 4px !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}
@media (max-width: 700px) {
  .state-flow { grid-template-columns: 1fr !important; gap: 8px 0 !important; }
  .st-arr { display: none !important; }
}

/* ── Vision cards (roadmap) ─────────────────────────────── */
.vision-card {
  transition: all 0.22s ease !important;
}
.vision-card:hover {
  border-color: rgba(78, 106, 130, 0.28) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
}

/* ── Footer — gradient top border + better spacing ──────── */
footer {
  border-top: none !important;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(78, 106, 130, 0.25) 20%,
    rgba(78, 106, 130, 0.35) 50%,
    rgba(78, 106, 130, 0.25) 80%,
    transparent 100%
  );
}
.footer-inner {
  padding-top: 40px !important;
  padding-bottom: 32px !important;
}
.footer-links a {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  transition: color 0.15s ease !important;
}
.footer-links a:hover {
  color: var(--white) !important;
}
.footer-copy {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  opacity: 0.5 !important;
  letter-spacing: 0.01em !important;
}

/* ── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px !important; }
  .nav-links { display: none !important; }
  h1 { font-size: clamp(26px, 7.5vw, 42px) !important; }
  h2 { font-size: clamp(20px, 5.5vw, 30px) !important; }

  /* Disable heavy animations on mobile for performance */
  .plan-t.cr-dim,
  .plan-t.cr-focus { transform: none; opacity: 1; }

  /* Roadmap phase grid: single column on mobile */
  .pi-grid { grid-template-columns: 1fr !important; }
  .pi[style*="grid-column"] { grid-column: auto !important; }
  .cta-box::before { display: none; } /* Disable glow on mobile */
}

/* ==========================================================
   CadRev Mobile Experience — v1
   ========================================================== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    background-size:
      180px 180px,
      240px 240px, 240px 240px,
      40px 40px, 40px 40px !important;
  }

  body > section,
  body > .hero,
  body > .marquee,
  body > footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.cr-menu-open {
    overflow: hidden !important;
  }

  body.cr-menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 185;
    background: rgba(3, 8, 14, 0.46);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  nav {
    height: 62px !important;
  }

  .nav-inner {
    padding: 0 14px !important;
    gap: 8px !important;
  }

  .nav-inner > div:first-child {
    min-width: 0;
  }

  .logo img {
    height: 34px !important;
    max-width: 148px;
    object-fit: contain;
  }

  .logo + div,
  .nav-ovr {
    display: none !important;
  }

  .nav-right {
    gap: 8px !important;
    flex-shrink: 0;
  }

  .lang-sw {
    height: 32px !important;
    margin-right: 0 !important;
  }

  .lang-btn {
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #mob-menu-btn {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    justify-content: center;
    border: 1px solid rgba(78, 106, 130, 0.24) !important;
    background: rgba(10, 22, 34, 0.82) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
  }

  #mob-menu-btn svg line {
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  #mob-menu-btn[aria-expanded="true"] svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  #mob-menu-btn[aria-expanded="true"] svg line:nth-child(2) {
    opacity: 0;
  }

  #mob-menu-btn[aria-expanded="true"] svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mob-menu {
    position: fixed !important;
    top: 74px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    z-index: 195 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 12px !important;
    background:
      linear-gradient(180deg, rgba(12, 27, 42, 0.98), rgba(5, 15, 27, 0.98)) !important;
    border: 1px solid rgba(78, 106, 130, 0.24) !important;
    border-radius: 10px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255,255,255,.025) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .mob-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    animation: none !important;
  }

  .mob-menu a:not(.btn) {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px !important;
    border: 1px solid transparent !important;
    border-radius: 7px;
    color: var(--white-2) !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    letter-spacing: 0 !important;
  }

  .mob-menu a:not(.btn)::after {
    content: '›';
    color: var(--grey-dim);
    font-size: 20px;
    line-height: 1;
  }

  .mob-menu a:not(.btn):hover,
  .mob-menu a:not(.btn).cur {
    background: rgba(78, 106, 130, 0.08);
    border-color: rgba(78, 106, 130, 0.16) !important;
    color: var(--white) !important;
  }

  .mob-menu .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center !important;
    margin-top: 6px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
  }

  .mob-menu .btn + .btn {
    margin-top: 8px !important;
  }

  .mob-menu > div:last-child {
    margin-top: 10px !important;
    padding: 12px 4px 2px !important;
    border-top: 1px solid rgba(78, 106, 130, 0.14) !important;
  }

  .wrap,
  .footer-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .section,
  section.arch-sec,
  section.state-sec,
  section.comp-sec,
  section.audience-sec,
  section.feat-section,
  .problem-strip,
  .rm-section,
  .faq-sec {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .ph,
  .ph-section,
  .page-hero,
  .page-hero.sec {
    padding: 92px 0 34px !important;
  }

  .ph h1,
  .ph-section h1,
  .page-hero h1 {
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }

  .ph p,
  .ph-section p,
  .page-hero p {
    font-size: 15px !important;
    line-height: 1.62 !important;
    max-width: none !important;
  }

  .hero {
    min-height: auto !important;
    padding: 92px 0 0 !important;
  }

  .hero-text {
    text-align: left !important;
    padding: 0 18px !important;
    margin-bottom: 24px !important;
    max-width: none !important;
  }

  .hero-eyebrow {
    justify-content: flex-start !important;
    font-size: 9.5px !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 14px !important;
  }

  .hero-text h1 {
    font-size: clamp(39px, 11vw, 50px) !important;
    line-height: 1.03 !important;
    letter-spacing: 0 !important;
    margin-bottom: 16px !important;
  }

  .hero-sub {
    margin: 0 0 24px !important;
    max-width: 34rem !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    justify-content: stretch !important;
  }

  .hero-actions .btn,
  .dl-actions .btn,
  .cta-box .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 7px !important;
  }

  .hero-meta {
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .hm {
    padding: 6px 9px;
    border: 1px solid rgba(78, 106, 130, 0.16);
    border-radius: 999px;
    background: rgba(7, 17, 26, 0.55);
    font-size: 11px !important;
    white-space: nowrap;
  }

  .mockup-wrap {
    display: block !important;
    width: 100%;
    padding: 0 10px !important;
    margin: 0 auto !important;
    overflow: hidden;
  }

  .app-mockup {
    border-radius: 10px 10px 0 0 !important;
    box-shadow: 0 -8px 42px rgba(0,0,0,.54), 0 0 0 1px rgba(255,255,255,.03) !important;
  }

  .mk-winbar {
    min-height: 48px;
    padding: 9px 12px !important;
  }

  .mk-logo-wrap img {
    height: 24px !important;
  }

  .mk-beta {
    margin-left: 4px !important;
  }

  .mk-winsearch,
  .mk-winctrl,
  .mk-list-actions {
    display: none !important;
  }

  .mk-tabs {
    padding: 0 8px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mk-tabs::-webkit-scrollbar {
    display: none;
  }

  .mk-tab {
    padding: 11px 13px !important;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .mk-body {
    grid-template-columns: 1fr !important;
    height: min(420px, 54vh) !important;
  }

  .mk-list {
    border-right: 0 !important;
  }

  .mk-list-hd {
    padding: 13px 14px 10px !important;
  }

  .mk-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding: 10px 12px !important;
    scrollbar-width: none;
  }

  .mk-chips::-webkit-scrollbar {
    display: none;
  }

  .mk-chip {
    flex: 0 0 auto;
  }

  .mk-sortbar,
  .mk-statusbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mk-statusbar {
    gap: 10px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mk-statusbar::-webkit-scrollbar {
    display: none;
  }

  .mk-sc {
    white-space: nowrap;
  }

  .mk-row {
    min-height: 58px;
    padding: 10px 12px 10px 14px !important;
  }

  .mk-row-top {
    min-width: 0;
  }

  .mk-row-name {
    min-width: 0;
  }

  .feat-row {
    gap: 24px !important;
    padding: 40px 0 !important;
  }

  .feat-img {
    border-radius: 8px !important;
  }

  .mini-grid,
  .qa-grid,
  .plans,
  .pi-grid,
  .metrics-grid,
  .state-flow,
  .meta-grid,
  .status-grid {
    grid-template-columns: 1fr !important;
    margin-top: 28px !important;
  }

  .plan,
  .plan-t,
  .mini-card,
  .pi,
  .qa-cat,
  .dl-box,
  .cta-box,
  .metric,
  .arch-node,
  .arch-prop {
    border-radius: 8px !important;
  }

  .dl-box,
  .cta-box {
    padding: 34px 18px !important;
  }

  .ftable-wrap {
    overflow-x: auto;
    margin-top: 36px !important;
    padding-bottom: 8px;
  }

  .ftable {
    min-width: 620px;
  }

  .comp-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .comp-table thead,
  .comp-table tbody {
    display: table;
    min-width: 615px;
    width: 100%;
  }

  .cta-strip-inner {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .cta-strip-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-text h1 {
    font-size: clamp(36px, 10.8vw, 44px) !important;
  }

  .hm {
    white-space: normal;
  }

  .mk-row-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================
   CadRev Launch UI Polish — v1
   Shared refinements for launch pages, auth, account, admin
   ========================================================== */
:root {
  --cr-surface: rgba(9, 20, 32, 0.82);
  --cr-surface-strong: rgba(13, 29, 45, 0.9);
  --cr-surface-soft: rgba(78, 106, 130, 0.065);
  --cr-line: rgba(90, 122, 148, 0.18);
  --cr-line-strong: rgba(90, 122, 148, 0.28);
  --cr-text-soft: rgba(234, 241, 248, 0.72);
  --cr-radius: 8px;
}

html, body {
  max-width: 100%;
}

body.cr-site-page,
body.cr-account-page,
body.cr-admin-page {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  padding: 0 !important;
}

body.cr-admin-page {
  height: 100vh;
  overflow: hidden !important;
}

img, svg, video, canvas {
  max-width: 100%;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.58 !important;
  transform: none !important;
}

.btn,
.plan-btn,
.dl-btn,
.nav-item,
.acc-nav-link,
.qa-q,
.faq-q {
  touch-action: manipulation;
}

input,
select,
textarea,
.inp {
  min-height: 42px;
  border-radius: 7px !important;
  background: rgba(5, 15, 25, 0.76) !important;
  border-color: rgba(90, 122, 148, 0.22) !important;
  color: var(--white) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

input:hover,
select:hover,
textarea:hover,
.inp:hover {
  border-color: rgba(90, 122, 148, 0.34) !important;
}

input:focus,
select:focus,
textarea:focus,
.inp:focus {
  border-color: rgba(217, 138, 12, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(217, 138, 12, 0.11), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--grey) 50%),
    linear-gradient(135deg, var(--grey) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  padding-right: 34px !important;
}

.badge,
.lic-status,
.ps,
.pbadge {
  border-radius: 999px !important;
  white-space: nowrap;
}

.plan,
.plan-t,
.mini-card,
.pi,
.prob,
.aud,
.cc,
.qa-cat,
.chart-card,
.kpi,
.release-card,
.acc-card,
.lic-card,
.gate-box,
.table-wrap,
.drawer,
.modal,
.dl-box,
.cta-box {
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset, 0 18px 46px rgba(0,0,0,.18);
}

.plan:hover,
.plan-t:hover,
.mini-card:hover,
.pi:hover,
.prob:hover,
.aud:hover,
.cc:hover,
.acc-card:hover,
.lic-card:hover,
.chart-card:hover,
.kpi:hover,
.release-card:hover {
  border-color: rgba(90, 122, 148, 0.27) !important;
}

.table-wrap {
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(13,29,45,.88), rgba(7,17,26,.88)) !important;
}

.table-toolbar {
  position: sticky;
  left: 0;
  background: rgba(10, 22, 34, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.tbl {
  min-width: 760px;
}

.tbl th {
  background: rgba(16, 31, 47, 0.92) !important;
  color: rgba(143, 165, 187, 0.92) !important;
}

.tbl td {
  color: rgba(234, 241, 248, 0.88) !important;
}

.tbl tr:hover td {
  background: rgba(90, 122, 148, 0.055) !important;
}

.modal-bg,
.modal-overlay,
.drawer-overlay {
  background: rgba(3, 8, 15, 0.74) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
}

.modal-bg.open,
.modal-overlay.open,
.drawer-overlay.open {
  animation: crFadeIn 0.16s ease both;
}

.modal {
  width: min(440px, calc(100vw - 28px)) !important;
  max-height: min(86vh, 760px);
  overflow: auto !important;
  border-color: rgba(90, 122, 148, 0.26) !important;
  background: linear-gradient(180deg, rgba(13, 29, 45, 0.98), rgba(6, 16, 28, 0.98)) !important;
}

.modal-head {
  background: rgba(255,255,255,.018);
}

.modal-x,
.drawer-close {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px !important;
}

.modal-x:hover,
.drawer-close:hover {
  background: rgba(90,122,148,.08) !important;
}

.msg,
#dl-error {
  border-radius: 7px !important;
  border: 1px solid rgba(90,122,148,.18);
}

details {
  border-radius: 8px;
}

details summary {
  cursor: pointer;
  min-height: 42px;
  display: flex;
  align-items: center;
}

@keyframes crFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Auth */
.login-wrap {
  position: relative;
  z-index: 1;
}

.login-card,
.gate-box {
  border: 1px solid rgba(90,122,148,.22) !important;
  background:
    linear-gradient(180deg, rgba(13,29,45,.88), rgba(6,16,28,.92)) !important;
  box-shadow: 0 32px 90px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.login-logo {
  justify-content: center;
}

.auth-tabs {
  background: rgba(4, 12, 22, 0.7) !important;
  border-color: rgba(90,122,148,.2) !important;
  padding: 3px !important;
  border-radius: 9px !important;
}

.auth-tab {
  min-height: 38px;
  border-radius: 6px !important;
}

.auth-tab.on {
  background: rgba(217,138,12,.13) !important;
  box-shadow: inset 0 0 0 1px rgba(217,138,12,.2);
}

.btn-submit {
  min-height: 46px;
  border-radius: 7px !important;
  background: linear-gradient(135deg, var(--amber-lit), var(--amber)) !important;
  box-shadow: 0 2px 10px rgba(217,138,12,.18) !important;
}

.prelaunch-notice {
  border: 1px solid rgba(217,138,12,.18);
  border-radius: 8px;
  background: rgba(217,138,12,.045);
  padding: 22px 18px !important;
}

.trust-list {
  border-top-color: rgba(90,122,148,.14) !important;
}

.auth-footer {
  z-index: 1;
}

/* Account */
.acc-wrap {
  max-width: 1120px !important;
}

.acc-layout {
  grid-template-columns: 250px minmax(0, 1fr) !important;
}

.acc-side {
  position: sticky;
  top: 88px;
  align-self: start;
  border-color: rgba(90,122,148,.2) !important;
  background: linear-gradient(180deg, rgba(13,29,45,.86), rgba(7,17,26,.86)) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025);
}

.acc-avatar {
  box-shadow: 0 0 0 1px rgba(217,138,12,.18), 0 12px 26px rgba(217,138,12,.11);
}

.acc-nav-link {
  min-height: 38px;
  border-radius: 7px !important;
  padding: 8px 10px !important;
}

.acc-nav-link.on {
  background: rgba(217,138,12,.1) !important;
  box-shadow: inset 0 0 0 1px rgba(217,138,12,.16);
}

.acc-card,
.lic-card {
  border-color: rgba(90,122,148,.2) !important;
  background: linear-gradient(180deg, rgba(13,29,45,.72), rgba(7,17,26,.76)) !important;
}

.acc-card-hd {
  letter-spacing: 0 !important;
}

.lic-data-grid,
.grid-2col,
.grid-3col {
  min-width: 0;
}

.lic-field,
.token-hint-box {
  border-radius: 7px !important;
}

.token-display,
.lic-field-val-mono,
.token-meta-item {
  overflow-wrap: anywhere;
}

#js-download-list > div,
#js-download-history > div {
  max-width: 100%;
}

/* Admin */
#app.ready {
  background:
    radial-gradient(circle at 100% 0%, rgba(96,165,250,.055), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(217,138,12,.05), transparent 32%),
    var(--navy);
}

.header {
  height: 62px !important;
  background: rgba(7, 17, 26, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-title {
  letter-spacing: -0.01em;
}

.body {
  min-width: 0;
}

.sidebar {
  background: rgba(8, 20, 32, 0.86) !important;
}

.main {
  min-width: 0;
}

.panel-title {
  letter-spacing: -0.025em;
}

.panel-sub {
  color: rgba(143,165,187,.82) !important;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

.kpi,
.chart-card,
.release-card {
  border-color: rgba(90,122,148,.2) !important;
  background: linear-gradient(180deg, rgba(13,29,45,.74), rgba(7,17,26,.78)) !important;
}

.drawer {
  width: min(440px, 100vw) !important;
  background: linear-gradient(180deg, rgba(13,29,45,.98), rgba(6,16,28,.98)) !important;
}

#toast-area {
  right: 18px !important;
  bottom: 18px !important;
}

.toast {
  border-radius: 8px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Legal, checkout, 404 */
.legal-body {
  max-width: 780px !important;
}

body:has(.legal-body) .ph h1 {
  font-size: clamp(26px, 7.5vw, 34px) !important;
  line-height: 1.08 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.legal-body h2,
.legal-body h3 {
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body li {
  color: rgba(143,165,187,.9) !important;
  overflow-wrap: anywhere;
}

.err-card,
.success-card {
  border-radius: 10px !important;
  border: 1px solid rgba(90,122,148,.22) !important;
  background: linear-gradient(180deg, rgba(13,29,45,.86), rgba(6,16,28,.9)) !important;
  box-shadow: 0 32px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.03) !important;
}

/* Download window */
.dl-btn {
  border-radius: 8px !important;
  min-height: 58px;
  background: rgba(5,15,25,.54) !important;
}

.dl-btn:not(.prelaunch-disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0,0,0,.22), 0 0 0 1px rgba(217,138,12,.12) inset;
}

#dl-modal-bg .m-tabs {
  border-radius: 9px !important;
  padding: 3px;
  background: rgba(3, 9, 17, .66);
}

#dl-modal-bg .m-tab {
  border-radius: 6px;
}

#dl-modal-bg label[for="dl-terms"] {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 10px !important;
  align-items: start;
}

#dl-terms {
  width: 16px !important;
  min-height: 16px !important;
  margin-top: 2px;
  accent-color: var(--amber);
}

body.cr-modal-open {
  overflow: hidden !important;
}

@media (min-width: 769px) {
  .ph,
  .page-hero {
    padding-top: 112px !important;
  }

  .dl-box,
  .cta-box {
    border-radius: 10px !important;
  }
}

@media (max-width: 900px) {
  .acc-layout {
    grid-template-columns: 1fr !important;
  }

  .acc-side {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 14px;
    align-items: center;
  }

  .acc-side > div:last-child {
    grid-column: 1 / -1;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px !important;
    overflow-x: auto;
    padding-top: 12px !important;
    scrollbar-width: none;
  }

  .acc-side > div:last-child::-webkit-scrollbar {
    display: none;
  }

  .acc-nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .login-card {
    border-radius: 10px !important;
  }

  .login-body {
    padding: 22px 20px 20px !important;
  }

  .auth-footer {
    position: static !important;
    padding: 18px 16px 24px;
    flex-wrap: wrap;
  }

  .modal-bg,
  .modal-overlay {
    align-items: flex-end !important;
    padding: 12px !important;
  }

  .modal {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 24px);
    border-radius: 12px !important;
  }

  .modal-head {
    padding: 18px 18px 14px !important;
  }

  .modal-body {
    padding: 18px !important;
  }

  .m-tabs,
  .auth-tabs {
    grid-template-columns: 1fr 1fr !important;
  }

  .input-row,
  .grid-2col,
  .grid-3col,
  .lic-data-grid {
    grid-template-columns: 1fr !important;
  }

  .acc-wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .acc-layout {
    padding-top: 76px !important;
    gap: 14px !important;
  }

  .acc-side,
  .acc-card,
  .lic-card {
    border-radius: 9px !important;
  }

  .lic-card > div:first-child,
  .acc-card-hd {
    gap: 8px;
  }

  .token-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #js-token-btn-show,
  #js-token-btn-actions,
  .acc-section > div[style*="display:flex"] {
    align-items: stretch !important;
  }

  #js-token-btn-show .btn,
  #js-token-btn-actions .btn,
  .acc-section > div[style*="display:flex"] .btn {
    width: 100%;
    justify-content: center;
  }

  .header {
    height: auto !important;
    min-height: 58px;
    padding: 10px 12px !important;
    flex-wrap: wrap;
    gap: 8px 10px !important;
  }

  .header-admin {
    order: 5;
    width: 100%;
    min-width: 0;
    font-size: 11px !important;
  }

  .header-admin strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .btn-logout {
    margin-left: auto;
  }

  .body {
    flex-direction: column;
    overflow: auto !important;
  }

  .sidebar {
    width: 100% !important;
    max-height: none;
    flex-direction: row !important;
    gap: 6px;
    padding: 8px 10px;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(90,122,148,.16);
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-label,
  .sidebar-footer {
    display: none !important;
  }

  .nav-item {
    min-height: 38px;
    border-left: 0 !important;
    border-radius: 7px !important;
    flex: 0 0 auto;
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  .nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(217,138,12,.16);
  }

  .main {
    padding: 20px 14px 36px !important;
    overflow: visible !important;
  }

  .panel-header {
    margin-bottom: 16px !important;
  }

  .panel-title {
    font-size: 24px !important;
  }

  .kpi-grid,
  .chart-row,
  .release-grid,
  .health-grid {
    grid-template-columns: 1fr !important;
  }

  .table-toolbar {
    gap: 8px !important;
    align-items: stretch !important;
  }

  .table-toolbar .inp,
  .table-toolbar .btn,
  .table-toolbar input,
  .table-toolbar select {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .drawer {
    width: 100vw !important;
  }

  .drawer:not(.open) {
    visibility: hidden;
  }

  #toast-area {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .toast {
    max-width: none !important;
  }

  .legal-body {
    padding-top: 36px !important;
    padding-bottom: 64px !important;
  }

  .legal-body h2 {
    font-size: 20px !important;
  }

  .dl-btns {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .dl-btn {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .login-card,
  .gate-card {
    width: 100% !important;
  }

  .login-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .acc-side {
    grid-template-columns: 44px 1fr;
  }

  .acc-avatar {
    width: 44px !important;
    height: 44px !important;
  }

  .header-title,
  .header-version {
    display: none;
  }

  .tbl {
    min-width: 680px;
  }
}

/* ── Mobile Touch Targets & Font Sizes (a11y) ── */
@media (max-width: 768px) {
  .btn,
  .btn-submit,
  .auth-tab,
  .qa-q,
  .faq-q,
  .lang-sw a,
  .lang-sw span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  .faq-q {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  
  .modal-x,
  .login-logo button {
    width: 44px !important;
    height: 44px !important;
  }

  .fl, 
  .tbl th, 
  .arch-arr-tag, 
  .arch-tag, 
  .eyebrow {
    font-size: 10px !important;
  }
}

/* ── Launch Liquid Glass Design Pass ───────────────────── */
:root {
  --cr-glass-surface: rgba(12, 28, 43, 0.44);
  --cr-glass-surface-2: rgba(8, 21, 34, 0.54);
  --cr-glass-border: rgba(170, 205, 235, 0.22);
  --cr-glass-border-hot: rgba(232, 155, 30, 0.34);
  --cr-glass-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.072);
}

nav {
  height: 70px !important;
  background:
    linear-gradient(180deg, rgba(12, 28, 43, 0.82), rgba(6, 16, 26, 0.64)) !important;
  border-bottom: 1px solid rgba(150, 190, 225, 0.16) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  backdrop-filter: blur(28px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.22) !important;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 58%);
}

.logo img {
  height: 44px !important;
  opacity: 1 !important;
  filter: saturate(1.12) contrast(1.06) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34)) !important;
}

.nav-ovr,
.lang-sw,
#mob-menu-btn {
  background: rgba(20, 42, 62, 0.42) !important;
  border-color: rgba(151, 186, 218, 0.2) !important;
  backdrop-filter: blur(16px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.052) !important;
}

.app-mockup,
.plan,
.plan-t,
.pi,
.qa-cat,
.qa-item,
.mini-card,
.cc,
.prob,
.aud,
.metric,
.dl-box,
.cta-box,
.login-card,
.gate-card,
.acc-card,
.lic-card,
.table-wrap,
.ftable-wrap,
.modal,
.vision-card,
.state-node,
.arch-node,
.arch-prop,
.feat-img {
  background:
    linear-gradient(145deg, rgba(22, 51, 74, 0.46), rgba(7, 19, 31, 0.54)) !important;
  border-color: var(--cr-glass-border) !important;
  box-shadow: var(--cr-glass-shadow) !important;
  backdrop-filter: blur(26px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.18) !important;
}

.plan::before,
.plan-t::before,
.pi::before,
.qa-cat::before,
.mini-card::before,
.dl-box::before,
.cta-box::before,
.login-card::before,
.acc-card::before,
.lic-card::before {
  opacity: 0.42 !important;
}

.plan.featured,
.plan-t.featured,
.qa-item.open,
.tl-step:has(.tl-dot.now) {
  border-color: var(--cr-glass-border-hot) !important;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.38), 0 0 36px rgba(217, 138, 12, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.tl-band {
  background:
    linear-gradient(135deg, rgba(14, 33, 50, 0.76), rgba(7, 18, 29, 0.66)) !important;
  border-top: 1px solid rgba(151, 186, 218, 0.13) !important;
  border-bottom: 1px solid rgba(151, 186, 218, 0.13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 -1px 0 rgba(255, 255, 255, 0.025) !important;
  backdrop-filter: blur(20px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.12) !important;
}

.tl-step {
  isolation: isolate;
}

.tl-dot {
  box-shadow: 0 0 0 5px rgba(10, 24, 38, 0.9), 0 0 24px rgba(217, 138, 12, 0.12) !important;
}

.app-mockup {
  border-radius: 18px 18px 0 0 !important;
  position: relative;
}

.app-mockup::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 26, 0), rgba(6, 16, 26, 0.76));
}

@media (min-width: 769px) {
  .mockup-wrap {
    max-width: 1040px !important;
  }

  .app-mockup {
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .nav-inner {
    padding: 0 18px !important;
  }

  .logo img {
    height: 40px !important;
    max-width: 186px !important;
  }

  .nav-links,
  .logo + div,
  .nav-ovr,
  .d-none-mob {
    display: none !important;
  }

  .d-show-mob {
    display: inline-flex !important;
  }

  .nav-right {
    gap: 10px !important;
  }

  .mob-menu {
    top: 70px !important;
    background: rgba(6, 18, 29, 0.88) !important;
    border-top: 1px solid rgba(151, 186, 218, 0.14);
    backdrop-filter: blur(24px) saturate(1.16) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.16) !important;
  }
}

@media (max-width: 768px) {
  nav {
    height: 66px !important;
  }

  .nav-inner {
    padding: 0 12px !important;
  }

  .logo img {
    height: 38px !important;
    max-width: 166px !important;
  }

  .hero {
    padding-top: 98px !important;
  }

  .mockup-wrap {
    padding: 0 14px 28px !important;
    margin-top: 6px !important;
  }

  .app-mockup {
    border-radius: 16px !important;
    max-height: 386px;
    overflow: hidden;
  }

  .mk-winbar {
    min-height: 42px !important;
    padding: 8px 10px !important;
  }

  .mk-logo-wrap img {
    height: 22px !important;
  }

  .mk-beta {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  .mk-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px !important;
    overflow: visible !important;
  }

  .mk-tab {
    min-width: 0 !important;
    padding: 9px 5px !important;
    text-align: center;
    font-size: 10.5px !important;
    line-height: 1.15;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.025);
  }

  .mk-tab.active {
    background: rgba(217, 138, 12, 0.12) !important;
  }

  .mk-body {
    height: 292px !important;
    min-height: 292px !important;
  }

  .mk-list-hd {
    padding: 12px 13px 8px !important;
  }

  .mk-chips {
    padding: 8px 12px !important;
  }

  .mk-chip {
    font-size: 10px !important;
    padding: 5px 8px !important;
  }

  .mk-sortbar,
  .mk-statusbar {
    display: none !important;
  }

  .mk-rows {
    max-height: 214px;
    overflow: hidden;
  }

  .mk-row {
    min-height: 52px !important;
    padding: 9px 12px !important;
    grid-template-columns: 24px minmax(0, 1fr) auto !important;
    gap: 9px !important;
  }

  .mk-row-name {
    font-size: 12px !important;
  }

  .mk-row-sub,
  .mk-row-meta {
    font-size: 10px !important;
  }

  .tl-band {
    padding: 22px 0 !important;
  }

  .tl {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .tl::before,
  .tl-step::after {
    display: none !important;
  }

  .tl-step {
    display: grid !important;
    grid-template-columns: 22px minmax(66px, 0.36fr) minmax(0, 1fr);
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 12px 13px !important;
    text-align: left !important;
    border: 1px solid var(--cr-glass-border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(21, 45, 66, 0.46), rgba(8, 20, 32, 0.54));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.068);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
  }

  .tl-step:has(.tl-dot.now) {
    background: linear-gradient(135deg, rgba(70, 48, 17, 0.34), rgba(10, 24, 38, 0.52));
  }

  .tl-dot {
    grid-column: 1;
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
  }

  .tl-lbl {
    grid-column: 2;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700;
    color: var(--white) !important;
  }

  .tl-desc {
    grid-column: 3;
    max-width: none !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: var(--text-2) !important;
  }

  .pi,
  .plan,
  .plan-t,
  .qa-cat,
  .dl-box,
  .cta-box,
  .login-card,
  .gate-card,
  .acc-card,
  .lic-card,
  .modal {
    border-radius: 14px !important;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 36px !important;
    max-width: 158px !important;
  }

  .lang-sw {
    transform: scale(0.94);
    transform-origin: right center;
  }

  .tl-step {
    grid-template-columns: 18px 62px minmax(0, 1fr);
    gap: 8px !important;
    padding: 11px !important;
  }
}

/* ── Lifecycle Cards & Comparison Table Polish ─────────── */
.home-state-sec {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
}

.state-sec .wrap,
.home-state-sec .wrap {
  position: relative;
}

.state-flow {
  gap: 0 18px !important;
  margin-top: 54px !important;
}

.state-node {
  min-height: 154px !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, rgba(16, 36, 56, 0.42), rgba(9, 20, 34, 0.52)) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

.state-node::before {
  height: 4px !important;
  box-shadow: 0 0 26px currentColor !important;
}

.state-node .sn-dot {
  width: 10px !important;
  height: 10px !important;
  margin: 28px 28px 16px !important;
}

.state-node .sn-name {
  font-size: 14px !important;
  padding: 0 28px 10px !important;
}

.state-node .sn-desc {
  font-size: 12px !important;
  line-height: 1.65 !important;
  padding: 0 28px 28px !important;
}

.st-b {
  color: #3b82f6;
  background: linear-gradient(145deg, rgba(21, 58, 102, 0.34), rgba(8, 21, 36, 0.5)) !important;
}

.st-p {
  color: #a855f7;
  background: linear-gradient(145deg, rgba(70, 42, 125, 0.31), rgba(16, 18, 42, 0.5)) !important;
}

.st-g {
  color: #22c55e;
  background: linear-gradient(145deg, rgba(20, 91, 62, 0.32), rgba(8, 34, 37, 0.5)) !important;
}

.st-r {
  color: #ef4444;
  background: linear-gradient(145deg, rgba(105, 34, 45, 0.3), rgba(31, 18, 34, 0.5)) !important;
}

.st-arr {
  width: 28px;
  color: transparent !important;
  position: relative;
  padding: 0 !important;
}

.st-arr::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(119, 151, 181, 0), rgba(119, 151, 181, 0.48));
}

.st-arr::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(119, 151, 181, 0.58);
  border-right: 1px solid rgba(119, 151, 181, 0.58);
  transform: rotate(45deg);
}

.comp-table-wrap,
.ftable-scroll {
  position: relative;
  border: 1px solid rgba(170, 205, 235, 0.18);
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(18, 42, 64, 0.34), rgba(6, 17, 29, 0.48));
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  overflow: auto !important;
}

.comp-table,
.ftable {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.comp-table th,
.ftable th {
  padding: 15px 18px !important;
  background: rgba(10, 25, 40, 0.58) !important;
  border-right: 1px solid rgba(170, 205, 235, 0.1) !important;
  border-bottom: 1px solid rgba(170, 205, 235, 0.18) !important;
  color: rgba(220, 232, 244, 0.72) !important;
  letter-spacing: 0.08em !important;
}

.comp-table td,
.ftable td {
  padding: 13px 18px !important;
  background: rgba(10, 25, 40, 0.2) !important;
  border-right: 1px solid rgba(170, 205, 235, 0.075) !important;
  border-bottom: 1px solid rgba(170, 205, 235, 0.085) !important;
  color: rgba(222, 233, 244, 0.82) !important;
}

.comp-table tbody tr:nth-child(even) td,
.ftable tbody tr:nth-child(even) td {
  background: rgba(18, 42, 64, 0.2) !important;
}

.comp-table tbody tr:hover td,
.ftable tbody tr:hover td {
  background: rgba(30, 62, 88, 0.32) !important;
}

.comp-table th:first-child,
.comp-table td:first-child,
.ftable th:first-child,
.ftable td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(9, 23, 37, 0.86) !important;
  color: rgba(235, 242, 248, 0.9) !important;
  box-shadow: 12px 0 24px rgba(0, 0, 0, 0.16);
}

.comp-table th.hl,
.ftable th.hl,
.comp-table td:last-child,
.ftable td:last-child {
  background: linear-gradient(180deg, rgba(217, 138, 12, 0.17), rgba(217, 138, 12, 0.055)) !important;
  border-left: 1px solid rgba(232, 155, 30, 0.32) !important;
  color: var(--white) !important;
}

.ftable tr.cat td,
.ftable tr.cat th {
  background: rgba(217, 138, 12, 0.105) !important;
  color: rgba(244, 194, 112, 0.95) !important;
  border-top: 1px solid rgba(232, 155, 30, 0.18) !important;
  border-bottom: 1px solid rgba(232, 155, 30, 0.15) !important;
}

.comp-ck,
.comp-x,
.comp-part,
.ck,
.cx,
.cp {
  font-weight: 700 !important;
}

.comp-ck,
.ck {
  color: #68e08c !important;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.22);
}

.comp-x,
.cx {
  color: rgba(239, 91, 91, 0.64) !important;
}

.comp-part,
.cp {
  color: #f0b44a !important;
}

@media (max-width: 768px) {
  .home-state-sec {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
  }

  .state-flow {
    gap: 12px !important;
    margin-top: 34px !important;
  }

  .state-node {
    min-height: 0 !important;
  }

  .state-node .sn-dot {
    margin: 18px 20px 10px !important;
  }

  .state-node .sn-name {
    padding: 0 20px 8px !important;
  }

  .state-node .sn-desc {
    padding: 0 20px 20px !important;
  }

  .comp-table-wrap,
  .ftable-scroll {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 14px !important;
  }

  .comp-table th,
  .comp-table td,
  .ftable th,
  .ftable td {
    padding: 12px 14px !important;
  }

  .comp-table:not(.ftable) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(22, 52, 76, 0.62), rgba(5, 15, 26, 0.72)) !important;
    border: 1px solid rgba(190, 226, 255, 0.3) !important;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
  }

  .comp-table:not(.ftable) th,
  .comp-table:not(.ftable) td {
    color: rgba(238, 246, 255, 0.96) !important;
    background: rgba(10, 25, 40, 0.5) !important;
    opacity: 1 !important;
  }

  .comp-table:not(.ftable) th {
    color: rgba(219, 235, 248, 0.9) !important;
  }

  .comp-table:not(.ftable) th:first-child,
  .comp-table:not(.ftable) td:first-child {
    background: rgba(8, 21, 34, 0.98) !important;
  }

  .comp-table:not(.ftable) th.hl,
  .comp-table:not(.ftable) td:last-child {
    background: linear-gradient(180deg, rgba(217, 138, 12, 0.2), rgba(217, 138, 12, 0.075)) !important;
  }

  .ftable th,
  .ftable td {
    color: rgba(238, 246, 255, 0.94) !important;
    opacity: 1 !important;
  }

  .comp-table:not(.ftable) .comp-part,
  .ftable .cp {
    color: #ffc45f !important;
  }

  .comp-table:not(.ftable) .comp-x,
  .ftable .cx {
    color: rgba(255, 132, 132, 0.82) !important;
  }

  .comp-table:not(.ftable) .comp-ck,
  .ftable .ck {
    color: #7cf29b !important;
  }
}

/* ── Deep Liquid Glass Transparency Pass ───────────────── */
.dl-box,
.cta-box,
.arch-flow,
.metrics-row,
.metrics-grid,
.phase,
.vision-grid,
.login-card,
.gate-card,
.modal,
.cr-modal {
  background:
    linear-gradient(145deg, rgba(18, 44, 66, 0.28), rgba(5, 15, 26, 0.38)) !important;
  border-color: rgba(180, 216, 246, 0.24) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.095),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025) !important;
  backdrop-filter: blur(34px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(34px) saturate(1.24) !important;
}

.arch-node,
.metric,
.pi,
.vision-card,
.phase > *,
.login-body,
.modal-body,
.cr-modal-body {
  background:
    linear-gradient(145deg, rgba(20, 50, 74, 0.22), rgba(6, 17, 29, 0.34)) !important;
  border-color: rgba(180, 216, 246, 0.18) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.18) !important;
}

.dl-box::before,
.cta-box::before,
.login-card::before,
.modal::before,
.arch-flow::before,
.metrics-row::before,
.metrics-grid::before,
.phase::before {
  opacity: 0.28 !important;
}

.dl-box::after,
.cta-box::after {
  opacity: 0.38 !important;
}

.metric:nth-child(odd),
.metrics-grid .metric:nth-child(odd) {
  background:
    linear-gradient(145deg, rgba(24, 58, 84, 0.26), rgba(6, 17, 29, 0.32)) !important;
}

.metric:nth-child(even),
.metrics-grid .metric:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(12, 32, 52, 0.18), rgba(5, 15, 26, 0.3)) !important;
}

.arch-flow {
  position: relative;
  overflow: hidden;
}

.arch-flow::before,
.metrics-row::before,
.metrics-grid::before,
.phase::before,
.login-card::before,
.modal::before,
.cr-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 62%);
}

.login-card,
.modal,
.cr-modal {
  position: relative;
  overflow: hidden;
}

.login-logo,
.login-body,
.modal-head,
.modal-body,
.cr-modal-topbar,
.cr-modal-head,
.cr-modal-body {
  position: relative;
  z-index: 1;
}

.login-logo,
.modal-head,
.cr-modal-topbar,
.cr-modal-head {
  background: rgba(4, 13, 23, 0.36) !important;
  border-bottom-color: rgba(232, 155, 30, 0.18) !important;
  backdrop-filter: blur(20px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.14) !important;
}

.input,
.inp,
.form-input,
.login-card input,
.modal input,
.modal textarea,
.modal select,
.cr-modal input,
.cr-modal textarea,
.cr-modal select {
  background: rgba(3, 13, 23, 0.42) !important;
  border-color: rgba(175, 210, 240, 0.19) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

.auth-tabs,
.m-tabs {
  background: rgba(3, 13, 23, 0.34) !important;
  border-color: rgba(175, 210, 240, 0.16) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

.auth-tab.active,
.m-tab.active {
  background: rgba(217, 138, 12, 0.12) !important;
  border-color: rgba(232, 155, 30, 0.32) !important;
}

.modal-bg,
.modal-overlay {
  background: rgba(2, 8, 15, 0.72) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

@media (max-width: 768px) {
  .dl-box,
  .cta-box,
  .arch-flow,
  .metrics-row,
  .metrics-grid,
  .phase,
  .login-card,
  .gate-card,
  .modal,
  .cr-modal {
    background:
      linear-gradient(145deg, rgba(18, 44, 66, 0.34), rgba(5, 15, 26, 0.44)) !important;
    backdrop-filter: blur(28px) saturate(1.18) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.18) !important;
    }
}

/* ── Spacing, Q&A Borders & Modern Edge Lighting ───────── */
body::before {
  background:
    linear-gradient(90deg,
      rgba(54, 103, 145, 0.12) 0%,
      rgba(54, 103, 145, 0.045) 9%,
      rgba(54, 103, 145, 0) 25%,
      rgba(54, 103, 145, 0) 74%,
      rgba(70, 118, 164, 0.055) 91%,
      rgba(70, 118, 164, 0.13) 100%),
    linear-gradient(180deg,
      rgba(130, 170, 205, 0.08) 0%,
      rgba(130, 170, 205, 0.025) 20%,
      rgba(130, 170, 205, 0) 46%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg,
      rgba(217, 138, 12, 0.026) 0%,
      rgba(217, 138, 12, 0) 18%,
      rgba(217, 138, 12, 0) 82%,
      rgba(217, 138, 12, 0.02) 100%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.026) 0%,
      rgba(255, 255, 255, 0) 32%);
  mix-blend-mode: screen;
}

.ftable-scroll {
  margin-top: 34px !important;
}

.ftable-scroll .ftable {
  margin-top: 0 !important;
}

.qa-list {
  display: grid;
  gap: 8px;
  background: transparent !important;
}

.qa-list .qa-item {
  border: 1px solid rgba(185, 220, 250, 0.21) !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, rgba(18, 44, 66, 0.2), rgba(5, 15, 26, 0.3)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

.qa-list .qa-item:last-child {
  border: 1px solid rgba(185, 220, 250, 0.21) !important;
}

.qa-list .qa-item.open {
  border-color: rgba(232, 155, 30, 0.34) !important;
}

.qa-list .qa-q {
  background: transparent !important;
}

.qa-list .qa-q:hover {
  background: rgba(255, 255, 255, 0.028) !important;
}

@media (max-width: 768px) {
  .ftable-scroll {
    margin-top: 28px !important;
  }

  .qa-list {
    gap: 7px;
  }
}

/* More transparent treatment for the largest glass panels */
.dl-box,
.cta-box,
.arch-flow,
.metrics-row,
.metrics-grid,
.pi-grid,
.login-card,
.gate-card,
.modal,
.cr-modal {
  background:
    linear-gradient(145deg, rgba(18, 44, 66, 0.18), rgba(5, 15, 26, 0.27)) !important;
  border-color: rgba(190, 226, 255, 0.28) !important;
  box-shadow:
    0 30px 96px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035) !important;
}

.arch-node,
.metric,
.pi,
.vision-card,
.login-body,
.modal-body,
.cr-modal-body {
  background:
    linear-gradient(145deg, rgba(24, 58, 84, 0.16), rgba(5, 15, 26, 0.26)) !important;
  border-color: rgba(190, 226, 255, 0.2) !important;
}

.metric:nth-child(odd),
.metrics-grid .metric:nth-child(odd),
.pi:nth-child(odd) {
  background:
    linear-gradient(145deg, rgba(32, 72, 102, 0.18), rgba(5, 15, 26, 0.24)) !important;
}

.metric:nth-child(even),
.metrics-grid .metric:nth-child(even),
.pi:nth-child(even) {
  background:
    linear-gradient(145deg, rgba(12, 34, 54, 0.14), rgba(5, 15, 26, 0.22)) !important;
}

.metric-ic,
.aud-icon,
.mc-ic,
.modal-x,
.cr-modal-close,
.cr-modal-close-hdr {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(232, 155, 30, 0.24) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
}

.input,
.inp,
.form-input,
.login-card input,
.modal input,
.modal textarea,
.modal select,
.cr-modal input,
.cr-modal textarea,
.cr-modal select {
  background: rgba(2, 10, 18, 0.32) !important;
  border-color: rgba(190, 226, 255, 0.22) !important;
}

.login-logo,
.modal-head,
.cr-modal-topbar,
.cr-modal-head {
  background: rgba(3, 12, 21, 0.28) !important;
}

.dl-box::before,
.cta-box::before,
.login-card::before,
.modal::before,
.cr-modal::before,
.arch-flow::before,
.metrics-row::before,
.metrics-grid::before,
.pi-grid::before {
  opacity: 0.46 !important;
}

@media (max-width: 768px) {
  .dl-box,
  .cta-box,
  .arch-flow,
  .metrics-row,
  .metrics-grid,
  .pi-grid,
  .login-card,
  .gate-card,
  .modal,
  .cr-modal {
    background:
      linear-gradient(145deg, rgba(18, 44, 66, 0.24), rgba(5, 15, 26, 0.34)) !important;
  }
}

/* Final table breathing room */
.ftable-scroll {
  margin-top: 52px !important;
}

@media (max-width: 768px) {
  .ftable-scroll {
    margin-top: 36px !important;
  }
}

/* ── Admin Cockpit Liquid Glass Pass ───────────────────── */
.cr-admin-page {
  color: var(--white-2);
}

.cr-admin-page #gate {
  background: transparent !important;
}

.cr-admin-page .gate-card {
  max-width: 520px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cr-admin-page .gate-box {
  background:
    linear-gradient(145deg, rgba(18, 44, 66, 0.2), rgba(5, 15, 26, 0.3)) !important;
  border: 1px solid rgba(190, 226, 255, 0.24) !important;
  box-shadow:
    0 30px 96px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(26px) saturate(1.16);
  -webkit-backdrop-filter: blur(26px) saturate(1.16);
}

.cr-admin-page .header {
  background:
    linear-gradient(180deg, rgba(8, 22, 36, 0.72), rgba(4, 12, 22, 0.58)) !important;
  border-bottom: 1px solid rgba(190, 226, 255, 0.18) !important;
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(28px) saturate(1.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
}

.cr-admin-page .header img {
  height: 30px;
  opacity: 1 !important;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.34));
}

.cr-admin-page .header-title {
  font-size: 16px !important;
  color: var(--white) !important;
}

.cr-admin-page .header-version,
.cr-admin-page .header-admin {
  color: rgba(166, 194, 220, 0.86) !important;
}

.cr-admin-page .btn-logout {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(190, 226, 255, 0.18) !important;
  color: rgba(226, 238, 248, 0.9) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.cr-admin-page .btn-logout:hover {
  border-color: rgba(232, 155, 30, 0.38) !important;
  color: var(--white) !important;
  background: rgba(232, 155, 30, 0.11) !important;
}

.cr-admin-page .body {
  background: transparent !important;
}

.cr-admin-page .sidebar {
  background:
    linear-gradient(180deg, rgba(9, 24, 38, 0.56), rgba(5, 14, 24, 0.38)) !important;
  border-right: 1px solid rgba(190, 226, 255, 0.15) !important;
  box-shadow:
    18px 0 48px rgba(0, 0, 0, 0.16),
    inset -1px 0 0 rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(24px) saturate(1.14);
  -webkit-backdrop-filter: blur(24px) saturate(1.14);
}

.cr-admin-page .sidebar-label,
.cr-admin-page .sidebar-mode {
  color: rgba(154, 184, 210, 0.78) !important;
}

.cr-admin-page .nav-item {
  margin: 4px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(202, 221, 238, 0.82) !important;
  background: transparent !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cr-admin-page .nav-item:hover {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(190, 226, 255, 0.16);
  color: var(--white) !important;
  transform: translateX(2px);
}

.cr-admin-page .nav-item.active {
  background:
    linear-gradient(135deg, rgba(232, 155, 30, 0.16), rgba(43, 126, 195, 0.08)) !important;
  border-color: rgba(232, 155, 30, 0.34);
  color: var(--white) !important;
  box-shadow:
    0 14px 34px rgba(232, 155, 30, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cr-admin-page .main {
  background: transparent !important;
}

.cr-admin-page .panel-header {
  margin-bottom: 26px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(190, 226, 255, 0.12);
}

.cr-admin-page .panel-title {
  font-size: clamp(22px, 2.1vw, 32px) !important;
  line-height: 1.08;
  color: var(--white) !important;
}

.cr-admin-page .panel-sub {
  max-width: 760px;
  color: rgba(166, 194, 220, 0.86) !important;
  line-height: 1.55;
}

.cr-admin-page .kpi,
.cr-admin-page .chart-card,
.cr-admin-page .table-wrap,
.cr-admin-page .release-card,
.cr-admin-page .health-item {
  background:
    linear-gradient(145deg, rgba(22, 52, 76, 0.22), rgba(5, 15, 26, 0.32)) !important;
  border: 1px solid rgba(190, 226, 255, 0.2) !important;
  border-radius: 10px !important;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
}

.cr-admin-page .kpi {
  position: relative;
  overflow: hidden;
}

.cr-admin-page .kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(232, 155, 30, 0.72), rgba(96, 165, 250, 0));
  opacity: 0.72;
}

.cr-admin-page .kpi-label,
.cr-admin-page .chart-title {
  color: rgba(166, 194, 220, 0.84) !important;
}

.cr-admin-page .kpi-val {
  color: var(--white) !important;
  text-shadow: 0 14px 36px rgba(232, 155, 30, 0.11);
}

.cr-admin-page .kpi-sub {
  color: rgba(154, 184, 210, 0.78) !important;
}

.cr-admin-page .chart-row {
  gap: 14px !important;
}

.cr-admin-page .chart-card {
  overflow: hidden;
}

.cr-admin-page .table-wrap {
  overflow: auto;
}

.cr-admin-page .table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px !important;
  border-bottom: 1px solid rgba(190, 226, 255, 0.13) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)) !important;
}

.cr-admin-page .tbl {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  min-width: 760px;
}

.cr-admin-page .tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(7, 19, 31, 0.82) !important;
  border-bottom: 1px solid rgba(232, 155, 30, 0.24) !important;
  color: rgba(207, 225, 241, 0.82) !important;
  padding: 13px 16px !important;
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.cr-admin-page .tbl td {
  background: rgba(5, 18, 31, 0.2);
  border-bottom: 1px solid rgba(190, 226, 255, 0.08) !important;
  color: rgba(226, 238, 248, 0.9) !important;
  padding: 13px 16px !important;
}

.cr-admin-page .tbl tr:nth-child(even) td {
  background: rgba(18, 44, 66, 0.14);
}

.cr-admin-page .tbl tr:hover td {
  background: rgba(232, 155, 30, 0.07) !important;
}

.cr-admin-page .tbl-empty {
  color: rgba(166, 194, 220, 0.78) !important;
  background: rgba(255, 255, 255, 0.025);
}

.cr-admin-page .inp {
  background: rgba(2, 10, 18, 0.36) !important;
  border: 1px solid rgba(190, 226, 255, 0.2) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.cr-admin-page .inp:focus {
  border-color: rgba(232, 155, 30, 0.48) !important;
  box-shadow:
    0 0 0 3px rgba(232, 155, 30, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.cr-admin-page .btn {
  border-radius: 8px !important;
}

.cr-admin-page .btn-ghost,
.cr-admin-page .btn-secondary {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(190, 226, 255, 0.18) !important;
  color: rgba(226, 238, 248, 0.9) !important;
}

.cr-admin-page .btn-ghost:hover,
.cr-admin-page .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(190, 226, 255, 0.28) !important;
}

.cr-admin-page .btn-primary {
  background: linear-gradient(180deg, var(--amber2), #d98506) !important;
  box-shadow: 0 14px 34px rgba(232, 155, 30, 0.22) !important;
}

.cr-admin-page .badge {
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cr-admin-page .badge-green { background: rgba(34, 197, 94, 0.1) !important; }
.cr-admin-page .badge-blue { background: rgba(96, 165, 250, 0.1) !important; }
.cr-admin-page .badge-yellow,
.cr-admin-page .badge-amber { background: rgba(232, 155, 30, 0.12) !important; }
.cr-admin-page .badge-red { background: rgba(239, 68, 68, 0.1) !important; }
.cr-admin-page .badge-grey { background: rgba(154, 184, 210, 0.09) !important; }

.cr-admin-page .drawer-overlay,
.cr-admin-page .modal-overlay {
  background: rgba(1, 7, 13, 0.62) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
}

.cr-admin-page .drawer,
.cr-admin-page .modal {
  background:
    linear-gradient(145deg, rgba(18, 44, 66, 0.28), rgba(4, 13, 23, 0.46)) !important;
  border-color: rgba(190, 226, 255, 0.24) !important;
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
}

.cr-admin-page .drawer {
  width: min(460px, 92vw) !important;
}

.cr-admin-page .drawer-header {
  background: rgba(3, 12, 21, 0.3) !important;
  border-bottom: 1px solid rgba(232, 155, 30, 0.22) !important;
}

.cr-admin-page .drawer-title,
.cr-admin-page .modal-title {
  color: var(--white) !important;
}

.cr-admin-page .drawer-section {
  color: rgba(232, 155, 30, 0.88) !important;
  border-bottom-color: rgba(190, 226, 255, 0.12) !important;
}

.cr-admin-page .field-row {
  border-bottom-color: rgba(190, 226, 255, 0.08) !important;
}

.cr-admin-page .field-label {
  color: rgba(154, 184, 210, 0.78) !important;
}

.cr-admin-page .field-val {
  color: rgba(226, 238, 248, 0.92) !important;
}

.cr-admin-page .drawer-close {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(190, 226, 255, 0.18) !important;
}

.cr-admin-page .drawer-close:hover {
  border-color: rgba(232, 155, 30, 0.36) !important;
}

.cr-admin-page .modal-body {
  color: rgba(190, 213, 232, 0.88) !important;
}

.cr-admin-page #toast-area {
  z-index: 999;
}

.cr-admin-page .toast {
  background:
    linear-gradient(145deg, rgba(18, 44, 66, 0.46), rgba(5, 15, 26, 0.62)) !important;
  border: 1px solid rgba(190, 226, 255, 0.2) !important;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.cr-admin-page .release-grid,
.cr-admin-page .health-grid {
  gap: 14px !important;
}

.cr-admin-page .release-meta,
.cr-admin-page .health-val {
  color: rgba(166, 194, 220, 0.84) !important;
}

@media (max-width: 900px) {
  .cr-admin-page .body {
    flex-direction: column !important;
    overflow: auto !important;
  }

  .cr-admin-page .sidebar {
    position: relative !important;
    top: auto !important;
    z-index: 30;
    width: 100% !important;
    min-height: 0 !important;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(190, 226, 255, 0.14) !important;
  }

  .cr-admin-page .sidebar-label,
  .cr-admin-page .sidebar-footer {
    display: none !important;
  }

  .cr-admin-page .nav-item {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .cr-admin-page .nav-item:hover {
    transform: none;
  }

  .cr-admin-page .main {
    padding: 18px !important;
    overflow: visible !important;
  }

  .cr-admin-page .header-admin,
  .cr-admin-page .header-version {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .cr-admin-page .header {
    padding-inline: 12px !important;
  }

  .cr-admin-page .header img {
    height: 26px;
  }

  .cr-admin-page .header-title {
    font-size: 14px !important;
  }

  .cr-admin-page .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .cr-admin-page .kpi {
    padding: 16px 14px !important;
  }

  .cr-admin-page .kpi-val {
    font-size: 24px !important;
  }

  .cr-admin-page .chart-row {
    grid-template-columns: 1fr !important;
  }

  .cr-admin-page .table-toolbar .inp,
  .cr-admin-page .table-toolbar .btn {
    width: 100% !important;
  }

  .cr-admin-page .modal {
    width: calc(100vw - 28px) !important;
    padding: 22px !important;
  }
}

/* ── Interactive Part Reservation Simulator ── */
.res-simulator {
  background: #0b131c;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  color: var(--white);
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid rgba(78, 106, 130, 0.2);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.res-sim-header {
  background: rgba(78, 106, 130, 0.1);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(78, 106, 130, 0.2);
}
.res-sim-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.res-sim-dot-red {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.res-sim-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.res-sim-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}
.res-sim-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}
.res-sim-subtitle {
  font-size: 11px;
  color: var(--grey);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.res-sim-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-sim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(78, 106, 130, 0.04);
  border: 1px solid rgba(78, 106, 130, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.res-sim-item:hover {
  background: rgba(78, 106, 130, 0.07);
  border-color: rgba(78, 106, 130, 0.2);
}
.res-sim-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.res-file-icon {
  color: var(--grey);
}
.res-sim-filename {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--white);
}
.res-sim-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.res-badge-locked {
  background: rgba(217, 138, 12, 0.1);
  border: 1px solid rgba(217, 138, 12, 0.25);
  color: var(--amber-lit);
}
.res-badge-free {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}
.res-dot-green {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
.res-sim-ctrl {
  margin-top: auto;
  background: rgba(217, 138, 12, 0.04);
  border: 1px dashed var(--amber-border);
  padding: 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.res-sim-ctrl-text {
  font-size: 11.5px;
  color: var(--grey);
  line-height: 1.5;
}
.res-sim-ctrl-text strong {
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARKETING-ANALYTICS — klickbare KPI-Kacheln + Detail-Drawer
   ═══════════════════════════════════════════════════════════════════════════ */
.kpi-clickable { cursor: pointer; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.kpi-clickable:hover { transform: translateY(-2px); border-color: var(--amber-border) !important; }
.kpi-clickable:active { transform: translateY(0); }
.kpi-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--amber);
  opacity: .75; letter-spacing: .04em;
}
.kpi-clickable:hover .kpi-more { opacity: 1; }

/* Breiter Drawer für die Analytics-Detailansicht */
.drawer.drawer-analytics { width: min(780px, 96vw); }

/* Filterleiste */
.an-filterbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(10, 22, 34, 0.5); margin-bottom: 4px;
}
.an-filterbar .inp {
  width: auto !important; flex: 0 1 auto; min-width: 96px; max-width: 200px;
  padding: 6px 8px !important; font-size: 12px !important;
}
.an-filterbar label {
  font-size: 10px; color: var(--grey); font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: .06em; margin-right: 2px;
}

/* Summary-Statistik-Reihe */
.an-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.an-stat {
  border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px;
  background: linear-gradient(180deg, rgba(13,29,45,.6), rgba(7,17,26,.6));
}
.an-stat-val { font-size: 22px; font-weight: 700; color: var(--white); font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.an-stat-val.amber { color: var(--amber); }
.an-stat-lbl { font-size: 10px; color: var(--grey); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* Balken-Breakdown */
.an-bars { display: flex; flex-direction: column; gap: 7px; }
.an-bar-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; }
.an-bar-label { font-size: 12px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bar-track { height: 8px; background: rgba(90,122,148,.14); border-radius: 5px; overflow: hidden; }
.an-bar-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-lit)); border-radius: 5px; min-width: 2px; }
.an-bar-val { font-size: 11px; color: var(--grey); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.an-bar-val b { color: var(--white); font-weight: 600; }

/* Mini-Zeitreihe (Spark-Bars) */
.an-spark { display: flex; align-items: flex-end; gap: 2px; height: 56px; padding-top: 6px; }
.an-spark-bar { flex: 1; min-width: 2px; background: var(--amber-dim); border-top: 2px solid var(--amber); border-radius: 2px 2px 0 0; transition: opacity .12s; }
.an-spark-bar:hover { opacity: .7; }

/* Funnel */
.an-funnel { display: flex; flex-direction: column; gap: 6px; }
.an-funnel-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.an-funnel-bar { height: 30px; background: linear-gradient(90deg, var(--amber-dim), rgba(217,138,12,.28)); border: 1px solid var(--amber-border); border-radius: var(--r); display: flex; align-items: center; padding: 0 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--white); }
.an-funnel-rate { font-size: 10px; color: var(--amber); margin-left: auto; }

.an-section-title { font-size: 11px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; font-family: 'JetBrains Mono', monospace; margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border2); }
.an-empty { color: var(--grey); font-size: 12px; padding: 8px 0; }

