:root {
  --bg: #0f1420;
  --bg-soft: #161d2e;
  --card: #1b2436;
  --border: #2a3450;
  --text: #e9edf5;
  --text-dim: #9aa5bd;
  --accent: #35d07f;
  --accent-dark: #23a862;
  --gold: #f2b84b;
  --danger: #ef5b5b;
  --radius: 12px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Football pitch themed backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(6, 13, 9, 0.72) 0%, rgba(5, 10, 8, 0.88) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1050 680'%3E%3Cg fill='none' stroke='white' stroke-width='4' stroke-opacity='0.16'%3E%3Crect x='20' y='20' width='1010' height='640'/%3E%3Cline x1='525' y1='20' x2='525' y2='660'/%3E%3Ccircle cx='525' cy='340' r='90'/%3E%3Ccircle cx='525' cy='340' r='5' fill='white' stroke='none'/%3E%3Crect x='20' y='170' width='165' height='340'/%3E%3Crect x='20' y='270' width='55' height='140'/%3E%3Ccircle cx='185' cy='340' r='5' fill='white' stroke='none'/%3E%3Cpath d='M185,270 A90,90 0 0,1 185,410'/%3E%3Crect x='865' y='170' width='165' height='340'/%3E%3Crect x='975' y='270' width='55' height='140'/%3E%3Ccircle cx='865' cy='340' r='5' fill='white' stroke='none'/%3E%3Cpath d='M865,270 A90,90 0 0,0 865,410'/%3E%3Cpath d='M20,20 a24,24 0 0,1 24,24'/%3E%3Cpath d='M1030,20 a24,24 0 0,0 -24,24'/%3E%3Cpath d='M20,660 a24,24 0 0,0 24,-24'/%3E%3Cpath d='M1030,660 a24,24 0 0,1 -24,-24'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 46px, rgba(0, 0, 0, 0.05) 46px, rgba(0, 0, 0, 0.05) 92px),
    radial-gradient(ellipse 120% 90% at 50% 0%, #1f6b3a 0%, #16522c 45%, #0d2818 75%, #081712 100%);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-size: cover, min(1300px, 150vw) auto, auto, cover;
  background-position: center, center 40px, center, center;
}

a { color: var(--accent); }

header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 27, 43, 0.6);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}

header.topbar .brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
header.topbar .brand span { color: var(--accent); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.hint {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Jadwal bola (/jadwal) */
.schedule-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.schedule-date { font-weight: 700; text-align: center; flex: 1; }
.league-group { margin-bottom: 28px; }
.league-group-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.match-team { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; min-width: 0; }
.match-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team-away { justify-content: flex-end; text-align: right; }
.team-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.match-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; flex-shrink: 0; }
.match-score { font-weight: 800; font-size: 1.1rem; }
.match-time { color: var(--text-dim); font-size: 0.85rem; font-family: 'Consolas', monospace; }

@media (max-width: 560px) {
  .match-row { padding: 10px; gap: 6px; }
  .match-team { font-size: 0.78rem; }
}

/* PS5-style mini games dashboard (/games) */
:root { --glow: #35d07f; }
.dash-body { overflow-x: hidden; }
.dash-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #05070c;
  overflow: hidden;
}
.dash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  background: var(--glow);
  transition: background 0.6s ease;
}
.dash-orb-1 { width: 380px; height: 380px; top: -100px; left: -80px; animation: dashFloat1 18s ease-in-out infinite; }
.dash-orb-2 { width: 300px; height: 300px; bottom: -80px; right: 5%; animation: dashFloat2 22s ease-in-out infinite; }
.dash-orb-3 { width: 220px; height: 220px; top: 40%; left: 60%; animation: dashFloat3 16s ease-in-out infinite; }
@keyframes dashFloat1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@keyframes dashFloat2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -40px); } }
@keyframes dashFloat3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, 25px); } }

