:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b10;
  color: #f5f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #080b10 0%, #101621 52%, #080b10 100%);
}

a { color: inherit; text-decoration: none; }

.social-page, .contest, .admin, .admin-login {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero, .contest-hero, .admin header {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent2, #ed1c24);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.hero p, .contest-hero p {
  max-width: 680px;
  color: #c9d3e1;
  font-size: 18px;
}

.site-link, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent, #005baa), var(--accent2, #ed1c24));
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0;
}

.social-card {
  min-height: 172px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent, #005baa), white 35%);
  background: rgba(255,255,255,.085);
}

.network {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.10);
  color: #c9d3e1;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.social-card strong {
  font-size: 18px;
}

.metric {
  font-size: 34px;
  font-weight: 900;
}

.social-card small, footer, .note {
  color: #9ca9ba;
}

.panel, .requirements {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.contest-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: #0e141d;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

textarea { min-height: 92px; resize: vertical; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align: left;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.actions a {
  color: #c7ddff;
  font-weight: 800;
}

.actions form {
  margin: 0;
}

.actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

td small {
  display: block;
  color: #94a3b8;
  margin-top: 4px;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-login form {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: grid;
  gap: 14px;
}

.error {
  padding: 10px 12px;
  background: rgba(237, 28, 36, .16);
  border: 1px solid rgba(237, 28, 36, .45);
  border-radius: 6px;
}

.contest-list {
  display: grid;
  gap: 12px;
}

.contest-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

@media (max-width: 820px) {
  .hero, .contest-hero, .admin header {
    min-height: 220px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .grid, .contest-form {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
