/* =============================================
   CampusVoice — Global Design System v3
   Palette: Bold Orange-Red + Warm Cream + Near-Black
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:          #FAF9F4;
  --bg-card:     #FFFFFF;
  --bg-subtle:   #F0EDE4;
  --bg-nav:      rgba(250,249,244,0.95);

  --primary:     #FF4500;
  --primary-dk:  #E03D00;
  --primary-lt:  #FFCAB2;
  --secondary:   #0F1117;
  --accent:      #FFD000;
  --accent-dk:   #E6BB00;
  --accent-lt:   #FFF3A0;

  --text-h:      #0A0A0A;
  --text-b:      #1C1C1C;
  --text-muted:  #666666;
  --text-inv:    #FFFFFF;

  --border:      #D4D0C6;
  --border-focus:#FF4500;

  --success:     #1A8A3A;
  --warning:     #E09000;
  --error:       #CC0000;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --shadow-sm:   2px 2px 0px rgba(0,0,0,0.07);
  --shadow-md:   4px 4px 0px rgba(0,0,0,0.12);
  --shadow-lg:   6px 6px 0px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 0 3px rgba(255,69,0,0.22);

  --transition:  0.18s cubic-bezier(0.4,0,0.2,1);
  --font-head:   'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:          #0C0C0C;
  --bg-card:     #161616;
  --bg-subtle:   #1E1E1E;
  --bg-nav:      rgba(12,12,12,0.96);
  --text-h:      #F2F2F2;
  --text-b:      #CCCCCC;
  --text-muted:  #777777;
  --border:      #2A2A2A;
  --shadow-sm:   2px 2px 0px rgba(0,0,0,0.5);
  --shadow-md:   4px 4px 0px rgba(0,0,0,0.6);
  --shadow-lg:   6px 6px 0px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 0 3px rgba(255,69,0,0.3);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-b);
  line-height: 1.65;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-h); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
p  { color: var(--text-b); }

/* ── Utilities ──────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 0.875rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.sr-only { position: absolute; left: -9999px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:focus-visible { outline: 3px solid var(--primary-lt); outline-offset: 3px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.25);
}
.btn-primary:hover {
  background: var(--primary-dk);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-h);
  border-color: var(--text-h);
  border-width: 2px;
}
.btn-secondary:hover {
  background: var(--text-h);
  color: var(--bg);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-b);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-subtle); }

.btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 38px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translate(-2px, -2px); }
.card-clickable { cursor: pointer; }
.card-clickable:hover { transform: translate(-2px, -2px); }
.card-body { padding: 24px; }

/* Glass card variant */
.card-glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
}
[data-theme="dark"] .card-glass {
  background: rgba(24,27,56,0.7);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(92,107,192,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.navbar-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition);
}
.navbar-logo:hover { opacity: 0.85; color: var(--primary); }
.navbar-logo span { color: var(--accent); }
.navbar-logo .logo-icon { font-size: 1.5rem; }
.navbar-spacer { flex: 1; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-b);
  transition: all var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  background: var(--bg-subtle);
  color: var(--primary);
}
.navbar-links a.nav-cta {
  background: var(--primary);
  color: #fff;
  margin-left: 8px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}
.navbar-links a.nav-cta:hover {
  background: var(--primary-dk);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.25);
  transform: translate(-1px, -1px);
}

/* Dark toggle */
.dark-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
  color: var(--text-b);
  white-space: nowrap;
}
.dark-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Mobile nav */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; }
.hamburger span { width: 22px; height: 2px; background: var(--text-b); border-radius: 2px; transition: all var(--transition); }

