/* TheBossIndex — Consumer Review Platform */
:root {
  --brand: #E8411A;
  --brand-hover: #CF3615;
  --brand-dim: rgba(232,65,26,0.08);

  --bg: #FFFFFF;
  --bg-subtle: #F7F7F7;
  --bg-hover: #F0F0F0;

  --border: #E5E5E5;
  --border-strong: #D1D1D1;

  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;

  --green: #1A7F54;
  --yellow: #B45309;
  --red: #DC2626;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--text); }
::placeholder { color: var(--text-muted); }

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.nav-logo .logo-dot { color: var(--brand); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius);
  transition: color 0.1s, background 0.1s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* RESPONSIVE NAV */
@media (max-width: 720px) {
  nav { padding: 0 16px; }

  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 0 0;
    gap: 0;
    align-items: center;
  }

  /* Row 1: Logo left, Review a Boss right */
  .nav-logo {
    order: 1;
    flex: 1;
    font-size: 16px;
    padding-bottom: 8px;
  }
  .nav-logo-icon { width: 26px; height: 26px; }

  .nav-actions {
    order: 2;
    margin-left: 0;
    padding-bottom: 8px;
  }

  /* Row 2: Nav links centered */
  .nav-links {
    order: 3;
    width: 100%;
    flex: none;
    justify-content: center;
    border-top: 1px solid var(--border);
    padding: 4px 0;
    gap: 0;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 10px;
  }
}

@media (max-width: 380px) {
  .nav-links a { font-size: 12px; padding: 7px 7px; }
  .nav-logo { font-size: 14px; }
  .btn-sm { padding: 5px 10px; font-size: 12px; }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 721px) {
  .nav-inner { gap: 16px; }
  .nav-links a { padding: 5px 8px; font-size: 13px; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--text); color: #fff; }
.btn-secondary:hover { opacity: 0.85; }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; font-weight: 700; border-radius: 10px; }
.btn-full { width: 100%; }

/* HERO */
.hero {
  text-align: center;
  padding: 72px 24px 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero .hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* SEARCH */
.search-wrapper { position: relative; }
.search-bar {
  display: flex;
  max-width: 580px;
  margin: 0 auto 20px;
  border: 2px solid var(--text);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-bar input {
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  font-size: 16px;
  flex: 1;
  min-width: 0;
  background: transparent;
}
.search-bar input:focus { box-shadow: none; }
.search-bar button {
  background: var(--text);
  color: #fff;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s;
}
.search-bar button:hover { background: #333; }
@media (max-width: 480px) {
  .search-bar input { padding: 12px 14px; font-size: 14px; }
  .search-bar button { padding: 0 16px; font-size: 13px; }
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.search-result-item {
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-subtle); }
.search-result-item .name { font-size: 14px; font-weight: 600; }
.search-result-item .meta { font-size: 12px; color: var(--text-muted); }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.page-container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* SECTIONS */
.section { padding: 48px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.section-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-subtle);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-icon { font-size: 32px; margin-bottom: 10px; }
.empty h3 { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty p { font-size: 14px; }
.empty a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* BOSS SCORE */
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-width: 64px;
  flex-shrink: 0;
}
.score-badge .score-num {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.score-badge .score-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-top: 3px;
}
.score-green { color: var(--green); }
.score-yellow { color: var(--yellow); }
.score-red { color: var(--red); }
.score-neutral { color: var(--text-muted); }

/* SCORE BAR */
.score-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.score-bar-label { color: var(--text-secondary); width: 150px; flex-shrink: 0; font-weight: 500; }
.score-bar-track { flex: 1; height: 6px; background: var(--bg-subtle); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.score-bar-value { width: 28px; text-align: right; font-weight: 700; font-size: 13px; }

/* CARDS */
.boss-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 12px;
}
.boss-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.boss-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  text-transform: uppercase;
}
.boss-info { flex: 1; min-width: 0; }
.boss-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.boss-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

/* REVIEW CARD */
.review-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  background: #fff;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.review-job { font-size: 14px; font-weight: 600; }
.review-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-headline { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.review-section { margin-bottom: 12px; }
.review-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.review-section-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.review-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-score-item { text-align: center; }
.review-score-num { font-size: 20px; font-weight: 900; }
.review-score-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
@media (max-width: 640px) { .review-scores { grid-template-columns: repeat(2, 1fr); } }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-fav { background: #FEF3C7; color: #92400E; }
.badge-verified { background: #DBEAFE; color: #1E40AF; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* PROFILE HERO */
.profile-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.profile-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name { font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.profile-title { font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; }
.profile-score-block { text-align: center; flex-shrink: 0; }
.profile-score-big { font-size: 56px; font-weight: 900; letter-spacing: -3px; line-height: 1; }
.profile-score-denom { font-size: 20px; font-weight: 400; color: var(--text-muted); }
.profile-score-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-top: 4px; }
.profile-score-count { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 768px) {
  .profile-hero-inner { flex-direction: column; }
  .profile-score-block { text-align: left; }
}

/* PAGE LAYOUT */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } }

.sidebar-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.sidebar-box h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 14px; }

/* TABS */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.1s, border-color 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }

/* FORM */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* SCORE SLIDERS */
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .score-grid { grid-template-columns: 1fr; } }
.score-input-group { display: flex; flex-direction: column; gap: 6px; }
.score-input-label { font-size: 13px; font-weight: 600; }
.score-input-row { display: flex; align-items: center; gap: 10px; }
.score-input-row input[type="range"] {
  flex: 1;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  accent-color: var(--brand);
  height: 20px;
}
.score-input-row .score-val {
  font-size: 20px;
  font-weight: 900;
  min-width: 28px;
  text-align: right;
}

