:root{
  --bg:#0b1220;
  --bg2:#09101d;
  --card:#0f1b33;
  --line:rgba(255,255,255,.08);
  --line2:rgba(255,255,255,.05);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --soft:rgba(255,255,255,.58);
  --brand:#2563eb;
  --brand2:#60a5fa;
  --violet:#8b5cf6;
  --ok:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:18px;
  --radius-sm:14px;
  --wrap:1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(96,165,250,.20), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(1000px 700px at 50% 95%, rgba(34,197,94,.08), transparent 60%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:20px 16px 56px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(15,27,51,.55);
  backdrop-filter: blur(10px);
  box-shadow:0 10px 40px rgba(0,0,0,.25);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:210px;
}

.brand-mark{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:800;
  color:#081227;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 12px 25px rgba(37,99,235,.35);
}

.brand-mark.admin{
  background:linear-gradient(135deg,var(--violet),var(--brand2));
}

.brand-title{font-weight:800;letter-spacing:.2px}
.brand-sub{display:block;margin-top:2px;font-size:12px;color:var(--muted)}

nav.main-nav{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
nav.main-nav a{
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.03);
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  min-height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{background:rgba(255,255,255,.07)}

.btn.primary{
  border-color:rgba(37,99,235,.45);
  background:linear-gradient(135deg, rgba(37,99,235,.95), rgba(96,165,250,.85));
  color:#081227;
  font-weight:700;
}
.btn.primary:hover{filter:brightness(1.05)}

.btn.secondary{
  border-color:rgba(139,92,246,.35);
  background:linear-gradient(135deg, rgba(139,92,246,.9), rgba(96,165,250,.8));
  color:#081227;
  font-weight:700;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(15,27,51,.42);
  box-shadow:var(--shadow);
}

.section{margin-top:24px}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.section-head h2{margin:0;font-size:18px}
.hint{color:var(--muted);font-size:13px}

.hero{
  margin-top:24px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
.hero-left{
  position:relative;
  overflow:hidden;
  padding:24px;
}
.hero-left::before{
  content:"";
  position:absolute;
  top:-80px;
  right:-120px;
  width:300px;
  height:300px;
  background:radial-gradient(circle at 30% 30%, rgba(96,165,250,.38), transparent 65%);
}
.hero-right{padding:18px}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
  position:relative;
  z-index:1;
}
.dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--ok);
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

h1.page-title{
  margin:14px 0 10px;
  font-size:38px;
  line-height:1.08;
  letter-spacing:-.5px;
  position:relative;
  z-index:1;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  max-width:62ch;
  position:relative;
  z-index:1;
}
.hero-cta{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}
.note{
  margin-top:14px;
  font-size:12px;
  color:rgba(255,255,255,.55);
  position:relative;
  z-index:1;
}

.logo-box{
  min-height:160px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.logo-box img{
  max-width:240px;
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.45));
}

.quick{margin-top:12px;display:grid;gap:10px}
.qcard{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.03);
}
.qcard h3{margin:0 0 6px;font-size:14px}
.qcard p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

.info-card{padding:18px}
.info-card h3{margin:0 0 8px;font-size:15px}
.info-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}

.list-card{padding:18px}
.list-card h3{margin:0 0 8px;font-size:15px}
.list-card p{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.5}

.price{
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  position:relative;
  overflow:hidden;
}
.price.featured{
  background:linear-gradient(180deg, rgba(37,99,235,.18), rgba(255,255,255,.03));
  border-color:rgba(96,165,250,.35);
}
.price .tag{
  display:inline-flex;
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  margin-bottom:10px;
}
.price h3{margin:0 0 6px;font-size:18px}
.price .desc{margin:0 0 10px;color:var(--muted);font-size:13px;line-height:1.5}
.price ul{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.6}
.price .bottom{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap}

.page-hero{margin-top:24px;padding:22px}
.page-hero h1{margin:0 0 10px;font-size:32px;letter-spacing:-.3px}
.page-hero p{margin:0;color:var(--muted);font-size:14px;line-height:1.6;max-width:74ch}

.badge-line{
  margin-top:14px;
  border:1px dashed rgba(255,255,255,.14);
  border-radius:12px;
  padding:10px 12px;
  color:rgba(255,255,255,.62);
  font-size:12px;
  line-height:1.45;
  background:rgba(255,255,255,.01);
}

