[hidden] {
  display: none !important;
}
:root {
  --brand-navy: #1a73e8;
  --brand-green: #34a853;
  --brand-gold: #fbbc04;
  --ink-900: #202124;
  --ink-700: #3c4043;
  --ink-500: #5f6368;
  --paper: #f8f9fa;
  --card: #ffffff;
  --line: #dadce0;
  --sun: #fbbc04;
  --mint: #34a853;
  --amber: #fbbc04;
  --steel: #1a73e8;
  --rose: #ea4335;
  --glass: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--ink-900);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-group,
.mapboxgl-ctrl-icon,
.mapboxgl-ctrl-attrib-button,
.mapboxgl-ctrl-attrib {
  display: none !important;
}

h1,
h2,
h3,
strong {
  font-family: "Roboto", sans-serif;
  letter-spacing: -0.02em;
}

/* ─── FULL PAGE MAP ─── */
#startupMap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* ─── OVERLAY: BRAND TOP LEFT ─── */
.overlay-brand {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  max-width: 276px;
  animation: fadeSlideIn 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}
.overlay-brand > * {
  pointer-events: auto;
}

.brand-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.brand-logo__mark {
  width: 88px;
  height: auto;
  flex: 0 0 auto;
}

.brand-logo__type {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  min-width: 0;
}

.brand-logo__mapof,
.brand-logo__growth {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand-logo__mapof {
  color: var(--brand-navy);
  font-size: 1.02rem;
}

.brand-logo__growth {
  color: var(--brand-green);
  font-size: 1rem;
}

.profile-btn {
  display: inline-block;
  flex: 0 1 auto;
  max-width: min(100%, 11rem);
  margin-left: auto;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-900);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow);
}

.profile-btn:hover {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
  transform: translateY(-1px);
}

.profile-btn.is-logged-in {
  background: var(--mint);
  color: #fff;
  border-color: var(--mint);
}

.profile-btn.is-logged-in:hover {
  opacity: 0.85;
}

.brand-tagline {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  font-size: 0.71rem;
  color: var(--ink-600);
  line-height: 1.28;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-tagline__text {
  margin: 0;
  flex: 1;
}

.brand-tagline__dismiss {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-500);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.brand-tagline__dismiss:hover,
.brand-tagline__dismiss:focus-visible {
  background: rgba(148, 163, 184, 0.16);
  color: var(--ink-900);
  outline: none;
}

.brand-notifications {
  display: none;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.brand-notification {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.brand-notification:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.brand-notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ink-300);
}

.brand-notification strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: -0.01em;
}

.brand-notification span {
  color: var(--ink-600);
  line-height: 1.45;
  font-weight: 400;
}

.brand-notification--warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--card);
}

.brand-notification--warning::before {
  background: #f59e0b; /* Amber */
}

.hero__chips {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 0.1rem;
}

.hero__chips-wrap {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.hero__chips-toggle {
  display: none;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  border-radius: 12px;
  padding: 0.38rem 0.42rem 0.38rem 0.38rem;
  font-size: 0.64rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--legend-accent) 28%, white);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  color: var(--ink-900);
}

.legend-chip__swatch {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.legend-chip__label {
  min-width: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.legend-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  border-radius: 999px;
  color: var(--brand-navy);
  padding: 0;
  margin-left: auto;
  flex: 0 0 auto;
  opacity: 0.9;
  transition:
    opacity 0.2s,
    transform 0.2s,
    background 0.2s;
}

.legend-info-btn span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.legend-info-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #ffffff;
}

.legend-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  transform: none;
  background: var(--ink-900);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.58rem 0.68rem;
  border-radius: 12px;
  white-space: normal;
  width: 100%;
  min-width: 180px;
  max-width: 240px;
  line-height: 1.4;
  z-index: 10;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.legend-tooltip.is-visible {
  display: block;
}

/* ─── OVERLAY: METRICS TOP RIGHT ─── */
.overlay-metrics {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.6rem;
  animation: fadeSlideIn 0.5s ease-out 0.1s both;
}

.metric-pill {
  background: var(--glass);

  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
  min-width: 72px;
}

