:root{
 --bg1:#0C1026; --bg2:#121638; --text:#E7ECF4; --muted:#9BA3B0; --pink:#FF4FAE; --lav:#7A77FF;
}
*{box-sizing:border-box} html,body{margin:0;padding:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial;background:linear-gradient(135deg,var(--bg1),var(--bg2));color:var(--text)}
.nav{padding:12px 18px;display:flex;align-items:center;gap:10px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.logo{width:24px;height:24px}
.container{max-width:920px;margin:0 auto;padding:24px}
.card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
h1{margin:0 0 6px}
.muted{color:var(--muted);margin:0 0 12px}
.label{display:block;margin:14px 0 12px;font-weight:700}
input[type=text],input[type=number],input[type=password]{width:100%;height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.05);padding:0 12px;color:var(--text)}
input[type=range]{width:100%}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.btn{padding:12px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:var(--text);cursor:pointer}
.btn.primary{background:linear-gradient(90deg,var(--pink),var(--lav));border:none}
.btn.ghost{background:transparent}
#stepper{display:flex;gap:8px;margin:6px 0 16px}
#stepper .step{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);color:var(--muted);padding:8px 12px;border-radius:10px;cursor:pointer}
#stepper .step.active{color:#fff;border-color:rgba(255,255,255,.25)}
.step-pane{display:none}
.step-pane.active{display:block}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid .full{grid-column:1 / -1}
.preview{display:flex;gap:10px;flex-wrap:wrap; margin-top:14px}
.preview img{width:120px;height:160px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.1)}
.note{color:var(--muted);font-size:14px}
.pills label{margin-right:14px;padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);cursor:pointer}
.done{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
pre{background:#0b1024;border:1px solid rgba(255,255,255,.1);padding:12px;border-radius:12px;max-height:320px;overflow:auto}
.foot{text-align:center;color:var(--muted);padding:18px}
@media(max-width:640px){ .grid{grid-template-columns:1fr} }

/* left-aligned button inside actions */
.actions .left{margin-right:auto}

/* Neutral tips card */
.tipcard{margin-top:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;font-size:14px}
.tipcard ul{margin:8px 0 0 18px;padding:0}
.tipcard li{margin:4px 0}

/* Onboarding modal (post-signup tips) */
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:9999}
.modal{width:min(620px,92vw);background:rgba(20,24,50,.98);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:18px 18px 12px;box-shadow:0 40px 90px rgba(0,0,0,.45)}
.modal h3{margin:0 0 4px}
.modal .modal-list{margin:8px 0 0 18px}
.modal .close{position:absolute;right:18px;top:10px;border:0;background:transparent;color:var(--text);font-size:24px;cursor:pointer}

#payload:empty{display:none}


/* no-underline for button-like links */
a.btn, .btn { text-decoration: none !important; }
a.btn:link, a.btn:visited, a.btn:hover, a.btn:active { text-decoration: none !important; }


.password-field{
  position:relative;
}

.password-field input[type=password],
.password-field input[type=text]{
  padding-right:40px;
}

.toggle-password{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  border:none;
  background:transparent;
  cursor:pointer;
  color:var(--muted);
  font-size:18px;
  padding:0;
}


/* Remove default spinner arrows on number inputs in onboarding */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
