[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: #11151b;
  --panel2: #171d25;
  --line: #29313d;
  --text: #f5f7fa;
  --muted: #9aa7b7;
  --red: #e1262f;
  --red2: #ff4b52;
  --green: #31d07f;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(225,38,47,.16), transparent 28rem),
    linear-gradient(180deg, #0a0d11, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
button,input,textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8,10,13,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .shell { display:flex; align-items:center; justify-content:space-between; min-height:68px; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.2px; }
.brand-mark {
  width: 38px; height: 38px; display:grid; place-items:center;
  border-radius: 12px; background: linear-gradient(135deg,var(--red2),#8d1017);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(225,38,47,.25);
}
.hero { padding: 72px 0 36px; }
.hero h1 { margin:0; font-size:clamp(2.2rem,7vw,5rem); line-height:.96; max-width:900px; }
.hero p { color:var(--muted); max-width:700px; font-size:1.1rem; line-height:1.7; }
.pill { display:inline-flex; padding:7px 11px; border:1px solid rgba(255,75,82,.35); border-radius:999px; color:#ff9398; background:rgba(225,38,47,.09); margin-bottom:18px; }
.card {
  background: linear-gradient(180deg, rgba(23,29,37,.96), rgba(14,18,24,.96));
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(430px,100%); padding:28px; }
h1,h2,h3,p { overflow-wrap:anywhere; }
label { display:block; margin:14px 0 7px; color:#c9d1dc; font-size:.92rem; }
input,textarea {
  width:100%; border:1px solid #303948; background:#0b0f14; color:var(--text);
  border-radius:12px; padding:12px 13px; outline:none;
}
input:focus,textarea:focus { border-color:var(--red2); box-shadow:0 0 0 3px rgba(225,38,47,.12); }
textarea { min-height:90px; resize:vertical; }
.btn {
  border:0; border-radius:12px; padding:11px 15px; cursor:pointer; font-weight:750;
  background:#242c37; color:white; display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.btn:hover { filter:brightness(1.1); }
.btn-primary { background:linear-gradient(135deg,var(--red2),#b71921); }
.btn-danger { background:#5f161a; }
.btn-ghost { background:transparent; border:1px solid var(--line); }
.btn-small { padding:8px 10px; font-size:.86rem; }
.toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin:24px 0; }
.grid { display:grid; gap:16px; }
.stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.stat { padding:18px; }
.stat strong { display:block; font-size:1.9rem; margin-top:7px; }
.stat span { color:var(--muted); }
.main-grid { grid-template-columns: 1.35fr .65fr; align-items:start; }
.panel { padding:18px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { padding:13px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; }
.slug { font-weight:800; color:#ff8d92; }
.destination { max-width:360px; color:#cbd4df; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.actions { display:flex; flex-wrap:wrap; gap:7px; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:.76rem; background:#23303d; color:#cbd8e6; }
.badge.live { background:rgba(49,208,127,.12); color:#70e7aa; }
.badge.off { background:rgba(225,38,47,.14); color:#ff8d92; }
.modal {
  display:none; position:fixed; inset:0; z-index:30; background:rgba(0,0,0,.72);
  padding:24px; overflow:auto;
}
.modal.open { display:grid; place-items:center; }
.modal-card { width:min(650px,100%); padding:22px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.full { grid-column:1/-1; }
.notice { padding:12px 14px; border-radius:12px; background:#2c1417; color:#ffb0b4; margin:12px 0; display:none; }
.notice.show { display:block; }
.chart { display:flex; align-items:end; gap:7px; height:170px; padding-top:20px; }
.bar { flex:1; min-width:8px; background:linear-gradient(180deg,var(--red2),#7f1117); border-radius:6px 6px 2px 2px; position:relative; }
.bar span { position:absolute; bottom:-24px; left:50%; transform:translateX(-50%); color:var(--muted); font-size:.68rem; }
.center-page { min-height:100vh; display:grid; place-items:center; padding:24px; text-align:center; }
.center-card { width:min(600px,100%); padding:34px; }
.muted { color:var(--muted); }
footer { color:var(--muted); padding:35px 0; text-align:center; }
@media(max-width:850px){
  .stats { grid-template-columns:1fr 1fr; }
  .main-grid { grid-template-columns:1fr; }
}
@media(max-width:560px){
  .stats,.form-grid { grid-template-columns:1fr; }
  .hero { padding-top:42px; }
  .topbar .shell { min-height:60px; }
  .brand span:last-child { display:none; }
}