.metric-pill span {
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.metric-pill strong {
  font-size: 1.3rem;
  margin-top: 0.15rem;
}

/* ─── OVERLAY: FILTERS LEFT ─── */
.overlay-filters {
  position: fixed;
  top: clamp(18rem, 45vh, 44rem);
  left: 1rem;
  transform: none;
  z-index: 5;
  animation: fadeSlideIn 0.5s ease-out 0.2s both;
  max-height: calc(100vh - 2rem);
}

.toggle-panel-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: var(--glass);

  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
  color: var(--ink-900);
}

.toggle-panel-btn:hover {
  background: rgba(255, 255, 255, 0.96);
}

.filters-body {
  margin-top: 0.6rem;
  background: var(--glass);

  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.35s ease;
  padding: 0 1rem;
}

.filters-body.is-open {
  max-height: min(460px, calc(100vh - 5.5rem));
  opacity: 1;
  padding: 1rem;
  overflow-y: auto;
}

.filters-body label {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.filters-body label:first-child {
  margin-top: 0;
}

.filters-body select,
#resetFilters {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  margin-top: 0.3rem;
}

#resetFilters {
  margin-top: 0.9rem;
  background: var(--ink-900);
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  border: none;
}

#resetFilters:hover {
  transform: translateY(-1px);
}

/* ─── DIRECTORY DRAWER TOGGLE ─── */
.toggle-directory-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--ink-900);
  color: #f8fafc;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: fadeUp 0.5s ease-out 0.3s both;
}

.toggle-directory-btn svg {
  opacity: 0.8;
}

.toggle-directory-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow);
}

/* ─── DIRECTORY DRAWER RIGHT ─── */
.overlay-directory {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  z-index: 8;
  background: var(--glass);

  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.25rem;
}

.overlay-directory.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed #cbd5e1;
}

.drawer-head h2 {
  font-size: 1.1rem;
}

.drawer-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink-700);
  line-height: 1;
  padding: 0.2rem;
}

.drawer-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #cbd5e1;
}

.drawer-section h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-500);
}

/* ─── STARTUP CARDS ─── */
.startup-grid {
  display: grid;
  gap: 0.85rem;
}

.startup-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 0.6rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.startup-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.startup-card--highlight {
  border-color: #0f172a;
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.12),
    0 16px 30px rgba(15, 23, 42, 0.16);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  background: var(--card);
  flex-shrink: 0;
}

.name-stage h3 {
  font-size: 0.95rem;
}

.name-stage p {
  margin-top: 0.1rem;
  color: var(--ink-500);
  font-size: 0.78rem;
}

.availability-badge {
  display: inline-flex;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}

.meta-line {
  font-size: 0.82rem;
  color: var(--ink-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.8);
  padding: 0.18rem 0.48rem;
  font-size: 0.7rem;
}

.tag--need {
  border-color: #fbbf24;
  background: #fef3c7;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.save-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.save-btn:hover,
.save-btn.is-saved {
  background: #fef3c7;
  border-color: #f59e0b;
  color: var(--ink-900);
}

.ghost-btn,
.reactivate-btn {
  border: 1px solid var(--ink-900);
  background: #fff;
  color: var(--ink-900);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.ghost-btn:hover:not([disabled]),
.reactivate-btn:hover {
  background: var(--ink-900);
  color: #fff;
  transform: translateY(-1px);
}

.ghost-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.response {
  font-size: 0.76rem;
  color: var(--ink-500);
}

.response-accountability {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(241, 245, 249, 0.85); /* Slate 100 with opacity */
  box-shadow: var(--shadow);
}

/* popup variant: tiny inline chips */
.response-accountability--popup {
  margin: 0.1rem 0 0.25rem;
  flex-direction: row;
  gap: 0.3rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.response-accountability--popup .response-accountability__item {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.38rem;
  border-bottom: none;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--line);
}

.response-accountability--popup .response-accountability__item:last-child {
  padding-bottom: 0.18rem;
}

.response-accountability--popup .response-accountability__item span {
  font-size: 0.62rem;
  line-height: 1;
}

.response-accountability--popup .response-accountability__item strong {
  font-size: 0.62rem;
  font-weight: 700;
  background: none;
  padding: 0;
  box-shadow: none;
}

.response-accountability__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
}

.response-accountability__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.response-accountability__item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-600);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.response-accountability__item strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.startup-grid--alumni .startup-card {
  opacity: 0.75;
  background: rgba(248, 250, 252, 0.7);
}

