/* =========================================================
   Resultados · Millene Torres — paleta marrom, bege, nude, off-white
   ========================================================= */
:root {
  --fundo: #F6F1EA;          /* off-white quente */
  --fundo-2: #EFE6DA;        /* bege claro */
  --cartao: #FFFCF8;
  --borda: rgba(74, 52, 38, 0.10);
  --borda-forte: rgba(74, 52, 38, 0.20);
  --texto: #2E221A;          /* café */
  --texto-2: #6E5A4B;
  --texto-3: #9C8878;
  --espresso: #3B2A1F;
  --marrom: #6B4A35;
  --caramelo: #B08360;
  --nude: #DDBBA4;
  --nude-claro: #F4E5DA;
  --bege: #E7D8C3;
  --areia: #CDB79E;
  --bom: #5E7A55;  --bom-fundo: #E6ECDF;
  --ruim: #A8513C; --ruim-fundo: #F5E1D8;
  /* cores por assunto */
  --c-res: #B08360;  --c-res-fundo: #F5EADF;   /* resultados: caramelo */
  --c-custo: #B9826E; --c-custo-fundo: #F7E7DF; /* custos: nude rosado */
  --c-alc: #8C7A5B;  --c-alc-fundo: #EEE8DA;   /* alcance: areia/oliva */
  --degrade: linear-gradient(135deg, #3B2A1F 0%, #7A5640 55%, #C9A27F 100%);
  --sombra: 0 1px 2px rgba(59, 42, 31, 0.04), 0 12px 32px rgba(59, 42, 31, 0.08);
  --sombra-forte: 0 24px 60px rgba(59, 42, 31, 0.18);
  --raio: 22px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  background-image:
    radial-gradient(1100px 520px at 100% -10%, rgba(221, 187, 164, 0.45), transparent 60%),
    radial-gradient(800px 500px at -10% 105%, rgba(205, 183, 158, 0.35), transparent 60%);
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--marrom); }
[hidden] { display: none !important; }
.serif { font-family: var(--serif); }

/* ---------- Logo ---------- */
.logo {
  width: 42px; height: 42px; border-radius: 13px; background: var(--degrade);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 19px;
  color: #FBF4EC; letter-spacing: 0.02em; flex: none; box-shadow: 0 6px 18px rgba(59, 42, 31, 0.28);
}
.logo-g { width: 78px; height: 78px; border-radius: 24px; font-size: 34px; }
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marca-nome { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.1; white-space: nowrap; }
.marca-sub { font-size: 11.5px; color: var(--texto-3); white-space: nowrap; letter-spacing: 0.04em; text-transform: uppercase; }

.carregando-tela { min-height: 100vh; display: grid; place-items: center; }
.carregando-tela .logo { animation: pulsar 1.4s ease-in-out infinite; }
@keyframes pulsar { 50% { transform: scale(0.94); opacity: 0.7; } }

