/* SEO++ design system ---------------------------------------------------- */
:root {
  --bg: #F4F5FA; --bg-grad: radial-gradient(1200px 600px at 100% -10%, #EDE9FE 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #E0F2FE 0%, transparent 55%);
  --surface: #FFFFFF; --surface-2: #F8F9FC; --ink: #0E1530; --ink-2: #344054; --muted: #6B7280; --line: #E6E8F0; --line-2: #EEF0F6;
  --brand: #5B4BF5; --brand-2: #8B5CF6; --brand-soft: #EEEBFF;
  --accent: #F59E0B; --good: #10B981; --good-soft: #DCFCE7; --bad: #EF4444; --bad-soft: #FEE2E2; --warn: #F59E0B; --warn-soft: #FEF3C7;
  --crit: #DC2626; --high: #EA580C; --med: #D97706; --low: #64748B;
  --code: #0F172A; --code-ink: #E2E8F0;
  --r: 16px;
  --sh: 0 1px 2px rgba(16,24,40,.04), 0 6px 24px rgba(16,24,40,.06);
  --sh-lg: 0 10px 40px rgba(16,24,40,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B1020; --bg-grad: radial-gradient(1200px 600px at 100% -10%, #1E1B4B 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #0C2A3A 0%, transparent 55%);
  --surface: #121933; --surface-2: #172041; --ink: #EEF1FF; --ink-2: #C7CDE6; --muted: #8E97B8; --line: #242E52; --line-2: #1C2546;
  --brand: #7C6CFF; --brand-2: #A78BFA; --brand-soft: #241F5C; --good-soft: #0E3A2C; --bad-soft: #3D1520; --warn-soft: #3B2A0B; --code: #070B18;
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); --sh-lg: 0 10px 40px rgba(0,0,0,.45);
} }
:root[data-theme="dark"] {
  --bg: #0B1020; --bg-grad: radial-gradient(1200px 600px at 100% -10%, #1E1B4B 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #0C2A3A 0%, transparent 55%);
  --surface: #121933; --surface-2: #172041; --ink: #EEF1FF; --ink-2: #C7CDE6; --muted: #8E97B8; --line: #242E52; --line-2: #1C2546;
  --brand: #7C6CFF; --brand-2: #A78BFA; --brand-soft: #241F5C; --good-soft: #0E3A2C; --bad-soft: #3D1520; --warn-soft: #3B2A0B; --code: #070B18;
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); --sh-lg: 0 10px 40px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 19px; font-weight: 750; } h3 { font-size: 15px; font-weight: 700; } h4 { font-size: 14px; font-weight: 700; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* shell */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); border-right: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 850; font-size: 19px; letter-spacing: -.02em; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 40%, transparent); }
.logo b { color: var(--accent); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 550; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav a .cnt { margin-left: auto; font-size: 11px; background: var(--surface-2); border-radius: 99px; padding: 0 7px; color: var(--muted); font-weight: 700; }
.nav .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 11px 4px; font-weight: 700; }
.nav .brandlink img { width: 18px; height: 18px; border-radius: 5px; }
.side .new { margin: 6px 0 12px; }
.side .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 8px; color: var(--muted); font-size: 12px; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); min-height: 58px; }
.top .crumb { font-weight: 650; display: flex; align-items: center; gap: 8px; min-width: 0; }
.top .crumb img { width: 22px; height: 22px; border-radius: 6px; }
.top .crumb .sl { color: var(--muted); }
.top .grow { flex: 1; }
.page { padding: 26px 28px 80px; max-width: 1480px; margin: 0 auto; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mobilebar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobilebar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobilebar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); text-decoration: none; padding: 4px 8px; }
  .mobilebar a.on { color: var(--brand); }
  .top { padding: 10px 16px; } .page { padding: 18px 16px 90px; }
}

/* primitives */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; }
.card.pad-lg { padding: 28px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
@media (max-width: 1180px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-hero { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 11px; padding: 9px 15px; font-weight: 650; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--sh); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn.lg { padding: 13px 24px; font-size: 15px; border-radius: 13px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: progress; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

.input, .select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s, background .15s; outline: none; }
.input:focus, .select:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.input.xl { font-size: 18px; padding: 15px 16px; border-radius: 14px; }
.field { display: block; } .field > span { display: block; font-weight: 650; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-weight: 400; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.done, .pill.good { background: var(--good-soft); color: #047857; border-color: transparent; }
.pill.running { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.pill.error, .pill.interrupted, .pill.bad { background: var(--bad-soft); color: #B91C1C; border-color: transparent; }
.pill.stopped, .pill.warn { background: var(--warn-soft); color: #92400E; border-color: transparent; }
.sev { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 7px; font-size: 10.5px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .03em; width: fit-content; }
.sev.critical { background: var(--crit); } .sev.high { background: var(--high); } .sev.medium { background: var(--med); } .sev.low { background: var(--low); } .sev.info { background: #94A3B8; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 12.5px; font-weight: 550; transition: all .12s; user-select: none; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.added { opacity: .45; pointer-events: none; }
.chip b { font-weight: 800; } .chip img { width: 16px; height: 16px; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.note { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 12px; padding: 11px 14px; font-size: 13px; }
.note.info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--low); flex: none; }
.dot.ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); } .dot.live { background: var(--brand); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); } }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 650; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh); }

/* tables */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--surface-2); }
.scroll { max-height: 460px; overflow: auto; border-radius: 10px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--good); font-weight: 700; } .down { color: var(--bad); font-weight: 700; }

