/* =====================================================================
   New Business Radar - 2026 theme
   Fonts: Geist (interface) + Instrument Serif (display accents)
   Colors: ink + electric violet, with a mint accent; aurora glow in hero
   ===================================================================== */
:root, [data-theme="light"] {
  --bg: #f6f5fb;
  --bg-2: #efedf8;
  --surface: #ffffff;
  --surface-2: #f4f2fb;
  --text: #0e0c1d;
  --muted: #615d78;
  --border: #e4e1f1;
  --accent: #5b47f5;
  --accent-strong: #4330e0;
  --accent-soft: #ebe8ff;
  --accent-text: #ffffff;
  --mint: #12c99b;
  --mint-soft: #d9f8ee;
  --amber-soft: #fff1d6;
  --amber-text: #8a5300;
  --shadow: 0 1px 2px rgba(20, 16, 60, .04), 0 8px 28px rgba(40, 30, 120, .07);
  --shadow-lg: 0 24px 60px rgba(50, 35, 160, .14);
  --radius: 18px;
  --hero-ink: #0e0c1d;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #08070f;
  --bg-2: #0e0c1a;
  --surface: #121022;
  --surface-2: #19162d;
  --text: #f1effa;
  --muted: #a29dc0;
  --border: #262241;
  --accent: #8b7bff;
  --accent-strong: #a597ff;
  --accent-soft: #221d47;
  --accent-text: #0b0920;
  --mint: #36e2b4;
  --mint-soft: #0f3329;
  --amber-soft: #3a2a0c;
  --amber-text: #ffcf75;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --hero-ink: #f1effa;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15.5px/1.6 "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .25s, color .25s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: 1.45rem; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.01em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.section { padding: 44px 22px; }
.muted { color: var(--muted); margin: 0; }
.small-text { font-size: .84rem; }
.section-lead { margin: -2px 0 16px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff;
  background: conic-gradient(from 210deg, #5b47f5, #12c99b, #8b7bff, #5b47f5); box-shadow: 0 6px 18px rgba(91, 71, 245, .35); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); font-weight: 500; padding: 7px 11px; border-radius: 10px; font-size: .93rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; cursor: pointer; margin-left: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.theme-toggle:hover { border-color: var(--accent); }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { display: none; }

/* ---------- hero with aurora glow ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; color: var(--hero-ink); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: -1;
  background:
    radial-gradient(40% 55% at 18% 30%, rgba(91, 71, 245, .30), transparent 70%),
    radial-gradient(35% 45% at 78% 20%, rgba(18, 201, 155, .24), transparent 70%),
    radial-gradient(30% 40% at 60% 75%, rgba(255, 140, 200, .16), transparent 70%);
  filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 900px; letter-spacing: -.045em; font-weight: 700; }
.hero h1 .serif { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 600; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--border); color: var(--muted); box-shadow: var(--shadow); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.eyebrow.dark { color: var(--accent); }
.lead { font-size: 1.18rem; max-width: 640px; color: var(--muted); margin: 0 0 30px; }
.lead.dark { color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; max-width: 900px; }
.stat { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
.stat-label { font-size: .84rem; color: var(--muted); }

/* ---------- bento & cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .full { grid-column: span 6; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tile .big { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--accent-soft); margin-bottom: 12px; }
.country { margin-top: 20px; }
.country-name { font-size: 1.2rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.region { margin: 20px 0 8px; }
.region-name { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow-lg); }
.city-card { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.city-card:hover { color: var(--text); }
.card-title { font-weight: 650; }
.card-num { font-size: 2.1rem; font-weight: 700; letter-spacing: -.035em;
  background: linear-gradient(120deg, var(--accent), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-meta { font-size: .8rem; color: var(--muted); }
.card-accent::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--mint); }

/* ---------- chips, segments, tabs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .87rem; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip-active, .chip-active:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip-count { font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.chip-active .chip-count, .seg.on .chip-count { background: rgba(255, 255, 255, .22); color: inherit; }
.contact-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.seg { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .87rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.seg:hover { border-color: var(--accent); color: var(--text); }
.seg.on, .seg.on:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.city-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  width: fit-content; margin: 16px 0 6px; flex-wrap: wrap; }
.city-tabs a { padding: 8px 15px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.city-tabs a:hover { color: var(--text); }
.city-tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 6px; margin: 14px 0 12px; }
.tab { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; }
.tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 12px; font-weight: 600;
  font-size: .9rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  font-family: inherit; transition: transform .12s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--mint)));
  border-color: transparent; color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
[data-theme="dark"] .btn-primary { color: #0b0920; }
.btn-primary:hover { color: #fff; filter: brightness(1.05); border-color: transparent; }
[data-theme="dark"] .btn-primary:hover { color: #0b0920; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .79rem; border-radius: 9px; }
.btn-wide { width: 100%; justify-content: center; }
.btn-danger { color: #e0294a; }
.btn-danger:hover { border-color: #e0294a; color: #e0294a; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* ---------- pages & tables ---------- */
.page-head { padding-top: 30px; padding-bottom: 4px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin: 16px 0; flex-wrap: wrap; }
.search input { width: 290px; max-width: 100%; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  background: var(--surface-2); padding: 12px 14px; position: sticky; top: 0; font-weight: 600; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: top; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
table.data.compact td, table.data.compact th { padding: 8px 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.tag-soon { background: var(--amber-soft); color: var(--amber-text); }
.tag-bad { background: #ffe1e6; color: #b3132f; }
[data-theme="dark"] .tag-bad { background: #3f1520; color: #ff9fb0; }
.tag-ok { background: var(--mint-soft); color: color-mix(in srgb, var(--mint) 60%, #063); }
[data-theme="dark"] .tag-ok { color: var(--mint); }
.verified { color: var(--mint); font-weight: 700; font-size: .8rem; margin-left: 4px; }
.biz-link { color: var(--text); }
.biz-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.biz-link .ext { color: var(--accent); font-size: .8em; }
.muted-link .ext { opacity: .55; }
.contact-icons span { opacity: .18; filter: grayscale(1); margin-right: 3px; font-size: 1rem; }
.contact-icons span.on { opacity: 1; filter: none; }
.source { font-size: .8rem; color: var(--muted); margin: 14px 0 44px; }
.empty { padding: 30px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- calls to action, newsletter, testimonials ---------- */
.cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px 32px; box-shadow: var(--shadow); }
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.cta p { margin: 0; color: var(--muted); }
.cta.small { margin-top: 16px; padding: 18px 22px; border-radius: var(--radius); }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.newsletter input, .newsletter select { width: auto; flex: 1; min-width: 180px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quote p { font-family: "Instrument Serif", Georgia, serif; font-size: 1.3rem; line-height: 1.35; margin: 0 0 12px; }

/* ---------- pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.plan-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg); }
.plan-card input[type=radio] { position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; accent-color: var(--accent); }
.plan-card .price { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.plan-card .badge { position: absolute; top: -11px; left: 20px; }
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; padding-top: 10px; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--mint); background: var(--mint-soft); }
.price-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.price { font-size: 2.3rem; font-weight: 700; margin: 0; letter-spacing: -.03em; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- report ---------- */
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 46px; gap: 12px; align-items: center; font-size: .88rem; }
.bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.delta-up { color: var(--mint); font-weight: 700; }
.delta-down { color: #e0294a; font-weight: 700; }

/* ---------- map ---------- */
#map { height: 600px; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 1; }
.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); margin: 10px 0; flex-wrap: wrap; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---------- legal pages ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.2rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.note { padding: 14px 16px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-text); font-size: .9rem; }

/* ---------- forms ---------- */
input, select, textarea { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 550; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.span2 { grid-column: span 2; }
fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
legend { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
fieldset.dates p { grid-column: 1 / -1; margin: 0; }
.check-group { display: flex; gap: 14px; align-items: center; }
.row-form { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.row-form input, .row-form select { width: auto; }
.row-form .grow { flex: 1; min-width: 220px; }
.row-form .small { width: 80px; }

/* ---------- messages & dialogs ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 8px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.flash-ok { border-left: 4px solid var(--mint); }
.flash-error { border-left: 4px solid #e0294a; }
.flash-warn { border-left: 4px solid #f0a020; margin-bottom: 16px; }
.qr-dialog { border: 1px solid var(--border); border-radius: 22px; padding: 28px; background: var(--surface); color: var(--text);
  text-align: center; box-shadow: var(--shadow-lg); }
.qr-dialog::backdrop { background: rgba(8, 6, 20, .6); backdrop-filter: blur(4px); }
.qr-dialog img { background: #fff; padding: 12px; border-radius: 14px; margin: 8px 0 6px; }
.center-block { text-align: center; padding: 90px 22px; }

/* ---------- dashboard ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding-top: 28px; padding-bottom: 44px; }
.admin-nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 10px 0 6px 12px; font-weight: 600; }
.admin-nav a, .linklike { padding: 9px 12px; border-radius: 11px; color: var(--text); font-weight: 500; text-align: left; font-size: .93rem; }
.admin-nav a:hover, .linklike:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.on { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; color: var(--muted); }
.admin-main { min-width: 0; }
.admin-main h1 { font-size: 1.8rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h2 { font-size: 1.05rem; }
.panel.narrow { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 17px; color: var(--muted); font-size: .8rem; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: 1.7rem; font-weight: 700; color: var(--text); letter-spacing: -.03em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.niche-row { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.niche-row .count { min-width: 40px; text-align: center; font-weight: 700; color: var(--accent); }
.filters-bar { margin: 8px 0 4px; }
.finder .page-head-row { align-items: center; }
.finder .row-form { margin: 0; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--mint)); border-radius: 99px; transition: width .4s; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark span { flex: 1; background: linear-gradient(to top, var(--accent), var(--mint)); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 0 40px; color: var(--muted); font-size: .85rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer p { margin: 4px 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bento > *, .bento .wide { grid-column: span 6; }
  .pricing, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .bar-row { grid-template-columns: 120px 1fr 40px; }
}
@media (max-width: 640px) {
  .nav a:not(.keep) { display: none; }
  .hero { padding: 56px 0 46px; }
  .search input { width: 100%; }
  .filters { flex-direction: column; }
  #map { height: 440px; }
}
.plan-card { color: var(--text); font-size: .95rem; font-weight: 500; }
.plan-card strong { font-size: 1.02rem; }
.plan-card .muted { font-weight: 400; }

.billing-toggle label { flex-direction: row; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; cursor: pointer; font-size: .88rem; }
.billing-toggle input { display: none; }
.billing-toggle label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.y-price { display: none; }
form:has(input[name=billing][value=yearly]:checked) .y-price { display: inline; }
form:has(input[name=billing][value=yearly]:checked) .m-price { display: none; }

/* home-page live map */
#map.home-map { height: 520px; }
@media (max-width: 700px) { #map.home-map { height: 380px; } }

/* country sections: Canada red, USA navy, with small SVG flags */
.flag { display: inline-block; vertical-align: -3px; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.18); flex: none; }
.country { --cc: var(--border); --cc-bg: transparent; margin-top: 28px; padding: 18px 22px 22px; border-radius: 18px;
           background: var(--cc-bg); border: 1px solid var(--border); border-top: 4px solid var(--cc); }
.country.is-ca { --cc: #d52b1e; --cc-bg: linear-gradient(180deg, rgba(213,43,30,.07), rgba(213,43,30,.015) 220px); }
.country.is-us { --cc: #3c3b6e; --cc-bg: linear-gradient(180deg, rgba(60,59,110,.09), rgba(178,34,52,.02) 220px); }
.country-name { display: flex; align-items: center; gap: 12px; border-bottom: 0; padding-bottom: 4px; }
.country-count { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.country.is-ca .region-name { color: #b3261a; }
.country.is-us .region-name { color: #3c3b6e; }
.country .city-card { border-left: 3px solid var(--cc); }
[data-theme="dark"] .country.is-ca { --cc-bg: linear-gradient(180deg, rgba(229,72,77,.14), rgba(229,72,77,.03) 220px); }
[data-theme="dark"] .country.is-us { --cc: #7b7fd6; --cc-bg: linear-gradient(180deg, rgba(123,127,214,.16), rgba(123,127,214,.03) 220px); }
[data-theme="dark"] .country.is-ca .region-name { color: #ff8a80; }
[data-theme="dark"] .country.is-us .region-name { color: #a9adf0; }
@media (max-width: 700px) { .country { padding: 14px 14px 18px; } .country-count { display: none; } }

/* city table: contact details right after the name, always visible */
.contact-cell { min-width: 190px; max-width: 260px; }
.contact-cell .c-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; line-height: 1.55; }
td .cat { margin-top: 4px; max-width: 220px; }
table.data td:first-child { min-width: 170px; }

/* strip shown only to the logged-in admin on public pages */
.admin-strip { background: #11111b; color: #fff; font-size: .85rem; }
.admin-strip.visitor { background: #12c99b; color: #04261c; }
.admin-strip form { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-strip span { margin-right: auto; }
.admin-strip .btn { background: rgba(255,255,255,.14); color: inherit; border-color: transparent; }

/* row numbers in every list */
table.data th.num, table.data td.num { width: 1%; white-space: nowrap; text-align: right; color: var(--muted);
                                       font-variant-numeric: tabular-nums; padding-right: 6px; }

/* addresses open in Google Maps */
a.addr { color: inherit; text-decoration: underline dotted color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a.addr:hover { color: var(--accent); text-decoration-style: solid; }
a.addr::after { content: " \2197"; font-size: .75em; opacity: .5; }