@media (max-width: 700px) {
  .hamburger { display: flex; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { width: 100%; text-align: center; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background: linear-gradient(155deg, #D84A1B 0%, #3949AB 52%, #1A1040 100%);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: linear-gradient(155deg, #C43F15 0%, #2E3A8A 52%, #120D2E 100%);
}

/* Soft noise for texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Soft light bloom */
.hero::after {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(255,180,100,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
}
.hero h1 em { font-style: italic; color: #FFD580; }

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* Frosted search bar inside hero */
.hero .search-bar-wrap { position: relative; }
.hero .search-bar {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero .search-bar::placeholder { color: rgba(255,255,255,0.45); }
.hero .search-bar:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.18);
}
.hero .search-icon { color: rgba(255,255,255,0.5); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Trust strip below hero */
.trust-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item strong { color: var(--text-h); }

/* ── Search Bar ──────────────────────────────────────────────── */
.search-bar-wrap {
  max-width: 620px;
  margin: 0 auto 40px;
  position: relative;
}
.search-bar {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text-b);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.search-bar:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-sm);
}
.search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.1rem;
}
.search-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
}

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 480px; margin: 0 auto; font-size: 1.02rem; line-height: 1.7; }

/* ── College Cards ───────────────────────────────────────────── */
.college-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.college-card {
  padding: 24px;
  text-decoration: none;
  display: block;
  border-radius: var(--radius-md);
  position: relative;
}
.college-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.college-card:hover::before { opacity: 1; }

.college-card .college-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--border) 100%);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.college-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-h);
  margin-bottom: 4px;
  line-height: 1.3;
}
.college-card .college-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.college-card .college-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: var(--bg-subtle);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}
.college-card .college-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.review-count { font-size: 0.8rem; color: var(--text-muted); }

/* ── Star Rating ─────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star { color: #D8D8D8; font-size: 1rem; }
.star.filled { color: #FFB300; }
.rating-num { font-weight: 700; color: var(--text-h); font-size: 0.95rem; margin-left: 6px; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(92,107,192,0.12); color: var(--primary); }
.badge-success { background: rgba(67,160,71,0.12);  color: var(--success); }
.badge-warning { background: rgba(251,140,0,0.12);  color: var(--warning); }
.badge-anon    { background: rgba(126,87,194,0.12); color: var(--secondary); }
.badge-error   { background: rgba(229,57,53,0.10);  color: var(--error); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-h);
  margin-bottom: 7px;
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text-b);
  outline: none;
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.82rem; color: var(--error); margin-top: 5px; display: none; }
.form-error.visible { display: block; }

.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-wrap .form-input { padding-left: 42px; }

/* ── Auth Card ───────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card-body { padding: 36px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); }
.auth-logo a span { color: var(--accent); }
.auth-tabs { display: flex; background: var(--bg-subtle); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 28px; }
.auth-tab {
  flex: 1; text-align: center;
  padding: 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  border: none; background: transparent;
}
.auth-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ── Review Cards ────────────────────────────────────────────── */
.review-card {
  padding: 24px;
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-lt);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.review-card:hover { border-left-color: var(--primary); }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(92,107,192,0.25);
}
.reviewer-name { font-weight: 600; font-size: 0.9rem; color: var(--text-h); }
.reviewer-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.review-body { color: var(--text-b); font-size: 0.95rem; line-height: 1.75; margin-bottom: 14px; }
.review-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-helpful {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
}
.review-helpful:hover { border-color: var(--primary); color: var(--primary); background: rgba(92,107,192,0.05); }
.review-helpful.liked { background: rgba(92,107,192,0.1); border-color: var(--primary); color: var(--primary); }

/* ── Rating Categories ───────────────────────────────────────── */
.rating-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.rating-category { background: var(--bg-subtle); border-radius: var(--radius-sm); padding: 14px; }
.rating-category .cat-label { font-size: 0.82rem; font-weight: 600; color: var(--text-h); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.rating-bar { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ── Star Input ──────────────────────────────────────────────── */
.star-input { display: flex; gap: 6px; }
.star-input label { font-size: 1.8rem; cursor: pointer; color: #D8D8D8; transition: color 0.15s; line-height: 1; }
.star-input input[type="radio"] { display: none; }
.star-input label:hover,
.star-input label.active,
.star-input input:checked ~ label { color: #FFB300; }
.star-input { flex-direction: row-reverse; justify-content: flex-end; }
.star-input label:hover ~ label,
.star-input label:hover { color: #FFB300; }

/* ── Filters ─────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-chip {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-card);
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(92,107,192,0.04); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--text-b);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
}
.filter-select:focus { border-color: var(--primary); box-shadow: var(--shadow-glow); }

/* ── College Profile Header ──────────────────────────────────── */
.college-profile-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.college-profile-top { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.college-emblem {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--border) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.college-name { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.college-meta-row { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 14px; }
.college-meta-row span { display: flex; align-items: center; gap: 5px; }
.college-overall-rating { margin-left: auto; text-align: center; min-width: 100px; }
.college-overall-rating .big-num { font-family: var(--font-head); font-size: 3rem; color: var(--primary); line-height: 1; }
.college-overall-rating .out-of { font-size: 0.8rem; color: var(--text-muted); }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs-bar {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 22px;
  border: none; background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--primary); background: var(--bg-subtle); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Alerts / Toasts ─────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert-info    { background: rgba(92,107,192,0.09);  color: var(--primary); border: 1px solid rgba(92,107,192,0.2); }
.alert-success { background: rgba(67,160,71,0.09);   color: var(--success); border: 1px solid rgba(67,160,71,0.2); }
.alert-warning { background: rgba(251,140,0,0.09);   color: var(--warning); border: 1px solid rgba(251,140,0,0.2); }
.alert-error   { background: rgba(229,57,53,0.09);   color: var(--error);   border: 1px solid rgba(229,57,53,0.2); }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--text-h);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 10px;
  max-width: 360px;
  font-family: var(--font-body);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Anonymous Banner ────────────────────────────────────────── */
.anon-banner {
  background: rgba(126,87,194,0.07);
  border: 1px solid rgba(126,87,194,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.86rem;
  color: var(--secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; max-width: 280px; line-height: 1.65; }
.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-h);
  margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── How It Works ────────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.how-step { text-align: center; padding: 36px 28px; }
.how-step .step-num {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}
.how-step h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--text-h); margin-bottom: 10px; }
.how-step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Tooltip ─────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-h);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

/* ── Skeleton ────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-subtle) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Fade In ─────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .college-profile-top { flex-direction: column; }
  .college-overall-rating { margin-left: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 20px 48px; }
  .hero-stats { gap: 24px; }
  .section { padding: 48px 0; }
  .college-grid { grid-template-columns: 1fr; }
  .rating-categories { grid-template-columns: 1fr 1fr; }
  .trust-strip { gap: 16px; }
  .container { padding: 0 16px; }
}

/* ── Misc ────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 18px; }
.empty-state h3 { font-family: var(--font-body); color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; max-width: 360px; margin: 0 auto 20px; line-height: 1.65; }
.char-counter { text-align: right; font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.profanity-warning { font-size: 0.82rem; color: var(--error); margin-top: 5px; display: none; }
.profanity-warning.visible { display: block; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Progress bar */
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); z-index: 200; transition: width 0.1s; }

/* Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-lt); }

/* Selection */
::selection { background: rgba(92,107,192,0.18); color: var(--text-h); }

/* ── Grade Badge (colleges page) ─────────────────────────────── */
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── College logo in card (colleges page) ────────────────────── */
.college-logo-wrap {
  width: 52px; height: 52px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.college-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.college-logo-emoji { font-size: 1.6rem; line-height: 1; }

/* ── Write CTA band (college detail) ─────────────────────────── */
.write-cta-band {
  background: linear-gradient(135deg, var(--bg-subtle), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Highlight card (featured/promo) ─────────────────────────── */
.card-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: #fff;
}
.card-highlight h2, .card-highlight h3, .card-highlight p { color: #fff; }

/* ── Review verified chip ────────────────────────────────────── */
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(67,160,71,0.12);
  color: var(--success);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}
