/* =============================================================
   NILA Connect — v21.19 Structural Product Redesign
   Design system (not an overlay). Loaded LAST.
   Replaces hero, directory, provider profile, dashboards.
   ============================================================= */

/* ---------- Tokens ---------- */
:root{
  --ink:#0b1320;
  --ink-2:#1d2a3e;
  --ink-3:#3b4a63;
  --muted:#6b7a92;
  --line:#e6ebf2;
  --line-2:#eef2f7;
  --paper:#fbfaf6;
  --paper-2:#f6f4ec;
  --surface:#ffffff;
  --emerald:#0d6b55;
  --emerald-deep:#084a3b;
  --emerald-soft:#e8f3ef;
  --gold:#c79a3a;
  --gold-soft:#fbf2dd;
  --coral:#e36b4a;
  --lime:#9fd142;
  --shadow-1:0 1px 2px rgba(11,19,32,.04), 0 1px 0 rgba(11,19,32,.03);
  --shadow-2:0 4px 14px -6px rgba(11,19,32,.10), 0 2px 4px rgba(11,19,32,.04);
  --shadow-3:0 30px 60px -30px rgba(11,19,32,.25), 0 10px 25px -10px rgba(11,19,32,.10);
  --r-sm:10px; --r:14px; --r-lg:20px; --r-xl:28px;
  --display:"Fraunces","Cormorant Garamond",Georgia,serif;
  --sans:"Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

/* ---------- Reset / globals ---------- */
html,body{ background:var(--paper); color:var(--ink); }
body, .v19 body, body[class]{
  font-family:var(--sans);
  font-feature-settings:"ss01","cv11","cv02";
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.55;
}
h1,h2,h3,h4{ font-family:var(--display); font-weight:600; letter-spacing:-0.015em; color:var(--ink); }
h1{ font-size:clamp(34px,4.6vw,58px); line-height:1.04; }
h2{ font-size:clamp(24px,2.6vw,36px); line-height:1.12; }
h3{ font-size:18px; line-height:1.25; }
p{ color:var(--ink-3); }
a{ color:var(--emerald); text-decoration:none; }
*{ box-sizing:border-box; }

/* container */
.container, .v19 .container{ max-width:1180px; margin:0 auto; padding:0 22px; }

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(251,250,246,.82);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; gap:18px; padding:14px 0; }
.nav-links{ display:flex; gap:24px; margin-left:24px; }
.nav-links a{ color:var(--ink-2); font-weight:500; font-size:14.5px; padding:6px 0; border-bottom:2px solid transparent; }
.nav-links a:hover{ color:var(--emerald); }
.nav-links a.active{ color:var(--emerald); border-bottom-color:var(--emerald); }
.nav-actions{ margin-left:auto; display:flex; gap:10px; align-items:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--sans); font-weight:600; font-size:14px; letter-spacing:.005em;
  padding:11px 18px; border-radius:999px; border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration:none;
}
.btn:active{ transform:translateY(1px); }
.btn-gold{ background:var(--ink); color:#fff; }
.btn-gold:hover{ background:var(--emerald-deep); }
.btn-outline{ background:#fff; color:var(--ink); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--ink); }
.btn-outline-light{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.32); }
.btn-soft{ background:var(--emerald-soft); color:var(--emerald-deep); }
.btn-primary{ background:var(--emerald); color:#fff; }
.btn-primary:hover{ background:var(--emerald-deep); }

/* ---------- HERO (homepage rebuild) ---------- */
.v19-hero{
  position:relative; padding:48px 0 24px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(13,107,85,.10), transparent 60%),
    radial-gradient(700px 320px at 0% 0%, rgba(199,154,58,.10), transparent 60%),
    var(--paper);
  border-bottom:1px solid var(--line);
}
.v19-hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap:48px; align-items:center; }
.v19-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
  font-size:12px; font-weight:600; padding:6px 12px; border-radius:999px;
  box-shadow:var(--shadow-1);
}
.v19-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--emerald); box-shadow:0 0 0 4px rgba(13,107,85,.15); }
.v19-h1{ margin:18px 0 14px; }
.v19-h1 em{ font-style:normal; color:var(--emerald); }
.v19-sub{ font-size:17px; max-width:520px; color:var(--ink-3); }

