:root {
  color-scheme: dark;
  --bg: #080c14;
  --panel: #111827;
  --panel-2: #172033;
  --text: #eef3fb;
  --muted: #9aa8bc;
  --line: #27344a;
  --orange: #f59e0b;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #fb7185;
  font-family: Inter, ui-sans-serif, system-ui, "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, #123351 0, transparent 35%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(20px, calc((100vw - 1120px) / 2)); background: rgba(8,12,20,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #111827; background: linear-gradient(135deg, var(--orange), #fde68a); font-size: 13px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav button { padding: 8px 12px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; }
nav button:hover, nav button.active { color: white; background: var(--panel-2); }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
footer { padding: 28px 16px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: 13px; }
.hero { min-height: 430px; display: grid; align-content: center; padding: 56px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(110deg, rgba(8,12,20,.96), rgba(8,12,20,.35)), url('/arena-cover.svg') center/cover; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 7vw, 78px); line-height: .98; letter-spacing: -.05em; overflow-wrap: anywhere; word-break: break-word; }
h2 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 40px); }
h3 { margin: 0 0 8px; }
.hero p { max-width: 640px; margin: 22px 0 28px; color: #c7d2e3; font-size: 18px; line-height: 1.8; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 11px; color: white; background: var(--panel-2); font-weight: 750; }
.button.primary { border-color: transparent; color: #111827; background: var(--orange); }
.button.danger { border-color: rgba(251,113,133,.4); color: #fecdd3; background: rgba(159,18,57,.25); }
.button.small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head p, .muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,24,39,.9); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.card p { color: var(--muted); line-height: 1.65; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border: 1px solid #40506a; border-radius: 16px; background: linear-gradient(145deg, #26344d, #121a2a); color: var(--cyan); font-weight: 900; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.tag, .status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #1e293b; color: #cbd5e1; font-size: 12px; }
.status.approved, .status.open { color: #a7f3d0; background: rgba(6,78,59,.5); }
.status.pending { color: #fde68a; background: rgba(120,53,15,.45); }
.status.rejected, .status.banned { color: #fecdd3; background: rgba(136,19,55,.45); }
.event-meta { display: grid; gap: 7px; margin: 16px 0; color: #c3d0e2; font-size: 14px; }
.form-shell { width: min(680px, 100%); margin: 0 auto; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #d7e0ed; font-size: 14px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #334155; border-radius: 10px; outline: none; color: white; background: #0b1220; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice { padding: 13px 15px; border: 1px solid #36516f; border-radius: 12px; color: #bfdbfe; background: rgba(30,58,138,.2); }
.empty, .loading { padding: 64px 20px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 18px; }
.admin-list { display: grid; gap: 12px; }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.admin-item .actions { justify-content: flex-end; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
#toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: 360px; padding: 13px 16px; border-radius: 12px; background: #e2e8f0; color: #111827; box-shadow: 0 16px 50px rgba(0,0,0,.4); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } .hero { padding: 34px 24px; min-height: 390px; } .hero h1 { font-size: clamp(38px, 8vw, 56px); } .site-header { align-items: flex-start; flex-direction: column; } nav { justify-content: flex-start; } .form-row { grid-template-columns: 1fr; } .admin-item { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .site-header { position: static; flex-direction: column; } nav { justify-content: flex-start; } main { padding-top: 24px; } }
