:root{
  --bg:#08111f;
  --bg-soft:#0f1c31;
  --panel:#11223c;
  --panel-2:#142944;
  --line:rgba(255,255,255,0.08);
  --text:#f6f8fb;
  --muted:#a8b5c9;
  --gold:#f5c05a;
  --gold-soft:rgba(245,192,90,0.15);
  --cyan:#6de8ff;
  --cyan-soft:rgba(109,232,255,0.16);
  --shadow:0 24px 48px rgba(0,0,0,0.28);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,#07101d 0%,#0b1730 100%);color:var(--text);font-family:Inter,Arial,sans-serif}
button,input{font:inherit}
button{cursor:pointer}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px 1fr;
}

.sidebar{
  background:linear-gradient(180deg,rgba(10,21,39,0.96),rgba(15,28,49,0.98));
  border-right:1px solid var(--line);
  padding:28px 22px;
  display:flex;
  flex-direction:column;
  gap:22px;
  position:sticky;
  top:0;
  height:100vh;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(255,255,255,0.01));
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.brand-avatar{
  width:64px;
  height:64px;
  border-radius:18px;
  object-fit:cover;
  border:2px solid rgba(109,232,255,0.45);
  box-shadow:0 0 20px rgba(109,232,255,0.18);
}

.brand-copy h1{
  margin:0;
  font-size:24px;
  letter-spacing:-0.02em;
}
.brand-copy p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nav-item{
  border:none;
  border-radius:16px;
  padding:14px 16px;
  background:transparent;
  color:var(--text);
  text-align:left;
  transition:0.2s ease;
}
.nav-item:hover,
.nav-item.active{
  background:linear-gradient(90deg,var(--gold-soft),var(--cyan-soft));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04);
}

.sidebar-card{
  margin-top:auto;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(20,41,68,0.95),rgba(13,30,50,0.96));
  border:1px solid var(--line);
}
.mini-label{
  margin:0 0 6px;
  color:var(--gold);
  font-size:11px;
  letter-spacing:0.18em;
}
.mini-title{
  margin:0 0 8px;
  font-size:18px;
  font-weight:700;
}
.mini-text{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:13px;
}

.main{
  padding:32px;
}

.hero{
  display:grid;
  grid-template-columns:1.2fr 360px;
  gap:24px;
  align-items:center;
  margin-bottom:26px;
  padding:28px;
  border-radius:30px;
  background:
    radial-gradient(circle at top right, rgba(109,232,255,0.14), transparent 40%),
    radial-gradient(circle at bottom left, rgba(245,192,90,0.12), transparent 36%),
    linear-gradient(180deg,rgba(17,34,60,0.96),rgba(10,24,42,0.96));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.hero-kicker{
  margin:0 0 10px;
  color:var(--gold);
  font-size:12px;
  letter-spacing:0.22em;
}
.hero h2{
  margin:0 0 12px;
  font-size:34px;
  line-height:1.2;
  letter-spacing:-0.04em;
}
.hero-desc{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.hero-visual{
  position:relative;
  min-height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.glow-ring{
  position:absolute;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(109,232,255,0.26), rgba(109,232,255,0.02) 60%, transparent 72%);
  filter:blur(4px);
}
.hero-image{
  position:relative;
  width:210px;
  height:210px;
  object-fit:cover;
  border-radius:28px;
  border:3px solid rgba(245,192,90,0.42);
  box-shadow:0 20px 44px rgba(0,0,0,0.28), 0 0 26px rgba(109,232,255,0.18);
}

.tab-panel{display:none}
.tab-panel.active{display:block}

.card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:24px;
}
.stat-card{
  background:linear-gradient(180deg,rgba(17,34,60,0.96),rgba(12,25,44,0.98));
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}
.stat-card.highlight{
  background:
    linear-gradient(180deg, rgba(245,192,90,0.14), rgba(109,232,255,0.10)),
    linear-gradient(180deg,rgba(17,34,60,0.96),rgba(12,25,44,0.98));
}
.stat-label{
  display:block;
  color:var(--muted);
  font-size:14px;
  margin-bottom:14px;
}
.stat-card strong{
  display:block;
  font-size:44px;
  line-height:1;
  margin-bottom:12px;
}
.stat-card small{
  color:var(--muted);
}

.content-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.records-grid{
  grid-template-columns:1fr 1fr;
}
.full-span{
  grid-column:1 / -1;
}

.panel{
  background:linear-gradient(180deg,rgba(17,34,60,0.96),rgba(13,29,49,0.98));
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.panel-head h3{
  margin:0;
  font-size:20px;
}
.pill{
  padding:8px 12px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--gold);
  font-size:12px;
  font-weight:700;
}
.pill.soft{
  background:var(--cyan-soft);
  color:var(--cyan);
}

.list-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.list-item{
  padding:15px 16px;
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.05);
}
.list-title{
  font-size:15px;
  font-weight:700;
  margin-bottom:8px;
}
.list-meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.empty-message{
  color:var(--muted);
}

.search-row{
  display:flex;
  gap:12px;
  margin-bottom:18px;
}
.search-row input,
.settings-grid input{
  width:100%;
  border:none;
  outline:none;
  border-radius:16px;
  background:#0b1730;
  color:var(--text);
  border:1px solid var(--line);
  padding:14px 16px;
}
.primary-btn{
  border:none;
  border-radius:16px;
  padding:14px 18px;
  color:#08111f;
  font-weight:800;
  background:linear-gradient(90deg,var(--gold),var(--cyan));
  box-shadow:0 12px 22px rgba(0,0,0,0.18);
}

.settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.setting-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.05);
}
.setting-card input[type="checkbox"]{
  width:20px;
  height:20px;
}
.setting-card input[type="number"]{
  max-width:120px;
}
.action-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:20px;
}
.status-text{
  color:var(--muted);
  font-size:14px;
}

.user-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
}
.user-card strong{
  font-size:16px;
}
.user-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  background:rgba(255,255,255,0.05);
  color:var(--muted);
}

@media (max-width: 1200px){
  .hero{grid-template-columns:1fr}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .content-grid,.records-grid{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
}
@media (max-width: 640px){
  .main{padding:18px}
  .hero{padding:20px}
  .hero h2{font-size:28px}
  .card-grid{grid-template-columns:1fr}
  .settings-grid{grid-template-columns:1fr}
  .search-row{flex-direction:column}
}