:root{
  --bg:#08101d;
  --bg-2:#0d1426;
  --panel:#11172a;
  --panel-2:#182037;
  --line:#28324c;
  --text:#edf2ff;
  --muted:#97a3c0;
  --primary:#5b8cff;
  --primary-2:#8fb0ff;
  --danger:#ff6f7d;
  --success:#2fd39a;
  --warning:#ffb648;
  --radius:20px;
  --shadow:0 20px 60px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  min-height:100%;
  background:linear-gradient(180deg,var(--bg),var(--bg-2));
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
body{display:grid;min-height:100vh}
button,input{font:inherit}
a{color:var(--primary-2);text-decoration:none}
a:hover{text-decoration:underline}
.hidden{display:none!important}
.muted{color:var(--muted)}
.shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.panel{
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card{
  width:min(720px,100%);
  padding:28px;
}
.hero{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}
.hero h1{
  margin:0;
  font-size:34px;
  line-height:1.1;
}
.hero p{margin:0}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  width:max-content;
}
.badge.info{color:var(--primary-2)}
.alert{
  margin:14px 0;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#10182c;
}
.alert.error{border-color:rgba(255,111,125,.4);color:#ffd5da}
.alert.success{border-color:rgba(47,211,154,.4);color:#d0ffef}
.alert.info{border-color:rgba(91,140,255,.35);color:#dce7ff}
.state-card{
  display:grid;
  place-items:center;
  gap:10px;
  padding:40px 20px;
  text-align:center;
}
.loader{
  width:42px;height:42px;border-radius:999px;
  border:3px solid rgba(255,255,255,.15);
  border-top-color:var(--primary);
  animation:spin .9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.summary{
  margin:0 0 18px;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.02);
  border:1px solid var(--line);
}
.summary-row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.summary-row:last-child{border-bottom:none}
.form-grid{
  display:grid;
  gap:14px;
}
label{
  display:grid;
  gap:8px;
}
input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0c1221;
  color:var(--text);
  outline:none;
}
input:focus{border-color:var(--primary)}
.btn{
  border:none;
  background:linear-gradient(135deg,var(--primary),#7c6cff);
  color:#fff;
  padding:12px 16px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
}
.btn:hover{filter:brightness(1.05);text-decoration:none}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-secondary{
  background:#0f1628;
  border:1px solid var(--line);
  color:var(--text);
}
.result-box{
  margin-top:18px;
  padding:20px;
  border-radius:18px;
  border:1px solid rgba(47,211,154,.35);
  background:rgba(47,211,154,.08);
}
.result-icon{
  width:64px;height:64px;border-radius:999px;
  margin:0 auto 10px;
  display:grid;place-items:center;
  font-size:28px;font-weight:900;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.result-icon.success{color:var(--success)}
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.actions.center{justify-content:center}
@media (max-width:640px){
  .card{padding:22px}
  .hero h1{font-size:28px}
  .summary-row{grid-template-columns:1fr}
}
