:root{
  --bg:#07101f;
  --bg2:#0b1730;
  --panel:rgba(255,255,255,.06);
  --panel-2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.10);
  --text:#f4f7ff;
  --muted:#9fb0d0;
  --primary:#4e8cff;
  --primary-2:#63b3ff;
  --success:#39d98a;
  --danger:#ff6b81;
  --radius:22px;
  --shadow:0 18px 50px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(78,140,255,.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(99,179,255,.16), transparent 24%),
    linear-gradient(180deg,#07101f 0%,#08142a 45%,#07101f 100%);
}

a{color:inherit;text-decoration:none}
button,input{font:inherit}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background:rgba(5,10,20,.72);
  backdrop-filter:blur(12px);
}

.topbar-inner{
  max-width:1400px;
  margin:0 auto;
  padding:14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.site-logo{
  width:72px;
  height:72px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 10px 22px rgba(255,0,0,.18));
}

.brand h1{
  margin:0;
  font-size:20px;
  font-weight:700;
}

.small{
  font-size:13px;
  color:var(--muted);
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  border-color:transparent;
  color:#fff;
}

.btn.ghost{
  background:transparent;
}

.layout{
  display:flex;
  min-height:calc(100vh - 101px);
}

.sidebar{
  width:290px;
  border-right:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  padding:18px;
}

.section{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
}

.sidebar-logo{
  width:130px;
  height:auto;
  margin:0 auto;
  display:block;
  filter:drop-shadow(0 10px 22px rgba(255,0,0,.14));
}

.profile-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.profile-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
}

.nav-group-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin:0 0 10px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:16px;
  color:#d9e4ff;
  border:1px solid transparent;
  transition:.2s ease;
}

.nav a:hover,
.nav a.active{
  background:linear-gradient(180deg,rgba(78,140,255,.18),rgba(78,140,255,.10));
  border-color:rgba(99,179,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.nav .icon{
  width:20px;
  text-align:center;
  opacity:.95;
}

.main{
  flex:1;
  display:flex;
  flex-direction:column;
}

.header{
  max-width:1400px;
  width:100%;
  margin:0 auto;
  padding:26px 22px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.header h2{
  margin:0 0 6px;
  font-size:24px;
}

.crumbs{
  color:var(--muted);
  font-size:14px;
}

.content{
  max-width:1400px;
  width:100%;
  margin:0 auto;
  padding:22px;
}

.grid{
  display:grid;
  gap:18px;
}

.grid.cols-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.grid.cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.card{
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}

.card h3,.card h2{
  margin-top:0;
}

.muted{
  color:var(--muted);
}

.pill,
.badge,
.notice{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
}

.kpi{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.kpi .label{
  color:var(--muted);
  font-size:13px;
}

.kpi .value{
  font-size:28px;
  font-weight:700;
}

.summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.summary-row:last-child{
  border-bottom:none;
}

.table-wrap{
  overflow:auto;
  border-radius:18px;
  border:1px solid var(--line);
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.table th{
  color:#dbe7ff;
  font-size:14px;
  background:rgba(255,255,255,.04);
}

.table td{
  color:#f3f7ff;
}

.table tr:last-child td{
  border-bottom:none;
}

.form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field.full{
  grid-column:1 / -1;
}

label{
  font-size:14px;
  color:#d9e3f3;
}

.input{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0d1525;
  color:var(--text);
  outline:none;
}

.input:focus{
  border-color:rgba(77,163,255,.6);
  box-shadow:0 0 0 4px rgba(77,163,255,.12);
}

.wizard-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.center-shell{
  max-width:760px;
  margin:0 auto;
}

.footer{
  margin-top:auto;
  text-align:center;
  color:var(--muted);
  padding:18px 22px 28px;
}

@media (max-width: 1050px){
  .layout{flex-direction:column}
  .sidebar{
    width:100%;
    border-right:none;
    border-bottom:1px solid var(--line);
  }
  .grid.cols-2,.grid.cols-3,.form{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .topbar-inner,
  .header{
    flex-direction:column;
    align-items:flex-start;
  }

  .site-logo{
    width:58px;
    height:58px;
  }

  .actions{
    width:100%;
  }
}
.hero-card{
  background:
    radial-gradient(circle at top left, rgba(78,140,255,.20), transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
}

.hero-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:22px;
  align-items:center;
}

.hero-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(99,179,255,.28);
  background:rgba(99,179,255,.10);
  color:#dce9ff;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}

.hero-title{
  margin:0 0 14px;
  font-size:42px;
  line-height:1.1;
}

.hero-text{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:760px;
}

.hero-side{
  display:grid;
  gap:14px;
}

.mini-stat-card,
.stat-box{
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow);
}

.mini-stat-card .label,
.stat-box .label{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}

.mini-stat-card .value,
.stat-box .value{
  font-size:28px;
  font-weight:700;
}

.feature-card{
  min-height:220px;
}

.feature-icon{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(78,140,255,.14);
  border:1px solid rgba(99,179,255,.22);
  font-size:24px;
  margin-bottom:16px;
}

.bullet-line{
  padding:8px 0;
  color:#dbe5fa;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.bullet-line:last-child{
  border-bottom:none;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.quick-link{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  transition:.2s ease;
}

.quick-link:hover{
  transform:translateY(-2px);
  background:linear-gradient(180deg,rgba(78,140,255,.14),rgba(255,255,255,.04));
}

.quick-title{
  font-size:18px;
  font-weight:700;
}

@media (max-width: 1050px){
  .hero-grid,
  .quick-grid{
    grid-template-columns:1fr;
  }

  .hero-title{
    font-size:30px;
  }
}
.grid.cols-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

@media (max-width: 1050px){
  .grid.cols-4{
    grid-template-columns:1fr;
  }
}
.summary-row.total{
  border-top:1px solid var(--line);
  padding-top:14px;
  font-size:18px;
}