/* ---------- Login ---------- */
.login-tela { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-cartao {
  width: 100%; max-width: 420px; background: rgba(255, 252, 248, 0.86); backdrop-filter: blur(16px);
  border: 1px solid var(--borda); border-radius: 30px; padding: 40px 28px 30px; box-shadow: var(--sombra-forte);
}
.login-topo { text-align: center; margin-bottom: 26px; }
.login-topo .logo { margin: 0 auto 20px; }
.login-topo h1 { font-size: 34px; line-height: 1.1; }
.login-topo p { color: var(--texto-3); margin: 8px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo label { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.campo small { color: var(--texto-3); font-size: 12px; }
.entrada {
  width: 100%; background: #FFFFFF; border: 1px solid var(--borda-forte); border-radius: 14px;
  padding: 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.entrada:focus { border-color: var(--caramelo); box-shadow: 0 0 0 4px rgba(176, 131, 96, 0.18); }
textarea.entrada { min-height: 110px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; }
.erro-msg { color: var(--ruim); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.rodape-login { text-align: center; color: var(--texto-3); font-size: 12.5px; margin-top: 20px; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--texto-3); font-size: 12px; margin: 16px 0; text-transform: uppercase; letter-spacing: .08em; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--borda-forte); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--borda-forte); background: var(--cartao); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap; text-decoration: none; color: var(--texto);
}
.btn:hover { background: #fff; box-shadow: var(--sombra); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-principal { background: var(--espresso); border-color: var(--espresso); color: #FBF4EC; box-shadow: 0 10px 24px rgba(59, 42, 31, 0.25); }
.btn-principal:hover { background: #4A3627; }
.btn-dourado { background: var(--degrade); border: 0; color: #FBF4EC; }
.btn-largo { width: 100%; padding: 15px 18px; font-size: 15.5px; }
.btn-pequeno { padding: 7px 14px; font-size: 13px; }
.btn-perigo { color: var(--ruim); }
.btn-icone { padding: 0; width: 42px; height: 42px; font-size: 18px; }
.btn-bio { gap: 10px; }
.btn-bio svg { width: 22px; height: 22px; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 234, 0.82); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--borda);
}
.topo-in {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.abas { display: flex; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 0 16px 10px; overflow-x: auto; }
.aba { border: 1px solid transparent; background: none; color: var(--texto-2); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.aba.ativa { background: var(--espresso); color: #FBF4EC; }

main { max-width: 1180px; margin: 0 auto; padding: 22px 16px max(60px, calc(env(safe-area-inset-bottom) + 40px)); }

/* ---------- Boas-vindas + resumo ---------- */
.boas-vindas { margin: 6px 0 18px; }
.saudacao { color: var(--texto-3); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.boas-vindas h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.02; margin-top: 4px; }
.resumo-frase {
  margin-top: 16px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 18px 20px; box-shadow: var(--sombra); font-size: 16px; line-height: 1.55; color: var(--texto-2);
  display: flex; gap: 14px; align-items: flex-start;
}
.resumo-frase b { color: var(--texto); font-weight: 700; }
.resumo-frase .selo-status { flex: none; }
.selo-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.selo-status.bom { background: var(--bom-fundo); color: var(--bom); }
.selo-status.ruim { background: var(--ruim-fundo); color: var(--ruim); }
.selo-status.neutro { background: var(--fundo-2); color: var(--texto-2); }

/* ---------- Períodos ---------- */
.periodos { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 8px; scrollbar-width: none; }
.periodos::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--borda-forte); background: var(--cartao); color: var(--texto-2);
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--caramelo); color: var(--texto); }
.chip.ativo { background: var(--espresso); border-color: var(--espresso); color: #FBF4EC; box-shadow: 0 8px 18px rgba(59, 42, 31, 0.22); }
.chip-cal { display: inline-flex; gap: 6px; align-items: center; }
.info-periodo { color: var(--texto-3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-bottom: 18px; }
.ponto-vivo { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bom); margin-right: 6px; box-shadow: 0 0 0 4px rgba(94, 122, 85, 0.16); }
.aviso { background: var(--nude-claro); border: 1px solid var(--nude); color: var(--marrom); padding: 12px 16px; border-radius: 16px; margin-bottom: 18px; font-size: 14px; }

/* ---------- Investimento (cartão escuro) ---------- */
.cartao-invest {
  position: relative; overflow: hidden; background: var(--degrade); color: #FBF4EC; border-radius: 28px;
  padding: 22px 22px 18px; box-shadow: 0 20px 44px rgba(59, 42, 31, 0.28); margin-bottom: 18px; cursor: pointer;
}
.cartao-invest::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 225, 0.18), transparent 70%); }
.cartao-invest .rot { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.cartao-invest .val { font-family: var(--serif); font-size: clamp(42px, 9vw, 60px); font-weight: 600; line-height: 1.05; margin: 6px 0 8px; }
.cartao-invest .linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; opacity: .92; }
.cartao-invest .faisca { position: absolute; right: 18px; top: 22px; width: 42%; max-width: 260px; height: 64px; opacity: .9; }
.var-clara { background: rgba(255, 255, 255, 0.16); padding: 4px 10px; border-radius: 999px; font-weight: 700; }

/* ---------- Grupos de métricas ---------- */
.grupo { margin-bottom: 20px; }
.grupo-cab { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.grupo-cab .bolinha { width: 10px; height: 10px; border-radius: 50%; }
.grupo-cab h2 { font-size: 24px; }
.grupo-cab span { color: var(--texto-3); font-size: 13px; margin-left: auto; }
.grade { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrica {
  position: relative; text-align: left; border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 16px 14px;
  background: var(--cartao); box-shadow: var(--sombra); cursor: pointer; transition: transform .15s, box-shadow .15s; min-width: 0; overflow: hidden;
}
.metrica:hover { transform: translateY(-2px); box-shadow: var(--sombra-forte); }
.metrica:active { transform: scale(0.98); }
.metrica::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cor, var(--caramelo)); opacity: .85; }
.metrica { background: linear-gradient(170deg, var(--cor-fundo, #fff) 0%, var(--cartao) 70%); }
.m-res { --cor: var(--c-res); --cor-fundo: var(--c-res-fundo); }
.m-custo { --cor: var(--c-custo); --cor-fundo: var(--c-custo-fundo); }
.m-alc { --cor: var(--c-alc); --cor-fundo: var(--c-alc-fundo); }
.m-rot { font-size: 13px; color: var(--texto-2); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-rot .seta { color: var(--texto-3); font-size: 16px; }
.m-val { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; margin: 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-faisca { width: 70px; height: 26px; flex: none; }
.variacao { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.variacao.bom { color: var(--bom); background: var(--bom-fundo); }
.variacao.ruim { color: var(--ruim); background: var(--ruim-fundo); }
.variacao.neutro { color: var(--texto-2); background: var(--fundo-2); }

/* ---------- Painéis ---------- */
.painel { background: var(--cartao); border: 1px solid var(--borda); border-radius: 26px; padding: 22px; box-shadow: var(--sombra); margin-bottom: 18px; min-width: 0; }
.painel-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.painel h2 { font-size: 26px; line-height: 1.1; }
.painel .desc { color: var(--texto-3); font-size: 13.5px; margin-top: 4px; }
.grafico { position: relative; height: 300px; }
.vazio { color: var(--texto-3); font-size: 14px; padding: 26px 0; text-align: center; }
.duas-colunas { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }

/* Anúncios em destaque */
.anuncios { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.anuncio { scroll-snap-align: start; background: #fff; border: 1px solid var(--borda); border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .15s, box-shadow .15s; }
.anuncio:hover { transform: translateY(-3px); box-shadow: var(--sombra-forte); }
.anuncio-img { position: relative; aspect-ratio: 4 / 3; background: var(--fundo-2) center / cover no-repeat; }
.anuncio-img.sem { background: linear-gradient(140deg, var(--bege), var(--nude)); display: grid; place-items: center; font-family: var(--serif); font-size: 44px; color: var(--marrom); }
.medalha { position: absolute; left: 12px; top: 12px; background: rgba(255, 252, 248, .92); color: var(--espresso); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.medalha.ouro { background: var(--degrade); color: #FBF4EC; }
.anuncio-corpo { padding: 14px 16px 16px; }
.anuncio-nome { font-weight: 600; font-size: 14px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anuncio-val { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; margin: 4px 0; }
.anuncio-val small { font-family: var(--sans); font-size: 13px; color: var(--texto-3); font-weight: 600; }
.anuncio-meta { display: flex; gap: 12px; color: var(--texto-3); font-size: 12.5px; flex-wrap: wrap; }
.anuncio-meta b { color: var(--texto-2); }

/* Construtor de gráficos */
.construtor { display: grid; gap: 12px; margin-bottom: 14px; }
.chips-metricas { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-m { border: 1px solid var(--borda-forte); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--texto-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip-m i { width: 8px; height: 8px; border-radius: 50%; background: var(--cor, var(--areia)); }
.chip-m.ativo { background: var(--espresso); color: #FBF4EC; border-color: var(--espresso); }
.segmentado { display: inline-flex; background: var(--fundo-2); border-radius: 999px; padding: 4px; gap: 2px; }
.segmentado button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--texto-2); cursor: pointer; }
.segmentado button.ativo { background: #fff; color: var(--texto); box-shadow: 0 2px 8px rgba(59, 42, 31, .12); }
.linha-controles { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.leitura { background: var(--fundo); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--texto-2); margin-top: 12px; }
.leitura b { color: var(--texto); }

/* Posicionamentos */
.lista-barras { display: grid; gap: 12px; }
.lb-nome { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.lb-nome span:last-child { color: var(--texto-3); font-size: 13px; }
.lb-barra { height: 8px; background: var(--fundo-2); border-radius: 99px; overflow: hidden; }
.lb-barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--marrom), var(--caramelo)); }

.selo { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.selo.ok { background: var(--bom-fundo); color: var(--bom); }
.selo.pausa { background: var(--ruim-fundo); color: var(--ruim); }
.selo.adm { background: var(--bege); color: var(--marrom); }

.rodape { color: var(--texto-3); font-size: 12.5px; text-align: center; margin-top: 30px; line-height: 1.7; }
.rodape b { color: var(--texto-2); }
.cadeado { display: inline-flex; align-items: center; gap: 6px; background: var(--fundo-2); padding: 6px 12px; border-radius: 999px; color: var(--texto-2); font-weight: 600; margin-bottom: 8px; }

.esqueleto { background: linear-gradient(90deg, var(--fundo-2) 0%, #F7F0E7 50%, var(--fundo-2) 100%); background-size: 200% 100%; animation: brilho 1.3s infinite; border-radius: var(--raio); }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- Folha (bottom sheet) e modal ---------- */
.modal-fundo { position: fixed; inset: 0; background: rgba(46, 34, 26, 0.42); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 16px; animation: aparecer .2s ease; }
.modal { width: 100%; max-width: 500px; background: var(--cartao); border: 1px solid var(--borda); border-radius: 28px; padding: 26px; box-shadow: var(--sombra-forte); max-height: calc(100vh - 32px); overflow: auto; animation: subir .28s cubic-bezier(.2, .8, .2, 1); }
.modal h2 { font-size: 28px; margin-bottom: 8px; line-height: 1.1; }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.desc-modal { color: var(--texto-2); font-size: 14.5px; margin: 0 0 12px; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 720px) {
  .modal-fundo { place-items: end center; padding: 0; }
  .modal { border-radius: 28px 28px 0 0; max-width: none; padding: 22px 20px max(22px, env(safe-area-inset-bottom)); max-height: 92vh; }
  .modal::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--borda-forte); margin: -8px auto 16px; }
}
.modal-app { text-align: center; }
.modal-app .logo, .modal-app img { margin: 0 auto 14px; border-radius: 20px; }
.passos { color: var(--texto-2); font-size: 15px; line-height: 1.55; padding-left: 22px; margin: 14px 0 16px; }
.passos li { margin-bottom: 10px; }
.icone-bio { width: 64px; height: 64px; border-radius: 20px; background: var(--fundo-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--marrom); }
.icone-bio svg { width: 34px; height: 34px; }
.datas-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detalhe-val { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; margin: 4px 0 10px; }
.menu-lista { display: grid; gap: 8px; margin-top: 6px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--borda); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.menu-item:hover { background: var(--fundo); }
.menu-item .mi-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--fundo-2); display: grid; place-items: center; color: var(--marrom); flex: none; }
.menu-item .mi-ic svg { width: 20px; height: 20px; }
.menu-item b { display: block; font-size: 15px; }
.menu-item span { font-size: 13px; color: var(--texto-3); }

#toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; transition: .25s; z-index: 60;
  background: var(--espresso); color: #FBF4EC; padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--sombra-forte); max-width: calc(100vw - 32px); text-align: center;
}
#toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.admin-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-cab h1 { font-size: 40px; }
.admin-cab p { color: var(--texto-2); margin: 4px 0 0; font-size: 14px; }
.lista-clientes { display: grid; gap: 10px; }
.cli { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) auto auto; gap: 14px; align-items: center; background: var(--cartao); border: 1px solid var(--borda); border-radius: 20px; padding: 16px 18px; box-shadow: var(--sombra); }
.cli-nome { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.15; }
.cli-sub { color: var(--texto-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.estado-token { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--fundo); border: 1px solid var(--borda); margin-bottom: 18px; flex-wrap: wrap; }
code { background: var(--fundo-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.linha-senha { display: flex; gap: 8px; }
.grade-admin { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duas-colunas, .grade-admin { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .grade, .grade.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grade.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grade.g3 .metrica:first-child { grid-column: span 2; }
  .metrica { padding: 14px 14px 12px; border-radius: 20px; }
  .m-val { font-size: 29px; }
  .m-faisca { width: 54px; }
  .painel { padding: 18px 16px; border-radius: 24px; }
  .painel h2 { font-size: 24px; }
  .grafico { height: 250px; }
  .marca-texto { display: none; }
  .cli { grid-template-columns: 1fr; gap: 8px; }
  .cli-acoes { justify-content: flex-start; }
  .login-cartao { padding: 32px 20px 24px; border-radius: 28px; }
  .resumo-frase { flex-direction: column; gap: 10px; padding: 16px; font-size: 15.5px; }
  .cartao-invest .faisca { width: 38%; top: 20px; height: 50px; }
}
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; }
  .entrada, textarea { -webkit-user-select: text; user-select: text; }
}
@media (max-width: 720px) {
  .chips-metricas { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chips-metricas::-webkit-scrollbar { display: none; }
  .chip-m { flex: none; }
}

/* ---------- Vendas e CAC ---------- */
:root { --c-venda: #6F7F5A; --c-venda-fundo: #ECEEE2; }
.m-venda { --cor: var(--c-venda); --cor-fundo: var(--c-venda-fundo); }
.cobertura { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--texto-3); font-size: 13px; margin-top: 10px; padding: 0 2px; }
.cobertura b { color: var(--texto-2); }
.convite-vendas { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: linear-gradient(160deg, var(--c-venda-fundo), var(--cartao) 70%); }
.convite-vendas h2 { font-size: 24px; }
.cv-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--c-venda); color: #FBF4EC; display: grid; place-items: center; font-size: 24px; }
.dias-rapidos { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.dias-rapidos::-webkit-scrollbar { display: none; }
.dia-rap { flex: none; display: grid; gap: 2px; text-align: center; min-width: 76px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--borda-forte); background: #fff; cursor: pointer; }
.dia-rap span { font-size: 12px; color: var(--texto-3); font-weight: 600; text-transform: capitalize; }
.dia-rap b { font-family: var(--serif); font-size: 22px; line-height: 1; }
.dia-rap.ativo { background: var(--espresso); border-color: var(--espresso); }
.dia-rap.ativo span, .dia-rap.ativo b { color: #FBF4EC; }
.contador { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 4px; }
.cont-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--borda-forte); background: #fff; font-size: 26px; cursor: pointer; color: var(--texto); }
.cont-btn:active { transform: scale(0.94); }
.cont-num { width: 140px; text-align: center; font-family: var(--serif); font-size: 64px; font-weight: 600; border: 0; background: none; outline: none; -moz-appearance: textfield; color: var(--texto); }
.cont-num::-webkit-outer-spin-button, .cont-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--espresso); color: #FBF4EC; font-weight: 700; font-size: 15px; box-shadow: 0 14px 30px rgba(59, 42, 31, 0.35);
}
.fab span { font-size: 20px; line-height: 1; }
.fab:active { transform: scale(0.96); }
@media (max-width: 720px) {
  .convite-vendas { grid-template-columns: auto 1fr; }
  .convite-vendas .btn { grid-column: 1 / -1; }
}

/* ---------- ROAS mensal ---------- */
:root { --c-roas: #3B2A1F; --c-roas-fundo: #EFE3D3; }
.painel-roas { background: linear-gradient(165deg, #EFE6D6 0%, var(--cartao) 55%); }
.roas-destaque { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.roas-rot { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.roas-rot .selo-status { text-transform: none; letter-spacing: 0; padding: 3px 9px; font-size: 11px; }
.roas-val { font-family: var(--serif); font-size: clamp(56px, 12vw, 76px); font-weight: 600; line-height: 1; margin: 6px 0 8px; color: var(--espresso); }
.roas-frase { flex: 1 1 220px; margin: 0; font-size: 16px; color: var(--texto-2); line-height: 1.5; }
.roas-frase b { color: var(--texto); }
.roas-linhas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.roas-linhas div { background: rgba(255, 255, 255, .7); border: 1px solid var(--borda); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.roas-linhas span { font-size: 12px; color: var(--texto-3); font-weight: 600; }
.roas-linhas b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.roas-vazio p { margin: 0 0 6px; font-size: 15.5px; color: var(--texto-2); }
.campo-reais { display: flex; align-items: center; gap: 10px; }
.campo-reais span { font-family: var(--serif); font-size: 26px; color: var(--texto-2); }
.campo-reais .entrada { font-family: var(--serif); font-size: 30px; font-weight: 600; padding: 10px 14px; }
.previa-roas { min-height: 22px; font-size: 14.5px; color: var(--texto-2); background: var(--fundo); border-radius: 14px; padding: 0 14px; }
.previa-roas:not(:empty) { padding: 12px 14px; }
@media (max-width: 720px) {
  .roas-linhas { grid-template-columns: 1fr; }
  .roas-linhas div { grid-template-columns: 1fr auto; align-items: center; }
}

/* =========================================================
   Mais cor nos relatórios (mesma identidade, tons mais vivos)
   ========================================================= */
:root {
  --c-res: #C8873E;   --c-res-fundo: #F8E7CF;     /* resultados: caramelo dourado */
  --c-custo: #B5573C; --c-custo-fundo: #F8DFD5;   /* custos: terracota */
  --c-alc: #A9636C;   --c-alc-fundo: #F6E1E1;     /* alcance: nude rosé */
  --c-venda: #5E6F3F; --c-venda-fundo: #E6EAD6;   /* vendas e CAC: oliva */
  --ouro: #F6D29B;
}

/* Cartões principais preenchidos de cor */
.metrica.cheio { border: 0; color: #FFF8EE; box-shadow: 0 14px 30px rgba(59, 42, 31, 0.20); }
.metrica.cheio::before { display: none; }
.metrica.cheio.m-res { background: linear-gradient(150deg, #D9A15A 0%, #B9732F 70%, #9C5C22 100%); }
.metrica.cheio.m-venda { background: linear-gradient(150deg, #7E8F57 0%, #5E6F3F 65%, #46552C 100%); }
.metrica.cheio .m-rot { color: rgba(255, 248, 238, 0.88); }
.metrica.cheio .m-rot .seta { color: rgba(255, 248, 238, 0.7); }
.metrica.cheio .m-val { color: #FFFFFF; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.metrica.cheio .variacao { background: rgba(255, 255, 255, 0.94); }
.metrica.cheio .variacao.neutro { background: rgba(255, 255, 255, 0.22); color: #FFF8EE; }

/* Demais cartões: fundo tingido e número na cor do assunto */
.metrica.m-custo, .metrica.m-alc { background: linear-gradient(165deg, var(--cor-fundo) 0%, #FFFCF8 85%); }
.metrica.m-custo .m-val { color: var(--c-custo); }
.metrica.m-alc .m-val { color: var(--c-alc); }
.metrica::before { width: 5px; opacity: 1; }

/* Bolinhas dos títulos maiores, como etiqueta de cor */
.grupo-cab .bolinha { width: 12px; height: 12px; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04); }

/* Frase-resumo: números marcados com cor */
.resumo-frase b { background: linear-gradient(transparent 58%, rgba(200, 135, 62, 0.30) 58%); padding: 0 2px; border-radius: 2px; }
.resumo-frase { border-left: 5px solid var(--c-res); }

/* Valor investido: brilho dourado */
.cartao-invest { background: linear-gradient(135deg, #2F2119 0%, #5E3F2C 50%, #A8743F 100%); }
.cartao-invest .val { color: #FFF3E2; }

/* ROAS: painel de destaque escuro com número dourado */
.painel-roas { background: linear-gradient(150deg, #3E2520 0%, #7A3B2B 55%, #B06A35 110%); border: 0; color: #FFF3E2; box-shadow: 0 22px 48px rgba(74, 38, 26, 0.32); }
.painel-roas h2 { color: #FFF3E2; }
.painel-roas .desc, .painel-roas .roas-rot { color: rgba(255, 243, 226, 0.72); }
.painel-roas .roas-val { color: var(--ouro); }
.painel-roas .roas-frase { color: rgba(255, 243, 226, 0.88); }
.painel-roas .roas-frase b { color: #FFFFFF; }
.painel-roas .roas-linhas div { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.14); }
.painel-roas .roas-linhas span { color: rgba(255, 243, 226, 0.7); }
.painel-roas .roas-linhas b { color: #FFF3E2; }
.painel-roas .roas-vazio p, .painel-roas .roas-vazio b { color: #FFF3E2; }
.painel-roas .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 243, 226, 0.85); }
.painel-roas .chip.ativo { background: var(--ouro); border-color: var(--ouro); color: #3B2A1F; box-shadow: none; }
.painel-roas .btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #FFF3E2; }
.painel-roas .selo-status.neutro { background: rgba(255, 255, 255, 0.16); color: #FFF3E2; }
.painel-roas .variacao.bom { background: rgba(255, 255, 255, 0.94); }

/* Convite de vendas e botão Registrar em oliva */
.convite-vendas { background: linear-gradient(150deg, #E6EAD6 0%, #FFFCF8 80%); border-left: 5px solid var(--c-venda); }
.fab { background: linear-gradient(135deg, #3B2A1F 0%, #7A4E2E 100%); }

/* Anúncios: medalhas douradas */
.medalha.ouro { background: linear-gradient(135deg, #E9B871, #B9732F); color: #fff; }
.anuncio-val { color: var(--c-res); }

/* Chips de métrica com a cor do assunto quando ativos */
.chip-m.ativo { background: var(--cor); border-color: var(--cor); }
.chip-m.ativo i { background: #fff; }

/* ---------- Logo Dash.In ---------- */
.logo { display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 42px; padding: 0 11px; font-size: 16px; letter-spacing: 0; white-space: nowrap; }
.logo i { font-style: normal; color: #E9B871; }
.logo-g { width: fit-content; min-width: 78px; height: 78px; padding: 0 22px; font-size: 30px; }
.modal-app .logo, .login-topo .logo { margin-left: auto; margin-right: auto; }
