:root{
  --bg0:#070A12;
  --bg1:#0B1221;
  --card:#0E1730cc;
  --stroke:#25335ecc;
  --text:#EAF0FF;
  --muted:#AAB7E2;
  --primary:#6D8BFF;
  --primary2:#7CF5FF;
  --danger:#ff5b7a;
  --ok:#41d69f;
  --warn:#f5a623;
  --purple:#a78bfa;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, #15214a 0%, transparent 60%),
              radial-gradient(900px 650px at 80% 40%, #0e5a6b 0%, transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* ── BACKGROUND ── */
.bg{position:fixed; inset:0; pointer-events:none; z-index:0;}
.bg__glow{
  position:absolute; inset:-20%;
  background: radial-gradient(circle at 30% 20%, rgba(109,139,255,.35), transparent 45%),
              radial-gradient(circle at 70% 60%, rgba(124,245,255,.22), transparent 50%);
  filter: blur(12px);
  animation: floatGlow 10s ease-in-out infinite alternate;
}
.bg__grid{
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 75%);
  opacity:.35;
}
@keyframes floatGlow{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(1.5%, -1.2%,0) scale(1.02)}
}

/* ── LAYOUT ── */
.container{position:relative; z-index:1; min-height:100%; display:grid; place-items:center; padding:24px 16px;}

/* ── TOPNAV ── */
.topnav{
  width:min(980px, 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  margin-bottom:16px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,16,34,.50);
  backdrop-filter: blur(12px);
}
.topnav__brand{
  text-decoration:none;
  color:var(--text);
  font-weight:900;
  padding:7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg,rgba(109,139,255,.18),rgba(124,245,255,.10));
  border:1px solid rgba(109,139,255,.25);
  letter-spacing:-.2px;
  font-size:14px;
}
.topnav__links{display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; align-items:center;}
.topnav__link{
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
  font-size:12px;
  padding:7px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  background: transparent;
  transition: all .15s ease;
  cursor:pointer;
  font-family:inherit;
}
.topnav__link:hover{color:var(--text); border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.05);}
.topnav__link.is-active{color:var(--text); border-color:rgba(124,245,255,.25); background:rgba(124,245,255,.07);}

