/* Saved.css — Skyline AI · Saved companies page */

:root {
  --bg-main:      #030914;
  --bg-secondary: #0A192F;
  --bg-card:      #071527;
  --border-dark:  #0E2A47;
  --cyan:         #00E5FF;
  --cyan-soft:    rgba(0, 229, 255, 0.20);
  --white:        #FFFFFF;
  --text-muted:   #64748B;
  --text-soft:    #94A3B8;
  --text-slate:   #8892B0;

  /* Toggle accent — deliberately distinct from cyan labels/links */
  --toggle:       #FBBF24;
  --toggle-hover: #FCD34D;

  --nav-h:        88px;
  --content-max:  864px;
}

*, *::before, *::after { box-sizing: border-box; max-width: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 32px);
}

/* ============ BACKGROUND GLOWS ============ */
.bg-glow-top-right,
.bg-glow-bottom-left {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-top-right {
  top: -30%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle at center,
    rgba(0, 229, 255, 0.28) 0%,
    rgba(0, 82, 255, 0.15) 40%,
    transparent 70%);
}

.bg-glow-bottom-left {
  bottom: -25%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle at center,
    rgba(0, 229, 255, 0.20) 0%,
    rgba(0, 82, 255, 0.12) 45%,
    transparent 70%);
}

/* ============ SHELL ============ */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============ HEADER ============ */
.site-header { padding: 30px 0 8px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-logo { display: inline-flex; }
.skyline-s-logo { width: 66px; height: 62px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--white);
}
.brand-sub {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============ PAGE HEAD ============ */
.page-head { margin-top: 24px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-slate);
  margin-bottom: 8px;
}
.page-title {
  font-size: clamp(24px, 4.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--white);
}
.page-desc {
  font-size: clamp(14px, 2.6vw, 15px);
  color: var(--text-soft);
  margin: 0 0 22px;
}

/* ============ SEARCH ROW ============ */
.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 0 14px;
  height: 46px;
  color: var(--text-muted);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
}
.search-bar input::placeholder { color: var(--text-muted); }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.filter-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

/* ============ COUNTER ============ */
.counter-line {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.counter-num {
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
  margin-right: 4px;
}

/* ============ SAVED LIST ============ */
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

/* ============ CARD ============ */
.saved-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan-soft);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.saved-card:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

/* Left column */
.card-left { min-width: 0; }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  background: #0A192F;
  border: 1px solid var(--border-dark);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.avatar-leaf {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 0;
  background: linear-gradient(135deg, #00E5FF, #00EAC0);
  transform: rotate(-30deg);
  box-shadow: 0 0 8px rgba(0, 234, 192, 0.7);
}

.card-headtext { min-width: 0; }
.card-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-item svg { color: var(--cyan); flex-shrink: 0; }

.card-desc {
  margin: 8px 0 10px;
  color: var(--text-slate);
  font-size: 13px;
  line-height: 1.5;
}

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.card-date svg { color: var(--cyan); flex-shrink: 0; }

/* Right column */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.bookmark-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--cyan);
  color: #030914;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}
.bookmark-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}

.team-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-soft);
  white-space: nowrap;
}
.team-status svg { color: var(--cyan); flex-shrink: 0; }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan);
  color: #030914;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}
.card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.55);
}
.card-cta svg { color: #030914; }

.card-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.card-remove:hover {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.06);
  color: #ff8f8f;
}
.card-remove svg { color: var(--text-soft); }
.card-remove:hover svg { color: #ff8f8f; }

/* ============ FIND MORE BAR ============ */
.find-more-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 24px;
}
.find-more-bar:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* ============ FOOTER ============ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 30px;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--cyan); }
.site-footer .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #051120;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-dark);
  box-shadow: 0 -10px 40px rgba(0, 229, 255, 0.06);
  z-index: 100;
  border-radius: 16px 16px 0 0;
}
@media (min-width: 900px) {
  .bottom-nav {
    left: 50%; right: auto;
    transform: translateX(-50%);
    width: min(620px, 88%);
    border: 1px solid var(--border-dark);
    border-bottom: 0;
  }
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  transition: color 0.18s ease;
}
.nav-item svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.nav-item:hover svg,
.nav-item:hover { color: var(--cyan); }

