:root {
  --bg: #050608;
  --panel: #0d1015;
  --panel-2: #0a0d12;
  --line: #20242c;
  --red: #d53a4a;
  --red-dim: #8e2c38;
  --purple: #9b6bff;
  --cyan: #4bcdd0;
  --blue: #5e9dff;
  --yellow: #f4c951;
  --text: #f2f2f2;
  --muted: #9b9aa0;
  --radius-panel: 12px;
  --radius-cta: 18px;
  --radius-pill: 999px;
  --glow-red: 0 0 28px rgba(213, 58, 74, 0.35);
  --glow-purple: 0 0 28px rgba(155, 107, 255, 0.28);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 34px;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
}

.topbar-brand img {
  height: 34px;
  width: auto;
}

.topbar-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
}

.topbar-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  transition: color 0.16s ease;
}

.topbar-nav a:hover {
  color: var(--text);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-actions button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.topbar-actions img {
  width: 18px;
  height: 18px;
  opacity: 0.82;
}

/* ---------- Search bar ---------- */
.searchbar {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: 6px 6px 6px 22px;
  border-radius: var(--radius-pill);
  background: rgba(10, 12, 17, 0.92);
  border: 1px solid rgba(213, 58, 74, 0.55);
  box-shadow: var(--glow-red), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.searchbar-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.searchbar input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  padding: 14px 0;
}

.searchbar input::placeholder {
  color: #6f7078;
}

.searchbar button {
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
  padding: 0 26px;
  height: 48px;
  cursor: pointer;
}

.searchbar button:hover {
  color: #ff6a7d;
}

/* ---------- Home ---------- */
.home {
  position: relative;
  min-height: calc(100vh - 67px);
  display: grid;
  place-items: center;
  padding: 60px 20px 80px;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.62), rgba(5, 6, 8, 0.92)),
    url("./assetkit/04_backgrounds/home_hero_bg.png");
  background-size: cover;
  background-position: center;
}

.home-inner {
  width: min(1000px, 94vw);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.home-wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.36em;
  font-size: clamp(42px, 8vw, 92px);
  text-indent: 0.36em;
  background: linear-gradient(180deg, #ffffff, #cfd2dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-tagline {
  margin: 0;
  color: #b9bbc4;
  letter-spacing: 0.26em;
  font-size: clamp(11px, 1.7vw, 15px);
  line-height: 2;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(18, 20, 27, 0.9), rgba(10, 12, 16, 0.92));
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.pill img {
  width: 20px;
  height: 20px;
}

.pill:hover {
  border-color: rgba(213, 58, 74, 0.7);
  transform: translateY(-1px);
}

.home-divider {
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 18px;
}

.home-divider span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 58, 74, 0.8), transparent);
}

.home-claim {
  margin: 0;
  color: #c6c8d0;
  font-style: italic;
  font-size: 16px;
}

.home-explore {
  text-decoration: none;
  color: var(--red);
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 600;
}

.home-explore:hover {
  color: #ff6a7d;
}

/* ---------- Search results ---------- */
.search-main {
  width: min(1340px, 95vw);
  margin: 26px auto 70px;
}

.searchbar--results {
  width: 100%;
  margin: 0;
}

.search-filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.search-filters input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 11px 13px;
  outline: 0;
}

.search-filters input::placeholder {
  color: #6c6d75;
}

.search-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 22px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 13px;
  margin-bottom: 16px;
}

.results-head #result-meta strong,
.results-head #result-meta {
  color: var(--text);
}

.results-sort strong {
  color: var(--red);
  margin-left: 6px;
}

.results-list {
  display: grid;
  gap: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease;
}

.result-card:hover {
  border-color: rgba(213, 58, 74, 0.55);
}

.result-thumb {
  border-radius: 10px;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-thumb.thumb-0 {
  background-image: url("./assetkit/05_content_cards/thumb_matrix_bochum_raster.png");
}

.result-thumb.thumb-1 {
  background-image: url("./assetkit/05_content_cards/thumb_schwarzes_kloster_raster.png");
}

.result-thumb.thumb-2 {
  background-image: url("./assetkit/05_content_cards/thumb_tresor_west_raster.png");
}

.result-body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  letter-spacing: 0.1em;
  font-size: 22px;
}

.result-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.result-location img {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(213, 58, 74, 0.55);
  color: #ef6377;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  text-transform: uppercase;
}

.tag.verified {
  border-color: rgba(244, 201, 81, 0.6);
  color: var(--yellow);
}

