:root {
  --ink: #0a1711;
  --forest: #08281c;
  --green: #087a4c;
  --green-2: #15a866;
  --gold: #f3bc32;
  --cream: #f6f4ec;
  --paper: #fff;
  --muted: #66736c;
  --line: #dde4df;
  --danger: #b34a3c;
  --shadow: 0 28px 70px rgba(8, 29, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: var(--ink); background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.app-header { position: sticky; z-index: 50; top: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 0 max(22px, calc((100% - 1320px) / 2)); color: white; background: #06150f; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand > span:nth-child(2) > span { color: var(--gold); }
.brand small { margin-left: 2px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.17); border-radius: 4px; color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .12em; }
.brand-mark { position: relative; width: 26px; height: 26px; overflow: hidden; border-radius: 7px; background: var(--green); transform: rotate(45deg); }
.brand-mark i { position: absolute; width: 4px; height: 36px; top: -5px; left: 11px; background: var(--gold); }
.brand-mark i:nth-child(2) { transform: rotate(90deg); }
.brand-mark i:nth-child(3) { left: -3px; width: 10px; background: #111; }
.desktop-nav { align-self: stretch; display: flex; }
.nav-item { position: relative; border: 0; padding: 0 17px; color: rgba(255,255,255,.57); background: transparent; font-size: 12px; font-weight: 650; }
.nav-item:hover, .nav-item.active { color: white; }
.nav-item.active::after { content: ""; position: absolute; right: 17px; bottom: 0; left: 17px; height: 2px; background: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.live-status { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.58); font-size: 10px; }
.live-status i, .dashboard-meta i { width: 7px; height: 7px; border-radius: 50%; background: #48d186; box-shadow: 0 0 0 4px rgba(72,209,134,.12); }
.account-button { display: flex; align-items: center; gap: 8px; border: 0; padding: 5px 9px 5px 5px; color: white; background: rgba(255,255,255,.06); border-radius: 999px; font-size: 10px; }
.account-button > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--gold); font-weight: 800; }

.view { display: none; min-height: calc(100vh - 76px); }
.view.active { display: block; animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.button { border: 0; border-radius: 999px; padding: 14px 21px; color: white; background: var(--green); font-weight: 750; transition: .2s; }
.button:hover { background: #066840; transform: translateY(-1px); box-shadow: 0 10px 25px rgba(8,122,76,.18); }
.kicker { margin-bottom: 9px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.kicker.light { color: var(--gold); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 80px; align-items: center; min-height: 590px; overflow: hidden; padding: 76px max(25px, calc((100% - 1180px) / 2)); color: white; background: radial-gradient(circle at 80% 25%, #17583b 0, #0a3021 30%, #06150f 72%); }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 65px 65px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero::after { content: ""; position: absolute; top: 80px; right: -200px; width: 550px; height: 550px; border: 1px solid rgba(243,188,50,.17); border-radius: 50%; box-shadow: 0 0 0 90px rgba(243,188,50,.025), 0 0 0 180px rgba(243,188,50,.018); }
.hero-copy, .pilot-card { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(243,188,50,.12); }
.hero h1 { margin-bottom: 23px; font-size: clamp(54px, 6.8vw, 88px); line-height: .94; letter-spacing: -.075em; }
.hero h1 em, .dashboard-header h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p { max-width: 680px; margin-bottom: 33px; color: rgba(255,255,255,.59); font-size: 16px; line-height: 1.65; }
.search-bar { display: grid; grid-template-columns: 25px minmax(150px, 1fr) 180px auto; align-items: center; gap: 12px; max-width: 820px; padding: 8px 8px 8px 18px; border-radius: 18px; background: white; box-shadow: 0 28px 60px rgba(0,0,0,.22); }
.search-bar svg { width: 22px; color: var(--green); }
.search-bar input, .search-bar select { width: 100%; height: 48px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-bar select { border-left: 1px solid var(--line); padding-left: 15px; }
.quick-filters { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.quick-filters button { border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 6px 10px; color: rgba(255,255,255,.63); background: rgba(255,255,255,.04); font-size: 9px; }
.quick-filters button:hover { border-color: var(--gold); color: white; }
.pilot-card { padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 23px; background: rgba(255,255,255,.055); backdrop-filter: blur(15px); }
.pilot-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.pilot-card-top i { width: 8px; height: 8px; border-radius: 50%; background: #52d88e; box-shadow: 0 0 0 6px rgba(82,216,142,.1); }
.pilot-card > strong { display: block; margin: 26px 0 0; color: white; font-size: 58px; line-height: 1; }
.pilot-card > p { color: rgba(255,255,255,.48); font-size: 11px; }
.mini-map { height: 120px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 5px; margin: 24px 0; padding: 15px; border-radius: 13px; background: rgba(0,0,0,.18); }
.mini-map i { min-height: 8px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, var(--green-2), var(--gold)); opacity: .86; }
.pilot-source { display: flex; justify-content: space-between; gap: 15px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: 8px; }
.pilot-source b { color: rgba(255,255,255,.7); }

.discover-shell, .portal-shell, .ads-shell, .dashboard-view { padding: 86px max(25px, calc((100% - 1180px) / 2)); }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-title-row h2, .form-intro h2, .panel h2 { margin-bottom: 0; font-size: 36px; }
.results-meta { color: var(--muted); font-size: 11px; }
.results-meta b { color: var(--ink); font-size: 16px; }
.results-meta span { margin-left: 5px; }
.category-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 30px 0 18px; }
.category-chip { border: 1px solid #d8ded9; border-radius: 999px; padding: 8px 13px; color: #526159; background: transparent; font-size: 10px; font-weight: 700; }
.category-chip:hover, .category-chip.active { color: white; border-color: var(--forest); background: var(--forest); }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.business-card { position: relative; min-width: 0; padding: 22px; border: 1px solid #e0e5e1; border-radius: 18px; background: white; transition: .22s; }
.business-card:hover { border-color: white; transform: translateY(-3px); box-shadow: var(--shadow); }
.business-card.sponsored { outline: 2px solid var(--gold); outline-offset: -2px; }
.business-card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.business-monogram { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: var(--green); background: #eaf5ee; font-size: 10px; font-weight: 850; }
.status-badge { border-radius: 999px; padding: 5px 7px; color: #6b5510; background: #fff2c2; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status-badge.verified { color: #09633f; background: #ddf4e7; }
.status-badge.sponsored { color: #5e4b08; background: var(--gold); }
.business-card h3 { margin: 20px 0 7px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-card > p { min-height: 40px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.business-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0ed; color: #7a8780; font-size: 9px; }
.business-card button { position: absolute; inset: 0; border: 0; background: transparent; color: transparent; }
.empty-state { padding: 65px; text-align: center; border: 1px dashed #cfd7d1; border-radius: 18px; }
.empty-state span { width: 48px; height: 48px; display: grid; place-items: center; margin: auto auto 15px; color: var(--gold); background: var(--forest); border-radius: 13px; font-weight: 850; }
.empty-state p { color: var(--muted); }
.provenance-note { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 24px; padding: 18px 20px; border: 1px solid #dce2dd; border-radius: 13px; }
.provenance-note > span { color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.provenance-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.provenance-note a { color: var(--green); font-size: 9px; font-weight: 750; }

.view-banner { min-height: 330px; display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; padding: 60px max(25px, calc((100% - 1180px) / 2)); color: white; background: radial-gradient(circle at 80% 20%, #17573b, #072218 55%, #06150f); }
.view-banner h1 { margin-bottom: 15px; font-size: 56px; }
.view-banner > div:first-child > p:last-child { max-width: 580px; margin-bottom: 0; color: rgba(255,255,255,.59); line-height: 1.65; }
.identity-card { min-width: 330px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.06); }
.identity-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--gold); font-weight: 850; }
.identity-card small, .identity-card strong, .identity-card p { display: block; }
.identity-card small { color: rgba(255,255,255,.45); font-size: 8px; }
.identity-card strong { margin-top: 4px; font-size: 13px; }
.identity-card p { margin: 3px 0 0; color: rgba(255,255,255,.48); font-size: 8px; }
.identity-card i { color: #75dfa5; font-size: 8px; font-style: normal; }
.portal-shell { min-height: 600px; }
.portal-tabs { display: flex; gap: 6px; margin-bottom: 35px; border-bottom: 1px solid var(--line); }
.portal-tabs button { border: 0; padding: 13px 18px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }
.portal-tabs button.active { color: var(--green); border-bottom: 2px solid var(--green); }
.portal-tabs button span { margin-left: 6px; padding: 2px 6px; border-radius: 99px; color: white; background: var(--green); font-size: 8px; }
.portal-panel { display: none; }
.portal-panel.active { display: grid; grid-template-columns: .65fr 1.35fr; gap: 60px; align-items: start; }
.form-intro { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.form-intro > span { color: var(--gold); font-size: 11px; font-weight: 850; }
.form-intro p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.form-card, .campaign-builder { padding: 30px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.form-card > label:not(.check-row), .campaign-builder label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; color: #39483f; font-size: 10px; font-weight: 750; }
.form-card select, .form-card textarea, .campaign-builder input, .campaign-builder select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; outline: 0; font-weight: 400; }
.form-card textarea { resize: vertical; }
.form-card select:focus, .form-card textarea:focus, .campaign-builder input:focus, .campaign-builder select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,76,.09); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 20px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.check-row input { accent-color: var(--green); }
.form-footnote { margin: 12px 0 0; color: #8a958f; font-size: 8px; }
.data-list { display: grid; gap: 9px; }
.data-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.data-row h3 { margin-bottom: 5px; font-size: 14px; }
.data-row p { margin: 0; color: var(--muted); font-size: 9px; }
.data-row > span { border-radius: 999px; padding: 6px 9px; color: #745e12; background: #fff2c2; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.data-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed #cfd7d1; border-radius: 14px; }
.profile-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--line); }
.profile-card > div { padding: 25px; background: white; }
.profile-card small, .profile-card strong { display: block; }
.profile-card small { margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.profile-card strong { font-size: 13px; }

.ads-banner { background: radial-gradient(circle at 76% 20%, #67551b, #213320 45%, #07150f 76%); }
.ad-guardrail { max-width: 330px; padding: 25px; border: 1px solid rgba(243,188,50,.35); border-radius: 18px; background: rgba(243,188,50,.07); }
.ad-guardrail span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.ad-guardrail p { margin: 10px 0 0; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.6; }
.ads-shell { display: grid; grid-template-columns: 1.4fr .6fr; gap: 25px; align-items: start; }
.campaign-builder .section-title-row { margin-bottom: 26px; }
.sandbox-pill { border-radius: 999px; padding: 6px 9px; color: #6c5609; background: #fff0b3; font-size: 8px; font-weight: 850; }
.campaign-side { padding: 26px; border-radius: 20px; color: white; background: var(--forest); }
.campaign-side h3 { margin-bottom: 22px; font-size: 23px; }
.campaign-side .data-row { color: var(--ink); }
.compact-list .data-row { padding: 13px; }

.dashboard-view { color: white; background: #07150f; }
.dashboard-header { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; margin-bottom: 45px; }
.dashboard-header h1 { margin-bottom: 18px; font-size: 64px; line-height: .98; }
.dashboard-header > div:first-child > p:last-child { max-width: 600px; color: rgba(255,255,255,.53); line-height: 1.6; }
.dashboard-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.dashboard-meta span { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.7); font-size: 10px; }
.dashboard-meta small { color: rgba(255,255,255,.37); }
.ghost-button { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 9px 13px; color: white; background: transparent; font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 12px; }
.metric-grid article { min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.035); }
.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }
.metric-grid span { color: rgba(255,255,255,.43); font-size: 9px; }
.metric-grid strong { margin: 15px 0 7px; color: white; font-size: 34px; }
.metric-grid small { color: rgba(255,255,255,.32); font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.panel { padding: 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.035); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 26px; }
.panel-heading h2 { color: white; font-size: 25px; }
.panel-heading > span { color: rgba(255,255,255,.35); font-size: 8px; }
.bar-chart { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 11px; color: rgba(255,255,255,.62); font-size: 9px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), var(--gold)); }
.bar-row b { color: white; text-align: right; }
.activity-panel .data-row { border-color: rgba(255,255,255,.09); color: white; background: rgba(255,255,255,.04); }
.activity-panel .data-row p { color: rgba(255,255,255,.42); }
.journey-panel { grid-column: 1 / -1; }
.success-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.success-grid > div { padding: 5px 24px 5px 0; border-right: 1px solid rgba(255,255,255,.1); }
.success-grid > div:not(:first-child) { padding-left: 24px; }
.success-grid > div:last-child { border: 0; }
.success-grid b { display: block; margin-bottom: 17px; color: var(--gold); font-size: 9px; }
.success-grid span { font-weight: 800; }
.success-grid p { margin: 7px 0 0; color: rgba(255,255,255,.4); font-size: 9px; line-height: 1.5; }

dialog { width: min(590px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 40px 120px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(2,12,7,.8); backdrop-filter: blur(7px); }
.business-dialog-card { position: relative; padding: 38px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #f0f3f0; font-size: 21px; }
.business-dialog-card > .business-monogram { margin-bottom: 24px; }
.business-dialog-card h2 { margin-bottom: 12px; font-size: 37px; }
.business-dialog-card > p:not(.kicker) { color: var(--muted); line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin: 25px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-grid > div { padding: 15px; background: white; }
.detail-grid small, .detail-grid strong { display: block; }
.detail-grid small { margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.detail-grid strong { font-size: 11px; }
.dialog-actions { display: flex; align-items: center; gap: 16px; }
.dialog-actions a { color: var(--green); font-size: 10px; font-weight: 750; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 390px; padding: 14px 17px; border-radius: 12px; color: white; background: var(--forest); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s; font-size: 11px; }
.toast.show { opacity: 1; transform: none; }
.loading-card { min-height: 190px; border-radius: 18px; background: linear-gradient(100deg, #fff 20%, #f0f3f0 40%, #fff 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .pilot-card { display: none; }
  .business-grid { grid-template-columns: 1fr 1fr; }
  .portal-panel.active { grid-template-columns: 1fr; }
  .ads-shell { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .journey-panel { grid-column: auto; }
}

@media (max-width: 700px) {
  .app-header { height: 66px; }
  .brand small, .live-status, .account-button > span:last-child { display: none; }
  .account-button { padding-right: 5px; }
  .hero { min-height: 620px; padding-top: 60px; padding-bottom: 60px; }
  .hero h1 { font-size: 51px; }
  .search-bar { grid-template-columns: 22px 1fr auto; }
  .search-bar select { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .discover-shell, .portal-shell, .ads-shell, .dashboard-view { padding: 60px 18px; }
  .section-title-row { align-items: start; }
  .business-grid { grid-template-columns: 1fr; }
  .provenance-note { grid-template-columns: 1fr; }
  .view-banner { grid-template-columns: 1fr; padding: 50px 20px; }
  .view-banner h1 { font-size: 43px; }
  .identity-card { min-width: 0; }
  .portal-tabs { overflow-x: auto; }
  .portal-tabs button { white-space: nowrap; }
  .form-grid, .profile-card { grid-template-columns: 1fr; }
  .dashboard-header { grid-template-columns: 1fr; }
  .dashboard-header h1 { font-size: 49px; }
  .dashboard-meta { align-items: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .success-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .success-grid > div, .success-grid > div:not(:first-child) { padding: 0; border: 0; }
  .bar-row { grid-template-columns: 85px 1fr 22px; }
  .dialog-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
