:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6f2ff;
  background: #121018;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(121, 84, 210, .28), transparent 38%),
    linear-gradient(180deg, #17131f 0%, #100e15 100%);
}
button, input { font: inherit; }
button { cursor: pointer; }
.page {
  width: min(560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
}
.brandbar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 38px;
}
.brandbar strong { display: block; font-size: 13px; letter-spacing: .16em; }
.brandbar small { display: block; margin-top: 2px; color: #8f849e; font-size: 11px; }
.brandmark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 950; font-size: 18px;
  background: linear-gradient(145deg, #956fff, #6848d3);
  box-shadow: 0 10px 28px rgba(104, 72, 211, .28);
}
.intro { margin: 0 2px 22px; }
.kicker {
  color: #aa91ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 { margin: 8px 0 10px; font-size: clamp(32px, 10vw, 46px); line-height: .98; letter-spacing: -.04em; }
h2 { margin: 7px 0 8px; font-size: 24px; }
p { color: #bbb2c7; line-height: 1.55; }
.intro p { margin: 0; max-width: 480px; }
.auth-card, .welcome-card, .placeholder-card, .center-card {
  border: 1px solid #332b41;
  background: rgba(29, 25, 38, .9);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.tab {
  border: 1px solid #40364f;
  background: #15121b;
  color: #a99fb5;
  border-radius: 13px;
  padding: 11px 9px;
  font-weight: 850;
}
.tab.active { background: #7d5ce9; border-color: #9b82ee; color: #fff; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #ddd6e7; font-size: 13px; font-weight: 800; }
label span { color: #81778c; font-size: 11px; font-weight: 600; }
input {
  width: 100%;
  border: 1px solid #443a52;
  background: #100e15;
  color: #fff;
  border-radius: 13px;
  padding: 13px 14px;
  outline: 0;
}
input:focus { border-color: #9b7fff; box-shadow: 0 0 0 3px rgba(155,127,255,.13); }
.primary, .secondary {
  border-radius: 13px;
  padding: 13px 15px;
  border: 0;
  font-weight: 900;
}
.primary { background: linear-gradient(135deg, #8e68f6, #6745d0); color: #fff; }
.secondary { background: #25202f; color: #ddd6e7; border: 1px solid #40364f; }
.full { width: 100%; margin-top: 3px; }
button:disabled { opacity: .55; cursor: wait; }
.notice {
  margin-bottom: 15px;
  background: #30233a;
  border: 1px solid #5f426f;
  color: #f0d8fa;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.45;
}
.secure-note { margin-top: 16px; color: #8e8499; font-size: 11px; line-height: 1.45; }
.center-card { text-align: center; margin-top: 17vh; }
.center-card h1 { font-size: 28px; line-height: 1.08; }
.loading-card p { margin-bottom: 0; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  margin: 4px auto 18px;
  border: 3px solid #382e48;
  border-top-color: #9b7fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-badge, .status-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 22px; font-weight: 950;
}
.icon-badge.danger { margin-left: auto; margin-right: auto; background: #45232e; color: #ffb4c2; }
.status-icon { background: #17362a; color: #83dbae; }
.actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.welcome-card h1 { font-size: clamp(34px, 10vw, 48px); }
.welcome-card > p { margin-top: 0; }
.status-list { margin-top: 22px; border-top: 1px solid #342c40; }
.status-list > div {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #342c40;
  font-size: 13px;
}
.status-list span { color: #8f859c; }
.status-list strong { text-align: right; color: #e9e2f1; }
.placeholder-card { margin-top: 14px; box-shadow: none; }
.placeholder-card p { margin-bottom: 0; }
.footer-actions { display: flex; justify-content: center; margin-top: 18px; }
.footer-actions .secondary { min-width: 150px; }
