:root{
  --bg:#04110d;
  --side:#061b14;
  --card:#0d3326;
  --card2:#071b14;
  --line:#245543;
  --green:#21d477;
  --green2:#10b965;
  --text:#ffffff;
  --muted:#9ccab7;
  --danger:#ff4f6d;
  --warn:#ffd166;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
}

body{
  overflow-x:hidden;
}

/* LAYOUT */
.app{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:250px;
  min-width:250px;
  height:100vh;
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  overflow-y:auto;
  background:var(--side);
  border-right:1px solid var(--line);
  padding:18px 12px;
  z-index:10;
}

.main{
  margin-left:250px;
  width:calc(100% - 250px);
  min-height:100vh;
  background:linear-gradient(180deg,#082218,#03100c);
}

.content{
  padding:26px 32px 70px;
}

/* LOGO */
.brand{
  text-align:center;
  margin-bottom:24px;
}

.brand-logo,
.logo,
.brand img{
  width:78px;
  height:78px;
  border-radius:20px;
  object-fit:cover;
  display:inline-block;
}

.brand h2{
  margin:10px 0 4px;
  font-size:23px;
  line-height:1.1;
}

.brand span{
  color:var(--green);
}

.brand p,
.brand small{
  color:var(--muted);
  margin:0;
}

/* MENU */
.nav,
.menu{
  display:block;
}

.nav a,
.menu a{
  display:block;
  width:100%;
  color:#e8fff5;
  text-decoration:none;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:6px;
  font-weight:700;
  font-size:14px;
}

.nav a:hover,
.menu a:hover,
.nav a.active,
.menu a.active{
  background:var(--green);
  color:#02110b;
}

.nav-title,
.menu p{
  color:#75a994;
  text-transform:uppercase;
  font-size:11px;
  margin:18px 10px 8px;
}

.logout,
.support{
  cursor:pointer;
}

/* TOPO */
.topbar{
  min-height:105px;
  display:grid;
  grid-template-columns:1fr 330px auto;
  align-items:center;
  gap:20px;
  padding:22px 32px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.topbar h1{
  margin:0;
  font-size:28px;
  line-height:1.1;
}

.topbar span,
.topbar p{
  color:var(--muted);
  font-size:14px;
  margin:6px 0 0;
}

.search{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  background:#061b14;
  color:#fff;
  border-radius:12px;
  padding:0 14px;
}

.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.userbox small,
.positive{
  color:var(--green);
}

.avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#0e3829;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--green);
}

/* CARDS */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  margin-bottom:18px;
}

.card h2,
.card h3{
  margin-top:0;
}

.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:18px;
}

.stats-grid .card strong{
  display:block;
  font-size:28px;
  color:var(--green);
  margin-top:10px;
}

/* FORMULÁRIOS */
input,
select,
textarea{
  width:100%;
  background:#061b14;
  color:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  margin-bottom:10px;
  outline:none;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--green);
}

label{
  display:block;
  margin:8px 0 6px;
  font-weight:700;
}

.check-line{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
}

.check-line input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
}

/* BOTÕES */
.btn,
button{
  display:inline-block;
  background:var(--green);
  color:#02110b;
  border:none;
  border-radius:12px;
  padding:10px 15px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}

.btn:hover,
button:hover{
  filter:brightness(1.08);
}

.btn.outline,
.btn-outline,
.outline{
  background:transparent;
  color:#fff;
  border:1px solid var(--green);
}

.btn.danger,
.danger{
  background:var(--danger);
  color:#fff;
}

.btn.secondary,
.secondary{
  background:#164836;
  color:#fff;
}

.product-actions,
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

/* BADGES */
.pill,
.product-badge,
.badge{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#08251b;
  border:1px solid var(--line);
  font-size:12px;
  color:#dffff0;
}

.copybox{
  background:#061b14;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  white-space:pre-wrap;
  overflow:auto;
}

/* TABELAS */
.table{
  width:100%;
  border-collapse:collapse;
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
}