.tag.sponsored {
  border-color: rgba(155, 107, 255, 0.6);
  color: #bfa3ff;
}

.result-summary {
  margin: 0 0 12px;
  color: #c2c4cd;
  line-height: 1.55;
  font-size: 14px;
}

.result-links {
  display: flex;
  gap: 16px;
}

.result-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.result-links a:last-child {
  color: var(--red);
}

/* ---------- AI assistant ---------- */
.assistant {
  align-self: start;
  position: sticky;
  top: 92px;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(155, 107, 255, 0.5);
  background: linear-gradient(180deg, rgba(16, 14, 24, 0.96), rgba(10, 11, 16, 0.96));
  box-shadow: var(--glow-purple);
  padding: 20px;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.assistant-head img {
  width: 26px;
  height: 26px;
}

.assistant-head h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 17px;
}

.assistant-head h2 span {
  color: var(--purple);
}

.assistant-summary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  color: #cbccd6;
  line-height: 1.6;
  font-size: 14px;
}

.assistant-title {
  margin: 20px 0 10px;
  color: var(--purple);
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
}

.assistant-overview {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 10px;
  color: #c2c4cd;
  font-size: 14px;
  line-height: 1.5;
}

.assistant-overview li::marker {
  color: var(--purple);
}

.assistant-sources {
  display: grid;
  gap: 12px;
}

.assistant-sources a {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: #d7d9e3;
  font-size: 13px;
}

.assistant-sources a small {
  color: var(--muted);
  font-size: 11px;
}

.assistant-ctas {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.assistant-ctas a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  text-decoration: none;
  color: #e5e6ee;
  font-size: 13px;
}

.assistant-disclaimer {
  margin: 16px 0 0;
  color: #74757d;
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Detail ---------- */
.detail-main {
  width: min(1340px, 95vw);
  margin: 0 auto 70px;
}

.detail-hero {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius-panel);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px 26px;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.35), rgba(5, 6, 8, 0.92)),
    url("./assetkit/04_backgrounds/matrix_bochum_hero_photo_raster.png");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.detail-hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #d7d9e3;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.detail-back img {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  opacity: 0.8;
}

.detail-hero-actions {
  display: flex;
  gap: 18px;
}

.detail-hero-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d7d9e3;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.detail-hero-actions img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.detail-hero-text h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: clamp(30px, 4vw, 46px);
}

.detail-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfd1da;
  font-size: 15px;
  margin-bottom: 14px;
}

.detail-location img {
  width: 16px;
  height: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-description {
  margin: 0 0 16px;
  max-width: 680px;
  color: #d3d5de;
  line-height: 1.6;
  font-size: 15px;
}

.detail-links {
  display: flex;
  gap: 26px;
}

.detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #cfd1da;
  font-size: 14px;
}

.detail-links img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.detail-attribution {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.detail-attribution .attr-actions {
  display: inline-flex;
  gap: 16px;
}

.detail-attribution a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-attribution a:hover {
  color: var(--red);
}

.detail-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 18px;
}

.card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-head img {
  width: 20px;
  height: 20px;
}

.card-head h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.1em;
  font-size: 15px;
}

.card p {
  margin: 0;
  color: #cbccd6;
  line-height: 1.6;
  font-size: 14px;
}

.card small {
  display: block;
  margin-top: 14px;
  color: #74757d;
  font-style: italic;
  font-size: 12px;
}

.events {
  display: grid;
  gap: 12px;
}

.event {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.event:last-child {
  border-bottom: 0;
}

.event-date {
  display: grid;
  justify-items: center;
  color: var(--text);
}

.event-date strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.event-date span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.event-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.event-info span {
  color: var(--muted);
  font-size: 12px;
}

.event-meta {
  text-align: right;
}

.event-meta time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.event-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
}

.facts dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.community {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.community-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.community-head img {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.community-head h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 16px;
}

.community-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.community-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-cta);
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.community-cta img {
  width: 24px;
  height: 24px;
}

.community-cta .cta-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.community-cta span {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}

.community-cta strong {
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 15px;
  color: var(--text);
}

.cta-match {
  border-color: rgba(213, 58, 74, 0.6);
  box-shadow: inset 0 0 24px rgba(213, 58, 74, 0.12);
}

.cta-swipe {
  border-color: rgba(155, 107, 255, 0.5);
  box-shadow: inset 0 0 24px rgba(155, 107, 255, 0.12);
}