/* home */
.hero-band { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 32px; color: #fff; background: linear-gradient(120deg, #4338CA 0%, #6D28D9 55%, #9333EA 100%); box-shadow: var(--sh-lg); }
.hero-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); pointer-events: none; }
.hero-band h1 { font-size: 30px; color: #fff; } .hero-band p { opacity: .9; max-width: 660px; margin: 8px 0 18px; font-size: 15px; }
.hero-band .btn { background: #fff; color: #4338CA; border: 0; }
.steps-mini { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; opacity: .95; }
.steps-mini span { display: flex; align-items: center; gap: 8px; } .steps-mini i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11.5px; }
.brand-card { cursor: pointer; transition: transform .12s, box-shadow .15s; }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.bhead { display: flex; gap: 12px; align-items: center; }
.bhead img { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.metric { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.metric b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; } .metric span { font-size: 11.5px; color: var(--muted); }

/* wizard */
.wiz { max-width: 900px; margin: 0 auto; }
.stepper { display: flex; gap: 8px; margin: 6px 0 22px; }
.stepper .st { flex: 1; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.stepper .bar { height: 5px; border-radius: 9px; background: var(--line); overflow: hidden; } .stepper .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.stepper .st.done .bar i, .stepper .st.on .bar i { width: 100%; }
.stepper .lb { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; gap: 6px; align-items: center; } .stepper .st.on .lb { color: var(--brand); } .stepper .st.done .lb { color: var(--ink-2); }
.wiz .q { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.wiz .qs { color: var(--muted); margin-bottom: 22px; font-size: 14.5px; }
.site-preview { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 14px; }
.site-preview img { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); padding: 5px; border: 1px solid var(--line); }
.wiz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 10px; }
.opt { border: 2px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; transition: all .15s; background: var(--surface); }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt .t { font-weight: 750; font-size: 15px; display: flex; align-items: center; gap: 8px; } .opt p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.taginput { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); min-height: 54px; align-items: center; cursor: text; }
.taginput:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.taginput input { border: 0; outline: none; background: none; flex: 1; min-width: 200px; padding: 5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 4px 6px 4px 9px; font-size: 13px; font-weight: 550; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tag img { width: 16px; height: 16px; border-radius: 4px; } .tag small { color: var(--muted); font-weight: 400; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 3px; font-size: 16px; line-height: 1; }
.tag button:hover { color: var(--bad); }
.suggest { margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 85%, transparent), transparent); border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); }
.suggest .chip { background: var(--surface); }
.review { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; font-size: 14px; margin: 0; }
.review dt { color: var(--muted); font-weight: 600; } .review dd { margin: 0; }

