/* ── Fonty (Vitality-style: serif italic hero + mono liczby) ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Paleta neon-dark ── */
:root {
  --neon: #39d353;
  --neon-dim: rgba(57, 211, 83, 0.15);
  --neon-glow: 0 0 12px rgba(57, 211, 83, 0.4);
  --bg-base: #0b0e0b;
  --bg-card: #111611;
  --bg-card-hover: #161c16;
  --border: rgba(57, 211, 83, 0.12);
  --border-bright: rgba(57, 211, 83, 0.35);
  --text-primary: #f0f4f0;
  --text-muted: #6b7a6b;
  --macro-protein: #39d353;
  --macro-carbs: #3b82f6;
  --macro-fat: #f59e0b;
  --danger: #ef4444;
}

/* ── Reset tła ── */
body,
.radix-themes {
  background-color: var(--bg-base) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'SF Pro Display', system-ui, sans-serif !important;
}

/* ── Sidebar ── */
.sidebar {
  background: #0d110d;
  border-right: 1px solid var(--border);
  height: 100vh;
  width: 200px;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
}

.sidebar-nav {
  padding: 12px 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: var(--neon-dim);
  color: var(--neon);
}

.sidebar-link.active {
  background: var(--neon-dim);
  color: var(--neon);
  border-left: 2px solid var(--neon);
  padding-left: 10px;
}

/* ── Karty ── */
.rt-Card,
[data-radix-card] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.rt-Card:hover {
  border-color: var(--border-bright) !important;
  background: var(--bg-card-hover) !important;
}

/* ── Duże liczby (stat cards) ── */
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Marka w sidebarze — osobisty tytuł dashboardu */
.sidebar-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.1;
  color: var(--text-primary);
}

/* Hero — serif italic jak "Today's fuel" na Vitality */
.hero-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
}

/* Wszystkie liczby/mono w tabelach i badge'ach czytelniejsze */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.neon-value {
  color: var(--neon) !important;
  text-shadow: var(--neon-glow);
}

/* ── Progress bary ── */
.progress-track {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  height: 5px;
}

.progress-fill-green {
  background: var(--neon);
  height: 100%;
  border-radius: 99px;
  box-shadow: var(--neon-glow);
  transition: width 0.4s ease;
}

.progress-fill-blue {
  background: var(--macro-carbs);
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progress-fill-amber {
  background: var(--macro-fat);
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Badge statusu ── */
.badge-todo { background: rgba(107,122,107,0.15); color: var(--text-muted); border: 1px solid rgba(107,122,107,0.2); }
.badge-inprogress { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-done { background: var(--neon-dim); color: var(--neon); border: 1px solid rgba(57,211,83,0.25); box-shadow: var(--neon-glow); }

/* ── Inputy i selecty ── */
.rt-TextFieldInput,
.rt-SelectTrigger {
  background: rgba(255,255,255,0.04) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
}

.rt-TextFieldInput:focus {
  border-color: var(--neon) !important;
  box-shadow: 0 0 0 2px var(--neon-dim) !important;
}

/* ── Przyciski ── */
.rt-Button[data-variant="solid"] {
  background: var(--neon) !important;
  color: #0b0e0b !important;
  font-weight: 700 !important;
  box-shadow: var(--neon-glow) !important;
}

.rt-Button[data-variant="solid"]:hover {
  filter: brightness(1.1) !important;
}

/* ── Separator ── */
.rt-Separator {
  background: var(--border) !important;
}

/* ── Tabela ── */
.rt-TableRow:hover td {
  background: var(--neon-dim) !important;
}

/* ── Coach callout ── */
.coach-box {
  background: rgba(57,211,83,0.05);
  border: 1px solid rgba(57,211,83,0.18);
  border-radius: 8px;
  padding: 14px 16px;
}

.coach-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ab89a;
  padding: 3px 0;
}

/* ── Pill CTA (jak "Snap a meal" na Vitality) ── */
.pill-cta {
  background: var(--neon) !important;
  color: #0b0e0b !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  box-shadow: 0 0 20px rgba(57,211,83,0.45) !important;
  transition: filter 0.15s ease, transform 0.1s ease !important;
  cursor: pointer;
  width: 100%;
}
.pill-cta:hover { filter: brightness(1.08) !important; }
.pill-cta:active { transform: scale(0.99) !important; }

/* akcje sekundarne — pigułki obrysowane */
.pill-ghost {
  border-radius: 999px !important;
  border: 1px solid var(--border-bright) !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
  padding: 9px 16px !important;
}
.pill-ghost:hover { background: var(--neon-dim) !important; }

/* ── Podpowiedzi tickera w dialogu ── */
.suggest-box {
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: var(--bg-card);
  max-height: 210px;
  overflow-y: auto;
  width: 100%;
}
.suggest-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--neon-dim); }

