:root {
  --bg: #0b0d10;
  --card: #111319;
  --text: #e9eef2;
  --muted: #9aa5b1;
  --green: #28c76f;
  --yellow: #f2c94c;
  --red: #ff5b5b;
  --accent: #61dafb;
  --border: #1e242b;
  --neon-bar: #39e2fc;
  --neon-bar-shadow: #3486b5;
  --card-contrast: #0f1418;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body, .site-root {
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1000px 600px at 20% -10%, #0e1420 0%, var(--bg) 60%),
              radial-gradient(800px 600px at 100% 0%, #0f1016 0%, var(--bg) 70%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.main-grow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-content: flex-start;
  position: relative;
}
.footer-spacer {
  flex-grow: 1;
  min-height: 16px;
}

/* Header and info */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 68px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 8px;
}
.brand h1.title {
  margin: 0 0 6px 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* hide backend status bar entirely */
#backend-status { display: none !important; }

#info {
  margin: 12px auto 20px auto;
  padding: 14px 28px 14px 28px;
  background: linear-gradient(180deg, rgba(14,19,24,0.92), rgba(14,19,24,0.84));
  border: 1px solid rgba(30,36,43,0.9);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
  word-break: break-word;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 6px 22px rgba(3,6,10,0.45);
}

/* Apply similar narrow styling to the explain panel text block, left-aligned */
.explain-desc {
  margin: 12px auto 20px auto;
  padding: 14px 28px 14px 28px;
  background: linear-gradient(180deg, rgba(14,19,24,0.92), rgba(14,19,24,0.84));
  border: 1px solid rgba(30,36,43,0.9);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
  word-break: break-word;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 6px 22px rgba(3,6,10,0.45);
}

/* make the explain warning cyan (normal weight) */
.explain-warning { color: var(--accent); font-weight: 400; }

/* stronger <strong> inside #info (by default) */
#info strong { font-weight: 900; color: inherit; }

/* paragraphs in #info that should match footer social-link color and be normal weight */
.info-accent {
  color: var(--accent);
  font-weight: 400;
}
.info-accent strong {
  color: inherit;
  font-weight: 400; /* ensure cyan paragraphs are not bold even if strong used */
}

#info p {
  margin: 0 0 8px 0;
  text-align: justify;
  text-align-last: left;
}

/* last paragraph should center on small screens */
@media (max-width: 480px) {
  #info p.last-par {
    text-align: center;
    text-align-last: center;
  }
}

/* neutral accent (used instead of bold white) */
.accent-muted { color: var(--muted); font-weight: 400; }

/* Toolbar */
#toolbar { width: 100%; display: flex; flex-direction: column; align-items: center; }
.form-narrow { display: flex !important; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 18px 0 10px 0; background: transparent; border-radius: 12px; } /* reduced bottom padding */
.audittitle { font-size: 24px; font-weight: 900; margin-bottom: 12px; margin-top: 14px; color: #ffffff; letter-spacing: 0.04em; text-align: center; width: 100%; }
.url-label-center { width: 100%; display: flex; flex-direction: column; align-items: center; }
.url-label-center > span { display: block; text-align: center; font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 6px; width: 100%; letter-spacing: 0.01em; }
.input-narrow { width: 100%; max-width: 92vw; border-radius: 10px; border: 1px solid rgba(234,246,252,0.06); padding: 12px 16px; background: #0f1418; color: var(--text); font-size: 16px; margin: 0 auto; display: block; box-sizing: border-box; transition: box-shadow .14s, border-color .12s; }

/* Run button — Neon Teal gradient */
#run {
  display: block;
  margin: 12px auto 6px auto;
  font-size: 16px;
  padding: 10px 26px;
  border-radius: 10px;
  background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%) !important;
  color: #081018;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(0,229,255,0.12);
  border: none;
  transition: transform .12s ease, box-shadow .18s ease, background .18s;
  outline: none;
  cursor: pointer;
}
#run:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.16); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 36px rgba(0,0,0,0.45); margin-bottom: 0; transition: transform .12s ease, box-shadow .12s ease; }

/* Results block spacing decreased to save vertical space */
.hidden { display: none !important; }
.results-list-container { width: 100%; max-width: 420px; margin: 0 auto 8px auto; padding-bottom: 6px; }
.prelim-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--text); text-align: center; }

/* Reduce summary spacing (badge/summary area) */
.summary { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 8px 0; }