.v19-search{
  margin-top:26px; background:#fff; border:1px solid var(--line);
  border-radius:18px; padding:10px; box-shadow:var(--shadow-2);
  display:grid; grid-template-columns: 1.2fr 1fr auto; gap:8px; align-items:stretch;
}
.v19-search .hs-field{ padding:8px 12px; display:flex; flex-direction:column; }
.v19-search label{ font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.v19-search input{ border:none; outline:none; font:600 15px var(--sans); padding:4px 0; background:transparent; color:var(--ink); }
.v19-search .hs-select-wrap, .v19-search .hs-loc-wrap{ position:relative; display:flex; align-items:center; gap:6px; }
.v19-search .hs-chevron, .v19-search .hs-gps{ border:none; background:transparent; cursor:pointer; color:var(--muted); font-size:18px; padding:4px 6px; }
.v19-search .hs-gps:hover{ color:var(--emerald); }
.v19-search .hs-submit{ background:var(--ink); color:#fff; border:none; border-radius:12px; font:600 14px var(--sans); padding:0 22px; cursor:pointer; }
.v19-search .hs-submit:hover{ background:var(--emerald-deep); }
.v19-search .hs-dropdown{ position:absolute; top:calc(100% + 8px); left:-12px; right:-12px;
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-3);
  max-height:340px; overflow:auto; z-index:30; display:none; }
.v19-search .hs-dropdown.open{ display:block; }

.v19-trust{ display:flex; gap:22px; margin-top:18px; flex-wrap:wrap; }
.v19-trust > div{ display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-2); font-weight:500; }
.v19-trust .tk{ width:22px;height:22px;border-radius:50%;background:var(--emerald-soft); color:var(--emerald-deep); display:inline-flex;align-items:center;justify-content:center; font-size:12px; font-weight:700; }