/* ── Dialog ── */
.rt-DialogContent, [data-radix-dialog-content] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-bright) !important;
  border-radius: 12px !important;
}
.rt-DialogOverlay { background: rgba(0,0,0,0.6) !important; }

/* ════════════════════════════════════════════════════════════════════════
   HUD — strona powitalna w stylu JARVIS / arc reactor (neon-green)
   ════════════════════════════════════════════════════════════════════════ */

.hud-screen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(57,211,83,0.06), transparent 55%),
    #06080a;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}

/* siatka tła */
.hud-screen::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(57,211,83,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,211,83,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
  -webkit-mask: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* linia skanująca */
.hud-screen::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(57,211,83,0.06), transparent);
  animation: hud-scan 7s linear infinite;
  pointer-events: none;
}
@keyframes hud-scan { 0% { top: -140px; } 100% { top: 100%; } }

/* ── Reaktor ── */
.reactor {
  position: relative;
  width: min(56vmin, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.reactor > * { position: absolute; grid-area: 1 / 1; }

.r-ring { border-radius: 50%; }
.r1 {
  width: 100%; height: 100%;
  border: 2px solid rgba(57,211,83,0.35);
  box-shadow: 0 0 34px rgba(57,211,83,0.22), inset 0 0 34px rgba(57,211,83,0.12);
  animation: hud-spin 44s linear infinite;
}
.r2 {
  width: 84%; height: 84%;
  border: 1px dashed rgba(57,211,83,0.5);
  animation: hud-spin-rev 26s linear infinite;
}
.r-ticks {
  width: 76%; height: 76%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
      rgba(57,211,83,0.7) 0deg 0.6deg, transparent 0.6deg 6deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 14px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 14px));
  opacity: 0.55;
  animation: hud-spin 90s linear infinite;
}
.r3 {
  width: 60%; height: 60%;
  border: 1px solid rgba(57,211,83,0.2);
}
.r4 {
  width: 46%; height: 46%;
  border: 2px solid rgba(57,211,83,0.45);
  box-shadow: inset 0 0 22px rgba(57,211,83,0.3);
  animation: hud-spin-rev 20s linear infinite;
}

.r-core {
  width: 44%; height: 44%;
  display: grid; place-items: center;
}
.r-core-glow {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, rgba(57,211,83,0.55), rgba(57,211,83,0.08) 65%, transparent 75%);
  filter: blur(3px);
  animation: hud-pulse 3.2s ease-in-out infinite;
}
.r-core-tri {
  position: absolute; width: 62%; height: 62%;
  clip-path: polygon(50% 8%, 92% 86%, 8% 86%);
  background: linear-gradient(180deg, rgba(57,211,83,0.85), rgba(57,211,83,0.15));
  box-shadow: 0 0 24px var(--neon);
  opacity: 0.55;
  animation: hud-pulse 3.2s ease-in-out infinite;
}
.r-core-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; text-align: center;
  transition: filter 0.2s ease;
}
.r-core-content:hover { filter: brightness(1.2); }
.r-core-label {
  font-size: 9px; letter-spacing: 0.25em; color: var(--text-muted); text-transform: uppercase;
}
.r-core-value {
  font-size: clamp(20px, 4.4vmin, 34px); font-weight: 700; color: var(--neon);
  text-shadow: 0 0 16px rgba(57,211,83,0.7); line-height: 1;
}
.r-core-unit { font-size: 11px; color: var(--text-muted); }

@keyframes hud-spin { to { transform: rotate(360deg); } }
@keyframes hud-spin-rev { to { transform: rotate(-360deg); } }
@keyframes hud-pulse {
  0%, 100% { opacity: 0.6; filter: brightness(1); }
  50%      { opacity: 1;   filter: brightness(1.35); }
}