/* ---------- Forms (submit / report) ---------- */
.form-main {
  width: min(720px, 94vw);
  margin: 40px auto 80px;
}

.form-card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}

.form-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.form-head img {
  width: 26px;
  height: 26px;
  margin-top: 4px;
}

.form-head h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 24px;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--muted);
  letter-spacing: 0.06em;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 14px;
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(213, 58, 74, 0.6);
  box-shadow: var(--glow-red);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6c6d75;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.btn-primary {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 14px;
  padding: 14px 30px;
  cursor: pointer;
  box-shadow: var(--glow-red);
}

.btn-primary:hover {
  background: #e2475a;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: progress;
  box-shadow: none;
}

.btn-ghost {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.btn-ghost:hover {
  color: var(--text);
}

.form-status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.form-status.is-success {
  color: var(--cyan);
}

.form-status.is-error {
  color: var(--red);
}

/* ---------- Resources filters ---------- */
.resource-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.resource-filters .chip {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s ease;
}

.resource-filters .chip:hover {
  color: var(--text);
  border-color: rgba(213, 58, 74, 0.5);
}

.resource-filters .chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Featured brand ads in results ---------- */
.result-ad {
  grid-template-columns: 64px 1fr;
  align-items: center;
  background: linear-gradient(180deg, rgba(18, 14, 24, 0.95), rgba(10, 11, 16, 0.95));
}

.result-ad--match {
  border-color: rgba(213, 58, 74, 0.55);
  box-shadow: inset 0 0 30px rgba(213, 58, 74, 0.12);
}

.result-ad--swipe {
  border-color: rgba(155, 107, 255, 0.5);
  box-shadow: inset 0 0 30px rgba(155, 107, 255, 0.12);
}

.result-ad-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.result-ad-icon img {
  width: 28px;
  height: 28px;
}

.tag.featured {
  border-color: rgba(244, 201, 81, 0.6);
  color: var(--yellow);
}

/* ---------- Legal pages ---------- */
.legal-main {
  width: min(820px, 92vw);
  margin: 40px auto 90px;
}

.legal-card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 36px;
}

.legal-eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
}

.legal-card h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 30px;
}

.legal-meta {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 18px;
  color: var(--text);
}

.legal-card p {
  margin: 0 0 12px;
  color: #c8cad3;
  line-height: 1.7;
  font-size: 15px;
}

.legal-card a {
  color: var(--blue);
}

.legal-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #c8cad3;
  line-height: 1.7;
  font-size: 15px;
}

.legal-list li::marker {
  color: var(--red);
}

.legal-code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  margin: 0 0 14px;
}

.legal-card code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--cyan);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 8, 0.9);
  margin-top: 40px;
}