footer.site-footer{
  margin-top:32px;
  border-top:1px solid var(--line);
  padding-top:16px;
  color:rgba(255,255,255,.55);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
footer.site-footer .tiny-links a{
  color:rgba(255,255,255,.65);
  margin-right:12px;
}
footer.site-footer .tiny-links a:hover{
  color:rgba(255,255,255,.92);
}

/* login */
.center-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}
.login-shell{
  width:min(980px,100%);
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
}
.login-left{
  position:relative;
  overflow:hidden;
  padding:24px;
}
.login-left::before{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  right:-60px;
  top:-60px;
  background:radial-gradient(circle, rgba(96,165,250,.33), transparent 65%);
}
.login-list{
  margin:18px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.login-list li{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:14px;
  padding:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.login-right{
  padding:18px;
  display:grid;
  align-content:center;
}
.login-card{
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.03);
  padding:18px;
}
.login-card h2{margin:0 0 8px;font-size:20px}
.login-card p{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.5}

.field{margin-bottom:12px}
.field label{display:block;margin-bottom:6px;font-size:12px;color:var(--muted)}
.input{
  width:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  padding:11px 12px;
  font-size:14px;
  outline:none;
}
.input:focus{
  border-color:rgba(96,165,250,.35);
  box-shadow:0 0 0 4px rgba(96,165,250,.10);
}
.role-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.small-links{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}
.floating-links{
  position:fixed;
  top:14px;
  left:14px;
  right:14px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  pointer-events:none;
}
.floating-links a{
  pointer-events:auto;
  border:1px solid var(--line);
  background:rgba(15,27,51,.55);
  backdrop-filter:blur(8px);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
}

/* dashboard */
.dashboard-wrap{
  max-width:1320px;
  margin:0 auto;
  padding:16px;
}
.dashboard-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(15,27,51,.55);
  backdrop-filter:blur(10px);
  padding:10px 12px;
  margin-bottom:14px;
  box-shadow:0 10px 40px rgba(0,0,0,.25);
}
.dashboard-shell{
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(8,14,28,.55);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.dashboard-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.02);
}
.dashboard-title{display:flex;align-items:center;gap:10px}
.dashboard-pills{display:flex;gap:8px;flex-wrap:wrap}

.dashboard-layout{
  display:grid;
  grid-template-columns:250px 1fr;
  min-height:760px;
}
.sidebar{
  border-right:1px solid var(--line);
  background:rgba(255,255,255,.02);
  padding:14px;
}
.side-group{margin-bottom:16px}
.side-label{
  margin:0 0 8px;
  font-size:11px;
  color:rgba(255,255,255,.55);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.side-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  margin-bottom:6px;
  font-size:13px;
}
.side-link.active{
  color:var(--text);
  border-color:rgba(96,165,250,.22);
  background:linear-gradient(180deg, rgba(37,99,235,.14), rgba(255,255,255,.01));
}
.side-link.admin-active{
  color:var(--text);
  border-color:rgba(139,92,246,.22);
  background:linear-gradient(180deg, rgba(139,92,246,.14), rgba(255,255,255,.01));
}
.badge{
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  white-space:nowrap;
}
.main{
  padding:16px;
  display:grid;
  gap:14px;
  align-content:start;
}
.kpi{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.02);
}
.kpi .label{font-size:12px;color:var(--muted);margin-bottom:8px}
.kpi .value{font-size:28px;font-weight:800;line-height:1.1}
.kpi .sub{margin-top:8px;font-size:12px;color:rgba(255,255,255,.62)}

.panel{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.02);
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.panel-head h3{margin:0;font-size:14px}
.meta{color:var(--muted);font-size:12px}

.table-list{display:grid;gap:8px}
.row-item{
  display:grid;
  grid-template-columns:1.25fr 1fr auto;
  gap:10px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.015);
  padding:10px 12px;
  font-size:13px;
}
.row-item .muted{color:var(--muted);font-size:12px}

.status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 8px;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}
.status .s{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.status.warn .s{background:var(--warn)}
.status.danger .s{background:var(--danger)}
.status.violet .s{background:var(--violet)}

.chart{
  height:210px;
  display:flex;
  align-items:flex-end;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}
.bar{
  flex:1;
  min-width:18px;
  border-radius:10px 10px 6px 6px;
  border:1px solid rgba(96,165,250,.18);
  background:linear-gradient(180deg, rgba(96,165,250,.55), rgba(37,99,235,.30));
  position:relative;
}
.bar.admin{
  border-color:rgba(139,92,246,.20);
  background:linear-gradient(180deg, rgba(139,92,246,.55), rgba(96,165,250,.30));
}
.bar span{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-22px;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}

.notice{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:12px;
  padding:10px;
  color:rgba(255,255,255,.62);
  font-size:12px;
  line-height:1.45;
  background:rgba(255,255,255,.01);
}

.mt-10{margin-top:10px}
.mt-14{margin-top:14px}
.full-span{grid-column:1 / -1}

/* responsive */
@media (max-width: 1080px){
  .hero{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .dashboard-layout{grid-template-columns:1fr}
  .sidebar{border-right:none;border-bottom:1px solid var(--line)}
}

@media (max-width: 760px){
  .topbar{border-radius:18px}
  .brand{min-width:auto}
  h1.page-title{font-size:30px}
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr}
  .row-item{grid-template-columns:1fr}
  .role-buttons{grid-template-columns:1fr}
  .login-shell{grid-template-columns:1fr}
  .floating-links{
    position:static;
    padding:0 20px;
    margin-top:14px;
    margin-bottom:-6px;
  }
}

@media (max-width: 520px){
  .btn{padding:10px 12px;font-size:12px}
  .actions{width:100%}
  .actions .btn{flex:1 1 auto}
  nav.main-nav{width:100%}
}