/* ── Węzły modułów (klikalne) ── */
.hud-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; width: 130px;
  transition: transform 0.15s ease;
}
.hud-node:hover { transform: translateY(-2px); }
.hud-node-dot {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: rgba(57,211,83,0.05);
  display: grid; place-items: center; color: var(--text-muted);
  transition: all 0.15s ease;
}
.hud-node:hover .hud-node-dot {
  border-color: var(--neon); color: var(--neon);
  box-shadow: 0 0 18px rgba(57,211,83,0.5);
  background: rgba(57,211,83,0.12);
}
.hud-node-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}
.hud-node:hover .hud-node-label { color: var(--neon); }
.hud-node-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.hud-node-hint { font-size: 10px; color: var(--text-muted); }

/* ── Narożne panele ── */
.hud-corner { position: absolute; padding: 4px 2px; z-index: 3; }
.hud-corner.tl { top: 26px; left: 30px; }
.hud-corner.tr { top: 26px; right: 30px; text-align: right; }
.hud-corner.bl { bottom: 26px; left: 30px; }
.hud-corner.br { bottom: 26px; right: 30px; text-align: right; }
.hud-kicker {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon);
}
.hud-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hud-clock {
  font-size: clamp(22px, 3.2vmin, 34px); font-weight: 700; color: var(--neon);
  text-shadow: 0 0 14px rgba(57,211,83,0.5); letter-spacing: 0.06em;
}

/* branding na dole */
.hud-brand {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(18px, 2.6vmin, 26px); color: rgba(57,211,83,0.55);
  letter-spacing: 0.04em; white-space: nowrap;
}

/* ── Układ 3-kolumnowy (panele wokół reaktora) ── */
.hud-layout {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  height: 100vh; padding: 18px 26px; gap: 10px;
}
.hud-header { display: flex; align-items: flex-start; justify-content: space-between; }
.hud-main {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.hud-col {
  display: flex; flex-direction: column; gap: 12px;
  width: 300px; flex-shrink: 0;
}
.hud-col-center { flex: 1; display: grid; place-items: center; }
.hud-footer { text-align: center; padding-top: 4px; }

.hud-panel {
  background: rgba(17,22,17,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}
.hud-panel:hover { border-color: var(--border-bright); }
.hud-panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--neon); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.hud-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; gap: 10px;
}
.hud-line:last-child { border-bottom: none; }
.hud-line-main { color: var(--text-primary); font-weight: 600; }
.hud-line-sub { color: var(--text-muted); font-size: 11px; }
.hud-line-val { font-family: 'JetBrains Mono', monospace; color: var(--neon); font-weight: 700; }

.news-link {
  color: var(--text-primary); text-decoration: none; font-size: 12px; line-height: 1.35;
  display: block; padding: 7px 0; border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}
.news-link:last-child { border-bottom: none; }
.news-link:hover { color: var(--neon); }

.weather-panel { text-decoration: none; display: block; }
.weather-temp {
  font-family: 'JetBrains Mono', monospace; font-size: 34px; font-weight: 700;
  color: var(--neon); line-height: 1; text-shadow: 0 0 14px rgba(57,211,83,0.4);
}

/* zwijanie kolumn na wąskich ekranach */
@media (max-width: 1120px) {
  .hud-main { flex-direction: column; overflow-y: auto; gap: 14px; }
  .hud-col { width: 100%; max-width: 460px; }
  .hud-col-center { order: -1; }
}
/* HUD na telefonie: zamiast position:fixed (zawodne przewijanie na iOS/Android)
   przechodzimy na normalny przepływ strony — przewija się naturalnie cały dokument. */