/* ─── MAP POPUP STYLE ─── */
.mapboxgl-popup-content {
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.15),
    0 4px 12px rgba(15, 23, 42, 0.08) !important;
  min-width: 240px;
  background: white !important;
  font-family: "Roboto", sans-serif;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-top-color: white !important;
}
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
  border-bottom-color: white !important;
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: white !important;
}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: white !important;
}

.mapboxgl-popup-close-button {
  font-size: 1.25rem;
  right: 12px;
  top: 10px;
  color: var(--ink-500);
  transition: all 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: transparent;
}

.mapboxgl-popup-close-button:hover {
  color: var(--ink-900);
  background: var(--paper);
}

.popup-card {
  padding: 0.85rem;
}

.popup-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.popup-head-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.popup-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.popup-logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink-900);
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.popup-card h3 {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 0;
  line-height: 1.2;
}

.popup-meta {
  font-size: 0.76rem;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.popup-pitch {
  font-size: 0.8rem;
  color: var(--ink-700);
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-badge {
  display: inline-flex;
  font-weight: 700;
  font-size: 0.66rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.popup-status-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.popup-status-row .popup-badge {
  margin-bottom: 0;
}

.popup-status-info {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.popup-status-info:hover,
.popup-status-info[aria-expanded="true"] {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.popup-status-explainer {
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.68rem;
  line-height: 1.35;
}

.popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.popup-tags .tag {
  font-size: 0.66rem;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-weight: 500;
}

.popup-tags .tag--more {
  font-size: 0.64rem;
  color: var(--ink-500);
  background: transparent;
  border: none;
  padding: 0.2rem 0.25rem;
  font-weight: 600;
}

.popup-connect-btn {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: var(--brand-navy);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.popup-connect-btn:hover {
  background: #102544;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.popup-connect-btn:active {
  background: #0b1d35;
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-connect-btn:disabled {
  background: var(--line);
  color: var(--ink-500);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.popup-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.popup-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.popup-view-btn:hover {
  background: #f1f5f9;
  color: var(--ink-900);
  border-color: #cbd5e1;
}

.popup-save-btn {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink-700);
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-save-btn:hover {
  background: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.popup-save-btn:active {
  transform: translateY(0);
}

.popup-save-btn.is-saved {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

/* ─── PROFILE MODAL EXTRAS ─── */
.logout-btn {
  width: 100%;
  padding: 0.55rem;
  margin-top: 0.6rem;
  border: 1px solid var(--rose);
  border-radius: 10px;
  background: #fff;
  color: var(--rose);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.logout-btn:hover {
  background: var(--rose);
  color: #fff;
}

.delete-profile-btn {
  width: 100%;
  padding: 0.55rem;
  margin-top: 0.4rem;
  border: 1px solid #b71c1c;
  border-radius: 10px;
  background: #fff;
  color: #b71c1c;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.delete-profile-btn:hover {
  background: #b71c1c;
  color: #fff;
}

#profileForm input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  margin-top: 0.3rem;
}

/* ─── SAVED BUTTON ─── */
.toggle-saved-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 8.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--glass);

  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background 0.2s,
    transform 0.2s;
  color: var(--ink-900);
  animation: fadeSlideIn 0.5s ease-out 0.3s both;
}

.toggle-saved-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.saved-badge {
  background: var(--amber);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
}

/* ─── SAVED DRAWER ─── */
.overlay-saved {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  z-index: 8;
  background: var(--glass);

  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.25rem;
}

.overlay-saved.is-open {
  transform: translateX(0);
}

.saved-empty {
  color: var(--ink-500);
  font-size: 0.88rem;
  text-align: center;
  margin-top: 2rem;
}

.saved-list {
  display: grid;
  gap: 0.75rem;
}

.saved-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.saved-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.85);
  box-shadow: var(--shadow);
}

.saved-card:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: 2px;
}

.saved-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.saved-card-head strong {
  font-size: 0.92rem;
}

.saved-meta {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-bottom: 0.25rem;
}

.saved-pitch {
  font-size: 0.82rem;
  color: var(--ink-700);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.saved-remove-btn {
  border: 1px solid var(--rose);
  background: #fff;
  color: var(--rose);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.saved-remove-btn:hover {
  background: var(--rose);
  color: #fff;
}

/* ─── MODAL ─── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.5);

  z-index: 20;
  padding: 1rem;
}

.modal.is-open {
  display: grid;
}

.modal__content {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal__close {
  position: absolute;
  right: 0.8rem;
  top: 0.5rem;
  border: 0;
  font-size: 1.8rem;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.modal__rules {
  color: var(--ink-700);
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
}

#sendMessageBtn {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 0.7rem 0.8rem;
  font: inherit;
  margin-top: 0.8rem;
  background: var(--ink-900);
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#sendMessageBtn:hover {
  transform: translateY(-1px);
}

textarea,
.modal select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  margin-top: 0.3rem;
}

.modal label {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-feedback {
  min-height: 1rem;
  margin: 0.5rem 0 0;
  color: var(--steel);
  font-size: 0.82rem;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ─── INBOX BUTTON ─── */
.toggle-inbox-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--glass);

  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background 0.2s,
    transform 0.2s;
  color: var(--ink-900);
  animation: fadeSlideIn 0.5s ease-out 0.35s both;
}

.toggle-inbox-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.inbox-badge {
  background: var(--rose);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
}

/* ─── NOTIFICATIONS BUTTON ─── */
.toggle-notifications-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 18.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--glass);

  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background 0.2s,
    transform 0.2s;
  color: var(--ink-900);
  animation: fadeSlideIn 0.5s ease-out 0.25s both;
}

.toggle-notifications-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.notifications-badge {
  background: var(--steel);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  line-height: 1.3;
}

/* ─── NOTIFICATIONS DRAWER ─── */
.overlay-notifications {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  z-index: 8;
  background: var(--glass);

  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.25rem;
}

.overlay-notifications.is-open {
  transform: translateX(0);
}

.notification-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.notification-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: var(--shadow);
}

.notification-card--unread {
  border-color: rgba(14, 165, 233, 0.32);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.notification-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.notification-card-head strong {
  font-size: 0.92rem;
}

.notification-card-time {
  font-size: 0.74rem;
  color: var(--ink-500);
  white-space: nowrap;
}

.notification-card-text {
  color: var(--ink-700);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.notification-card-meta {
  color: var(--ink-500);
  font-size: 0.76rem;
}

/* ─── INBOX DRAWER ─── */
.overlay-inbox {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  z-index: 8;
  background: var(--glass);

  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.25rem;
}

.overlay-inbox.is-open {
  transform: translateX(0);
}

.inbox-empty {
  color: var(--ink-500);
  font-size: 0.88rem;
  text-align: center;
  margin-top: 2rem;
}

.inbox-list {
  display: grid;
  gap: 0.75rem;
}

.inbox-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.inbox-card--unread {
  background: var(--card);
  border-color: rgba(96, 165, 250, 0.68);
  box-shadow: var(--shadow);
}

.inbox-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.inbox-card-head strong {
  font-size: 0.92rem;
}

.inbox-card--unread .inbox-card-head strong {
  color: #0f3d91;
}

.inbox-time {
  font-size: 0.72rem;
  color: var(--ink-500);
}

.inbox-card--unread .inbox-time {
  color: #2563eb;
}

.inbox-topic {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 0.3rem;
}

.inbox-card--unread .inbox-topic {
  color: #1d4ed8;
}

.inbox-msg {
  font-size: 0.82rem;
  color: var(--ink-700);
  line-height: 1.45;
}

.inbox-card--unread .inbox-msg {
  color: #1e3a8a;
}

/* ─── ONBOARDING MODAL ─── */
.modal__content--onboarding {
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 480px;
}

.onboarding-icons {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.modal__content--onboarding h2 {
  font-family: "Roboto", sans-serif;
  font-size: 1.6rem;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.modal__content--onboarding p {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.onboarding-btn {
  margin-top: 1rem;
  width: 100%;
  border-radius: 12px;
  padding: 0.8rem;
  border: none;
  background: var(--brand-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.onboarding-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ─── PROFILE MODAL ─── */

.modal__content--profile {
  width: min(580px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 1.75rem;
  scrollbar-width: thin;
}

.modal__content--profile::-webkit-scrollbar {
  width: 5px;
}

.modal__content--profile::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.profile-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.profile-edit-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.profile-dashboard {
  display: grid;
  gap: 1rem;
}

.profile-summary-card,
.profile-analytics,
.profile-analytics-hub {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.profile-analytics-hub {
  display: grid;
  gap: 1rem;
}

.profile-analytics-hub__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-analytics-hub__head h3 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
}

.profile-analytics-hub__head p {
  margin: 0.25rem 0 0;
  color: var(--ink-600);
  font-size: 0.84rem;
  line-height: 1.5;
}

.profile-summary-card__hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.profile-summary-card__logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-900);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.profile-summary-card__identity h3 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
}

.profile-summary-card__identity p {
  margin: 0.3rem 0 0;
  color: var(--ink-700);
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-summary-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-summary-card__item {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.8rem 0.85rem;
  overflow: hidden;
}

.profile-summary-card__item span,
.profile-summary-card__section span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-500);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-summary-card__item strong,
.profile-summary-card__item strong a {
  display: block;
  color: var(--ink-900);
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.profile-summary-card__section + .profile-summary-card__section {
  margin-top: 0.75rem;
}

.profile-analytics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-analytics-card {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.9rem;
}

.profile-analytics-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-500);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-analytics-card strong {
  display: block;
  color: var(--ink-900);
  font-family: "Roboto", sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.profile-analytics-card small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-600);
  font-size: 0.78rem;
  line-height: 1.4;
}

.profile-analytics-trends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.profile-trend-card {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.profile-trend-card__head {
  margin-bottom: 1rem;
}

.profile-trend-card__head strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.profile-trend-card__head span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-600);
  font-size: 0.8rem;
}

.analytics-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  min-height: 160px;
  margin-top: 1rem;
}

.analytics-bar {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.analytics-bar__value {
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 700;
}

.analytics-bar__track {
  width: 100%;
  max-width: 28px;
  min-height: 88px;
  border-radius: 999px;
  background: #eef2f7;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.05);
}

.analytics-bar__fill {
  width: 100%;
  border-radius: 999px;
  min-height: 8px;
}

.analytics-bar--views .analytics-bar__fill {
  background: var(--brand-navy);
}

.analytics-bar--saves .analytics-bar__fill {
  background: var(--sun);
}

.analytics-bar--requests .analytics-bar__fill {
  background: var(--mint);
}

.analytics-bar__label {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-analytics__insights {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Custom scrollbar for insights */
.profile-analytics__insights::-webkit-scrollbar {
  width: 5px;
}
.profile-analytics__insights::-webkit-scrollbar-track {
  background: transparent;
}
.profile-analytics__insights::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.profile-insight-row,
.profile-analytics-empty {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.profile-insight-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.profile-insight-row strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
}

.profile-insight-row span {
  display: block;
  color: var(--ink-700);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-insight-row time {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-500);
  font-size: 0.74rem;
}

.profile-analytics-empty {
  color: var(--ink-600);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Auth section */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  background: #fff;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.auth-btn--google {
  border-color: #4285f4;
  color: #333;
}

.auth-btn--google:hover {
  background: #f0f4ff;
}

.auth-btn--google svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-700);
  font-size: 0.82rem;
  margin: 0.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.email-auth-toggle {
  display: flex;
  gap: 0.5rem;
}

.email-auth-toggle button {
  flex: 1;
  padding: 0.65rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.email-auth-toggle button:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.email-auth-form {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.email-auth-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.auth-link-btn {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--brand-navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  margin-top: 0.15rem;
  cursor: pointer;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

/* Forgot password separate panel */
.forgot-password-panel {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.forgot-password-title {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-900);
  margin: 0;
}

.forgot-password-desc {
  font-size: 0.84rem;
  color: var(--ink-600);
  margin: 0;
  line-height: 1.45;
}

.forgot-password-panel input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.forgot-password-panel .auth-submit-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.forgot-password-panel .auth-submit-row button {
  flex: 1;
  padding: 0.65rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.forgot-password-panel .auth-submit-row button:first-child {
  background: var(--ink-900);
  color: #f8fafc;
}

.forgot-password-panel .auth-submit-row button:last-child {
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--ink-900);
}

.email-auth-form .auth-submit-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.email-auth-form .auth-submit-row button {
  flex: 1;
  padding: 0.65rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.email-auth-form .auth-submit-row button[type="submit"] {
  background: var(--ink-900);
  color: #f8fafc;
}

.email-auth-form .auth-submit-row button[type="button"] {
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--ink-900);
}

.auth-feedback {
  color: #dc2626;
  font-size: 0.82rem;
  min-height: 1rem;
  text-align: center;
}

/* Profile form sections */
.profile-section-head {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-900);
  margin: 1.2rem 0 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.profile-section-head:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.segment-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.segment-toggle__btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-700);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s,
    transform 0.1s;
}

.segment-toggle__btn:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
}

.segment-toggle__btn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #f8fafc;
}

.segment-form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-700);
  line-height: 1.45;
}

.segment-specific-fields {
  margin-top: 0.2rem;
}

.label-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-700);
  margin-left: 0.25rem;
}

/* Logo upload */
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.logo-preview {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--glass);
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-700);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.logo-upload-row input[type="file"] {
  font-size: 0.82rem;
  max-width: 220px;
}

/* Address suggestions */
.address-wrapper {
  position: relative;
}

.address-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 200px;
  overflow-y: auto;
}

