/* theDial — style.css v5.14.0 — Built: 2026-06-08 — Fix: sticky dial-header gap, page-app height stacking */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:       #0CAFFF;
  --blue-dim:   #0090d4;
  --blue-glow:  rgba(12,175,255,0.12);
  --ink:        #1A1D1E;
  --ink-mid:    #2C3033;
  --surface:    #F7F8F8;
  --surface-2:  #ECEEF0;
  --white:      #FFFFFF;
  --muted:      #6B7280;
  --border:     rgba(26,29,30,0.1);
  --border-mid: rgba(26,29,30,0.18);
  --green:      #2A9D6E;
  --red:        #C0392B;
  --shadow:     0 2px 12px rgba(26,29,30,0.08);
  --shadow-lg:  0 8px 32px rgba(26,29,30,0.12);
}
html { font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--surface); color: var(--ink); min-height: 100vh; }

.page { display: none; }
.page.active { display: flex; min-height: 100vh; }

/* ══ LANDING ══ */
#page-landing { flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--ink); padding: 40px 20px; }
.landing-logo { font-size: 64px; font-weight: 700; color: white; letter-spacing: -2px; line-height: 1; margin-bottom: 6px; }
.landing-logo span { color: var(--blue); }
.landing-tagline { font-size: 12px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 3px; font-weight: 500; margin-bottom: 48px; }
.landing-input { width: 300px; padding: 15px 24px; font-family: 'DM Mono', monospace; font-size: 15px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; color: white; outline: none; text-align: center; transition: all 0.2s; margin-bottom: 10px; display: block; letter-spacing: 1px; }
.landing-input::placeholder { color: rgba(255,255,255,0.2); font-size: 13px; letter-spacing: 0; font-family: 'Inter', sans-serif; }
.landing-input:focus { border-color: var(--blue); background: rgba(255,255,255,0.1); }
.landing-btn { width: 300px; padding: 15px; background: var(--blue); border: none; border-radius: 50px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all 0.2s; }
.landing-btn:hover { background: white; }
.landing-err { color: var(--blue); font-size: 13px; margin-top: 12px; min-height: 20px; }
.landing-hint { font-size: 12px; color: rgba(255,255,255,0.2); margin-top: 16px; }