.nav-item.active { color: var(--cyan); }
.nav-item.active svg {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.55));
}
.nav-item .active-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .site-header { padding: 22px 0 6px; }
  .skyline-s-logo { width: 48px; height: 46px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 8px; letter-spacing: 4px; }
  .page-head { margin-top: 18px; }
  .page-title { font-size: 22px; }
  .page-desc { font-size: 13px; }

  .saved-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .card-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--border-dark);
    padding-top: 12px;
    margin-top: 4px;
  }
  .bookmark-badge { order: -1; }
  .team-status { flex: 1; }
  .card-cta, .card-remove {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .card-name { font-size: 15px; }
  .card-desc { font-size: 12.5px; }
  .card-meta { font-size: 11.5px; gap: 10px; }

  .find-more-bar { font-size: 13px; padding: 14px; }
  .counter-line { font-size: 13px; }
}

@media (max-width: 400px) {
  .search-row { flex-direction: column; }
  .filter-btn { width: 100%; justify-content: center; }
}

/* ============================================================
 * SKELETON LOADING
 * ============================================================ */

.skeleton-card {
  pointer-events: none;
  opacity: 0.7;
  animation: sk-pulse 1.4s ease-in-out infinite;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-dark);
  flex-shrink: 0;
}

.skeleton-headtext {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.10);
}

.skeleton-line-sm { width: 35%; }
.skeleton-line-md { width: 70%; }
.skeleton-line-lg { width: 55%; }

.skeleton-btn-sm,
.skeleton-btn-lg {
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
}

.skeleton-btn-sm { width: 34px; height: 34px; }
.skeleton-btn-lg { width: 110px; height: 34px; }

.skeleton-line-md,
.skeleton-line-sm {
  margin: 6px 0;
}

@keyframes sk-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 0.4; }
}

/* ============================================================
 * EMPTY STATE
 * ============================================================ */
.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  border: 1.5px dashed rgba(0, 229, 255, 0.3);
  border-radius: 14px;
  color: var(--text-soft);
}
.saved-empty svg {
  color: var(--cyan);
  margin-bottom: 14px;
}
.saved-empty h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.saved-empty p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-soft);
  max-width: 320px;
}
.empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.empty-cta:hover {
  background: rgba(0, 229, 255, 0.1);
}

/* Loading spinner used in Remove button */
.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
 * PAGINATION
 * ============================================================ */

.pagination-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 20px 16px;
  background: rgba(7, 21, 39, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pagination-counter {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  text-align: center;
}

.pagination-counter strong {
  color: var(--cyan);
  font-weight: 800;
  font-size: 14px;
  margin: 0 2px;
}

.load-more-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--cyan);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.load-more-bar:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}
.load-more-bar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.load-more-bar svg {
  flex-shrink: 0;
}

/* ============================================================
 * AVATAR GRADIENT PALETTE — 41 gradients
 * ============================================================ */
.card-avatar[class*="avatar-g"],
.company-modal-avatar[class*="avatar-g"] {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  font-weight: 800;
}

