:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --panel2:#111f36;
  --text:#e6edf7;
  --muted:#9db0cf;
  --accent:#60a5fa;
  --good-bg:#d1fae5;
  --bad-bg:#fee2e2;
  --bad-text:#7f1d1d;
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% -20%, rgba(96,165,250,.35), transparent 55%),
              radial-gradient(900px 700px at 90% 0%, rgba(56,189,248,.20), transparent 60%),
              radial-gradient(900px 700px at 50% 110%, rgba(99,102,241,.18), transparent 50%),
              var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid rgba(157,176,207,.18);
}
.topbar-inner{
  max-width:980px; margin:0 auto; padding:14px 16px;
  display:flex; align-items:center; gap:12px; justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:10px}
.brand-mark{
  width:36px; height:36px; border-radius:12px;
  background: conic-gradient(from 180deg, #60a5fa, #a78bfa, #22c55e, #fde047, #60a5fa);
  box-shadow: 0 10px 24px rgba(96,165,250,.25);
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{display:block; font-size:12px; color:var(--muted); font-weight:600}

.container{max-width:980px; margin:0 auto; padding:16px}
.hero{
  padding:18px 0 10px;
}
.hero h1{
  margin:0 0 8px;
  font-size: clamp(22px, 4vw, 34px);
  line-height:1.1;
}
.hero p{margin:0; color:var(--muted); max-width:60ch}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media(min-width:860px){
  .grid{grid-template-columns: 1.2fr .8fr}
}

.card{
  background: linear-gradient(180deg, rgba(17,31,54,.85), rgba(15,26,46,.85));
  border:1px solid rgba(157,176,207,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .card-h{
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(157,176,207,.12);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.card .card-h h2{margin:0; font-size:16px}
.card .card-b{padding:14px}

.btn{
  border:0;
  border-radius: 12px;
  padding:11px 12px;
  font-weight:800;
  color:#081425;
  background: linear-gradient(180deg, rgba(96,165,250,1), rgba(59,130,246,1));
  cursor:pointer;
}
.btn:disabled{opacity:.55; cursor:not-allowed}
.btn.secondary{
  background: transparent;
  border:1px solid rgba(157,176,207,.26);
  color:var(--text);
}
.btn-row{display:flex; gap:10px; flex-wrap:wrap}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(96,165,250,.12);
  border:1px solid rgba(96,165,250,.25);
  color:#cfe4ff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.form{
  display:grid; gap:12px;
}
.row2{display:grid; gap:12px; grid-template-columns:1fr}
@media(min-width:720px){.row2{grid-template-columns:1fr 1fr}}
.row3{display:grid; gap:12px; grid-template-columns:1fr}
@media(min-width:720px){.row3{grid-template-columns:1fr 1fr 1fr}}

label{display:block; font-size:12px; color:var(--muted); font-weight:700; margin:0 0 6px}
input,select,textarea{
  width:100%;
  border-radius: 12px;
  padding:12px 12px;
  border:1px solid rgba(157,176,207,.22);
  background: rgba(6,10,18,.35);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px; resize:vertical}
input:focus,select:focus,textarea:focus{border-color: rgba(96,165,250,.70); box-shadow: 0 0 0 3px rgba(96,165,250,.22)}
.hint{font-size:12px; color:var(--muted); line-height:1.25}
.err{font-size:12px; color:#fecaca; font-weight:700}

.field-invalid{
  background: var(--bad-bg) !important;
  color: var(--bad-text) !important;
  border-color: rgba(220,38,38,.45) !important;
}
.field-valid{
  background: var(--good-bg) !important;
  color: #0b1220 !important;
  border-color: rgba(34,197,94,.65) !important;
}

.input-wrap{position:relative}
.input-wrap.animate-ok{
  padding:2px;
  border-radius: 14px;
}
.input-wrap.animate-ok::before{
  content:"";
  position:absolute; inset:0;
  border-radius: 14px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(163,230,53,1) 0 10deg,
    rgba(253,224,71,1) 10deg 20deg,
    rgba(0,0,0,0) 20deg 34deg
  );
  animation: spin 1.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(253,224,71,.16));
}
.input-wrap.animate-ok::after{
  content:"";
  position:absolute; inset:2px;
  border-radius: 12px;
  background: rgba(6,10,18,.35);
}
.input-wrap.animate-ok > input{
  position:relative; z-index:1;
  border:0;
  background: var(--good-bg) !important;
  color:#0b1220 !important;
}
@keyframes spin{to{transform:rotate(360deg)}}

.stepper{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.step-dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(157,176,207,.25);
  border:1px solid rgba(157,176,207,.25);
}
.step-dot.on{background: rgba(96,165,250,.85); border-color: rgba(96,165,250,.85)}
.step-dot.done{background: rgba(34,197,94,.85); border-color: rgba(34,197,94,.85)}
.step-title{font-weight:800}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(157,176,207,.18);
}
.table th,.table td{
  padding:10px 10px;
  font-size:12px;
  border-bottom:1px solid rgba(157,176,207,.12);
  text-align:left;
}
.table th{color:var(--muted); font-weight:800; background: rgba(6,10,18,.25)}
.table tr:last-child td{border-bottom:0}

.nav{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.nav a{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(157,176,207,.10);
  border:1px solid rgba(157,176,207,.14);
  color:var(--text);
  font-weight:800;
  font-size:12px;
}
.badge{
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(253,224,71,.95);
  color:#0b1220;
  font-weight:900;
  font-size:11px;
}

dialog{
  border:1px solid rgba(157,176,207,.22);
  border-radius: 16px;
  background: rgba(17,31,54,.96);
  color:var(--text);
  box-shadow: var(--shadow);
  max-width: 520px;
  width: calc(100% - 24px);
}
dialog::backdrop{background: rgba(0,0,0,.55)}
.dialog-h{font-weight:900; font-size:15px; margin:0 0 8px}
.dialog-b{color:var(--muted); margin:0 0 14px; line-height:1.35}

.avatar-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
@media(min-width:560px){.avatar-grid{grid-template-columns: repeat(6, 1fr)}}
.avatar{
  border-radius: 14px;
  border:1px solid rgba(157,176,207,.22);
  background: rgba(6,10,18,.25);
  padding:10px;
  cursor:pointer;
}
.avatar img{width:100%; height:auto; display:block}
.avatar.selected{border-color: rgba(96,165,250,.85); box-shadow: 0 0 0 3px rgba(96,165,250,.18)}