.nav-user{
  display:flex; align-items:center; gap:6px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.nav-user__dot{width:7px; height:7px; border-radius:50%; background:var(--ok); flex-shrink:0;}
.nav-user__name{font-size:12px; font-weight:700; color:var(--muted);}

/* ── AUTH SPLIT LAYOUT ── */
.auth-wrap{
  display:grid;
  grid-template-columns:1fr;
  width:min(880px,100%);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  animation:pop .45s cubic-bezier(.2,.9,.2,1);
}
@media(min-width:680px){.auth-wrap{grid-template-columns:1fr 1fr;}}

.auth-side{padding:36px 32px; display:flex; flex-direction:column; justify-content:center; gap:0;}

.auth-side--brand{
  display:none;
  background:linear-gradient(145deg, rgba(109,139,255,.14) 0%, rgba(124,245,255,.07) 100%);
  border-right:1px solid rgba(255,255,255,.08);
  justify-content:space-between;
  gap:28px;
}
@media(min-width:680px){.auth-side--brand{display:flex;}}

.auth-side--form{
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

.auth-logo{
  width:44px; height:44px; border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  display:grid; place-items:center;
  font-weight:900; font-size:20px; color:#081027;
  box-shadow:0 8px 24px rgba(109,139,255,.3);
  margin-bottom:20px;
}
.auth-tagline{font-size:22px; font-weight:900; line-height:1.25; letter-spacing:-.3px; margin-bottom:8px;}
.auth-tagline span{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.auth-tagline-sub{color:var(--muted); font-size:13px; line-height:1.5; margin-bottom:24px;}

.auth-features{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px;}
.auth-feature{display:flex; align-items:flex-start; gap:10px;}
.auth-feature__dot{
  width:20px; height:20px; border-radius:6px; flex-shrink:0; margin-top:1px;
  background:rgba(65,214,159,.15); border:1px solid rgba(65,214,159,.3);
  display:grid; place-items:center; font-size:11px;
}
.auth-feature__text{color:var(--muted); font-size:13px; line-height:1.45;}
.auth-feature__text strong{color:var(--text); font-weight:700;}

.auth-brand-footer{
  margin-top:auto;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.07);
  font-size:12px; color:rgba(170,183,226,.55);
}

/* ── FORM COMPONENTS ── */
.card{
  width:min(560px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding:28px 28px 30px;
  animation: pop .45s cubic-bezier(.2,.9,.2,1);
}
@keyframes pop{from{transform:translateY(12px);opacity:.0}to{transform:translateY(0);opacity:1}}

.card__header{display:flex; justify-content:space-between; align-items:center; margin-bottom:20px;}
.brand{display:flex; gap:14px; align-items:center;}
.brand__mark{
  width:42px;height:42px;border-radius:12px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display:grid; place-items:center;
  font-weight:800; color:#081027;
  box-shadow: 0 10px 26px rgba(109,139,255,.25);
}
.brand__mark--alt{background: linear-gradient(135deg, #ffcc66, #6D8BFF)}
.brand__title{font-weight:900; letter-spacing:-.2px; font-size:17px;}
.brand__subtitle{color:var(--muted); font-size:13px; margin-top:3px;}

.auth-form-title{font-size:22px; font-weight:900; letter-spacing:-.3px; margin-bottom:4px;}
.auth-form-sub{color:var(--muted); font-size:13px; margin-bottom:22px;}

.form{display:flex; flex-direction:column; gap:14px;}
.form--wide{width:min(860px, 100%);}
.form__title{font-weight:900; font-size:15px; margin-bottom:2px;}

.field{display:flex; flex-direction:column; gap:6px;}
.field__label{color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.3px; text-transform:uppercase;}
.field__input{
  background: rgba(10,16,34,.55);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  padding:11px 14px;
  border-radius: var(--radius-sm);
  outline:none;
  font-size:14px;
  font-family:inherit;
  transition: border .15s ease, box-shadow .15s ease;
}
.field__input:focus{
  border-color: rgba(124,245,255,.45);
  box-shadow: 0 0 0 3px rgba(109,139,255,.14);
}
.field__input::placeholder{color:rgba(170,183,226,.4);}
.field__hint{color:rgba(170,183,226,.75); font-size:12px; margin-top:2px;}

.grid2{display:grid; grid-template-columns:1fr; gap:12px;}
@media (min-width: 580px){ .grid2{grid-template-columns:1fr 1fr;} }

/* ── BUTTONS ── */
.btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius: var(--radius-sm);
  padding:11px 18px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  letter-spacing:.1px;
  font-family:inherit;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#081027;
  box-shadow: 0 12px 28px rgba(109,139,255,.25);
  font-weight:800;
}
.btn--ghost{background:transparent; border-color:rgba(255,255,255,.10);}
.btn--danger{background:rgba(255,91,122,.12); border-color:rgba(255,91,122,.3); color:var(--danger);}
.btn:hover{filter:brightness(1.07)}
.btn--full{width:100%;}
.btn--lg{padding:13px 22px; font-size:15px;}

.link{color: var(--primary2); text-decoration:none; font-weight:700;}
.link:hover{text-decoration:underline}
.muted{margin-top:10px; color:var(--muted); font-size:13px;}

/* ── ALERTS ── */
.alert{
  padding:12px 14px;
  border-radius: var(--radius-sm);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size:13px;
}
.alert--error{border-color: rgba(255,91,122,.35); background: rgba(255,91,122,.12); color:rgba(255,150,165,.9);}
.alert--success{border-color: rgba(65,214,159,.35); background: rgba(65,214,159,.12); color:rgba(100,230,180,.9);}

/* ── WIZARD ── */
.wizard{
  width:min(980px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding:22px 22px 26px;
  animation: pop .45s cubic-bezier(.2,.9,.2,1);
}
.wizard__header{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px;}
.wizard__title{font-weight:900; font-size:18px; letter-spacing:-.2px;}
.wizard__subtitle{color:var(--muted); font-size:13px; margin-top:3px;}

/* Step rail */
.wizard__rail{
  display:flex; align-items:center; gap:0;
  padding:0 0 20px;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.1) transparent;
}
.rail__item{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  min-width:80px;
  position:relative;
  flex:1;
}
.rail__item:not(:last-child)::after{
  content:'';
  position:absolute;
  top:14px; left:calc(50% + 16px);
  width:calc(100% - 32px);
  height:1px;
  background:rgba(255,255,255,.12);
}
.rail__item.is-done:not(:last-child)::after{background:rgba(65,214,159,.35);}
.rail__item.is-active:not(:last-child)::after{background:rgba(109,139,255,.3);}

.rail__num{
  width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center;
  font-size:12px; font-weight:900;
  background:rgba(10,16,34,.8);
  color:var(--muted);
  border:1.5px solid rgba(255,255,255,.12);
  position:relative; z-index:1;
  transition:all .2s ease;
  flex-shrink:0;
}
.rail__item.is-active .rail__num{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#081027; border:none;
  box-shadow:0 0 0 4px rgba(109,139,255,.2);
}
.rail__item.is-done .rail__num{
  background:rgba(65,214,159,.15);
  color:var(--ok); border-color:rgba(65,214,159,.4);
}
.rail__label{font-size:11px; font-weight:700; color:rgba(170,183,226,.6); text-align:center; white-space:nowrap;}
.rail__item.is-active .rail__label{color:var(--text);}
.rail__item.is-done .rail__label{color:var(--ok);}

.wizard__panel{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,16,34,.30);
  border-radius: 16px;
  padding:24px;
  overflow:hidden;
  position:relative;
}
.wizard__step-icon{font-size:32px; margin-bottom:12px; display:block;}
.wizard__step-title{font-size:18px; font-weight:900; letter-spacing:-.2px; margin-bottom:4px;}
.wizard__step-desc{color:var(--muted); font-size:13px; line-height:1.5; margin-bottom:20px;}

/* ── HERO ── */
.hero{padding:4px 0 8px;}
.hero__chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 12px; border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size:12px; font-weight:800;
  margin-bottom:14px;
}
.hero__chip--ok{border-color: rgba(65,214,159,.35); color: rgba(100,230,180,.9); background:rgba(65,214,159,.08);}
.hero__title{margin:0 0 8px; font-size:30px; letter-spacing:-.4px; font-weight:900; line-height:1.15;}
.hero__text{margin:0 0 20px; color:var(--muted); max-width:60ch; font-size:14px; line-height:1.6;}

/* ── CARDS GRID ── */
.cards{display:grid; grid-template-columns:1fr; gap:12px; margin:14px 0;}
@media (min-width: 860px){ .cards{grid-template-columns:1fr 1fr;} }
.mini{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding:16px;
}
.mini__icon{font-size:20px; margin-bottom:8px; display:block;}
.mini__title{font-weight:900; margin-bottom:6px; font-size:14px;}
.mini__text{color:var(--muted); font-size:13px; line-height:1.45;}

/* ── PAGE LAYOUT (non-wizard pages) ── */
.page{width:min(980px,100%); display:flex; flex-direction:column; gap:0;}
.page-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:20px 24px;
  border:1px solid var(--stroke);
  border-radius:var(--radius) var(--radius) 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.04));
  backdrop-filter:blur(10px);
}
.page-title{font-weight:900; font-size:18px; letter-spacing:-.2px;}
.page-subtitle{color:var(--muted); font-size:13px; margin-top:3px;}
.page-body{
  border:1px solid var(--stroke); border-top:none;
  border-radius:0 0 var(--radius) var(--radius);
  background:rgba(10,16,34,.30);
  backdrop-filter:blur(10px);
  padding:22px;
  box-shadow:var(--shadow);
}
.section-title{
  font-weight:800; font-size:12px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.6px; margin:0 0 12px;
}

