:root {
  --bg: #060d2a;
  --bg2: #0a1538;
  --panel: #0e1b47;
  --panel2: #122257;
  --panel3: #172a66;
  --line: rgba(120, 170, 255, .13);
  --line2: rgba(120, 170, 255, .24);
  --text: #eaf0ff;
  --muted: #8b9cc8;
  --dim: #5f6f9c;
  --cyan: #35dcf0;
  --cyan2: #12b5cf;
  --teal: #0c8aa3;
  --navy: #1a2470;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --violet: #8b9cff;
  --grad: linear-gradient(160deg, #1b2473 0%, #12387a 55%, #0b7f97 100%);
  --glow: 0 0 0 1px rgba(53, 220, 240, .35), 0 8px 30px rgba(18, 181, 207, .25);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(53, 220, 240, .3); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(120, 170, 255, .2); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--panel3); border-color: rgba(53, 220, 240, .4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #18c3dc, #0d8fb0); border-color: transparent; color: #031225; }
.btn.primary:hover { box-shadow: var(--glow); }
.btn.danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.btn.danger:hover { background: rgba(248, 113, 113, .22); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(120, 170, 255, .08); color: var(--text); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 8px; width: 38px; height: 38px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.input, select.input, textarea.input {
  width: 100%; background: rgba(4, 10, 34, .55); border: 1px solid var(--line2); border-radius: 10px;
  padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--cyan2); box-shadow: 0 0 0 3px rgba(18, 181, 207, .2); }
textarea.input { resize: vertical; min-height: 80px; }
select.input option { background: var(--panel); }

.alert { padding: 10px 13px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid; }
.alert.err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.alert.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #bbf7d0; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