.dash-main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.dash-highlight {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(20, 27, 43, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.dash-highlight-icon {
  font-size: 5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 24px var(--glow));
  transition: filter 0.6s ease;
}
.dash-highlight-body { min-width: 0; }
.dash-highlight-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.dash-highlight-title { margin: 0 0 8px; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.01em; }
.dash-highlight-desc { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 20px; max-width: 520px; }
.dash-play-btn { font-size: 1rem; padding: 12px 28px; }

.dash-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 6px 14px;
}
.dash-tile {
  flex: 0 0 auto;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  border-radius: 16px;
  background: rgba(22, 29, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.dash-tile-art { font-size: 3rem; line-height: 1; transition: transform 0.25s ease; }
.dash-tile-label { font-weight: 700; font-size: 0.95rem; text-align: center; }
.dash-tile:hover, .dash-tile:focus-visible, .dash-tile.is-active {
  transform: translateY(-8px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(28, 36, 56, 0.85);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  outline: none;
}
.dash-tile:hover .dash-tile-art, .dash-tile:focus-visible .dash-tile-art, .dash-tile.is-active .dash-tile-art {
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .dash-highlight { flex-direction: column; text-align: center; padding: 24px; }
  .dash-highlight-desc { max-width: none; }
  .dash-highlight-icon { font-size: 3.5rem; }
  .dash-tile { width: 140px; padding: 20px 12px; }
}

/* Editorial hero filmstrip (homepage) */
.hero-stage {
  position: relative;
  width: 100%;
  height: 560px;
  margin: 20px auto 28px;
  background: #05070c;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  outline: none;
  touch-action: pan-y;
  user-select: none;
}
.hero-stage:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.hero-stage.hero-dragging .hero-filmstrip-wrap { cursor: grabbing; }

.hero-bg { position: absolute; inset: 0; isolation: isolate; }
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.hero-bg-tint { position: absolute; inset: 0; transition: background-color 0.4s ease; }
.hero-bg-tint-color { mix-blend-mode: color; }
.hero-bg-tint-multiply { mix-blend-mode: multiply; opacity: 0.5; }

.hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 42%, rgba(5,7,12,0.6) 100%);
  pointer-events: none;
}

.hero-headline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 24px 18px;
}
.hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero-credit-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-credit {
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta {
  display: flex;
  gap: 16px;
  color: rgba(255,255,255,0.72);
  font-family: 'Consolas', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hero-headline .btn { align-self: flex-start; margin-top: 2px; }

.hero-filmstrip-wrap {
  position: absolute;
  top: 54%;
  left: 0; right: 0;
  cursor: grab;
}
.hero-track {
  display: flex;
  align-items: flex-start;
  transition: none;
  will-change: transform;
}
.hero-track.settling { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

.hero-card {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  background: #11151f;
  cursor: pointer;
  transition: none;
}
.hero-card.settling { transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; pointer-events: none; }
.hero-card-placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, #1b2436, #0d1320); }
.hero-card-veil { position: absolute; inset: 0; background: #000; opacity: 0.35; transition: opacity 0.3s ease; pointer-events: none; }
.hero-card.is-active .hero-card-veil { opacity: 0; }

.hero-rail {
  position: absolute;
  left: 24px;
  bottom: 16px;
  color: rgba(255,255,255,0.8);
  font-family: 'Consolas', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.hero-rail-count { display: flex; justify-content: space-between; margin-bottom: 8px; }
.hero-rail-track { position: relative; height: 1px; width: 160px; background: rgba(255,255,255,0.25); }
.hero-rail-bar { position: absolute; inset-block: 0; background: #fff; transition: left 0.4s ease, width 0.4s ease; }

@media (max-width: 640px) {
  .hero-stage { height: 480px; }
  .hero-rail-track { width: 110px; }
}

.card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #0d1320;
  display: block;
}
.card .thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .title { font-weight: 700; font-size: 1.05rem; }
.card .teams { color: var(--text-dim); font-size: 0.9rem; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge.upcoming { background: rgba(242, 184, 75, 0.15); color: var(--gold); }
.badge.active { background: rgba(53, 208, 127, 0.15); color: var(--accent); }
.badge.closed { background: rgba(154, 165, 189, 0.15); color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0.14) 55%, rgba(255,255,255,0.1) 82%, rgba(255,255,255,0) 100%),
    var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  filter: url(#liquidMetal);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0.15) 52%, transparent 70%);
  background-size: 250% 250%;
  background-position: -150% -150%;
  pointer-events: none;
  transition: background-position 0.7s ease;
}
.btn:hover::after { background-position: 150% 150%; }
.btn:hover { border-color: var(--accent); }
.btn.primary {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0.16) 55%, rgba(255,255,255,0.22) 82%, rgba(255,255,255,0) 100%),
    var(--accent);
  border-color: var(--accent);
  color: #06210f;
}
.btn.primary:hover { background-color: var(--accent-dark); }
.btn.danger {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0.08) 80%, rgba(255,255,255,0) 100%),
    transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn.danger:hover { background-color: rgba(239, 91, 91, 0.12); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled::after { display: none; }
.btn.small { padding: 6px 10px; font-size: 0.82rem; }
.btn.block { width: 100%; }

.empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 100;
}
.overlay.hidden { display: none; }

.modal {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  margin: auto 0;
  overflow: hidden;
}
.modal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal .modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal .close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal .modal-body { padding: 20px; }
.modal img.hero {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}

.countdown {
  font-family: 'Consolas', monospace;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 6px 0 16px;
}

.terms-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.88rem;
  color: var(--text-dim);
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 16px;
}

form .field { margin-bottom: 14px; }
form label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text-dim); }
form label .req { color: var(--danger); }
form input, form textarea, form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1524;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.score-inputs { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 4px 0 14px; }
.score-inputs input { text-align: center; font-size: 1.4rem; font-weight: 700; width: 80px; }
.score-inputs .vs { color: var(--text-dim); font-weight: 700; }