.table th,
.table td{
  padding:12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

.table th{
  color:var(--green);
}

/* GRIDS MÓDULOS */
.crm-kanban,
.product-grid,
.catalog-grid,
.contacts-grid,
.messages-grid,
.campaigns-grid,
.connections-grid{
  display:grid;
  gap:16px;
  margin-top:16px;
}

.crm-kanban{
  grid-template-columns:repeat(4,minmax(220px,1fr));
}

.product-grid,
.catalog-grid,
.contacts-grid,
.messages-grid{
  grid-template-columns:repeat(3,minmax(220px,1fr));
}

.connections-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.campaigns-grid{
  grid-template-columns:1fr;
}

/* CRM */
.crm-form-grid,
.product-form-grid,
.catalog-filter,
.send-product-layout,
.message-editor-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.crm-form-grid textarea,
.product-form-grid textarea{
  grid-column:1/-1;
}

.crm-column{
  background:#07131a;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  min-height:260px;
}

.crm-column h3{
  color:var(--green);
  border-bottom:1px solid var(--line);
  padding-bottom:8px;
}

.crm-client-card,
.client-card,
.message-card,
.product-card,
.catalog-card,
.contact-card,
.campaign-card,
.connection-card{
  background:#102c22;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  overflow:hidden;
}

.crm-client-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}

/* PRODUTOS / CATÁLOGO */
.product-img,
.catalog-img,
.send-product-img{
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:14px;
  background:#08131b;
  border:1px solid var(--line);
  display:block;
}

.product-placeholder,
.catalog-placeholder,
.send-product-placeholder{
  height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  background:#08131b;
  border-radius:14px;
}

.old-price{
  text-decoration:line-through;
  color:#aaa;
}

.promo-price{
  color:var(--green);
  font-size:18px;
  font-weight:800;
}

/* CONEXÕES */
.connection-card{
  min-height:260px;
}

.channel-inline{
  display:flex;
  align-items:center;
  gap:8px;
}

.channel-icon,
.conn-icon,
.channel-logo-preview{
  width:34px;
  height:34px;
  min-width:34px;
  max-width:34px;
  min-height:34px;
  max-height:34px;
  object-fit:contain;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.channel-icon img,
.conn-icon img,
.channel-logo-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* DISPAROS */
.progress-wrap{
  width:100%;
  height:14px;
  background:#07131a;
  border:1px solid var(--line);
  border-radius:30px;
  overflow:hidden;
  margin:10px 0;
}

.progress-bar{
  height:100%;
  background:var(--green);
  border-radius:30px;
}

.queue-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}

.queue-item{
  background:#07131a;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}

.empty-card{
  border:1px dashed var(--line);
  border-radius:14px;
  padding:14px;
  color:var(--muted);
  text-align:center;
}

/* FLUXOS / MENSAGENS */
.message-preview{
  min-height:220px;
  white-space:pre-wrap;
}

.quick-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:10px 0;
}

/* RESPONSIVO */
@media(max-width:1100px){
  .stats-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .product-grid,
  .catalog-grid,
  .contacts-grid,
  .messages-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .crm-kanban{
    grid-template-columns:repeat(2,1fr);
  }

  .topbar{
    grid-template-columns:1fr;
    height:auto;
  }
}