/* ── DASHBOARD STATS ── */
.stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px;}
@media(min-width:720px){.stat-grid{grid-template-columns:repeat(4,1fr);}}

.stat-card{
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:18px 16px;
  background:rgba(255,255,255,.04);
  display:flex; flex-direction:column; gap:6px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover{transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.3);}
.stat-card__icon{font-size:22px; line-height:1; margin-bottom:4px;}
.stat-card__value{font-size:26px; font-weight:900; letter-spacing:-1px; line-height:1;}
.stat-card__label{font-size:11px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.5px;}
.stat-card__delta{font-size:12px; color:var(--ok); font-weight:700; margin-top:2px;}

.stat-card--blue{border-color:rgba(109,139,255,.22); background:rgba(109,139,255,.08);}
.stat-card--blue .stat-card__value{color:#a3b5ff;}
.stat-card--green{border-color:rgba(65,214,159,.22); background:rgba(65,214,159,.08);}
.stat-card--green .stat-card__value{color:#6eddb5;}
.stat-card--purple{border-color:rgba(167,139,250,.22); background:rgba(167,139,250,.08);}
.stat-card--purple .stat-card__value{color:#c4b0fd;}
.stat-card--orange{border-color:rgba(245,166,35,.22); background:rgba(245,166,35,.08);}
.stat-card--orange .stat-card__value{color:#f5c264;}

/* ── WELCOME BANNER ── */
.welcome{
  padding:20px 24px; margin-bottom:16px;
  border:1px solid rgba(109,139,255,.2);
  border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(109,139,255,.10),rgba(124,245,255,.05));
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  flex-wrap:wrap;
}
.welcome__greeting{font-size:12px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px;}
.welcome__name{font-size:22px; font-weight:900; letter-spacing:-.3px;}
.welcome__sub{color:var(--muted); font-size:13px; margin-top:4px;}
.welcome__badge{
  padding:8px 16px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
  font-size:12px; font-weight:700; color:var(--muted);
  white-space:nowrap;
}

/* ── QUICK ACTIONS ── */
.quick-grid{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px;}
.quick-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px;
  border:1px solid rgba(255,255,255,.10); border-radius:var(--radius-sm);
  background:rgba(255,255,255,.05); color:var(--text);
  text-decoration:none; font-weight:700; font-size:13px;
  transition:all .15s ease; cursor:pointer; font-family:inherit;
}
.quick-btn:hover{border-color:rgba(124,245,255,.25); background:rgba(124,245,255,.07); transform:translateY(-1px);}
.quick-btn--primary{
  border:none; background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#081027; box-shadow:0 8px 20px rgba(109,139,255,.25); font-weight:800;
}
.quick-btn--primary:hover{filter:brightness(1.08); transform:translateY(-1px);}
.quick-btn__icon{font-size:16px; line-height:1;}

/* ── TABLES ── */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.02);
}
.table th,.table td{
  padding:10px 12px;
  font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.07);
  vertical-align:middle;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-weight:800;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.5px;
  background: rgba(10,16,34,.40);
  padding-top:12px; padding-bottom:12px;
}
.table tr:last-child td{border-bottom:none}
.table tbody tr:hover td{background:rgba(255,255,255,.025);}