/* Badge (original ID rules preserved + class-based duplicates so cloned badge is styled identically) */
#badge.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
  background: #000;
  border: 1px solid rgba(255,255,255,0.04);
  font-weight: normal;
  font-size: 13px;
  color: var(--text);
}
#badge .b-header-wide { font-weight: 900; font-size: 22px; letter-spacing: 0.06em; color: #ffffff; width: 100%; }
#badge .b-quick { font-size: 12px; color: var(--muted); width: 100%; font-weight: normal; }
#badge .b-domain-inline { font-weight: 700; color: #ffffff; font-size: 13px; }
#badge .b-meta { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); width: 100%; }
#badge .b-status { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }
/* default: transparent background so color comes from panel class */
#badge .b-status-value { font-size: 14px; font-weight: 600; padding: 3px 8px; border-radius: 8px; color: var(--text); background: transparent; min-width: 84px; text-align: center; transition: background-color .12s ease, color .12s ease; }
#badge-note { margin-top: 4px; text-align: center; font-weight: 700; font-size: 13px; width: 100%; }

.badge.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
  background: #000;
  border: 1px solid rgba(255,255,255,0.04);
  font-weight: normal;
  font-size: 13px;
  color: var(--text);
}
.badge .b-header-wide { font-weight: 900; font-size: 22px; letter-spacing: 0.06em; color: #ffffff; width: 100%; }
.badge .b-quick { font-size: 12px; color: var(--muted); width: 100%; font-weight: normal; }
.badge .b-domain-inline { font-weight: 700; color: #ffffff; font-size: 13px; }
.badge .b-meta { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); width: 100%; }
.badge .b-status { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }
/* default: transparent background so color comes from panel class */
.badge .b-status-value { font-size: 14px; font-weight: 600; padding: 3px 8px; border-radius: 8px; color: var(--text); background: transparent; min-width: 84px; text-align: center; transition: background-color .12s ease, color .12s ease; }

/* Checks list (kept for results panel) */
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.checks li { padding: 6px 8px; border: 1px solid rgba(30,36,43,0.9); border-radius: 10px; background: linear-gradient(180deg, rgba(14,19,24,0.96), rgba(12,16,20,0.98)); display: flex; justify-content: space-between; align-items: center; font-size: 14px; transition: background .12s, transform .08s; }
.checks li span:first-child { flex: 1; text-align: left; color: var(--muted); }
.checks li span:last-child, .profiles, #social { font-weight: 800; min-width: 72px; text-align: right; color: var(--text); }

/* Icons */
.checks li .ok { color: var(--green); font-weight: 900; font-size: 13px; position: relative; padding-left: 6px; }
.checks li .ok::before { content: "✓"; margin-right: 6px; font-weight: 900; color: var(--green); }
.checks li .warn { color: var(--yellow); font-weight: 900; font-size: 13px; position: relative; padding-left: 6px; }
.checks li .warn::before { content: "⚠"; margin-right: 6px; font-weight: 900; color: var(--yellow); }
.checks li .bad { color: var(--red); font-weight: 900; font-size: 13px; position: relative; padding-left: 6px; }
.checks li .bad::before { content: "✕"; margin-right: 6px; font-weight: 900; color: var(--red); }

/* Actions */
.actions { display:flex; gap: 12px; justify-content:center; margin-top: 8px; flex-wrap:wrap; align-items:center; }
.btn-secondary, .btn-explain { padding: 10px 26px; border-radius: 10px; border: none; color: #fff; font-weight: 800; cursor: pointer; transition: transform .08s ease, background .12s ease, box-shadow .12s ease; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }

/* Hide raw JSON debug details via CSS (display:none) */
details.json { display: none !important; }

/* Make "Check again" cyan (match #run) */
#check-again {
  background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%);
  color: #081018;
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 30px rgba(0,229,255,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
}
#check-again:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.14); }

/* Make "Explain Back" cyan too (explain panel back button) */
#explain-back {
  background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%);
  color: #081018;
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 30px rgba(0,229,255,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
}
#explain-back:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.14); }

/* Designer: yellow button gradient class used for explain and send-pdf */
.btn-yellow {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(255,193,7,0.10);
  border: none;
  transition: transform .12s ease, box-shadow .18s ease;
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,193,7,0.14); }

/* Explain My Results — Amber Glow with pulse + same hover effect as check-again */
@keyframes amberPulse {
  0%   { box-shadow: 0 6px 18px rgba(255,193,7,0.18); transform: translateY(0); }
  50%  { box-shadow: 0 12px 36px rgba(255,193,7,0.22); transform: translateY(-2px); }
  100% { box-shadow: 0 6px 18px rgba(255,193,7,0.18); transform: translateY(0); }
}
button#explain.btn-explain {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018;
  animation: amberPulse 2.4s ease-in-out infinite;
  transition: transform .12s ease, box-shadow .18s ease;
}
button#explain.btn-explain:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,193,7,0.14); }
@media (prefers-reduced-motion: reduce) {
  button#explain.btn-explain { animation: none; }
}

