
/* ATI ADMIN + CLIENT POLISH V4
   Fixes header spacing, bold-heavy sidebar, dashboard metric cards and duplicate client welcome.
*/
:root{
  --ap-bg:#06111f;
  --ap-card:#08172b;
  --ap-card2:#10233c;
  --ap-line:rgba(101,213,255,.18);
  --ap-line2:rgba(101,213,255,.32);
  --ap-text:#eaf5ff;
  --ap-muted:#b9d0e9;
  --ap-cyan:#2cc9ff;
  --ap-purple:#7357ff;
  --ap-green:#3cffb1;
}
body{font-weight:400!important}
.admin-shell,.shell{
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 0%,rgba(44,201,255,.15),transparent 32%),
    linear-gradient(135deg,#050b14,#08284d)!important;
}
.side,aside{
  width:250px!important;
  padding:22px 16px!important;
  background:rgba(4,11,22,.95)!important;
}
.side img,aside img{
  display:block;
  max-width:150px!important;
  height:auto!important;
  margin:0 auto 24px!important;
}
.side nav,aside nav{gap:7px!important}
.side nav a,aside nav a{
  font-weight:650!important;
  letter-spacing:.01em!important;
  padding:12px 14px!important;
  font-size:15px!important;
  border:1px solid transparent!important;
}
.side nav a.active,aside nav a.active{
  font-weight:800!important;
  border-color:rgba(101,213,255,.14)!important;
}
.main,main{
  padding:30px!important;
}
.topbar,.top{
  background:linear-gradient(135deg,rgba(8,23,43,.72),rgba(18,36,61,.45))!important;
  border:1px solid rgba(101,213,255,.14)!important;
  border-radius:24px!important;
  padding:22px!important;
  align-items:center!important;
  margin-bottom:20px!important;
}
.topbar h1,.top h1{
  margin:0 0 7px!important;
  font-size:clamp(28px,3vw,42px)!important;
  letter-spacing:-.035em!important;
  font-weight:750!important;
}
.topbar p,.top p,.muted{
  color:var(--ap-muted)!important;
  font-weight:400!important;
}
.stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  margin:20px 0!important;
}
.stat{
  min-height:112px!important;
  padding:20px!important;
  position:relative;
  overflow:hidden;
}
.stat:before{
  content:"";
  position:absolute;
  inset:auto -30px -50px auto;
  width:110px;
  height:110px;
  border-radius:999px;
  background:rgba(44,201,255,.10);
}
.stat span{
  display:block;
  color:var(--ap-muted)!important;
  font-size:14px!important;
  font-weight:500!important;
}
.stat strong{
  display:block;
  font-size:clamp(24px,3vw,34px)!important;
  margin-top:8px!important;
  font-weight:750!important;
}
.panel,.card,.stat,.plan,.box{
  border-radius:24px!important;
}
h1,h2,h3{font-weight:750!important}
p,td,li,label,span{font-weight:400}
.btn,button{font-weight:800!important}
.ati-clean-header{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
  background:linear-gradient(135deg,rgba(44,201,255,.10),rgba(115,87,255,.12));
  border:1px solid rgba(101,213,255,.18);
  border-radius:26px;
  padding:22px;
  margin-bottom:18px;
}
.ati-clean-header h1{margin:0 0 6px!important}
.ati-clean-header p{margin:0;color:var(--ap-muted)}
.ati-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}
.ati-metric-card{
  padding:18px;
  min-height:105px;
  border-radius:22px;
  border:1px solid rgba(101,213,255,.18);
  background:linear-gradient(145deg,rgba(8,23,43,.94),rgba(18,36,61,.72));
  box-shadow:0 18px 60px rgba(0,0,0,.16);
}
.ati-metric-card small{
  display:block;
  color:var(--ap-muted);
  font-size:13px;
  margin-bottom:8px;
}
.ati-metric-card b{
  display:block;
  font-size:28px;
  font-weight:760;
}
.ati-metric-card em{
  display:block;
  font-style:normal;
  color:#8ee7ff;
  margin-top:5px;
  font-size:12px;
}
.ati-client-welcome + .top{
  display:none!important;
}
.ati-client-welcome{
  margin-bottom:22px!important;
}
.ati-client-welcome h1{
  font-size:clamp(28px,3vw,40px)!important;
  font-weight:760!important;
}
@media(max-width:1100px){
  .stats,.ati-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .side,aside{width:100%!important;padding:16px!important}
  .main,main{padding:18px!important}
  .topbar,.top,.ati-clean-header{border-radius:20px!important;padding:18px!important}
  .stats,.ati-metric-grid{grid-template-columns:1fr!important}
  .side nav a,aside nav a{font-size:14px!important;font-weight:650!important}
}