.address-suggestions li {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}

.address-suggestions li:hover {
  background: #f1f5f9;
}

/* Tag input */
.tag-input-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.3rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.3rem;
  background: #fff;
  min-height: 38px;
}

.tag-input-wrap input {
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.85rem;
  flex: 1;
  min-width: 80px;
  padding: 0.25rem 0;
  background: transparent;
}

.tag-input-tags {
  display: contents;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-900);
  font-weight: 500;
  white-space: nowrap;
}

.tag-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink-700);
  padding: 0;
}

.tag-chip button:hover {
  color: #dc2626;
}

/* Profile form input styling (shared) */
.modal__content--profile input[type="text"],
.modal__content--profile input[type="url"],
.modal__content--profile input[type="number"],
.modal__content--profile select,
.modal__content--profile textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  margin-top: 0.3rem;
}

.modal__content--profile textarea {
  min-height: 60px;
  resize: vertical;
}

.modal__content--profile .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Save button */
#saveProfileBtn {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1rem;
  background: var(--ink-900);
  color: #f8fafc;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s;
}

#saveProfileBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.profile-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.profile-cancel-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.profile-cancel-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Logout button in profile */
#logoutBtn {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #fca5a5;
  padding: 0.6rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
  transition: background 0.2s;
}

#logoutBtn:hover {
  background: #fef2f2;
}