/* Send me PDF — yellow like Explain My Results (applies when button has class btn-yellow) */
#send-pdf.btn-yellow {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018;
  padding: 10px 26px;
  min-height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(255,193,7,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
  font-weight: 800;
  font-size: 16px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#send-pdf.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,193,7,0.14);
}

/* Keep disabled appearance usable */
#run[disabled], #check-again[disabled], button#explain[disabled], #send-pdf[disabled] {
  opacity: 0.5;
  transform: none;
  animation: none;
  box-shadow: none;
  cursor: default;
}

/* Stopwatch overlay: centered number — set to original (smaller) size as requested (9.0vh) */
#stopwatch {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 80vw;
}
#stopwatch .stopwatch-label {
  color: var(--neon-bar);
  font-weight: 900;
  text-shadow: 0 6px 20px rgba(57,226,252,0.12), 0 0 30px rgba(57,226,252,0.22);
  font-size: 3.6vh;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}
#stopwatch .stopwatch-body {
  position: relative;
  width: auto;
  display: block;
  min-width: 8ch;
}
#stopwatch .stopwatch-num {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: 9.0vh; /* reduced to half per request */
  line-height: 0.95;
  color: var(--neon-bar);
  text-shadow: 0 6px 30px rgba(57,226,252,0.18), 0 0 40px rgba(57,226,252,0.35);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(57,226,252,0.12);
  box-shadow: 0 8px 40px rgba(3,6,10,0.65);
  min-width: 5ch;
  text-align: center;
}

#stopwatch .stopwatch-note {
  margin-top: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--yellow);
  display: block;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  -webkit-font-smoothing: antialiased;
}

/* when stopwatch is red, make note red and prominent */
#stopwatch.red .stopwatch-note {
  color: var(--red);
  text-shadow: 0 6px 20px rgba(255,91,91,0.14);
}

/* Badge status color variants — ensure these override default transparent background */
/* green keeps the solid green */
.badge.panel.green .b-status-value { background: var(--green) !important; color: #081018 !important; }
/* yellow uses same gradient as explain button (kept as yellow gradient) */
.badge.panel.yellow .b-status-value {
  background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%) !important;
  color: #081018 !important;
}
/* red keeps solid red */
.badge.panel.red .b-status-value { background: var(--red) !important; color: #ffffff !important; }

/* Footer: center social links and make them light-blue; copyright white and centered */
.footer {
  position: relative;
  width: 100%;
  padding-top: 14px;
  padding-bottom: 12px;
  opacity: .95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0; }
.footer nav a.social-link { color: var(--accent); font-weight: 400; font-size: 13px; text-decoration: none; opacity: 0.95; }
.footer nav a.social-link:hover { opacity: 1; text-decoration: underline; }
.footer small { display: block; text-align: center; color: #ffffff; width: 100%; margin-top: 4px; }
/* === Final (Verify Email) screen overrides — safe, scoped === */

/* Центровка всего текстового блока только на экране 4 */
#final-panel .explain-desc h2,
#final-panel .explain-desc p {
  text-align: center;
  text-align-last: center;
}

/* Перебить инлайн text-align:left у подписи email внутри финального блока */
#final-panel .explain-desc label span {
  text-align: center !important;
}

/* Кнопка Back на экране 4 — как "Back to check" */
#final-back {
  background: linear-gradient(90deg, #00E5FF 0%, #00B8E6 100%);
  color: #081018;
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 30px rgba(0,229,255,0.10);
  transition: transform .12s ease, box-shadow .18s ease;
}
#final-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.14);
}

/* "I confirm" — тот же размер, что и "Send me PDF" */
#final-confirm.btn-yellow {
  padding: 10px 26px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* === Text justification for Verify Email instructions === */

/* Равномерная выключка основного текста и подписи */
#final-panel .explain-desc p,
#final-panel .explain-desc label span {
  text-align: justify !important;
  text-align-last: center;
}

/* Чтобы последние строки выглядели гармонично по центру */
#final-panel .explain-desc p:last-child {
  text-align-last: justify;
}
/* Final panel — label / email / confirmation note */
#final-panel .email-label {
  display: block;
  text-align: left;
  font-size: 15px; /* было 13px -> предлагаю 15px */
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

