:root{
  --bg:#0b0c10;
  --card:#12141b;
  --muted:#a9b0c3;
  --text:#eef1ff;
  --line:#2a2f3d;
  --accent:#7dd3fc;
  --accent2:#34d399;
  --warn:#fbbf24;
  --danger:#fb7185;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(125,211,252,.18), transparent 55%),
    radial-gradient(1200px 800px at 80% 110%, rgba(52,211,153,.14), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.45;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:18px;
}

.header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,12,16,.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.top{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

h1{
  margin:0;
  font-size:22px;
  letter-spacing:.2px;
  font-weight:700;
}

.subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  max-width:920px;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  border:1px solid var(--line);
  background:#0f1118;
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition:transform .05s ease, border-color .15s ease, opacity .15s ease;
  font-weight:700;
  font-size:13px;
}

.btn:hover{ border-color:rgba(125,211,252,.55); }
.btn:active{ transform:translateY(1px); }
.btnPrimary{ border-color:rgba(125,211,252,.55); }
.btnGhost{ opacity:.9; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }

.grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:16px;
}
@media(max-width:980px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background:linear-gradient(180deg, rgba(18,20,27,.98), rgba(18,20,27,.86));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.cardHd{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.cardBd{
  padding:16px;
}

.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
}

.badgeDanger{
  border-color:rgba(251,113,133,.55);
  color:rgba(251,113,133,.95);
}

.badgeOk{
  border-color:rgba(52,211,153,.55);
  color:rgba(52,211,153,.95);
}

.stepper{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.step{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
  user-select:none;
}

.step.active{
  color:var(--text);
  border-color:rgba(125,211,252,.55);
}

.step.done{
  color:rgba(52,211,153,.95);
  border-color:rgba(52,211,153,.45);
}

label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:12px 0 6px;
}

input, textarea, select{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0e1017;
  color:var(--text);
  outline:none;
  font-size:14px;
}

textarea{
  min-height:92px;
  resize:vertical;
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media(max-width:640px){
  .row{ grid-template-columns:1fr; }
}

.hint{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
  line-height:1.4;
}

.hr{
  border-top:1px dashed rgba(42,47,61,.9);
  margin:16px 0;
}

.footerNav{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}

.callout{
  border:1px solid var(--line);
  background:#0e1017;
  border-radius:12px;
  padding:12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.calloutDanger{
  border-color:rgba(251,113,133,.55);
  color:rgba(251,113,133,.95);
}

.checklist{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}

.checkItem{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  background:#0e1017;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
}

.checkItem input{
  width:auto;
  margin:2px 0 0;
  transform:scale(1.1);
  accent-color:#7dd3fc;
}

.checkItem b{
  color:var(--text);
  font-weight:700;
}

.checkItem small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.dangerNote{
  color:rgba(251,113,133,.95);
  font-weight:700;
}

.h3{
  font-size:15px;
  margin:14px 0 8px;
  font-weight:700;
}

.gateOverlay{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.gateCard{
  max-width:520px;
  width:100%;
  background:linear-gradient(180deg, rgba(18,20,27,.98), rgba(18,20,27,.9));
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:20px 18px 18px;
}

.gateTitle{
  font-size:18px;
  margin:0 0 4px;
  font-weight:700;
}

.gateSubtitle{
  font-size:13px;
  color:var(--muted);
  margin:0 0 12px;
}

.gateFooter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

.gateSmall{
  font-size:11px;
  color:var(--muted);
}
