/* Specialle: roxo profundo, violeta e lilás. Presentation only. */
:root { --bg:#F4F0F7; --ink-mute:#6E3B96; --border:#E2D9EA; }
html { scroll-behavior:smooth; scroll-padding-top:110px; }
body { background:var(--bg); }
button,a,input { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
:focus-visible { outline:3px solid var(--teal); outline-offset:4px; }
.hidden { display:none!important; }
.eyebrow { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.18em; }
#app { padding:24px; max-width:1600px; margin:auto; }
#app header { top:16px; background:rgba(255,255,255,.94); border:1px solid #fff; border-radius:24px; box-shadow:0 8px 32px #28004608; backdrop-filter:blur(18px); }
.topbar { min-height:80px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 26px; }
.brand { display:flex; align-items:center; gap:18px; }
.brand img { width:108px; height:44px; object-fit:contain; filter:none; }
.brand-caption { border-left:1px solid var(--border); padding-left:18px; font-size:12px; color:var(--ink-mute); }
.brand-caption strong { display:block; color:var(--ink-soft); font-size:13px; }
.dashboard-nav { display:flex; padding:5px; gap:4px; background:var(--bg); border-radius:999px; }
.dashboard-nav a { padding:10px 20px; border-radius:999px; font-size:13px; font-weight:700; color:var(--ink-soft); text-decoration:none; }
.dashboard-nav a.active { background:var(--purple); color:#fff; box-shadow:0 4px 12px #28004624; }
.dashboard-nav a:hover:not(.active) { background:var(--purple-soft); color:var(--purple); }
.profile { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--ink-mute); }
.avatar { width:40px; height:40px; display:grid; place-items:center; background:var(--cream-soft); color:var(--purple); border:1px solid var(--cream); border-radius:50%; font-weight:700; }
#app main { max-width:1400px; padding:32px 12px 0; }
.welcome { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; }
.welcome .eyebrow { color:var(--teal-dark); margin-bottom:7px; }
.welcome h1 { font-size:clamp(28px,3vw,40px); font-weight:500; line-height:1.2; color:var(--purple-dark); margin:0 0 10px; }
.welcome p { font-size:14px; color:var(--ink-mute); margin:0; }
.welcome-note { max-width:235px; text-align:right; font-family:'Montserrat',sans-serif; font-weight:300; font-size:17px; color:var(--purple); }
.filters { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-bottom:24px; }
.filter-label { font-size:13px; color:var(--ink-soft); font-weight:700; }
.filter-controls { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
#range-picker { background:white; padding:5px; border:1px solid var(--border); border-radius:999px; gap:3px; }
.range-btn { color:var(--ink-soft); background:transparent; border:1px solid transparent; min-height:38px; padding:7px 16px; }
.range-btn.active,#date-apply.active { background:var(--purple-soft); color:var(--purple-dark); }
.range-btn:hover:not(.active) { color:var(--purple); background:var(--purple-soft); }
#custom-range { gap:8px; flex-wrap:wrap; }
#custom-range span { font-size:12px; color:var(--ink-mute); }
.date-input { color:var(--ink-soft); background:white; border:1px solid var(--border); color-scheme:light; min-height:42px; width:145px; border-radius:12px; padding:8px 10px; font-size:12px; }
.date-input::-webkit-calendar-picker-indicator { filter:none; }
#date-apply { background:var(--purple); color:white; border-radius:12px; }
.card { border-radius:24px; border:1px solid #E2D9EA80; box-shadow:0 4px 24px #28004603; min-width:0; }
.card-hover:hover { box-shadow:0 12px 32px #2800460d; transform:translateY(-3px); }
.metrics { gap:16px; }
.metrics .card { border-top:0!important; padding:24px; position:relative; overflow:hidden; }
.metrics .card::before { content:''; display:block; width:26px; height:4px; border-radius:9px; background:var(--teal); margin-bottom:22px; }
.metrics .card:nth-child(2)::before,.metrics .card:nth-child(5)::before { background:var(--cream); }
.metrics .card:nth-child(3) { background:var(--purple); }
.metrics .card:nth-child(3)::before { background:var(--cream); }
.metrics .card:nth-child(3) .kpi-label,.metrics .card:nth-child(3) .kpi-sub { color:#ffffffcc; }
.metrics .card:nth-child(3) .kpi-value { color:#fff!important; }
.kpi-label { font-size:11px; letter-spacing:.075em; color:var(--ink-mute); }
.kpi-value { font-family:'Montserrat',sans-serif; font-size:clamp(24px,2.5vw,36px); font-variant-numeric:tabular-nums; letter-spacing:-.05em; line-height:1.3; overflow-wrap:anywhere; }
.kpi-sub { font-size:12px; margin-top:8px; }
.section-title { font-size:16px; letter-spacing:-.02em; }
.section-sub { font-size:12px; margin-top:4px; }
.card.p-6 { padding:28px; }
.grid > * { min-width:0; }
.spend-card .text-2xl { font-family:'Montserrat',sans-serif!important; font-size:clamp(20px,1.8vw,25px); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; line-height:1.4; }
.overview-grid { display:grid; gap:24px; }
.spend-card .rounded-xl { border-radius:18px; padding:20px; }
.funnel-bar { border-radius:14px; min-width:min(210px,100%)!important; gap:14px; height:auto; min-height:60px; padding:14px 18px; }
.funnel-bar span { overflow-wrap:anywhere; }
.funnel-connector { flex-wrap:wrap; padding:20px 8px; font-size:12px; }
#utm-tabs { border:0; margin:0 0 24px; padding:5px; background:var(--bg); border-radius:14px; width:fit-content; max-width:100%; gap:4px; }
.tab { border:0; border-radius:10px; padding:9px 18px; min-height:40px; }
.tab.active { background:white; color:var(--purple); box-shadow:0 2px 8px #2800460a; }
table { border-collapse:collapse; }
th { font-size:10px!important; letter-spacing:.08em!important; white-space:nowrap; }
td { border-bottom:1px solid #f3eff5; max-width:260px; overflow-wrap:anywhere; }
#leads-section table { min-width:760px; }
.row-hover { transition:background .15s; }
#modal-body pre,#modal-subtitle,#modal-body .font-semibold { overflow-wrap:anywhere; min-width:0; }
#modal-body .flex { gap:14px; }
#details-modal > .card { overflow:hidden auto; }
#app footer { padding:16px 0 28px; font-size:11px; letter-spacing:.06em; }
/* Full-bleed travel photography with a calm, legible access panel. */
#auth-gate { position:relative; isolation:isolate; min-height:100svh; padding:42px clamp(24px,5vw,88px); background:var(--purple-dark); overflow:hidden; }
.login-landscapes,.login-shade { position:absolute; inset:0; z-index:-2; }
.login-landscapes img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1.1s ease; }
.login-landscapes img.active { opacity:1; }
.login-shade { z-index:-1; background:linear-gradient(90deg,rgba(23,35,38,.62),rgba(37,29,46,.18) 60%,rgba(42,27,47,.3)),linear-gradient(0deg,rgba(28,28,28,.38),transparent 40%); }
.login-layout { min-height:calc(100svh - 84px); width:100%; max-width:1440px; margin:auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,440px); grid-template-rows:auto 1fr auto; column-gap:clamp(40px,8vw,140px); row-gap:32px; }
.login-brand { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; color:#fff; }
.login-brand img { width:144px; height:62px; object-fit:contain; }
.login-brand .eyebrow { color:#ffffffcc; font-size:10px; }
.login-story { align-self:center; color:white; padding-bottom:16px; }
.login-story .eyebrow { color:var(--cream); margin-bottom:22px; }
.login-story h1 { font-size:clamp(42px,5.1vw,76px); line-height:1.12; letter-spacing:-.035em; font-weight:500; max-width:640px; margin:0 0 24px; }
.login-story h1 em { color:var(--cream); font-weight:300; font-style:normal; }
.login-story p { color:#ffffffe0; font-size:15px; line-height:1.8; max-width:370px; }
.login-panel { align-self:center; background:rgba(255,255,255,.96); border:1px solid #fff; border-radius:28px; padding:42px 36px; box-shadow:0 24px 80px #231F2026; backdrop-filter:blur(18px); }
.login-symbol { width:48px; height:48px; border-radius:16px; background:var(--purple-soft); color:var(--purple); display:grid; place-items:center; margin-bottom:28px; }
.login-panel .eyebrow { color:var(--teal-dark); font-size:10px; margin-bottom:10px; }
.login-panel h2 { font-size:32px; line-height:1.2; color:var(--purple-dark); margin:0 0 12px; font-weight:500; }
.login-panel p { font-size:14px; line-height:1.7; color:var(--ink-mute); margin-bottom:28px; }
.login-panel label { display:block; font-size:12px; font-weight:700; color:var(--ink-soft); margin-bottom:8px; }
#auth-input { background:#fff; height:52px; font-family:inherit!important; font-size:14px; margin-bottom:16px; }
#auth-submit { min-height:52px; border-radius:14px; background:var(--purple); transition:background .2s,transform .2s; }
#auth-submit:hover { background:var(--purple-dark); transform:translateY(-1px); }
.login-security { border-top:1px solid var(--border); margin-top:28px; padding-top:20px; text-align:center; font-size:11px; color:var(--ink-mute); }
.login-footer { grid-column:1/-1; display:flex; justify-content:space-between; align-items:end; gap:24px; color:white; font-size:11px; }
.photo-caption { display:flex; flex-direction:column; gap:5px; }
.photo-caption strong { font-weight:600; font-size:13px; }
.photo-caption a { color:#ffffffe0; text-underline-offset:3px; }
.slideshow-controls { display:flex; gap:10px; align-items:center; }
.slide-dot { width:26px; height:32px; background:transparent; border:0; display:grid; place-items:center; }
.slide-dot::after { content:''; width:20px; height:3px; background:#ffffff60; border-radius:9px; }
.slide-dot[aria-pressed=true]::after { background:var(--cream); }
#slideshow-toggle { border:1px solid #ffffff70; border-radius:999px; padding:6px 12px; min-height:34px; color:white; background:#231F2022; font-size:11px; }
@media(min-width:1100px) { .overview-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr); gap:24px; align-items:stretch; } .overview-grid > .card { margin:0; } .overview-grid .chart-area { height:290px!important; } }
@media(max-width:1000px) { .brand-caption,.profile span:last-child { display:none; } .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } .welcome-note { display:none; } .login-layout { column-gap:36px; grid-template-columns:1fr minmax(320px,400px); } .login-story h1 { font-size:48px; } }
@media(max-width:700px) { #app { padding:12px; } #app header { top:8px; border-radius:20px; } .topbar { padding:14px; gap:14px; flex-wrap:wrap; } .brand img { width:90px; height:36px; } .dashboard-nav { order:3; width:100%; justify-content:center; } .dashboard-nav a { padding:9px 16px; flex:1; text-align:center; font-size:12px; } .profile { margin-left:auto; } #app main { padding:26px 2px 0; } .welcome h1 { font-size:30px; } .welcome p { font-size:13px; } .filter-controls { width:100%; gap:12px; } #custom-range { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); } .date-input { width:100%; min-width:0; } #date-apply { grid-column:1/-1; } .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .metrics .card { padding:18px; border-radius:20px; } .metrics .card:last-child { grid-column:1/-1; } .metrics .card::before { margin-bottom:15px; } .card.p-6 { padding:20px; } .kpi-value { font-size:28px; } .section-title { font-size:15px; } .overview-grid { display:grid; gap:24px; } .tab { padding:9px 13px; } .spend-card .rounded-xl { padding:16px; } #auth-gate { padding:24px; } .login-layout { min-height:calc(100svh - 48px); grid-template-columns:1fr; gap:28px; } .login-brand { grid-column:auto; } .login-brand img { width:110px; height:48px; } .login-brand .eyebrow { font-size:8px; max-width:100px; text-align:right; } .login-story { padding:12px 0 0; } .login-story .eyebrow { margin-bottom:12px; font-size:9px; } .login-story h1 { font-size:40px; margin-bottom:12px; max-width:420px; } .login-story p { display:none; } .login-panel { padding:28px; max-width:480px; width:100%; justify-self:center; } .login-symbol { display:none; } .login-panel h2 { font-size:28px; } .login-panel p { margin-bottom:20px; font-size:13px; } .login-footer { grid-column:auto; flex-wrap:wrap; gap:16px; } .photo-caption strong { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }

/* ── botão sair (dash) ── */
.dash-logout { margin-left:12px; padding:8px 15px; border-radius:999px; border:1px solid var(--border);
  background:#fff; color:var(--purple); font-size:12px; font-weight:700; font-family:'Montserrat',sans-serif;
  cursor:pointer; white-space:nowrap; transition:background .2s,color .2s,border-color .2s,box-shadow .2s; }
.dash-logout:hover { background:var(--purple); color:#fff; border-color:var(--purple); box-shadow:0 6px 16px rgba(40,0,70,.28); }

/* ── legenda do gráfico dual ── */
.dot-teal   { background:#0E9AA7!important; }
.dot-purple { background:#280046!important; }
