/* ============================================================
   Solo Select Marketing Dashboard — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Solo Select Horses brand palette — light dashboard */
  --bg:          #F5F0EC;
  --surface:     #FFFFFF;
  --card:        #FFFFFF;
  --card-hover:  #FBF7F4;
  --border:      #E4D9D0;
  --border-light:#CEBFB4;

  /* Solo Select maroon red — primary brand accent */
  --gold:        #A52030;
  --gold-light:  #C42840;
  --gold-dim:    rgba(165,32,48,.10);

  --green:       #2A9E60;
  --green-dim:   rgba(42,158,96,.12);
  --red:         #D04040;
  --red-dim:     rgba(208,64,64,.12);
  --blue:        #2E7EC4;
  --blue-dim:    rgba(46,126,196,.12);
  --purple:      #8050C8;
  --purple-dim:  rgba(128,80,200,.12);

  --text:        #1A1210;
  --text-2:      #6B5040;
  --text-3:      #9E8878;

  --font-display: 'Nunito Sans', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --sidebar-w:   220px;
  --topbar-h:    64px;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --transition:  .18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* Display font for headings, section titles, page names — Nunito Sans matches Solo Select Horses brand */
h1, h2, h3,
.page-title,
.section-title,
.kpi-label,
.manager-name,
.brand,
.stud-title,
.topbar-title,
.kpi-value {
  font-family: var(--font-display);
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ── Layout ── */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: #111111;
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.sidebar-logo img.ss-logo {
  width: 150px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.sidebar-logo .brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
}
.sidebar-logo .subbrand {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: -4px;
}
.sidebar-logo .logo-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.nav-section {
  padding: 12px 8px 4px;
}
.nav-section-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding: 0 8px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.18); color: #fff; }
.nav-link .nav-icon { width: 16px; text-align: center; font-size: .9rem; opacity: .8; }
.nav-link .nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  transition: background var(--transition);
}
.refresh-btn:hover { background: rgba(255,255,255,.2); }
.refresh-btn .refresh-time { font-size: .65rem; color: rgba(255,255,255,.5); font-weight: 400; margin-top: 2px; }

/* ── Main ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.topbar-title { font-size: 1.05rem; font-weight: 800; flex: 1; letter-spacing: .03em; text-transform: uppercase; }
.topbar-title span { color: var(--gold); }

.date-range-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}
.date-range-group label { font-size: .72rem; color: var(--text-3); }
.date-range-group input[type="date"],
.date-range-group select {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .8rem;
  outline: none;
  -webkit-appearance: none;
}
.date-range-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: opacity(.5);
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: .78rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.filter-chip.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

/* ── Topbar user info ── */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.topbar-user-name {
  font-size: .78rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── Page Content ── */
.page-content { padding: 24px; flex: 1; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; }
.page-header p { font-size: .82rem; color: var(--text-2); margin-top: 4px; }

/* ── KPI Strip ── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.kpi-card.gold::before { background: var(--gold); }
.kpi-card.green::before { background: var(--green); }
.kpi-card.blue::before { background: var(--blue); }
.kpi-card.purple::before { background: var(--purple); }
.kpi-card.red::before { background: var(--red); }

.kpi-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.kpi-label { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.kpi-value { font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.kpi-meta { display: flex; align-items: center; gap: 6px; }
.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.kpi-change.up   { background: var(--green-dim); color: var(--green); }
.kpi-change.down { background: var(--red-dim);   color: var(--red); }
.kpi-change.flat { background: var(--card);       color: var(--text-3); }
.kpi-period { font-size: .68rem; color: var(--text-3); }
.kpi-icon {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 1.5rem;
  opacity: .12;
}

/* ── Section Cards ── */
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { font-size: 1rem; }
.section-actions { display: flex; gap: 8px; }

/* ── Tables ── */
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
}
.data-table th:hover { color: var(--text); }
.data-table th.sorted { color: var(--gold); }
.data-table th .sort-arrow { margin-left: 4px; opacity: .5; }
.data-table th.sorted .sort-arrow { opacity: 1; }
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(165,32,48,.03); }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--card-hover); }

/* Page name cell */
.page-name-cell { display: flex; align-items: center; gap: 10px; }
.page-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  flex-shrink: 0;
}
.page-name-text { font-weight: 600; font-size: .82rem; }
.page-name-sub  { font-size: .68rem; color: var(--text-3); }
.page-avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Manager pill */
.manager-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
}
.manager-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Objective badge */
.objective-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
  background: var(--blue-dim);
  color: var(--blue);
  white-space: nowrap;
}

/* Change indicator */
.change-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .78rem;
  font-weight: 600;
}
.change-cell.up   { color: var(--green); }
.change-cell.down { color: var(--red); }
.change-cell.flat { color: var(--text-3); }

/* Efficiency bar */
.efficiency-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 80px; }
.efficiency-bar-bg {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.efficiency-bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }

/* ── Red Zone ── */
.red-zone-list { list-style: none; }
.red-zone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.red-zone-item:last-child { border-bottom: none; }
.red-zone-item:hover { background: var(--card-hover); }
.red-zone-rank {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-dim);
  color: var(--red);
  font-size: .7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.red-zone-name { flex: 1; font-size: .82rem; font-weight: 600; }
.red-zone-sub { font-size: .68rem; color: var(--text-3); }
.red-zone-spend { font-size: .78rem; font-weight: 700; color: var(--red); }

