:root {
  --brand: #4f6bff;
  --brand-2: #7b5cff;
  --brand-dark: #3a52e0;
  --bg: #0b0f1a;
  --bg-2: #121829;
  --card: #161d31;
  --line: #243050;
  --text: #e9edf7;
  --muted: #95a0bd;
  --ok: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; transition: .15s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 20px -6px rgba(79,107,255,.6); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); outline: none; transition: .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,107,255,.2); }
label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
label.field > span { display: block; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.logo b { color: var(--brand); font-weight: 800; }

.modal-back {
  position: fixed; inset: 0; background: rgba(5,8,15,.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  width: 100%; max-width: 440px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal p.sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.error { color: #fca5a5; font-size: 13px; min-height: 18px; margin-bottom: 6px; }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1f2942; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: tin .2s ease; pointer-events: auto; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }
