/* ==========================================================================
   SpeedLens stylesheet. Custom CSS, Flexbox and Grid. No frameworks.
   ========================================================================== */
:root {
  --brand: #0b5fff;
  --brand-dark: #0846c4;
  --brand-soft: #e8efff;
  --accent: #ff7a1a;
  --ink: #0f1a2e;
  --ink-2: #3b4760;
  --muted: #66728a;
  --line: #e3e8f1;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --card: #ffffff;
  --good: #0f9d58;
  --ok: #e6a100;
  --poor: #d93025;
  --t-doc: #3c78ff;
  --t-css: #8e5cf7;
  --t-js: #f5a623;
  --t-img: #18b47b;
  --t-other: #9aa4b5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 26, 46, .08);
  --shadow-lg: 0 20px 50px rgba(15, 26, 46, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid rgba(11, 95, 255, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.accent { color: var(--brand); }
.ok { color: var(--good); }
.bad { color: var(--poor); }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.25em; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-cta { background: var(--accent); color: #111; }
.btn-cta:hover { background: #ff8f3d; }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge-soon { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #fff4e5; color: #a35a00; border-radius: 999px; padding: .15em .6em; vertical-align: middle; }

/* Promo bar --------------------------------------------------------------- */
.promo-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; background: linear-gradient(90deg, #0f1a2e, #1d2f57); color: #fff; padding: .55rem 3rem .55rem 1rem; font-size: .9rem; position: relative; text-align: center; }
.promo-bar[hidden] { display: none; }
.promo-bar p { margin: 0; }
.promo-bar a { color: #ffd2a8; font-weight: 600; text-decoration: underline; }
.promo-close { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .25rem .5rem; border-radius: 6px; }
.promo-close:hover { background: rgba(255,255,255,.12); }

/* Navbar ------------------------------------------------------------------ */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; color: var(--brand); }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: #8fb3ff; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; flex: 1; justify-content: flex-end; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .dropdown-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 8px; color: var(--ink-2); font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; }
.nav-links > li > a:hover, .dropdown-toggle:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .2s; }
.dropdown { position: relative; }
.dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); font-weight: 600; }
.dropdown-menu a small { display: block; font-weight: 400; color: var(--muted); }
.dropdown-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero -------------------------------------------------------------------- */
.hero { background: radial-gradient(1200px 500px at 50% -10%, #dfe8ff 0%, rgba(223,232,255,0) 70%), var(--bg); padding: 80px 0 64px; text-align: center; }
.hero-inner { max-width: 860px; }
.hero h1 { margin-bottom: .4em; }
.test-form { margin: 2rem auto 0; max-width: 760px; text-align: left; }
.url-row { display: flex; gap: .5rem; background: #fff; padding: .5rem; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.url-row input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: .8rem 1rem; border-radius: 10px; color: var(--ink); background: transparent; }
.url-row input:focus { outline: none; background: var(--bg-alt); }
.url-row input.invalid { box-shadow: inset 0 0 0 2px var(--poor); }
.alert { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500; }
.alert svg { width: 22px; height: 22px; flex: none; }
.alert-error { background: #fdecea; color: #8c1d18; border: 1px solid #f6c3be; }
.options-toggle { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; background: none; border: 0; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; padding: .4rem .6rem; border-radius: 8px; }
.options-toggle svg { width: 20px; height: 20px; }
.options-toggle:hover, .options-toggle.active { background: var(--brand-soft); color: var(--brand); }
.options-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .75rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.options-panel[hidden] { display: none; }
.option label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.option select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.option-note { grid-column: 1 / -1; margin: 0; }
.hero-note { margin-top: 1rem; }

/* Sections ---------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 32px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card p { color: var(--ink-2); margin: 0; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1rem; background: var(--brand-soft); position: relative; }
.feature-icon::after { content: ""; position: absolute; inset: 12px; border-radius: 4px; }
.icon-vitals::after { border: 3px solid var(--brand); border-radius: 50%; border-right-color: transparent; }
.icon-analysis::after { background: linear-gradient(90deg, var(--brand) 0 20%, transparent 20% 40%, var(--brand) 40% 60%, transparent 60% 80%, var(--brand) 80%); clip-path: polygon(0 60%, 20% 60%, 20% 100%, 0 100%, 0 60%, 40% 20%, 60% 20%, 60% 100%, 40% 100%, 40% 20%, 80% 0, 100% 0, 100% 100%, 80% 100%); }
.icon-monitor::after { border: 3px solid var(--brand); border-radius: 50%; }
.icon-monitor::before { content: ""; position: absolute; left: 23px; top: 16px; width: 3px; height: 10px; background: var(--brand); border-radius: 2px; z-index: 1; }
.icon-waterfall::after { background: linear-gradient(var(--brand), var(--brand)) 0 0 / 40% 4px no-repeat, linear-gradient(var(--t-css), var(--t-css)) 25% 50% / 45% 4px no-repeat, linear-gradient(var(--t-img), var(--t-img)) 100% 100% / 55% 4px no-repeat; }
.icon-rum::after { border-radius: 50% 50% 4px 4px; background: var(--brand); clip-path: circle(35% at 50% 35%); }
.icon-global::after { border: 3px solid var(--brand); border-radius: 50%; background: linear-gradient(var(--brand), var(--brand)) center / 3px 100% no-repeat, linear-gradient(var(--brand), var(--brand)) center / 100% 3px no-repeat; }

/* Tabs -------------------------------------------------------------------- */
.tab-list { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .8rem; }
.tab[aria-selected="true"] .tab-num { background: var(--brand); color: #fff; }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: #fff; border-radius: 20px; padding: 2.5rem; box-shadow: var(--shadow); animation: fade .25s ease; }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin: .45rem 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--brand-soft); }
.checklist li::after { content: ""; position: absolute; left: .38rem; top: .55em; width: .3rem; height: .55rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tab-visual { background: linear-gradient(135deg, #0f1a2e, #22396b); border-radius: 16px; min-height: 240px; padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mock-bar { height: 14px; border-radius: 7px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.mock-bar::after { content: ""; position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--t-doc); animation: grow 1.6s ease-out both; }
.mock-bar:nth-child(1)::after { left: 0; width: 35%; }
.mock-bar:nth-child(2)::after { left: 30%; width: 30%; background: var(--t-css); animation-delay: .15s; }
.mock-bar:nth-child(3)::after { left: 45%; width: 40%; background: var(--t-js); animation-delay: .3s; }
.mock-bar:nth-child(4)::after { left: 55%; width: 45%; background: var(--t-img); animation-delay: .45s; }
.visual-monitor .mock-bar::after { background: var(--good); }
.visual-collaborate .mock-bar::after { background: var(--t-css); }
.visual-ai .mock-bar::after { background: var(--accent); }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* World map --------------------------------------------------------------- */
.map-section { background: #0b1324; color: #fff; }
.map-section .lead { color: #b9c4dc; }
.map-section .eyebrow { color: #8fb3ff; }
.world-map { margin: 0; }
.world-map svg { width: 100%; height: auto; display: block; }
.land path { fill: #1c2a47; stroke: #2a3c63; stroke-width: 1; stroke-linejoin: round; }
.pin .dot { fill: #4f8bff; stroke: #fff; stroke-width: 1.2; }
.pin .ring { fill: none; stroke: #4f8bff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
.pin .ring-2 { animation-delay: 1s; }
.pin .ring-3 { animation-delay: 2s; }
.pin.delay-1 .ring { animation-delay: .3s; } .pin.delay-1 .ring-2 { animation-delay: 1.3s; } .pin.delay-1 .ring-3 { animation-delay: 2.3s; }
.pin.delay-2 .ring { animation-delay: .6s; } .pin.delay-2 .ring-2 { animation-delay: 1.6s; } .pin.delay-2 .ring-3 { animation-delay: 2.6s; }
.pin.delay-3 .ring { animation-delay: .9s; } .pin.delay-3 .ring-2 { animation-delay: 1.9s; } .pin.delay-3 .ring-3 { animation-delay: 2.9s; }
.pin.delay-4 .ring { animation-delay: 1.2s; } .pin.delay-4 .ring-2 { animation-delay: 2.2s; } .pin.delay-4 .ring-3 { animation-delay: 3.2s; }
.pin.delay-5 .ring { animation-delay: 1.5s; } .pin.delay-5 .ring-2 { animation-delay: 2.5s; } .pin.delay-5 .ring-3 { animation-delay: 3.5s; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.continent-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.continent-list li { display: flex; flex-direction: column; align-items: center; }
.continent-list span { color: #8fa0c2; font-size: .9rem; }

/* Testimonials & pricing --------------------------------------------------- */
.testimonial-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.testimonial blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: .75rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; flex: none; }
.testimonial-grid + .muted { margin-top: 1.25rem; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; background: #fff; display: flex; flex-direction: column; gap: 1rem; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price-card .checklist { flex: 1; }
.price { font-size: 2.4rem; font-weight: 800; margin: 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }

/* CTA --------------------------------------------------------------------- */
.cta { background: linear-gradient(120deg, #0b5fff, #0033a8); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { margin: 0; max-width: 680px; color: #fff; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #0b1324; color: #b9c4dc; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: #b9c4dc; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 1rem 0; }
.social { display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); }
.social a:hover { background: rgba(255,255,255,.15); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: .875rem; }
.footer-bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.legal li { margin: 0; }

/* Modal ------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 19, 36, .6); }
.modal-card { position: relative; background: #fff; border-radius: 18px; padding: 2rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); animation: fade .2s ease; }
.modal-close { position: absolute; top: .75rem; right: .75rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .2rem .5rem; border-radius: 8px; }
.modal-close:hover { background: var(--bg-alt); }
.login-form { display: flex; flex-direction: column; gap: .9rem; margin: 1rem 0; }
.login-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.login-form input { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg-alt); }

/* Status pages ------------------------------------------------------------ */
.status-illustration { font-size: 6rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }

/* Report ------------------------------------------------------------------ */
.report-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.report-head { display: flex; gap: 2rem; align-items: center; }
.grade-badge { flex: none; width: 140px; height: 140px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); }
.grade-letter { font-size: 4.5rem; font-weight: 900; line-height: 1; }
.grade-score { font-weight: 700; opacity: .9; }
.grade-a { background: linear-gradient(135deg, #0f9d58, #0b7a44); }
.grade-b { background: linear-gradient(135deg, #5cb82e, #3f8f1a); }
.grade-c { background: linear-gradient(135deg, #e6b800, #c49000); }
.grade-d { background: linear-gradient(135deg, #f08c00, #cc6d00); }
.grade-e { background: linear-gradient(135deg, #ef5b2a, #c9401a); }
.grade-f { background: linear-gradient(135deg, #d93025, #a51d15); }
.report-meta { min-width: 0; }
.report-url { font-size: clamp(1.2rem, 2.6vw, 1.75rem); word-break: break-all; margin-bottom: .4em; }
.report-url a { color: var(--ink); }
.meta-list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1.25rem; color: var(--muted); font-size: .9rem; }
.report-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.summary-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.summary-bar > div { padding: 1.25rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.summary-bar > div:last-child { border-right: 0; }
.summary-bar .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb0d0; }
.summary-bar .value { font-size: 1.75rem; font-weight: 800; }

.block-title { font-size: 1.35rem; margin: 2.5rem 0 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.block-title.inline { display: inline-flex; margin: 0; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25em .7em; border-radius: 999px; }
.tag-estimated { background: #fff4e5; color: #a35a00; }
.tag-real { background: #e6f6ee; color: #0b7a44; }

.vitals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.vital-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; border-top: 4px solid var(--t-other); }
.vital-card header { display: flex; justify-content: space-between; align-items: center; }
.vital-abbr { font-weight: 800; color: var(--muted); }
.vital-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--t-other); }
.vital-value { font-size: 2.2rem; font-weight: 800; margin: .25rem 0; }
.vital-value .est { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: .35rem; }
.vital-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.rating-good { border-top-color: var(--good); } .rating-good .vital-dot { background: var(--good); } .rating-good .vital-value { color: var(--good); }
.rating-ok { border-top-color: var(--ok); } .rating-ok .vital-dot { background: var(--ok); } .rating-ok .vital-value { color: #b07a00; }
.rating-poor { border-top-color: var(--poor); } .rating-poor .vital-dot { background: var(--poor); } .rating-poor .vital-value { color: var(--poor); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.panel .block-title { margin-top: 0; }
.two-col .panel { margin-top: 2.5rem; }
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); display: flex; align-items: center; gap: .5rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv-wrap dt { font-family: var(--mono); font-size: .85rem; flex: none; }
.kv-wrap dd { font-family: var(--mono); font-size: .85rem; word-break: break-all; font-weight: 500; }
.timing-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-alt); margin-bottom: 1rem; }
.timing-stack .seg { width: 0; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.seg-dns { background: #00a3a3; } .seg-connect { background: #f08c00; } .seg-tls { background: #8e5cf7; } .seg-wait { background: #18b47b; } .seg-download { background: #3c78ff; }

.recs { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.rec details { border: 1px solid var(--line); border-radius: 12px; background: #fff; border-left: 5px solid var(--t-other); }
.rec summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; display: flex; align-items: center; gap: .75rem; }
.rec summary::-webkit-details-marker { display: none; }
.rec summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); }
.rec details[open] summary::after { content: "–"; }
.rec details > :not(summary) { padding: 0 1.25rem; }
.rec details > :last-child { padding-bottom: 1rem; }
.rec .impact { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .2em .6em; border-radius: 999px; background: var(--bg-alt); }
.impact-high details { border-left-color: var(--poor); } .impact-high .impact { background: #fdecea; color: #a51d15; }
.impact-medium details { border-left-color: var(--ok); } .impact-medium .impact { background: #fff4e5; color: #a35a00; }
.impact-low details { border-left-color: var(--brand); } .impact-low .impact { background: var(--brand-soft); color: var(--brand-dark); }
.rec-items { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); word-break: break-all; margin: 0 0 .5rem; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; font-size: .875rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.type-document { background: var(--t-doc); } .type-css { background: var(--t-css); } .type-script { background: var(--t-js); } .type-image { background: var(--t-img); } .type-other { background: var(--t-other); }
.waterfall { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: .85rem; overflow-x: clip; }
.wf-row { display: grid; grid-template-columns: minmax(160px, 2.2fr) 60px 80px 4fr; align-items: center; gap: .75rem; padding: .45rem 1rem; border-bottom: 1px solid var(--line); }
.wf-row:last-child { border-bottom: 0; }
.wf-row:hover { background: var(--bg-alt); }
.wf-head { background: var(--bg-alt); font-weight: 700; color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-radius: var(--radius) var(--radius) 0 0; }
.wf-name { min-width: 0; display: flex; flex-direction: column; }
.wf-file { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wf-host { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-status, .wf-size { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.wf-error .wf-status, .wf-error .wf-file { color: var(--poor); }
.wf-track { position: relative; height: 16px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); border-radius: 4px; }
.wf-scale { display: flex; justify-content: space-between; height: auto; background: none; text-transform: none; font-weight: 500; letter-spacing: 0; }
.wf-bar { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; min-width: 3px; border-radius: 3px; cursor: help; transition: filter .15s; }
.wf-bar:hover, .wf-bar:focus { filter: brightness(1.1); outline: none; }
.wf-bar::after { content: attr(data-tip); display: none; position: absolute; bottom: calc(100% + 8px); left: 0; width: max-content; max-width: 280px; background: var(--ink); color: #fff; padding: .4rem .6rem; border-radius: 6px; font-size: .75rem; line-height: 1.4; pointer-events: none; z-index: 5; }
.wf-bar:hover::after, .wf-bar:focus::after { display: block; }
.wf-bar.flip::after { left: auto; right: 0; }
.wf-row:nth-child(-n+3) .wf-bar::after { bottom: auto; top: calc(100% + 8px); }

.grade-explainer { margin-top: 2.5rem; }
.grade-explainer summary { cursor: pointer; }
.grade-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
.grade-table th, .grade-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.grade-table th { color: var(--muted); font-weight: 600; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .feature-grid, .testimonial-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .tab-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .panel + .panel { margin-top: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 20px 1.5rem; box-shadow: var(--shadow); display: none; }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 .75rem; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .options-panel { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .summary-bar { grid-template-columns: repeat(2, 1fr); }
  .summary-bar > div:nth-child(2) { border-right: 0; }
  .summary-bar > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .report-head { flex-direction: column; align-items: flex-start; }
  .wf-row { grid-template-columns: minmax(0, 1fr) 44px 70px; }
  .wf-row .wf-track { grid-column: 1 / -1; }
  .wf-head .wf-track { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .feature-grid, .testimonial-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; }
  .url-row .btn { width: 100%; }
  .promo-bar { font-size: .8rem; }
  .grade-badge { width: 110px; height: 110px; }
  .grade-letter { font-size: 3.5rem; }
  .summary-bar .value { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Site-scanning screen ---------------------------------------------------- */
.scan-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 600px at 50% 30%, rgba(11, 95, 255, .35), rgba(11, 19, 36, .96) 70%), #0b1324; color: #fff; animation: fade .25s ease; overflow-y: auto; }
.scan-overlay[hidden] { display: none; }
.scan-card { width: 100%; max-width: 520px; text-align: center; }
.scan-card h2 { color: #fff; font-size: clamp(1.3rem, 3.5vw, 1.75rem); margin: 1.5rem 0 .25rem; word-break: break-all; }
.scan-card .muted { color: #b9c4dc; }
.scan-visual { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.scan-browser { position: relative; z-index: 1; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(143, 179, 255, .25); }
.scan-chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #eef2f8; border-bottom: 1px solid var(--line); }
.scan-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c9d1de; flex: none; }
.scan-chrome i:first-child { background: #ff6159; } .scan-chrome i:nth-child(2) { background: #ffbd2e; } .scan-chrome i:nth-child(3) { background: #28c941; }
.scan-address { flex: 1; min-width: 0; margin-left: 8px; background: #fff; border-radius: 6px; padding: 2px 8px; font-size: .7rem; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-page { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 10px; height: 200px; overflow: hidden; }
.sk { border-radius: 6px; background: linear-gradient(90deg, #e9eef6 0%, #f6f8fc 50%, #e9eef6 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-nav { height: 12px; width: 60%; }
.sk-hero { height: 58px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-card { height: 44px; }
.sk-line { height: 9px; }
.sk-line.short { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(180deg, rgba(11, 95, 255, 0) 0%, rgba(11, 95, 255, .18) 85%, rgba(11, 95, 255, .9) 100%); border-bottom: 2px solid #4f8bff; box-shadow: 0 6px 18px rgba(79, 139, 255, .6); animation: scan 2.2s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes scan { from { transform: translateY(-70px); } to { transform: translateY(200px); } }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 95, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 95, 255, .07) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.scan-radar { position: absolute; inset: -40px; z-index: 0; pointer-events: none; }
.scan-radar span { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; border: 1px solid rgba(143, 179, 255, .45); border-radius: 50%; transform: translate(-50%, -50%) scale(.4); opacity: 0; animation: radar 3s ease-out infinite; }
.scan-radar span:nth-child(2) { animation-delay: 1s; }
.scan-radar span:nth-child(3) { animation-delay: 2s; }
@keyframes radar { 0% { transform: translate(-50%, -50%) scale(.4); opacity: .8; } 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
.scan-progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 1.25rem 0; }
.scan-progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #4f8bff, #8fb3ff); transition: width .2s linear; }
.scan-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 360px; text-align: left; }
.scan-steps li { position: relative; padding: .35rem 0 .35rem 1.9rem; color: #6f7f9f; font-size: .92rem; transition: color .2s; }
.scan-steps li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid #34466c; box-sizing: border-box; }
.scan-steps li.active { color: #fff; font-weight: 600; }
.scan-steps li.active::before { border-color: #4f8bff; border-right-color: transparent; animation: spin .8s linear infinite; }
.scan-steps li.done { color: #b9c4dc; }
.scan-steps li.done::before { border-color: var(--good); background: var(--good); }
.scan-steps li.done::after { content: ""; position: absolute; left: .37rem; top: .72rem; width: .28rem; height: .5rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.scan-note { margin-top: 1.25rem; }
@media (max-width: 560px) {
  .scan-page { height: 160px; }
  .sk-hero { height: 40px; }
  @keyframes scan { from { transform: translateY(-70px); } to { transform: translateY(160px); } }
}
@media (prefers-reduced-motion: reduce) {
  .scan-line { display: none; }
  .scan-radar { display: none; }
}

/* Device tabs + page screenshot (report) ---------------------------------- */
.report-hero { padding-top: 24px; }
.device-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; box-shadow: 0 2px 8px rgba(15, 26, 46, .05); }
.device-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 9px; color: var(--ink-2); font-weight: 600; }
.device-tab svg { width: 20px; height: 20px; }
.device-tab:hover { background: var(--bg-alt); text-decoration: none; color: var(--ink); }
.device-tab.active { background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 -3px 0 var(--brand); }
.mini-grade { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-size: .8rem; font-weight: 800; }
.report-meta { flex: 1; }
.page-shot { flex: none; margin: 0 0 0 auto; text-align: center; }
.device-frame { background: #0f1a2e; padding: 8px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.frame-screen { position: relative; overflow: hidden; border-radius: 6px; background: #fff; }
.frame-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-desktop { width: 340px; }
.shot-desktop .device-frame { padding: 0 6px 6px; border-radius: 10px; }
.shot-desktop .frame-screen { aspect-ratio: 1350 / 940; }
.frame-bar { display: flex; gap: 5px; padding: 7px 4px; }
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3b4a6b; }
.shot-mobile { width: 180px; }
.shot-mobile .device-frame { border-radius: 26px; padding: 10px 8px; }
.shot-mobile .frame-screen { aspect-ratio: 412 / 823; border-radius: 16px; }
.page-shot figcaption { margin-top: .6rem; }
.shot-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 12px; text-align: center; font-size: .72rem; line-height: 1.35; color: var(--muted); background: repeating-linear-gradient(135deg, #f5f7fb 0 10px, #eef2f8 10px 20px); }
.shot-placeholder svg { width: 28px; height: 28px; color: #9aa4b5; }
.shot-placeholder strong { color: var(--ink); font-size: .8rem; word-break: break-word; }
.shot-placeholder code { font-size: .68rem; }
@media (max-width: 820px) {
  .page-shot { margin: 0 auto; }
  .report-head { align-items: stretch; }
  .device-tabs { display: flex; }
  .device-tab { flex: 1; justify-content: center; }
}
@media (max-width: 560px) {
  .shot-desktop { width: 100%; max-width: 340px; }
}

/* ==========================================================================
   DARK VIOLET THEME
   Obsidian canvas, violet spotlight, glass pill nav, gradient headline,
   glowing white buttons and backlit dashboard frames. Overrides the base
   rules above; delete this block to return to the light theme.
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-obsidian: #05020a;
  --surface-dark: #0e0a18;
  --surface-2: #151024;
  --purple-neon: #8b5cf6;
  --purple-vivid: #7c3aed;
  --purple-deep: #6d28d9;
  --lavender: #a78bfa;
  --lavender-soft: #c4b5fd;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-violet: rgba(139, 92, 246, 0.25);
  --spotlight: rgba(124, 58, 237, 0.35);

  --brand: var(--purple-neon);
  --brand-dark: var(--lavender-soft);
  --brand-soft: rgba(139, 92, 246, 0.14);
  --accent: var(--lavender);
  --ink: var(--text-main);
  --ink-2: #cdc6e0;
  --muted: var(--text-muted);
  --line: var(--border-subtle);
  --bg: var(--bg-obsidian);
  --bg-alt: #0a0613;
  --card: var(--surface-dark);
  --good: #22c55e;
  --ok: #fbbf24;
  --poor: #f87171;
  --t-doc: #60a5fa;
  --t-css: #a78bfa;
  --t-js: #fbbf24;
  --t-img: #34d399;
  --t-other: #6b7280;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, .9);
  --glow-frame: 0 -20px 80px -10px rgba(124, 58, 237, .4), 0 25px 50px -12px rgba(0, 0, 0, .9);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { background-color: var(--bg-obsidian); color: var(--text-main); }
a { color: var(--lavender); }
code { background: rgba(255, 255, 255, .06); color: var(--lavender-soft); }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
:focus-visible { outline-color: rgba(167, 139, 250, .8); }
.eyebrow { color: var(--lavender); }
.lead { color: #b9b3c9; }
.accent { color: var(--lavender); }
.ok { color: var(--good); }
.bad { color: var(--poor); }

/* Buttons: glowing white primary, violet-ring outline */
.btn-primary {
  background: #ffffff; color: var(--bg-obsidian); font-weight: 600;
  border: 1px solid rgba(167, 139, 250, .5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .18), 0 8px 25px rgba(124, 58, 237, .45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); box-shadow: 0 0 0 5px rgba(139, 92, 246, .3), 0 12px 30px rgba(124, 58, 237, .65); }
.btn-primary[disabled] { transform: none; }
.btn-primary .spinner { border-color: rgba(5, 2, 10, .2); border-top-color: var(--bg-obsidian); }
.btn-outline { background: rgba(139, 92, 246, .08); color: var(--lavender-soft); border: 1px solid rgba(167, 139, 250, .45); }
.btn-outline:hover { background: rgba(139, 92, 246, .18); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.btn-cta { background: #fff; color: var(--bg-obsidian); border: 1px solid rgba(167, 139, 250, .5); box-shadow: 0 0 0 4px rgba(139, 92, 246, .25), 0 8px 30px rgba(124, 58, 237, .6); }
.btn-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(139, 92, 246, .35), 0 12px 36px rgba(124, 58, 237, .75); }

.badge-soon, .tag-estimated { background: rgba(251, 191, 36, .12); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .25); }
.tag-real { background: rgba(34, 197, 94, .12); color: #86efac; border: 1px solid rgba(34, 197, 94, .25); }

/* Promo bar */
.promo-bar { background: linear-gradient(90deg, #1a0b33, #2e1065, #1a0b33); border-bottom: 1px solid var(--border-violet); }
.promo-bar a { color: var(--lavender-soft); }

/* Floating glass pill navbar */
.navbar { background: transparent; backdrop-filter: none; border-bottom: 0; padding-top: 12px; pointer-events: none; }
.nav-inner, .nav-inner * {
  pointer-events: auto; }
.nav-inner { height: 60px; max-width: 1140px; padding: 0 10px 0 22px;
  background: rgba(14, 10, 24, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.logo { color: #fff; }
.logo-mark, .logo-light .logo-mark { color: var(--purple-neon); }
.nav-links > li > a, .dropdown-toggle { color: var(--text-muted); border-radius: 999px; }
.nav-links > li > a:hover, .dropdown-toggle:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-actions .btn { border-radius: 999px; padding: .5em 1.1em; }
.dropdown-menu { background: rgba(14, 10, 24, .96); border: 1px solid var(--border-subtle); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.dropdown-menu a { color: #fff; }
.dropdown-menu a:hover { background: rgba(139, 92, 246, .14); }
.nav-toggle span { background: #fff; }

/* Hero with violet spotlight and gradient headline */
.hero {
  background: radial-gradient(circle at 50% 38%, rgba(124, 58, 237, .32) 0%, rgba(109, 40, 217, .12) 35%, transparent 65%), transparent;
  margin-top: -84px; padding-top: 150px;
}
.hero h1, .section-head h2, .cta h2, .report-url {
  background: linear-gradient(180deg, #ffffff 45%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 700; letter-spacing: -.03em;
}
.report-url a { -webkit-text-fill-color: transparent; color: transparent; }
.hero h1 .accent { background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; }
.pill-badge {
  display: inline-flex; align-items: center; gap: .6rem; text-transform: none; letter-spacing: 0;
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  padding: .3rem .9rem .3rem .3rem; border-radius: 999px;
  background: rgba(14, 10, 24, .7); border: 1px solid var(--border-subtle);
}
.pill-badge span {
  background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; font-weight: 700; font-size: .7rem;
  letter-spacing: .08em; padding: .2rem .55rem; border-radius: 999px; box-shadow: 0 0 14px rgba(139, 92, 246, .6);
}

/* Backlit dashboard frames */
.url-row, .tab-panel, .summary-bar, .scan-browser, .waterfall, .options-panel {
  background: var(--surface-dark); border: 1px solid var(--border-violet); box-shadow: var(--glow-frame);
}
.url-row input { color: #fff; }
.url-row input::placeholder { color: #8b8699; }
.url-row input:focus { background: rgba(255, 255, 255, .04); }
.options-toggle { color: var(--text-muted); }
.options-toggle:hover, .options-toggle.active { background: rgba(139, 92, 246, .14); color: var(--lavender-soft); }
.option select, .login-form input { background: var(--surface-2); color: #fff; border: 1px solid var(--border-subtle); }
.alert-error { background: rgba(239, 68, 68, .12); color: #fecaca; border: 1px solid rgba(248, 113, 113, .35); }

/* Sections and cards */
.section-alt { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .05) 50%, transparent); }
.feature-card, .testimonial, .price-card, .panel, .vital-card, .rec details, .modal-card, .device-tabs {
  background: var(--surface-dark); border-color: var(--border-subtle);
}
.feature-card:hover { border-color: var(--border-violet); box-shadow: 0 0 0 1px rgba(139, 92, 246, .15), 0 20px 50px -20px rgba(124, 58, 237, .55); }
.feature-card p, .testimonial blockquote { color: #cdc6e0; }
.feature-icon { background: rgba(139, 92, 246, .14); border: 1px solid var(--border-violet); }
.checklist li::before { background: rgba(139, 92, 246, .2); }
.checklist li::after { border-color: var(--lavender); }
.tab { background: rgba(14, 10, 24, .7); border-color: var(--border-subtle); color: var(--text-muted); }
.tab[aria-selected="true"] { background: #fff; color: var(--bg-obsidian); border-color: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, .18), 0 8px 25px rgba(124, 58, 237, .45); }
.tab-num { background: rgba(139, 92, 246, .2); color: var(--lavender-soft); }
.tab[aria-selected="true"] .tab-num { background: var(--purple-vivid); color: #fff; }
.tab-visual { background: linear-gradient(135deg, #120a24, #24124a); border: 1px solid var(--border-subtle); }
.price-card.featured { border: 1px solid rgba(167, 139, 250, .6); box-shadow: var(--glow-frame); }
.ribbon { background: linear-gradient(180deg, #8b5cf6, #7c3aed); box-shadow: 0 0 14px rgba(139, 92, 246, .6); }
.avatar { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

/* Map */
.map-section { background: radial-gradient(ellipse at 50% 60%, rgba(124, 58, 237, .18), transparent 60%), transparent; }
.map-section .eyebrow { color: var(--lavender); }
.land path { fill: #1a1230; stroke: #2c1f4d; }
.pin .dot { fill: var(--purple-neon); }
.pin .ring { stroke: var(--lavender); }
.continent-list span { color: var(--text-muted); }

/* CTA + footer */
.cta { background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .4), rgba(109, 40, 217, .12) 45%, transparent 75%), var(--bg-obsidian); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.site-footer { background: var(--bg-obsidian); color: var(--text-muted); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--lavender-soft); }
.social a { background: rgba(255, 255, 255, .04); border: 1px solid var(--border-subtle); }
.social a:hover { background: rgba(139, 92, 246, .18); }
.footer-bottom { border-top-color: var(--border-subtle); }

/* Modal */
.modal-backdrop { background: rgba(5, 2, 10, .75); backdrop-filter: blur(4px); }
.modal-card { border: 1px solid var(--border-violet); box-shadow: var(--glow-frame); }
.modal-close:hover { background: rgba(255, 255, 255, .06); }
.status-illustration { background: linear-gradient(180deg, #ffffff 30%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; }

/* Report */
.report-hero { background: radial-gradient(circle at 30% 0%, rgba(124, 58, 237, .28), transparent 60%), transparent; border-bottom: 1px solid var(--border-subtle); margin-top: -84px; padding-top: 108px; }
.device-tab { color: var(--text-muted); }
.device-tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.device-tab.active { background: rgba(139, 92, 246, .18); color: #fff; box-shadow: inset 0 -3px 0 var(--purple-neon); }
.grade-badge { box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 20px 50px -10px rgba(0, 0, 0, .8); }
.summary-bar { color: #fff; }
.summary-bar > div { border-color: var(--border-subtle) !important; }
.summary-bar .label { color: var(--text-muted); }
.vital-value .est { color: var(--text-muted); }
.rating-good .vital-value { color: var(--good); }
.rating-ok .vital-value { color: var(--ok); }
.rating-poor .vital-value { color: var(--poor); }
.kv > div { border-bottom-color: var(--border-subtle); }
.kv dt { color: #b9b3c9; }
.timing-stack { background: rgba(255, 255, 255, .06); }
.rec .impact { background: rgba(255, 255, 255, .06); }
.impact-high .impact { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.impact-medium .impact { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.impact-low .impact { background: rgba(139, 92, 246, .16); color: var(--lavender-soft); }
.impact-low details { border-left-color: var(--purple-neon); }
.rec-items { color: #b9b3c9; }
.legend { color: #b9b3c9; }
.wf-row { border-bottom-color: var(--border-subtle); }
.wf-row:hover { background: rgba(139, 92, 246, .07); }
.wf-head { background: rgba(255, 255, 255, .03); color: var(--text-muted); }
.wf-status, .wf-size { color: #b9b3c9; }
.wf-track { background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .06) calc(25% - 1px) 25%); }
.wf-scale { background: none; }
.wf-bar::after { background: #1e1633; border: 1px solid var(--border-violet); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.grade-table th, .grade-table td { border-bottom-color: var(--border-subtle); }
.device-frame { background: #1a1230; border: 1px solid var(--border-violet); box-shadow: var(--glow-frame); }
.frame-bar i { background: #4c3d73; }
.shot-placeholder { background: repeating-linear-gradient(135deg, #120d20 0 10px, #0e0a18 10px 20px); color: var(--text-muted); }
.shot-placeholder strong { color: #fff; }

/* Scanning screen */
.scan-overlay { background: radial-gradient(circle at 50% 38%, rgba(124, 58, 237, .32) 0%, rgba(109, 40, 217, .12) 35%, transparent 65%), #05020a; }
.scan-card h2 { background: linear-gradient(180deg, #ffffff 45%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.scan-card .muted { color: var(--text-muted); }
.scan-chrome { background: #151024; border-bottom: 1px solid var(--border-subtle); }
.scan-address { background: rgba(255, 255, 255, .05); color: var(--text-muted); }
.sk { background: linear-gradient(90deg, #1a1430 0%, #261d42 50%, #1a1430 100%) 0 0 / 200% 100%; }
.scan-grid { background-image: linear-gradient(rgba(139, 92, 246, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, .08) 1px, transparent 1px); }
.scan-line { background: linear-gradient(180deg, rgba(139, 92, 246, 0) 0%, rgba(139, 92, 246, .2) 85%, rgba(167, 139, 250, .9) 100%); border-bottom-color: var(--lavender); box-shadow: 0 6px 18px rgba(139, 92, 246, .7); }
.scan-radar span { border-color: rgba(167, 139, 250, .4); }
.scan-progress { background: rgba(255, 255, 255, .08); }
.scan-progress span { background: linear-gradient(90deg, #7c3aed, #c4b5fd); box-shadow: 0 0 12px rgba(139, 92, 246, .8); }
.scan-steps li { color: #6f6a80; }
.scan-steps li::before { border-color: #2c2342; }
.scan-steps li.active::before { border-color: var(--purple-neon); border-right-color: transparent; }
.scan-steps li.done { color: #cdc6e0; }

@media (max-width: 820px) {
  .nav-inner { margin: 0 12px; width: auto; border-radius: 24px; }
  .nav-menu { pointer-events: auto; top: 70px; left: 0; right: 0; background: #0e0a18; border: 1px solid var(--border-violet); border-radius: 20px; box-shadow: var(--glow-frame); }
  .dropdown-menu { background: transparent; border: 0; }
}

/* ==========================================================================
   AI MOTION LAYER: neural canvas, drifting orbs, shimmer, reveals, glow
   ========================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 2; }
.ai-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 80%); opacity: .85; }
.scan-overlay .ai-canvas { opacity: .5; -webkit-mask-image: none; mask-image: none; }
.scan-overlay .scan-card { position: relative; z-index: 1; }
.hero-orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.orb-1 { width: 420px; height: 420px; left: 12%; top: 18%; background: rgba(124, 58, 237, .55); animation: orbDrift1 18s ease-in-out infinite alternate; }
.orb-2 { width: 360px; height: 360px; right: 10%; top: 34%; background: rgba(79, 70, 229, .45); animation: orbDrift2 22s ease-in-out infinite alternate; }
@keyframes orbDrift1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(120px, 60px) scale(1.15); } 100% { transform: translate(40px, -40px) scale(.9); } }
@keyframes orbDrift2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-140px, -30px) scale(.85); } 100% { transform: translate(-40px, 50px) scale(1.1); } }

/* Shimmering gradient on the highlighted headline words */
.hero h1 .accent {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 30%, #f5f3ff 50%, #8b5cf6 70%, #c4b5fd 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  animation: shimmer-text 6s linear infinite;
}
@keyframes shimmer-text { to { background-position: -250% 0; } }
.pill-badge span { animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 22px rgba(167, 139, 250, .95); } }

/* Animated conic border on the URL box */
.url-row { position: relative; }
.url-row::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, rgba(196, 181, 253, .9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 5s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --angle: 360deg; } }

/* Scroll reveal (only applied by JS to elements below the fold) */
.reveal-pending { opacity: 0; transform: translateY(26px); filter: blur(4px); }
.reveal-pending.in { opacity: 1; transform: none; filter: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease; }

/* Cursor-following glow on cards */
.glow-card { position: relative; }
.glow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .16), transparent 60%); }
.glow-card:hover::after { opacity: 1; }
.glow-card > *:not(.ribbon) { position: relative; z-index: 1; }

/* Report: grade glow + smart summary */
.grade-badge { animation: gradeIn .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes gradeIn { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.smart-summary { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 1.1rem 1.3rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(14, 10, 24, .9) 60%); border: 1px solid var(--border-violet); box-shadow: var(--glow-frame); }
.spark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 0 18px rgba(139, 92, 246, .6); animation: badgePulse 2.6s ease-in-out infinite; }
.spark svg { width: 20px; height: 20px; }
.smart-label { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); }
.smart-text { margin: 0; color: #e9e5f5; min-height: 1.6em; }
.smart-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--lavender); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Waterfall bars grow in */
.wf-bar { animation: barGrow .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 560px) {
  .orb-1, .orb-2 { width: 240px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .url-row::before { animation: none; }
  .hero h1 .accent, .pill-badge span, .spark, .grade-badge, .wf-bar { animation: none; }
  .reveal-pending { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   ACCOUNTS: login / OTP, account, checkout, plans (dark violet theme)
   ========================================================================== */
.auth-section { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 3rem 16px; }
.auth-card { width: 100%; max-width: 440px; background: rgba(14, 10, 24, .82); border: 1px solid var(--border-violet); border-radius: 22px; padding: 2.2rem 2rem; box-shadow: 0 0 60px rgba(124, 58, 237, .22), 0 30px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); }
.auth-card h1 { font-size: 1.7rem; margin: .8rem 0 .4rem; color: #fff; }
.auth-card .spark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--purple-vivid), var(--purple-neon)); color: #fff; box-shadow: 0 0 24px var(--spotlight); }
.auth-card .spark svg { width: 24px; height: 24px; }
.auth-form { display: grid; gap: .6rem; margin: 1.2rem 0 .6rem; }
.auth-form label { font-weight: 600; font-size: .9rem; color: var(--lavender-soft); }
.auth-form input { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border-subtle); background: #05020a; color: #fff; font: inherit; }
.auth-form input:focus { outline: none; border-color: var(--purple-neon); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.otp-input { font-family: var(--mono); font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: .3rem 0; color: var(--lavender); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }
.auth-foot { margin-top: 1.2rem; border-top: 1px solid var(--border-subtle); padding-top: 1rem; }
.white { color: #fff; }
.alert-ok { background: rgba(16, 185, 129, .12); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, .35); }
.alert-dev { background: rgba(245, 158, 11, .1); color: #fde68a; border: 1px solid rgba(245, 158, 11, .3); font-size: .88rem; }
.alert-dev code, .alert-ok code { color: #fff; }
.checkout-card .price { font-size: 2.4rem; font-weight: 800; color: #fff; margin: .4rem 0 1rem; }
.checkout-card .price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.checkout-card .checklist { margin-bottom: 1.2rem; }

.nav-logout { display: inline; margin: 0; }
.nav-account { display: inline-flex; align-items: center; gap: .45rem; }
.plan-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--lavender-soft); border: 1px solid var(--border-violet); vertical-align: middle; }
.plan-badge.plan-starter { background: rgba(139, 92, 246, .2); color: #fff; }
.plan-badge.plan-pro { background: linear-gradient(135deg, var(--purple-vivid), #db2777); color: #fff; border-color: transparent; }

.account-section { padding-top: 3rem; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.account-head h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); color: #fff; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.account-card { background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 1.6rem; display: grid; gap: .6rem; align-content: start; }
.account-card h2 { margin: 0; font-size: 1.9rem; color: #fff; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.account-card h2 small { font-size: 1rem; font-weight: 500; }
.usage-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.usage-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--purple-vivid), var(--lavender-soft)); box-shadow: 0 0 12px var(--spotlight); transition: width .8s ease; }
.account-sub { font-size: 1.3rem; color: #fff; margin: 2.2rem 0 1rem; }
.pricing-grid.compact .price-card { padding: 1.4rem; }
.price-card.current { border-color: var(--purple-neon); box-shadow: 0 0 0 1px var(--purple-neon) inset; }
.btn.is-static { pointer-events: none; opacity: .7; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-dark); }
.history-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.history-table th, .history-table td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--border-subtle); color: #e5e7eb; }
.history-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); background: rgba(255, 255, 255, .02); }
.history-table tr:last-child td { border-bottom: 0; }
.history-table a { color: var(--lavender); font-weight: 600; }
.history-table code { font-size: .8rem; color: var(--lavender-soft); }
.nowrap { white-space: nowrap; }
.url-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade-chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; color: #fff; background: #4b5563; }
.grade-chip.grade-a { background: #059669; } .grade-chip.grade-b { background: #65a30d; } .grade-chip.grade-c { background: #d97706; }
.grade-chip.grade-d { background: #ea580c; } .grade-chip.grade-e, .grade-chip.grade-f { background: #dc2626; }
.status-chip { font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d1d5db; white-space: nowrap; }
.status-chip.status-ok { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.status-chip.status-error, .status-chip.status-csrf { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.status-chip.status-rate_limited { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.hero-note a { color: var(--lavender-soft); font-weight: 600; }
@media (max-width: 860px) {
  .nav-actions .nav-logout, .nav-actions .nav-logout .btn { width: 100%; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.6rem 1.2rem; }
  .otp-input { letter-spacing: .3em; }
}
#pricing .pricing-grid + .muted { margin-top: 1.5rem; }

/* ==========================================================================
   SOFT AURORA: WebGL curtains of violet light centred behind the hero
   (assets/js/aurora.js). Sits under the neural canvas and the content.
   ========================================================================== */
.aurora-canvas { position: absolute; left: 50%; top: 46%; width: min(1500px, 140%); height: 115%; transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none; display: block; opacity: 0; filter: blur(22px) saturate(1.1);
  transition: opacity 1.6s ease; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 96%); }
.aurora-canvas.is-ready { opacity: .8; }
/* No WebGL: a still gradient with the same feel */
.aurora-canvas.aurora-fallback { opacity: .8;
  background: radial-gradient(40% 22% at 42% 48%, rgba(124, 58, 237, .55), transparent 70%),
              radial-gradient(34% 18% at 60% 40%, rgba(196, 181, 253, .35), transparent 70%),
              radial-gradient(30% 16% at 52% 58%, rgba(219, 39, 119, .22), transparent 70%); }
.hero .ai-canvas { z-index: 0; }
.hero-orb { opacity: .32; }
.auth-section { position: relative; overflow: hidden; isolation: isolate; }
.auth-section .auth-card { position: relative; z-index: 1; }
.auth-section .aurora-canvas { top: 50%; height: 100%; }
@media (max-width: 640px) {
  .aurora-canvas { width: 220%; height: 100%; filter: blur(14px) saturate(1.15); }
}

/* ==========================================================================
   SEO AUDIT (report) + keyword / intent fields (form)
   ========================================================================== */
.summary-bar:has(> div:nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
.summary-bar a { color: var(--lavender-soft); text-decoration: none; }
.option input[type=text] { width: 100%; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: #05020a; color: #fff; font: inherit; }
.option input[type=text]:focus { outline: none; border-color: var(--purple-neon); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.option-wide { grid-column: span 2; }
.opt-hint { font-weight: 400; color: var(--text-muted); font-size: .8em; }
.seo-section { padding-top: 1rem; }
.seo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seo-head .block-title { margin: 0 0 .3rem; }
.seo-score { display: flex; align-items: baseline; gap: .2rem; font-weight: 800; font-size: 2.6rem; color: #fff; padding: .4rem 1.1rem; border-radius: 16px; border: 1px solid var(--border-violet); background: var(--surface-dark); }
.seo-score small { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.seo-score.score-good { box-shadow: 0 0 24px rgba(16, 185, 129, .25); border-color: rgba(16, 185, 129, .45); }
.seo-score.score-ok { box-shadow: 0 0 24px rgba(245, 158, 11, .2); border-color: rgba(245, 158, 11, .4); }
.seo-score.score-poor { box-shadow: 0 0 24px rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .45); }
.seo-h3 { font-size: 1.1rem; color: #fff; margin: 0 0 .8rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.seo-h3 small { font-weight: 500; font-size: .8rem; }
.seo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.seo-field { background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 14px; padding: .9rem 1rem; min-width: 0; }
.seo-field.wide { grid-column: 1 / -1; }
.seo-field .label, .panel .label { display: flex; align-items: center; gap: .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; margin: 0 0 .35rem; }
.seo-field p { margin: 0; color: #e5e7eb; overflow-wrap: anywhere; }
.seo-field p.big { font-size: 1.35rem; font-weight: 700; color: #fff; }
.seo-field p.big small { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.mono { font-family: var(--mono); font-size: .88em; }
.len { font-style: normal; font-size: .72rem; letter-spacing: 0; text-transform: none; padding: .1rem .45rem; border-radius: 999px; font-weight: 700; }
.len-good { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.len-warn { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.len-bad { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.bad-text { color: #fca5a5; }
.chip { display: inline-block; font-size: .78rem; padding: .15rem .55rem; margin: 0 .2rem .25rem 0; border-radius: 999px; background: rgba(139, 92, 246, .15); color: var(--lavender-soft); border: 1px solid var(--border-violet); }
.seo-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.seo-section .panel { margin-bottom: 1rem; }
.seo-columns .panel { margin-bottom: 0; }
.seo-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.seo-issues li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border-subtle); }
.seo-issues strong { color: #fff; }
.seo-issues p { margin: .2rem 0 0; color: #cbd5e1; font-size: .9rem; }
.seo-issues .sev { flex: none; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 6px; margin-top: .1rem; }
.sev-high .sev { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.sev-medium .sev { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.sev-low .sev { background: rgba(139, 92, 246, .18); color: var(--lavender-soft); }
.seo-ok { color: #6ee7b7; margin: 0; }
.src-badge { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d1d5db; }
.src-badge.ai { background: linear-gradient(135deg, var(--purple-vivid), #db2777); color: #fff; }
.meta-options { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .5rem; }
.meta-options li { color: #fff; }
.meta-options li span { margin-right: .3rem; }
.seo-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 1rem; }
.outline { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; font-size: .9rem; }
.outline li { padding: .25rem 0; color: #e5e7eb; overflow-wrap: anywhere; }
.outline .hl { display: inline-block; min-width: 2rem; font-size: .7rem; font-weight: 800; color: var(--lavender); }
.outline .lvl-2 { padding-left: 1rem; } .outline .lvl-3 { padding-left: 2rem; } .outline .lvl-4 { padding-left: 3rem; }
.outline .lvl-5 { padding-left: 4rem; } .outline .lvl-6 { padding-left: 5rem; }
.outline .lvl-1 { font-weight: 700; color: #fff; }
.subtopics { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.subtopics li.covered span { color: #6ee7b7; }
.subtopics li.gap span { color: var(--lavender); font-weight: 800; }
.seo-more { margin-top: .8rem; }
.seo-more summary { cursor: pointer; color: var(--lavender); font-weight: 600; font-size: .9rem; }
.seo-more ul { margin: .5rem 0 0; padding-left: 1.1rem; color: #cbd5e1; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .seo-grid { grid-template-columns: 1fr 1fr; }
  .seo-columns, .seo-two { grid-template-columns: 1fr; }
  .option-wide { grid-column: auto; }
  .summary-bar:has(> div:nth-child(5)) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .seo-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   UPTIME MONITORING: dashboard, monitor detail, public status page
   ========================================================================== */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6b7280; flex: none; }
.dot-lg { width: 14px; height: 14px; vertical-align: middle; }
.dot-up { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .7); }
.dot-down { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, .8); animation: dot-pulse 1.4s ease-in-out infinite; }
.dot-paused { background: #f59e0b; }
.dot-pending { background: var(--lavender); }
@keyframes dot-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .dot-down { animation: none; } }
.mon-status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; }
.st-up { color: #86efac; } .st-down { color: #fca5a5; } .st-paused { color: #fcd34d; } .st-pending { color: var(--lavender-soft); }
.up-good { color: #86efac; } .up-warn { color: #fcd34d; } .up-bad { color: #fca5a5; } .up-none { color: var(--text-muted); }
.mon-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.mon-stat { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: var(--surface-dark); border: 1px solid var(--border-subtle); color: #e5e7eb; font-size: .9rem; }
.mon-stat strong { color: #fff; }
.mon-empty h2 { margin-top: 0; color: #fff; }
.mon-table .mon-name { min-width: 220px; max-width: 360px; }
.mon-table .mon-name a { display: block; color: #fff; font-weight: 700; text-decoration: none; }
.mon-table .mon-name a:hover { color: var(--lavender-soft); }
.mon-table .mon-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-table td small { display: block; }
.panel h2:first-child { margin-top: 0; }
.monitor-page .panel { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem 1rem; align-items: end; }
.field { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--lavender-soft); min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: #05020a; color: #fff; font: inherit; font-weight: 400; min-width: 0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--purple-neon); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.field select option:disabled { color: #6b7280; }
.field [hidden], .mon-form [hidden] { display: none !important; }
.field-actions { display: flex; align-items: end; }
.inline-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border-subtle); }
.checks { border: 0; padding: 0; margin: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; grid-column: 1 / -1; }
.checks legend { width: 100%; margin-bottom: .4rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; color: #e5e7eb; font-size: .92rem; cursor: pointer; }
.checks input { accent-color: var(--purple-neon); width: 16px; height: 16px; }
.mon-form > .btn, .mon-form > p { margin-top: .4rem; }
.btn-sm { padding: .4rem .8rem; font-size: .82rem; border-radius: 9px; }
.btn-danger { background: rgba(239, 68, 68, .14); color: #fecaca; border: 1px solid rgba(248, 113, 113, .4); }
.btn-danger:hover { background: rgba(239, 68, 68, .28); color: #fff; }
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.channel-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .75rem .9rem; border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.channel-list li > div:first-child { min-width: 0; }
.channel-list li.off { opacity: .55; }
.channel-list small { display: block; overflow-wrap: anywhere; }
.channel-list form { margin: 0; }
.channel-list .btn-row { gap: .4rem; }
.chip-live { background: rgba(245, 158, 11, .18); color: #fde68a; border-color: rgba(245, 158, 11, .4); }
.incident-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.incident-list li { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .1rem 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-dark); border: 1px solid var(--border-subtle); border-left: 3px solid #22c55e; }
.incident-list li.open { border-left-color: #ef4444; }
.incident-list li.kind-dns_change { border-left-color: #f59e0b; }
.incident-list li small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.incident-list strong { color: #fff; }
.crumbs { margin: 0 0 .8rem; }
.crumbs a { color: var(--lavender); text-decoration: none; font-weight: 600; }
.account-head h1 .dot { margin-right: .2rem; }
.mon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.mon-card { background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1rem 1.1rem; min-width: 0; }
.mon-card .label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; }
.mon-card .big { font-size: 1.7rem; font-weight: 800; margin: .2rem 0 0; }
.mon-card .big small { font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.mon-card > small { display: block; overflow-wrap: anywhere; }
.rt-chart { position: relative; }
.rt-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.rt-chart .line { stroke: var(--lavender-soft); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(139, 92, 246, .7)); }
.rt-chart .grid { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.rt-max { position: absolute; top: -.2rem; left: 0; font-size: .72rem; color: var(--text-muted); }
.rt-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); margin-top: .3rem; }
.day-bars { display: flex; gap: 2px; height: 30px; margin-top: 1rem; }
.day-bars span { flex: 1; border-radius: 3px; min-width: 2px; background: rgba(255, 255, 255, .08); }
.day-bars .b-good { background: #22c55e; } .day-bars .b-warn { background: #f59e0b; } .day-bars .b-bad { background: #ef4444; }
.day-bars.days-30 { height: 36px; gap: 3px; margin-top: .6rem; }
.mon-dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .55rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.mon-dl dt { color: var(--text-muted); font-weight: 600; }
.mon-dl dd { margin: 0; color: #e5e7eb; min-width: 0; overflow-wrap: anywhere; }
.code-block { margin: .3rem 0 .6rem; padding: .7rem .85rem; border-radius: 10px; background: #05020a; border: 1px solid var(--border-violet); color: var(--lavender-soft); font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--border-violet); display: grid; gap: .9rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.timeline li.open::before { background: #ef4444; }
.timeline li.kind-dns_change::before { background: #f59e0b; }
.timeline strong { display: block; color: #fff; }
.timeline p { margin: .2rem 0 0; color: #d1d5db; font-size: .88rem; overflow-wrap: anywhere; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid rgba(248, 113, 113, .3); background: rgba(239, 68, 68, .05); }
.danger-zone p { margin: 0; }

/* Public status page */
body.status-public { background: radial-gradient(60% 40% at 50% 0%, rgba(124, 58, 237, .25), transparent 70%), var(--bg-obsidian); min-height: 100vh; }
.status-wrap { max-width: 860px; padding-top: 3rem; padding-bottom: 3rem; }
.status-head { text-align: center; margin-bottom: 2rem; }
.status-head h1 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
.status-banner { display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.4rem; border-radius: 14px; font-weight: 700; font-size: 1.1rem; color: #fff; border: 1px solid var(--border-subtle); background: var(--surface-dark); }
.status-banner.sb-up { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .4); }
.status-banner.sb-down { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .45); }
.status-banner.sb-maint { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .4); }
.status-row { background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.status-row-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.status-row-head strong { color: #fff; overflow-wrap: anywhere; }
.status-row-foot { display: flex; justify-content: space-between; margin-top: .4rem; }
.status-lock { margin: 4rem auto; }
.status-foot { text-align: center; margin-top: 3rem; }
.status-foot a { color: var(--lavender); }
@media (max-width: 640px) {
  .mon-dl { grid-template-columns: 1fr; gap: .15rem; }
  .mon-dl dd { margin-bottom: .5rem; }
  .incident-list li { grid-template-columns: 1fr; }
  .day-bars { gap: 1px; }
  .day-bars.days-30 { gap: 2px; }
  .status-banner { font-size: 1rem; padding: .8rem 1rem; }
}

/* ==========================================================================
   MY SITES (score history), SCHEDULED RE-TESTS, COMPARE
   ========================================================================== */
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.chart-head .seo-h3 { margin: 0; }
.range-tabs { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border-subtle); }
.range-tabs a { padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.range-tabs a.active { background: var(--purple-vivid); color: #fff; }
.score-chart { display: block; width: 100%; height: auto; overflow: visible; }
.score-chart .grid { stroke: rgba(255, 255, 255, .07); }
.score-chart .band-a { stroke: rgba(34, 197, 94, .35); stroke-dasharray: 5 6; }
.score-chart .axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.score-chart .line, .sparkline .line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.score-chart .pt { stroke: #0e0a18; stroke-width: 1.5; }
.s-mobile.line { stroke: #a78bfa; filter: drop-shadow(0 0 5px rgba(139, 92, 246, .6)); } .s-mobile.pt { fill: #a78bfa; }
.s-desktop.line { stroke: #38bdf8; } .s-desktop.pt { fill: #38bdf8; }
.s-seo.line { stroke: #f472b6; stroke-dasharray: 6 4; } .s-seo.pt { fill: #f472b6; }
.s-sec.line { stroke: #fbbf24; stroke-dasharray: 2 4; } .s-sec.pt { fill: #fbbf24; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem 0 0; padding: 0; font-size: .85rem; color: #e5e7eb; }
.legend li::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: .45rem; vertical-align: middle; background: currentColor; }
.legend .s-mobile::before { background: #a78bfa; } .legend .s-desktop::before { background: #38bdf8; }
.legend .s-seo::before { background: #f472b6; } .legend .s-sec::before { background: #fbbf24; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.site-card { position: relative; background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1.1rem 1.2rem; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.site-card.picked { border-color: var(--purple-neon); box-shadow: 0 0 0 1px var(--purple-neon) inset, 0 0 24px rgba(124, 58, 237, .25); }
.site-card h3 { margin: 0 2rem .7rem 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.site-card h3 a { color: #fff; text-decoration: none; }
.site-card h3 a:hover { color: var(--lavender-soft); }
.site-pick { position: absolute; top: .9rem; right: .9rem; }
.site-pick input { width: 18px; height: 18px; accent-color: var(--purple-neon); cursor: pointer; }
.site-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; color: #fff; font-weight: 700; }
.site-scores > span { display: flex; align-items: center; gap: .35rem; }
.site-scores small { display: block; width: 100%; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; }
.site-scores > span { flex-wrap: wrap; }
.site-scores .grade-chip { width: 24px; height: 24px; font-size: .8rem; }
.sparkline { display: block; width: 100%; height: 36px; margin: .7rem 0 .3rem; }
.site-card p { margin: 0; }
.compare-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(14, 10, 24, .92); border: 1px solid var(--border-violet); backdrop-filter: blur(10px); }
.compare-bar #compare-count { margin-right: auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.compare-table th a { color: #fff; text-decoration: none; font-size: .95rem; text-transform: none; letter-spacing: 0; }
.compare-table thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; }
.compare-table td:first-child { color: var(--text-muted); white-space: nowrap; }
.compare-table td:not(:first-child) { font-weight: 600; color: #fff; }
.compare-table td.small { font-weight: 500; color: #e5e7eb; }
.compare-table tr.group th { background: rgba(139, 92, 246, .1); color: var(--lavender-soft); font-size: .72rem; }
.compare-table td.best { color: #86efac; background: rgba(34, 197, 94, .08); }
.compare-table td.best::after { content: " ★"; color: #22c55e; font-size: .8em; }
.compare-table tr.grades td { border-bottom: 1px solid var(--border-violet); }
.container.narrow { max-width: 760px; }
@media (max-width: 640px) {
  .compare-bar { justify-content: stretch; }
  .compare-bar .btn { flex: 1; }
}

/* ==========================================================================
   SECURITY HEADERS (report)
   ========================================================================== */
.sec-grade { align-items: center; gap: .5rem; }
.sec-grade strong { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 1.6rem; color: #fff; background: #dc2626; }
.sec-grade.grade-a strong { background: #059669; } .sec-grade.grade-b strong { background: #65a30d; } .sec-grade.grade-c strong { background: #d97706; } .sec-grade.grade-d strong { background: #ea580c; }
.sec-checks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.sec-checks li { display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface-dark); border: 1px solid var(--border-subtle); border-left: 3px solid #6b7280; min-width: 0; }
.sec-checks li > div { min-width: 0; }
.sec-checks li.sec-pass { border-left-color: #22c55e; } .sec-checks li.sec-warn { border-left-color: #f59e0b; } .sec-checks li.sec-fail { border-left-color: #ef4444; }
.sec-checks strong { color: #fff; }
.sec-checks p { margin: .2rem 0 0; color: #d1d5db; font-size: .9rem; }
.sec-badge { flex: none; align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #d1d5db; min-width: 62px; text-align: center; }
.sec-pass .sec-badge { background: rgba(34, 197, 94, .16); color: #86efac; }
.sec-warn .sec-badge { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.sec-fail .sec-badge { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.sec-fix { color: var(--lavender-soft) !important; }
.sec-fix span { font-weight: 700; }
.sec-value { display: block; margin-top: .4rem; font-size: .75rem; color: var(--text-muted); overflow-wrap: anywhere; }
.sec-section .table-wrap { margin-top: .6rem; }
@media (max-width: 760px) { .sec-checks { grid-template-columns: 1fr; } }

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */
.admin-tabs { margin: 0 0 1.4rem; flex-wrap: wrap; border-radius: 14px; }
.admin-kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bar-chart { display: block; width: 100%; height: auto; }
.bar-chart rect { fill: #8b5cf6; } .bar-chart.alt rect { fill: #38bdf8; } .bar-chart.warn rect { fill: #f59e0b; }
.bar-chart rect:hover { fill: #c4b5fd; }
.bar-chart .axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.bar-chart .val { fill: #e5e7eb; font-size: 10px; }
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border-subtle); color: #e5e7eb; min-width: 0; }
.kv-list li > span { min-width: 0; overflow-wrap: anywhere; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list strong { color: #fff; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-search { display: flex; gap: .5rem; }
.admin-search input { padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: #05020a; color: #fff; font: inherit; min-width: 0; width: 240px; max-width: 60vw; }
.status-chip.status-scheduled { background: rgba(139, 92, 246, .18); color: var(--lavender-soft); }