/* BOSS SCORE PREVIEW */
.score-preview-box {
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 28px;
}
.score-preview-box .preview-num { font-size: 56px; font-weight: 900; letter-spacing: -3px; line-height: 1; }
.score-preview-box .preview-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-top: 6px; }

/* FILTERS */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all 0.12s;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--text); color: var(--text); }
.filter-pill.active { background: var(--text); border-color: var(--text); color: #fff; }
.filters select {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: #fff;
  width: auto;
}

/* DISCOVER */
.discover-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .discover-layout { grid-template-columns: 1fr; } }
.discover-sidebar { background: var(--bg-subtle); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 72px; }
.discover-sidebar h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 14px; }
.filter-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-section h4 { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.filter-option:hover { color: var(--text); }
.filter-option input[type="radio"], .filter-option input[type="checkbox"] { width: auto; accent-color: var(--brand); cursor: pointer; }

/* STATS STRIP */
.stats-strip {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0;
}
.stat-item { flex: 1; padding: 24px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* LEADERBOARD */
.leaderboard { display: flex; flex-direction: column; }
.leaderboard-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: var(--bg-subtle); margin: 0 -16px; padding: 14px 16px; border-radius: var(--radius); }
.leaderboard-rank { font-size: 15px; font-weight: 800; color: var(--text-muted); text-align: center; }
.leaderboard-rank.top-3 { color: var(--brand); }
.leaderboard-name { font-size: 15px; font-weight: 700; }
.leaderboard-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* VIRALITY STRIP */
.virality-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 48px; }
.virality-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.virality-card:hover { border-color: var(--brand); }
.virality-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; margin-bottom: 5px; }
.virality-city { font-size: 17px; font-weight: 800; }
@media (max-width: 768px) { .virality-strip { grid-template-columns: repeat(2, 1fr); } }

/* PAGINATION */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.12s;
  cursor: pointer;
}
.page-btn:hover { border-color: var(--text); color: var(--text); }
.page-btn.active { background: var(--text); border-color: var(--text); color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: default; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #FEF2F2; border: 1.5px solid #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border: 1.5px solid #BBF7D0; color: #166534; }

/* AUTH */
.auth-page { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg-subtle); }
.auth-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 400px; width: 100%; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--brand); font-weight: 600; }

/* ADMIN */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 56px); }
.admin-sidebar { background: var(--bg-subtle); border-right: 1px solid var(--border); padding: 20px 10px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.12s;
  cursor: pointer;
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav-item.active { background: #fff; color: var(--brand); font-weight: 700; border: 1px solid var(--border); }
.admin-content { padding: 32px; max-width: 1000px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 32px; }
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.stat-card-value { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.stat-card-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--bg-subtle); }
.data-table .td-name { color: var(--text); font-weight: 600; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-subtle);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* MISSION SECTION */
.mission-section {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.mission-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.mission-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.mission-line {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.mission-line-bold {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.mission-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* RANKINGS FILTERS */
.rank-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}
.rank-filters select {
  width: auto;
  padding: 8px 12px;
  font-size: 14px;
  min-width: 140px;
}
.rank-filters input[type="text"] {
  padding: 8px 12px;
  font-size: 14px;
}

/* TRUST INDICATORS */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 12px 32px;
  margin-top: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.trust-check {
  width: 20px; height: 20px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .trust-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
}

/* TAGS */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
}
.tag-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }
.tag-chip.selected { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* HOW IT WORKS PAGE */
.hiw-hero {
  background: var(--bg-subtle);
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hiw-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; }
.hiw-hero p { font-size: 17px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.hiw-steps {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hiw-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.hiw-step-num {
  width: 48px; height: 48px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
  flex-shrink: 0;
}
.hiw-step h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.hiw-step p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.faq-list h2 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.hiw-cta {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}
.hiw-cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 20px; }

/* SIDEBAR TAG DISPLAY */
.tag-display-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-dim);
  color: var(--brand);
  border: 1px solid rgba(232,65,26,0.2);
  font-size: 12px;
  font-weight: 700;
}
.tags-display-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* SPINNER */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 60px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slideUp 0.2s ease;
  max-width: 300px;
}
.toast.error { background: var(--red); }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* UTILITY */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