.avatar-g1  { background: linear-gradient(135deg, #7c5cff 0%, #4ea8ff 100%); }
.avatar-g2  { background: linear-gradient(135deg, #ff7ad9 0%, #ff5c5c 100%); }
.avatar-g3  { background: linear-gradient(135deg, #2ad4b0 0%, #7be495 100%); }
.avatar-g4  { background: linear-gradient(135deg, #ffc15e 0%, #ff8a3d 100%); }
.avatar-g5  { background: linear-gradient(135deg, #5b6bff 0%, #3de0f0 100%); }
.avatar-g6  { background: linear-gradient(135deg, #ff6b9e 0%, #ff9472 100%); }
.avatar-g7  { background: linear-gradient(135deg, #1fb88d 0%, #a0e44a 100%); }
.avatar-g8  { background: linear-gradient(135deg, #9a5cff 0%, #ff5cd0 100%); }
.avatar-g9  { background: linear-gradient(135deg, #3b82f6 0%, #7dd3fc 100%); }
.avatar-g10 { background: linear-gradient(135deg, #ffb37a 0%, #ff6f91 100%); }
.avatar-g11 { background: linear-gradient(135deg, #5eead4 0%, #3bc9f0 100%); }
.avatar-g12 { background: linear-gradient(135deg, #ef4444 0%, #f472b6 100%); }
.avatar-g13 { background: linear-gradient(135deg, #a3b54e 0%, #34d399 100%); }
.avatar-g14 { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.avatar-g15 { background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%); }
.avatar-g16 { background: linear-gradient(135deg, #e879f9 0%, #a855f7 100%); }
.avatar-g17 { background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%); }
.avatar-g18 { background: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%); }
.avatar-g19 { background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%); }
.avatar-g20 { background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%); }
.avatar-g21 { background: linear-gradient(135deg, #bef264 0%, #22d3ee 100%); }
.avatar-g22 { background: linear-gradient(135deg, #fb7185 0%, #fbbf24 100%); }
.avatar-g23 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.avatar-g24 { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); }
.avatar-g25 { background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%); }
.avatar-g26 { background: linear-gradient(135deg, #14b8a6 0%, #84cc16 100%); }
.avatar-g27 { background: linear-gradient(135deg, #ff6fb5 0%, #ffb199 100%); }
.avatar-g28 { background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%); }
.avatar-g29 { background: linear-gradient(135deg, #10b981 0%, #fcd34d 100%); }
.avatar-g30 { background: linear-gradient(135deg, #d946ef 0%, #6366f1 100%); }
.avatar-g31 { background: linear-gradient(135deg, #2dd4bf 0%, #059669 100%); }
.avatar-g32 { background: linear-gradient(135deg, #f97316 0%, #ec4899 100%); }
.avatar-g33 { background: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%); }
.avatar-g34 { background: linear-gradient(135deg, #fbbf24 0%, #84cc16 100%); }
.avatar-g35 { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); }
.avatar-g36 { background: linear-gradient(135deg, #ef4444 0%, #a855f7 100%); }
.avatar-g37 { background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%); }
.avatar-g38 { background: linear-gradient(135deg, #f472b6 0%, #6366f1 100%); }
.avatar-g39 { background: linear-gradient(135deg, #f59e0b 0%, #ff6f61 100%); }
.avatar-g40 { background: linear-gradient(135deg, #7dd3fc 0%, #6ee7b7 100%); }
.avatar-g41 { background: linear-gradient(135deg, #a21caf 0%, #ec4899 100%); }

/* ============================================================
 * FILTER MODAL (Centered)
 * ============================================================ */

.filter-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.filter-modal-overlay[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.filter-modal-sheet {
  background: linear-gradient(180deg, #071527, #030914);
  border: 1px solid #0E2A47;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.filter-drag-handle { display: none; }

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.filter-modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}
.filter-close-btn {
  background: transparent;
  border: 0;
  color: #FFFFFF;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.filter-close-btn:hover { background: rgba(255, 255, 255, 0.06); }

.filter-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-section { display: flex; flex-direction: column; gap: 10px; }

.filter-label {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.filter-pill {
  padding: 9px 14px;
  background: transparent;
  border: 1px solid #0E2A47;
  border-radius: 8px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-pill:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: #FFFFFF;
}

.filter-pill.active {
  border-color: #00E5FF;
  color: #00E5FF;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15), 0 0 12px rgba(0, 229, 255, 0.25);
}

.filter-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid #0E2A47;
  border-radius: 8px;
  color: #94A3B8;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  width: 100%;
  text-align: left;
}
.filter-dropdown:hover { border-color: rgba(0, 229, 255, 0.35); }

.filter-dropdown-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.filter-dropdown-text {
  color: #94A3B8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-clear-btn {
  padding: 14px;
  background: transparent;
  border: 1px solid #0E2A47;
  border-radius: 8px;
  color: #00E5FF;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.filter-clear-btn:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.35);
}

.filter-apply-btn {
  padding: 14px;
  background: #00F5A0;
  border: 0;
  border-radius: 8px;
  color: #030914;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.filter-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 245, 160, 0.35);
}

.filter-match-counter {
  border-top: 1px solid #0E2A47;
  padding-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #8892B0;
}
.filter-match-counter strong {
  color: #00E5FF;
  font-weight: 700;
}

@media (max-width: 640px) {
  .filter-modal-overlay { padding: 16px; }
  .filter-modal-sheet {
    padding: 20px 16px;
    max-height: 85vh;
  }
  .filter-modal-head h2 { font-size: 18px; }
  .filter-pills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
 * SEE ALL INDUSTRIES BUTTON
 * ============================================================ */

.filter-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  color: #00E5FF;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-see-all-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: #00E5FF;
}
.filter-see-all-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
 * INDUSTRY / LOCATION / DATE MINI-MODAL
 * ============================================================ */

.industry-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 8, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.industry-modal-overlay[hidden] { display: none !important; }

.industry-modal-card {
  background: linear-gradient(180deg, #071527, #030914);
  border: 1px solid #0E2A47;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s ease;
  position: relative;
}

.industry-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #071527, #071527);
  padding-bottom: 12px;
  border-bottom: 1px solid #0E2A47;
}
.industry-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.industry-modal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.industry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #94A3B8;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.industry-row:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.2);
  color: #FFFFFF;
}
.industry-row.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: #00E5FF;
  color: #00E5FF;
  font-weight: 700;
}
.industry-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #00E5FF;
}

.industry-modal-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(2, 8, 20, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.industry-modal-search svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.industry-modal-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  padding: 0;
  min-width: 0;
}

.industry-modal-search input::placeholder {
  color: var(--text-muted);
}

.industry-modal-search:focus-within {
  border-color: rgba(0, 229, 255, 0.35);
}

.industry-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
 * THREE-DOT LOADING INDICATOR
 * ============================================================ */

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.loading-dots[hidden] { display: none !important; }

.loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
  animation: bounceDot 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounceDot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dots span {
    animation: none;
    opacity: 0.8;
  }
}

/* ════════════════════════════════════════════════════════════
   VIEW DETAILS MODAL — EXACT COPY OF Results.css
   Literal values so it matches Results 1:1 regardless of
   this page's own theme variables.
   ════════════════════════════════════════════════════════════ */

.company-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 8, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in 0.2s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.company-modal-card {
  background: linear-gradient(180deg, #04182b, #02101f);
  border: 1px solid rgba(7, 143, 239, 0.55);
  border-radius: 20px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modal-slide-up 0.25s ease;
}
@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.company-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: 0;
  color: #a9b9f5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.company-modal-close:hover {
  color: #f5f7ff;
  background: rgba(255, 255, 255, 0.06);
}

.company-modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-right: 30px;
}

.company-modal-avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(8, 200, 245, 0.12);
  border: 1px solid rgba(7, 143, 239, 0.55);
  color: #08c8f5;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-modal-headtext { min-width: 0; }
.company-modal-headtext h2 {
  font-size: clamp(19px, 3.4vw, 23px);
  font-weight: 800;
  margin: 0;
  word-break: break-word;
}

/* ✅ Second line UNDER the name (website / domain) */
.company-modal-sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #a9b9f5;
  opacity: 0.85;
  word-break: break-all;
  line-height: 1.4;
}

/* ─── Rows ─── */

.modal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.modal-row-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a9b9f5;
  opacity: 0.85;
}

.modal-row-value {
  font-size: 14px;
  color: #f5f7ff;
  word-break: break-word;
}

.modal-row-value a {
  color: #08c8f5;
  text-decoration: none;
}
.modal-row-value a:hover {
  text-decoration: underline;
}

.modal-muted {
  color: #a9b9f5;
  opacity: 0.55;
  font-style: italic;
}

/* ─── Blocks ─── */

.modal-block {
  margin-bottom: 20px;
}

.modal-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #08c8f5;
  opacity: 0.85;
  margin-bottom: 8px;
}

.modal-info,
.modal-summary {
  margin: 0;
  color: #f5f7ff;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

/* Information — plain <p>, line-clamp works */
.modal-block .modal-info {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.modal-block.is-expanded .modal-info {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Summary — plain <p>, line-clamp works */
.modal-summary {
  color: #c9d6f5;
  font-style: italic;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-modal-block-summary].is-expanded .modal-summary {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* ══════════════════════════════════════════════════════════
   WHY IT MATCHED — HEIGHT clamp, not line-clamp.
   Contains block children (<p>, <ul>) which -webkit-line-clamp
   cannot clamp reliably. max-height cuts at exactly 4 line-boxes
   (4 × 1.6 = 6.4em) so "See more" sits right at the cut.
   ══════════════════════════════════════════════════════════ */
.modal-why {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #f5f7ff;
  word-break: break-word;
  max-height: 6.4em;
  overflow: hidden;
}
[data-modal-block-why].is-expanded .modal-why {
  max-height: none;
  overflow: visible;
}

.modal-why-p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #f5f7ff;
}
.modal-why-p:last-of-type {
  margin-bottom: 0;
}

.modal-why-list {
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: disc;
}
.modal-why-list li {
  font-size: 14px;
  line-height: 1.55;
  color: #f5f7ff;
}
.modal-why-list li::marker {
  color: #08c8f5;
}

/* ─── Source references ─── */

.modal-source-refs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-source-refs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.source-ref-label {
  font-size: 12px;
  font-weight: 600;
  color: #a9b9f5;
  opacity: 0.9;
}
.modal-source-refs a {
  font-size: 12.5px;
  color: #08c8f5;
  text-decoration: none;
  word-break: break-all;
}
.modal-source-refs a:hover {
  text-decoration: underline;
}

/* ─── Source urls fallback ─── */

.modal-source-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-source-list li {
  font-size: 13px;
  word-break: break-all;
}
.modal-source-list a {
  color: #08c8f5;
  text-decoration: none;
}
.modal-source-list a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   TOGGLES — AMBER (distinct from cyan labels & links)
   Information · Summary · Why it matched · Source references
   ══════════════════════════════════════════════════════════ */

.see-more-btn,
.modal-block .see-more-btn,
.source-toggle-btn {
  background: transparent;
  border: none;
  color: var(--toggle);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.see-more-btn,
.modal-block .see-more-btn {
  padding: 6px 0 0;
  display: inline-block;
}

.source-toggle-btn {
  padding: 4px 0 0;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.see-more-btn:hover,
.modal-block .see-more-btn:hover,
.source-toggle-btn:hover {
  color: var(--toggle-hover);
}

.source-toggle-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   REPORT INCORRECT INFORMATION (inline, bottom of modal)
   Matches Results.css exactly — fixes white trigger button
   and unstyled select/textarea on Saved page.
   ============================================================ */

.modal-report {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(145, 174, 245, 0.18);
}

.modal-report-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 0;
  color: #a9b9f5;
  opacity: 0.75;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.modal-report-trigger:hover {
  opacity: 1;
  color: #f5f7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.modal-report-trigger svg { flex-shrink: 0; }
.modal-report-trigger[hidden] { display: none !important; }

.modal-report-form[hidden] { display: none !important; }

.modal-report-title {
  font-size: 13px;
  font-weight: 700;
  color: #f5f7ff;
  margin-bottom: 14px;
}

.modal-report-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a9b9f5;
  opacity: 0.85;
  margin-bottom: 6px;
}

.modal-report-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 14px;
  background: rgba(2, 8, 20, 0.6);
  border: 1px solid rgba(145, 174, 245, 0.28);
  border-radius: 8px;
  color: #f5f7ff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b9f5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.modal-report-select:focus { border-color: #08c8f5; }
.modal-report-select option {
  background: #04182b;
  color: #f5f7ff;
}

.modal-report-textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  background: rgba(2, 8, 20, 0.6);
  border: 1px solid rgba(145, 174, 245, 0.28);
  border-radius: 8px;
  color: #f5f7ff;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}
.modal-report-textarea:focus { border-color: #08c8f5; }
.modal-report-textarea::placeholder {
  color: #a9b9f5;
  opacity: 0.5;
}

.modal-report-error {
  margin-top: 10px;
  font-size: 12.5px;
  color: #fca5a5;
  word-break: break-word;
}
.modal-report-error[hidden] { display: none !important; }

.modal-report-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.modal-report-cancel {
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: #a9b9f5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.modal-report-cancel:hover {
  color: #f5f7ff;
  background: rgba(255, 255, 255, 0.05);
}

.modal-report-submit {
  background: #00dfff;
  border: 1px solid #00dfff;
  border-radius: 8px;
  padding: 9px 18px;
  color: #001c27;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.modal-report-submit:hover:not(:disabled) { background: #08c8f5; }
.modal-report-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-report-done {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #00eac0;
}
.modal-report-done[hidden] { display: none !important; }
.modal-report-done svg {
  flex-shrink: 0;
  margin-top: 2px;
    }