.msg { padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 12px; }
.msg.error { background: rgba(239, 91, 91, 0.12); color: var(--danger); border: 1px solid rgba(239, 91, 91, 0.3); }
.msg.success { background: rgba(53, 208, 127, 0.12); color: var(--accent); border: 1px solid rgba(53, 208, 127, 0.3); }

.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

footer.foot {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 30px 20px;
}
footer.foot p { margin: 0 0 10px; }

.help-box {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}
.help-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.help-link:hover { text-decoration: underline; }

.notice-overlay { z-index: 200; align-items: center; }
.notice-modal { max-width: 420px; }

/* Snake game */
.game-shell {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.identity-gate {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
}
.game-hud .score-value { color: var(--accent); font-size: 1.3rem; }
.game-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
#gameCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #0a0f1a;
  border: 2px solid var(--border);
  border-radius: 10px;
  display: block;
  touch-action: none;
}
#penaltyCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 520;
  background: #0a0f1a;
  border: 2px solid var(--border);
  border-radius: 10px;
  display: block;
  touch-action: none;
}
#tetrisCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 560;
  background: #0a0f1a;
  border: 2px solid var(--border);
  border-radius: 10px;
  display: block;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.88);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}
.game-overlay.hidden { display: none; }
.game-overlay h3 { margin: 0; font-size: 1.2rem; }
.game-overlay .final-score { color: var(--gold); font-size: 1.6rem; font-weight: 800; }

.dpad {
  display: grid;
  grid-template-columns: 60px 60px 60px;
  grid-template-rows: 60px 60px 60px;
  gap: 6px;
  justify-content: center;
  margin: 18px auto 0;
}
.dpad button {
  font-size: 1.4rem;
  border-radius: 10px;
}
.dpad .dp-up { grid-column: 2; grid-row: 1; }
.dpad .dp-left { grid-column: 1; grid-row: 2; }
.dpad .dp-down { grid-column: 2; grid-row: 2; }
.dpad .dp-right { grid-column: 3; grid-row: 2; }

.leaderboard-section { margin-top: 30px; text-align: left; }


/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-shell .sidebar {
  width: 220px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}
.admin-shell .sidebar .brand { padding: 0 20px 20px; font-weight: 800; font-size: 1.15rem; }
.admin-shell .sidebar .brand span { color: var(--accent); }
.admin-shell .nav-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.admin-shell .nav-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.admin-shell .nav-item.active { color: var(--accent); border-left-color: var(--accent); background: rgba(53,208,127,0.06); }
.admin-shell .content { flex: 1; padding: 28px; max-width: 980px; }
.admin-shell .content h1 { margin-top: 0; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 380px;
}
.login-box h1 { margin-top: 0; font-size: 1.3rem; text-align: center; }
.login-box .sub { color: var(--text-dim); font-size: 0.85rem; text-align: center; margin-bottom: 20px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th, table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data-table th { color: var(--text-dim); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }
table.data-table tr.winner { background: rgba(53, 208, 127, 0.08); }
table.data-table .actions { display: flex; gap: 6px; }

.tag-published { color: var(--accent); font-weight: 700; font-size: 0.78rem; }
.tag-draft { color: var(--text-dim); font-weight: 700; font-size: 0.78rem; }

.image-preview {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
  display: none;
  border: 1px solid var(--border);
}

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.spinner-overlay {
  position: fixed; inset: 0; background: rgba(4,6,12,0.5);
  display: none; align-items: center; justify-content: center; z-index: 200;
  color: var(--text);
}

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-shell .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
  .admin-shell .sidebar .brand { display: none; }
  .admin-shell .nav-item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .admin-shell .nav-item.active { border-bottom-color: var(--accent); }
  .row2 { grid-template-columns: 1fr; }
}