/* ══ DOOR ══ */
#page-door { flex-direction: column; align-items: center; justify-content: center; background: var(--ink); padding: 40px 20px; }
.door-logo { font-size: 38px; font-weight: 700; color: white; letter-spacing: -1px; margin-bottom: 40px; }
.door-logo span { color: var(--blue); }
.doors { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; }
.door-btn { padding: 20px 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; cursor: pointer; text-align: left; transition: all 0.2s; display: flex; align-items: center; gap: 16px; }
.door-btn:hover { background: rgba(12,175,255,0.1); border-color: var(--blue); transform: translateX(3px); }
.door-icon { font-size: 24px; }
.door-title { font-size: 16px; font-weight: 600; color: white; margin-bottom: 2px; }
.door-sub { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ══ CODE ENTRY ══ */
#page-code { flex-direction: column; align-items: center; justify-content: center; background: var(--ink); padding: 40px 20px; text-align: center; }
.code-logo { font-size: 38px; font-weight: 700; color: white; letter-spacing: -1px; margin-bottom: 6px; }
.code-logo span { color: var(--blue); }
.code-sub { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 28px; }
.code-tabs { display: flex; gap: 6px; margin-bottom: 24px; }
.code-tab { padding: 9px 22px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: rgba(255,255,255,0.4); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.code-tab.active { background: var(--blue); border-color: var(--blue); color: var(--ink); font-weight: 600; }
.code-panel { display: none; width: 100%; max-width: 320px; flex-direction: column; gap: 10px; }
.code-panel.active { display: flex; }
.code-input { width: 100%; padding: 14px 20px; font-family: 'DM Mono', monospace; font-size: 15px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: white; outline: none; text-align: center; transition: all 0.2s; letter-spacing: 1px; }
.code-input.text-input { font-family: 'Inter', sans-serif; letter-spacing: 0; }
.code-input::placeholder { color: rgba(255,255,255,0.2); font-size: 13px; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.code-input:focus { border-color: var(--blue); }
.code-btn { padding: 14px; background: var(--blue); border: none; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all 0.2s; }
.code-btn:hover { background: white; }
.code-btn.green { background: var(--green); color: white; }
.code-err { color: var(--blue); font-size: 13px; min-height: 20px; }
.invite-preview { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 18px; text-align: center; display: none; }
.invite-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.invite-word { font-family: 'DM Mono', monospace; font-size: 20px; color: var(--blue); letter-spacing: 1px; margin-bottom: 10px; }
.reroll-btn { padding: 7px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: rgba(255,255,255,0.4); font-family: 'Inter', sans-serif; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.reroll-btn:hover { border-color: var(--blue); color: var(--blue); }
.reroll-note { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 8px; }
.back-link { margin-top: 20px; background: none; border: none; color: rgba(255,255,255,0.25); font-family: 'Inter', sans-serif; font-size: 13px; cursor: pointer; }

/* ══ ONBOARDING ══ */
#page-onboard { flex-direction: column; align-items: center; justify-content: center; background: var(--ink); padding: 40px 20px; text-align: center; }
.onboard-logo { font-size: 32px; font-weight: 700; color: white; letter-spacing: -1px; margin-bottom: 4px; }
.onboard-logo span { color: var(--blue); }
.onboard-title { font-size: 22px; font-weight: 600; color: white; margin-bottom: 6px; margin-top: 24px; }
.onboard-sub { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 28px; line-height: 1.6; max-width: 300px; }
.onboard-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.prog-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: all 0.2s; }
.prog-dot.active { background: var(--blue); width: 20px; border-radius: 3px; }
.prog-dot.done { background: var(--green); }
.onboard-step { width: 100%; max-width: 360px; }
.onboard-question { font-size: 18px; font-weight: 600; color: white; margin-bottom: 4px; }
.onboard-hint { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.onboard-skip { margin-top: 12px; background: none; border: none; color: rgba(255,255,255,0.2); font-family: 'Inter', sans-serif; font-size: 13px; cursor: pointer; }

/* Typeahead - dark version for onboarding */
.typeahead-wrap { position: relative; width: 100%; }
.typeahead-input { width: 100%; padding: 13px 18px; font-family: 'Inter', sans-serif; font-size: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: white; outline: none; transition: all 0.2s; }
.typeahead-input::placeholder { color: rgba(255,255,255,0.25); }
.typeahead-input:focus { border-color: var(--blue); }
.typeahead-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--ink-mid); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; z-index: 50; display: none; }
.typeahead-dropdown.open { display: block; }
.typeahead-item { padding: 11px 14px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.1s; border-bottom: 1px solid rgba(255,255,255,0.06); }
.typeahead-item:last-child { border-bottom: none; }
.typeahead-item:hover { background: rgba(12,175,255,0.1); }
.typeahead-name { font-size: 14px; font-weight: 500; color: white; }
.typeahead-meta { font-size: 12px; color: rgba(255,255,255,0.35); }
.onboard-select { width: 100%; padding: 13px 18px; font-family: 'Inter', sans-serif; font-size: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: white; outline: none; appearance: none; margin-top: 8px; }
.onboard-select option { background: var(--ink-mid); color: white; }
.onboard-textarea { width: 100%; padding: 13px 18px; font-family: 'Inter', sans-serif; font-size: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: white; outline: none; resize: vertical; min-height: 64px; margin-top: 8px; }
.onboard-textarea::placeholder { color: rgba(255,255,255,0.25); }
.onboard-textarea:focus { border-color: var(--blue); }

/* ══ APP SHELL ══ */
/* ══ APP SHELL ══════════════════════════════════════════════════════════════ */
#page-app { flex-direction: column; }

/* ── UNIVERSAL TOP BAR ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 200;
  background: white; border-bottom: 1px solid #E5E7EB;
  display: flex; align-items: center; gap: 0; padding: 0;
}
.topbar-logo {
  width: 200px; flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-right: 1px solid #F3F4F6; height: 100%;
}
.topbar-wordmark { font-size: 17px; font-weight: 700; color: #111827; letter-spacing: -0.3px; font-family: 'Inter', sans-serif; }
.topbar-wordmark span { color: #0CAFFF; }
.topbar-search-wrap {
  flex: 1; display: flex; align-items: center; padding: 0 16px; gap: 10px; height: 100%;
}
.topbar-search {
  flex: 1; max-width: 480px; position: relative;
}
.topbar-search input {
  width: 100%; padding: 9px 16px 9px 38px;
  border: 1.5px solid #E5E7EB; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: #111827;
  outline: none; background: #F9FAFB; transition: all 0.15s;
}
.topbar-search input:focus { border-color: #0CAFFF; background: white; }
.topbar-search input::placeholder { color: #9CA3AF; }
.topbar-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #9CA3AF; pointer-events: none;
}
.topbar-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #9CA3AF; cursor: pointer; background: none; border: none; display: none;
  font-size: 16px; line-height: 1; padding: 0;
}
.topbar-location {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1.5px solid #E5E7EB; border-radius: 50px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #374151;
  white-space: nowrap; transition: all 0.15s; background: white;
}
.topbar-location:hover { border-color: #0CAFFF; color: #0CAFFF; }
.topbar-map-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 16px;
  border: 1.5px solid #E5E7EB; border-radius: 50px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #374151;
  white-space: nowrap; transition: all 0.15s; background: white;
}
.topbar-map-btn:hover { border-color: #0CAFFF; color: #0CAFFF; }
.topbar-right {
  display: flex; align-items: center; gap: 10px; padding: 0 20px; margin-left: auto;
}
.topbar-bell {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #E5E7EB; background: white; display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: #6B7280;
  transition: border-color 0.15s;
}
.topbar-bell:hover { border-color: #0CAFFF; }
.topbar-bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  border-radius: 50px; background: #0CAFFF; color: #0D0F12; font-size: 10px;
  font-weight: 700; display: none; align-items: center; justify-content: center;
  border: 2px solid white; padding: 0 3px;
}
.topbar-user {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border: 1.5px solid #E5E7EB; border-radius: 50px; cursor: pointer;
  transition: border-color 0.15s; background: white;
}
.topbar-user:hover { border-color: #0CAFFF; }
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #0CAFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #0D0F12; flex-shrink: 0;
}
.topbar-username { font-size: 13px; font-weight: 600; color: #111827; }

/* ── SIDEBAR ── */
.sidebar {
  width: 200px;
  background: linear-gradient(180deg, #f0f4fa 0%, #e8eef7 60%, #e2eaf4 100%) !important;
  display: flex; flex-direction: column; padding: 0;
  position: fixed; top: 56px; left: 0; bottom: 0; z-index: 100;
  border-right: 1px solid #D1D5DB;
  box-shadow: 2px 0 8px rgba(0,0,0,0.06);
  overflow-y: auto;
}
.sidebar-user-section {
  padding: 16px 12px 12px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sidebar-user-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px;
  border-radius: 10px; cursor: pointer; transition: background 0.15s;
}
.sidebar-user-row:hover { background: rgba(0,0,0,0.05); }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #0CAFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #0D0F12; flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #1e2d45; }
.sidebar-user-link { font-size: 11px; color: #4B6080; margin-top: 1px; }
.nav-items { display: flex; flex-direction: column; gap: 1px; padding: 10px 8px; flex: 1; }
.nav-btn {
  width: 100%; padding: 8px 10px; border-radius: 8px; background: transparent;
  border: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  color: #1e2d45; transition: all 0.15s; position: relative;
  font-family: 'Inter', sans-serif; text-align: left;
}
.nav-btn:hover { background: rgba(30,45,69,0.08); color: #1e2d45; }
.nav-btn.active { background: rgba(12,175,255,0.15); color: #0284c7; border-left: 3px solid #0CAFFF; padding-left: 7px; }
.nav-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-label { font-size: 13px; font-weight: 500; }
.nav-badge { font-size: 10px; font-weight: 700; background: #0CAFFF; color: white; border-radius: 50px; padding: 1px 7px; margin-left: auto; display: none; }
.nav-badge.show { display: block; }
.nav-soon { font-size: 9px; font-weight: 600; background: rgba(0,0,0,0.07); color: #9CA3AF; border-radius: 50px; padding: 2px 6px; margin-left: auto; }
.sidebar-divider { height: 1px; background: rgba(0,0,0,0.08); margin: 4px 4px; }
.sidebar-network-glance {
  padding: 12px 16px; border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: auto;
}
.sidebar-network-title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #9CA3AF; margin-bottom: 10px; }
.sidebar-network-row { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; }
.sidebar-network-label { font-size: 12px; color: #4B5563; }
.sidebar-network-val { font-size: 12px; font-weight: 600; color: #1e2d45; font-family: 'DM Mono', monospace; }
.sidebar-network-link { font-size: 11px; color: #0284c7; cursor: pointer; margin-top: 8px; display: block; }
.sidebar-network-link:hover { text-decoration: underline; }

/* ── MAIN CONTENT ── */
.main { margin-left: 200px; margin-top: 56px; flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 56px); background: #F8F9FB; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #D1D5DB #F0F4FA; }
.screen { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.screen.active { display: flex; }
.dial-screen { padding: 0; background: #F8F9FB; min-height: calc(100vh - 56px); width: 100%; overflow-y: auto; display: block; scrollbar-width: thin; scrollbar-color: #D1D5DB #F3F4F6; }

/* dial-header now redundant (topbar handles it) but keep for compat */
.dial-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; background: white; border-bottom: 1px solid #F3F4F6; margin-bottom: 0; }
.dial-header-left h1 { font-size: 22px; font-weight: 700; color: #111827; letter-spacing: -0.5px; }
.dial-header-left p { font-size: 13px; color: #9CA3AF; margin-top: 2px; }
.dial-header-right { display: none; }

/* ══ FIND ══ */
.search-hero { background: var(--ink); padding: 40px 44px 52px; position: relative; overflow: hidden; }
.search-hero::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(12,175,255,0.1); pointer-events: none; }
.search-greeting { font-size: 12px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 2px; font-weight: 500; margin-bottom: 6px; }
.search-title { font-size: 32px; font-weight: 700; color: white; line-height: 1.2; margin-bottom: 24px; max-width: 400px; letter-spacing: -0.5px; }
.search-title em { color: var(--blue); font-style: normal; }
.search-bar { position: relative; max-width: 520px; }
.search-input { width: 100%; padding: 15px 52px 15px 20px; font-family: 'Inter', sans-serif; font-size: 15px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: white; outline: none; transition: all 0.2s; }
.search-input::placeholder { color: rgba(255,255,255,0.25); }
.search-input:focus { border-color: var(--blue); background: rgba(255,255,255,0.09); }
.search-go { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 8px; background: var(--blue); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.search-go:hover { background: white; }
.search-go svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.quick-searches { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.quick-chip { padding: 6px 14px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.45); font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
.quick-chip:hover { background: rgba(12,175,255,0.15); border-color: var(--blue); color: var(--blue); }
.results-area { padding: 32px 44px; flex: 1; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-heading { font-size: 18px; font-weight: 600; }
.results-heading span { color: var(--blue); }
.results-list { display: flex; flex-direction: column; gap: 10px; }
/* Result cards — no rings, left border color = trust level */
.result-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--surface-2); border-radius: 12px; padding: 20px; transition: all 0.15s; position: relative; animation: fadeIn 0.25s ease both; overflow: visible; }
.result-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.result-card.has-l1 { border-left-color: var(--blue); }
.result-card.has-personal { border-left-color: var(--green); }
.result-card.top-result::after { content: 'TOP REC'; position: absolute; top: 12px; right: 16px; background: var(--blue); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 50px; }

/* Score pill — replaces the ring */
.score-pill { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.score-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.score-dot.strong { background: var(--green); }
.score-dot.some { background: var(--blue); }
.score-dot.weak { background: var(--surface-2); }
.score-dot.personal { background: var(--green); }
.score-num-text { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.result-body { flex: 1; min-width: 0; }
.result-name { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 2px; }
.result-meta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; margin-bottom: 10px; }

/* Level labels */
.level-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 8px 0 4px; }
.level-label.l1 { color: var(--blue); }
.level-label.l2 { color: var(--muted); }

.result-recs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.rec-person { display: flex; align-items: center; gap: 8px; }
.rec-avatar { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.rec-avatar.l1 { background: var(--blue); color: var(--ink); }
.rec-avatar.l2 { background: var(--surface-2); color: var(--muted); }
.rec-person-name { font-size: 13px; font-weight: 500; }
.rec-note { font-size: 12px; color: var(--muted); font-style: italic; margin-left: 32px; margin-top: -2px; }
.extended-recs { margin-top: 6px; padding: 7px 12px; background: var(--surface); border-radius: 8px; font-size: 12px; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.extended-recs:hover { background: var(--surface-2); color: var(--ink); }
.extended-recs-content { margin-top: 8px; display: none; }
.extended-recs-content.open { display: block; }

/* Actions row — add rec left outline, call/website right filled */
.result-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 6px; }
.result-actions-left { display: flex; gap: 6px; }
.result-actions-right { display: flex; gap: 6px; }
.action-btn { padding: 7px 14px; border-radius: 7px; border: 1px solid var(--border-mid); background: transparent; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all 0.15s; }
.action-btn:hover { background: var(--ink); color: white; border-color: var(--ink); }
.action-btn.call { background: var(--blue); color: var(--ink); border-color: var(--blue); font-weight: 600; }
.action-btn.call:hover { background: var(--blue-dim); color: white; }
.action-btn.view { background: var(--ink); color: white; border-color: var(--ink); font-weight: 600; }
.action-btn.view:hover { background: var(--blue); color: var(--ink); }

.empty-results { text-align: center; padding: 40px 20px; }
.empty-icon { font-size: 48px; display: block; margin-bottom: 16px; opacity: 0.3; }
.empty-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-sub { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 300px; margin: 0 auto 16px; }
.recent-recs-fallback { margin-top: 24px; text-align: left; }
.recent-recs-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 10px; }

/* ══ REC SCREEN ══ */
.rec-screen { padding: 44px; max-width: 640px; }
.screen-heading { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.screen-heading em { color: var(--blue); font-style: normal; }
.screen-sub { font-size: 14px; color: var(--muted); margin-bottom: 36px; line-height: 1.6; }
.rec-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.form-input, .form-select, .form-textarea { padding: 12px 16px; font-family: 'Inter', sans-serif; font-size: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); outline: none; transition: border-color 0.2s; width: 100%; appearance: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--surface-2); }
.form-textarea { resize: vertical; min-height: 80px; }
.rec-typeahead-wrap { position: relative; }
.rec-typeahead-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; z-index: 50; display: none; box-shadow: var(--shadow-lg); }
.rec-typeahead-dropdown.open { display: block; }
.rec-typeahead-item { padding: 11px 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.1s; border-bottom: 1px solid var(--border); }
.rec-typeahead-item:last-child { border-bottom: none; }
.rec-typeahead-item:hover { background: var(--surface); }
.rec-typeahead-name { font-size: 14px; font-weight: 500; }
.rec-typeahead-meta { font-size: 12px; color: var(--muted); }
.rec-typeahead-new { font-size: 12px; color: var(--blue); font-weight: 500; }
.verdict-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.verdict-btn { flex: 1; padding: 14px; border: none; background: var(--white); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); border-right: 1px solid var(--border); }
.verdict-btn:last-child { border-right: none; }
.verdict-btn.yes.selected { background: rgba(42,157,110,0.08); color: var(--green); font-weight: 600; }
.verdict-btn.no.selected { background: rgba(192,57,43,0.06); color: var(--red); font-weight: 600; }
.privacy-toggle { display: flex; gap: 6px; }
.priv-btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: 50px; background: transparent; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--muted); transition: all 0.15s; }
.priv-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-glow); }
.submit-rec { padding: 15px 36px; border-radius: 10px; background: var(--ink); color: white; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.submit-rec:hover { background: var(--blue); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ══ MY DIAL — DASHBOARD REDESIGN ══ */
/* dial-screen defined above with screen CSS */
.dial-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: white; border-bottom: 1px solid #F3F4F6; margin-bottom: 0; }
.dial-header-left h1 { font-size: 24px; font-weight: 700; color: #111827; letter-spacing: -0.5px; }
.dial-header-left p { font-size: 13px; color: #9CA3AF; margin-top: 2px; }
.dial-header-right { display: flex; align-items: center; gap: 10px; }
.dial-notif-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E5E7EB; background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6B7280; position: relative; }
.dial-notif-badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #0CAFFF; color: #0D0F12; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid white; }

/* Network reach card */
.reach-card { margin: 0 16px 16px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.reach-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.reach-sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.reach-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.reach-tier { background: var(--white); padding: 14px 10px; text-align: center; cursor: pointer; transition: background 0.15s; }
.reach-tier:hover { background: var(--surface); }
.reach-tier.active { background: var(--surface); }
.reach-tier-num { font-size: 11px; font-weight: 700; color: var(--blue); border: 2px solid var(--blue); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; }
.reach-tier-num.inactive { color: var(--muted); border-color: var(--border-mid); }
.reach-tier-label { font-size: 10px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.reach-tier-count { font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 700; color: var(--blue); line-height: 1; }
.reach-tier-count.inactive { color: var(--muted); }
.reach-tier-recs { font-size: 10px; color: var(--muted); margin-top: 2px; }
.reach-total { background: var(--surface); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.reach-total-text { font-size: 13px; color: var(--ink); }
.reach-total-text strong { color: var(--blue); font-size: 18px; font-family: 'DM Mono', monospace; }
.reach-total-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Dashboard grid */
.dial-dashboard { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 24px; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dash-card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.dash-card-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.dci-orange { background: rgba(249,115,22,0.1); }
.dci-blue { background: var(--blue-glow); }
.dci-purple { background: rgba(139,92,246,0.1); }
.dci-gold { background: rgba(255,215,0,0.15); }
.dci-green { background: rgba(42,157,110,0.1); }
.dash-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 50px; background: var(--blue); color: white; }
.dash-view-all { font-size: 12px; color: var(--blue); cursor: pointer; font-weight: 500; }
.dash-card-body { padding: 12px 16px; }

/* Request items */
.request-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.request-item:last-child { border-bottom: none; }
.req-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
.req-info { flex: 1; min-width: 0; }
.req-text { font-size: 13px; color: var(--ink); line-height: 1.4; }
.req-text strong { font-weight: 600; }
.req-loc { font-size: 11px; color: var(--muted); margin-top: 1px; }
.req-actions { display: flex; gap: 5px; }
.req-btn { padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; font-family: 'Inter', sans-serif; white-space: nowrap; }
.req-btn-rec { background: var(--blue); color: var(--ink); }
.req-btn-dismiss { background: var(--surface-2); color: var(--muted); }

/* Answer items */
.answer-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.answer-item:last-child { border-bottom: none; }
.ans-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; margin-top: 2px; }
.ans-info { flex: 1; }
.ans-who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ans-biz { font-size: 14px; font-weight: 600; color: var(--ink); }
.ans-reason { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 1px; }
.ans-btn { padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; border: 1px solid var(--blue); background: transparent; color: var(--blue); font-family: 'Inter', sans-serif; white-space: nowrap; margin-top: 4px; }

/* Connection items — new design */
.conn-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.conn-row:last-child { border-bottom: none; }
.conn-row-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; position: relative; }
.conn-online-dot { position: absolute; bottom: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid white; }
.conn-row-info { flex: 1; min-width: 0; }
.conn-row-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.conn-row-code { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }
.conn-row-status { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 50px; }
.crs-accepted { background: rgba(42,157,110,0.1); color: var(--green); }
.conn-row-weight { font-size: 12px; color: var(--muted); }
.conn-row-menu { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; color: var(--muted); border: none; background: transparent; font-size: 16px; }
.conn-row-menu:hover { background: var(--surface-2); }

/* My recs — new design */
.rec-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.rec-row:hover { background: var(--surface); margin: 0 -16px; padding: 10px 16px; border-radius: 0; }
.rec-row:last-child { border-bottom: none; }
.rec-row-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.rec-row-info { flex: 1; min-width: 0; }
.rec-row-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-row-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rec-row-impact { font-size: 10px; color: var(--muted); margin-top: 2px; }
.rec-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rec-row-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 50px; }
.rrb-yes { background: rgba(42,157,110,0.1); color: var(--green); }
.rrb-no { background: rgba(192,57,43,0.08); color: var(--red); }
.rec-row-edit { font-size: 11px; color: var(--blue); padding: 3px 8px; border: 1px solid var(--blue); border-radius: 6px; cursor: pointer; background: transparent; font-family: 'Inter', sans-serif; }

/* Grow reach / invite card */
.grow-card { background: var(--ink); border-radius: 14px; padding: 16px; margin: 0 16px 16px; }
.grow-card-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.grow-card-sub { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; margin-bottom: 14px; }
.grow-code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.grow-code { font-family: 'DM Mono', monospace; font-size: 16px; color: var(--blue); font-weight: 500; flex: 1; }
.grow-copy-btn { padding: 8px 14px; background: var(--blue); border: none; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.grow-stats { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.35); }
.grow-stats strong { color: white; font-size: 14px; font-family: 'DM Mono', monospace; }

/* ══ ADMIN ══ */
#page-admin { flex-direction: column; }
.admin-wrap { padding: 44px; width: 100%; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.stat-num { font-family: 'DM Mono', monospace; font-size: 42px; color: var(--blue); line-height: 1; margin-bottom: 6px; font-weight: 500; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.admin-section { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.admin-section-title { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 20px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 600; }
.admin-table td { padding: 12px 20px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }
.code-pill { font-family: 'DM Mono', monospace; font-size: 11px; background: var(--blue-glow); color: var(--blue-dim); padding: 3px 9px; border-radius: 50px; }
.user-link { font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.biz-link { font-weight: 600; cursor: pointer; color: var(--ink); }
.biz-link:hover { color: var(--blue); }
.btn { padding: 9px 18px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: var(--blue); color: var(--ink); }
.btn-gray { background: var(--muted); color: white; }
.btn-gray:hover { background: var(--ink-mid); }
.btn-blue { background: var(--blue); color: var(--ink); }
.btn-blue:hover { background: var(--blue-dim); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { opacity: 0.85; }
.btn-sm { padding: 5px 10px; font-size: 11px; }

/* ══ BUSINESS PROFILE ══ */
#page-biz { flex-direction: column; }
.biz-wrap { padding: 44px; width: 100%; max-width: 820px; }

/* ══ USER-FACING BUSINESS PROFILE ══ */
.ubiz-header { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ubiz-name { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.ubiz-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ubiz-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ubiz-badge.dialone { background: var(--blue-glow); color: var(--blue-dim); border: 1px solid var(--blue); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 50px; }
.ubiz-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ubiz-score-box { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface); border-radius: 10px; border: 1px solid var(--border); }
.ubiz-score-num { font-family: 'DM Mono', monospace; font-size: 28px; font-weight: 500; color: var(--blue); }
.ubiz-score-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ubiz-warning { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(192,57,43,0.06); border: 1px solid rgba(192,57,43,0.2); border-radius: 8px; font-size: 13px; color: var(--red); font-weight: 500; }
.ubiz-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.ubiz-action-primary { padding: 11px 22px; background: var(--blue); color: var(--ink); border: none; border-radius: 9px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.ubiz-action-primary:hover { background: var(--blue-dim); color: white; }
.ubiz-action-secondary { padding: 11px 22px; background: transparent; color: var(--ink); border: 1px solid var(--border-mid); border-radius: 9px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; text-decoration: none; }
.ubiz-action-secondary:hover { background: var(--ink); color: white; }
.ubiz-section { margin-bottom: 24px; }
.ubiz-section-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 12px; }
.ubiz-description { font-size: 14px; line-height: 1.7; color: var(--ink); padding: 16px; background: var(--surface); border-radius: 10px; }
.ubiz-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.ubiz-social-link { padding: 6px 14px; border: 1px solid var(--border); border-radius: 50px; font-size: 12px; color: var(--muted); text-decoration: none; transition: all 0.15s; }
.ubiz-social-link:hover { border-color: var(--blue); color: var(--blue); }
.ubiz-rec-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.ubiz-rec-item:last-child { border-bottom: none; }
.ubiz-rec-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ubiz-rec-avatar.l1 { background: var(--blue); color: var(--ink); }
.ubiz-rec-avatar.l2-yes { background: var(--green); color: white; font-size: 16px; }
.ubiz-rec-avatar.l2-no { background: var(--red); color: white; font-size: 16px; }
.ubiz-rec-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.ubiz-rec-verdict { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 50px; display: inline-block; margin-left: 6px; }
.ubiz-rec-verdict.yes { background: rgba(42,157,110,0.1); color: var(--green); }
.ubiz-rec-verdict.no { background: rgba(192,57,43,0.08); color: var(--red); }
.ubiz-rec-reason { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 3px; line-height: 1.5; }
.ubiz-claim-box { padding: 20px; background: var(--surface); border: 1.5px dashed var(--border-mid); border-radius: 12px; text-align: center; margin-top: 24px; }
.ubiz-claim-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ubiz-claim-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.biz-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; gap: 20px; }
.biz-name { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.biz-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.biz-score-box { background: var(--ink); border-radius: 12px; padding: 20px 28px; text-align: center; flex-shrink: 0; }
.biz-score-num { font-family: 'DM Mono', monospace; font-size: 42px; color: var(--blue); line-height: 1; font-weight: 500; }
.biz-score-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.35); margin-top: 4px; }
.biz-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 28px; }
.biz-stat { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.biz-stat-num { font-family: 'DM Mono', monospace; font-size: 24px; margin-bottom: 3px; font-weight: 500; }
.biz-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.biz-recs-list { display: flex; flex-direction: column; }
.biz-rec-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.biz-rec-item:last-child { border-bottom: none; }
.biz-rec-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.biz-rec-dot.yes { background: var(--green); }
.biz-rec-dot.no { background: var(--red); }
.biz-rec-text { font-size: 14px; line-height: 1.5; }
.biz-rec-who { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sparkline-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.sparkline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sparkline-title { font-size: 13px; font-weight: 600; }
.sparkline-trend.up { color: var(--green); font-size: 12px; font-weight: 500; }
.sparkline-trend.flat { color: var(--muted); font-size: 12px; }
.utm-box { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.utm-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 14px; }
.utm-toggle { display: flex; gap: 6px; margin-bottom: 12px; }
.utm-tab { padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all 0.15s; }
.utm-tab.active { background: var(--surface); color: var(--ink); border-color: var(--border-mid); }
.utm-url { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 10px 12px; word-break: break-all; line-height: 1.6; margin-bottom: 10px; }
.utm-url span { color: var(--blue); }

/* TOAST */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: white; padding: 12px 24px; border-radius: 50px; font-size: 13px; font-weight: 500; opacity: 0; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); z-index: 999; white-space: nowrap; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* Dashboard responsive grid */
@media (max-width: 900px) {
  .sidebar { width: 68px; }
  .sidebar-brand, .sidebar-tagline, .sidebar-section-label, .nav-label, .nav-soon, .nav-user-info, .nav-settings-btn span { display: none; }
  .nav-btn { justify-content: center; }
  .main { margin-left: 68px !important; }
  .sidebar-ring { margin: 0 auto; }
}
@media (min-width: 901px) {
  .dial-dash-row1 { grid-template-columns: 1fr 1fr !important; }
  .dial-dash-row2 { grid-template-columns: 1fr 1fr 1fr !important; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ══ MOBILE RESPONSIVE ══════════════════════════════════════════════════════ */

/* Bottom nav — mobile only */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: white; border-top: 1px solid #E5E7EB;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-items {
  display: flex; align-items: center; justify-content: space-around;
}
.bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; color: #9CA3AF; transition: color 0.15s;
  min-width: 56px;
}
.bottom-nav-btn.active { color: #0CAFFF; }
.bottom-nav-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav-label { font-size: 10px; font-weight: 600; }
.bottom-nav-badge {
  position: absolute; top: 2px; right: 8px;
  min-width: 16px; height: 16px; border-radius: 50px;
  background: #0CAFFF; color: #0D0F12; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white; padding: 0 2px;
}

/* Mobile search overlay */
.mobile-search-overlay {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: white; padding: 12px 16px;
}
.mobile-search-overlay.open { display: flex; flex-direction: column; }
.mobile-search-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}

@media (max-width: 768px) {
  /* Hide desktop sidebar */
  .sidebar { display: none !important; }

  /* Hide desktop topbar search bar and location/map */
  .topbar-search-wrap { display: none !important; }
  .topbar { padding: 0 12px; }
  .topbar-logo { width: auto; border-right: none; padding: 0; gap: 8px; }
  .topbar-wordmark { font-size: 16px; }
  .topbar-right { padding: 0; gap: 8px; margin-left: auto; }

  /* Show mobile search icon in topbar */
  .topbar-search-mobile-btn { display: flex !important; }

  /* Main content — no sidebar offset, add bottom nav padding */
  .main {
    margin-left: 0 !important;
    margin-top: 56px !important;
    padding-bottom: 72px;
  }

  /* Show bottom nav */
  .bottom-nav { display: block; }

  /* Search screen — single column */
  #screen-search .dial-screen > div {
    padding: 20px 16px 32px !important;
  }
  #screen-search h1 {
    font-size: 26px !important;
  }
  #screen-search > div > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #categoryGrid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Results — single column, right rail below */
  #resultsList + div { /* right rail */
    position: static !important;
    margin-top: 16px;
  }
  #screen-search div[style*="grid-template-columns:1fr 280px"] {
    grid-template-columns: 1fr !important;
  }

  /* Tier tabs — horizontal scroll */
  div[style*="display:flex;gap:0;border:1px solid #E5E7EB;border-radius:12px"] {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* Cards — full width */
  .result-card { margin: 0 0 10px !important; }

  /* My Dial — stack everything */
  .dial-header { padding: 16px !important; }
  .dial-header h1 { font-size: 20px !important; }

  /* Reach card — hide 4-col, show simplified */
  div[style*="grid-template-columns:1fr 1fr 1fr 1.4fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Dashboard two-col → single col */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:16px"],
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:20px"] {
    grid-template-columns: 1fr !important;
  }

  /* People You Trust + Your Recs row */
  div[style*="grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px"] {
    grid-template-columns: 1fr !important;
  }

  /* Biz detail page */
  .main[style*="margin-left:200px"] {
    margin-left: 0 !important;
  }

  /* Connections two-col */
  div[style*="grid-template-columns:1fr 1fr;gap:20px;align-items:start"] {
    grid-template-columns: 1fr !important;
  }

  /* Hide network map on mobile (too small to be useful) */
  #networkMapContainer { height: 280px !important; }

  /* All Recs / All Connections screens */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Biz profile hero */
  div[style*="position:relative;height:200px"] {
    height: 160px !important;
  }

  /* Score box on biz detail */
  div[style*="min-width:90px"] {
    min-width: 70px !important;
    padding: 8px 10px !important;
  }
  div[style*="font-size:38px;font-weight:800"] {
    font-size: 30px !important;
  }

  /* Action bar on biz detail */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Toast positioning */
  .toast { bottom: 80px !important; }

  /* Scrollbar hidden on mobile */
  .main { scrollbar-width: none !important; }
  .main::-webkit-scrollbar { display: none; }
  .dial-screen { scrollbar-width: none !important; }
  .dial-screen::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  #categoryGrid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  #screen-search h1 { font-size: 22px !important; }
}
/* ══ END MOBILE ═════════════════════════════════════════════════════════════ */