#final-panel .email-display {
  font-size: 18px; /* предложение: 18px — можно увеличить до 20px при желании */
  font-weight: 900;
  color: var(--text);
  margin-top: 6px;
  text-align: left;
  word-break: break-word;
}

/* стиль для сообщения после подтверждения — большой отступ от кнопок */
#final-panel .final-note {
  margin-top: 18px; /* увеличенный отступ */
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
/* Final panel: равномерная выключка и поведение последней строки */
#final-panel .explain-desc p {
  text-align: justify;              /* равномерное распределение слов по строке */
  text-align-last: left;            /* последняя строка — слева */
  -webkit-text-align-last: left;
  -moz-text-align-last: left;
  text-justify: inter-word;         /* распределять пробелы между словами */
  hyphens: auto;                    /* перенос слов, чтобы лучше заполнять строки */
  line-height: 1.45;
}
/* FIX: keep footer visible on screen (fixed) */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;           /* отступ от нижнего края окна */
  z-index: 1200;
  pointer-events: auto;
  background: transparent; /* можно заменить на rgba(...) если нужно фон */
  padding-top: 8px;
  padding-bottom: 8px;
}

/* сохранить контейнер-центровку */
.footer .wrap {
  max-width: 980px;
  margin: 0 auto;
}

/* Prevent content being covered by fixed footer: add bottom padding to main area */
.main-grow {
  padding-bottom: 92px; /* высота футера + запас; подбери значение при тесте */
}

/* Mobile tweak */
@media (max-width: 480px) {
  .footer { bottom: 10px; }
  .main-grow { padding-bottom: 110px; } /* если кнопки/контент выше */
}
.brand { margin-top: 28px; } /* или .brand { margin-top: 40px; } */
.brand h1.title { margin-top: 12px; } /* тонкая настройка внутри */
@media (max-width: 480px) {
  .brand { margin-top: 18px; }
  .brand h1.title { margin-top: 6px; }
}
/* Animated neon wave around the input on first screen */
#audit-form .url-label-center { position: relative; display: block; }

/* base input should be above the glow */
#audit-form .url-label-center .input-narrow {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(234,246,252,0.06);
  border-radius: 10px;
  transition: box-shadow .18s ease, transform .12s ease;
}

/* the moving glow element (behind the input) */
#audit-form .url-label-center::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -8px;
  bottom: -8px;
  border-radius: 14px;
  background: linear-gradient(90deg,
    rgba(57,226,252,0.95) 0%,
    rgba(99,102,241,0.95) 35%,
    rgba(255,193,7,0.95) 70%,
    rgba(57,226,252,0.95) 100%);
  filter: blur(8px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
  background-size: 300% 100%;
  animation: neonWave 3.2s linear infinite;
  transition: opacity .18s ease, filter .18s ease;
}

/* усиление эффекта при фокусе */
#audit-form .url-label-center:focus-within::before {
  opacity: 1;
  filter: blur(6px);
  animation-duration: 2s;
}

#audit-form .url-label-center:focus-within .input-narrow {
  box-shadow: 0 8px 30px rgba(57,226,252,0.06), 0 0 18px rgba(99,102,241,0.05);
  transform: translateY(-1px);
}

@keyframes neonWave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* мобильная оптимизация */
@media (max-width: 480px) {
  #audit-form .url-label-center::before { filter: blur(6px); opacity: 0.5; animation-duration: 4s; left: -6px; right: -6px; top: -6px; bottom: -6px; border-radius: 12px; }
}
/* Cyan radial pulse for header — use class "neon-pulse" on .brand */
.brand.neon-pulse {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  z-index: 1; /* контейнер выше фона */
}
.brand.neon-pulse .title {
  position: relative;
  z-index: 2; /* заголовок всегда над свечением */
}

.brand.neon-pulse::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -12px;
  bottom: -12px;
  border-radius: 16px;
  background: radial-gradient(circle at center,
    rgba(57,226,252,0.55) 0%,
    rgba(57,226,252,0.30) 30%,
    rgba(57,226,252,0.12) 55%,
    transparent 80%);
  filter: blur(12px);
  opacity: 0.9;
  transform: scale(0.95);
  pointer-events: none;
  z-index: 0; /* между фоном и заголовком */
  animation: neonPulse 3.6s ease-in-out infinite;
  transition: filter .18s ease, opacity .18s ease;
}

/* Пульсация: масштаб + изменение прозрачности (медленная, плавная) */
@keyframes neonPulse {
  0%   { transform: scale(0.92); opacity: 0.9; }
  50%  { transform: scale(1.12); opacity: 0.28; }
  100% { transform: scale(0.92); opacity: 0.9; }
}