/* ── Manager Cards ── */
.manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 16px; }
.manager-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.manager-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.manager-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 10px;
}
.manager-name { font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.manager-role { font-size: .68rem; color: var(--text-3); margin-bottom: 10px; }
.manager-stats { display: flex; gap: 12px; }
.manager-stat-val { font-size: .92rem; font-weight: 700; }
.manager-stat-lbl { font-size: .65rem; color: var(--text-3); }

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── Sparkline ── */
.sparkline-cell canvas { display: block; }

/* ── Charts ── */
.chart-wrap { padding: 20px; position: relative; }
.chart-wrap canvas { max-height: 260px; }

/* ── Stud Detail ── */
.stud-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.stud-avatar-lg {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  flex-shrink: 0;
}
.stud-hero-info { flex: 1; }
.stud-hero-name { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.stud-hero-sub { color: var(--text-2); font-size: .88rem; margin-top: 4px; }
.stud-hero-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.stud-hero-actions { display: flex; gap: 8px; flex-direction: column; align-items: flex-end; }

.objective-progress-wrap { padding: 20px; }
.objective-progress-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.objective-target { font-size: .78rem; color: var(--text-3); }
.objective-current { font-size: 2rem; font-weight: 900; }
.objective-bar-bg {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}
.objective-bar-fill { height: 100%; border-radius: 5px; transition: width .6s ease; }
.objective-pct { font-size: .72rem; color: var(--text-3); }

/* ── Manager Detail ── */
.manager-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.manager-avatar-lg {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  background: var(--card);
}
.tab-btn {
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Form / Input ── */
.form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.form-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.form-input, .form-select {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .82rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--gold); }
.form-select option { background: var(--surface); }
.form-input[type="number"] { -moz-appearance: textfield; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--border-light); color: var(--text); background: var(--card-hover); }
.btn-danger { background: var(--red-dim); color: var(--red); }
.btn-danger:hover { background: rgba(224,82,82,.25); }
.btn-sm { padding: 5px 10px; font-size: .72rem; }

/* ── Loading / Empty ── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-3);
  gap: 12px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 40px; color: var(--text-3); gap: 8px; }
.empty-state .empty-icon { font-size: 2.5rem; opacity: .3; }
.empty-state p { font-size: .82rem; }

/* ── Toast ── */
.toast-wrap {
  position: fixed;
  bottom: 20px; right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .8rem;
  box-shadow: var(--shadow);
  animation: slideIn .2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  width: calc(100% - 40px);
  transform: translateY(20px);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.modal-sub   { font-size: .78rem; color: var(--text-3); margin-bottom: 16px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ── Alert Banner ── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  margin-bottom: 16px;
}
.alert-banner.warning { background: var(--gold-dim); border: 1px solid rgba(165,32,48,.3); color: var(--gold); }
.alert-banner.info    { background: var(--blue-dim); border: 1px solid rgba(74,144,217,.3); color: var(--blue); }

/* ── Scroll ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ── Utility ── */
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-3); }
.text-right  { text-align: right; }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.num         { font-variant-numeric: tabular-nums; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 700;
}
.badge-gold    { background: var(--gold-dim);   color: var(--gold); }
.badge-green   { background: var(--green-dim);  color: var(--green); }
.badge-red     { background: var(--red-dim);    color: var(--red); }
.badge-blue    { background: var(--blue-dim);   color: var(--blue); }
.badge-purple  { background: var(--purple-dim); color: var(--purple); }
.badge-muted   { background: var(--card);       color: var(--text-3); border: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .two-col   { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .manager-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Website analytics mini table ── */
.website-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.website-row:last-child { border-bottom: none; }
.website-rank { font-size: .68rem; color: var(--text-3); font-weight: 700; width: 18px; }
.website-url  { flex: 1; font-size: .78rem; color: var(--blue); font-family: monospace; }
.website-stat { text-align: right; }
.website-stat-val { font-size: .82rem; font-weight: 700; }
.website-stat-lbl { font-size: .62rem; color: var(--text-3); }

/* ── Date refresh note ── */
.data-freshness {
  font-size: .65rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.freshness-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Nav Dots (replaces emoji nav icons) ── */
.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  flex-shrink: 0;
  display: inline-block;
}
.nav-dot.nav-dot-red {
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(208,64,64,.25);
}
.nav-link.active .nav-dot,
.nav-link:hover .nav-dot {
  background: rgba(255,255,255,.9);
}
.nav-link.active .nav-dot-red,
.nav-link:hover .nav-dot-red {
  background: var(--red);
}

/* ── Section label tag (replaces emoji icons in section headers) ── */
.section-label-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
}

/* ── Status dot (for Red Zone section header) ── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.status-dot-red {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
  animation: pulse 2s infinite;
}

/* ── Collapsible sections ── */
.collapsible-section .section-header {
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.collapsible-section .section-header:hover {
  background: var(--card-hover);
}
.collapsible-body {
  overflow: hidden;
  transition: max-height .3s ease, opacity .2s ease;
  max-height: 2000px;
  opacity: 1;
}
.collapsible-section.collapsed .collapsible-body {
  max-height: 0;
  opacity: 0;
}
.collapsible-section.collapsed .section-header {
  border-bottom-color: transparent;
}
.collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: .7rem;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.collapse-btn:hover { background: var(--card-hover); }
.collapsible-section.collapsed .collapse-arrow {
  display: inline-block;
  transform: rotate(-90deg);
}
.collapse-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