.pill{
  display:inline-flex; align-items:center;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight:800;
  font-size:11px;
}
.pill--ok{border-color: rgba(65,214,159,.35); color: rgba(100,230,180,.9); background:rgba(65,214,159,.08);}
.pill--warn{border-color: rgba(245,166,35,.35); color: rgba(245,166,35,.9); background:rgba(245,166,35,.08);}
.pill--blue{border-color:rgba(109,139,255,.35); color:rgba(163,181,255,.9); background:rgba(109,139,255,.08);}
.pill--purple{border-color:rgba(167,139,250,.35); color:rgba(196,176,253,.9); background:rgba(167,139,250,.08);}
.pill--green{border-color:rgba(65,214,159,.35); color:rgba(100,230,180,.9); background:rgba(65,214,159,.08);}

.actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin: 0 0 14px;}

/* ── EMPTY STATE ── */
.empty-state{
  padding:52px 24px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.empty-state__icon{font-size:48px; line-height:1; margin-bottom:6px; opacity:.7;}
.empty-state__title{font-size:16px; font-weight:800; color:var(--text); margin:0;}
.empty-state__text{font-size:13px; color:var(--muted); margin:0 0 16px; max-width:36ch; line-height:1.5;}

/* ── FINISH HERO ── */
.finish-hero{text-align:center; padding:16px 0 8px;}
.finish-hero__icon{font-size:56px; margin-bottom:16px; display:block;}
.finish-hero__title{font-size:28px; font-weight:900; letter-spacing:-.4px; margin-bottom:8px;}
.finish-hero__text{color:var(--muted); font-size:14px; line-height:1.6; max-width:52ch; margin:0 auto 24px;}
.finish-steps{
  display:grid; grid-template-columns:1fr; gap:10px;
  text-align:left; margin:0 0 24px;
}
@media(min-width:600px){.finish-steps{grid-template-columns:1fr 1fr;}}

/* ── WORKFLOW STRIP ── */
.flow-strip{
  display:flex; align-items:center; gap:0;
  overflow-x:auto; padding:16px;
  border:1px solid rgba(255,255,255,.08); border-radius:14px;
  background:rgba(10,16,34,.25);
  scrollbar-width:thin;
}
.flow-step{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  min-width:80px; padding:0 6px;
  font-size:11px; color:var(--muted); font-weight:700; text-align:center;
}
.flow-step__icon{font-size:18px; margin-bottom:2px;}
.flow-arrow{color:rgba(255,255,255,.2); font-size:16px; flex-shrink:0; margin:0 2px;}

/* ── UTILITIES ── */
.text-ok{color:var(--ok);}
.text-warn{color:var(--warn);}
.text-danger{color:var(--danger);}
.text-muted{color:var(--muted);}
.text-primary{color:var(--primary);}
.fw-900{font-weight:900;}
.mt-0{margin-top:0;}
.mb-0{margin-bottom:0;}

/* ── ANIMATIONS ── */
@keyframes pop{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.anim-pop{animation:pop .4s cubic-bezier(.2,.9,.2,1);}