/* Reduced motion / mobile tweaks */
@media (prefers-reduced-motion: reduce) {
  .brand.neon-pulse::before { animation: none; filter: blur(8px); }
}
@media (max-width: 480px) {
  .brand.neon-pulse::before { left: -8px; right: -8px; top: -8px; bottom: -8px; filter: blur(8px); animation-duration: 4.2s; }
}

/* TEST: force neon pulse on .stopwatch-label (uses !important to rule out overrides) */
.stopwatch-label {
  position: relative !important;
  color: #bff9ff !important;
  animation: testNeonPulse 1.2s ease-in-out infinite !important;
  text-shadow: 0 0 6px rgba(57,226,252,0.6) !important;
}

/* keyframes */
@keyframes testNeonPulse {
  0%   { text-shadow: 0 0 6px rgba(57,226,252,0.5); opacity: 1; }
  50%  { text-shadow: 0 0 18px rgba(57,226,252,1); opacity: 1; }
  100% { text-shadow: 0 0 6px rgba(57,226,252,0.5); opacity: 1; }
}

/* disable for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stopwatch-label { animation: none !important; text-shadow: none !important; }
}
/* Centered container and justified text with last line left-aligned */
.scan-top {
  display: block;
  max-width: 720px;        /* ширина блока текста */
  margin: 10px auto 12px;  /* центрирование блока по ширине страницы */
  padding: 0 12px;         /* небольшой внутренний отступ */
  text-align: center;      /* заголовок центрируем */
}

.scan-top .title {
  margin: 0 0 8px 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
  /* анимация оставляем как было */
}

/* Основной параграф: равномерная выключка, но последняя строка — слева */
.scan-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  /* равномерная выключка */
  text-align: justify;
  text-justify: inter-word;
  -webkit-text-align-last: left;
  -moz-text-align-last: left;
  text-align-last: left;
  /* чтобы параграф визуально был по центру, оставляем max-width у контейнера */
}

/* На узких экранах уменьшим размеры */
@media (max-width: 480px) {
  .scan-top .title { font-size: 28px; }
  .scan-text { font-size: 14px; max-width: 320px; }
}



/* === Neon heartbeat underline (div-based, Safari/Chrome/Win/iOS safe) === */
@keyframes geoHeartbeat {
  0%   { transform: scaleX(0.96); opacity: 0.70; }
  25%  { transform: scaleX(1.00); opacity: 1.00; }
  50%  { transform: scaleX(0.94); opacity: 0.65; }
  75%  { transform: scaleX(1.00); opacity: 1.00; }
  100% { transform: scaleX(0.96); opacity: 0.70; }
}

.badge.panel.neon { position: relative; overflow: visible; --pulse-color: var(--neon-bar); }
.badge.panel.neon.green  { --pulse-color: var(--green); }
.badge.panel.neon.yellow { --pulse-color: var(--yellow); }
.badge.panel.neon.red    { --pulse-color: var(--red); }

.badge.panel.neon .neon-hr {
  position: absolute;
  left: 10%; right: 10%;
  height: 6px; bottom: -10px;
  background: var(--pulse-color);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--pulse-color), 0 0 16px var(--pulse-color), 0 0 28px var(--pulse-color);
  transform-origin: 50% 50%;
  animation: geoHeartbeat 5.9s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 0;
}

.badge.panel.neon .neon-hr--glow {
  left: 6%; right: 6%;
  height: 14px; bottom: -16px;
  opacity: 0.45;
  box-shadow: 0 0 14px var(--pulse-color), 0 0 26px var(--pulse-color), 0 10px 34px rgba(0,0,0,0.45);
  animation: geoHeartbeat 5.8s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: -1;
}

//* поместите в самый конец styles.css */
.badge.panel.neon .neon-hr {
  animation: geoHeartbeat 5s ease-in-out infinite !important;
}
.badge.panel.neon .neon-hr--glow {
  animation: geoHeartbeat 7s ease-in-out infinite !important;
}

/* Final-panel: confirm checkbox text white + justified */
#final-panel .confirm-checkbox-wrapper { width:100%; max-width:420px; margin:10px auto 8px auto; }
#final-panel .final-confirm-checkbox span {
  color: #ffffff;
  text-align: justify;
  text-justify: inter-word;
  display: block;
  font-weight: 700;
  line-height: 1.3;
  margin-right: 6px;
}
#final-panel .final-confirm-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
