/* === CrawlReady shared components (single source) === */
/* ==========================================================================
   CrawlReady shared component stylesheet — single source of truth for:
   design tokens, base type, header/nav/footer + hamburger, buttons,
   content primitives, auth screens, report modules, GBP/NAP tools,
   competitor compare, admin panels.
   build.py stamps this in front of each property's own stylesheet at
   build time: dist/*.css = components/shared.css + <site>/<site>.css
   Brand: teal #1e5f7b (primary), orange #ff7e00 (secondary). NO BLUE.
   ========================================================================== */

:root {
  color-scheme: light;
  --teal: #1e5f7b;
  --teal-dark: #164a61;
  --teal-ink: #0f3c50;
  --orange: #ff7e00;
  --orange-dark: #e56f00;
  --ink: #1a2b33;
  --muted: #5a6f78;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-sage: #eef3f1;
  --border: #dde5e8;
  --red: #c0392b;
  --red-bg: #fde8e8;
  --amber: #b7791f;
  --amber-bg: #fef3e2;
  --green: #1e7e34;
  --green-bg: #e6f4ea;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ---------- Header / nav / hamburger ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.home-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.home-icon-link svg { width: 22px; height: 22px; }
.home-icon-link:hover { color: var(--teal); background: var(--bg-soft); }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.brand-word { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; color: var(--teal); }
.brand-word em { font-style: normal; color: var(--orange); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 15px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { background: var(--orange); color: #fff !important; padding: 10px 22px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--orange-dark); }
.nav-toggle { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--teal); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* slim app header (logo + token pill + auth nav) */
.app-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.app-header-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.app-head-right { display: flex; align-items: center; gap: 14px; }
.token-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--teal); }
.token-pill svg { width: 15px; height: 15px; color: var(--orange); }
.token-pill a { color: var(--orange-dark); font-weight: 700; }
.admin-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: var(--teal-ink); color: #fff; padding: 6px 14px; border-radius: 999px; }

/* auth pages: logo only */
body.auth-page .token-pill, body.auth-page .admin-tag,
body.auth-page .site-nav, body.auth-page .hamburger { display: none !important; }
body.admin-mode .nav-app, body.admin-mode .token-pill { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: #cfe0e7; margin-top: 72px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 28px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-mark { color: var(--orange); }
.footer-brand p { margin-top: 10px; font-size: 14.5px; color: #9fb8c2; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { font-size: 14.5px; color: #cfe0e7; }
.footer-nav a:hover { color: #fff; }
.footer-fine { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 16px 24px; font-size: 13px; color: #9fb8c2; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; border: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-orange:disabled { opacity: .55; cursor: not-allowed; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Content primitives ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 620px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.page-hero { padding: 64px 0 24px; }

/* ---------- Severity / impact badges ---------- */
.sev { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 12px; border-radius: 999px; margin-left: 10px; vertical-align: 2px; }
.sev-high { background: var(--red-bg); color: var(--red); }
.sev-med { background: var(--amber-bg); color: var(--amber); }
.sev-low { background: var(--green-bg); color: var(--green); }
.severity { flex-shrink: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 6px; margin-top: 2px; }

/* ---------- Auth screens ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-soft); min-height: calc(100vh - 120px); }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 40px; width: 100%; max-width: 440px; box-shadow: 0 12px 40px rgba(30,95,123,.08); }
.auth-card h1 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-error { display: none; background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.field { position: relative; margin-bottom: 18px; }
.field input { width: 100%; padding: 24px 16px 10px; border: 2px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; transition: border-color .15s; background: #fff; font-family: inherit; }
.field input:focus { border-color: var(--teal); }
.field label { position: absolute; left: 16px; top: 16px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .15s ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 600; color: var(--teal); }
.show-pw { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 2px 0 18px; cursor: pointer; user-select: none; }
.show-pw input { width: 16px; height: 16px; accent-color: var(--teal); }
.auth-btn { display: block; width: 100%; padding: 15px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; border: none; text-align: center; background: var(--orange); color: #fff; margin-top: 8px; }
.auth-btn:hover { background: var(--orange-dark); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; border: 2px solid var(--border); color: var(--ink); }
.btn-google:hover { border-color: #bbb; }
.btn-google svg { width: 20px; height: 20px; }
.switch { text-align: center; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.switch a { color: var(--teal); font-weight: 600; }

/* ---------- Report ---------- */
.report-wrap { max-width: 880px; margin: 0 auto; padding: 36px 24px 80px; }
.score-hero { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; margin-bottom: 24px; }
.score-hero .url { font-size: 15px; color: var(--muted); }
.score-hero .date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--ringc, var(--orange)) 0% var(--pct, 0%), #e8eef0 var(--pct, 0%) 100%); }
.score-ring .inner { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.score-ring .num { font-size: 44px; font-weight: 800; line-height: 1; }
.score-ring .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.verdict { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.verdict-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 15.5px; }
.section-label { font-size: 22px; font-weight: 800; margin: 40px 0 6px; letter-spacing: -0.3px; }
.section-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 8px; }
.cat-chip { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.cat-chip .s { font-size: 20px; font-weight: 800; }
.cat-chip .n { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.viz-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.viz-card h3 { font-size: 17px; margin-bottom: 4px; }
.viz-card .viz-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
/* horizontal bar chart */
.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hbar-row:last-child { margin-bottom: 0; }
.hbar-name { flex: 0 0 150px; font-size: 13.5px; font-weight: 600; text-align: right; }
.hbar-track { flex: 1; background: #eef2f3; border-radius: 999px; height: 22px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; }
.hbar-fill.teal { background: var(--teal); }
.hbar-fill.orange { background: var(--orange); }
.hbar-fill.red { background: var(--red); }
.hbar-score { flex: 0 0 34px; font-size: 14px; font-weight: 800; text-align: right; }
/* vertical bar chart (local stacking) */
.vbar-chart { display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: 220px; padding-top: 30px; }
.vbar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; max-width: 110px; }
.vbar-score { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.vbar { width: 100%; border-radius: 8px 8px 0 0; }
.vbar.teal { background: var(--teal); }
.vbar.gray { background: #b9c8cd; }
.vbar.orange { background: var(--orange); }
.vbar-name { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.35; min-height: 32px; }
.vbar-name strong { color: var(--ink); }
/* ranked fix cards */
.rank-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 28px; margin-bottom: 16px; display: flex; gap: 20px; }
.rank-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.rank-card.impact-high .rank-num { background: var(--orange); }
.rank-body { flex: 1; min-width: 0; }
.rank-body h3 { font-size: 18px; margin-bottom: 2px; }
.rank-cat { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; margin-bottom: 10px; }
.rank-body .why { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.fix { background: var(--bg-soft); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14.5px; }
.fix strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--teal); margin-bottom: 6px; }
.fix code, .snippet code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.snippet { background: var(--teal-ink); color: #d9e8ee; border-radius: 8px; padding: 14px 18px; margin-top: 10px; overflow-x: auto; white-space: pre; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.report-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.callout-note { background: #eef5f8; border: 1px solid #cfe0e8; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--ink); margin-bottom: 18px; }
.callout-note strong { color: var(--teal); }

/* ---------- GBP checklist ---------- */
.meter-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.meter-label { font-size: 14px; font-weight: 700; color: var(--teal); }
.meter-count { font-size: 14px; font-weight: 700; color: var(--ink); }
.meter-bar { height: 10px; background: #e8eef0; border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; width: 0%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.gbp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px 16px; margin-bottom: 16px; }
.gbp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.gbp-row:last-child { border-bottom: none; }
.gbp-q { font-size: 15px; font-weight: 600; }
.gbp-q small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.yn-toggle { display: flex; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.yn-toggle button { border: none; background: #fff; padding: 8px 20px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted); }
.yn-toggle button:first-child { border-right: 2px solid var(--border); }
.yn-toggle button.on-yes { background: var(--green-bg); color: var(--green); }
.yn-toggle button.on-no { background: var(--red-bg); color: var(--red); }
.gbp-fix { display: none; background: #fff8f2; border: 1px solid #f3d9b8; border-radius: 10px; padding: 14px 18px; margin: 4px 0 12px; font-size: 14px; }
.gbp-fix.show { display: block; }
.gbp-fix strong { color: var(--orange-dark); }
.gbp-fix ol, .gbp-fix ul { margin: 8px 0 0 20px; }
.gbp-fix li { margin-bottom: 6px; }

/* ---------- NAP consistency check ---------- */
.consist-grid { display: grid; grid-template-columns: 130px 1fr 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 18px; }
.consist-grid .cg-head { background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; }
.consist-grid .cg-label { background: var(--bg-soft); font-size: 14px; font-weight: 700; padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; }
.consist-grid .cg-cell { padding: 8px 10px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.consist-grid input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink); }
.consist-grid input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.consist-result-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.consist-result-row:last-child { border-bottom: none; }
.cr-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.cr-icon svg { width: 14px; height: 14px; }
.cr-pass { background: var(--green-bg); } .cr-pass svg { stroke: var(--green); }
.cr-fail { background: var(--red-bg); } .cr-fail svg { stroke: var(--red); }
.cr-empty { background: var(--bg-soft); } .cr-empty svg { stroke: var(--muted); }
#consist-results { display: none; }
#consist-results.show { display: block; }
.consist-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Competitor compare ---------- */
.compare-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.compare-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.compare-note strong { color: var(--orange-dark); }
.comp-add { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.comp-add input { flex: 1; min-width: 200px; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; }
.comp-add input:focus { outline: none; border-color: var(--teal); }
.comp-add select { border: 2px solid var(--border); border-radius: 999px; padding: 12px 16px; font-size: 14px; font-family: inherit; color: var(--muted); max-width: 220px; }
.comp-list { list-style: none; margin-bottom: 18px; }
.comp-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.comp-list li:last-child { border-bottom: none; }
.comp-list .comp-status { font-size: 13px; color: var(--muted); }
.comp-list .comp-status.scanning { color: var(--orange-dark); font-weight: 600; }
.comp-list .comp-status.done { color: var(--green); font-weight: 700; }
.comp-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ---------- Scan history ---------- */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: inherit; }
.hist-row:hover { border-color: var(--teal); }
.hist-score { font-size: 26px; font-weight: 800; min-width: 64px; text-align: center; }
.hist-score.hist-queued, .hist-score.hist-running { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.hist-score.hist-error { font-size: 13px; font-weight: 600; color: var(--red); }
.hist-url { flex: 1; font-size: 16px; font-weight: 600; }
.hist-date { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hist-arrow { color: var(--teal); font-size: 20px; }

/* ---------- Settings ---------- */
.settings-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.settings-card h2 { font-size: 18px; margin-bottom: 14px; }
.settings-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.settings-row:last-child { border-bottom: none; }
.settings-label { min-width: 140px; color: var(--muted); }
.field-label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
.field-input { width: 100%; max-width: 380px; border: 2px solid var(--border); border-radius: 12px; padding: 11px 16px; font-size: 15px; font-family: inherit; }
.field-input:focus { outline: none; border-color: var(--teal); }
.pw-ok { color: var(--green); font-weight: 600; font-size: 14px; margin: 10px 0; }

/* ---------- Billing & invoices ---------- */
.inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.inv-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.inv-meta { text-align: right; display: flex; flex-direction: column; gap: 8px; }
.inv-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 20px; }
.inv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--border); }
.inv-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); }
.inv-total { display: flex; justify-content: space-between; font-size: 18px; padding: 12px 8px; }
.invoice-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-top: 16px; }
@media print {
  .app-header, .report-actions, #invoice-back, .btn-link { display: none !important; }
  .invoice-card { border: none; padding: 0; }
}
.step-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.comp-add-row { display: flex; gap: 10px; margin: 18px 0 6px; }
.comp-add-row input { flex: 1; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; }
.comp-add-row input:focus { outline: none; border-color: var(--teal); }
.comp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.comp-item .comp-remove { font-size: 20px; text-decoration: none; line-height: 1; padding: 4px 8px; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.btn-link { background: none; border: none; color: var(--teal); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 8px 0; }
.btn-link:hover { text-decoration: underline; }
.skip-row { text-align: center; margin-top: 10px; }

/* ---------- Scan progress steps (Siftly-style) ---------- */
.pulse-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.scan-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.scan-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--muted); }
.scan-steps li .st-ic { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.scan-steps li.done { color: var(--ink); }
.scan-steps li.done .st-ic { color: var(--green); }
.scan-steps li.active { color: var(--ink); font-weight: 600; }
.scan-steps li.active .st-ic { color: var(--orange-dark); }
.scan-steps li.active .st-ic .mini-spin { width: 16px; height: 16px; border: 2.5px solid var(--border); border-top-color: var(--orange-dark); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-steps li.todo .st-ic { color: var(--border); }
.scan-progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.scan-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--orange)); border-radius: 999px; transition: width .6s ease; }
.scan-progress-label { font-size: 13px; color: var(--muted); }

/* ---------- Local query test ---------- */
.query-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.query-row { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.query-row:last-child { border-bottom: none; }
.query-row .q { font-weight: 700; display: block; margin-bottom: 2px; }
.query-row .a { color: var(--muted); }
.query-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.query-ic svg { width: 14px; height: 14px; }
.query-ic.bad { background: var(--red-bg); } .query-ic.bad svg { stroke: var(--red); }
.query-ic.good { background: var(--green-bg); } .query-ic.good svg { stroke: var(--green); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }
.admin-wrap h1 { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 6px; }
.admin-sub { color: var(--muted); margin-bottom: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat .v { font-size: 32px; font-weight: 800; color: var(--teal); }
.stat .l { font-size: 13px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; overflow-x: auto; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.panel table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.panel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); }
.panel td { padding: 10px; border-bottom: 1px solid var(--bg-soft); }
.panel tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.tag.ok { background: var(--green-bg); color: var(--green); }
.tag.err { background: var(--red-bg); color: var(--red); }
.tag.warn { background: var(--amber-bg); color: var(--amber); }
.delta-pos { color: var(--green); font-weight: 700; }
.delta-neg { color: var(--red); font-weight: 700; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.inline-form input[type="email"] { flex: 1 1 260px; max-width: 340px; }
.inline-form input[type="number"] { width: 110px; }
.inline-form input { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; }
.inline-form input:focus { outline: none; border-color: var(--teal); }
.inline-form .btn { padding: 12px 24px; font-size: 15px; }
.form-msg { font-size: 14px; font-weight: 600; color: var(--muted); }
.form-msg.form-ok { color: var(--green); }
.form-msg.form-err { color: var(--red); }
.admin-login-row { display: flex; align-items: center; gap: 12px; }

/* ---------- Service-unavailable / empty states ---------- */
.service-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 560px; margin: 80px auto; }
.service-card h1 { font-size: 26px; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Nav dropdown (Resources) ---------- */
.nav-drop { position: relative; }
.nav-drop-btn { font-size: 15px; color: var(--muted); font-weight: 500; cursor: default; white-space: nowrap; }
.nav-drop-btn:hover { color: var(--teal); }
.nav-drop-btn .caret { font-size: 11px; }
.nav-drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 260px; box-shadow: 0 16px 40px rgba(30,95,123,.12); z-index: 60; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15px; }
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu a strong { display: block; font-size: 15px; }
.nav-drop-menu a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hamburger { display: flex; }
  .header-inner, .app-header-inner { position: relative; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); gap: 0; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .section { padding: 52px 0; }
  .token-pill { padding: 6px 12px; font-size: 13px; }
  /* dropdown becomes an inline section on mobile */
  .nav-drop-btn { display: block; padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; color: var(--ink); font-weight: 700; cursor: default; }
  .nav-drop-btn .caret { display: none; }
  .nav-drop-menu { display: block; position: static; transform: none; border: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-drop-menu a { border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .rank-card { padding: 20px; gap: 14px; }
  .hbar-name { flex: 0 0 108px; font-size: 12px; }
  .vbar-chart { gap: 10px; height: 190px; }
  .vbar-name { font-size: 10px; }
  .gbp-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .consist-grid { grid-template-columns: 1fr; }
  .consist-grid .cg-head { display: none; }
  .consist-grid .cg-label { border-left: none; }
  .consist-grid .cg-cell { border-left: none; }
  .consist-grid .cg-cell::before { content: attr(data-src); display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 36px 28px; }
}

/* === app property styles === */
/* CrawlReady app + admin site-specific styles.
   Shared system (tokens, app header, buttons, report modules, auth, admin
   panels) comes from components/shared.css, prepended at build time. */

body { background: var(--bg-soft); }

/* wizard */
.wizard { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.wizard h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -1px; text-align: center; margin-bottom: 10px; }
.wizard .sub { text-align: center; color: var(--muted); margin-bottom: 32px; }
.url-row { display: flex; border: 2px solid var(--border); border-radius: 999px; background: #fff; overflow: hidden; }
.url-row:focus-within { border-color: var(--teal); }
.url-row input { flex: 1; border: none; outline: none; padding: 16px 24px; font-size: 16px; min-width: 0; background: transparent; font-family: inherit; }
.url-row button { border: none; background: var(--orange); color: #fff; font-weight: 600; font-size: 16px; padding: 16px 34px; cursor: pointer; font-family: inherit; }
.url-row button:hover { background: var(--orange-dark); }
.url-row button:disabled { opacity: .55; cursor: not-allowed; }
.url-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.url-error { display: none; text-align: center; color: var(--red); font-size: 14.5px; margin-top: 12px; }

/* progress */
.progress-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; }
.progress-card .spin { width: 46px; height: 46px; border: 4px solid var(--border); border-top-color: var(--orange); border-radius: 50%; margin: 0 auto 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-card p { color: var(--muted); }
.checks-line { margin-top: 18px; font-size: 14px; color: var(--teal); font-weight: 600; min-height: 22px; }

/* paywall */
.paywall-card { background: #fff; border: 2px solid var(--orange); border-radius: 16px; padding: 40px; text-align: center; }
.paywall-card h2 { font-size: 24px; margin-bottom: 8px; }
.paywall-card p { color: var(--muted); margin-bottom: 24px; }

/* recent scans */
.recent-block { margin-top: 48px; }
.recent-block h2 { font-size: 20px; text-align: left; margin-bottom: 4px; }
.recent-block p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.recent-list { list-style: none; }
.recent-list li { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.recent-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14.5px; }
.recent-list .r-url { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list .r-meta { font-size: 12.5px; color: var(--muted); flex: none; }

/* tokens page */
.tokens-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 720px; margin: 0 auto; text-align: center; }
.tokens-card .big { font-size: 56px; font-weight: 800; color: var(--teal); }
.pack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.pack { border: 2px solid var(--border); border-radius: 12px; padding: 22px 14px; }
.pack .t { font-weight: 700; color: var(--teal); }
.pack .p { font-size: 26px; font-weight: 800; margin: 6px 0 12px; }

@media (max-width: 720px) {
  .pack-row { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; border-radius: 16px; }
  .url-row input { border-radius: 16px 16px 0 0; }
  .url-row button { border-radius: 0 0 14px 14px; }
}