@media (max-width: 640px) {
  .profile-modal__head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-summary-card__hero,
  .profile-summary-card__meta,
  .profile-analytics__grid,
  .profile-analytics-trends,
  .profile-form-actions {
    grid-template-columns: 1fr;
  }

  .profile-summary-card__hero {
    align-items: flex-start;
  }
}

/* ─── SUGGESTION CHIPS ─── */

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.suggestion-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.76rem;
  background: #f8fafc;
  color: var(--ink-900);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}

.suggestion-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Conditional availability field */
.conditional-field {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.conditional-field label {
  margin-top: 0;
}

/* Segment badge on cards */
.segment-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.2rem;
}

.segment-badge--investor {
  background: #ede9fe;
  color: #7c3aed;
  border: 1px solid #c4b5fd;
}

.segment-badge--mentor {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

/* ─── FLOATING CHAT WIDGET ─── */

.floating-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(380px, calc(100vw - 2rem));
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 25;
  overflow: hidden;
}

.floating-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--ink-900);
  color: #f8fafc;
  font-size: 0.9rem;
}

.floating-chat__head strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-chat__close {
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.floating-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
  max-height: 280px;
  scrollbar-width: thin;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.chat-bubble--sent {
  align-self: flex-end;
  background: #e2e8f0;
  border-bottom-right-radius: 4px;
}

.chat-bubble--received {
  align-self: flex-start;
  background: #eff6ff;
  border-bottom-left-radius: 4px;
}

.chat-bubble__topic {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-700);
  margin-bottom: 0.2rem;
}

