/* ===== VISUAL PREMIUM FINAL - SEM MEXER NO SERVER.JS ===== */

*{box-sizing:border-box}

body{
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.32),transparent 35%),
    linear-gradient(135deg,#06111f,#0f1b35 55%,#132b70)!important;
}

.layout{
  display:flex!important;
  min-height:100vh!important;
}

.sidebar{
  width:250px!important;
  background:linear-gradient(180deg,#06101e,#08111f 70%,#050b14)!important;
  border-right:1px solid rgba(148,163,184,.14)!important;
  box-shadow:18px 0 45px rgba(0,0,0,.22)!important;
  padding:20px 16px!important;
}

.main{
  width:calc(100% - 250px)!important;
  margin-left:0!important;
  padding:22px 28px!important;
}

.brand{
  padding:8px 6px 22px!important;
  border-bottom:1px solid rgba(148,163,184,.12)!important;
  margin-bottom:18px!important;
}

.logo{
  width:48px!important;
  height:48px!important;
  border-radius:17px!important;
  box-shadow:0 12px 35px rgba(59,130,246,.35)!important;
}

.brand h2{
  font-size:19px!important;
  letter-spacing:.2px!important;
}

.brand span{
  color:#cbd5e1!important;
  font-size:12px!important;
}

.nav{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
}

.nav-group{
  padding:10px!important;
  margin:8px 0!important;
  border-radius:18px!important;
  background:rgba(15,23,42,.58)!important;
  border:1px solid rgba(148,163,184,.12)!important;
}

.nav-title{
  padding:8px 10px!important;
  font-size:12px!important;
  color:#93c5fd!important;
  text-transform:uppercase!important;
  font-weight:950!important;
  letter-spacing:.6px!important;
}

.nav a{
  min-height:40px!important;
  padding:11px 12px!important;
  border-radius:14px!important;
  color:#dbeafe!important;
  font-weight:850!important;
  transition:.18s ease!important;
}

.nav a:hover{
  background:linear-gradient(135deg,rgba(37,99,235,.34),rgba(59,130,246,.14))!important;
  transform:translateX(3px)!important;
}

.nav a[href="/logout"]{
  margin-top:12px!important;
  background:rgba(239,68,68,.10)!important;
  color:#fecaca!important;
  border:1px solid rgba(239,68,68,.20)!important;
}

.topbar{
  background:rgba(30,41,59,.70)!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:24px!important;
  padding:20px 22px!important;
  box-shadow:0 18px 45px rgba(0,0,0,.22)!important;
  margin-bottom:20px!important;
}

.title h1{
  font-size:30px!important;
  line-height:1.1!important;
  letter-spacing:-.5px!important;
}

.title p{
  color:#cbd5e1!important;
  font-size:15px!important;
}

.filter{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
}

.filter input,
.filter select{
  min-height:46px!important;
  border-radius:14px!important;
  background:#0b1224!important;
  border:1px solid rgba(148,163,184,.25)!important;
  color:#f8fafc!important;
}

.filter button,
button,
.btn{
  min-height:44px!important;
  border-radius:14px!important;
  font-weight:950!important;
}

.kpis{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;
  gap:16px!important;
  margin-bottom:18px!important;
}

.kpi{
  min-height:118px!important;
  border-radius:20px!important;
  background:rgba(30,41,59,.76)!important;
  border:1px solid rgba(148,163,184,.15)!important;
  box-shadow:0 15px 35px rgba(0,0,0,.18)!important;
  padding:18px!important;
  position:relative!important;
  overflow:hidden!important;
}

.kpi:after{
  content:""!important;
  position:absolute!important;
  width:78px!important;
  height:78px!important;
  right:-16px!important;
  top:-16px!important;
  border-radius:999px!important;
  background:rgba(59,130,246,.28)!important;
}

.kpi.green{
  background:linear-gradient(135deg,#15803d,#22c55e)!important;
}

.kpi.red{
  background:linear-gradient(135deg,#b91c1c,#ef4444)!important;
}

.kpi small{
  color:#e2e8f0!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}

.kpi strong{
  font-size:29px!important;
  line-height:1.2!important;
}

.kpi span{
  color:#dbeafe!important;
  font-size:13px!important;
}

.grid{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr!important;
  gap:18px!important;
}

.grid2{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
}

.card{
  background:rgba(30,41,59,.76)!important;
  border:1px solid rgba(148,163,184,.15)!important;
  border-radius:22px!important;
  padding:20px!important;
  box-shadow:0 18px 45px rgba(0,0,0,.20)!important;
}

.card h3{
  font-size:20px!important;
  margin-top:0!important;
}

.chart{
  height:310px!important;
}

.card table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0 9px!important;
  overflow-x:auto!important;
}

.card table th{
  color:#93c5fd!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  padding:12px!important;
}

.card table td{
  background:rgba(15,23,42,.50)!important;
  padding:14px 12px!important;
}

.card table tr:hover td{
  background:rgba(37,99,235,.20)!important;
}

.card table td:first-child{
  border-radius:14px 0 0 14px!important;
}

.card table td:last-child{
  border-radius:0 14px 14px 0!important;
}

.badge{
  border-radius:999px!important;
  padding:7px 11px!important;
  font-weight:950!important;
}

.quick-filters{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-top:12px!important;
}

.quick-filters a{
  background:rgba(59,130,246,.16)!important;
  border:1px solid rgba(96,165,250,.28)!important;
  color:#dbeafe!important;
  padding:8px 11px!important;
  border-radius:999px!important;
  font-weight:900!important;
  font-size:12px!important;
}

@media(max-width:1300px){
  .grid{grid-template-columns:1fr!important}
  .grid2{grid-template-columns:1fr!important}
}

@media(max-width:900px){
  .layout{display:block!important}
  .sidebar{
    width:100%!important;
    position:relative!important;
  }
  .main{
    width:100%!important;
    padding:14px!important;
  }
  .nav{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  }
  .topbar{
    display:block!important;
  }
  .filter{
    margin-top:14px!important;
  }
  .card table{
    display:block!important;
    white-space:nowrap!important;
    overflow-x:auto!important;
  }
}

@media(max-width:520px){
  .kpis{grid-template-columns:1fr!important}
  .title h1{font-size:24px!important}
}

/* ===== CORREÇÃO LAYOUT MENU + CONTEÚDO ===== */

.sidebar{
  position:fixed!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:240px!important;
  z-index:50!important;
  overflow-y:auto!important;
}

.main{
  margin-left:240px!important;
  width:calc(100% - 240px)!important;
  padding:22px 28px!important;
}

.layout{
  display:block!important;
}

@media(max-width:900px){
  .sidebar{
    position:relative!important;
    width:100%!important;
    height:auto!important;
  }

  .main{
    margin-left:0!important;
    width:100%!important;
    padding:14px!important;
  }
}

/* ===== DASHBOARD PREMIUM REAL ===== */
.dash-header-premium{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:18px!important;
  margin-bottom:22px!important;
}
.dash-header-premium h1{
  font-size:34px!important;
  margin:0!important;
}
.dash-header-premium p{
  color:#94a3b8!important;
  margin:6px 0 0!important;
}
.dash-filter-premium form{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
}
.kpi-premium-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(150px,1fr))!important;
  gap:16px!important;
  margin-bottom:20px!important;
}
.kpi-premium{
  min-height:142px!important;
  border-radius:18px!important;
  padding:18px!important;
  position:relative!important;
  overflow:hidden!important;
  box-shadow:0 0 30px rgba(0,0,0,.25)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.kpi-premium:after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:38px!important;
  opacity:.25!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent)!important;
}
.kpi-premium .kpi-icon{
  width:48px!important;
  height:48px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:25px!important;
  background:rgba(255,255,255,.18)!important;
  margin-bottom:10px!important;
}
.kpi-premium small{
  text-transform:uppercase!important;
  font-weight:900!important;
  color:#e5e7eb!important;
}
.kpi-premium strong{
  display:block!important;
  font-size:30px!important;
  margin-top:5px!important;
}
.kpi-premium span{
  color:#dbeafe!important;
  font-size:13px!important;
}
.kpi-premium.blue{background:linear-gradient(135deg,#0b3fb8,#0b63ff)!important;box-shadow:0 0 26px rgba(37,99,235,.35)!important}
.kpi-premium.green{background:linear-gradient(135deg,#047857,#22c55e)!important;box-shadow:0 0 26px rgba(34,197,94,.30)!important}
.kpi-premium.cyan{background:linear-gradient(135deg,#0f766e,#06b6d4)!important;box-shadow:0 0 26px rgba(6,182,212,.30)!important}
.kpi-premium.orange{background:linear-gradient(135deg,#b45309,#f97316)!important;box-shadow:0 0 26px rgba(249,115,22,.30)!important}
.kpi-premium.red{background:linear-gradient(135deg,#be123c,#ef4444)!important;box-shadow:0 0 26px rgba(239,68,68,.30)!important}
.kpi-premium.money{background:linear-gradient(135deg,#166534,#16a34a)!important;box-shadow:0 0 26px rgba(22,163,74,.30)!important}
.kpi-premium.purple{background:linear-gradient(135deg,#5b21b6,#7c3aed)!important;box-shadow:0 0 26px rgba(124,58,237,.35)!important}

.channel-grid-premium{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(170px,1fr))!important;
  gap:16px!important;
  margin-bottom:20px!important;
}
.channel-card-premium{
  background:rgba(15,23,42,.72)!important;
  border:1px solid rgba(148,163,184,.15)!important;
  border-radius:18px!important;
  padding:18px!important;
  display:flex!important;
  gap:14px!important;
  align-items:center!important;
}
.channel-icon{
  width:45px!important;
  height:45px!important;
  border-radius:999px!important;
  background:rgba(59,130,246,.22)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:23px!important;
}
.channel-card-premium small{
  display:block!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
.channel-card-premium strong{
  display:block!important;
  font-size:26px!important;
}
.channel-card-premium span{
  font-size:12px!important;
  color:#cbd5e1!important;
}
.progress-premium{
  width:120px!important;
  height:6px!important;
  border-radius:999px!important;
  background:rgba(148,163,184,.20)!important;
  margin-top:8px!important;
  overflow:hidden!important;
}
.progress-premium i,.mini-progress i{
  display:block!important;
  height:100%!important;
  background:#22c55e!important;
  border-radius:999px!important;
}
.charts-premium{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.card-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.card-head a{
  padding:8px 12px!important;
  background:rgba(37,99,235,.30)!important;
  border-radius:10px!important;
  color:#93c5fd!important;
  font-weight:900!important;
}
.bottom-premium{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
}
.money-text{
  color:#22c55e!important;
  font-weight:950!important;
}
.rank-badge{
  display:inline-flex!important;
  width:28px!important;
  height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#facc15,#f59e0b)!important;
  color:#fff!important;
  font-weight:950!important;
}
.mini-progress{
  width:140px!important;
  height:7px!important;
  border-radius:999px!important;
  background:rgba(148,163,184,.20)!important;
  overflow:hidden!important;
}
.dash-footer-premium{
  margin:18px auto 0!important;
  width:max-content!important;
  color:#cbd5e1!important;
  background:rgba(15,23,42,.60)!important;
  border:1px solid rgba(148,163,184,.15)!important;
  border-radius:999px!important;
  padding:10px 18px!important;
}
.dash-footer-premium span{
  margin-left:20px!important;
  color:#22c55e!important;
}

@media(max-width:1500px){
  .kpi-premium-grid{grid-template-columns:repeat(4,1fr)!important}
  .channel-grid-premium{grid-template-columns:repeat(3,1fr)!important}
  .charts-premium{grid-template-columns:1fr!important}
}
@media(max-width:800px){
  .dash-header-premium{display:block!important}
  .dash-filter-premium{margin-top:14px!important}
  .kpi-premium-grid,.channel-grid-premium,.bottom-premium{grid-template-columns:1fr!important}
}

/* ===== LOGIN PREMIUM ===== */

.login-page{
  min-height:100vh!important;
  display:grid!important;
  grid-template-columns:1.2fr .8fr!important;
  align-items:center!important;
  gap:60px!important;
  padding:70px!important;
  background:
    radial-gradient(circle at 15% 20%,rgba(59,130,246,.35),transparent 28%),
    radial-gradient(circle at 85% 70%,rgba(37,99,235,.45),transparent 35%),
    linear-gradient(135deg,#050b16,#0b1730 55%,#123a91)!important;
}

.login-hero{
  max-width:780px!important;
}

.login-hero h1{
  font-size:52px!important;
  margin:0 0 20px!important;
  letter-spacing:-1px!important;
}

.login-hero h2{
  font-size:38px!important;
  margin:0 0 22px!important;
}

.login-hero p{
  font-size:17px!important;
  color:#dbeafe!important;
  max-width:620px!important;
  line-height:1.5!important;
}

.features{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:16px!important;
  margin-top:35px!important;
}

.feature{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  padding:18px!important;
  border-radius:18px!important;
  background:rgba(30,41,59,.70)!important;
  border:1px solid rgba(148,163,184,.20)!important;
  box-shadow:0 16px 35px rgba(0,0,0,.20)!important;
}

.feature b{
  font-size:15px!important;
  color:#ffffff!important;
}

.feature span{
  color:#cbd5e1!important;
  font-size:13px!important;
}

.login-card-wrap{
  display:flex!important;
  justify-content:center!important;
}

.login-card{
  width:390px!important;
  padding:34px!important;
  border-radius:26px!important;
  background:rgba(15,23,42,.82)!important;
  border:1px solid rgba(148,163,184,.20)!important;
  box-shadow:0 30px 80px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(16px)!important;
}

.login-card h2{
  font-size:26px!important;
  margin-bottom:8px!important;
}

.login-card p{
  color:#93c5fd!important;
  font-weight:800!important;
}

.login-card input{
  height:52px!important;
  border-radius:15px!important;
  background:#081225!important;
  border:1px solid rgba(148,163,184,.25)!important;
  color:white!important;
  padding:0 16px!important;
  font-size:15px!important;
}

.login-card input:focus{
  outline:none!important;
  border-color:#3b82f6!important;
  box-shadow:0 0 0 3px rgba(59,130,246,.18)!important;
}

.login-card button{
  height:54px!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#2563eb,#3b82f6)!important;
  box-shadow:0 16px 35px rgba(37,99,235,.35)!important;
  font-size:16px!important;
  font-weight:950!important;
}

.login-card:before{
  content:"🚀";
  display:flex;
  width:62px;
  height:62px;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  background:linear-gradient(135deg,#2563eb,#22c55e);
  font-size:30px;
  margin-bottom:18px;
}

.login-card:after{
  content:"Desenvolvido por Jbsouza";
  display:block;
  text-align:center;
  margin-top:22px;
  color:#94a3b8;
  font-size:13px;
  font-weight:800;
}

@media(max-width:950px){
  .login-page{
    grid-template-columns:1fr!important;
    padding:30px!important;
    gap:30px!important;
  }

  .login-hero h1{
    font-size:36px!important;
  }

  .login-hero h2{
    font-size:28px!important;
  }

  .features{
    grid-template-columns:1fr!important;
  }

  .login-card{
    width:100%!important;
  }
}

/* ===== LOGIN FUTURISTA JBSOUZA ===== */
.login-future{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:center;
  gap:50px;
  padding:70px;
  background:
    radial-gradient(circle at 15% 20%,rgba(0,180,255,.35),transparent 26%),
    radial-gradient(circle at 80% 75%,rgba(37,99,235,.55),transparent 32%),
    linear-gradient(135deg,#020617,#07142b 45%,#0b2b77);
}

.future-bg span{
  position:absolute;
  border-radius:999px;
  filter:blur(2px);
  opacity:.45;
  animation:floatFuture 8s infinite alternate ease-in-out;
}
.future-bg span:nth-child(1){width:280px;height:280px;background:#2563eb;left:-80px;top:60px}
.future-bg span:nth-child(2){width:420px;height:420px;background:#0ea5e9;right:-130px;bottom:-120px}
.future-bg span:nth-child(3){width:160px;height:160px;background:#22c55e;left:52%;top:16%}
.future-bg span:nth-child(4){width:220px;height:220px;background:#7c3aed;left:35%;bottom:8%}

@keyframes floatFuture{
  from{transform:translateY(0) scale(1)}
  to{transform:translateY(-25px) scale(1.08)}
}

.future-left,
.future-login-wrap{
  position:relative;
  z-index:2;
}

.future-badge{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(96,165,250,.35);
  color:#bfdbfe;
  font-weight:900;
  margin-bottom:26px;
}

.future-left h1{
  font-size:64px;
  line-height:1;
  margin:0 0 18px;
  letter-spacing:-2px;
  color:white;
  text-shadow:0 0 35px rgba(59,130,246,.55);
}

.future-left h2{
  font-size:34px;
  max-width:760px;
  margin:0 0 18px;
  color:#e0f2fe;
}

.future-left p{
  font-size:18px;
  max-width:620px;
  color:#cbd5e1;
  line-height:1.5;
}

.future-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:36px;
  max-width:760px;
}

.future-cards div{
  padding:18px;
  border-radius:20px;
  background:rgba(15,23,42,.58);
  border:1px solid rgba(148,163,184,.20);
  box-shadow:inset 0 0 30px rgba(59,130,246,.06),0 20px 50px rgba(0,0,0,.18);
}

.future-cards b{
  display:block;
  color:white;
  font-size:16px;
  margin-bottom:7px;
}

.future-cards small{
  color:#94a3b8;
  font-weight:800;
}

.future-login-wrap{
  display:flex;
  justify-content:center;
}

.future-login-card{
  width:420px;
  padding:38px;
  border-radius:30px;
  background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(15,23,42,.66));
  border:1px solid rgba(125,211,252,.22);
  box-shadow:
    0 0 0 1px rgba(59,130,246,.15),
    0 30px 90px rgba(0,0,0,.45),
    inset 0 0 55px rgba(37,99,235,.08);
  backdrop-filter:blur(18px);
}

.future-logo{
  width:68px;
  height:68px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:950;
  color:white;
  background:linear-gradient(135deg,#2563eb,#06b6d4,#22c55e);
  box-shadow:0 0 35px rgba(34,211,238,.35);
  margin-bottom:24px;
}

.future-login-card h2{
  font-size:30px;
  margin:0 0 6px;
  color:white;
}

.future-login-card p{
  margin:0 0 24px;
  color:#93c5fd;
  font-weight:900;
}

.future-login-card label{
  display:block;
  margin:14px 0 7px;
  color:#dbeafe;
  font-size:13px;
  font-weight:950;
}

.future-login-card input{
  width:100%;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(2,6,23,.72);
  color:white;
  padding:0 16px;
  font-size:15px;
}

.future-login-card input:focus{
  outline:none;
  border-color:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.14);
}

.future-login-card button{
  width:100%;
  height:56px;
  margin-top:24px;
  border:0;
  border-radius:16px;
  color:white;
  font-size:16px;
  font-weight:950;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  box-shadow:0 18px 45px rgba(37,99,235,.40);
}

.future-login-card small{
  display:block;
  text-align:center;
  margin-top:22px;
  color:#94a3b8;
  font-weight:800;
}

@media(max-width:950px){
  .login-future{
    grid-template-columns:1fr;
    padding:28px;
  }
  .future-left h1{font-size:42px}
  .future-left h2{font-size:26px}
  .future-cards{grid-template-columns:1fr}
  .future-login-card{width:100%}
}

/* ===== LOGIN CYBER NEON PREMIUM ===== */
.login-cyber{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  background:
    radial-gradient(circle at 20% 20%,rgba(37,99,235,.35),transparent 28%),
    radial-gradient(circle at 80% 70%,rgba(14,165,233,.32),transparent 30%),
    linear-gradient(135deg,#020617,#061528 52%,#0b2b70);
}

.cyber-grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(59,130,246,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.08) 1px, transparent 1px);
  background-size:50px 50px;
  mask-image:linear-gradient(to bottom,transparent,black 20%,black 80%,transparent);
  animation:gridMove 18s linear infinite;
}

@keyframes gridMove{
  from{transform:translateY(0)}
  to{transform:translateY(50px)}
}

.cyber-light{
  position:absolute;
  border-radius:999px;
  filter:blur(40px);
  opacity:.55;
  animation:floatCyber 7s ease-in-out infinite alternate;
}

.cyber-light.one{
  width:320px;
  height:320px;
  background:#2563eb;
  left:10%;
  top:10%;
}

.cyber-light.two{
  width:420px;
  height:420px;
  background:#06b6d4;
  right:8%;
  bottom:8%;
}

@keyframes floatCyber{
  from{transform:translateY(0) scale(1)}
  to{transform:translateY(-22px) scale(1.06)}
}

.cyber-card{
  position:relative;
  z-index:3;
  width:430px;
  padding:42px;
  border-radius:32px;
  background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(15,23,42,.68));
  border:1px solid rgba(125,211,252,.26);
  box-shadow:
    0 0 0 1px rgba(59,130,246,.18),
    0 0 45px rgba(37,99,235,.22),
    0 35px 95px rgba(0,0,0,.50),
    inset 0 0 70px rgba(59,130,246,.08);
  backdrop-filter:blur(18px);
  text-align:left;
}

.cyber-status{
  position:absolute;
  top:18px;
  right:20px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border-radius:999px;
  color:#bbf7d0;
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.24);
  font-size:12px;
  font-weight:900;
}

.cyber-status span{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 16px #22c55e;
}

.cyber-logo{
  width:76px;
  height:76px;
  border-radius:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:22px;
  font-size:34px;
  font-weight:950;
  color:white;
  background:linear-gradient(135deg,#2563eb,#06b6d4,#22c55e);
  animation:pulseLogoCyber 4s infinite ease-in-out;
}

@keyframes pulseLogoCyber{
  0%{
    transform:scale(1);
    box-shadow:0 0 12px rgba(59,130,246,.35);
  }
  50%{
    transform:scale(1.04);
    box-shadow:
      0 0 24px rgba(59,130,246,.75),
      0 0 55px rgba(6,182,212,.35);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 12px rgba(59,130,246,.35);
  }
}

.cyber-card h1{
  margin:0;
  font-size:36px;
  letter-spacing:-.7px;
  color:#fff;
}

.cyber-card h2{
  margin:8px 0 12px;
  font-size:20px;
  color:#93c5fd;
}

.cyber-card p{
  margin:0 0 26px;
  color:#cbd5e1;
  line-height:1.5;
}

.cyber-card label{
  display:block;
  margin:14px 0 7px;
  color:#dbeafe;
  font-size:13px;
  font-weight:950;
}

.cyber-card input{
  width:100%;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(2,6,23,.78);
  color:#fff;
  padding:0 16px;
  font-size:15px;
}

.cyber-card input:focus{
  outline:none;
  border-color:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.14);
}

.cyber-card button{
  width:100%;
  height:56px;
  margin-top:24px;
  border:0;
  border-radius:16px;
  color:white;
  font-size:16px;
  font-weight:950;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  box-shadow:0 18px 45px rgba(37,99,235,.40);
  cursor:pointer;
}

.cyber-card button:hover{
  transform:translateY(-1px);
  box-shadow:0 22px 55px rgba(6,182,212,.44);
}

.cyber-card small{
  display:block;
  text-align:center;
  margin-top:24px;
  color:#94a3b8;
  font-weight:800;
}

@media(max-width:560px){
  .login-cyber{padding:18px}
  .cyber-card{
    width:100%;
    padding:30px 24px;
  }
  .cyber-card h1{font-size:29px}
}

/* ===== LOGIN OBJETIVO PREMIUM ===== */
.login-objective{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:center;
  gap:60px;
  padding:70px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%,rgba(37,99,235,.35),transparent 27%),
    radial-gradient(circle at 85% 70%,rgba(6,182,212,.35),transparent 32%),
    linear-gradient(135deg,#020617,#07152b 55%,#102a70);
}

.obj-light{
  position:absolute;
  border-radius:999px;
  filter:blur(45px);
  opacity:.45;
}

.obj-a{
  width:380px;
  height:380px;
  background:#2563eb;
  left:-80px;
  top:60px;
}

.obj-b{
  width:460px;
  height:460px;
  background:#06b6d4;
  right:-120px;
  bottom:-120px;
}

.obj-panel,
.obj-login{
  position:relative;
  z-index:2;
}

.obj-logo{
  width:74px;
  height:74px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  font-weight:950;
  color:white;
  background:linear-gradient(135deg,#2563eb,#06b6d4,#22c55e);
  box-shadow:0 0 35px rgba(37,99,235,.40);
  animation:objPulse 4s infinite ease-in-out;
}

@keyframes objPulse{
  0%,100%{transform:scale(1);box-shadow:0 0 18px rgba(59,130,246,.35)}
  50%{transform:scale(1.04);box-shadow:0 0 40px rgba(6,182,212,.55)}
}

.obj-tag{
  display:inline-flex;
  margin:22px 0 12px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(59,130,246,.14);
  border:1px solid rgba(96,165,250,.30);
  color:#bfdbfe;
  font-weight:900;
}

.obj-panel h1{
  font-size:58px;
  margin:0 0 12px;
  color:white;
  letter-spacing:-1px;
}

.obj-panel h2{
  max-width:700px;
  font-size:34px;
  line-height:1.15;
  color:#e0f2fe;
  margin:0 0 26px;
}

.obj-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  max-width:720px;
}

.obj-list div{
  padding:16px;
  border-radius:18px;
  background:rgba(15,23,42,.60);
  border:1px solid rgba(148,163,184,.18);
  color:#e2e8f0;
  font-weight:900;
}

.obj-mini{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.obj-mini span{
  padding:12px 16px;
  border-radius:999px;
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.25);
  color:#bbf7d0;
  font-weight:900;
}

.obj-login{
  display:flex;
  justify-content:center;
}

.obj-login form{
  width:410px;
  padding:38px;
  border-radius:30px;
  background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(15,23,42,.70));
  border:1px solid rgba(125,211,252,.24);
  box-shadow:0 35px 90px rgba(0,0,0,.48), inset 0 0 70px rgba(37,99,235,.08);
  backdrop-filter:blur(18px);
}

.obj-login h2{
  margin:0;
  font-size:30px;
  color:white;
}

.obj-login p{
  margin:8px 0 24px;
  color:#93c5fd;
  font-weight:900;
}

.obj-login label{
  display:block;
  margin:14px 0 7px;
  color:#dbeafe;
  font-size:13px;
  font-weight:950;
}

.obj-login input{
  width:100%;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(2,6,23,.78);
  color:white;
  padding:0 16px;
}

.obj-login input:focus{
  outline:none;
  border-color:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.14);
}

.obj-login button{
  width:100%;
  height:56px;
  margin-top:24px;
  border:0;
  border-radius:16px;
  color:white;
  font-size:16px;
  font-weight:950;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  box-shadow:0 18px 45px rgba(37,99,235,.40);
}

.obj-login small{
  display:block;
  text-align:center;
  margin-top:24px;
  color:#94a3b8;
  font-weight:800;
}

@media(max-width:950px){
  .login-objective{
    grid-template-columns:1fr;
    padding:28px;
    gap:30px;
  }
  .obj-panel h1{font-size:42px}
  .obj-panel h2{font-size:26px}
  .obj-list{grid-template-columns:1fr}
  .obj-login form{width:100%}
}

/* ===== BOTÃO FLUTUANTE SUPORTE LOGIN ===== */
.floating-support{
  position:fixed;
  right:28px;
  bottom:28px;
  z-index:99;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:white!important;
  text-decoration:none!important;
  font-weight:950;
  box-shadow:
    0 18px 45px rgba(37,99,235,.42),
    0 0 30px rgba(6,182,212,.28);
  animation:floatSupport 3s ease-in-out infinite;
}

.floating-support span{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.18);
  font-size:18px;
}

.floating-support:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:
    0 24px 55px rgba(37,99,235,.55),
    0 0 45px rgba(6,182,212,.38);
}

@keyframes floatSupport{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

@media(max-width:600px){
  .floating-support{
    right:16px;
    bottom:16px;
    padding:12px 15px;
  }
}

/* ===== PADRÃO UNIVERSAL GNS / AGLINK ===== */
*{box-sizing:border-box}

body{
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.28),transparent 35%),
    linear-gradient(135deg,#06111f,#0f1b35 55%,#132b70)!important;
}

.layout{
  display:block!important;
  min-height:100vh!important;
}

.sidebar{
  position:fixed!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:240px!important;
  z-index:50!important;
  overflow-y:auto!important;
  background:linear-gradient(180deg,#06101e,#08111f 70%,#050b14)!important;
  border-right:1px solid rgba(148,163,184,.14)!important;
  box-shadow:18px 0 45px rgba(0,0,0,.22)!important;
  padding:20px 16px!important;
}

.main{
  margin-left:240px!important;
  width:calc(100% - 240px)!important;
  padding:22px 28px!important;
}

.brand{
  padding:8px 6px 22px!important;
  border-bottom:1px solid rgba(148,163,184,.12)!important;
  margin-bottom:18px!important;
}

.logo{
  width:48px!important;
  height:48px!important;
  border-radius:17px!important;
  box-shadow:0 12px 35px rgba(59,130,246,.35)!important;
}

.nav{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
}

.nav-group{
  padding:10px!important;
  margin:8px 0!important;
  border-radius:18px!important;
  background:rgba(15,23,42,.58)!important;
  border:1px solid rgba(148,163,184,.12)!important;
}

.nav-title{
  padding:8px 10px!important;
  font-size:12px!important;
  color:#93c5fd!important;
  text-transform:uppercase!important;
  font-weight:950!important;
}

.nav a{
  min-height:40px!important;
  padding:11px 12px!important;
  border-radius:14px!important;
  color:#dbeafe!important;
  font-weight:850!important;
}

.nav a:hover{
  background:linear-gradient(135deg,rgba(37,99,235,.34),rgba(59,130,246,.14))!important;
  transform:translateX(3px)!important;
}

.topbar,.card{
  background:rgba(30,41,59,.76)!important;
  border:1px solid rgba(148,163,184,.15)!important;
  border-radius:22px!important;
  box-shadow:0 18px 45px rgba(0,0,0,.20)!important;
}

.card{
  padding:20px!important;
}

.kpis{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;
  gap:16px!important;
}

.kpi{
  min-height:118px!important;
  border-radius:20px!important;
  padding:18px!important;
  background:rgba(30,41,59,.76)!important;
  border:1px solid rgba(148,163,184,.15)!important;
}

@media(max-width:900px){
  .sidebar{
    position:relative!important;
    width:100%!important;
    height:auto!important;
  }

  .main{
    margin-left:0!important;
    width:100%!important;
    padding:14px!important;
  }

  .nav{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  }
}

/* ===== DASHBOARD MASTER V5 UNIVERSAL ===== */
body{
  background:
    radial-gradient(circle at 80% 10%,rgba(37,99,235,.25),transparent 28%),
    radial-gradient(circle at 50% 80%,rgba(14,165,233,.14),transparent 38%),
    linear-gradient(135deg,#06101e,#0f1b35 55%,#112a68)!important;
}

.dash-v4-header{
  margin-bottom:18px!important;
}

.dash-v4-header h1{
  font-size:32px!important;
  letter-spacing:-.8px!important;
}

.dash-v4-kpis{
  grid-template-columns:repeat(8,minmax(145px,1fr))!important;
  gap:12px!important;
}

.dash-v4-card{
  min-height:112px!important;
  border-radius:18px!important;
  box-shadow:0 18px 45px rgba(0,0,0,.25)!important;
}

.dash-v4-card strong{
  font-size:27px!important;
}

.dash-v4-card.dark strong{
  font-size:22px!important;
  max-width:150px!important;
}

.dash-v4-card{
  position:relative!important;
}

.dash-v4-card:before{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:10px;
  height:5px;
  border-radius:99px;
  background:rgba(255,255,255,.16);
}

.dash-v4-card:after{
  opacity:.25!important;
}

.dash-v4-card.blue{background:linear-gradient(135deg,#1d4ed8,#2563eb)!important}
.dash-v4-card.green{background:linear-gradient(135deg,#15803d,#22c55e)!important}
.dash-v4-card.cyan{background:linear-gradient(135deg,#0f766e,#06b6d4)!important}
.dash-v4-card.orange{background:linear-gradient(135deg,#b45309,#f97316)!important}
.dash-v4-card.red{background:linear-gradient(135deg,#be123c,#ef4444)!important}
.dash-v4-card.money{background:linear-gradient(135deg,#166534,#16a34a)!important}
.dash-v4-card.purple{background:linear-gradient(135deg,#5b21b6,#8b5cf6)!important}

.dash-v4-channels{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
  gap:12px!important;
}

.dash-v4-channel{
  min-height:82px!important;
  border-radius:17px!important;
  background:rgba(8,18,35,.78)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.20)!important;
}

.dash-v4-channel .ico{
  width:42px!important;
  height:42px!important;
  font-size:22px!important;
}

.dash-v4-grid{
  grid-template-columns:1.05fr 1.05fr 1fr!important;
  gap:16px!important;
}

.dash-v4-bottom{
  grid-template-columns:1fr 1fr!important;
  gap:16px!important;
}

.card{
  border-radius:20px!important;
  background:rgba(24,35,58,.78)!important;
  border:1px solid rgba(148,163,184,.14)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.22)!important;
}

.card h3{
  font-size:18px!important;
}

table th{
  color:#93c5fd!important;
  font-size:12px!important;
  text-transform:uppercase!important;
}

table td{
  font-size:14px!important;
}

.master-v5-extra{
  display:grid;
  grid-template-columns:1fr 1.25fr 1.4fr;
  gap:16px;
  margin:18px 0;
}

.master-v5-card{
  background:rgba(15,23,42,.78);
  border:1px solid rgba(148,163,184,.16);
  border-radius:20px;
  padding:20px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.master-v5-card h3{
  margin:0 0 16px;
  color:#fff;
  font-size:18px;
}

.meta-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.meta-line small,
.finance-grid small{
  display:block;
  color:#94a3b8;
  font-weight:900;
  margin-bottom:6px;
}

.meta-line strong,
.finance-grid strong{
  display:block;
  color:#fff;
  font-size:26px;
}

.meta-line span{
  color:#cbd5e1;
  font-size:13px;
}

.meta-circle{
  width:68px;
  height:68px;
  min-width:68px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:white;
  font-weight:950;
  box-shadow:0 16px 35px rgba(37,99,235,.30);
}

.master-progress{
  height:9px;
  border-radius:999px;
  background:rgba(148,163,184,.18);
  overflow:hidden;
  margin-top:16px;
}

.master-progress i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#22c55e);
}

.finance-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.finance-grid div,
.perf-grid div{
  background:rgba(2,6,23,.35);
  border-radius:16px;
  padding:14px;
}

.perf-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.perf-grid strong{
  display:block;
  font-size:24px;
  color:#fff;
}

.perf-grid span{
  color:#94a3b8;
  font-size:12px;
  font-weight:900;
}

.ultimos-compacto-card{
  max-height:380px!important;
  overflow:auto!important;
}

.ultimo-item{
  padding:11px 12px!important;
}

.dash-footer-premium{
  text-align:center!important;
  color:#94a3b8!important;
  margin:22px 0 8px!important;
  padding:14px!important;
}

@media(max-width:1500px){
  .dash-v4-kpis{grid-template-columns:repeat(4,1fr)!important}
  .master-v5-extra{grid-template-columns:1fr!important}
  .dash-v4-grid{grid-template-columns:1fr!important}
  .dash-v4-bottom{grid-template-columns:1fr!important}
}

@media(max-width:750px){
  .dash-v4-kpis{grid-template-columns:1fr!important}
  .finance-grid,.perf-grid{grid-template-columns:1fr!important}
}

/* ===== AGENDA COMERCIAL UNIVERSAL ===== */
.agenda-kpis{
  margin-bottom:18px!important;
}

.agenda-card h3{
  margin-bottom:16px!important;
}

.agenda-lista{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.agenda-item{
  display:grid;
  grid-template-columns:130px 1fr 210px 260px;
  gap:14px;
  align-items:center;
  padding:15px;
  border-radius:18px;
  background:rgba(15,23,42,.58);
  border:1px solid rgba(148,163,184,.12);
}

.agenda-item.atrasado{
  border-color:rgba(239,68,68,.35);
}

.agenda-item.hoje{
  border-color:rgba(34,197,94,.35);
}

.agenda-data b{
  display:block;
  color:#fff;
  font-size:16px;
}

.agenda-data span{
  display:inline-block;
  margin-top:5px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(59,130,246,.18);
  color:#bfdbfe;
  font-size:12px;
  font-weight:900;
}

.agenda-info b{
  display:block;
  color:white;
  font-size:16px;
}

.agenda-info span,
.agenda-info small{
  display:block;
  color:#94a3b8;
  margin-top:3px;
}

.agenda-vendedor b{
  display:block;
  margin-bottom:8px;
  color:#fff;
}

.agenda-acoes{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}

.agenda-acoes form{
  display:flex;
  gap:8px;
}

.agenda-acoes select{
  max-width:145px;
}

.btn.whats{
  background:#16a34a!important;
  color:white!important;
}

.agenda-vazia{
  padding:24px;
  border-radius:18px;
  background:rgba(34,197,94,.12);
  color:#bbf7d0;
  font-weight:900;
}

@media(max-width:1200px){
  .agenda-item{
    grid-template-columns:1fr;
  }
  .agenda-acoes{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

/* ===== GNS UPGRADE V6 ===== */
.comparativo-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:18px;
}

.compare-card{
  min-height:150px;
}

.compare-card h3{
  margin:0 0 10px;
}

.compare-card strong{
  display:block;
  color:#fff;
  font-size:26px;
  margin-bottom:10px;
}

.compare-numbers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.compare-numbers div{
  background:rgba(2,6,23,.35);
  padding:12px;
  border-radius:14px;
}

.compare-numbers b{
  display:block;
  color:#fff;
  font-size:18px;
}

.compare-numbers span,
.compare-card span{
  color:#94a3b8;
  font-size:12px;
  font-weight:800;
}

.compare-card.destaque{
  background:linear-gradient(135deg,rgba(37,99,235,.35),rgba(15,23,42,.78))!important;
}

.card input[type="file"]{
  width:100%;
  padding:14px;
  border-radius:14px;
  background:rgba(15,23,42,.75);
  color:white;
  border:1px solid rgba(148,163,184,.25);
  margin-bottom:14px;
}

@media(max-width:1200px){
  .comparativo-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:700px){
  .comparativo-grid{
    grid-template-columns:1fr;
  }
}

/* ===== COMPARATIVO V2 ===== */
.cmp-filter form{
  display:grid;
  grid-template-columns:1fr 1fr 120px;
  gap:18px;
  align-items:end;
}

.cmp-filter label{
  display:block;
  color:#dbeafe;
  font-weight:900;
  margin-bottom:8px;
}

.cmp-filter input{
  width:100%;
  margin-bottom:8px;
}

.cmp-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:18px 0;
}

.cmp-box p{
  color:#cbd5e1;
  font-weight:800;
}

.cmp-kpis{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:14px;
}

.cmp-kpi{
  background:rgba(15,23,42,.62);
  border:1px solid rgba(148,163,184,.12);
  border-radius:16px;
  padding:16px;
  min-height:88px;
}

.cmp-kpi small{
  display:block;
  color:#bfdbfe;
  text-transform:uppercase;
  font-weight:950;
  margin-bottom:8px;
}

.cmp-kpi strong{
  display:block;
  color:white;
  font-size:24px;
}

.cmp-kpi.green{
  background:rgba(22,163,74,.16);
}

.cmp-result table{
  width:100%;
}

.cmp-diff{
  display:inline-block;
  padding:7px 11px;
  border-radius:999px;
  font-weight:950;
}

.cmp-diff.up{
  color:#bbf7d0;
  background:rgba(34,197,94,.16);
}

.cmp-diff.down{
  color:#fecaca;
  background:rgba(239,68,68,.18);
}

@media(max-width:1200px){
  .cmp-filter form,
  .cmp-grid{
    grid-template-columns:1fr;
  }

  .cmp-kpis{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ===== DASHBOARD AUTO REFRESH 15S ===== */
.dashboard-sync-status{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(15,23,42,.92);
  color:#dbeafe;
  border:1px solid rgba(96,165,250,.35);
  box-shadow:0 12px 35px rgba(0,0,0,.35);
  font-size:13px;
  font-weight:900;
}
