:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --accent: #4ea1ff;
  --accent2: #7c5cff;
  --danger: #ff5a6a;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.25);
  --ring: 0 0 0 4px rgba(78,161,255,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(78,161,255,.18), transparent 60%),
    radial-gradient(1000px 600px at 80% 10%, rgba(124,92,255,.16), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0b1220 100%);
}

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

.container{
  width: min(980px, calc(100% - 36px));
  margin: 34px auto 60px;
}

.brandbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 18px;
}
.brandbar img{
  height:34px;
  width:auto;
}
.brandbar .title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing:.2px;
}
.brandbar .subtitle{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom: 14px;
}
.h1{
  font-size: 22px;
  font-weight: 800;
  margin:0;
}
.p{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

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

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
label{
  font-size: 12px;
  color: var(--muted);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline: none;
  box-shadow: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(78,161,255,.6);
  box-shadow: var(--ring);
}
.help{
  font-size: 12px;
  color: var(--muted);
}

.actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top: 18px;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  box-shadow: var(--shadow2);
}
.btn:hover{ background: rgba(255,255,255,.12); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(78,161,255,.35);
  background: linear-gradient(135deg, rgba(78,161,255,.9), rgba(124,92,255,.85));
}
.btn-primary:hover{ filter: brightness(1.04); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 12px;
}

.hr{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 16px 0;
}

/* Autocomplete dropdown */
.autocomplete{
  position:relative;
}
.autocomplete-list{
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  right:0;
  z-index: 999;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,24,.98);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
}
.autocomplete-item{
  padding: 10px 12px;
  cursor:pointer;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
}
.autocomplete-item:last-child{ border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.is-active{
  background: rgba(78,161,255,.18);
  color: var(--text);
}
.autocomplete-item .small{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
/* ============================================================
   QUICK CONTRAST FIX (Onboarding) — Jan 28
   Fixes unreadable text when dark theme + light panels mix.
   ============================================================ */

/* Default onboarding text on dark background */
body .container,
body .hero,
body .card {
  color: rgba(255,255,255,0.92);
}

/* Subtext on dark background */
body .card .sub,
body .hero p,
body .mini {
  color: rgba(255,255,255,0.72);
}

/* Any "white/soft" panels must use dark text */
body .card.soft,
body .card.soft * {
  color: rgba(0,0,0,0.86) !important;
}
body .card.soft .sub,
body .card.soft .mini {
  color: rgba(0,0,0,0.62) !important;
}

/* Stepper pills: force readable text on the white pills */
.ps-stepper .ps-step {
  color: rgba(0,0,0,0.86) !important;
}
.ps-stepper .ps-step.is-locked {
  color: rgba(0,0,0,0.72) !important;
}

/* If you have any notice boxes inside soft cards */
body .card.soft .notice {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.10);
}