.chat-bubble__time {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-700);
  margin-top: 0.25rem;
  text-align: right;
}

.floating-chat__input {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.floating-chat__input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}

.floating-chat__input button {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--ink-900);
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
}

.floating-chat__input button:hover {
  background: #1e293b;
}

/* Clickable inbox cards */
.inbox-card[role="button"] {
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}

.inbox-card[role="button"]:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.inbox-card--unread[role="button"]:hover {
  background: var(--card);
}

/* ─── RESPONSIVE: MEDIUM ─── */
@media (max-width: 860px) {
  .toggle-saved-btn {
    bottom: 5.4rem;
    right: 1rem;
  }

  .toggle-inbox-btn {
    bottom: 9.25rem;
    right: 1rem;
  }

  .toggle-notifications-btn {
    bottom: 13.1rem;
    right: 1rem;
  }
}

/* ─── RESPONSIVE: SMALL ─── */
@media (max-width: 640px) {
  .modal {
    padding: 0.55rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal__content {
    width: min(420px, calc(100vw - 1.1rem));
    margin: 0.35rem auto;
    padding: 0.95rem 0.9rem 0.9rem;
    border-radius: 10px;
    max-height: calc(100dvh - 1.1rem);
    overflow-y: auto;
  }

  .modal__content--profile {
    width: min(440px, calc(100vw - 1.1rem));
    padding: 1rem 0.95rem 1.05rem;
    max-height: calc(100dvh - 1.1rem);
  }

  .modal__close {
    top: 0.35rem;
    right: 0.45rem;
    font-size: 1.45rem;
  }

  .modal__rules {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
  }

  .overlay-brand {
    max-width: calc(100vw - 5.5rem);
    padding: 0.75rem 1rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
    padding: 0.42rem 0.5rem;
  }

  .hero__chips-toggle {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-700);
    cursor: pointer;
    margin-top: 0.3rem;
  }

  .hero__chips {
    display: none;
    margin-top: 0.35rem;
  }

  .hero__chips.is-open {
    display: flex;
  }

  .overlay-metrics {
    top: 5.75rem;
    bottom: auto;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    max-width: 92px;
  }

  .metric-pill {
    padding: 0.35rem 0.5rem;
    flex-direction: column;
    gap: 0.14rem;
    border-radius: 10px;
  }

  .metric-pill span {
    font-size: 0.62rem;
  }

  .metric-pill strong {
    font-size: 0.75rem;
  }

  .overlay-filters {
    top: auto;
    bottom: 1.5rem;
    left: 1rem;
    transform: none;
    max-height: calc(100vh - 3rem);
    pointer-events: none;
  }

  .overlay-filters .toggle-panel-btn,
  .overlay-filters .filters-body {
    pointer-events: auto;
  }

  .overlay-filters.filters-elevated {
    z-index: 8;
  }

  .filters-body.is-open {
    max-height: min(320px, calc(100vh - 8rem));
  }

  .toggle-directory-btn {
    bottom: 1.5rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .toggle-directory-btn:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .toggle-saved-btn {
    bottom: 5.4rem;
    right: 1rem;
  }

  .toggle-inbox-btn {
    bottom: 9.25rem;
    right: 1rem;
  }

  .toggle-notifications-btn {
    bottom: 13.1rem;
    right: 1rem;
  }

  .overlay-directory,
  .overlay-inbox,
  .overlay-saved,
  .overlay-notifications {
    width: 100vw;
  }

  /* ── Map popup compact on mobile ── */
  .mapboxgl-popup-content {
    min-width: 0;
  }

  .popup-card {
    padding: 0.6rem;
  }

  .popup-head {
    gap: 0.4rem;
    margin-bottom: 0.25rem;
  }

  .popup-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
  }

  .popup-card h3 {
    font-size: 0.84rem;
  }

  .popup-meta {
    font-size: 0.68rem;
    margin-bottom: 0.08rem;
  }

  .popup-badge {
    font-size: 0.58rem;
    padding: 0.15rem 0.38rem;
    margin-bottom: 0.18rem;
  }

  .popup-status-row {
    gap: 0.25rem;
    margin-bottom: 0.12rem;
  }

  .popup-status-row .popup-badge {
    margin-bottom: 0;
  }

  .popup-status-info {
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.62rem;
  }

  .popup-status-explainer {
    font-size: 0.6rem;
    padding: 0.22rem 0.35rem;
    margin-bottom: 0.18rem;
  }

  .popup-pitch {
    font-size: 0.72rem;
    -webkit-line-clamp: 1;
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
  }

  .popup-tags {
    gap: 0.18rem;
    margin-bottom: 0.25rem;
  }

  .popup-tags .tag {
    font-size: 0.59rem;
    padding: 0.12rem 0.35rem;
  }

  .popup-actions {
    gap: 0.28rem;
    margin-top: 0.18rem;
  }

  .popup-connect-btn {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
  }

  .popup-save-btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.72rem;
  }

  .popup-view-btn {
    margin-top: 0.18rem;
    padding: 0.32rem;
    font-size: 0.7rem;
  }
}
