:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171b22;
  --panel-border: #2a313d;
  --text: #eef2f7;
  --muted: #9aa4b2;
  --accent: #ff7a18;
  --accent-2: #ffb067;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0c0e12 0%, #121720 100%);
  color: var(--text);
  overflow-x: hidden;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}
.status-bar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(12, 16, 22, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.status-pill {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.status-pill-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.status-pill-value {
  font-size: 1.15rem;
  color: var(--accent-2);
}
.thanks-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(93, 214, 143, 0.34);
  background: rgba(93, 214, 143, 0.14);
  color: #dfffea;
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
.toast-success {
  border-color: rgba(93, 214, 143, 0.34);
  background: rgba(93, 214, 143, 0.16);
}
.thanks-banner[hidden] {
  display: none;
}
.hero { margin-bottom: 28px; }
.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .84rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 4rem); margin: 0 0 10px; }
.lead {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}
.stats-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  margin-right: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.08);
}
.like-card {
  min-width: min(100%, 420px);
  border-color: rgba(255, 96, 143, 0.38);
  background: rgba(255, 96, 143, 0.1);
}
.vote-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.vote-stat {
  padding: 10px;
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.35);
}
.vote-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.stats-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.stats-value {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--accent-2);
}
.like-form {
  margin-top: 8px;
}
.vote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.vote-form {
  margin-top: 0;
}
.vote-button {
  margin-top: 0;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.vote-up {
  background: linear-gradient(135deg, #ff5f8f, #ff8c66);
}
.vote-down {
  background: linear-gradient(135deg, #6a8dff, #7fd2ff);
}
.vote-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}
.vote-status {
  margin: 12px 0 10px;
  color: var(--text);
  font-weight: 600;
}
.pulse {
  animation: votePulse 0.55s ease;
}
@keyframes votePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (max-width: 720px) {
  .status-bar,
  .vote-stats,
  .vote-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .status-bar,
  .vote-stats,
  .vote-actions,
  .grid {
    grid-template-columns: 1fr;
  }

  .status-bar {
    top: 8px;
    gap: 8px;
    padding: 8px;
  }

  .stats-card,
  .like-card {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .vote-button,
  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .toast {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: rgba(23, 27, 34, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}
.card h2 { margin-top: 0; }
label {
  display: block;
  margin: 12px 0 8px;
  color: var(--muted);
}
input, textarea, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #303949;
  background: #0d1117;
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.98rem;
}
textarea { resize: vertical; min-height: 160px; }
button {
  margin-top: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  color: #111;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }
.flash-list { margin-bottom: 16px; }
.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.flash-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ffd5d5;
}
.flash-success {
  background: rgba(93, 214, 143, 0.12);
  border: 1px solid rgba(93, 214, 143, 0.38);
  color: #d7ffe8;
}
.footer-note {
  margin-top: 24px;
  color: var(--muted);
}