@media(max-width:800px){
  .app{
    display:block;
  }

  .sidebar{
    position:relative;
    width:100%;
    min-width:100%;
    height:auto;
  }

  .main{
    margin-left:0;
    width:100%;
  }

  .content{
    padding:16px;
  }

  .grid,
  .stats-grid,
  .crm-kanban,
  .product-grid,
  .catalog-grid,
  .contacts-grid,
  .messages-grid,
  .queue-list,
  .crm-form-grid,
  .product-form-grid,
  .catalog-filter,
  .send-product-layout,
  .message-editor-grid{
    grid-template-columns:1fr;
  }
}
/* Dashboard 6.0 */
.dashboard-bars{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.dashboard-bars div{
  background:#061b14;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
}

.dashboard-bars span{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-weight:700;
}

.dashboard-bars b{
  display:block;
  height:12px;
  background:var(--green);
  border-radius:20px;
  min-width:6%;
}

.channel-status-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.channel-status-card{
  background:#061b14;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}

.pill-on{
  background:var(--green);
  color:#02110b;
}

.module-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.module-card{
  display:block;
  background:#061b14;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  color:#fff;
  text-decoration:none;
}

.module-card:hover{
  border-color:var(--green);
}

.plan-title{
  color:var(--green);
  margin:8px 0;
}

.quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.muted{
  color:var(--muted);
}

@media(max-width:800px){
  .channel-status-grid,
  .module-grid{
    grid-template-columns:1fr;
  }
}
/* ===== Financeiro 6.0 ===== */

.plan-card{
    text-align:center;
}

.plan-card h2{
    margin-bottom:10px;
}

.plan-title{
    color:#22d36e;
    font-size:36px;
    margin:10px 0;
}

.plan-card p{
    margin-bottom:15px;
    color:var(--muted);
}

.plan-card select{
    margin-bottom:10px;
}

.copybox{
    background:#071b14;
    border:1px solid var(--line);
    border-radius:12px;
    padding:15px;
    margin:15px 0;
    word-break:break-all;
    font-size:14px;
}

.pill{
    display:inline-block;
    padding:6px 12px;
    border-radius:20px;
    background:#22d36e;
    color:#02110b;
    font-weight:bold;
    font-size:12px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:20px;
}

.stats-grid .card{
    text-align:center;
}

.stats-grid strong{
    display:block;
    font-size:30px;
    margin:10px 0;
    color:#22d36e;
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin:20px 0;
}

@media(max-width:1000px){
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:700px){
    .stats-grid{
        grid-template-columns:1fr;
    }
}
/* Atendimento Automático Multicanal */
.atendimento-grid{
  grid-template-columns:1.2fr .8fr;
}

.channel-checks{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin:8px 0 14px;
}

.channel-checks label{
  background:#061b14;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}

.channel-checks input{
  width:auto;
  margin-right:6px;
}

.chat-preview{
  margin-top:18px;
  background:#061b14;
  border:1px solid var(--line);
  border-radius:16px;
  padding:15px;
  min-height:260px;
}

.chat-bubble{
  max-width:85%;
  padding:12px;
  border-radius:16px;
  margin-bottom:12px;
  white-space:pre-wrap;
}

.chat-bubble.client{
  background:#164836;
  margin-left:auto;
}

.chat-bubble.bot{
  background:#0d3326;
  border:1px solid var(--line);
}

.flow-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.flow-card{
  background:#102c22;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}

.flow-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

@media(max-width:900px){
  .atendimento-grid,
  .flow-list,
  .channel-checks{
    grid-template-columns:1fr;
  }
}
/* Relatórios Profissional */

.stats-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:16px;
margin-bottom:20px;
}

.stat-card{
text-align:center;
}

.big-number{
font-size:42px;
font-weight:bold;
color:var(--green);
margin:10px 0;
}

@media(max-width:1000px){
.stats-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:700px){
.stats-grid{
grid-template-columns:1fr;
}
}
.login{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#00130c,#06281a);
    padding:30px;
}

.login .box{
    width:100%;
    max-width:430px;
    background:#061b14;
    border:1px solid #174634;
    border-radius:18px;
    padding:35px;
    text-align:center;
}

.login .logo img{
    width:110px;
    height:110px;
    object-fit:contain;
    display:block;
    margin:0 auto 28px;
}

.login h1{
    margin-top:0;
    font-size:30px;
}

.login h1{
    margin:10px 0;
    color:#fff;
}

.login p{
    color:#9cb8ab;
}

.login input{
    margin-top:12px;
}

.login .btn{
    width:100%;
    margin-top:15px;
}
/* LANDING / PLANOS */
.landing{
  min-height:100vh;
  background:linear-gradient(135deg,#00130c,#06281a);
  padding:40px 20px;
}

.landing-hero{
  max-width:1050px;
  margin:0 auto 30px;
  text-align:center;
}

.landing-hero .logo img{
  width:120px;
  height:120px;
  object-fit:contain;
  margin-bottom:18px;
}

.landing-hero h1{
  font-size:38px;
  margin-bottom:10px;
}

.landing-hero p{
  color:#9cb8ab;
  font-size:16px;
}

.plans{
  max-width:1050px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.plan-card{
  background:#061b14;
  border:1px solid #174634;
  border-radius:18px;
  padding:26px;
  text-align:center;
}

.plan-card h2{
  font-size:24px;
  margin-bottom:10px;
}

.plan-card .price{
  font-size:34px;
  color:#21d477;
  font-weight:800;
  margin:15px 0;
}

.plan-card p{
  color:#9cb8ab;
  line-height:1.6;
}

.how{
  max-width:1050px;
  margin:22px auto 0;
  background:#061b14;
  border:1px solid #174634;
  border-radius:18px;
  padding:24px;
}

.footer{
  text-align:center;
  margin-top:30px;
  color:#9cb8ab;
}

@media(max-width:800px){
  .plans{
    grid-template-columns:1fr;
  }
}
.register{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#00120d,#052419);
    padding:30px;
}

.register-card{
    width:100%;
    max-width:520px;
    background:#061b14;
    border:1px solid #174634;
    border-radius:20px;
    padding:35px;
    text-align:center;
}

.register-card img{
    width:110px;
    margin-bottom:20px;
}

.register-card h1{
    margin:10px 0;
    font-size:36px;
}

.register-card p{
    color:#9cb8ab;
    margin-bottom:20px;
}

.register-card .btn{
    width:100%;
    margin-top:10px;
}
.login a{
    color:#7dffb2;
    font-weight:bold;
    text-decoration:none;
}

.login a:hover{
    color:#ffffff;
}