:root {
  --bg: #0b1020; --card: #141b31; --card2: #10172b; --line: #263052; --ink: #eef2ff; --mute: #9aa6c8;
  --blue: #3b82f6; --blue2: #2563eb; --green: #22c55e; --green2: #15803d; --amber: #f59e0b; --red: #ef4444; --violet: #8b5cf6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; background:
  radial-gradient(900px 500px at 10% -10%, #1d4ed855, transparent 60%),
  radial-gradient(700px 500px at 110% 10%, #7c3aed44, transparent 60%), var(--bg); background-attachment: fixed; }
button { font: inherit; color: inherit; }
input, textarea, select { width: 100%; background: #0d1326; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px #3b82f633; }
label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
label small { font-weight: 500; color: var(--mute); }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px; font-weight: 700; font-size: 16.5px; line-height: 1.2; color: #fff; cursor: pointer; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, var(--blue), var(--blue2)); box-shadow: 0 10px 24px #2563eb44; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.green { background: linear-gradient(135deg, var(--green), var(--green2)); box-shadow: 0 10px 26px #22c55e44; }
.btn.ghost { background: #ffffff10; box-shadow: none; border: 1px solid var(--line); font-weight: 600; }
.btn.sm { padding: 10px 12px; font-size: 14px; border-radius: 11px; width: auto; display: inline-block; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid #fff6; border-top-color: #fff; border-radius: 50%; vertical-align: -3px; margin-right: 8px; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.msg { margin-top: 12px; padding: 11px 13px; border-radius: 12px; font-size: 14.5px; }
.msg.err { background: #ef44441f; border: 1px solid #ef444466; color: #fecaca; }
.msg.ok { background: #22c55e1f; border: 1px solid #22c55e66; color: #bbf7d0; }
.msg.warn { background: #f59e0b1f; border: 1px solid #f59e0b66; color: #fde68a; }
.mute { color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: #111827; border: 1px solid var(--line); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; box-shadow: 0 10px 30px #0008; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.tile { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
