:root {
  --bg: #0f1419;
  --surface: #1a2129;
  --surface-2: #222b35;
  --border: #2e3944;
  --text: #e8edf2;
  --muted: #93a1b0;
  --accent: #3d9ae8;
  --accent-2: #2b7fc4;
  --rating: #f0b429;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.brand { font-size: 20px; font-weight: 700; color: var(--text); }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 14px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }

.header-search { margin-left: auto; display: flex; gap: 8px; }
.lang-switch {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}
.lang-switch:hover { color: var(--text); text-decoration: none; }
.header-search input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 12px;
  min-width: 220px;
}

main { padding: 32px 20px 64px; }

h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 12px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

.hero { padding: 28px 0 8px; }
.hero p { color: var(--muted); }
.hero-search { display: flex; gap: 10px; margin: 18px 0 10px; }
.hero-search input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}

button, .button {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: #06121d;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-block;
}
button:hover, .button:hover { background: var(--accent-2); text-decoration: none; }

.stats { font-size: 14px; color: var(--muted); }

.review-list, .school-list { list-style: none; padding: 0; margin: 0; }

.review-card, .school-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.school-list li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prof-link { font-weight: 600; }
.rating { color: var(--rating); font-weight: 700; }

.pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 10px;
  color: var(--muted);
  margin-left: auto;
}

.profile-head, .school-head { margin-bottom: 20px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.rating-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.score {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.score strong { display: block; font-size: 20px; }
.score span { font-size: 12px; color: var(--muted); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  padding: 1px 10px;
  color: var(--muted);
}

.review-form label { display: block; margin: 14px 0 6px; font-size: 14px; }
.review-form select, .review-form input[type="text"], .review-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}
.review-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 18px 0;
  padding: 14px 16px;
}
.review-form legend { padding: 0 8px; color: var(--muted); font-size: 14px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.tag-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.center { text-align: center; }
.empty { color: var(--muted); }
.cta {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; margin-top: 40px; }
.footer-inner p { margin: 4px 0; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .header-search { margin-left: 0; width: 100%; }
  .header-search input { flex: 1; min-width: 0; }
}

.ad-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0;
}
.ad-label {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 6px;
  margin-bottom: 8px;
}
.ad-card img { max-width: 100%; }
.ad-link { font-weight: 600; }
.ad-pixel { position: absolute; width: 1px; height: 1px; opacity: 0; }

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions form { display: flex; gap: 6px; margin: 0; }
.admin-actions input[type="text"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 10px;
}
button.danger { background: #b23a48; color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
