* { box-sizing: border-box; }
:root {
  --blue: #1873c8;
  --green: #10ba87;
  --ink: #17324d;
  --muted: #708399;
  --bg: #f4f7fa;
  --danger: #dc3545;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: #1d2f42;
}
a { color: inherit; text-decoration: none; }
.topbar {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: white;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
}
.brand { font-weight: 900; letter-spacing: 1.5px; font-size: 22px; }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a { padding: 9px 12px; border-radius: 9px; }
.nav a:hover { background: rgba(255,255,255,.14); }
.container { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
h1 { margin: 0; font-size: 28px; color: var(--ink); }
.card { background:white; border-radius:16px; box-shadow:0 7px 28px rgba(29,47,66,.08); padding:20px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:40px; padding:9px 14px; border:0; border-radius:9px;
  background:var(--blue); color:white; font-weight:700; cursor:pointer; font-size:14px;
}
.btn:hover { filter: brightness(.96); }
.btn-green { background: var(--green); }
.btn-danger { background: var(--danger); }
.btn-muted { background: #6f8094; }
.btn-sm { min-height:34px; padding:7px 10px; font-size:13px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:900px; }
th, td { padding:12px 10px; text-align:left; border-bottom:1px solid #edf1f5; vertical-align:middle; }
th { color:#62758b; font-size:13px; text-transform:uppercase; letter-spacing:.35px; }
td { font-size:14px; }
.team { display:flex; align-items:center; gap:8px; }
.team img, .logo-preview { width:44px; height:44px; border-radius:50%; object-fit:contain; background:#fbfcfd; border:1px solid #dce5ed; }
.actions { display:flex; gap:7px; align-items:center; }
.actions form { margin:0; }
.badge { display:inline-flex; color:#fff; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:800; }
.badge-live { background:#f03d48; }
.badge-soon { background:#0dbd82; }
.badge-not-started { background:#2e91cc; }
.badge-ended { background:#9babbf; }
.alert { padding:12px 14px; border-radius:10px; margin-bottom:16px; }
.alert-success { background:#e8fbf4; color:#087853; border:1px solid #bdeedc; }
.alert-danger { background:#fff0f1; color:#a41f2e; border:1px solid #f2c2c7; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column:1/-1; }
label { font-size:13px; font-weight:800; color:#52677e; }
input, select, textarea {
  width:100%; border:1px solid #dbe4ed; border-radius:10px; padding:11px 12px;
  background:#fff; color:#1d2f42; outline:none; font:inherit;
}
input:focus, select:focus, textarea:focus { border-color:#5aa6dd; box-shadow:0 0 0 3px rgba(24,115,200,.09); }
textarea { min-height:125px; resize:vertical; }
.help { font-size:12px; color:#8191a3; line-height:1.45; }
.form-actions { margin-top:18px; display:flex; gap:10px; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:20px; background:linear-gradient(135deg,#1873c8,#10ba87); }
.login-card { width:min(430px,100%); background:#fff; border-radius:18px; padding:30px; box-shadow:0 25px 70px rgba(0,0,0,.2); }
.login-card h1 { text-align:center; margin-bottom:8px; }
.login-card .subtitle { color:#788b9e; text-align:center; margin-bottom:22px; }
.stat-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.stat { background:white; padding:18px; border-radius:14px; box-shadow:0 5px 22px rgba(29,47,66,.06); }
.stat strong { display:block; font-size:28px; color:var(--ink); }
.stat span { color:var(--muted); font-size:13px; }
.switch-row { display:flex; align-items:center; gap:9px; }
@media (max-width: 760px) {
  .topbar { padding:14px 18px; align-items:flex-start; flex-direction:column; gap:8px; }
  .container { width:min(100% - 20px,1180px); margin:18px auto; }
  .grid, .stat-row { grid-template-columns:1fr; }
  .page-head { align-items:flex-start; flex-direction:column; }
}
