@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg0: #120F1B; --bg1: #0D0B14; --panel: #1A1626; --panel2: #221C31; --line: #2E2740;
  --gold: #D9A441; --gold-soft: rgba(217,164,65,.15);
  --pink: #E8447D; --pink-soft: rgba(232,68,125,.15);
  --text: #F3EFE6; --muted: #9C93AE;
  --ok: #3DD68C; --bad: #FF5A5F; --warn: #F5B94A;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --sans: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans); color: var(--text); font-size: 15px; line-height: 1.45;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(232,68,125,.18), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(217,164,65,.12), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: .04em; margin: 0; line-height: 1; }
h1 { font-size: 44px; } h2 { font-size: 30px; } h3 { font-size: 22px; }
a { color: var(--gold); text-decoration: none; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); } .gold { color: var(--gold); } .pink { color: var(--pink); }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.small { font-size: 13px; } .tiny { font-size: 12px; } .big { font-size: 28px; }
.row { display: flex; gap: 10px; align-items: center; } .between { justify-content: space-between; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; } .center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.glow { border-color: rgba(217,164,65,.4); box-shadow: 0 0 0 1px rgba(217,164,65,.15), 0 20px 60px -20px rgba(232,68,125,.35); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pill.gold { background: var(--gold-soft); color: var(--gold); } .pill.pink { background: var(--pink-soft); color: var(--pink); }
.pill.ok { background: rgba(61,214,140,.15); color: var(--ok); } .pill.bad { background: rgba(255,90,95,.15); color: var(--bad); }
.pill.warn { background: rgba(245,185,74,.15); color: var(--warn); } .pill.muted { background: rgba(156,147,174,.15); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0;
  font: 600 15px var(--sans); color: var(--bg1); background: var(--gold); padding: 13px 18px; border-radius: 12px;
  transition: transform .08s, filter .15s; width: 100%; text-decoration: none;
}
.btn:active { transform: scale(.98); } .btn:hover { filter: brightness(1.08); }
.btn.pink { background: var(--pink); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.sm { padding: 8px 12px; font-size: 13px; width: auto; border-radius: 9px; }
.btn.danger { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; background: var(--bg1); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 12px 14px; font: 15px var(--sans); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type=file] { padding: 8px; }
.field { margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); color: var(--text);
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; z-index: 99; max-width: 90vw; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.toast.bad { border-color: var(--bad); } .toast.ok { border-color: var(--ok); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.brand { font-family: var(--display); font-size: 22px; letter-spacing: .08em; }
.brand b { color: var(--gold); font-weight: 400; } .brand i { color: var(--pink); font-style: normal; }
a.brand { color: var(--text); text-decoration: none; display: inline-block; } a.brand:hover { filter: brightness(1.15); }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--panel2); border: 1px solid var(--line); }
.progress { height: 8px; background: var(--bg1); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--pink)); border-radius: 99px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 60% { transform: scale(1.08) } 100% { transform: scale(1); opacity: 1 } }
.pop { animation: pop .35s ease-out; }
.kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi .card .v { font-family: var(--display); font-size: 40px; line-height: 1; margin: 4px 0; }
.kpi .card .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