/* hero right (discovery card) */
.v19-discover{
  background:#fff; border:1px solid var(--line); border-radius:24px; padding:18px;
  box-shadow:var(--shadow-3);
}
.v19-discover-head{ display:flex; align-items:center; justify-content:space-between; padding:4px 6px 12px; }
.v19-discover-head b{ font:600 14px var(--sans); color:var(--ink); }
.v19-discover-head span{ font-size:12px; color:var(--muted); }
.v19-cats{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.v19-cat{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 6px; border-radius:14px; background:var(--paper-2);
  border:1px solid transparent; cursor:pointer; transition:.15s;
  font:600 11.5px var(--sans); color:var(--ink-2);
}
.v19-cat:hover{ background:#fff; border-color:var(--line); transform:translateY(-2px); box-shadow:var(--shadow-1); }
.v19-cat .ic{ width:36px;height:36px;border-radius:11px;background:var(--emerald-soft); color:var(--emerald-deep);
  display:flex;align-items:center;justify-content:center; font-size:16px; font-weight:700; }
.v19-cat.active{ background:var(--ink); color:#fff; }
.v19-cat.active .ic{ background:rgba(255,255,255,.15); color:#fff; }
.v19-discover-map{
  margin-top:14px; height:180px; border-radius:16px; overflow:hidden;
  background:linear-gradient(180deg,#eef3ee,#e3ece6); position:relative; border:1px solid var(--line);
}
.v19-discover-map #heroMap{ width:100%; height:100%; }
.v19-discover-foot{ display:flex; gap:8px; padding:12px 4px 4px; align-items:center; font-size:12px; color:var(--muted); }
.v19-discover-foot .pin{ color:var(--emerald); }

/* hide legacy hero bits we no longer want visible inside v19 hero */
.v19-hero .hero-bg, .v19-hero .map-mode-bar, .v19-hero .map-prompt,
.v19-hero .lovable-proof-panel, .v19-hero .value-actions, .v19-hero .value-panel{ display:none !important; }

/* ---------- Sections (homepage) ---------- */
.v19-section{ padding:80px 0; }
.v19-section.tight{ padding:56px 0; }
.v19-section.alt{ background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.v19-section.dark{ background:var(--ink); color:#fff; }
.v19-section.dark h2, .v19-section.dark p{ color:#fff; }
.v19-section.dark p{ color:rgba(255,255,255,.78); }
.v19-section-head{ max-width:680px; margin-bottom:36px; }
.v19-section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.v19-section-head .kicker{ color:var(--emerald); font-weight:600; font-size:13px; letter-spacing:.06em; text-transform:uppercase; }
.v19-section-head h2{ margin:8px 0 12px; }

.v19-feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.v19-feature{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:24px; box-shadow:var(--shadow-1); transition:.2s;
}
.v19-feature:hover{ box-shadow:var(--shadow-2); transform:translateY(-2px); border-color:#d8e0ea; }
.v19-feature .fi{ width:38px;height:38px;border-radius:11px; background:var(--emerald-soft); color:var(--emerald-deep);
  display:flex;align-items:center;justify-content:center; font-size:18px; margin-bottom:14px; }
.v19-feature h3{ margin-bottom:6px; }
.v19-feature p{ font-size:14.5px; }

.v19-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.v19-step{ padding:22px; border-radius:var(--r-lg); background:#fff; border:1px solid var(--line); position:relative; }
.v19-step .n{ font:600 13px var(--sans); color:var(--gold); }
.v19-step b{ display:block; font:600 16px var(--sans); color:var(--ink); margin:6px 0; }
.v19-step span{ font-size:13.5px; color:var(--ink-3); }

.v19-split{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.v19-split-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); padding:28px; box-shadow:var(--shadow-2); }
.v19-mini-list{ list-style:none; padding:0; margin:18px 0 0; display:grid; gap:10px; }
.v19-mini-list li{ padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--paper-2); font-size:14px; color:var(--ink-2); font-weight:500; }

.v19-provider-cta{ background:linear-gradient(135deg, var(--ink) 0%, var(--emerald-deep) 100%); color:#fff; border-radius:var(--r-xl); padding:48px; display:grid; grid-template-columns:1.2fr .8fr; gap:32px; align-items:center; }
.v19-provider-cta h2{ color:#fff; }
.v19-provider-cta p{ color:rgba(255,255,255,.8); }
.v19-provider-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.v19-provider-stats div{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:14px; padding:16px; text-align:center; }
.v19-provider-stats b{ display:block; font:600 22px var(--display); color:var(--gold); margin-bottom:4px; }
.v19-provider-stats span{ font-size:11.5px; color:rgba(255,255,255,.7); font-weight:600; letter-spacing:.04em; text-transform:uppercase; }

/* ---------- DIRECTORY rebuild ---------- */
.v19-dir-hero{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:40px 0 28px;
}
.v19-dir-hero .crumbs{ font-size:12.5px; color:var(--muted); margin-bottom:10px; }
.v19-dir-hero h1{ font-size:clamp(28px,3.4vw,42px); margin:0 0 8px; }
.v19-dir-hero p{ max-width:560px; margin:0 0 20px; }
.v19-dir-search{
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px;
  box-shadow:var(--shadow-2);
  display:grid; grid-template-columns: 1.2fr 1fr 1fr auto auto; gap:6px; align-items:stretch;
}
.v19-dir-search input,
.v19-dir-search select{
  background:transparent; border:none; outline:none; padding:14px 14px;
  font:500 14.5px var(--sans); color:var(--ink); width:100%;
}
.v19-dir-search .v19-divider{ width:1px; background:var(--line); margin:8px 0; }
.v19-dir-search .ghost{ background:transparent; color:var(--ink-2); border:1px solid var(--line); border-radius:12px; padding:10px 14px; font:600 13px var(--sans); cursor:pointer; }
.v19-dir-search .go{ background:var(--ink); color:#fff; border:none; border-radius:12px; padding:10px 22px; font:600 14px var(--sans); cursor:pointer; }
.v19-dir-search .go:hover{ background:var(--emerald-deep); }

/* hide legacy customer-unsafe controls */
.page-directory #dirPlan,
.page-directory .map-mode-bar,
.page-directory [data-map-source-toggle],
.page-home #dirPlan,
.page-home .map-mode-bar,
.page-home [data-map-source-toggle]{ display:none !important; }

/* category rail */
.v19-cat-rail{ background:#fff; border-bottom:1px solid var(--line); position:sticky; top:64px; z-index:20; }
.v19-cat-rail-inner{ display:flex; gap:8px; overflow-x:auto; padding:12px 0; scrollbar-width:none; }
.v19-cat-rail-inner::-webkit-scrollbar{ display:none; }
.v19-cat-pill{
  flex-shrink:0; padding:9px 16px; border-radius:999px;
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
  font:600 13px var(--sans); cursor:pointer; transition:.15s; white-space:nowrap;
}
.v19-cat-pill:hover{ border-color:var(--ink); }
.v19-cat-pill.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* directory body: list + sticky map */
.v19-dir-body{ display:grid; grid-template-columns: 1fr 460px; gap:28px; padding:28px 0 64px; }
.v19-dir-list-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px; gap:10px; flex-wrap:wrap; }
.v19-dir-list-head h2{ font-size:22px; margin:0; }
.v19-dir-list-head .meta{ font-size:13px; color:var(--muted); }
.v19-dir-toolbar{ display:flex; gap:8px; align-items:center; }
.v19-dir-toolbar select{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px; font:500 13px var(--sans); color:var(--ink-2); }

.v19-dir-list{ display:grid; gap:14px; }

.v19-dir-map-wrap{
  position:sticky; top:120px; align-self:start;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-2); height:calc(100vh - 160px); min-height:520px;
  display:flex; flex-direction:column;
}
.v19-dir-map-head{ padding:14px 16px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.v19-dir-map-head b{ font:600 14px var(--sans); color:var(--ink); }
.v19-dir-map-head span{ font-size:12px; color:var(--muted); }
.v19-dir-map-wrap #dirMap{ flex:1; min-height:300px; }
.v19-dir-map-foot{ padding:12px; border-top:1px solid var(--line); display:flex; gap:8px; flex-wrap:wrap; background:var(--paper); }
.v19-dir-map-foot button, .v19-dir-map-foot a{
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
  font:600 12.5px var(--sans); padding:8px 12px; border-radius:10px; cursor:pointer; text-decoration:none;
}
.v19-dir-map-foot .primary{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* provider card (apply to .dir-card emitted by app.js) */
.dir-card{
  background:#fff !important; border:1px solid var(--line) !important; border-radius:18px !important;
  padding:18px !important; box-shadow:var(--shadow-1) !important; transition:.18s !important;
  display:flex !important; flex-direction:column !important; gap:12px !important;
}
.dir-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2) !important; border-color:#d8e0ea !important; }
.dir-card-top{ display:flex; gap:14px; align-items:center; }
.dir-card-avatar{ width:48px; height:48px; border-radius:12px;
  background:linear-gradient(135deg,var(--emerald),var(--emerald-deep)); color:#fff;
  display:flex; align-items:center; justify-content:center; font:700 16px var(--sans);
  border:none !important; flex-shrink:0;
}
.dir-card-name{ font:600 16px var(--sans); color:var(--ink); }
.dir-card-sub{ font-size:13px; color:var(--muted); margin-top:2px; }
.dir-card-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.dir-card-tag{
  display:inline-flex; align-items:center; gap:4px;
  background:var(--emerald-soft); color:var(--emerald-deep); font:600 11px var(--sans);
  padding:4px 9px; border-radius:999px; letter-spacing:.02em;
}
.dir-card-tag.google{ background:#eef3fb; color:#1c4f9a; }
.dir-card-tag.verified::before{ content:"✓ "; }
.dir-card-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; }
.dir-card-actions a, .dir-card-actions button, .dir-btn-google{
  flex:1; min-width:90px; text-align:center;
  background:var(--ink); color:#fff; border:none; border-radius:10px; padding:10px 14px;
  font:600 13px var(--sans); text-decoration:none; cursor:pointer; transition:.15s;
}
.dir-card-actions a:hover, .dir-card-actions button:hover{ background:var(--emerald-deep); }
.dir-card-actions a.secondary, .dir-card-actions .ghost{ background:#fff; color:var(--ink); border:1px solid var(--line); }
.dir-card.google-place{ background:#fcfcfb !important; border-style:dashed !important; }

.dir-live-note{
  background:var(--gold-soft); border:1px solid #f0d98c; color:#7a5a10;
  padding:14px 16px; border-radius:14px; display:flex; gap:12px; align-items:center; justify-content:space-between;
  margin-bottom:14px; flex-wrap:wrap;
}
.dir-live-note b{ display:block; color:#5b4108; font-size:14px; }
.dir-live-note span{ color:#7a5a10; font-size:13px; }

.dir-empty{ background:#fff; border:1px dashed var(--line); border-radius:18px; padding:36px; text-align:center; }
.dir-empty .empty-icon{ font-size:34px; }
.dir-empty h3{ margin:10px 0 6px; }
.dir-empty small{ color:var(--muted); display:block; margin-bottom:18px; }
.dir-empty .empty-actions{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }

/* mobile: collapse */
@media (max-width: 960px){
  .v19-hero-grid{ grid-template-columns:1fr; gap:32px; }
  .v19-dir-body{ grid-template-columns:1fr; }
  .v19-dir-map-wrap{ position:static; height:360px; min-height:360px; }
  .v19-feature-grid, .v19-steps{ grid-template-columns:1fr 1fr; }
  .v19-split, .v19-provider-cta{ grid-template-columns:1fr; }
  .v19-dir-search{ grid-template-columns:1fr 1fr; }
  .v19-dir-search .ghost, .v19-dir-search .go{ grid-column:span 1; }
  .nav-links{ display:none; }
}
@media (max-width: 560px){
  .v19-feature-grid, .v19-steps, .v19-cats{ grid-template-columns:1fr 1fr; }
  .v19-search{ grid-template-columns:1fr; }
  .v19-search .hs-submit{ padding:14px; }
  .v19-section{ padding:56px 0; }
  .v19-discover-map{ height:160px; }
}

/* ---------- PROVIDER PROFILE rebuild ---------- */
.v19-pp-shell{ background:var(--paper); padding:24px 0 64px; }
.v19-pp-crumbs{ font-size:12.5px; color:var(--muted); margin-bottom:14px; display:flex; gap:8px; align-items:center; }
.v19-pp-crumbs a{ color:var(--ink-2); }
.v19-pp-actions-sticky{
  position:sticky; top:64px; z-index:15;
  background:rgba(251,250,246,.92); backdrop-filter:blur(10px);
  border:1px solid var(--line); border-radius:14px;
  padding:10px 14px; display:flex; gap:10px; align-items:center; margin-bottom:18px;
  box-shadow:var(--shadow-1);
}
.v19-pp-actions-sticky .ttl{ font:600 14px var(--sans); color:var(--ink); margin-right:auto; }

/* style the JS-rendered provider profile via existing classes */
.premium-panel{
  background:#fff !important; border:1px solid var(--line) !important; border-radius:var(--r-lg) !important;
  box-shadow:var(--shadow-1) !important; padding:24px !important; margin-bottom:16px !important;
}
.premium-panel.main-panel{ box-shadow:var(--shadow-2) !important; }
.premium-headline h1{ font-family:var(--display) !important; font-weight:600 !important; letter-spacing:-0.015em !important; color:var(--ink) !important; }
.premium-headline p{ color:var(--muted) !important; }
.plan-pill{ background:var(--emerald-soft) !important; color:var(--emerald-deep) !important; border:none !important; font:600 11px var(--sans) !important; padding:4px 10px !important; border-radius:999px !important; letter-spacing:.02em !important; }
.premium-highlight{ background:var(--paper-2) !important; border:1px solid var(--line) !important; border-radius:14px !important; padding:14px !important; }
.premium-highlight b{ color:var(--ink) !important; font:600 13px var(--sans) !important; }
.premium-highlight span{ color:var(--muted) !important; font-size:13px !important; }

/* reviews */
.review-card{ background:#fff !important; border:1px solid var(--line) !important; border-radius:14px !important; padding:16px !important; }

/* ---------- DASHBOARDS rebuild (customer + provider) ---------- */
/* The page header strip + sidebar wrapper is injected by v21.19 JS */
.v19-dash-shell{ display:grid; grid-template-columns: 240px 1fr; gap:28px; padding:24px 22px 80px; max-width:1240px; margin:0 auto; }
.v19-dash-side{ position:sticky; top:80px; align-self:start; background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow:var(--shadow-1); }
.v19-dash-side .who{ display:flex; gap:10px; align-items:center; padding:6px 6px 14px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.v19-dash-side .who .av{ width:38px;height:38px;border-radius:50%; background:linear-gradient(135deg,var(--emerald),var(--emerald-deep)); color:#fff; display:flex;align-items:center;justify-content:center; font:700 14px var(--sans); }
.v19-dash-side .who b{ display:block; font:600 13.5px var(--sans); color:var(--ink); }
.v19-dash-side .who span{ font-size:11.5px; color:var(--muted); }
.v19-dash-side nav{ display:grid; gap:2px; }
.v19-dash-side nav a, .v19-dash-side nav button{
  display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:10px;
  font:600 13.5px var(--sans); color:var(--ink-2); cursor:pointer; background:transparent; border:none; text-align:left; text-decoration:none; width:100%;
}
.v19-dash-side nav a:hover, .v19-dash-side nav button:hover{ background:var(--paper-2); color:var(--ink); }
.v19-dash-side nav .icon{ width:22px; height:22px; border-radius:7px; background:var(--emerald-soft); color:var(--emerald-deep); display:flex; align-items:center; justify-content:center; font-size:12px; }

.v19-dash-main{ min-width:0; }
.v19-nba{
  background:linear-gradient(135deg,#fff,var(--emerald-soft));
  border:1px solid var(--line); border-radius:18px; padding:20px 22px;
  display:flex; gap:16px; align-items:center; box-shadow:var(--shadow-1); margin-bottom:18px;
}
.v19-nba .ic{ width:42px;height:42px;border-radius:12px;background:var(--emerald); color:#fff; display:flex;align-items:center;justify-content:center; font-size:18px; }
.v19-nba b{ display:block; font:600 15px var(--sans); color:var(--ink); }
.v19-nba span{ font-size:13.5px; color:var(--ink-3); }
.v19-nba .btn{ margin-left:auto; }

/* restyle rendered dashboard cards */
.cd-hero, .pd-hero{
  background:linear-gradient(135deg, var(--ink) 0%, var(--emerald-deep) 100%) !important;
  border-radius:20px !important; padding:24px !important; color:#fff;
  margin:0 0 18px !important;
}
.cd-name, .pd-name{ font-family:var(--display) !important; font-weight:600 !important; font-size:22px !important; }
.cd-sub, .pd-sub{ color:rgba(255,255,255,.72) !important; font-weight:500 !important; }
.cd-stat, .pd-stat{ background:rgba(255,255,255,.08) !important; border:1px solid rgba(255,255,255,.12) !important; border-radius:14px !important; padding:14px !important; }
.cd-stat-val, .pd-stat-val{ color:#fff !important; font-family:var(--display) !important; font-weight:600 !important; font-size:24px !important; }
.cd-stat-lbl, .pd-stat-lbl{ color:rgba(255,255,255,.65) !important; }

.cd-tabs, .pd-tabs{ background:#fff !important; border:1px solid var(--line) !important; border-radius:14px !important; padding:6px !important; margin:0 0 18px !important; box-shadow:var(--shadow-1) !important; position:static !important; }
.cd-tab, .pd-tab{ border-radius:10px !important; padding:10px 14px !important; color:var(--muted) !important; font:600 13px var(--sans) !important; border:none !important; }
.cd-tab.active, .pd-tab.active{ background:var(--ink) !important; color:#fff !important; border:none !important; }

.cd-card, .pd-card, .lead-card, .req-card, .saved-card, .value-card, .tier, .plan-welcome, .soft-upgrade{
  background:#fff !important; border:1px solid var(--line) !important; border-radius:16px !important; box-shadow:var(--shadow-1) !important;
}
.cd-card h3, .pd-card h3{ font-family:var(--sans) !important; font-weight:600 !important; font-size:14px !important; color:var(--ink) !important; }
.pf-input{ border:1px solid var(--line) !important; border-radius:10px !important; }
.pf-input:focus{ border-color:var(--emerald) !important; box-shadow:0 0 0 4px rgba(13,107,85,.10) !important; }

.cb, .lb, .export-btn{ font-family:var(--sans) !important; font-weight:600 !important; border-radius:10px !important; }
.cb-primary, .lb-primary{ background:var(--ink) !important; color:#fff !important; }
.cb-gold, .lb-gold{ background:var(--gold) !important; color:#fff !important; }
.cb-soft, .lb-soft{ background:var(--paper-2) !important; color:var(--ink) !important; }

/* status pills */
.sb, .status-pill{ font-family:var(--sans) !important; font-weight:600 !important; border-radius:999px !important; }
.sb-new, .status-pill{ background:var(--emerald-soft) !important; color:var(--emerald-deep) !important; }
.sb-done, .status-pill.completed{ background:#eaf6ee !important; color:#226c3a !important; }
.sb-pending, .status-pill.quoted{ background:var(--gold-soft) !important; color:#7a5a10 !important; }

/* tiers polish */
.tier.pro{ border-color:#f1d780 !important; background:linear-gradient(180deg,#fffbe9,#fff) !important; }
.tier.power{ background:linear-gradient(135deg, var(--ink), var(--emerald-deep)) !important; color:#fff !important; border-color:var(--ink) !important; }
.tier.power h4, .tier.power ul{ color:#fff !important; }

@media (max-width: 960px){
  .v19-dash-shell{ grid-template-columns:1fr; }
  .v19-dash-side{ position:static; }
  .v19-dash-side nav{ grid-template-columns:repeat(2,1fr); display:grid; }
  .v19-pp-actions-sticky{ flex-wrap:wrap; }
}

/* ---------- Footer ---------- */
.footer{ background:var(--ink); color:#fff; padding:64px 0 24px !important; border:none !important; }
.footer p, .footer a{ color:rgba(255,255,255,.72) !important; }
.footer a:hover{ color:#fff !important; }
.footer-inner{ display:grid !important; grid-template-columns:1.2fr 2fr; gap:48px; }
.footer-links{ display:grid !important; grid-template-columns:repeat(4,1fr); gap:24px; }
.footer-links strong{ color:#fff !important; font:600 13px var(--sans) !important; display:block; margin-bottom:10px; letter-spacing:.04em; text-transform:uppercase; font-size:11px !important; }
.footer-links a{ display:block; padding:4px 0; font-size:14px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08) !important; margin-top:36px !important; padding-top:18px !important; }
.footer-bottom .container{ display:flex; justify-content:space-between; font-size:12.5px; color:rgba(255,255,255,.55); }

@media (max-width: 720px){
  .footer-inner{ grid-template-columns:1fr; gap:32px; }
  .footer-links{ grid-template-columns:1fr 1fr; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav{ background:rgba(255,255,255,.96) !important; backdrop-filter:blur(14px); border-top:1px solid var(--line) !important; }
.mobile-nav .mn-item{ color:var(--muted) !important; font-weight:600 !important; }
.mobile-nav .mn-item.active{ color:var(--emerald) !important; }
.mobile-nav .mn-item b{ font:600 10.5px var(--sans) !important; }

/* utility */
.v19-divider-row{ height:1px; background:var(--line); margin:24px 0; }
.v19-pill{ display:inline-block; padding:4px 10px; border-radius:999px; background:var(--gold-soft); color:#7a5a10; font:600 11px var(--sans); }

/* hide noisy legacy backgrounds */
body{ background:var(--paper) !important; }
.hero, .hero-bg, .dir-hero-v125, .nila-life-section, .home-choice-section, .section, .section-community, .section-providers-cta, .results-strip, .alt-bg, .dir-cats, .dir-body, .dir-sidebar{
  background:transparent !important;
}
.dir-cats{ display:none !important; } /* replaced by v19-cat-rail */
.dir-sidebar{ display:none !important; } /* filters moved into toolbar */
.dir-map-card{ display:none !important; } /* replaced by v19-dir-map-wrap */
.dir-results-head{ display:none !important; }
.dir-hero-v125{ display:none !important; } /* replaced by v19-dir-hero */

/* the legacy hero on index — hide when v19-hero is present */
body.v19-home .hero{ display:none !important; }
body.v19-home .nila-life-section,
body.v19-home .home-choice-section,
body.v19-home .section-community,
body.v19-home .section-providers-cta,
body.v19-home .alt-bg,
body.v19-home .results-strip{ display:none !important; } /* we ship a fresh structure */
