/* ownable-v2.css — Shared styles for Ownable V2 (Agent Layer)
 * Extends the same design tokens from the original Ownable suite.
 */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --teal:        #044C66;
  --teal-dark:   #02303F;
  --teal-mid:    #0A6A8A;
  --mint:        #EBF8F7;
  --divider:     #A8E0DD;
  --white:       #FFFFFF;
  --off-white:   #F5F9F9;
  --text:        #09191F;
  --muted:       #6B8A90;
  --light:       #E2ECEE;
  --red:         #B83232;
  --red-light:   #FEE8E8;
  --green:       #0A6650;
  --green-light: #D4F0EA;
  --amber:       #7A4A0A;
  --amber-light: #FEF3C7;
  --radius:      16px;
  --radius-sm:   10px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', serif; }

/* ── Nav ───────────────────────────────────────────────── */
.v2-nav {
  background: var(--teal-dark);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.v2-brand {
  font-family: 'Fraunces', serif;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.v2-brand span { color: var(--divider); }
.v2-nav-right { display: flex; align-items: center; gap: 12px; }
.v2-nav-link {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.v2-nav-link:hover { color: rgba(255,255,255,.9); }
.v2-nav-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.6);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.v2-nav-btn:hover {
  border-color: rgba(255,255,255,.5);
  color: rgba(255,255,255,.9);
}

/* ── Hero ──────────────────────────────────────────────── */
.v2-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.v2-hero-inner { max-width: 720px; margin: 0 auto; }
.v2-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.v2-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--divider);
}
.v2-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.v2-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal-dark);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.3);
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }

.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn-teal:hover { background: var(--teal-mid); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--light);
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--teal); background: var(--mint); }

.btn-small {
  padding: 6px 14px;
  font-size: .78rem;
  border-radius: var(--radius-sm);
}

/* ── Wrap / Section ────────────────────────────────────── */
.v2-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.v2-section { padding: 4rem 1.5rem; }
.v2-section-inner { max-width: 1100px; margin: 0 auto; }
.v2-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.v2-section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

/* ── Cards ─────────────────────────────────────────────── */
.v2-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.v2-card-body { padding: 1.5rem; }