@media (max-width: 767px) {
  .hud-screen {
    position: relative;    /* nie fixed — pozwala rosnąć i przewijać się jak zwykła strona */
    inset: auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .hud-layout {
    height: auto;
    min-height: 100vh;
    padding: 14px 14px 90px;
  }
  .hud-main {
    overflow: visible;
    flex-direction: column;
    gap: 14px;
  }
  .hud-col { width: 100%; max-width: 460px; margin: 0 auto; }
  .hud-col-center { order: -1; }
  .reactor { width: min(70vw, 300px); }
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSYWNOŚĆ (telefon)
   ════════════════════════════════════════════════════════════════════════ */

/* treść: mobile-first (bez sidebara), na desktopie odsunięta o sidebar */
.main-content {
  margin-left: 0;
  padding-bottom: 78px;   /* miejsce na dolny pasek */
  min-height: 100vh;
  width: 100%;
  background: var(--bg-base);
}
@media (min-width: 768px) {
  .main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding-bottom: 0;
  }
}

/* dolny pasek nawigacji — tylko telefon */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: center;
  background: #0d110d;
  border-top: 1px solid var(--border);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--text-muted);
  font-size: 10px; letter-spacing: 0.03em;
  flex: 1; padding: 4px 0;
  transition: color 0.15s ease;
}
.bottom-nav-item.active {
  color: var(--neon);
  filter: drop-shadow(0 0 5px rgba(57,211,83,0.5));
}

/* węższe paddingi treści na telefonie */
@media (max-width: 767px) {
  .hero-title { font-size: 30px !important; }
}

/* formularze: mniej kolumn na telefonie/tablecie */
@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   BOOT OVERLAY — intro "JARVIS" na stronie głównej (~5 s, potem znika)
   ══════════════════════════════════════════════════════════════════════════ */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #0a140e 0%, #06080a 68%);
  animation: bootOut 5s ease-in forwards;
}
@keyframes bootOut {
  0%, 80%  { opacity: 1; }
  100%     { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* linia skanująca przesuwająca się w dół */
.boot-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  box-shadow: 0 0 18px var(--neon);
  opacity: 0.7;
  animation: bootScan 2.6s ease-in-out infinite;
}
@keyframes bootScan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.boot-center {
  text-align: center;
  transform: scale(0.9);
  animation: bootPop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bootPop {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* reaktor */
.boot-reactor {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 22px;
}
.boot-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(57, 211, 83, 0.14);
}
.boot-r1 {
  inset: 0;
  border-top-color: var(--neon);
  border-right-color: var(--neon);
  animation: bootSpin 1.6s linear infinite;
}
.boot-r2 {
  inset: 22px;
  border-bottom-color: var(--neon);
  animation: bootSpinR 2.4s linear infinite;
}
.boot-r3 {
  inset: 44px;
  border-left-color: var(--neon);
  border-top-color: var(--neon);
  animation: bootSpin 1.1s linear infinite;
}
@keyframes bootSpin  { to { transform: rotate(360deg); } }
@keyframes bootSpinR { to { transform: rotate(-360deg); } }

.boot-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #eafff2 0%, var(--neon) 48%, transparent 72%);
  box-shadow: 0 0 26px var(--neon), 0 0 54px rgba(57, 211, 83, 0.6);
  animation: bootPulse 1.2s ease-in-out infinite;
}
@keyframes bootPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.9; }
  50%      { transform: translate(-50%, -50%) scale(1.16); opacity: 1; }
}

.boot-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(57, 211, 83, 0.7);
  animation: bootGlow 1.8s ease-in-out infinite;
}
@keyframes bootGlow {
  0%, 100% { text-shadow: 0 0 12px rgba(57, 211, 83, 0.5); }
  50%      { text-shadow: 0 0 22px rgba(57, 211, 83, 0.95); }
}

.boot-sub {
  margin-top: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted, #7a877a);
}

.boot-console {
  margin: 20px auto 0;
  min-height: 92px;
  text-align: left;
  display: inline-block;
}
.boot-log {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(240, 244, 240, 0.75);
  opacity: 0;
  margin: 3px 0;
  animation: bootLogIn 0.4s ease forwards;
}
.boot-log.bl5 { color: var(--neon); }
@keyframes bootLogIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 0.85; transform: none; }
}
.bl1 { animation-delay: 0.35s; }
.bl2 { animation-delay: 0.95s; }
.bl3 { animation-delay: 1.6s; }
.bl4 { animation-delay: 2.3s; }
.bl5 { animation-delay: 3.1s; }

.boot-bar {
  width: 300px;
  max-width: 72vw;
  height: 3px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.boot-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), #7cffb0);
  box-shadow: 0 0 10px var(--neon);
  animation: bootBar 4.3s ease forwards;
}
@keyframes bootBar { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .boot-scan, .boot-r1, .boot-r2, .boot-r3, .boot-core { animation-duration: 3s; }
}