.footer-inner {
  width: min(1340px, 95vw);
  margin: 0 auto;
  padding: 26px 0 34px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-powered {
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-brand a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.footer-brand a:hover {
  color: var(--red);
}

.footer-dot {
  color: #555;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-legal a,
.footer-cookie-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.footer-legal a:hover,
.footer-cookie-link:hover {
  color: var(--text);
}

.footer-copy {
  color: #6b6c74;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Minimal footer on the landing page: discreet single row */
.site-footer--minimal {
  background: transparent;
  border-top: 0;
  margin-top: 0;
}

.site-footer--minimal .footer-inner {
  padding: 14px 0 22px;
  gap: 8px;
}

.site-footer--minimal .footer-copy {
  display: none;
}

.site-footer--minimal .footer-legal a,
.site-footer--minimal .footer-cookie-link {
  font-size: 12px;
  color: #8a8b93;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  width: min(960px, 94vw);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(213, 58, 74, 0.45);
  background: rgba(10, 12, 17, 0.98);
  box-shadow: var(--glow-red), 0 18px 50px rgba(0, 0, 0, 0.5);
  padding: 18px 20px;
}

.cookie-text strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cookie-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-text a {
  color: var(--blue);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.cookie-btn--primary {
  background: var(--red);
  border: 0;
  color: #fff;
}

.cookie-btn--primary:hover {
  background: #e2475a;
}

/* ---------- Admin panel ---------- */
.admin-badge {
  border: 1px solid rgba(213, 58, 74, 0.6);
  color: var(--red);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.admin-main {
  width: min(1240px, 95vw);
  margin: 28px auto 90px;
}

.admin-auth {
  display: grid;
  place-items: center;
  min-height: 50vh;
}

.admin-auth[hidden] {
  display: none;
}

.admin-auth-card {
  width: min(420px, 92vw);
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 32px;
  text-align: center;
}

.admin-auth-card h1 {
  font-family: var(--display);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.admin-auth-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.admin-auth-card form {
  display: grid;
  gap: 12px;
}

.admin-auth-card input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.admin-tab {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Admin: modern sidebar shell ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 20px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 70vh;
}

.admin-side-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.admin-side-logo {
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--text);
}

.admin-side-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-label {
  margin: 4px 10px 4px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6c74;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-nav-item span {
  flex: 1;
}

.admin-nav-item:hover {
  background: var(--panel-2);
  color: var(--text);
}

.admin-nav-item.is-active {
  background: linear-gradient(90deg, rgba(213, 58, 74, 0.22), rgba(213, 58, 74, 0.05));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--red);
}

.admin-nav-item.is-active svg {
  opacity: 1;
  color: var(--red);
}

.admin-nav-count {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  border-radius: 999px;
  padding: 1px 6px;
  flex: none;
}

.admin-side-foot {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: var(--font);
  cursor: pointer;
}

.admin-logout svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.admin-logout:hover {
  background: rgba(213, 58, 74, 0.12);
  color: #f08a96;
}

.admin-workspace {
  min-width: 0;
}

.admin-workbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-workbar-titles {
  flex: 1;
  min-width: 0;
}

.admin-workbar-titles h1 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 22px;
  color: var(--text);
}

.admin-workbar-titles p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  flex: none;
}

.admin-refresh svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.admin-refresh:hover {
  border-color: var(--red);
  color: #fff;
}

.admin-burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 9px;
  padding: 7px;
  cursor: pointer;
}

.admin-burger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* Dashboard stat cards */
.admin-section-title {
  margin: 26px 0 12px;
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: 15px;
  color: var(--muted);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.admin-stat:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.admin-stat-value {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.admin-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.admin-stat--red .admin-stat-value {
  color: #f08a96;
}

.admin-stat--gold .admin-stat-value {
  color: var(--yellow);
}

.admin-stat--green .admin-stat-value {
  color: #8fe0aa;
}

.admin-content h2 {
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: 18px;
  margin: 0 0 14px;
}

.admin-empty {
  color: var(--muted);
  padding: 24px 0;
}

.admin-error {
  color: var(--red);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td a {
  color: var(--blue);
}

.admin-flag {
  display: inline-block;
  background: rgba(244, 201, 81, 0.12);
  border: 1px solid rgba(244, 201, 81, 0.4);
  color: var(--yellow);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.admin-btn {
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.admin-btn.ok {
  border-color: rgba(108, 207, 142, 0.5);
  color: #8fe0aa;
}

.admin-btn.no {
  border-color: rgba(213, 58, 74, 0.5);
  color: #f08a96;
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .assistant {
    position: static;
  }

  .detail-cards,
  .community {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar-nav {
    display: none;
  }

  .search-filters {
    grid-template-columns: 1fr 1fr;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-thumb {
    min-height: 170px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-burger {
    display: inline-flex;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: 268px;
    border-radius: 0;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    min-height: 100vh;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 560px) {
  .searchbar {
    grid-template-columns: 22px 1fr;
    padding: 8px 12px;
  }

  .searchbar button {
    grid-column: 1 / -1;
    height: 42px;
  }

  .search-filters {
    grid-template-columns: 1fr;
  }

  .home-wordmark {
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
  }
}

/* ---------- Pricing & organizer pages ---------- */
.pricing-main {
  width: min(1100px, 94vw);
  margin: 40px auto 90px;
}

.pricing-hero {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 36px;
  margin-bottom: 28px;
}

.pricing-hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 32px;
}

.pricing-hero p {
  margin: 0 0 8px;
  color: #c8cad3;
  line-height: 1.7;
  font-size: 15px;
  max-width: 70ch;
}

.pricing-hero .form-actions {
  margin-top: 20px;
}

.pricing-groups {
  display: grid;
  gap: 36px;
}

.pricing-group h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 20px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan-card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 17px;
  color: var(--text);
}

.plan-price {
  margin: 0;
  color: var(--yellow);
  font-weight: 600;
  font-size: 16px;
}

.plan-features {
  margin: 0;
  padding-left: 18px;
  color: #c8cad3;
  line-height: 1.65;
  font-size: 14px;
}

.plan-features li::marker {
  color: var(--red);
}

p.plan-features {
  padding-left: 0;
}

.pricing-note {
  margin-top: 36px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 24px;
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pricing-note a {
  color: var(--blue);
}