/* ── Form Fields ───────────────────────────────────────── */
.v2-field { display: flex; flex-direction: column; gap: 4px; }
.v2-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.v2-field .hint {
  font-size: .72rem;
  color: var(--muted);
}
.v2-input {
  border: 1.5px solid var(--light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .92rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.v2-input:focus { border-color: var(--teal); }
.v2-input::placeholder { color: var(--muted); }
textarea.v2-input { resize: vertical; min-height: 80px; }
.v2-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.v2-checkbox-row input[type=checkbox] { accent-color: var(--teal); width: 16px; height: 16px; }
.v2-field-grid { display: grid; gap: 1rem; }
.v2-field-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .v2-field-grid-2 { grid-template-columns: 1fr; } }
.v2-slug-preview {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}
.v2-slug-preview code {
  background: var(--off-white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .75rem;
}
.v2-error {
  font-size: .78rem;
  color: var(--red);
  margin-top: 2px;
}
.v2-success-card {
  text-align: center;
  padding: 3rem 2rem;
}
.v2-success-card h2 { margin-bottom: .75rem; }
.v2-success-card p { color: var(--muted); font-size: .92rem; }

/* ── Agent Cards ───────────────────────────────────────── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 1.25rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.agent-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-info { flex: 1; min-width: 0; }
.agent-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.agent-brokerage {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.agent-tagline {
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.agent-zips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.agent-zip-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: .68rem;
  font-weight: 600;
}

/* ── Zip Search ────────────────────────────────────────── */
.zip-search {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 2rem;
}
.zip-search .v2-input { flex: 1; }

/* ── How It Works ──────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}
.how-step {
  background: var(--white);
  padding: 2rem 1.5rem;
}
.how-num {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--light);
  line-height: 1;
  margin-bottom: .5rem;
}
.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.how-step p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 768px) { .how-grid { grid-template-columns: 1fr; } }

/* ── Dashboard Layout ──────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 920px) { .dash-layout { grid-template-columns: 1fr; } }

/* ── Prospect List ─────────────────────────────────────── */
.prospect-list { max-height: calc(100vh - 200px); overflow-y: auto; }
.prospect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--off-white);
  cursor: pointer;
  transition: background .15s;
}
.prospect-row:hover { background: var(--mint); }
.prospect-row.active { background: var(--mint); border-left: 3px solid var(--teal); }
.prospect-name {
  font-size: .88rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prospect-meta {
  font-size: .72rem;
  color: var(--muted);
}
.prospect-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.pill-new       { background: var(--light);       color: var(--muted); }
.pill-active    { background: #E8F4FD;            color: var(--teal-mid); }
.pill-has-range { background: var(--amber-light);  color: var(--amber); }
.pill-ready     { background: var(--green-light);  color: var(--green); }

/* ── Price Range Bar ───────────────────────────────────── */
.price-range-bar {
  height: 6px;
  background: var(--light);
  border-radius: 3px;
  overflow: hidden;
  width: 80px;
  flex-shrink: 0;
}
.price-range-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width .3s;
}

/* ── Prospect Detail ───────────────────────────────────── */
.detail-panel { padding: 1.5rem; }
.detail-header { margin-bottom: 1.5rem; }
.detail-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.detail-contact {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.8;
}
.detail-price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.detail-price-card {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.detail-price-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-price-val {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
}
.detail-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 1.5rem;
}
.detail-link-url {
  flex: 1;
  font-size: .78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Event Timeline ────────────────────────────────────── */
.timeline { margin-top: 1rem; }
.timeline-title {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--off-white);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.timeline-content { flex: 1; }
.timeline-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.timeline-time {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 1px;
}

/* ── Live Indicator ────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.live-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
}

/* ── Agent Bar (prospect.html branded header) ──────────── */
.agent-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agent-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-bar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.agent-bar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-bar-name {
  font-size: .88rem;
  font-weight: 600;
}
.agent-bar-brokerage {
  font-size: .72rem;
  color: var(--muted);
}
.powered-badge {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 500;
}
.powered-badge a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

/* ── Prospect Progress Steps ───────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--light);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  transition: all .3s;
}
.progress-dot.done {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}
.progress-dot.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}
.progress-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.progress-line {
  width: 48px;
  height: 2px;
  background: var(--light);
  position: relative;
  top: -14px;
}
.progress-line.done { background: var(--green); }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  padding: 2rem;
  width: 90%;
  max-width: 440px;
}
.modal-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* ── Auth Gate ─────────────────────────────────────────── */
.auth-gate {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.auth-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.auth-card p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-state p {
  font-size: .92rem;
  margin-bottom: 1rem;
}

/* ── Toast ─────────────────────────────────────────────── */
.v2-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--teal-dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  z-index: 400;
  transition: opacity .3s, transform .3s;
}
.v2-toast.hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* ── Footer ────────────────────────────────────────────── */
.v2-footer {
  background: var(--teal-dark);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.v2-footer-brand {
  font-family: 'Fraunces', serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
.v2-footer-brand span { color: var(--divider); }
.v2-footer-links {
  display: flex;
  gap: 1.5rem;
}
.v2-footer-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.v2-footer-links a:hover { color: rgba(255,255,255,.8); }
.v2-footer-fine {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  max-width: 480px;
  line-height: 1.6;
  width: 100%;
  text-align: center;
  margin-top: .5rem;
}

/* ── Utility ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── Headshot Upload ──────────────────────────────────────── */
.headshot-upload {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--light);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.headshot-upload:hover { box-shadow: 0 0 0 3px var(--divider); }
.headshot-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headshot-upload .initials {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.headshot-upload .camera-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  border: 2px solid var(--white);
  opacity: 0;
  transition: opacity .2s;
}
.headshot-upload:hover .camera-icon { opacity: 1; }
.headshot-upload.loading {
  animation: headshot-pulse 1.2s ease-in-out infinite;
}
@keyframes headshot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.headshot-upload-hint {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 6px;
}
.headshot-upload-error {
  font-size: .72rem;
  color: var(--red);
  margin-top: 4px;
}

/* ── Color Swatch Palette ─────────────────────────────────── */
.color-swatch-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s;
  border: none;
}
.color-swatch:hover {
  transform: scale(1.1);
}
.color-swatch.selected {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--teal);
}
.color-swatch-label {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Demo Banner (used by agent-dashboard impersonation) ── */
.demo-banner {
  background: #C68B2F;
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.demo-banner button {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.demo-banner button:hover { background: rgba(255,255,255,.15); }

/* ── Agent Profile Page ───────────────────────────────── */
.profile-hero {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.profile-brokerage {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}
.profile-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin: 0 auto .75rem;
  font-style: italic;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
}
.profile-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.profile-card h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.profile-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: .72rem;
  font-weight: 600;
  margin: 2px;
}

/* ── Persistent Agent Contact Card (prospect.html) ───── */
.agent-contact-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  cursor: pointer;
  border: 1.5px solid var(--light);
  transition: box-shadow .2s;
  font-family: inherit;
}
.agent-contact-pill:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.agent-contact-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.agent-contact-pill-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-contact-pill-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.agent-contact-card {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  overflow: hidden;
}
.agent-contact-card-header {
  padding: 16px;
  text-align: center;
  color: var(--white);
}
.agent-contact-card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  cursor: pointer;
}
.agent-contact-card-close:hover { color: var(--white); }
.agent-contact-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.3);
}
.agent-contact-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-contact-card-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
}
.agent-contact-card-brokerage {
  font-size: .72rem;
  opacity: .75;
}
.agent-contact-card-body {
  padding: 12px 16px;
}
.agent-contact-card-body a {
  display: block;
  padding: 6px 0;
  font-size: .82rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.agent-contact-card-body a:hover { text-decoration: underline; }
.agent-contact-card-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--light);
  text-align: center;
}

/* ── Dashboard Tabs ───────────────────────────────────── */
.dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--light);
  margin-bottom: 1.5rem;
}
.dash-tab {
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.dash-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.dash-tab:hover:not(.active) { color: var(--text); }

/* ── Profile Editor ───────────────────────────────────── */
.completeness-bar {
  height: 6px;
  background: var(--light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.completeness-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--teal);
  transition: width .4s;
}
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.specialty-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
}
.specialty-check input { accent-color: var(--teal); }
.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid var(--light);
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .v2-hero h1 { font-size: 1.8rem; }
  .v2-hero { padding: 3.5rem 1.5rem 3rem; }
  .v2-nav { padding: 10px 16px; }
  .v2-brand { font-size: 1.1rem; }
  .agent-contact-card { width: calc(100% - 40px); right: 20px; }
  .specialty-grid { grid-template-columns: 1fr; }
}