/* progress */
.prog-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tl-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 9px 0; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 16px; top: 40px; bottom: -9px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--good); }
.tl-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); z-index: 1; }
.tl-item.done .tl-ic { background: var(--good); color: #fff; border-color: var(--good); }
.tl-item.now .tl-ic { background: var(--brand); color: #fff; border-color: var(--brand); animation: pulse 1.4s infinite; }
.tl-item .tt { font-weight: 700; } .tl-item .td { font-size: 12.5px; color: var(--muted); }
.tl-item.now .td { color: var(--brand); font-weight: 600; }
.log { background: var(--code); color: var(--code-ink); border-radius: 12px; padding: 14px; max-height: 340px; overflow: auto; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; margin: 0; }
.live-line { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 600; display: flex; gap: 10px; align-items: center; font-size: 13px; }

/* results */
.subnav { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 18px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh); width: fit-content; max-width: 100%; }
.subnav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 650; white-space: nowrap; display: flex; gap: 7px; align-items: center; font-size: 13.5px; }
.subnav a.on { background: var(--brand); color: #fff; }
.subnav a:hover:not(.on) { background: var(--surface-2); }
.res-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.res-head .bt { display: flex; gap: 14px; align-items: center; min-width: 0; }
.res-head img.fav { width: 48px; height: 48px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); padding: 7px; box-shadow: var(--sh); }
.res-head .meta { color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.health { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.health .after { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 180px; }
.step-up { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.step-up b { font-size: 20px; font-weight: 800; min-width: 36px; }
.step-up .bar { flex: 1; height: 8px; border-radius: 9px; background: var(--line-2); overflow: hidden; } .step-up .bar i { display: block; height: 100%; border-radius: 9px; }
.kpi { border-radius: var(--r); padding: 18px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--sh); }
.kpi::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.kpi span { font-size: 12.5px; opacity: .92; font-weight: 600; } .kpi b { display: block; font-size: 25px; font-weight: 850; letter-spacing: -.02em; margin: 4px 0 2px; } .kpi small { font-size: 12px; opacity: .9; display: block; }
.kpi.k1 { background: linear-gradient(135deg, #4F46E5, #7C3AED); } .kpi.k2 { background: linear-gradient(135deg, #059669, #10B981); } .kpi.k3 { background: linear-gradient(135deg, #EA580C, #F59E0B); } .kpi.k4 { background: linear-gradient(135deg, #0F172A, #334155); }
.scorecards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1280px) { .scorecards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .scorecards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 12px; text-align: center; cursor: pointer; transition: all .12s; box-shadow: var(--sh); }
.sc:hover { transform: translateY(-2px); border-color: var(--brand); }
.sc .n { font-size: 13px; font-weight: 700; margin-top: 4px; } .sc .s { font-size: 11.5px; color: var(--muted); }
.action { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: all .12s; }
.action + .action { margin-top: 9px; }
.action:hover { border-color: var(--brand); box-shadow: var(--sh); }
.action .num-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 850; background: var(--brand-soft); color: var(--brand); }
.action .at { font-weight: 650; } .action .am { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; align-items: center; }
.action .gain { text-align: right; } .action .gain b { color: var(--good); font-size: 15px; display: block; } .action .gain span { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.heat td.h { text-align: center; font-weight: 700; font-size: 12px; }
.gantt { display: grid; gap: 9px; }
.gantt .sp { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; font-size: 12px; }
.gantt .lane { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.gantt .lane i { display: block; height: 100%; } .lane .Dev { background: #6366F1; } .lane .SEO { background: #F59E0B; } .lane .Content { background: #10B981; }
.summary-box { border-radius: var(--r); padding: 18px 20px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--surface) 60%, transparent)); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); }
.summary-box .lead { font-size: 14.5px; line-height: 1.65; margin-top: 6px; color: var(--ink-2); }

/* findings */
.finding { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); box-shadow: var(--sh); overflow: hidden; }
.finding[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.finding > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 84px minmax(0, 1fr) 130px 180px 128px; gap: 12px; align-items: center; }
.finding > summary::-webkit-details-marker { display: none; }
@media (max-width: 1000px) { .finding > summary { grid-template-columns: 1fr; } }
.finding .body { padding: 4px 18px 18px; border-top: 1px solid var(--line-2); }
.finding .body h4 { margin: 16px 0 6px; }
.finding .body ol { padding-left: 20px; margin: 0; } .finding .body li { margin: 4px 0; }
.finding pre { background: var(--code); color: var(--code-ink); padding: 14px; border-radius: 10px; overflow: auto; font-size: 12px; max-height: 380px; margin: 0; }
.finding .ev { background: var(--surface-2); border-radius: 10px; padding: 12px; font: 12px/1.5 ui-monospace, Menlo, monospace; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.urls { font-size: 12.5px; max-height: 170px; overflow: auto; } .urls a { display: block; word-break: break-all; text-decoration: none; padding: 2px 0; }
.status-sel { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; width: 100%; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ncard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--sh); transition: transform .12s; }
.ncard:hover { transform: translateY(-2px); }
.ncard.algo { border-top: 3px solid var(--bad); }
.ncard h4 { font-size: 14.5px; line-height: 1.35; } .ncard h4 a { color: var(--ink); text-decoration: none; } .ncard h4 a:hover { color: var(--brand); }
.ncard .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.ncard .sum { font-size: 13px; color: var(--ink-2); }
.ncard ul { margin: 2px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); } .ncard .act li { color: #047857; }
.ncard.compact .sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.imp { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; color: #fff; }
.imp.high { background: var(--bad); } .imp.medium { background: var(--warn); } .imp.low { background: var(--low); }
.cat { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.conf { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: var(--bad-soft); color: #B91C1C; font-weight: 800; }
.algo-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.algo-card { min-width: 240px; max-width: 280px; scroll-snap-align: start; border-radius: 14px; padding: 14px; background: linear-gradient(160deg, var(--bad-soft), var(--surface)); border: 1px solid var(--line); font-size: 12.5px; }
.algo-card b { display: block; font-size: 14px; margin-bottom: 2px; } .algo-card .st { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.algo-ribbon { display: flex; gap: 12px; align-items: center; border-radius: 14px; padding: 12px 16px; background: linear-gradient(90deg, var(--bad-soft), transparent); border: 1px solid color-mix(in srgb, var(--bad) 20%, var(--line)); font-size: 13px; }

/* reports & settings */
.export-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.export { text-align: center; padding: 24px 16px; transition: transform .12s; display: flex; flex-direction: column; align-items: center; gap: 6px; } .export:hover { transform: translateY(-2px); }
.fi { width: 54px; height: 64px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 850; font-size: 12.5px; box-shadow: var(--sh); margin-bottom: 6px; }
.fi.docx { background: linear-gradient(160deg, #2563EB, #1D4ED8); } .fi.pdf { background: linear-gradient(160deg, #EF4444, #B91C1C); } .fi.xlsx { background: linear-gradient(160deg, #16A34A, #15803D); } .fi.pptx { background: linear-gradient(160deg, #F97316, #C2410C); }
.krow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.krow:last-child { border-bottom: 0; }
.krow .lbl { font-weight: 650; font-size: 13.5px; display: flex; gap: 8px; align-items: center; } .krow .src { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.krow .det { font-size: 11.5px; grid-column: 1 / -1; color: var(--muted); margin-top: -4px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 12px; opacity: 0; transition: all .25s; pointer-events: none; max-width: 86vw; z-index: 99; box-shadow: var(--sh-lg); font-weight: 600; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
svg text { font-family: var(--font); }
.skeleton { background: linear-gradient(90deg, var(--line-2), var(--surface-2), var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; min-height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (max-width: 640px) {
  #topRight { flex-wrap: nowrap; gap: 6px; }
  #topRight .btn { padding: 8px 10px; font-size: 0; gap: 0; }
  #topRight .btn .ico { width: 18px; height: 18px; }
  .top .crumb a, .top .crumb .sl { display: none; }
  .res-head > .muted { text-align: left !important; }
  .res-head h1 { font-size: 22px; }
  .hero-band { padding: 24px 20px; } .hero-band h1 { font-size: 24px; }
  .wiz .q { font-size: 20px; } .card.pad-lg { padding: 20px; }
  .review { grid-template-columns: 1fr; gap: 4px; } .review dd { margin-bottom: 10px; }
}

/* brand folder: its run versions */
.brand-card .versions{display:flex;flex-direction:column;gap:2px;margin:12px 0 14px;border-top:1px solid var(--line-2);padding-top:10px}
.brand-card .ver{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 8px;border-radius:8px;text-decoration:none;color:var(--ink)}
.brand-card .ver:hover{background:var(--line-2)}

/* =====================================================================
   v3 — NEON AURORA skin: vibrant, youthful, futuristic.
   Layered over the base system; layout and markup are unchanged.
   ===================================================================== */
:root {
  --violet: #7C3AED; --pink: #FF3D9A; --cyan: #00C2FF; --lime: #A3E635; --sun: #FF8A00; --mint: #10E5A5; --sky: #3B82F6;
  --brand: #7C3AED; --brand-2: #FF3D9A; --brand-soft: #F1EAFF; --accent: #FF8A00;
  --good: #0BBF7D; --good-soft: #D9FBEF; --bad: #FF3B5C; --bad-soft: #FFE3E9; --warn: #FF9F1C; --warn-soft: #FFF1DB;
  --crit: #FF2D55; --high: #FF7A00; --med: #FFB800; --low: #8A94B8;
  --bg: #F6F4FF; --surface: rgba(255,255,255,.78); --surface-2: rgba(246,243,255,.85); --line: rgba(124,58,237,.14); --line-2: rgba(124,58,237,.08);
  --ink: #120B2E; --ink-2: #3B3466; --muted: #7A74A0;
  --grad: linear-gradient(120deg, #7C3AED 0%, #FF3D9A 50%, #FF8A00 100%);
  --grad-cool: linear-gradient(120deg, #00C2FF 0%, #7C3AED 100%);
  --grad-fresh: linear-gradient(120deg, #10E5A5 0%, #00C2FF 100%);
  --grad-hot: linear-gradient(120deg, #FF3D9A 0%, #FF8A00 100%);
  --glow: 0 10px 30px rgba(124,58,237,.28), 0 2px 8px rgba(255,61,154,.18);
  --sh: 0 1px 2px rgba(18,11,46,.05), 0 8px 28px rgba(76,29,149,.08);
  --sh-lg: 0 18px 50px rgba(76,29,149,.18);
  --r: 20px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #07051A; --surface: rgba(22,16,56,.62); --surface-2: rgba(36,26,84,.55); --line: rgba(167,139,250,.18); --line-2: rgba(167,139,250,.10);
  --ink: #F4F0FF; --ink-2: #CFC6F5; --muted: #9A90C9; --brand: #A78BFA; --brand-soft: rgba(124,58,237,.22);
  --good-soft: rgba(16,229,165,.14); --bad-soft: rgba(255,59,92,.15); --warn-soft: rgba(255,159,28,.14); --code: #05030F;
  --sh: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.35); --sh-lg: 0 20px 60px rgba(0,0,0,.55);
  --glow: 0 0 0 1px rgba(167,139,250,.25), 0 10px 40px rgba(124,58,237,.45), 0 0 60px rgba(255,61,154,.18);
} }
:root[data-theme="dark"] {
  --bg: #07051A; --surface: rgba(22,16,56,.62); --surface-2: rgba(36,26,84,.55); --line: rgba(167,139,250,.18); --line-2: rgba(167,139,250,.10);
  --ink: #F4F0FF; --ink-2: #CFC6F5; --muted: #9A90C9; --brand: #A78BFA; --brand-soft: rgba(124,58,237,.22);
  --good-soft: rgba(16,229,165,.14); --bad-soft: rgba(255,59,92,.15); --warn-soft: rgba(255,159,28,.14); --code: #05030F;
  --sh: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.35); --sh-lg: 0 20px 60px rgba(0,0,0,.55);
  --glow: 0 0 0 1px rgba(167,139,250,.25), 0 10px 40px rgba(124,58,237,.45), 0 0 60px rgba(255,61,154,.18);
}

/* aurora backdrop: three slow-drifting colour fields + a faint grid */
body { background: var(--bg); background-image: none; }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .42; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #8B5CF6; top: -25vmax; right: -15vmax; }
.aurora i:nth-child(2) { background: #FF3D9A; bottom: -30vmax; left: -20vmax; opacity: .26; animation-duration: 32s; }
.aurora i:nth-child(3) { background: #00C2FF; top: 30%; left: 40%; width: 40vmax; height: 40vmax; opacity: .22; animation-duration: 38s; }
.aurora::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
@keyframes drift { to { transform: translate(-6vmax, 5vmax) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
:root[data-theme="dark"] .aurora i, :root:not([data-theme="light"]) .aurora i { mix-blend-mode: normal; }

/* type */
h1, h2, h3, .wiz .q, .logo, .kpi b, .metric b, .step-up b, .q { font-family: var(--display); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
h2 { font-weight: 700; letter-spacing: -.02em; }
.grad-text, .res-head h1, .page > .between h2, .stack > .between h2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* shell */
.side { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(22px) saturate(160%); border-right: 1px solid var(--line); }
.logo { font-size: 21px; }
.logo i { background: var(--grad); border-radius: 12px; box-shadow: var(--glow); animation: hue 9s linear infinite; }
.logo b { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes hue { 50% { filter: hue-rotate(40deg); } }
.nav a { border-radius: 12px; transition: background .15s, color .15s, transform .12s; }
.nav a:hover { transform: translateX(2px); }
.nav a.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.nav a.on .ico { stroke: #fff; }
.nav a.on .cnt { background: rgba(255,255,255,.25); color: #fff; }
.top { background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(20px) saturate(160%); }
.mobilebar { backdrop-filter: blur(20px); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.mobilebar a.on { color: var(--pink); }

/* glass cards with gradient edge on hover */
.card, .finding, .ncard, .sc, .action, .subnav, .opt, .export { background: var(--surface); backdrop-filter: blur(18px) saturate(150%); border: 1px solid var(--line); }
.card { border-radius: var(--r); }
.brand-card, .sc, .ncard, .export, .action { position: relative; }
.brand-card::before, .sc::before, .export::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; pointer-events: none; }
.brand-card:hover::before, .sc:hover::before, .export:hover::before { opacity: 1; }
.brand-card:hover, .sc:hover, .export:hover, .ncard:hover { box-shadow: var(--glow); transform: translateY(-3px); }

/* buttons */
.btn { border-radius: 12px; }
.btn.primary { background: var(--grad); background-size: 160% 160%; box-shadow: var(--glow); animation: shimmer 6s ease infinite; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(255,61,154,.38), 0 4px 14px rgba(124,58,237,.35); }
@keyframes shimmer { 50% { background-position: 100% 50%; } }
.btn.soft { background: linear-gradient(120deg, rgba(124,58,237,.12), rgba(255,61,154,.12)); color: var(--brand); }
.btn:hover { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); }
.chip.on { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(124,58,237,.3); }
.chip:hover { border-color: var(--pink); }
.seg button.on { background: var(--grad); color: #fff; }
.subnav a.on { background: var(--grad); box-shadow: var(--glow); }
.input:focus, .select:focus, .taginput:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,61,154,.14), 0 0 0 1px rgba(124,58,237,.3); }

/* hero */
.hero-band { background: linear-gradient(125deg, #5B21B6 0%, #7C3AED 30%, #DB2777 70%, #FF8A00 100%); background-size: 180% 180%; animation: shimmer 14s ease infinite; border-radius: 28px; padding: 36px 36px; box-shadow: 0 24px 70px rgba(124,58,237,.35); }
.hero-band::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hero-band::after { background: radial-gradient(circle, rgba(0,194,255,.55), transparent 65%); right: -60px; top: -100px; width: 380px; height: 380px; filter: blur(10px); }
.hero-band h1 { font-size: 36px; letter-spacing: -.035em; }
.hero-band .btn { color: #7C3AED; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.steps-mini i { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }

/* metric tiles: each a different colour */
.metric { border-radius: 14px; border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.metric::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.metrics .metric:nth-child(1)::after, .grid > .metric:nth-child(4n+1)::after { background: var(--grad-fresh); }
.metrics .metric:nth-child(2)::after, .grid > .metric:nth-child(4n+2)::after { background: var(--grad); }
.metrics .metric:nth-child(3)::after, .grid > .metric:nth-child(4n+3)::after { background: var(--grad-hot); }
.metric b { font-size: 22px; }

/* KPI cards: bold gradients with glow */
.kpi { border-radius: 22px; box-shadow: var(--sh-lg); }
.kpi::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(135deg, transparent 40%, #000); pointer-events: none; }
.kpi b { font-size: 30px; }
.kpi.k1 { background: linear-gradient(135deg, #6D28D9, #A855F7 55%, #EC4899); }
.kpi.k2 { background: linear-gradient(135deg, #059669, #10E5A5 60%, #00C2FF); }
.kpi.k3 { background: linear-gradient(135deg, #FF3D9A, #FF8A00); }
.kpi.k4 { background: linear-gradient(135deg, #0EA5E9, #6366F1 60%, #7C3AED); }

/* score cards + progress */
.sc { border-radius: 18px; }
.tl-item.done .tl-ic { background: var(--grad-fresh); border-color: transparent; box-shadow: 0 4px 14px rgba(16,229,165,.35); }
.tl-item.now .tl-ic { background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
.tl-item.done::before { background: linear-gradient(var(--mint), var(--cyan)); }
.tl-item.now .td { color: var(--pink); }
.live-line { background: linear-gradient(120deg, rgba(124,58,237,.12), rgba(255,61,154,.10)); color: var(--brand); border: 1px solid var(--line); }
.stepper .bar i { background: var(--grad); }
.step-up .bar { height: 10px; }
.summary-box { background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(255,61,154,.08) 50%, rgba(0,194,255,.10)); border: 1px solid var(--line); border-radius: 20px; }
.note.info { background: linear-gradient(120deg, rgba(0,194,255,.12), rgba(124,58,237,.10)); border-color: rgba(0,194,255,.3); }
.action .num-ic { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(124,58,237,.3); }
.action .gain b { background: var(--grad-fresh); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 17px; }

/* pills + severities */
.pill.done, .pill.good { background: var(--good-soft); color: var(--good); }
.pill.running { background: var(--grad); color: #fff; }
.sev { border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.sev.critical { background: linear-gradient(120deg, #FF2D55, #FF3D9A); } .sev.high { background: linear-gradient(120deg, #FF7A00, #FFB800); }
.sev.medium { background: linear-gradient(120deg, #FFB800, #FFD84D); color: #3A2600; } .sev.low { background: linear-gradient(120deg, #8A94B8, #A9B3D6); }
.dot.live { background: var(--pink); } .dot.ok { background: var(--mint); }

/* tables */
table.t th { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); color: var(--brand); }
table.t tbody tr:hover td { background: linear-gradient(90deg, rgba(124,58,237,.07), rgba(255,61,154,.05)); }

/* file tiles */
.fi { border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.15); transform: rotate(-4deg); transition: transform .2s; }
.export:hover .fi { transform: rotate(0) scale(1.06); }
.fi.docx { background: linear-gradient(160deg, #3B82F6, #6366F1); } .fi.pdf { background: linear-gradient(160deg, #FF3D9A, #FF2D55); }
.fi.xlsx { background: linear-gradient(160deg, #10E5A5, #0BBF7D); } .fi.pptx { background: linear-gradient(160deg, #FF8A00, #FF3D9A); }

/* brand folders */
.brand-card .ver { border-radius: 10px; }
.brand-card .ver:hover { background: linear-gradient(90deg, rgba(124,58,237,.10), rgba(0,194,255,.08)); }
.bhead img { border-radius: 12px; box-shadow: 0 4px 14px rgba(124,58,237,.18); }
.ncard.algo { border-top: 0; box-shadow: inset 0 3px 0 var(--pink), var(--sh); }
.algo-card { background: linear-gradient(160deg, rgba(255,61,154,.14), var(--surface)); }
.cat { background: linear-gradient(120deg, rgba(124,58,237,.16), rgba(0,194,255,.14)); }
#toast { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.skeleton { background: linear-gradient(90deg, rgba(124,58,237,.08), rgba(255,61,154,.12), rgba(0,194,255,.08)); background-size: 200% 100%; }
::selection { background: rgba(255,61,154,.28); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--pink)); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.page { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
.hero-band > * { position: relative; z-index: 1; }
.metric span b.tiny { display: inline-block; font-family: var(--font); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; margin-left: 6px; border-radius: 99px; background: var(--grad-fresh); color: #04241A; vertical-align: 1px; }

/* =====================================================================
   v3.1 — INTERNATIONAL TYPE + NEW-AGE CTAs
   Sora (display) + Plus Jakarta Sans (text); Noto Sans + Devanagari as
   fallbacks so keywords in Indian and other scripts render in-family.
   ===================================================================== */
:root {
  --font: 'Plus Jakarta Sans', 'Noto Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Sora', 'Plus Jakarta Sans', 'Noto Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
}
body { font-family: var(--font); font-size: 14.5px; letter-spacing: -.003em; font-feature-settings: 'ss01', 'cv11'; }
h1, h2, h3, .wiz .q, .logo, .kpi b, .metric b, .step-up b, .sc .n, .subnav a, .nav a, .card-h h3 { font-family: var(--display); }
h1 { font-weight: 700; letter-spacing: -.035em; } h2 { font-weight: 650; letter-spacing: -.025em; } h3 { font-weight: 600; letter-spacing: -.015em; }
.hero-band h1 { font-size: 40px; line-height: 1.12; font-weight: 700; }
.hero-band p { font-size: 15.5px; line-height: 1.6; }
.kpi b, .metric b { font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nav a, .subnav a { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
table.t th { font-family: var(--display); font-weight: 600; letter-spacing: .06em; font-size: 10.5px; }
.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* ---- CTAs: pill, gradient, light-sweep, sliding arrow ---- */
.btn { border-radius: 999px; padding: 10px 18px; font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.btn.sm { border-radius: 999px; padding: 7px 14px; font-size: 12.5px; }
.btn.lg { border-radius: 999px; padding: 15px 28px; font-size: 15.5px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(124,58,237,.55); }
.btn .ico { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.btn:hover .ico { transform: translateX(3px); }
.btn:hover .ico:first-child:not(:last-child) { transform: rotate(-8deg) scale(1.08); }

/* primary: animated gradient + a sweep of light on hover */
.btn.primary { background: linear-gradient(110deg, #7C3AED 0%, #C026D3 35%, #FF3D9A 65%, #FF8A00 100%); background-size: 220% 100%; background-position: 0% 50%; color: #fff; border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 28px -6px rgba(192,38,211,.55), 0 4px 12px -2px rgba(124,58,237,.35); animation: none; }
.btn.primary:hover { background-position: 100% 50%; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 18px 40px -8px rgba(255,61,154,.6), 0 6px 16px -4px rgba(124,58,237,.45); }
.btn.primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.primary { background-image: linear-gradient(110deg, #7C3AED 0%, #C026D3 35%, #FF3D9A 65%, #FF8A00 100%); }

/* secondary (default): glass with a gradient hairline edge */
.btn:not(.primary):not(.ghost):not(.soft):not(.danger) { background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)) padding-box, linear-gradient(120deg, rgba(124,58,237,.45), rgba(255,61,154,.45), rgba(0,194,255,.45)) border-box;
  border: 1.5px solid transparent; color: var(--ink); backdrop-filter: blur(12px); box-shadow: 0 4px 14px -6px rgba(76,29,149,.25); }
.btn:not(.primary):not(.ghost):not(.soft):not(.danger):hover { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #7C3AED, #FF3D9A, #00C2FF) border-box; box-shadow: 0 12px 28px -10px rgba(124,58,237,.45); color: #6D28D9; }

/* soft: tinted pill */
.btn.soft { background: linear-gradient(120deg, rgba(124,58,237,.12), rgba(255,61,154,.12)); color: #6D28D9; border: 0; }
.btn.soft:hover { background: linear-gradient(120deg, rgba(124,58,237,.2), rgba(255,61,154,.2)); box-shadow: 0 10px 24px -10px rgba(124,58,237,.45); }
.btn.ghost { border-radius: 999px; }
.btn.ghost:hover { background: rgba(124,58,237,.08); color: #6D28D9; transform: translateY(-1px); }
.btn.danger { background: rgba(255,59,92,.08); border: 1.5px solid rgba(255,59,92,.35); color: #E11D48; }
.btn.danger:hover { background: rgba(255,59,92,.14); }
.btn:disabled { transform: none; filter: saturate(.6); }

/* hero CTA: white pill, gradient label, glowing ring, arrow badge */
.hero-band .btn.lg:not(.primary):not(.ghost) { background: #fff; color: #6D28D9; font-weight: 700; border: 0; padding: 8px 10px 8px 24px; gap: 14px; box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 18px 40px -10px rgba(30,0,60,.45); }
.hero-band .btn.lg .ico { order: 2; width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: linear-gradient(120deg, #7C3AED, #FF3D9A); stroke: #fff; box-shadow: 0 6px 16px -4px rgba(255,61,154,.6); }
.hero-band .btn.lg:not(.primary):not(.ghost):hover { box-shadow: 0 0 0 8px rgba(255,255,255,.24), 0 22px 50px -12px rgba(30,0,60,.55); }
.hero-band .btn.lg:hover .ico { transform: rotate(-12deg) scale(1.06); }

/* the sidebar "New audit" + top-right CTA get full width/emphasis */
.side .new { justify-content: flex-start; padding: 12px 18px; font-size: 14px; }
.side .new .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.22); }

/* chips & segmented controls in the same language */
.chip { border-radius: 999px; font-family: var(--font); font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(124,58,237,.5); }
.seg { border-radius: 999px; padding: 4px; } .seg button { border-radius: 999px; font-family: var(--display); }
.subnav { border-radius: 999px; padding: 5px; } .subnav a { border-radius: 999px; padding: 9px 16px; }
.input, .select { border-radius: 14px; font-family: var(--font); }
.pill { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.mobilebar { background: rgba(255,255,255,.94); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px -12px rgba(76,29,149,.18); } .mobilebar a { font-family: var(--display); font-weight: 600; }

/* =====================================================================
   v4 — APPLE-STYLE: SF Pro (system font on Apple devices), #f5f5f7 canvas,
   white rounded cards, blue pill CTAs, frosted bars, quiet shadows.
   Colour is kept where Apple uses it: gradient headlines, charts, KPI tiles.
   ===================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', 'Inter', 'Noto Sans Devanagari', Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Inter', 'Noto Sans Devanagari', Helvetica, Arial, sans-serif;
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #f5f5f7; --line: #e5e5ea; --line-2: #ededf0;
  --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73;
  --brand: #0071e3; --brand-2: #0077ed; --brand-soft: #e8f2fd; --link: #0066cc;
  --good: #1d9a4c; --good-soft: #e3f6ea; --bad: #e30000; --bad-soft: #fdeaea; --warn: #b25000; --warn-soft: #fdf1e3;
  --grad: linear-gradient(90deg, #0071e3 0%, #a855f7 50%, #ff2d55 100%);
  --sh: 0 2px 8px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.05);
  --sh-lg: 0 20px 60px rgba(0,0,0,.10);
  --glow: var(--sh-lg);
  --r: 22px;
}
body { background: var(--bg) !important; font-family: var(--font); font-size: 15px; line-height: 1.47; letter-spacing: -.022em; color: var(--ink); font-feature-settings: normal; }
a { color: var(--link); }
.aurora { display: none; }
h1, h2, h3, h4, .wiz .q, .logo, .kpi b, .metric b, .step-up b, .sc .n, .subnav a, .nav a, .card-h h3, table.t th, .btn, .pill, .chip, .seg button, .mobilebar a, .eyebrow { font-family: var(--display); }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -.022em; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; letter-spacing: -.01em; }
/* Apple-style gradient headline on page titles only */
.res-head h1, .stack > .between h2 { background: linear-gradient(90deg, #0071e3, #a855f7 55%, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* shell: white sidebar, frosted top bar */
.side { background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); border-right: 1px solid rgba(0,0,0,.06); }
.logo { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.logo i { background: #1d1d1f; box-shadow: none; animation: none; border-radius: 10px; }
.logo b { background: none; -webkit-background-clip: initial; background-clip: initial; color: #0071e3; }
.nav a { border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--ink); }
.nav a:hover { background: rgba(0,0,0,.04); transform: none; }
.nav a.on { background: rgba(0,113,227,.10); color: #0071e3; box-shadow: none; }
.nav a.on .ico { stroke: #0071e3; } .nav a.on .cnt { background: rgba(0,113,227,.12); color: #0071e3; }
.nav .label { letter-spacing: .02em; text-transform: none; font-size: 12px; font-weight: 600; }
.top { background: rgba(245,245,247,.72); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.mobilebar { background: rgba(255,255,255,.86) !important; backdrop-filter: saturate(180%) blur(20px); box-shadow: none; border-top: 1px solid rgba(0,0,0,.08); }
.mobilebar a { font-weight: 500; } .mobilebar a.on { color: #0071e3; }

/* cards: white, large radius, no borders, soft shadow */
.card, .finding, .ncard, .sc, .action, .opt, .export { background: #fff; backdrop-filter: none; border: 0; box-shadow: var(--sh); }
.card { border-radius: var(--r); padding: 24px; }
.brand-card::before, .sc::before, .export::before { display: none; }
.brand-card:hover, .sc:hover, .export:hover, .ncard:hover { box-shadow: var(--sh-lg); transform: scale(1.01); }
.summary-box { background: #fff; border: 0; box-shadow: var(--sh); }
.note { border-radius: 14px; } .note.info { background: #e8f2fd; border: 0; color: #1d1d1f; }

/* CTAs — Apple pills */
.btn { border-radius: 980px; padding: 9px 20px; font-size: 14px; font-weight: 400; letter-spacing: -.016em; overflow: visible; isolation: auto; transition: background-color .2s, color .2s, opacity .2s, transform .2s; }
.btn:hover { transform: none; }
.btn:active { transform: scale(.98); opacity: .9; }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(0,125,250,.6); }
.btn .ico { width: 16px; height: 16px; } .btn:hover .ico, .btn:hover .ico:first-child:not(:last-child) { transform: none; }
.btn.primary, .btn.primary:hover { background: #0071e3; background-image: none; animation: none; box-shadow: none; color: #fff; }
.btn.primary:hover { background: #0077ed; }
.btn.primary::after { display: none; }
.btn:not(.primary):not(.ghost):not(.soft):not(.danger), .btn:not(.primary):not(.ghost):not(.soft):not(.danger):hover { background: transparent; border: 1px solid #0071e3; color: #0071e3; box-shadow: none; backdrop-filter: none; }
.btn:not(.primary):not(.ghost):not(.soft):not(.danger):hover { background: #0071e3; color: #fff; }
.btn.soft { background: rgba(0,113,227,.08); color: #0071e3; } .btn.soft:hover { background: rgba(0,113,227,.14); box-shadow: none; }
.btn.ghost { color: var(--link); } .btn.ghost:hover { background: rgba(0,0,0,.04); color: var(--link); transform: none; }
.btn.ghost::after { content: ' ›'; }
.btn.danger { background: transparent; border: 1px solid #e30000; color: #e30000; }
.btn.lg { padding: 12px 24px; font-size: 17px; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.side .new { justify-content: center; padding: 10px 18px; font-size: 14px; } .side .new .ico { background: none; padding: 0; width: 16px; height: 16px; }

/* hero: Apple product-banner — black, centred, gradient headline */
.hero-band { background: #000; animation: none; border-radius: 28px; padding: 56px 40px; text-align: center; box-shadow: none; }
.hero-band::before, .hero-band::after { display: none; }
.hero-band h1 { font-size: 48px; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(90deg, #2997ff, #a855f7 50%, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 820px; margin: 0 auto; }
.hero-band p { color: #a1a1a6; opacity: 1; font-size: 19px; line-height: 1.42; margin: 14px auto 24px; max-width: 700px; }
.hero-band .btn.lg:not(.primary):not(.ghost) { background: #0071e3; color: #fff; padding: 12px 26px; gap: 8px; box-shadow: none; font-weight: 400; border: 0; }
.hero-band .btn.lg:not(.primary):not(.ghost):hover { background: #0077ed; box-shadow: none; }
.hero-band .btn.lg .ico { order: 0; width: 18px; height: 18px; padding: 0; background: none; box-shadow: none; stroke: #fff; }
.steps-mini { justify-content: center; color: #f5f5f7; font-size: 14px; }
.steps-mini i { background: #1d1d1f; box-shadow: inset 0 0 0 1px #424245; color: #f5f5f7; }

/* metrics + KPI tiles */
.metric { background: #f5f5f7; border: 0; border-radius: 16px; }
.metric::after { display: none; }
.metric b { font-weight: 600; font-size: 24px; letter-spacing: -.025em; }
.metric span b.tiny { background: rgba(29,154,76,.12); color: #1d9a4c; font-family: var(--display); }
.kpi { border-radius: 22px; box-shadow: none; }
.kpi::before { display: none; } .kpi::after { opacity: .5; }
.kpi b { font-weight: 600; font-size: 30px; }
.kpi.k1 { background: linear-gradient(135deg, #0071e3, #5e5ce6); } .kpi.k2 { background: linear-gradient(135deg, #1d9a4c, #30d158); }
.kpi.k3 { background: linear-gradient(135deg, #ff9f0a, #ff375f); } .kpi.k4 { background: linear-gradient(135deg, #1d1d1f, #48484a); }

/* segmented controls, tabs, chips — Apple style */
.subnav { background: rgba(0,0,0,.05); border: 0; box-shadow: none; border-radius: 12px; padding: 3px; backdrop-filter: none; }
.subnav a { border-radius: 9px; font-weight: 500; font-size: 13.5px; color: var(--ink); padding: 7px 14px; }
.subnav a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); }
.subnav a:hover:not(.on) { background: rgba(0,0,0,.04); }
.seg { background: rgba(0,0,0,.05); border: 0; border-radius: 10px; }
.seg button { border-radius: 8px; font-weight: 500; color: var(--ink); } .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chip { background: #fff; border: 1px solid #d2d2d7; font-weight: 400; box-shadow: none; }
.chip:hover { border-color: #0071e3; transform: none; box-shadow: none; }
.chip.on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; box-shadow: none; }
.input, .select, .taginput { background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; }
.input:focus, .select:focus, .taginput:focus-within { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.18); }
.pill { font-weight: 500; letter-spacing: -.01em; }
.pill.running { background: rgba(0,113,227,.1); color: #0071e3; }
.stepper .bar i { background: #0071e3; }
.opt.on { border: 2px solid #0071e3; background: #f5f9ff; }

/* progress, tables, misc */
.tl-item.done .tl-ic { background: #1d9a4c; box-shadow: none; } .tl-item.now .tl-ic { background: #0071e3; box-shadow: 0 0 0 6px rgba(0,113,227,.15); }
.tl-item.done::before { background: #1d9a4c; } .tl-item.now .td { color: #0071e3; }
.live-line { background: #f5f5f7; color: var(--ink); border: 0; }
table.t th { background: #fff; color: var(--muted); text-transform: none; letter-spacing: -.01em; font-size: 12px; font-weight: 600; backdrop-filter: none; }
table.t tbody tr:hover td { background: #f5f5f7; }
.action .num-ic { background: #f5f5f7; color: var(--ink); box-shadow: none; }
.action .gain b { background: none; color: #1d9a4c; -webkit-background-clip: initial; background-clip: initial; }
.sev { box-shadow: none; border-radius: 6px; font-weight: 600; }
.sev.critical { background: #ff3b30; } .sev.high { background: #ff9500; } .sev.medium { background: #ffcc00; color: #1d1d1f; } .sev.low { background: #8e8e93; }
.fi { transform: none; border-radius: 12px; box-shadow: none; } .export:hover .fi { transform: scale(1.05); }
.fi.docx { background: #0071e3; } .fi.pdf { background: #ff3b30; } .fi.xlsx { background: #1d9a4c; } .fi.pptx { background: #ff9500; }
.bhead img { box-shadow: none; border: 1px solid #e5e5ea; }
.brand-card .ver:hover { background: #f5f5f7; }
#toast { background: rgba(29,29,31,.92); backdrop-filter: blur(20px); box-shadow: var(--sh-lg); }
.skeleton { background: linear-gradient(90deg, #ededf0, #f5f5f7, #ededf0); background-size: 200% 100%; }
::selection { background: rgba(0,113,227,.2); }
::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.page { animation: fade .45s ease; max-width: 1280px; }
/* light hero (user: keep it light) — Apple's white product-banner variant */
.hero-band { background: #fff; box-shadow: var(--sh); }
.hero-band p { color: #6e6e73; }
.hero-band h1 { background: linear-gradient(90deg, #0071e3, #a855f7 50%, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps-mini { color: #1d1d1f; opacity: 1; }
.steps-mini i { background: #f5f5f7; box-shadow: none; color: #1d1d1f; }
.subnav { scrollbar-width: none; } .subnav::-webkit-scrollbar { display: none; }
.mobilebar { background: rgba(255,255,255,.95) !important; }

/* keyword portfolio */
.pb { display: inline-block; min-width: 30px; text-align: center; padding: 2px 8px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 12px; white-space: nowrap; }
.pb.g { background: #e3f6ea; color: #1d7a3d; } .pb.b { background: #e8f2fd; color: #0066cc; } .pb.o { background: #fff1dc; color: #a35200; } .pb.r { background: #fdeaea; color: #c4001d; } .pb.car { background: #f3e8ff; color: #7e22ce; }
.minibar { position: relative; height: 18px; min-width: 110px; background: #f5f5f7; border-radius: 999px; overflow: hidden; }
.minibar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #0071e3, #bf5af2); border-radius: 999px; }
.minibar span { position: relative; z-index: 1; font-size: 11px; font-weight: 600; padding-left: 8px; line-height: 18px; color: #1d1d1f; mix-blend-mode: normal; }
tr.click { cursor: pointer; } tr.sel td { background: #e8f2fd !important; }
.pcard h3 { font-size: 18px; }
.pcard .spark { flex: none; }
.ev-list { padding-left: 16px; margin: 4px 0; } .ev-list li { margin: 4px 0; }
#pfSeg { flex-wrap: wrap; }
details > summary { cursor: pointer; }

.nar-fall { border-left: 4px solid #ff375f; }
.nar-fall h4 { margin: 0 0 4px; }
