:root {
  --bg: #0f172a;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --ok: #16a34a;
  --err: #dc2626;
  --muted: #64748b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg) 0%, #1e293b 60%, #334155 100%);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding: 16px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.5);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
h1 { margin: 0 0 4px; font-size: 1.4rem; color: #0f172a; }
.sub { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
form { display: flex; flex-direction: column; gap: 12px; }
input {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-align: center;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
}
input:focus { border-color: var(--accent); }
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: var(--accent-dark); }
button:disabled { opacity: 0.6; cursor: wait; }
#free-wrap { margin-top: 14px; }
#btn-free { background: #475569; }
#btn-free:hover { background: #334155; }
.msg { min-height: 1.2em; margin: 12px 0 0; font-size: 0.9rem; color: var(--err); }
.msg.ok { color: var(--ok); }
.notice {
  margin-top: 16px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  color: #78350f;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  white-space: pre-line;
}
.fine { margin-top: 18px; font-size: 0.72rem; color: #94a3b8; }
.ssid-line { margin: -6px 0 0; font-size: 0.85rem; color: #93a4bd; letter-spacing: 0.4px; }
.portal-links { margin-top: 14px; display: flex; justify-content: space-between; }
.portal-links a { font-size: 0.78rem; color: #94a3b8; text-decoration: none; transition: color .15s; }
.portal-links a:hover { color: #475569; }
