/* Chaim Gluck — Security Partner Referral Network
   Clean executive light theme, mobile-first B2B craft */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-ring: rgba(37, 99, 235, 0.18);
  --accent: #0ea5e9;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 28px -14px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 12px 36px -8px rgba(15, 23, 42, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* --- Hero Header (Public Form) --- */
.hero-header {
  background: linear-gradient(145deg, #0f172a 0%, #172554 55%, #1e293b 100%);
  color: #ffffff;
  padding: 40px 20px 64px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(25px, 4.2vw, 34px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
}

.hero-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 630px;
}

/* --- Form Container & Cards --- */
.form-shell {
  max-width: 720px;
  margin: -36px auto 56px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-hint {
  margin: -10px 0 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.req {
  color: var(--danger);
  margin-left: 2px;
}

/* --- Form Grid & Inputs --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.input::placeholder, .textarea::placeholder {
  color: #94a3b8;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-ring);
}

.input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* --- Tappable Multi-Select Pills --- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
  text-align: left;
}

.pill-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.pill-btn[aria-pressed="true"] {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #1e40af;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.pill-check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: transparent;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.pill-btn[aria-pressed="true"] .pill-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* --- Coverage Area / Nationwide + Regions + 50 States --- */
.nationwide-btn {
  width: 100%;
  text-align: left;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 14px;
}

.nationwide-btn:hover {
  border-color: var(--primary);
  background: #f1f5f9;
}

.nationwide-btn[aria-pressed="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.nationwide-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
}

.nationwide-badge {
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.nationwide-btn[aria-pressed="true"] .nationwide-badge {
  background: #0ea5e9;
  color: #ffffff;
}

.region-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.region-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-right: 4px;
}

.region-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.region-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.region-pill.active {
  background: #dbeafe;
  border-color: var(--primary);
  color: #1e40af;
}

.selected-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 600;
}

.selected-chip button {
  border: none;
  background: none;
  padding: 0 2px;
  color: #3b82f6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.clear-link {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.clear-link:hover {
  color: var(--danger);
}

.state-picker-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: #fcfdff;
  margin-bottom: 16px;
}

.state-search-input {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}

.state-pill {
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  transition: all 0.12s ease;
}

.state-pill small {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-pill:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.state-pill[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.state-pill[aria-pressed="true"] small {
  color: #dbeafe;
}

/* --- Segmented Control --- */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--surface-subtle);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.seg-btn {
  min-height: 42px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.seg-btn[aria-pressed="true"] {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* --- Checkbox Card --- */
.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  margin-top: 14px;
}

.check-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.check-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.check-card-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
}

.btn-dark:hover:not(:disabled) {
  background: #1e293b;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-2);
  border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-subtle);
  color: var(--ink);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--ink-3);
}

.btn-danger-ghost:hover:not(:disabled) {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-lg {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* --- Alerts & Honeypot --- */
.alert-error {
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.trust-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 12px 0 0;
}

/* --- Confirmation View --- */
.confirm-card {
  text-align: center;
  padding: 36px 26px;
}

.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 2px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.confirm-title {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.confirm-sub {
  margin: 0 auto 22px;
  color: var(--ink-3);
  max-width: 480px;
}

.summary-box {
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.summary-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-k {
  width: 115px;
  flex-shrink: 0;
  color: var(--ink-3);
  font-weight: 600;
}

.summary-v {
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}

/* --- Footer --- */
.site-footer {
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-admin {
  color: var(--ink-3);
  font-weight: 600;
}

.footer-admin:hover {
  color: var(--ink);
}

/* ==========================================================================
   DIRECTORY PAGE
   ========================================================================== */

.dir-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dir-topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dir-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dir-brand h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.count-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  white-space: nowrap;
}

.dir-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-top-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 38px;
  padding: 6px 12px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-top-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
}

.dir-container {
  max-width: 1160px;
  margin: 20px auto 56px;
  padding: 0 18px;
}

/* --- Login Screen --- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #f8fafc 45%, #f8fafc 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 26px;
}

.login-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.login-card p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-3);
}

/* --- Search & Filter Dock --- */
.search-dock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 42px 11px 42px;
  font-size: 15.5px;
  border: 1.5px solid var(--border-strong);
  border-radius: 11px;
  background: #f8fafc;
  color: var(--ink);
  transition: all 0.15s ease;
}

.search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.show {
  display: flex;
}

.search-clear:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.filter-select {
  flex: 1 1 175px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 14px;
  color: var(--ink-2);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.fav-toggle {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fav-toggle[aria-pressed="true"] {
  background: var(--amber-soft);
  border-color: #f59e0b;
  color: #92400e;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- Partner Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 19px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.partner-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.partner-card.is-fav {
  border-color: #fcd34d;
}

.p-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.p-company {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}

.p-person {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

.p-person span {
  color: var(--ink-3);
  font-weight: 400;
}

.p-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.12s ease;
}

.icon-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.icon-btn.fav-active {
  color: #f59e0b;
  background: var(--amber-soft);
}

.icon-btn.del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* --- Coverage & Tags --- */
.coverage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.state-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nationwide-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
}

.focus-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}

.cities-line {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.tag-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tag-indigo { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.tag-cyan { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.tag-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tag-rose { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.tag-violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.tag-emerald { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tag-slate { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }

/* --- 1-Tap Contact Action Bar --- */
.contact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 7px;
}

.contact-btn {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.14s ease;
}

.contact-btn:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.contact-btn.call-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.contact-btn.call-primary:hover {
  background: #1e293b;
  color: #ffffff;
}

.contact-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: -4px;
}

/* --- Notes Blocks --- */
.public-notes {
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  padding: 8px 11px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--ink-2);
}

.public-notes strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.private-notes-box {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.private-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.private-notes-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.save-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  min-height: 18px;
}

.private-notes-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.private-notes-input {
  flex: 1;
  min-height: 56px;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  resize: vertical;
  line-height: 1.4;
}

.private-notes-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: auto;
  padding-top: 4px;
}

.mini-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

/* --- Empty State --- */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.empty-state p {
  margin: 0 auto 20px;
  max-width: 440px;
  color: var(--ink-3);
  font-size: 14.5px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 860px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-header {
    padding: 28px 16px 52px;
  }
  .form-shell {
    padding: 0 12px;
    margin-top: -28px;
  }
  .card {
    padding: 20px 16px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .dir-topbar-inner {
    padding: 10px 14px;
  }
  .dir-container {
    padding: 0 12px;
    margin-top: 14px;
  }
  .dir-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .filter-select {
    flex: 1 1 100%;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .summary-row {
    flex-direction: column;
    gap: 2px;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-panel {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
}
