/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

/* === DESIGN TOKENS === */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --red: #cc0000;
  --yellow: #ffcc00;
  --orange: #e67300;
  --white: #e0e0e0;
  --white-bright: #ffffff;
  --muted: #888888;
  --green: #00cc66;
}

/* === TYPOGRAPHY === */
h1, h2, h3, .mono { font-family: "Courier New", "Courier", monospace; }
h2 { font-size: 2.5rem; color: var(--white-bright); text-transform: uppercase; letter-spacing: 0.1em; }

/* === UTILITIES === */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a[href="#main"]:focus {
  position: fixed !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
}
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
section { padding: 140px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* === NOISE OVERLAY === */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* === SCAN LINES === */
body::after {
  content: "";
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(204,0,0,0.03) 2px, rgba(204,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9998;
}

/* === FOCUS STATES === */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  @keyframes glitch {
    0% { text-shadow: 2px 0 #cc0000, -2px 0 #0ff; clip-path: inset(20% 0 40% 0); }
    25% { text-shadow: -2px 0 #cc0000, 2px 0 #0ff; clip-path: inset(60% 0 5% 0); }
    50% { text-shadow: 1px 0 #cc0000, -1px 0 #0ff; clip-path: inset(10% 0 70% 0); }
    75% { text-shadow: -1px 0 #cc0000, 1px 0 #0ff; clip-path: inset(50% 0 20% 0); }
    100% { text-shadow: 2px 0 #cc0000, -2px 0 #0ff; clip-path: inset(30% 0 30% 0); }
  }

  @keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.95; }
  }

  @keyframes neon {
    0%, 100% { text-shadow: 0 0 10px var(--red), 0 0 20px var(--red), 0 0 40px var(--red); }
    50% { text-shadow: 0 0 5px var(--red), 0 0 10px var(--red), 0 0 20px var(--red); }
  }

  @keyframes shake {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(4px, 2px); }
    50% { transform: translate(-4px, -2px); }
    75% { transform: translate(4px, -2px); }
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }

  .fade-in, .stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fade-in.visible, .stagger.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .stagger { opacity: 1; transform: none; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 24px;
}

.hero__title {
  font-size: 4rem;
  color: var(--white-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: none;
    transition: none;
  }
  .hero__title:hover {
    animation: none;
    color: var(--white-bright);
    text-shadow: none;
    transform: none;
  }
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 24px;
  font-style: italic;
}

.hero__subline {
  font-size: 0.95rem;
  color: var(--red);
  margin-top: 8px;
  font-family: "Courier New", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  transition: opacity 500ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-indicator { animation: pulse 2s ease-in-out infinite; }
}

.hero__arrow { font-size: 1.2rem; }

/* === RESPONSIVE: HERO === */
@media (max-width: 768px) {
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid rgba(204,0,0,0.2);
  transform: translateY(-100%);
  transition: transform 300ms ease;
}
.navbar.visible { transform: none; }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.navbar__brand {
  font-family: "Courier New", monospace;
  color: var(--white-bright);
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.navbar__brand--red { color: #ff3333; }
.navbar__links {
  display: flex;
  list-style: none;
  gap: 24px;
}
.navbar__links a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  transition: color 200ms;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--red); }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  transition: transform 200ms, opacity 200ms;
}

/* Mobile nav */
@media (max-width: 768px) {
  .navbar__hamburger { display: flex; z-index: 10002; }
  .navbar__links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    background: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms;
  }
  .navbar__links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__links a { font-size: 1.2rem; }
  .auth-buttons {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 10002;
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms;
  }
  .navbar__links.open ~ .auth-buttons {
    opacity: 1;
    pointer-events: auto;
  }
}

/* === SECTION HEADERS === */
.section-header { margin-bottom: 48px; position: relative; }
.section-header__case {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 8px;
}

/* === CHARGES === */
.charges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.charge-card {
  background: var(--surface);
  border-left: 3px solid var(--red);
  padding: 32px 24px;
}
.charge-card__count {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}
.charge-card__title {
  font-size: 1.2rem;
  color: var(--white-bright);
  margin-bottom: 16px;
}
.charge-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.charge-card__link {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: color 200ms;
}
.charge-card__link:hover { color: var(--yellow); }

@media (max-width: 768px) {
  .charges-grid { grid-template-columns: 1fr; }
}

/* === STAMPS === */
.stamp {
  font-family: "Courier New", monospace;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  transform: rotate(-12deg);
  opacity: 0.15;
  pointer-events: none;
}
.stamp--classified { color: var(--red); top: 20px; right: 0; }
.stamp--declassified { color: var(--yellow); top: 20px; right: 0; }

/* === REDACTED === */
.redacted {
  background: #000;
  color: #000;
  padding: 0 4px;
  border-radius: 2px;
}

/* === WITNESSES === */
.witness-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.witness-card {
  background: #f5f0e8;
  color: #1a1a1a;
  padding: 28px 24px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  position: relative;
}
.witness-card:nth-child(odd) { transform: rotate(-1.5deg); }
.witness-card:nth-child(even) { transform: rotate(1deg); }
.witness-card:nth-child(3n) { transform: rotate(2deg) translateX(8px); }

.witness-card__id {
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.witness-card p {
  color: #333;
}

@media (max-width: 768px) {
  .witness-grid { grid-template-columns: 1fr; }
  .witness-card { transform: none !important; }
}

/* === EVIDENCE === */
.evidence-timeline {
  position: relative;
  padding-left: 32px;
  background: linear-gradient(180deg, rgba(212,197,160,0.02) 0%, rgba(212,197,160,0.04) 50%, rgba(212,197,160,0.02) 100%);
  border-radius: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.evidence-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
}
.evidence-item {
  background: var(--surface);
  border: 1px solid rgba(136,136,136,0.15);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
}
.evidence-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 32px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
}
.evidence-item__tab {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--yellow);
  letter-spacing: 0.25em;
  background: rgba(255,204,0,0.08);
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.evidence-item__date {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.evidence-item__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 16px;
}

/* Severity tags */
.severity {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 3px 10px;
  border: 1px solid;
  display: inline-block;
}
.severity--minor { color: var(--yellow); border-color: var(--yellow); }
.severity--moderate { color: var(--orange); border-color: var(--orange); }
.severity--severe { color: var(--red); border-color: var(--red); }

/* === GRADING EXPOSE === */
.section-header__subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  margin-top: 8px;
}
.expose-block {
  background: var(--surface);
  border: 1px solid rgba(136,136,136,0.1);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.expose-block h3 {
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 12px;
}
.expose-block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Bar charts */
.bar-chart { display: flex; flex-direction: column; gap: 16px; }
.bar-chart__item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bar-chart__label {
  font-size: 0.8rem;
  color: var(--white);
  min-width: 200px;
  flex-shrink: 0;
}
.bar-chart__track {
  flex: 1;
  height: 24px;
  background: rgba(136,136,136,0.1);
  min-width: 100px;
}
.bar-chart__fill {
  height: 100%;
  background: var(--red);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-chart__value {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  color: var(--red);
  font-weight: bold;
  min-width: 40px;
}

/* Pullquote */
.pullquote {
  border-left: 3px solid var(--red);
  padding: 24px 28px;
  margin-top: 40px;
  font-size: 1.4rem;
  color: var(--white-bright);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bar-chart__label { min-width: 100%; }
  .bar-chart__item { flex-wrap: wrap; }
}

/* === SURVIVAL GUIDE === */
.survival-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.survival-card {
  background: var(--surface);
  border-left: 3px solid var(--yellow);
  padding: 28px 24px;
}
.survival-card__priority {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  color: var(--yellow);
}
.survival-card h3 {
  font-size: 1.1rem;
  color: var(--white-bright);
  margin-bottom: 12px;
}
.survival-card p,
.survival-card li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.survival-card ul {
  list-style: none;
  margin-top: 8px;
}
.survival-card li { margin-bottom: 8px; }
.survival-card a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: rgba(255,204,0,0.3);
  transition: text-decoration-color 200ms;
}
.survival-card a:hover { text-decoration-color: var(--yellow); }

/* === HALL OF SHAME === */
@media (prefers-reduced-motion: no-preference) {
  .neon-text { animation: neon 2s ease-in-out infinite alternate; }
  .shake-on-enter.visible { animation: shake 300ms ease; }

  @keyframes red-flash {
    0%, 95%, 100% { box-shadow: none; }
    97% { box-shadow: inset 0 0 60px rgba(204,0,0,0.15); }
  }
  .shame-quote:nth-child(odd) { animation: red-flash 4s ease infinite; }
  .shame-quote:nth-child(even) { animation: red-flash 5s ease infinite 1s; }
}

.shame-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.shame-quote {
  background: var(--surface);
  padding: 28px 32px;
  border-left: 3px solid var(--red);
}
.shame-quote blockquote {
  font-size: 1.3rem;
  color: var(--white-bright);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 8px;
}
.shame-quote cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Greatest Hits */
.greatest-hits__title {
  font-size: 1.1rem;
  color: var(--yellow);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.greatest-hits {
  list-style: none;
  margin-bottom: 48px;
}
.greatest-hits li {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(136,136,136,0.1);
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.6;
}
.greatest-hits li strong { color: var(--red); }

/* Wanted Poster */
.wanted-poster {
  width: 300px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, #d4c5a0, #c4b48a, #d4c5a0);
  padding: 32px 24px;
  text-align: center;
  border: 3px solid #8b7d5e;
}
.wanted-poster__header {
  font-family: "Courier New", monospace;
  font-size: 2rem;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.wanted-poster__silhouette {
  width: 120px;
  height: 120px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wanted-poster__icon {
  font-size: 3rem;
  color: #666;
}
.wanted-poster__text {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #333;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Meme placeholders */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.meme-placeholder {
  aspect-ratio: 16/9;
  border: 2px dashed var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .meme-grid { grid-template-columns: 1fr; }
  .wanted-poster { width: 250px; }
}

/* === FORM === */
.testimony-form { max-width: 600px; }
.form-group { margin-bottom: 24px; }
.form-group label,
.form-group legend {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.form-required { color: var(--red); }
.form-optional { color: var(--muted); font-size: 0.65rem; }
fieldset { border: none; padding: 0; }

input[type="date"] { color-scheme: dark; }
input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--muted);
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  padding: 10px 0;
  transition: border-color 200ms;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: none;
}
select { cursor: pointer; }
select option { background: var(--bg); color: var(--white); }
textarea { resize: vertical; border: 1px dashed var(--muted); padding: 12px; }
textarea:focus { border-color: var(--red); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 8px;
  cursor: pointer;
}
input[type="checkbox"] { accent-color: var(--red); }

.btn-submit {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--white-bright);
  background: var(--red);
  border: none;
  padding: 14px 40px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 200ms, transform 100ms;
}
.btn-submit:hover { background: #e60000; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.form-status.success { color: #00cc66; }
.form-status.error { color: var(--red); }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid rgba(136,136,136,0.1);
  padding: 40px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  letter-spacing: 0.1em;
}
.site-footer__disclaimer {
  font-size: 0.7rem;
  margin-top: 8px;
  color: rgba(136,136,136,0.6);
}

/* === MODAL OVERLAY === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.modal-content {
  background: var(--bg);
  border: 1px solid rgba(136,136,136,0.15);
  border-top: 3px solid var(--red);
  padding: 40px 32px;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--white); }

/* === AUTH MODAL === */
.auth-modal h2 {
  margin-bottom: 24px;
}
.auth-warning {
  background: rgba(255,204,0,0.06);
  border: 1px solid rgba(255,204,0,0.3);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--yellow);
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
}
.auth-error {
  color: var(--red);
  font-size: 0.8rem;
  font-family: "Courier New", monospace;
  margin-bottom: 12px;
  min-height: 1.2em;
}
.auth-switch {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.auth-switch a {
  color: var(--red);
  text-decoration: underline;
}

/* === NAV AUTH BUTTONS === */
.auth-btn {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: 1px solid var(--muted);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.auth-btn:hover { border-color: var(--red); color: var(--red); }
.auth-btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-bright);
}
.auth-btn--primary:hover { background: #e60000; border-color: #e60000; color: var(--white-bright); }

.auth-user {
  position: relative;
  cursor: pointer;
}
.auth-username {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.auth-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(136,136,136,0.15);
  padding: 8px 0;
  display: none;
  min-width: 120px;
  z-index: 10001;
}
.auth-dropdown.open { display: block; }
.auth-dropdown a,
.auth-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.auth-dropdown a:hover,
.auth-dropdown button:hover { color: var(--red); background: rgba(204,0,0,0.05); }

/* === VOTE BUTTONS === */
.vote-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 200ms;
  color: var(--muted);
}
.vote-btn--up:hover, .vote-btn--up.active { color: var(--green); }
.vote-btn--down:hover, .vote-btn--down.active { color: var(--red); }
.vote-btn.voting { opacity: 0.4; pointer-events: none; }
.vote-count {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--white);
  min-width: 24px;
  text-align: center;
  transition: transform 150ms ease;
}
.vote-count.bumped { transform: scale(1.3); }

/* === TABS === */
.tab-bar {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(136,136,136,0.1);
  margin-bottom: 32px;
}
.tab-btn {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 200ms, border-color 200ms;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

/* === PAGE HEADER (for non-home pages) === */
.page-header {
  padding: 120px 0 60px;
}
.page-header h1 {
  font-size: 2.5rem;
}
@media (max-width: 768px) {
  .page-header { padding: 80px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* === EVIDENCE PAGE === */
.evidence-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.evidence-item--dimmed { opacity: 0.5; }
.evidence-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.evidence-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.evidence-item__meta {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.evidence-item__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.report-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 200ms;
}
.report-btn:hover { color: var(--red); }
.edit-btn, .delete-btn {
  background: none;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.edit-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.delete-btn:hover { border-color: var(--red); color: var(--red); }
.edit-area { margin-top: 8px; }
.edit-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.edit-textarea:focus { outline: none; border-color: var(--yellow); }
.edit-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-load-more {
  display: block;
  margin: 32px auto;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--muted);
  padding: 12px 32px;
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.btn-load-more:hover { border-color: var(--red); color: var(--red); }

/* Severity picker in form */
.severity-picker {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.severity-option {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  border: 1px solid;
  background: none;
  cursor: pointer;
  transition: background 200ms;
}
.severity-option--minor { color: var(--yellow); border-color: var(--yellow); }
.severity-option--moderate { color: var(--orange); border-color: var(--orange); }
.severity-option--severe { color: var(--red); border-color: var(--red); }
.severity-option.selected { background: rgba(255,255,255,0.1); }

/* === SURVEY POPUP === */

/* Entrance/exit animation */
#survey-overlay {
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
#survey-overlay.survey-visible { opacity: 1; }
#survey-overlay .survey-modal {
  transform: translateY(30px) scale(0.97);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
#survey-overlay.survey-visible .survey-modal {
  transform: translateY(0) scale(1);
}

.survey-modal {
  background: linear-gradient(180deg, #0e0e0e 0%, #0a0a0a 100%);
  border: 1px solid rgba(204,0,0,0.15);
  border-top: 3px solid var(--red);
  padding: 48px 40px 40px;
  max-width: 520px;
  width: 92%;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 120px rgba(204,0,0,0.05);
}
.survey-skip {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 1px solid rgba(136,136,136,0.2);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.survey-skip:hover { color: var(--white); border-color: var(--white); }
.survey-progress {
  height: 2px;
  background: rgba(136,136,136,0.12);
  margin-bottom: 36px;
  border-radius: 1px;
  overflow: hidden;
}
.survey-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff3333);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(204,0,0,0.4);
}
.survey-title {
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  color: var(--white-bright);
}
.survey-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}
.survey-question-num {
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.survey-question-text {
  font-size: 1.15rem;
  color: var(--white-bright);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 400;
}

/* Question container transition */
#survey-question-container {
  transition: opacity 200ms ease, transform 200ms ease;
  min-height: 140px;
}

/* Rating blocks */
.survey-rating {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.survey-rating-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid color-mix(in srgb, var(--rating-color) 40%, transparent);
  color: var(--rating-color);
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 72px;
  border-radius: 4px;
  position: relative;
}
.survey-rating-block:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
  border-color: var(--rating-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.survey-rating-block.selected {
  background: var(--rating-color);
  color: var(--bg);
  border-color: var(--rating-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--rating-color) 30%, transparent);
}
.survey-rating-num {
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
}
.survey-rating-label {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Yes/No buttons */
.survey-yesno {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}
.survey-yesno-btn {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 20px 48px;
  border: 1px solid;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
}
.survey-yesno-btn--yes,
.survey-yesno-btn--no {
  color: var(--white);
  border-color: rgba(136,136,136,0.3);
}
.survey-yesno-btn--yes:hover,
.survey-yesno-btn--no:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.08);
}
.survey-yesno-btn--yes.selected,
.survey-yesno-btn--no.selected {
  background: var(--red);
  color: var(--white-bright);
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(204,0,0,0.25);
}

.survey-textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(136,136,136,0.2);
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  padding: 14px;
  resize: vertical;
  margin-bottom: 24px;
  border-radius: 4px;
  transition: border-color 200ms;
}
.survey-textarea:focus { border-color: var(--red); outline: none; }

.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(136,136,136,0.08);
}
.survey-nav-btn {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  background: none;
  border: 1px solid rgba(136,136,136,0.2);
  color: var(--muted);
  cursor: pointer;
  transition: all 200ms;
  border-radius: 2px;
}
.survey-nav-btn:hover { border-color: var(--white); color: var(--white); }
.survey-nav-btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-bright);
  padding: 10px 32px;
}
.survey-nav-btn--primary:hover { background: #e60000; border-color: #e60000; }

.survey-thanks {
  text-align: center;
  color: var(--white-bright);
  font-family: "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 48px 0;
  line-height: 2;
}

@media (max-width: 480px) {
  .survey-modal { padding: 36px 24px 32px; }
  .survey-rating { gap: 6px; }
  .survey-rating-block { min-width: 52px; padding: 14px 10px 10px; }
  .survey-rating-num { font-size: 1.1rem; }
  .survey-yesno-btn { padding: 16px 32px; font-size: 0.85rem; }
}

/* === GRADING PAGE === */
.grading-counter {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  text-align: center;
}
.grading-counter span:first-child {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: bold;
}
.grading-counter__note {
  display: block;
  font-size: 0.65rem;
  margin-top: 4px;
  color: rgba(136,136,136,0.6);
}
.grading-section-title {
  font-size: 1rem;
  color: var(--yellow);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.grading-card {
  background: var(--surface);
  border: 1px solid rgba(136,136,136,0.1);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.grading-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.grading-card__title {
  font-size: 0.95rem;
  color: var(--white-bright);
}
.grading-card__avg {
  font-family: "Courier New", monospace;
  font-size: 2rem;
  font-weight: bold;
}
.grading-card__avg-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.grading-card__total {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 12px;
}
.grading-voted {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Rating distribution bars */
.grading-card__dist { margin-top: 8px; }
.rating-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rating-dist-label {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: bold;
  width: 16px;
  text-align: center;
}
.rating-dist-bar {
  flex: 1;
  height: 16px;
  background: rgba(136,136,136,0.1);
}
.rating-dist-fill {
  height: 100%;
  transition: width 600ms ease;
}
.rating-dist-count {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  width: 24px;
  text-align: right;
}

/* Rating vote row (on grading page) */
.rating-vote-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.rating-vote-row .survey-rating-block {
  padding: 10px 14px;
  min-width: 44px;
}

/* Poll rows (stacked YES/NO) */
.poll-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.poll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Courier New", monospace;
}
.poll-row__pct {
  width: 42px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--white-bright);
  flex-shrink: 0;
}
.poll-row__label {
  width: 30px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.poll-row__label--yes { color: var(--red); }
.poll-row__label--no { color: var(--muted); }
.poll-row__track {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}
.poll-row__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 600ms ease;
}
.poll-row__fill--yes { background: var(--red); }
.poll-row__fill--no { background: rgba(136,136,136,0.4); }

.poll-vote-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.poll-vote-row .survey-yesno-btn {
  padding: 10px 24px;
  font-size: 0.8rem;
}

/* === FORUM PAGE === */
#forum-content {
  transition: opacity 150ms ease;
}

.forum-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Post feed cards */
.forum-post-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid rgba(136,136,136,0.1);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 200ms;
}
.forum-post-card:hover { border-color: rgba(204,0,0,0.3); }
.forum-post-card__vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 40px;
}
.forum-post-card__body { flex: 1; min-width: 0; }
.forum-post-card__thumb {
  width: 100%;
  max-width: 120px;
  height: 80px;
  background-size: cover;
  background-position: center;
  float: right;
  margin-left: 12px;
  margin-bottom: 8px;
}
.forum-post-card__title {
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  color: var(--white-bright);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  line-height: 1.3;
}
.forum-post-card__title:hover { color: var(--red); }
.forum-post-card__preview {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.forum-post-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Thread view */
.forum-back-link {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 24px;
}
.forum-back-link:hover { text-decoration: underline; }

.forum-thread__post {
  background: var(--surface);
  border: 1px solid rgba(136,136,136,0.15);
  padding: 32px 28px;
  margin-bottom: 32px;
}
.forum-thread__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.forum-thread__title {
  font-size: 1.3rem;
  line-height: 1.3;
}
.forum-thread__meta {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.forum-thread__image { margin-bottom: 20px; }
.forum-image-full {
  max-width: 100%;
  max-height: 500px;
  cursor: pointer;
}
.forum-thread__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 20px;
}
.forum-thread__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Comments */
.forum-comments-title {
  font-size: 0.9rem;
  color: var(--yellow);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.forum-comment-form {
  margin-bottom: 32px;
}
.forum-comment-form textarea {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--muted);
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  padding: 12px;
  resize: vertical;
  margin-bottom: 8px;
}
.forum-comment-form textarea:focus { border-color: var(--red); outline: none; }
.forum-comment-form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forum-comment {
  border-left: 2px solid rgba(136,136,136,0.15);
  padding: 16px 20px;
  margin-bottom: 8px;
}
.forum-comment--reply {
  border-left-color: rgba(204,0,0,0.2);
}
.forum-comment__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.forum-comment__author {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.forum-comment__time {
  font-size: 0.65rem;
  color: var(--muted);
}
.forum-comment__image {
  max-width: min(300px, 100%);
  max-height: 200px;
  margin-bottom: 8px;
}
.forum-comment__body {
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 8px;
}
.forum-comment__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.reply-btn {
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}
.reply-btn:hover { color: var(--red); }

.forum-reply-form {
  margin-top: 12px;
  padding-left: 16px;
}
.reply-textarea {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--muted);
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  padding: 10px;
  resize: vertical;
  margin-bottom: 8px;
}
.reply-textarea:focus { border-color: var(--red); outline: none; }

.image-preview { margin-top: 8px; }

@media (max-width: 768px) {
  .forum-post-card__thumb { display: none; }
  .forum-comment--reply { margin-left: 12px !important; }
}

/* === PROFILE PAGE === */
.profile-meta {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(136,136,136,0.08);
  text-decoration: none;
  color: var(--white);
  transition: background 200ms;
}
.profile-item:hover { background: rgba(204,0,0,0.03); }
.profile-item--static { cursor: default; }
.profile-item--static:hover { background: none; }
.profile-item__title {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--white-bright);
  flex: 1;
}
.profile-item__text {
  font-size: 0.85rem;
  color: var(--white);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-item__meta {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.profile-item__vote {
  font-size: 0.85rem;
  min-width: 16px;
}
.profile-item__value {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  white-space: nowrap;
}
.profile-empty {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 32px 0;
}

.profile-account {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(136,136,136,0.1);
}
.profile-account h3 {
  font-size: 1rem;
  color: var(--white-bright);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.profile-account__info {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 20px;
}
.profile-account__info strong { color: var(--white); }
.profile-warning {
  background: rgba(255,204,0,0.05);
  border: 1px solid var(--yellow);
  padding: 14px 18px;
  font-size: 0.8rem;
  color: var(--yellow);
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.btn-delete-account {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  cursor: pointer;
  transition: background 200ms;
}
.btn-delete-account:hover { background: var(--red); color: var(--white-bright); }

/* === EMPTY STATES === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed rgba(136,136,136,0.15);
  background: rgba(17,17,17,0.5);
  margin-top: 8px;
}
.empty-state__icon {
  font-family: "Courier New", monospace;
  font-size: 2.5rem;
  color: rgba(204,0,0,0.25);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  user-select: none;
}
.empty-state__title {
  font-family: "Courier New", monospace;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--white-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.empty-state__rule {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin-bottom: 16px;
}
.empty-state__subtitle {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 32px;
}
.empty-state__btn {
  padding: 12px 32px;
  font-size: 0.8rem;
}
@media (prefers-reduced-motion: no-preference) {
  .empty-state__title {
    animation: flicker 3s ease-in-out infinite;
  }
}
@media (max-width: 480px) {
  .empty-state { padding: 56px 16px; }
  .empty-state__title { font-size: 1.2rem; letter-spacing: 0.12em; }
  .empty-state__icon { font-size: 1.8rem; }
}

/* === MOBILE IMPROVEMENTS === */
@media (max-width: 768px) {
  /* Larger tap targets for buttons and interactive elements */
  .vote-btn { padding: 8px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .reply-btn { padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .report-btn { padding: 8px; min-width: 44px; min-height: 44px; }
  .auth-btn { padding: 10px 16px; font-size: 0.75rem; min-height: 44px; }
  .tab-btn { padding: 14px 8px; min-height: 44px; }
  .btn-submit { width: 100%; padding: 16px; font-size: 0.9rem; }
  .btn-load-more { width: 100%; padding: 16px; }

  /* Form inputs - larger touch targets */
  input[type="text"],
  input[type="password"],
  input[type="date"],
  select,
  textarea { font-size: 16px; padding: 14px 0; min-height: 48px; }
  select { padding: 14px 4px; }
  textarea { padding: 14px 12px; }
  .checkbox-label { padding: 8px 0; min-height: 44px; }
  input[type="checkbox"] { width: 20px; height: 20px; }

  /* Evidence timeline - prevent overflow */
  .evidence-timeline { padding-left: 20px; }
  .evidence-item::before { left: -26px; width: 8px; height: 8px; }
  .evidence-item { padding: 20px 16px; }

  /* Forum post cards - better mobile layout */
  .forum-post-card { padding: 16px; gap: 12px; }
  .forum-post-card__vote { min-width: 36px; }
  .forum-post-card__title { font-size: 0.95rem; }
  .forum-post-card__meta { flex-direction: column; gap: 4px; }

  /* Thread view mobile */
  .forum-thread__post { padding: 20px 16px; }
  .forum-thread__title { font-size: 1.1rem; }
  .forum-thread__header { flex-direction: column; gap: 8px; }
  .forum-comment { padding: 12px 14px; }

  /* Survey modal - prevent horizontal overflow */
  .survey-modal { width: 95%; padding: 32px 20px 28px; }
  .survey-rating { flex-wrap: wrap; }
  .survey-yesno { flex-direction: column; align-items: stretch; }
  .survey-yesno-btn { padding: 16px 24px; text-align: center; }

  /* Grading cards */
  .grading-card { padding: 20px 16px; }
  .grading-card__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rating-vote-row { flex-wrap: wrap; }
  .rating-vote-row .survey-rating-block { min-width: 48px; flex: 1; }
  .poll-vote-row { flex-wrap: wrap; }
  .poll-vote-row .survey-yesno-btn { flex: 1; text-align: center; }

  /* Navbar mobile - auth buttons better placement */
  .auth-buttons {
    bottom: 60px;
    padding: 0 24px;
    flex-direction: column;
    align-items: stretch;
  }
  .auth-buttons .auth-btn { padding: 14px; text-align: center; font-size: 0.8rem; }

  /* Section headers */
  h2 { font-size: 1.8rem; }
  .section-header { margin-bottom: 32px; }

  /* Shame quotes */
  .shame-quote { padding: 20px; }
  .shame-quote blockquote { font-size: 1.05rem; }

  /* Modal on mobile */
  .modal-content { padding: 32px 20px; width: 95%; }

  /* Footer */
  .site-footer { padding: 32px 0; }
}

@media (max-width: 380px) {
  /* Extra small screens */
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.5rem; }
  .charge-card { padding: 24px 16px; }
  .survey-rating-block { min-width: 44px; padding: 12px 8px 8px; }
  .survey-rating-num { font-size: 1rem; }
  .forum-post-card { padding: 14px 12px; }
  .navbar__brand { font-size: 0.85rem; }
}
