:root {
  --bg: #090909;
  --bg-elev: #101014;
  --bg-card: #141419;
  --bg-card-2: #191920;
  --text: #ecedf2;
  --muted: #9192a0;
  --line: #26262f;
  --accent: #12b76a;
  --accent-2: #3ee08a;
  --accent-deep: #0b7a4a;
  --accent-rgb: 18, 183, 106;
  --ok: #2fce80;
  --warn: #ff9e4d;
  --danger: #ff5470;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0,0,0,.5);
  --nav-h: 76px;
  --font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

html[data-theme="light"] {
  --bg: #f1f4f9;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f5f7fb;
  --text: #141a27;
  --muted: #697086;
  --line: #e6e9f2;
  --shadow: 0 12px 34px rgba(20,30,60,.1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(18,183,106,.22), transparent 55%),
    radial-gradient(900px 520px at 100% 8%, rgba(52,211,153,.08), transparent 50%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

#app { min-height: 100dvh; position: relative; z-index: 1; }

.shell {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 20px 16px calc(var(--nav-h) + 28px);
  position: relative;
  animation: rise .45s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.topbar p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: .95rem;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, transform .15s ease;
}
.icon-btn .head-ico,
.icon-btn img.head-ico {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.icon-btn .ico {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--accent-2);
}
.icon-btn .ico svg {
  width: 20px;
  height: 20px;
  display: block;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.beta {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(18,183,106,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(18,183,106,.22);
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .85rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-beta { background: rgba(251,191,36,.15); color: var(--warn); }
.badge-count { background: rgba(18,183,106,.18); color: var(--accent-2); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 10px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-head .sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card.interactive { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card.interactive:active { transform: scale(.98); }
.card.interactive:hover {
  border-color: rgba(18,183,106,.5);
  box-shadow: 0 18px 40px rgba(18,183,106,.12);
}

.casa-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 128px;
  background:
    linear-gradient(160deg, rgba(18,183,106,.1), transparent 55%),
    var(--bg-card);
}
.casa-card .row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.casa-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card-2);
  object-fit: cover;
  flex-shrink: 0;
}
.casa-logo.fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(18,183,106,.45), rgba(0,0,0,.25));
}
.casa-card .name { font-weight: 700; font-size: .98rem; }
.casa-card .status {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.casa-card .status.ok { color: var(--accent-2); }
.casa-card .status.nova { color: var(--muted); }
.status.ok { color: var(--accent-2); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status.nova { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.casa-mini {
  margin-top: 2px;
  font-size: .72rem;
  line-height: 1.35;
  text-align: left;
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}
.stat {
  background:
    linear-gradient(180deg, rgba(18,183,106,.12), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  animation: rise .5s ease both;
}
.stat:nth-child(2) { animation-delay: .05s; }
.stat:nth-child(3) { animation-delay: .1s; }
.stat .v {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.stat .l {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kpi { display: grid; gap: 8px; }
.kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s ease;
}
.kpi-row:hover { border-color: rgba(18,183,106,.35); }
.kpi-row .l { color: var(--muted); font-size: .9rem; }
.kpi-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }

.level-btn {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.level-btn:hover { border-color: rgba(18,183,106,.4); transform: translateX(2px); }
.level-btn strong { font-size: 1rem; }
.level-btn span { color: var(--muted); font-size: .85rem; }
.level-btn .tag {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(18,183,106,.15); color: var(--accent-2); font-weight: 800; font-size: .8rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(560px, 100%);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 0 4px env(safe-area-inset-bottom);
  z-index: 40;
}
.bottom-nav a, .bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  padding: 6px 2px;
  transition: color .15s ease;
}
.bottom-nav .ico { width: 18px; height: 18px; display: block; }
.bottom-nav .ico svg { width: 18px; height: 18px; display: block; }
.bottom-nav .active { color: var(--accent-2); }
.bottom-nav .saque {
  color: #fff;
  gap: 2px;
  margin-top: -12px;
  font-size: .68rem;
  font-weight: 700;
}
.bottom-nav .saque .saque-ico {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent) 45%, var(--accent-deep));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(18,183,106,.5);
  line-height: 1;
  animation: pulseSoft 2.4s ease-in-out infinite;
}
.bottom-nav .saque .saque-ico svg { width: 22px; height: 22px; }
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(18,183,106,.45); }
  50% { transform: scale(1.04); box-shadow: 0 16px 40px rgba(18,183,106,.6); }
}
.bottom-nav .saque.active { color: var(--accent-2); }
.bottom-nav .saque.active .saque-ico { outline: 2px solid rgba(255,255,255,.35); animation: none; }
.bottom-nav.nav-gerente { grid-template-columns: repeat(5, 1fr); }
.bottom-nav.nav-gerente button { font-size: .52rem; }
.rede-row { align-items: flex-start; }
.rede-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Login */
.login-wrap {
  width: min(420px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  border: 1px solid rgba(18,183,106,.2);
  border-radius: 28px;
  padding: 28px 22px 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.03) inset;
  position: relative;
  overflow: hidden;
  animation: rise .5s ease both;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(18,183,106,.35), transparent 70%);
  pointer-events: none;
}
.brand-mark {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 30px rgba(18,183,106,.28);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  position: relative;
  z-index: 1;
}
.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.brand-lockup .brand-mark { margin: 0; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(18,183,106,.18);
}
.shell.home { width: min(860px, 100%); }
.beta strong { color: var(--text); font-weight: 700; display: block; }
.beta-ver {
  margin-left: auto;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  font-weight: 700;
}
.home-top {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.overview-card {
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #0a2a18 0%, #05140c 55%, #0c0c10 100%);
  border: 1px solid rgba(18,183,106,.28);
}
.saldo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.saldo-card .t {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.saldo-card .v {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 8px 0 14px;
}
.saldo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.saldo-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.saldo-links button {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.saldo-links button:hover { color: var(--text); }
.kpi-row3, .home-wide {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.kpi-top i { font-style: normal; opacity: .7; }
.kpi-note { color: var(--muted); font-size: .75rem; margin-top: 8px; }
.kpi-spark { width: 100%; height: 34px; margin-top: 8px; display: block; }
.kpi-spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.kpi-spark-fill { fill: rgba(18,183,106,.16); }
.kpi-spark.tone-amber .kpi-spark-line { stroke: var(--warn); }
.kpi-spark.tone-amber .kpi-spark-fill { fill: rgba(255,158,77,.16); }
.kpi-cb {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  min-height: 72px;
  margin: 10px 0 4px;
}
.kpi-cb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.kpi-cb-col b { font-size: .95rem; }
.kpi-cb-col small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi-cb-bar {
  width: 10px;
  min-height: 8px;
  border-radius: 99px;
  background: var(--c, var(--accent));
  display: block;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 88px;
  margin: 12px 0 8px;
}
.mini-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: rgba(18,183,106,.08);
  border-radius: 10px;
  overflow: hidden;
}
.mini-bar i {
  display: block;
  width: 100%;
  min-height: 6px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
  border-radius: 10px;
}
.mini-bar.amber { background: rgba(255,158,77,.1); }
.mini-bar.amber i { background: linear-gradient(180deg, #ffb020, #e8890c); }
.legend {
  display: flex;
  gap: 16px;
  font-size: .75rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.legend b { color: var(--text); margin-left: 4px; font-weight: 700; }
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.lg-dep { background: var(--accent); }
.lg-com { background: var(--warn); }
.ativos-pill {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47,206,128,.14);
  color: var(--ok);
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
.lvl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-top: 12px;
  align-items: end;
}
.lvl-row b { display: block; font-size: 1.05rem; }
.lvl-row small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.lvl-bar {
  display: block;
  width: 12px;
  min-height: 10px;
  margin: 0 auto 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
}
.lvl-bar.l2 { background: linear-gradient(180deg, #2dd4bf, var(--accent)); }
.lvl-bar.l3 { background: linear-gradient(180deg, #a3e635, #65a30d); }
.rede-head-actions { display: flex; align-items: center; gap: 8px; }
.plat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
}
.plat-pills button {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: .78rem;
  font-weight: 700;
}
.plat-pills button.on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}
.fluxo-card { margin-bottom: 12px; }
.fluxo-kicker {
  font-size: .78rem;
  color: var(--muted);
  margin: 6px 0 2px;
}
.fluxo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted);
  margin: 16px 0 10px;
}
.fluxo-legend span {
  display: grid;
  grid-template-columns: 9px auto;
  column-gap: 8px;
  min-width: 190px;
  padding: 11px 14px;
  border: 1px solid rgba(139,183,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.fluxo-legend i { grid-row: 1 / span 2; align-self: center; }
.fluxo-legend small { color: var(--muted); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fluxo-legend b { color: var(--text); margin-top: 2px; font-size: 1rem; }
.fluxo-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fluxo-card-head .m-hint { margin: 5px 0 0; }
.fluxo-period-badge { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(139,183,255,.2); border-radius: 999px; color: #bdd5ff; background: rgba(59,130,246,.1); font-size: .67rem; font-weight: 800; }
.fluxo-chart-wrap { position: relative; overflow: hidden; border: 1px solid rgba(139,183,255,.09); border-radius: 16px; background: linear-gradient(180deg, rgba(10,24,44,.55), rgba(8,17,31,.25)); }
.fluxo-svg { width: 100%; height: 220px; display: block; overflow: visible; }
.fluxo-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fluxo-line.dep { stroke: #12b76a; }
.fluxo-line.com { stroke: #ff9e4d; }
.fluxo-fill.dep { fill: rgba(18,183,106,.14); }
.fluxo-fill.com { fill: rgba(255,158,77,.12); }
.fluxo-svg text { fill: var(--muted); font-size: 8px; }
.fluxo-grid-line { stroke: rgba(148,163,184,.12); stroke-width: 1; stroke-dasharray: 4 5; }
.fluxo-axis-y { fill: #73849d !important; font-size: 9px !important; font-weight: 700; }
.fluxo-axis-x { fill: #8fa0b8 !important; font-size: 9px !important; font-weight: 700; }
.fluxo-hit { fill: transparent; }
.fluxo-dep-bar { fill: url(#fluxo-dep-gradient); opacity: .82; transition: opacity .18s ease, filter .18s ease; }
.fluxo-com-area { fill: url(#fluxo-com-area); }
.fluxo-com-dot { fill: #081525; stroke: #22d3ee; stroke-width: 2.3; transition: r .18s ease, filter .18s ease; }
.fluxo-point:hover .fluxo-dep-bar,
.fluxo-point:focus .fluxo-dep-bar { opacity: 1; filter: drop-shadow(0 0 6px rgba(96,165,250,.55)); }
.fluxo-point:focus { outline: none; }
.fluxo-com-dot:hover { filter: drop-shadow(0 0 5px rgba(34,211,238,.8)); }
.fluxo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 11px 4px 0; color: var(--muted); font-size: .68rem; }
.fluxo-foot b { color: #dce9ff; }
.fluxo-empty { min-height: 190px; display: grid; place-content: center; gap: 5px; text-align: center; border: 1px dashed rgba(139,183,255,.15); border-radius: 16px; color: var(--muted); }
.fluxo-empty span { color: #60a5fa; font-size: 2rem; }
.fluxo-empty b { color: var(--text); }
.fluxo-empty small { max-width: 300px; }
.fluxo-bars { height: 100px; }
.donut-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 10px auto 12px;
}
.donut-svg { width: 100%; height: 100%; }
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-center b { font-size: 1.45rem; letter-spacing: -.03em; }
.donut-center small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.donut-legend {
  display: grid;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
}
.donut-legend i, .legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.lg-n1 { background: #12b76a; }
.lg-n2 { background: #2dd4bf; }
.lg-n3 { background: #a3e635; }
.cpa-lvl { margin-top: 10px; }
.cpa-lvl-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
}
.cpa-lvl-row b { color: var(--text); font-size: .82rem; }
.cpa-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin: 6px 0 14px;
}
.cpa-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-deep));
}
.cpa-bar.n2 i { background: linear-gradient(90deg, #2dd4bf, var(--accent)); }
.cpa-bar.n3 i { background: linear-gradient(90deg, #a3e635, #65a30d); }
.detail-lvls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.lvl-detail {
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 2px;
  transition: border-color .15s ease, transform .15s ease;
}
.lvl-detail:hover { border-color: rgba(18,183,106,.4); transform: translateX(2px); }
.lvl-detail .tag {
  grid-row: 1 / span 3;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; align-self: center;
  background: rgba(18,183,106,.15); color: var(--accent-2); font-weight: 800; font-size: .8rem;
}
.lvl-detail strong { font-size: .95rem; }
.lvl-detail .v { font-weight: 700; }
@media (min-width: 720px) {
  .detail-lvls { grid-template-columns: repeat(3, 1fr); }
  .rede-split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .home-top { grid-template-columns: 1.15fr .85fr; }
  .kpi-row3, .home-wide { grid-template-columns: 1fr 1fr 1fr; }
  .home-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .live-pill, .top-tools .btn-primary.btn-header { display: none; }
  .beta-ver { display: none; }
}
.overview-card .kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.overview-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.kpi-ap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.kpi-ap .t { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.kpi-ap .v { font-size: 1.35rem; font-weight: 800; margin: 6px 0 0; letter-spacing: -.03em; }
.kpi-ap.wide { grid-column: 1 / -1; }
.top-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-header { width: auto; min-height: 40px; padding: 0 12px; font-size: .78rem; }
.brand-title {
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -.04em;
  margin: 0 0 4px;
  position: relative;
  z-index: 1;
}
.brand-title span { color: var(--accent-2); }
.brand-sub {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.how-hero {
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0a2a18 0%, #05140c 55%, #0c0c10 100%);
  border: 1px solid rgba(18,183,106,.28);
}
.how-hero .kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.how-hero h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.how-hero p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.how-warn {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,158,77,.12);
  border: 1px solid rgba(255,158,77,.28);
  color: var(--text);
  font-size: .85rem;
  line-height: 1.45;
}
.how-steps { display: grid; gap: 10px; margin-bottom: 8px; }
.how-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.how-step .n {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent-2);
  font-size: .95rem;
  min-width: 28px;
}
.how-step strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.how-step p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.cpa-tree {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
}
.cpa-rules {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
.cpa-rules strong { color: var(--text); }
.cpa-ex {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.cpa-ex th, .cpa-ex td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.cpa-ex th { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.faq { display: grid; gap: 8px; margin-bottom: 8px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-2);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
  padding-bottom: 2px;
}
.onboard h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-align: center;
  margin: 0 0 10px;
}
.onboard .lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 18px;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.feature .n {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent-2);
  font-size: .9rem;
  min-width: 28px;
}
.feature strong { display: block; font-size: .95rem; }
.feature span { color: var(--muted); font-size: .82rem; }

.field { margin-bottom: 12px; position: relative; z-index: 1; }
.field label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.field .control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field .control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18,183,106,.18);
}
.field input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 14px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 40%, var(--accent-deep));
  color: #042010;
  box-shadow: 0 8px 22px rgba(18,183,106,.28);
  position: relative;
}
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.btn-sm { width: auto; padding: 8px 12px; font-size: .85rem; border-radius: 999px; }

.secure-note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.err-text { color: var(--danger); font-size: .85rem; margin: 8px 0; }
.muted { color: var(--muted); }
.loading, .empty { color: var(--muted); text-align: center; padding: 28px 12px; }

/* Saque hero */
.saque-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px 18px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(18,183,106,.28);
  background:
    radial-gradient(420px 180px at 100% -10%, rgba(52,211,153,.18), transparent 58%),
    linear-gradient(145deg, rgba(18,183,106,.16), rgba(12,12,14,.96) 58%);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  animation: rise .45s ease both;
}
.saque-hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.saque-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.saque-hero h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -.03em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.saque-hero p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  position: relative;
  z-index: 1;
}
.saque-hero .btn { position: relative; z-index: 2; }
.saque-hero .btn-primary {
  overflow: visible;
  color: #03180c;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: none;
  filter: none;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 18px rgba(18,183,106,.28);
}
.saque-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
}
.saque-step {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .78rem;
  color: rgba(255,255,255,.75);
}
.saque-step b {
  display: block;
  color: #fff;
  font-size: .88rem;
  margin-bottom: 2px;
}

.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: 420px;
  margin-inline: auto;
  box-sizing: border-box;
  background: var(--bg-elev);
  border: 1px solid rgba(18,183,106,.35);
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 80;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: .86rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: toast-in .25s ease both;
}
.toast.err { border-color: rgba(248,113,113,.4); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  z-index: 50; display: grid; place-items: end center;
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(480px, 100%);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(18,183,106,.2), transparent 60%),
    var(--bg-elev);
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--line);
  padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 88dvh;
  overflow: auto;
  animation: slideUp .28s ease;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.modal h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.modal .actions { display: flex; gap: 8px; margin-top: 14px; }
.modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--text); font-size: 1.2rem; line-height: 1;
}
.modal-pix { position: relative; }
.pix-kicker {
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pix-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.pix-step { display: flex; align-items: center; gap: 6px; }
.pix-step span {
  width: 24px; height: 24px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 800;
}
.pix-step.on { color: var(--text); }
.pix-step.on span {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff;
}
.pix-line { flex: 1; height: 1px; background: var(--line); }
.pix-bal {
  margin: 0 0 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(18,183,106,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(18,183,106,.25);
  font-size: .92rem;
}
.pix-bal strong {
  color: var(--accent-2);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.modal-pix select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: inherit;
}
.btn-max {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .04em;
}

.period {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.period button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.period button.on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-row input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  min-width: 0;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.invite-url {
  margin: 8px 0 0;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--muted);
  word-break: break-all;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.list-item:last-child { border-bottom: 0; }

.cpa-hist-card { margin-top: 18px; }
.cpa-hist-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cpa-hist-item:last-child { border-bottom: 0; }
.cpa-hist-item strong { font-size: 1rem; }
.cpa-hist-meta {
  text-align: right;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.cpa-hist-meta small { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-base {
  margin-top: 3px;
  font-size: .75rem;
  color: var(--muted);
}
.kpi-of {
  font-size: .55em;
  font-weight: 600;
  color: var(--muted);
}

.cpa-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.cpa-pills span {
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18,183,106,.14);
  color: var(--accent-2);
}
.chk-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
}
.chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.blog-list { margin-top: 8px; }
#blog-form .btn { margin-top: 4px; }



/* Visual refresh 2026-08: premium, high-contrast partner dashboard */
:root {
  --bg: #050b08;
  --bg-elev: #09130e;
  --bg-card: #0e1913;
  --bg-card-2: #132219;
  --text: #f4fff8;
  --muted: #91a69a;
  --line: rgba(168, 255, 201, .13);
  --accent: #22d978;
  --accent-2: #8bf5ad;
  --accent-deep: #07894b;
  --accent-rgb: 34, 217, 120;
  --warn: #f5c451;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

html[data-theme="light"] {
  --bg: #f2f8f4;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #edf8f1;
  --text: #102419;
  --muted: #61766a;
  --line: rgba(9, 89, 51, .13);
  --shadow: 0 22px 56px rgba(13, 74, 43, .11);
}

html { color-scheme: dark; scrollbar-color: var(--accent-deep) var(--bg); }
html[data-theme="light"] { color-scheme: light; }

body {
  background:
    radial-gradient(900px 560px at 8% -10%, rgba(34, 217, 120, .28), transparent 62%),
    radial-gradient(760px 520px at 98% 2%, rgba(245, 196, 81, .10), transparent 58%),
    radial-gradient(680px 520px at 50% 110%, rgba(23, 173, 118, .12), transparent 58%),
    linear-gradient(150deg, #050b08 0%, #07100b 46%, #040806 100%);
}

html[data-theme="light"] body {
  background:
    radial-gradient(900px 560px at 8% -10%, rgba(34, 217, 120, .17), transparent 62%),
    radial-gradient(760px 520px at 98% 2%, rgba(245, 196, 81, .09), transparent 58%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .11;
  background-image:
    linear-gradient(rgba(139, 245, 173, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 245, 173, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.shell { padding-top: 26px; }
.shell.home { width: min(980px, 100%); }

.topbar {
  position: relative;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(18px) saturate(130%);
}

.topbar h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  background: linear-gradient(100deg, var(--text) 12%, var(--accent-2) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar p { margin-top: 6px; }
.brand-word {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.icon-btn {
  border-color: rgba(139, 245, 173, .16);
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(34, 217, 120, .07));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .16);
}

.icon-btn:hover {
  border-color: rgba(139, 245, 173, .62);
  box-shadow: 0 10px 30px rgba(34, 217, 120, .16);
}

.live-pill {
  border-color: rgba(34, 217, 120, .24);
  background: rgba(34, 217, 120, .08);
  color: var(--accent-2);
}

.live-dot { box-shadow: 0 0 0 4px rgba(34, 217, 120, .15), 0 0 16px var(--accent); }

.beta {
  border-color: rgba(245, 196, 81, .2);
  background: linear-gradient(105deg, rgba(245, 196, 81, .09), rgba(34, 217, 120, .07), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.badge-beta {
  background: rgba(245, 196, 81, .13);
  border: 1px solid rgba(245, 196, 81, .24);
  color: #ffd96f;
}

.home-top { gap: 14px; margin-bottom: 14px; }

.overview-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 26px;
  border-color: rgba(139, 245, 173, .26);
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 196, 81, .22), transparent 24%),
    radial-gradient(circle at 92% 108%, rgba(34, 217, 120, .34), transparent 42%),
    linear-gradient(140deg, #123d25 0%, #092116 48%, #07100c 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .08);
}

.overview-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -28px;
  top: -50px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .025), 0 0 0 58px rgba(255, 255, 255, .018);
}

.overview-card::after {
  content: "TA";
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: -1;
  font: 800 4.6rem/1 var(--display);
  letter-spacing: -.12em;
  color: rgba(255, 255, 255, .075);
}

.overview-card .kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(139, 245, 173, .10);
  border: 1px solid rgba(139, 245, 173, .18);
  color: var(--accent-2);
}

.overview-card h2 {
  max-width: 430px;
  margin-top: 12px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.04;
}

.overview-card p { max-width: 520px; color: rgba(232, 255, 240, .68); line-height: 1.55; }

.saldo-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  border-color: rgba(245, 196, 81, .18);
  background:
    radial-gradient(circle at 100% 0, rgba(245, 196, 81, .12), transparent 40%),
    linear-gradient(150deg, color-mix(in srgb, var(--bg-card-2) 92%, transparent), color-mix(in srgb, var(--bg-card) 92%, transparent));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .27), inset 0 1px rgba(255, 255, 255, .05);
}

.saldo-card::after {
  content: "◆";
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(245, 196, 81, .5);
  filter: drop-shadow(0 0 14px rgba(245, 196, 81, .25));
}

.saldo-card .v {
  font-size: clamp(2.1rem, 6vw, 2.75rem);
  color: #fff1b8;
  text-shadow: 0 0 24px rgba(245, 196, 81, .14);
}

.btn { border-radius: 15px; }
.btn-primary {
  color: #03180c;
  background: linear-gradient(135deg, #a5ffc0 0%, #35e485 42%, #10aa60 100%);
  box-shadow: 0 8px 20px rgba(34, 217, 120, .22), inset 0 1px rgba(255, 255, 255, .38);
}

.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .035); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(139, 245, 173, .34); background: rgba(34, 217, 120, .07); }

.card,
.kpi-ap {
  border-color: var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--bg-card-2) 70%, transparent), color-mix(in srgb, var(--bg-card) 94%, transparent));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
}

.card.interactive:hover,
.kpi-ap:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 245, 173, .34);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .28), 0 0 28px rgba(34, 217, 120, .07);
}

.kpi-row3,
.home-wide { gap: 14px; margin-bottom: 14px; }

.kpi-ap {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 17px;
  border-radius: 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kpi-ap::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-2), transparent 78%);
}

.kpi-row3 .kpi-ap:nth-child(2)::before { background: linear-gradient(to bottom, var(--warn), transparent 78%); }
.kpi-row3 .kpi-ap:nth-child(3)::before { background: linear-gradient(to bottom, #58d8d1, transparent 78%); }
.kpi-ap .v { font-size: clamp(1.45rem, 4vw, 1.85rem); letter-spacing: -.04em; }
.kpi-top i { color: var(--accent-2); opacity: 1; }
.kpi-row3 .kpi-ap:nth-child(2) .kpi-top i { color: var(--warn); }

.period,
.plat-pills { scrollbar-width: none; }
.period::-webkit-scrollbar,
.plat-pills::-webkit-scrollbar { display: none; }
.period button,
.plat-pills button {
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.period button.on,
.plat-pills button.on { color: #032515; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

.bottom-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 16px));
  height: 72px;
  padding: 4px 6px;
  border: 1px solid rgba(139, 245, 173, .16);
  border-radius: 23px;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(24px) saturate(140%);
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav a,
.bottom-nav button { border-radius: 15px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.bottom-nav a:hover,
.bottom-nav button:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.bottom-nav .active:not(.saque) { color: var(--accent-2); background: rgba(34, 217, 120, .09); }
.bottom-nav .saque .saque-ico {
  background: linear-gradient(145deg, #a7ffc1, #25dd7b 44%, #07894b);
  color: #032515;
  border: 3px solid color-mix(in srgb, var(--bg-elev) 92%, transparent);
  box-shadow: 0 12px 36px rgba(34, 217, 120, .43), 0 0 0 1px rgba(139, 245, 173, .22);
}

.login-wrap { width: min(450px, 100%); }
.login-card {
  padding: 34px 28px 26px;
  border-radius: 32px;
  border-color: rgba(139, 245, 173, .22);
  background:
    radial-gradient(circle at 50% 0, rgba(34, 217, 120, .18), transparent 34%),
    linear-gradient(155deg, rgba(17, 33, 24, .96), rgba(6, 15, 10, .96));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .06);
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #032515;
  background: linear-gradient(145deg, #fff1a8, #52ec91 52%, #0a9b58);
  box-shadow: 0 16px 38px rgba(34, 217, 120, .28), inset 0 1px rgba(255, 255, 255, .5);
}
img.brand-mark {
  background: none;
  box-shadow: 0 10px 24px rgba(34, 217, 120, .22);
  object-fit: cover;
}

.brand-title { font-size: 1.85rem; }
.field .control {
  background: rgba(2, 10, 6, .58);
  border-color: rgba(139, 245, 173, .14);
}
.field .control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 217, 120, .13), 0 10px 30px rgba(0, 0, 0, .16); }

.modal-back { background: rgba(0, 7, 3, .72); backdrop-filter: blur(10px); }
.modal {
  border-color: rgba(139, 245, 173, .18);
  background:
    radial-gradient(520px 210px at 50% 0%, rgba(34, 217, 120, .19), transparent 62%),
    var(--bg-elev);
  box-shadow: 0 -20px 80px rgba(0, 0, 0, .45);
}

@media (min-width: 720px) {
  .home-top { grid-template-columns: 1.22fr .78fr; }
  .overview-card,
  .saldo-card { min-height: 252px; }
}

@media (max-width: 719px) {
  .shell { padding: 16px 12px calc(var(--nav-h) + 34px); }
  .topbar { padding: 11px 12px; border-radius: 17px; }
  .topbar p { font-size: .78rem; }
  .overview-card { min-height: 208px; padding: 22px 20px; border-radius: 23px; }
  .saldo-card { padding: 20px; border-radius: 23px; }
  .bottom-nav { width: calc(100% - 16px); bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 20px; }
}

@media (max-width: 420px) {
  .login-card { padding: 30px 20px 22px; }
  .saldo-actions { grid-template-columns: 1fr; }
  .bottom-nav a,
  .bottom-nav button { font-size: .5rem; }
}



/* Platform-owned banners in Minha rede */
.rede-casas { gap: 14px; align-items: start; }

.casa-card.has-banner {
  display: block;
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 22px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--bg-card-2) 78%, transparent), var(--bg-card));
}

.casa-banner-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #050505;
}

.casa-banner-media::after {
  display: none;
}

.casa-banner-media.is-fallback::before {
  content: attr(data-house);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 clamp(2rem, 7vw, 3.5rem)/1 var(--display);
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .86);
}

.casa-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #050505;
  transition: transform .35s ease, filter .35s ease;
}

.casa-card.has-banner:hover .casa-banner-img {
  transform: scale(1.025);
  filter: saturate(1.08) brightness(1.03);
}

.casa-banner-media .status {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(2, 11, 6, .76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

.casa-banner-media .status.ok { color: #8bffb2; }
.casa-banner-media .status.nova { color: #fff0b0; }

.casa-card.has-banner .casa-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px 14px;
}

.casa-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.casa-card.has-banner .casa-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.casa-card.has-banner .name { font-size: 1rem; }

.casa-card.has-banner .casa-mini {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.casa-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.casa-stats small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.casa-stats b {
  display: block;
  margin-top: 2px;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  word-break: break-word;
}

.casa-open {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(139, 245, 173, .18);
  border-radius: 50%;
  color: var(--accent-2);
  background: rgba(34, 217, 120, .07);
}

@media (max-width: 620px) {
  .rede-casas { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
}
.m-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  margin: 0 -16px 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.m-sticky .m-period { margin: 0; }
.m-sticky-saldo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
}
.m-sticky-val {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.m-sticky-saldo .btn {
  width: auto;
  min-width: 104px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  flex: 0 0 auto;
}
.m-sticky-hint { margin: -4px 0 12px; }
.shell.m-home {
  animation: none;
  padding-top: 0;
}
.m-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-logo .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  object-fit: cover;
  padding: 0;
}
.m-logo strong { font-size: 1.02rem; letter-spacing: -.02em; }
.m-head-actions { display: flex; gap: 8px; position: relative; }
.m-head-actions .icon-btn {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #121212;
}
.m-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.m-period {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow: visible;
  margin: 0 0 14px;
}
.m-period button {
  flex: none;
  width: 100%;
  min-height: 42px;
  padding: 10px 8px;
  font-size: .86rem;
}
.m-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.m-announce {
  background: rgba(255, 158, 77, .1);
  border-color: rgba(255, 158, 77, .42);
}
.m-announce .m-kicker { color: var(--warn); }
.m-announce b {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
}
.m-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.m-hero {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 4px 0 8px;
}
.m-num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.m-hint, .m-tip {
  color: var(--muted);
  font-size: .86rem;
  margin: 0 0 12px;
  line-height: 1.45;
}
.m-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 14px;
}
.m-sec {
  font-size: .92rem;
  margin: 18px 0 8px;
}
.m-today-grid, .m-stats, .m-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.m-split { grid-template-columns: 1fr 1fr; }
.m-today-grid small, .m-stats small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  margin-bottom: 4px;
}
.m-today-grid b, .m-stats b { font-size: 1.02rem; }
.m-meta-goal { font-weight: 800; margin-bottom: 8px; }
.m-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.m-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.m-meta-foot { margin-top: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.m-cpa-list { padding-top: 8px; padding-bottom: 8px; }
.m-cpa-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.m-cpa-row:first-child { padding-top: 2px; }
.m-cpa-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.m-cpa-row b { color: var(--accent-2); font-size: 1rem; white-space: nowrap; }
.m-cpa-row span { color: var(--muted); font-size: .8rem; text-align: right; line-height: 1.35; }
.m-cpa-row.is-recharge b { color: var(--warn); }
.m-chip {
  background: rgba(18,183,106,.14);
  color: var(--accent-2);
  border: 1px solid rgba(18,183,106,.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: .92rem;
}
.m-chip.is-recharge, .m-chip-rec {
  background: rgba(255,158,77,.16);
  color: var(--warn);
  border-color: rgba(255,158,77,.3);
}
.m-chip-rec {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: .68rem;
  vertical-align: middle;
}
.m-rank {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.m-rank:last-child { border-bottom: 0; padding-bottom: 0; }
.m-rank:first-child { padding-top: 0; }
.m-funnel {
  text-align: center;
}
.m-funnel div { padding: 6px 0; }
.m-funnel b { display: block; font-size: 1.15rem; }
.m-funnel small { color: var(--muted); }
.m-funnel i { display: block; color: var(--accent-2); font-style: normal; opacity: .7; }
.m-rates { font-weight: 700; margin-bottom: 4px; }
.m-link {
  font-size: .82rem;
  word-break: break-all;
  color: var(--muted);
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  padding: 10px 12px;
}
.m-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.m-share .m-btn { margin-top: 0; }
.m-share .btn-primary { grid-column: 1 / -1; }
.m-pay, .m-team {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.m-pay.is-recharge { border-color: rgba(255,158,77,.45); background: color-mix(in srgb, var(--bg-card) 86%, #ff9e4d); }
.m-pay-base { font-size: 1.05rem; font-weight: 800; }
.m-pay-meta, .m-pay-foot { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.m-pay-you { margin-top: 8px; }
.m-team-top { display: flex; gap: 10px; align-items: center; }
.m-medal { font-size: 1.4rem; }
.m-team-com { margin-top: 10px; }
.m-notif { padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-notif:last-of-type { border-bottom: 0; }
.m-filters { margin-bottom: 10px; overflow-x: auto; display: flex; gap: 8px; }
.m-filters button { min-height: 40px; white-space: nowrap; }
.m-oficial {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.m-oficial:last-of-type { border-bottom: 0; }
.m-oficial-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.m-oficial-pct {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  margin-top: 4px;
}
.m-oficial-ids {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  margin-top: 2px;
  word-break: break-all;
}
.m-oficial.is-hit {
  outline: 1px solid color-mix(in srgb, var(--accent, #3d8) 55%, transparent);
  border-radius: 12px;
  padding: 10px 8px;
  margin: 0 -8px 8px;
}
.m-oficial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-oficial-actions .btn {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  flex: 1 1 calc(50% - 4px);
}
.m-oficial-actions .btn-danger {
  flex: 1 1 100%;
}
.oficial-form { margin-top: 10px; }
.oficial-casas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oficial-casa {
  flex: 1;
  min-width: 88px;
  position: relative;
}
.oficial-casa input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.oficial-casa span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .02em;
  cursor: pointer;
  background: color-mix(in srgb, var(--bg-card) 88%, #000);
}
.oficial-casa span small {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: lowercase;
}
.oficial-casa input:checked + span {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .18);
  color: var(--accent-2);
}
.oficial-casa input:focus-visible + span {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.oficial-casa.is-pending span small {
  color: var(--accent-2);
}
.oficial-casa.is-off span,
.oficial-casa input:disabled + span {
  opacity: .42;
  cursor: not-allowed;
}
.m-oficial-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#rede-equipe { scroll-margin-top: 12px; }
.tree-casa {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-card) 88%, #000);
}
.tree-casa strong { color: #7dd3a8; }
.tree-lvl { margin: 8px 0 0; }
.tree-lvl summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  list-style: none;
}
.tree-lvl summary::-webkit-details-marker { display: none; }
.tree-line {
  line-height: 1.55;
  font-size: .82rem;
  margin: 4px 0 0 8px;
}
.nv-pill {
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-card);
}
.nv-pill.nv-n1 { color: #7dd3a8; border-color: color-mix(in srgb, #12b76a 40%, var(--line)); }
.nv-pill.nv-n2 { color: #8ab4ff; border-color: color-mix(in srgb, #4c8dff 40%, var(--line)); }
.nv-pill.nv-n3 { color: #e2c36b; border-color: color-mix(in srgb, #d4a017 40%, var(--line)); }
.nv-pill.nv-n4 { color: #c4b5fd; border-color: color-mix(in srgb, #8b5cf6 40%, var(--line)); }

@media (max-width: 620px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .m-sticky { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .m-hero { font-size: 1.9rem; }
  .detail-lvls { grid-template-columns: 1fr; }
  .m-home .kpi, .m-home table { display: block; width: 100%; }
}

.m-ledger-grid,
.m-lvl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.m-ledger-grid small,
.m-lvl-grid .muted {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  margin-bottom: 4px;
}
.m-ledger-grid b { font-size: 1.02rem; }
.m-chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 148px;
  margin-top: 8px;
}
.m-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 148px;
  padding: 8px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.m-chart-col i {
  display: block;
  width: 28px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.m-chart-col span { font-size: .68rem; color: var(--muted); font-weight: 700; text-align: center; }
.m-chart-val { font-size: .62rem; font-weight: 800; text-align: center; line-height: 1.2; }
.m-chart-col.on {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: rgba(34, 217, 120, .08);
}
.m-hist {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.m-hist.is-recharge { border-color: rgba(255,158,77,.45); }
.m-hist.is-void { opacity: .82; border-color: color-mix(in srgb, var(--danger, #f66) 35%, var(--line)); }
.m-hist-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.m-hist-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: 0;
}
.m-hist-dl dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.m-hist-dl dd { margin: 2px 0 0; font-weight: 700; font-size: .9rem; }
.m-st {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .68rem;
  font-weight: 800;
}
.m-st.ok { background: rgba(18,183,106,.16); color: var(--accent-2); }
.m-st.off { background: rgba(255,80,80,.14); color: #ff8a8a; }
.m-st.wait { background: rgba(255,176,32,.16); color: #e8b44a; }
.m-cpa-row.is-void b { color: #ff8a8a; }
.m-lvl-grid .m-team { margin: 0; }
@media (min-width: 720px) {
  .m-period { grid-template-columns: repeat(4, 1fr); }
  .m-lvl-grid { grid-template-columns: repeat(3, 1fr); }
}

.shell.ativar-page { width: min(1040px, 100%); }
.ativar-head { margin: 8px 0 16px; }
.ativar-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.04em;
}
.ativar-head p { margin: 8px 0 0; color: var(--muted); }
.ativar-grid {
  display: grid;
  gap: 14px;
}
.ativar-card { padding: 18px; }
.ativar-who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.ativar-who strong {
  font-size: .92rem;
  line-height: 1.45;
  word-break: break-word;
}
.ativar-who span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.ativar-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.ativar-badge.ok {
  background: rgba(18,183,106,.16);
  color: var(--accent-2);
}
.ativar-badge.off {
  background: rgba(255,80,80,.14);
  color: #ff8a8a;
}
.ativar-box {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.ativar-box p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.ativar-box-k {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.ativar-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 1.05rem;
}
.ativar-role-wrap { margin: 14px 0; }
.ativar-role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ativar-role-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  cursor: pointer;
  text-align: center;
}
.ativar-role-btn span { font-size: .96rem; font-weight: 800; }
.ativar-role-btn.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .16);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.ativar-role-btn.active span { color: var(--accent-2); }
.ativar-role-fixed {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: baseline;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 13px;
  background: rgba(var(--accent-rgb), .1);
}
.ativar-role-fixed strong { color: var(--accent-2); }
.ativar-role-fixed span { color: var(--muted); font-size: .8rem; }
.ativar-help { margin: 8px 0 0; font-size: .78rem; }
.ativar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.ativar-actions .btn { width: 100%; min-height: 46px; margin: 0; }
.ativar-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
}
.ativar-result.ok {
  background: rgba(18,183,106,.14);
  color: var(--accent-2);
}
.ativar-result.err {
  background: rgba(255,80,80,.12);
  color: #ff8a8a;
}
.ativar-meus {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ativar-meus p { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.ativar-how h2 {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
}
.ativar-rules-lead {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: .86rem;
}
.ativar-rules {
  display: grid;
  gap: 9px;
}
.ativar-rule {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.ativar-rule.allowed { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.ativar-rule.blocked { border-color: rgba(255,80,80,.3); }
.ativar-rule-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.ativar-rule-head strong { font-size: .9rem; line-height: 1.25; }
.ativar-rule-head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}
.ativar-rule.allowed .ativar-rule-head span {
  color: var(--accent-2);
  background: rgba(18,183,106,.15);
}
.ativar-rule.blocked .ativar-rule-head span {
  color: #ff8a8a;
  background: rgba(255,80,80,.13);
}
.ativar-rule p {
  margin: 7px 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}
.ativar-rule > b {
  display: block;
  color: var(--text);
  font-size: .78rem;
  line-height: 1.35;
}
.ativar-rule-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 11px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(var(--accent-rgb), .12);
}
.ativar-rule-note strong { color: var(--accent-2); font-size: .82rem; }
.ativar-rule-note span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.ativar-how ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: .92rem;
}
.ativar-how li { margin: 0 0 8px; }
.ativar-how strong { color: var(--text); }
.ativar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.ativar-stats div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.ativar-stats small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ativar-stats b { font-size: 1.2rem; }
.ativar-sub {
  margin: 18px 0 8px;
  font-size: .95rem;
  font-weight: 800;
}
.ativar-jornada {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}
.ativar-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ativar-meta:last-child { border-bottom: 0; }
.ativar-meta .muted { font-size: .82rem; }
.ativar-bonus { margin-top: 14px; }
.ativar-bonus h2 {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
}
.ativar-bonus p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.ativar-bonus ul {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.ativar-bonus li { margin: 0 0 6px; }
.ativar-bonus strong { color: var(--text); }
.ativar-id-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ativar-id-row:last-of-type { border-bottom: 0; }
@media (min-width: 860px) {
  .ativar-grid { grid-template-columns: 1.08fr .92fr; align-items: start; }
}

.demo-card h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}
.demo-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(var(--accent-rgb), .16);
}
.demo-houses { margin: 4px 0 14px; }
.demo-house {
  flex: 1;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-card) 88%, #000);
  font-weight: 800;
  font-size: .86rem;
}
.demo-house small {
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted);
}
.demo-house.is-on {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .18);
  color: var(--accent-2);
}
.demo-house.is-off { opacity: .45; }
.demo-picked {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 82%, #000);
}
.demo-picked .casa-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.demo-qty-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-weight: 700;
}
.demo-qty-head span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.demo-stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.demo-stepper button {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card-2);
  font-size: 1.3rem;
  font-weight: 800;
}
.demo-stepper b {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
}
.demo-page input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 0 0 16px;
}
.demo-saldo-field { margin: 0 0 14px; }
.demo-saldo-prefix {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.demo-today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.demo-today-head .m-sec { margin: 18px 0 8px; }
.demo-acc {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.demo-acc:last-child { border-bottom: 0; }

/* Painel 2026 — hierarquia visual, navegação lateral e acesso renovado */
:root {
  --bg: #07100c;
  --bg-elev: #0d1812;
  --bg-card: #101d16;
  --bg-card-2: #14241b;
  --text: #f1f7f3;
  --muted: #91a49a;
  --line: rgba(195, 255, 216, .105);
  --accent: #1ed978;
  --accent-2: #83f5ad;
  --accent-deep: #0b934e;
  --accent-rgb: 30, 217, 120;
  --shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

body {
  background:
    radial-gradient(900px 540px at 8% -8%, rgba(30, 217, 120, .16), transparent 60%),
    radial-gradient(760px 520px at 104% 10%, rgba(30, 217, 120, .075), transparent 62%),
    linear-gradient(180deg, #08110d 0%, #06100b 48%, #07100c 100%);
}

body::before {
  opacity: .026;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.desktop-nav-brand,
.desktop-nav-label,
.desktop-nav-status { display: none; }

.m-card,
.m-pay,
.m-team,
.m-hist {
  border-color: var(--line);
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(131, 245, 173, .045), transparent 62%),
    linear-gradient(145deg, rgba(18, 35, 26, .98), rgba(12, 24, 17, .98));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .035);
}

.m-card {
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
}

.m-card:hover {
  border-color: rgba(131, 245, 173, .17);
}

.m-kicker {
  color: #9bb0a4;
  font-size: .68rem;
  letter-spacing: .11em;
}

.m-sec {
  margin: 24px 0 11px;
  color: #eaf6ee;
  font-size: .96rem;
  letter-spacing: -.015em;
}

.m-head-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.m-head-copy span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.m-head-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-logo .brand-mark {
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(30, 217, 120, .2);
}

.m-head-actions .icon-btn {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: rgba(17, 31, 23, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.m-sticky {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .19);
  backdrop-filter: blur(22px) saturate(140%);
}

.m-sticky-saldo {
  padding: 13px 14px;
  border: 1px solid rgba(131, 245, 173, .11);
  border-radius: 17px;
  background:
    radial-gradient(260px 90px at 0 0, rgba(30, 217, 120, .11), transparent 70%),
    rgba(16, 31, 22, .82);
}

.m-sticky-val { color: #ecfff2; }

.m-period button,
.plat-pills button {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}

.m-period button.on,
.plat-pills button.on {
  color: #052514;
  border-color: transparent;
  background: linear-gradient(135deg, #a6ffc3, #43e88b 48%, #17b967);
  box-shadow: 0 7px 20px rgba(30, 217, 120, .18);
}

.m-overview-grid {
  display: grid;
  gap: 14px;
}

.m-overview-grid > .m-card { margin-bottom: 0; }

.m-ledger {
  position: relative;
  overflow: hidden;
}

.m-ledger::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -90px;
  border: 1px solid rgba(131, 245, 173, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(131, 245, 173, .018), 0 0 0 56px rgba(131, 245, 173, .012);
  pointer-events: none;
}

.m-ledger-grid > div,
.m-today-grid > div {
  position: relative;
  padding: 13px 14px;
  border: 1px solid rgba(195, 255, 216, .075);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.m-ledger-grid b,
.m-today-grid b {
  display: block;
  color: #effaf2;
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.m-ledger-grid > div:first-child {
  border-color: rgba(131, 245, 173, .18);
  background: linear-gradient(135deg, rgba(30, 217, 120, .11), rgba(30, 217, 120, .025));
}

.m-ledger-grid > div:first-child b { color: var(--accent-2); }

.m-today {
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(255, 206, 92, .09), transparent 68%),
    linear-gradient(145deg, rgba(22, 38, 28, .98), rgba(12, 24, 17, .98));
}

.m-chart-bars {
  gap: 10px;
  min-height: 170px;
}

.m-chart-col {
  min-height: 164px;
  border-color: rgba(195, 255, 216, .07);
  background: rgba(255, 255, 255, .018);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.m-chart-col:hover { transform: translateY(-2px); border-color: rgba(131, 245, 173, .2); }
.m-chart-col i { background: linear-gradient(180deg, #a2ffc0, #20d979 60%, #0b934e); box-shadow: 0 8px 18px rgba(30, 217, 120, .13); }
.m-chart-col.on { background: rgba(30, 217, 120, .07); }

.m-lvl-grid .m-team {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  transition: transform .18s ease, border-color .18s ease;
}

.m-lvl-grid .m-team:hover { transform: translateY(-2px); border-color: rgba(131, 245, 173, .2); }
.m-lvl-grid .m-team::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-2), transparent 82%);
}
.m-lvl-grid .m-team:nth-child(2)::before { background: linear-gradient(to bottom, #73b7ff, transparent 82%); }
.m-lvl-grid .m-team:nth-child(3)::before { background: linear-gradient(to bottom, #f0ca67, transparent 82%); }

.btn-primary {
  color: #042313;
  background: linear-gradient(135deg, #a8ffc5 0%, #43e98c 46%, #12b666 100%);
  box-shadow: 0 10px 25px rgba(30, 217, 120, .2), inset 0 1px rgba(255, 255, 255, .45);
}

.btn-primary:hover { box-shadow: 0 13px 30px rgba(30, 217, 120, .28), inset 0 1px rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .025); }

.modal {
  border-color: rgba(131, 245, 173, .14);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(520px 210px at 50% 0%, rgba(30, 217, 120, .13), transparent 64%),
    #0c1811;
}

/* Tela de acesso */
.login-wrap {
  width: min(1040px, 100%);
  padding: 30px;
}

.login-wrap > .login-card { width: min(450px, 100%); }

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  width: 100%;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(131, 245, 173, .14);
  border-radius: 32px;
  background: #0c1811;
  box-shadow: 0 38px 110px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .04);
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 40px;
  overflow: hidden;
  background:
    radial-gradient(440px 360px at 78% 22%, rgba(131, 245, 173, .17), transparent 64%),
    radial-gradient(380px 280px at 10% 105%, rgba(30, 217, 120, .25), transparent 65%),
    linear-gradient(145deg, #103a24 0%, #092519 50%, #07170f 100%);
}

.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 50%;
  pointer-events: none;
}

.login-showcase::before { width: 430px; height: 430px; right: -210px; top: -185px; box-shadow: 0 0 0 54px rgba(255,255,255,.018), 0 0 0 108px rgba(255,255,255,.012); }
.login-showcase::after { width: 240px; height: 240px; left: -145px; bottom: -135px; box-shadow: 0 0 0 42px rgba(131,245,173,.018); }

.login-showcase-brand,
.login-showcase-copy,
.login-showcase-features { position: relative; z-index: 1; }

.login-showcase-brand { display: flex; align-items: center; gap: 12px; }
.login-showcase-brand img { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.login-showcase-brand strong { font-size: 1.1rem; letter-spacing: -.025em; }

.login-showcase-copy { max-width: 480px; }
.login-showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(131, 245, 173, .16);
  border-radius: 999px;
  color: #c8f7d8;
  background: rgba(131, 245, 173, .07);
  font-size: .72rem;
  font-weight: 700;
}
.login-showcase-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(131,245,173,.11); }
.login-showcase-copy h1 { margin: 20px 0 16px; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.065em; }
.login-showcase-copy h1 em { color: var(--accent-2); font-style: normal; }
.login-showcase-copy p { max-width: 430px; margin: 0; color: rgba(226, 245, 233, .68); font-size: .96rem; line-height: 1.65; }

.login-showcase-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-showcase-features div { padding: 13px 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 15px; background: rgba(0,0,0,.13); }
.login-showcase-features b { display: block; margin-bottom: 6px; color: var(--accent-2); font-size: .68rem; letter-spacing: .08em; }
.login-showcase-features span { color: rgba(235,250,240,.8); font-size: .72rem; font-weight: 700; line-height: 1.35; }

.login-layout .login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 56px 46px 42px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(360px 220px at 50% 0, rgba(30, 217, 120, .09), transparent 68%),
    #0d1912;
  box-shadow: none;
}

.login-layout .login-card::before { display: none; }
.login-back { position: absolute; left: 22px; top: 22px; }
.login-mobile-brand { display: none; }
.login-copy { margin-bottom: 28px; }
.login-kicker { display: block; margin-bottom: 10px; color: var(--accent-2); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.login-copy h2 { margin: 0 0 9px; font-size: 1.85rem; letter-spacing: -.045em; }
.login-copy p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.login-layout .field { margin-bottom: 17px; }
.login-layout .field label { margin-bottom: 8px; color: #b4c5bb; font-size: .76rem; }
.login-layout .field .control { min-height: 54px; border-radius: 15px; background: rgba(3, 12, 7, .58); }
.login-layout .field input { padding: 16px 0; }
.login-submit { min-height: 54px; margin-top: 4px; border-radius: 15px; }
.login-layout .secure-note { margin: 20px 0 0; color: #82968a; }
.login-layout .secure-note span { color: var(--accent-2); }

@media (max-width: 760px) {
  .login-wrap { width: min(450px, 100%); padding: 20px 14px; }
  .login-layout { display: block; min-height: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .login-showcase { display: none; }
  .login-layout .login-card { padding: 84px 23px 26px; border: 1px solid rgba(131,245,173,.16); border-radius: 28px; box-shadow: 0 28px 80px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.04); }
  .login-mobile-brand { display: flex; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); }
  .login-mobile-brand .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .login-mobile-brand .brand-title { display: none; }
  .login-copy { margin-top: 22px; text-align: center; }
  .login-copy h2 { font-size: 1.65rem; }
}

@media (max-width: 620px) {
  .m-card { padding: 15px; border-radius: 18px; }
  .m-ledger-grid > div,
  .m-today-grid > div { padding: 11px 10px; }
  .m-ledger-grid b,
  .m-today-grid b { font-size: .96rem; }
  .m-sticky { padding-top: calc(8px + env(safe-area-inset-top)); }
}

/* O celular mantém a barra inferior; telas grandes recebem navegação lateral. */
@media (min-width: 960px) {
  .shell,
  .shell.home,
  .shell.m-home,
  .shell.ativar-page {
    width: min(1320px, 100%);
    padding: 24px 30px 48px 270px;
  }

  .bottom-nav {
    left: max(20px, calc((100vw - 1320px) / 2 + 20px));
    right: auto;
    top: 20px;
    bottom: 20px;
    transform: none;
    width: 220px;
    height: auto;
    padding: 18px 13px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border: 1px solid rgba(131, 245, 173, .13);
    border-radius: 25px;
    background:
      radial-gradient(240px 170px at 50% 0, rgba(30, 217, 120, .12), transparent 72%),
      rgba(11, 23, 16, .94);
    box-shadow: 0 28px 75px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(26px) saturate(140%);
  }

  .desktop-nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 3px 5px 22px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .desktop-nav-brand img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; box-shadow: 0 10px 26px rgba(30,217,120,.22); }
  .desktop-nav-brand div { min-width: 0; }
  .desktop-nav-brand strong { display: block; overflow: hidden; font-size: .9rem; letter-spacing: -.025em; text-overflow: ellipsis; }
  .desktop-nav-brand span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-nav-label { display: block; padding: 0 10px 7px; color: #65796d; font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

  .bottom-nav > button,
  .bottom-nav > a {
    min-height: 45px;
    padding: 0 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #8fa196;
    font-size: .79rem;
    font-weight: 700;
    text-align: left;
  }

  .bottom-nav > button .ico,
  .bottom-nav > a .ico { width: 19px; height: 19px; flex: 0 0 19px; }
  .bottom-nav > button .ico svg,
  .bottom-nav > a .ico svg { width: 19px; height: 19px; }
  .bottom-nav > button:hover,
  .bottom-nav > a:hover { color: #eaf6ee; border-color: rgba(131,245,173,.08); background: rgba(255,255,255,.025); }
  .bottom-nav > button.active,
  .bottom-nav > a.active { color: #dffff0; border-color: rgba(131,245,173,.13); background: linear-gradient(90deg, rgba(30,217,120,.14), rgba(30,217,120,.035)); }
  .bottom-nav > button.active .ico,
  .bottom-nav > a.active .ico { color: var(--accent-2); }

  .desktop-nav-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 12px 10px 4px;
    color: #72877b;
    font-size: .64rem;
    font-weight: 700;
  }
  .desktop-nav-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(30,217,120,.1); }

  .m-sticky {
    top: 14px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(131,245,173,.1);
    border-radius: 21px;
    background: rgba(9, 19, 13, .86);
  }

  .m-head { margin-bottom: 10px; }
  .m-logo .brand-mark { display: none; }
  .m-head-copy span { font-size: .65rem; }
  .m-head-copy strong { font-size: 1.24rem; letter-spacing: -.03em; }
  .m-sticky-saldo { margin: 8px 0 11px; }

  .m-overview-grid { grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); }
  .m-overview-grid .m-today-grid { grid-template-columns: 1fr; }
  .m-overview-grid .m-today { height: 100%; }
  .m-lvl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .m-ledger-grid { gap: 12px; }
  .m-chart-bars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rede-casas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .m-ledger-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Estrutura inspirada no painel de referência: topo, cartões e navegação flutuante. */
.page-intro,
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.page-intro { margin: 8px 0 24px; }
.page-intro > div > span,
.manager-action-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-intro h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.45rem); letter-spacing: -.055em; }
.page-intro p { margin: 9px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.page-intro .btn { width: auto; flex: 0 0 auto; }

.home-section-head { margin: 27px 0 12px; }
.home-section-head h2 { margin: 0; color: var(--text); font-size: 1.08rem; letter-spacing: -.025em; }
.home-section-head p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.home-section-head > span,
.home-section-head > button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: .67rem;
  font-weight: 700;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 14px;
  margin-bottom: 14px;
}

.home-launch-card,
.home-balance-card {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  border: 1px solid rgba(131,245,173,.13);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.04);
}

.home-launch-card {
  padding: 25px;
  background:
    radial-gradient(360px 260px at 95% 50%, rgba(131,245,173,.22), transparent 66%),
    radial-gradient(270px 230px at 0 100%, rgba(30,217,120,.18), transparent 70%),
    linear-gradient(135deg, #17482c 0%, #0d2d1d 48%, #0a1911 100%);
}

.home-launch-card::after {
  content: "988";
  position: absolute;
  right: -12px;
  bottom: -28px;
  color: rgba(255,255,255,.035);
  font: 900 9rem/1 var(--display);
  letter-spacing: -.12em;
  pointer-events: none;
}

.home-launch-content { position: relative; z-index: 1; max-width: 620px; }
.home-launch-kicker { color: #b8ffd0; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.home-launch-title { display: flex; align-items: center; gap: 13px; margin: 12px 0 14px; }
.home-launch-title img { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; box-shadow: 0 13px 30px rgba(0,0,0,.3); }
.home-launch-title small { color: rgba(222,245,230,.65); font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.home-launch-title h2 { margin: 3px 0 0; font-size: 1.8rem; letter-spacing: -.05em; }
.home-rate-row { display: flex; flex-wrap: wrap; gap: 7px; }
.home-rate-row span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: rgba(231,250,238,.72); background: rgba(255,255,255,.045); font-size: .68rem; }
.home-rate-row b { display: block; margin-top: 2px; color: #fff; font-size: .94rem; }
.home-launch-card p { margin: 13px 0 15px; color: rgba(225,245,232,.65); font-size: .78rem; }
.home-launch-btn { width: auto; min-height: 41px; padding: 0 17px; color: #073018; background: #f2fff6; box-shadow: 0 10px 24px rgba(0,0,0,.17); }

.home-balance-card {
  padding: 26px;
  background:
    radial-gradient(300px 180px at 100% 0, rgba(131,245,173,.08), transparent 70%),
    linear-gradient(145deg, #131f18, #0e1711);
}
.home-balance-value { margin: 8px 0 23px; color: #f5fff8; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.home-balance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.home-balance-actions .btn { min-height: 45px; padding: 10px 12px; font-size: .75rem; }
.home-balance-card .m-hint { margin: 16px 0 0; }

.home-period-wrap { max-width: 560px; margin: 0 0 14px auto; }
.home-period-wrap .m-period { margin: 0; }
.home-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 14px; }
.home-analytics-grid > .m-card { margin-bottom: 0; }
.home-analytics-grid .m-today-grid { grid-template-columns: 1fr; }
.home-analytics-grid .m-today-grid > div { min-height: 57px; }

.home-house-list { padding: 10px; }
.home-house-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(120px, .65fr) minmax(245px, 1fr) 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 13px;
  color: inherit;
  text-align: left;
  transition: background .16s ease, transform .16s ease;
}
.home-house-row:hover { background: rgba(255,255,255,.025); transform: translateX(2px); }
.home-house-row:last-of-type { border-bottom: 0; }
.home-house-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.home-house-name .casa-logo { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; object-fit: cover; }
.home-house-name b { display: block; font-size: .87rem; }
.home-house-name small,
.home-house-total small { display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; }
.home-house-total b { display: block; margin-top: 3px; color: #e7f8ed; font-size: .82rem; }
.home-house-rates { display: flex; justify-content: flex-end; gap: 6px; }
.home-house-rates i { padding: 6px 8px; border: 1px solid rgba(195,255,216,.1); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); font-size: .61rem; font-style: normal; white-space: nowrap; }
.home-house-rates b { color: var(--accent-2); font-size: .75rem; }
.home-house-arrow { color: var(--muted); font-size: 1.4rem; }
.home-house-note { margin: 10px 11px 4px; color: var(--muted); font-size: .68rem; line-height: 1.45; }

/* Rede */
.rede-houses-head { margin-top: 0; }
.rede-house-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; margin-bottom: 24px; }
.rede-house-gallery .casa-card.has-banner { min-height: 210px; border-radius: 18px; }
.rede-house-gallery .casa-banner-media { height: 105px; padding-top: 20px; background: radial-gradient(circle at 50% 55%, rgba(131,245,173,.075), transparent 64%); }
.rede-house-gallery .casa-banner-img { width: 68px; height: 68px; margin: 0 auto; border-radius: 15px; object-fit: cover; }
.rede-house-gallery .casa-banner-media .status { top: auto; right: 50%; bottom: 2px; transform: translateX(50%); padding: 4px 7px; font-size: .55rem; white-space: nowrap; }
.rede-house-gallery .casa-card-body { padding: 10px 11px 12px; text-align: center; }
.rede-house-gallery .casa-title-row { justify-content: center; }
.rede-house-gallery .casa-title-row .row { display: block; }
.rede-house-gallery .casa-title-row .casa-logo,
.rede-house-gallery .casa-open,
.rede-house-gallery .casa-stats,
.rede-house-gallery .casa-mini { display: none; }
.rede-house-gallery .casa-card.has-banner .name { font-size: .8rem; }
.rede-house-gallery .casa-card.has-banner .muted { font-size: .62rem !important; }

.rede-platform-filter { margin-top: 4px; padding: 22px; }
.rede-platform-filter h2 { margin: 5px 0 0; font-size: 1.25rem; letter-spacing: -.03em; }
.rede-platform-filter > .m-card { margin: 14px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rede-platform-filter > .m-card .m-kicker { display: none; }
.rede-platform-filter .plat-pills { margin-top: 16px; }
.rede-flow-card { min-height: 360px; padding: 22px; }
.rede-flow-card .fluxo-svg { height: 220px; }
.rede-insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rede-insights-grid > .m-card,
.rede-insights-grid > div > .m-card { height: calc(100% - 34px); }
.rede-composition-body { display: grid; grid-template-columns: 165px 1fr; align-items: center; gap: 18px; }
.rede-composition-body .donut-wrap { width: 155px; height: 155px; margin: 10px 0 0; }
.donut-legend b { float: right; margin-left: 14px; color: var(--text); }
.rede-level-card { padding: 22px; }
.rede-ranking-grid { align-items: stretch; }
.rede-ranking-grid > div { min-width: 0; }
.rede-ranking-grid .m-sec { margin-top: 8px; }
.rede-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.rede-actions-grid > div > .m-sec { margin-top: 0; }
.rede-action-card { min-height: 100%; padding: 22px; }
.rede-action-card h2 { margin: 6px 0 8px; font-size: 1.25rem; letter-spacing: -.03em; }
.detail-lvls { gap: 11px; }
.lvl-detail { min-height: 94px; border-radius: 17px; background: linear-gradient(145deg, rgba(18,34,25,.96), rgba(11,22,15,.96)); }

/* Gerência */
.manager-intro { align-items: center; }
.manager-result-card { padding: 22px; }
.manager-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.manager-card-head > span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .63rem; font-weight: 700; white-space: nowrap; }
.manager-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px; }
.manager-metrics > div { min-height: 95px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.manager-metrics small { display: block; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.manager-metrics b { display: block; margin: 8px 0 5px; font-size: 1.18rem; letter-spacing: -.035em; }
.manager-metrics span { color: #708379; font-size: .66rem; }
.manager-performance-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.manager-performance-grid > .m-card { margin-bottom: 0; }
.manager-house-performance { padding: 22px; }
.manager-house-bar { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 17px; padding-bottom: 10px; overflow: hidden; }
.manager-house-bar span { color: var(--muted); font-size: .75rem; }
.manager-house-bar b { font-size: .78rem; }
.manager-house-bar i { position: absolute; left: 0; bottom: 0; height: 5px; min-width: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.manager-action-card { position: relative; margin-top: 14px; padding: 25px; overflow: hidden; border-color: rgba(30,217,120,.34); background: radial-gradient(420px 220px at 100% 0, rgba(30,217,120,.14), transparent 70%), linear-gradient(145deg, #17271d, #111a14); }
.manager-action-card::after { content: "ID"; position: absolute; right: 17px; top: -10px; color: rgba(255,255,255,.025); font: 900 7.5rem/1 var(--display); pointer-events: none; }
.manager-action-card h2 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.045em; }
.manager-action-card p { position: relative; z-index: 1; max-width: 680px; margin: 0 0 18px; color: var(--muted); font-size: .82rem; }
.manager-action-buttons { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 9px; max-width: 700px; }
.manager-action-buttons .btn { min-height: 48px; font-size: .75rem; }
.manager-affiliate-card {
  position: relative;
  margin-top: 14px;
  padding: 24px;
  overflow: hidden;
  border-color: rgba(96,165,250,.3);
  background:
    radial-gradient(520px 240px at 100% 0, rgba(59,130,246,.16), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--bg-card-2) 82%, #102348), var(--bg-card));
}
.manager-affiliate-title { position: relative; display: flex; justify-content: space-between; gap: 18px; }
.manager-affiliate-title > div { position: relative; z-index: 1; }
.manager-affiliate-title h2,
.manager-dossier-head h2 { margin: 5px 0 7px; font-size: 1.55rem; letter-spacing: -.045em; }
.manager-affiliate-title p,
.manager-dossier-head p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.manager-id-watermark { position: absolute; top: -38px; right: -5px; color: rgba(147,197,253,.045); font: 900 8rem/1 var(--display); pointer-events: none; }
.manager-search-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(96,165,250,.34);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 12px 34px rgba(0,6,24,.22);
}
.manager-search-form:focus-within { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(59,130,246,.12), 0 14px 38px rgba(0,6,24,.25); }
.manager-search-form > span { color: #7db1ff; font-size: 1.3rem; line-height: 1; }
.manager-search-form input { min-width: 0; height: 47px; padding: 0 5px; border: 0; outline: 0; color: var(--text); background: transparent; font: 700 .9rem/1 var(--font); }
.manager-search-form input::placeholder { color: var(--muted); font-weight: 500; }
.manager-search-form .btn { width: 116px; min-height: 45px; border-radius: 12px; }
.manager-affiliate-empty { min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; padding: 24px; border: 1px dashed var(--line); border-radius: 17px; text-align: center; background: rgba(255,255,255,.012); }
.manager-affiliate-empty > span:not(.spinner) { color: #7daeff; font-size: 2rem; }
.manager-affiliate-empty b { font-size: .86rem; }
.manager-affiliate-empty p { max-width: 540px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.spinner { display: inline-block; width: 25px; height: 25px; border: 3px solid rgba(96,165,250,.2); border-top-color: #60a5fa; border-radius: 50%; animation: manager-spin .8s linear infinite; }
@keyframes manager-spin { to { transform: rotate(360deg); } }
.manager-search-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 2px 10px; }
.manager-search-summary span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .62rem; }
.manager-search-summary span:first-child { color: #bfdbfe; border-color: rgba(96,165,250,.24); background: rgba(59,130,246,.08); }
.manager-search-summary button { margin-left: auto; border: 0; color: #8dbaff; background: transparent; font: 700 .65rem/1 var(--font); cursor: pointer; }
.manager-affiliate-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.manager-affiliate-result { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--bg-card) 90%, transparent); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.manager-affiliate-result:hover { transform: translateY(-2px); border-color: rgba(96,165,250,.32); box-shadow: 0 14px 34px rgba(0,7,27,.2); }
.manager-affiliate-result.is-active { border-color: rgba(59,130,246,.28); background: linear-gradient(145deg, rgba(59,130,246,.075), color-mix(in srgb, var(--bg-card) 94%, transparent)); }
.manager-affiliate-result > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.manager-affiliate-house { display: flex; align-items: center; gap: 9px; min-width: 0; }
.manager-affiliate-house .casa-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; object-fit: cover; }
.manager-affiliate-house .casa-logo.fallback { display: grid; place-items: center; color: #dbeafe; background: linear-gradient(135deg, #2563eb, #0ea5e9); font-size: .64rem; font-weight: 900; }
.manager-affiliate-house b { display: block; font-size: .77rem; }
.manager-affiliate-house small { display: block; margin-top: 2px; color: var(--muted); font-size: .58rem; }
.manager-member-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.manager-member-status i { width: 6px; height: 6px; border-radius: 50%; background: #7b879e; }
.manager-member-status.on { color: #9ddcff; border-color: rgba(56,189,248,.26); background: rgba(14,165,233,.08); }
.manager-member-status.on i { background: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,.1); }
.manager-affiliate-person { display: flex; align-items: center; gap: 11px; margin-top: 13px; }
.manager-member-avatar { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border: 1px solid rgba(96,165,250,.28); border-radius: 13px; color: #dbeafe; background: linear-gradient(145deg, rgba(59,130,246,.28), rgba(37,99,235,.08)); font-size: .72rem; font-weight: 900; }
.manager-member-avatar.large { width: 58px; height: 58px; flex-basis: 58px; border-radius: 17px; font-size: .92rem; }
.manager-affiliate-person h3,
.manager-dossier-identity h3 { margin: 0; font-size: .88rem; }
.manager-affiliate-person p,
.manager-dossier-identity p { margin: 4px 0 0; color: var(--muted); font-size: .63rem; }
.manager-member-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.manager-member-tags span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.015); font-size: .57rem; }
.manager-member-tags .tag-on { color: #9ddcff; border-color: rgba(56,189,248,.25); }
.manager-member-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.manager-member-actions .btn { min-height: 40px; font-size: .67rem; }
.manager-deactivate { color: #fca5a5; border-color: rgba(248,113,113,.22); }
.manager-deactivate:hover { color: #fecaca; border-color: rgba(248,113,113,.38); background: rgba(248,113,113,.075); }
.manager-dossier { margin-top: 14px; padding: 24px; scroll-margin-top: 20px; border-color: rgba(96,165,250,.25); }
.manager-dossier-loading { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.manager-dossier-loading small { color: var(--muted); }
.manager-dossier-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.manager-dossier-head .icon-btn { flex: 0 0 auto; font-size: 1.4rem; }
.manager-dossier-identity { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: rgba(59,130,246,.04); }
.manager-dossier-identity .manager-member-tags { margin-top: 8px; }
.manager-dossier-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.manager-dossier-metrics > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.016); }
.manager-dossier-metrics small { display: block; color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.manager-dossier-metrics b { display: block; margin: 7px 0 4px; font-size: .96rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.manager-dossier-metrics span { color: var(--muted); font-size: .55rem; }
.manager-dossier-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 11px; margin-top: 12px; }
.manager-dossier-grid > div { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.012); }
.manager-dossier-grid h3 { margin: 0 0 12px; font-size: .78rem; }
.manager-dossier-table table { width: 100%; border-collapse: collapse; font-size: .64rem; }
.manager-dossier-table th { padding: 8px 7px; color: var(--muted); font-size: .54rem; text-align: left; text-transform: uppercase; }
.manager-dossier-table td { padding: 10px 7px; border-top: 1px solid var(--line); white-space: nowrap; }
.manager-dossier-table td:last-child { color: #93c5fd; font-weight: 800; }
.manager-dossier-top-row { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.manager-dossier-top-row:first-of-type { border-top: 0; }
.manager-dossier-top-row > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #bfdbfe; background: rgba(59,130,246,.12); font-size: .6rem; font-weight: 900; }
.manager-dossier-top-row b { display: block; font-size: .67rem; }
.manager-dossier-top-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .54rem; }
.manager-dossier-top-row strong { color: #7dd3fc; font-size: .65rem; white-space: nowrap; }
.manager-dossier-note { margin: 12px 0 0; color: var(--muted); font-size: .62rem; }
.manager-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.manager-settings-card { margin-bottom: 0; padding: 20px; }
.manager-settings-card > .btn { margin-top: 12px; }
.manager-settings-card .copy-row .btn { width: auto; }
.manager-rule-note { margin: 14px 0 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.bottom-nav.nav-gerente { grid-template-columns: repeat(6, 1fr); }

/* A referência usa navegação inferior flutuante também no computador. */
@media (min-width: 960px) {
  .shell,
  .shell.home,
  .shell.m-home,
  .shell.ativar-page {
    width: min(1160px, 100%);
    padding: 18px 24px 112px;
  }

  .desktop-nav-brand,
  .desktop-nav-label,
  .desktop-nav-status { display: none; }

  .bottom-nav {
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(590px, calc(100% - 28px));
    height: 68px;
    padding: 5px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    border: 1px solid rgba(131,245,173,.14);
    border-radius: 22px;
    background: rgba(12, 22, 16, .94);
    box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.04);
  }

  .bottom-nav > button,
  .bottom-nav > a {
    min-height: 56px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: .58rem;
    text-align: center;
  }

  .bottom-nav > button .ico,
  .bottom-nav > a .ico,
  .bottom-nav > button .ico svg,
  .bottom-nav > a .ico svg { width: 18px; height: 18px; }
  .bottom-nav > button.active,
  .bottom-nav > a.active { background: rgba(30,217,120,.11); border-color: rgba(131,245,173,.2); }
  .bottom-nav.nav-gerente {
    width: min(680px, calc(100% - 28px));
    grid-template-columns: repeat(6, 1fr);
  }

  .m-sticky {
    top: 0;
    margin: 0 0 18px;
    padding: 13px 0 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: color-mix(in srgb, var(--bg) 91%, transparent);
    box-shadow: none;
  }
  .m-logo .brand-mark { display: block; }
  .m-head-copy strong { font-size: 1.07rem; }
  .m-sticky .m-period { max-width: 560px; margin: 12px 0 0 auto; }
}

@media (max-width: 860px) {
  .home-hero-grid,
  .home-analytics-grid,
  .rede-insights-grid,
  .rede-actions-grid,
  .manager-performance-grid,
  .manager-settings-grid,
  .manager-dossier-grid { grid-template-columns: 1fr; }
  .home-hero-grid { gap: 12px; }
  .home-launch-card,
  .home-balance-card { min-height: 0; }
  .rede-insights-grid > .m-card,
  .rede-insights-grid > div > .m-card { height: auto; }
  .manager-metrics { grid-template-columns: 1fr 1fr; }
  .manager-dossier-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-hero-grid { margin-top: 2px; }
  .home-launch-card,
  .home-balance-card { padding: 19px; border-radius: 20px; }
  .home-launch-title h2 { font-size: 1.5rem; }
  .home-launch-title img { width: 54px; height: 54px; }
  .home-rate-row span { flex: 1; min-width: 88px; text-align: center; }
  .home-balance-value { font-size: 2.25rem; }
  .home-period-wrap { max-width: none; }
  .home-house-row { grid-template-columns: 1fr auto 18px; gap: 9px; padding: 10px 8px; }
  .home-house-total { display: none; }
  .home-house-rates { grid-column: 1 / -1; justify-content: flex-start; padding-left: 53px; }
  .home-house-arrow { grid-column: 3; grid-row: 1; }
  .rede-house-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rede-platform-filter { padding: 17px; }
  .rede-composition-body { grid-template-columns: 1fr; }
  .rede-composition-body .donut-wrap { margin: 10px auto; }
  .manager-metrics { grid-template-columns: 1fr 1fr; }
  .manager-action-buttons { grid-template-columns: 1fr; }
  .manager-affiliate-card,
  .manager-dossier { padding: 17px; }
  .manager-search-form { grid-template-columns: 21px 1fr; padding: 7px 10px 9px; }
  .manager-search-form .btn { grid-column: 1 / -1; width: 100%; }
  .manager-affiliate-results { grid-template-columns: 1fr; }
  .manager-dossier-metrics { grid-template-columns: 1fr 1fr; }
  .manager-dossier-identity { align-items: flex-start; }
  .manager-card-head { display: block; }
  .manager-card-head > span { display: inline-flex; margin-top: 8px; }
  .page-intro { align-items: flex-start; }
  .bottom-nav.nav-gerente { grid-template-columns: repeat(6, 1fr); }
  .bottom-nav.nav-gerente button { font-size: .47rem; }
}

@media (max-width: 390px) {
  .home-balance-actions,
  .manager-metrics,
  .manager-dossier-metrics { grid-template-columns: 1fr; }
  .home-house-rates i { padding: 5px 6px; font-size: .56rem; }
}

/* Saída segura da conta */
.btn-logout {
  color: #ff9aa9;
  border: 1px solid rgba(255, 84, 112, .22);
  background: rgba(255, 84, 112, .075);
  box-shadow: none;
}
.btn-logout:hover {
  color: #ffdce2;
  border-color: rgba(255, 84, 112, .38);
  background: rgba(255, 84, 112, .12);
}
.btn-danger {
  color: #fff;
  border: 1px solid rgba(255, 111, 133, .44);
  background: linear-gradient(135deg, #ff6f85, #ef3654 58%, #bd1f3a);
  box-shadow: 0 12px 28px rgba(239, 54, 84, .24), inset 0 1px rgba(255,255,255,.22);
}
.btn-danger:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-danger:disabled,
.btn-logout:disabled { cursor: wait; opacity: .62; }

.logout-back {
  place-items: center;
  padding: 18px;
  background: rgba(0, 7, 3, .78);
  backdrop-filter: blur(14px);
}
.logout-modal {
  width: min(430px, 100%);
  max-height: none;
  padding: 28px;
  overflow: visible;
  border-color: rgba(255, 111, 133, .18);
  border-radius: 25px;
  background:
    radial-gradient(330px 180px at 50% 0%, rgba(255, 84, 112, .095), transparent 70%),
    linear-gradient(150deg, #142019, #0d1711);
  box-shadow: 0 32px 90px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.04);
  text-align: center;
  animation: logoutIn .22s ease both;
}
@keyframes logoutIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.logout-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border: 1px solid rgba(255,84,112,.22);
  border-radius: 17px;
  color: #ff8da0;
  background: rgba(255,84,112,.09);
  font-size: 1.45rem;
  box-shadow: 0 12px 28px rgba(239,54,84,.1);
}
.logout-kicker { display: block; margin-bottom: 8px; color: #ff8da0; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.logout-modal h3 { margin: 0 0 10px; font-size: 1.36rem; letter-spacing: -.035em; }
.logout-modal p { margin: 0 auto; max-width: 340px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.logout-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.logout-actions .btn { min-height: 48px; padding: 11px 13px; font-size: .74rem; }

@media (max-width: 440px) {
  .logout-modal { padding: 24px 18px; border-radius: 22px; }
  .logout-actions { grid-template-columns: 1fr; }
  .logout-actions .btn-danger { grid-row: 1; }
}

/* Identidade azul GRUPO DN */
:root {
  --bg: #060c18;
  --bg-elev: #0b1424;
  --bg-card: #101a2c;
  --bg-card-2: #15223a;
  --text: #f3f7ff;
  --muted: #8e9bb4;
  --line: rgba(148, 177, 230, .14);
  --accent: #3b82f6;
  --accent-2: #8bb7ff;
  --accent-deep: #1d4ed8;
  --accent-rgb: 59, 130, 246;
  --shadow: 0 24px 62px rgba(0, 5, 18, .36);
}

html[data-theme="light"] {
  --bg: #eef4ff;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f5f8ff;
  --text: #14213a;
  --muted: #66738d;
  --line: rgba(70, 104, 164, .16);
  --shadow: 0 16px 40px rgba(36, 75, 135, .12);
}

body {
  background:
    radial-gradient(980px 600px at 6% -10%, rgba(59, 130, 246, .22), transparent 62%),
    radial-gradient(820px 560px at 104% 12%, rgba(34, 211, 238, .08), transparent 64%),
    linear-gradient(180deg, #07101f 0%, #050b16 48%, #07101c 100%);
}

html[data-theme="light"] body {
  background:
    radial-gradient(900px 520px at 4% -8%, rgba(59, 130, 246, .14), transparent 62%),
    radial-gradient(760px 480px at 102% 8%, rgba(34, 211, 238, .08), transparent 65%),
    var(--bg);
}

::selection { color: #fff; background: rgba(59, 130, 246, .72); }

img.brand-mark,
.desktop-nav-brand img,
.login-showcase-brand img {
  filter: hue-rotate(145deg) saturate(1.08) brightness(.96);
}

.m-card,
.m-pay,
.m-team,
.m-hist,
.card,
.kpi-ap {
  border-color: var(--line);
  background:
    radial-gradient(430px 170px at 100% 0%, rgba(79, 142, 247, .07), transparent 64%),
    linear-gradient(145deg, color-mix(in srgb, var(--bg-card-2) 74%, var(--bg-card)), var(--bg-card));
  box-shadow: 0 16px 42px rgba(0, 5, 18, .2), inset 0 1px rgba(255, 255, 255, .04);
}

html[data-theme="light"] .m-card,
html[data-theme="light"] .m-pay,
html[data-theme="light"] .m-team,
html[data-theme="light"] .m-hist,
html[data-theme="light"] .card,
html[data-theme="light"] .kpi-ap {
  background:
    radial-gradient(430px 170px at 100% 0%, rgba(59, 130, 246, .08), transparent 64%),
    linear-gradient(145deg, #fff, #f8faff);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.7);
}

.m-card:hover,
.card.interactive:hover,
.kpi-ap:hover { border-color: rgba(139, 183, 255, .3); }

.btn-primary {
  color: #fff;
  border: 1px solid rgba(156, 195, 255, .3);
  background: linear-gradient(135deg, #76a9ff 0%, #3b82f6 46%, #1d4ed8 100%);
  box-shadow: 0 11px 28px rgba(37, 99, 235, .3), inset 0 1px rgba(255,255,255,.3);
}
.btn-primary:hover { box-shadow: 0 15px 34px rgba(37, 99, 235, .38), inset 0 1px rgba(255,255,255,.32); }
.btn-ghost:hover { border-color: rgba(139,183,255,.36); background: rgba(59,130,246,.08); }

.m-sticky {
  border-color: rgba(139,183,255,.14);
  background: color-mix(in srgb, var(--bg) 89%, transparent);
}
.m-sticky-saldo {
  border-color: rgba(139,183,255,.18);
  background:
    radial-gradient(280px 100px at 0 0, rgba(59,130,246,.18), transparent 72%),
    color-mix(in srgb, var(--bg-card) 90%, transparent);
}
.m-sticky-val { color: var(--text); }
.m-head-actions .icon-btn { border-color: var(--line); background: color-mix(in srgb, var(--bg-card) 90%, transparent); }

.m-period button.on,
.plat-pills button.on {
  color: #fff;
  background: linear-gradient(135deg, #76a9ff, #3b82f6 50%, #1d4ed8);
  box-shadow: 0 8px 22px rgba(37,99,235,.25);
}

.m-ledger-grid > div:first-child {
  border-color: rgba(139,183,255,.28);
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(59,130,246,.035));
}
.m-ledger-grid > div:first-child b,
.m-cpa-row b,
.m-sticky .m-kicker,
.m-kicker strong { color: var(--accent-2); }
.m-ledger::after { border-color: rgba(139,183,255,.13); box-shadow: 0 0 0 28px rgba(59,130,246,.025), 0 0 0 56px rgba(59,130,246,.015); }

.m-chart-col:hover { border-color: rgba(139,183,255,.3); }
.m-chart-col i {
  background: linear-gradient(180deg, #9cc2ff, #3b82f6 58%, #1d4ed8);
  box-shadow: 0 9px 20px rgba(37,99,235,.22);
}
.m-chart-col.on { border-color: rgba(139,183,255,.4); background: rgba(59,130,246,.1); }
.m-bar i { background: linear-gradient(90deg, #2563eb, #60a5fa, #22d3ee); }

.m-lvl-grid .m-team::before { background: linear-gradient(to bottom, #60a5fa, transparent 82%); }
.m-lvl-grid .m-team:nth-child(2)::before { background: linear-gradient(to bottom, #22d3ee, transparent 82%); }
.m-lvl-grid .m-team:nth-child(3)::before { background: linear-gradient(to bottom, #8b5cf6, transparent 82%); }
.m-lvl-grid .m-team:hover { border-color: rgba(139,183,255,.32); }

.bottom-nav {
  border-color: rgba(139,183,255,.18);
  background: color-mix(in srgb, #0b1424 94%, transparent);
  box-shadow: 0 26px 74px rgba(0,5,18,.58), inset 0 1px rgba(255,255,255,.05);
}
.bottom-nav .active:not(.saque),
.bottom-nav > button.active,
.bottom-nav > a.active {
  color: #b8d2ff;
  border-color: rgba(139,183,255,.24);
  background: linear-gradient(180deg, rgba(59,130,246,.17), rgba(59,130,246,.075));
}
.bottom-nav .active .ico { color: #8bb7ff; filter: drop-shadow(0 0 8px rgba(59,130,246,.35)); }

.login-card,
.login-layout .login-card {
  border-color: rgba(139,183,255,.22);
  background:
    radial-gradient(380px 230px at 50% 0, rgba(59,130,246,.15), transparent 68%),
    linear-gradient(155deg, #101b2e, #091221);
}
.login-layout { border-color: rgba(139,183,255,.2); background: #0a1424; }
.login-showcase {
  background:
    radial-gradient(450px 370px at 78% 22%, rgba(96,165,250,.28), transparent 65%),
    radial-gradient(390px 290px at 10% 105%, rgba(37,99,235,.34), transparent 66%),
    linear-gradient(145deg, #153d78 0%, #102c56 50%, #09172b 100%);
}
.login-showcase-pill { color: #dbeafe; border-color: rgba(191,219,254,.22); background: rgba(96,165,250,.12); }
.login-showcase-pill i { background: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,.13); }
.login-showcase-copy h1 em,
.login-kicker { color: #9cc2ff; }
.login-layout .field .control,
.field .control { border-color: rgba(139,183,255,.16); background: color-mix(in srgb, var(--bg) 72%, transparent); }
.login-layout .field .control:focus-within,
.field .control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }

.home-launch-card {
  border-color: rgba(139,183,255,.24);
  background:
    radial-gradient(380px 270px at 95% 50%, rgba(96,165,250,.32), transparent 67%),
    radial-gradient(290px 240px at 0 100%, rgba(37,99,235,.29), transparent 71%),
    linear-gradient(135deg, #1b4b8e 0%, #123667 48%, #0a1a32 100%);
}
.home-launch-kicker { color: #cfe2ff; }
.home-launch-btn { color: #102b54; background: #f3f7ff; }
.home-rate-row span { border-color: rgba(219,234,254,.2); background: rgba(219,234,254,.075); }
.home-balance-card {
  border-color: rgba(139,183,255,.17);
  background:
    radial-gradient(320px 190px at 100% 0, rgba(59,130,246,.16), transparent 71%),
    linear-gradient(145deg, #14233a, #0c1627);
}
.home-house-rates b,
.home-launch-title small,
.manager-action-kicker,
.page-intro > div > span { color: #8bb7ff; }

.rede-house-gallery .casa-banner-media { background: radial-gradient(circle at 50% 55%, rgba(59,130,246,.13), transparent 65%); }
.rede-platform-filter { border-color: rgba(139,183,255,.17); }
.fluxo-line.dep { stroke: #3b82f6; }
.fluxo-line.com { stroke: #22d3ee; }
.fluxo-fill.dep { fill: rgba(59,130,246,.16); }
.fluxo-fill.com { fill: rgba(34,211,238,.1); }
.lg-dep { background: #3b82f6; }
.lg-com { background: #22d3ee; }
.lg-n1 { background: #3b82f6; }
.lg-n2 { background: #22d3ee; }
.lg-n3 { background: #8b5cf6; }
.cpa-bar i { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.cpa-bar.n2 i { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.cpa-bar.n3 i { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.lvl-detail .tag { color: #a9c9ff; background: rgba(59,130,246,.17); }

.manager-action-card {
  border-color: rgba(59,130,246,.45);
  background:
    radial-gradient(450px 230px at 100% 0, rgba(59,130,246,.22), transparent 71%),
    linear-gradient(145deg, #172642, #101928);
}
.manager-affiliate-card {
  border-color: rgba(96,165,250,.34);
  background:
    radial-gradient(560px 250px at 100% 0, rgba(59,130,246,.2), transparent 70%),
    linear-gradient(145deg, #111f36, #0b1525);
}
.manager-dossier {
  border-color: rgba(96,165,250,.28);
  background:
    radial-gradient(480px 210px at 0 0, rgba(37,99,235,.14), transparent 68%),
    linear-gradient(145deg, #101c30, #0a1322);
}
html[data-theme="light"] .manager-affiliate-card,
html[data-theme="light"] .manager-dossier {
  border-color: rgba(37,99,235,.2);
  background:
    radial-gradient(520px 230px at 100% 0, rgba(59,130,246,.11), transparent 70%),
    linear-gradient(145deg, #fff, #f5f8ff);
}
.manager-house-bar i { background: linear-gradient(90deg, #2563eb, #60a5fa, #22d3ee); }
.manager-metrics > div { border-color: rgba(139,183,255,.14); background: rgba(59,130,246,.035); }

.modal:not(.logout-modal) {
  border-color: rgba(139,183,255,.2);
  background:
    radial-gradient(540px 220px at 50% 0%, rgba(59,130,246,.18), transparent 64%),
    var(--bg-elev);
}

.badge-count,
.m-chip,
.demo-badge { color: #a9c9ff; border-color: rgba(59,130,246,.25); background: rgba(59,130,246,.15); }
.m-badge { background: #3b82f6; }

@media (max-width: 760px) {
  .login-layout .login-card {
    border-color: rgba(139,183,255,.2);
    background:
      radial-gradient(360px 220px at 50% 0, rgba(59,130,246,.16), transparent 68%),
      linear-gradient(155deg, #111e33, #091321);
  }
}

/* Fundo animado GRUPO DN */
body::before {
  inset: -24vmax;
  opacity: .58;
  background:
    radial-gradient(circle at 18% 22%, rgba(37, 99, 235, .48) 0, rgba(37, 99, 235, .15) 19%, transparent 39%),
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, .27) 0, rgba(34, 211, 238, .08) 18%, transparent 37%),
    radial-gradient(circle at 68% 78%, rgba(124, 58, 237, .28) 0, rgba(124, 58, 237, .07) 20%, transparent 39%),
    radial-gradient(circle at 24% 76%, rgba(59, 130, 246, .25) 0, transparent 34%);
  filter: blur(30px) saturate(125%);
  -webkit-mask-image: none;
  mask-image: none;
  transform: translate3d(-2%, -1%, 0) scale(1.03);
  transform-origin: center;
  will-change: transform;
  animation: dnAuroraFloat 24s ease-in-out infinite alternate;
}

body::after {
  opacity: .16;
  background-image:
    linear-gradient(rgba(139, 183, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 183, 255, .09) 1px, transparent 1px),
    radial-gradient(circle, rgba(191, 219, 254, .7) 0 1px, transparent 1.6px);
  background-size: 64px 64px, 64px 64px, 128px 128px;
  background-position: 0 0, 0 0, 24px 18px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, rgba(0,0,0,.72) 48%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, rgba(0,0,0,.72) 48%, transparent 82%);
  will-change: background-position;
  animation: dnGridDrift 34s linear infinite;
}

html[data-theme="light"] body::before {
  opacity: .32;
  filter: blur(34px) saturate(112%);
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 130, 246, .42) 0, rgba(59, 130, 246, .12) 20%, transparent 40%),
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, .24) 0, rgba(34, 211, 238, .07) 18%, transparent 38%),
    radial-gradient(circle at 68% 78%, rgba(139, 92, 246, .2) 0, transparent 38%);
}

html[data-theme="light"] body::after { opacity: .12; }

@keyframes dnAuroraFloat {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.03) rotate(0deg); }
  34% { transform: translate3d(4%, 2%, 0) scale(1.08) rotate(1.2deg); }
  68% { transform: translate3d(-1%, 5%, 0) scale(1.05) rotate(-1deg); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.1) rotate(.8deg); }
}

@keyframes dnGridDrift {
  from { background-position: 0 0, 0 0, 24px 18px; }
  to { background-position: 64px 64px, 64px 64px, 152px 146px; }
}

@media (max-width: 760px) {
  body::before {
    inset: -34vmax;
    opacity: .46;
    filter: blur(26px) saturate(118%);
    animation-duration: 28s;
  }
  body::after {
    opacity: .11;
    background-size: 56px 56px, 56px 56px, 112px 112px;
    animation-duration: 40s;
  }
}

/* Vídeo de fundo do painel */
.dn-video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #07111f url('/assets/panel-background-poster.jpg?v=1') center / cover no-repeat;
}
.dn-video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(18, 48, 98, .08), rgba(4, 10, 22, .48) 68%),
    linear-gradient(180deg, rgba(3, 8, 18, .28), rgba(3, 8, 18, .58));
}
.dn-video-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: .64;
  filter: brightness(.7) saturate(1.22) contrast(1.08);
  transform: scale(1.015);
}
body.has-video-background {
  background: #07111f;
}
body.has-video-background::before {
  z-index: 1;
  opacity: .2;
}
body.has-video-background::after {
  z-index: 1;
  opacity: .08;
}
body.has-video-background #app,
body.has-video-background #admin-app {
  position: relative;
  z-index: 2;
}
html[data-theme="light"] .dn-video-stage::after {
  background: linear-gradient(180deg, rgba(236, 244, 255, .63), rgba(231, 239, 252, .78));
}
html[data-theme="light"] .dn-video-bg {
  opacity: .3;
  filter: brightness(1.05) saturate(.92) contrast(.88);
}
@media (prefers-reduced-motion: reduce) {
  .dn-video-bg { display: none; }
}

@media (max-width: 720px) {
  .rede-flow-card { min-height: 0; padding: 17px; }
  .fluxo-card-head { align-items: center; }
  .fluxo-card-head .m-hint { max-width: 245px; }
  .fluxo-legend { display: grid; grid-template-columns: 1fr 1fr; }
  .fluxo-legend span { min-width: 0; padding: 10px 11px; }
  .fluxo-legend b { font-size: .88rem; }
  .fluxo-chart-wrap { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .rede-flow-card .fluxo-svg { width: 680px; min-width: 680px; height: 200px; }
  .fluxo-foot { justify-content: flex-start; }
}

.home-launch-card.luckk777-launch-card {
  border-color: rgba(99, 255, 149, .33);
  background:
    radial-gradient(400px 280px at 96% 45%, rgba(56, 218, 103, .34), transparent 68%),
    radial-gradient(290px 230px at 0 100%, rgba(12, 166, 75, .29), transparent 72%),
    linear-gradient(135deg, #136436 0%, #0d3e24 50%, #081d15 100%);
}
.home-launch-card.luckk777-launch-card::after { content: "777"; color: rgba(234, 255, 223, .075); }
.luckk777-launch-card .home-launch-kicker,
.luckk777-launch-card .home-launch-title small { color: #b9ffce; }
.luckk777-launch-card .home-rate-row span { border-color: rgba(191, 255, 206, .25); background: rgba(166, 255, 180, .1); }
.luckk777-launch-card .home-launch-btn { color: #0b3820; background: #effff2; }

.home-launch-card.luckk777-launch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 8px 18px;
}
.home-launch-card.luckk777-launch-card::after { content: none; }
.luckk777-launch-card .home-launch-mark {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 148px;
  justify-self: end;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
}
.luckk777-launch-card .luck-rate-lines {
  display: block;
  line-height: 1.55;
  color: #f4fff7;
  font-weight: 700;
}
.platform-results .casa-card[data-casa="luckk777"] .casa-banner-media,
.grid-2.rede-casas:not(.rede-house-gallery) .casa-card[data-casa="luckk777"] .casa-banner-media {
  display: block;
  background: #04140c;
}

.casa-card[data-casa="luckk777"] .casa-logo {
  object-fit: contain;
  background: #062416;
  padding: 3px;
}
.rede-house-gallery .casa-card[data-casa="luckk777"] .casa-banner-media {
  display: grid;
  place-items: center;
  height: 118px;
  padding-top: 12px;
  background:
    radial-gradient(140px 100px at 50% 42%, rgba(56, 218, 103, .35), transparent 70%),
    #071a12;
}
.rede-house-gallery .casa-card[data-casa="luckk777"] .casa-banner-img {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 18px;
  aspect-ratio: auto;
  transform: none;
}

@media (max-width: 620px) {
  .home-launch-card.luckk777-launch-card { grid-template-columns: minmax(0, 1fr) 92px; }
  .luckk777-launch-card .home-launch-mark { width: 84px; height: 84px; border-radius: 20px; }
}

/* Keep platform cards consistent regardless of the source image dimensions. */
.platform-results { align-items: stretch; }
.platform-results .platform-result { display: flex; min-width: 0; }
.platform-results .platform-result[hidden] { display: none; }
.platform-results .casa-card.has-banner {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}
.platform-results .casa-card.has-banner .casa-banner-media {
  display: grid;
  place-items: center;
  height: 200px;
  flex: 0 0 200px;
  padding: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, .13), transparent 72%), #07111f;
}
.platform-results .casa-card[data-casa="luckk777"] .casa-banner-media {
  background: radial-gradient(circle at 50% 50%, rgba(56, 218, 103, .24), transparent 72%), #071a12;
}
.platform-results .casa-card.has-banner .casa-banner-img {
  width: min(78%, 168px);
  height: 168px;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 24px;
  object-fit: contain;
  background: transparent;
}
.platform-results .casa-banner-media .status { line-height: 1.25; letter-spacing: .035em; }
.platform-results .casa-card.has-banner .casa-card-body { flex: 1; padding: 16px; gap: 12px; }
.platform-results .casa-title-row .row { min-width: 0; }
.platform-results .casa-title-row .row > div { min-width: 0; }
.platform-results .casa-card.has-banner .casa-logo { object-fit: contain; }
.platform-results .casa-card.has-banner .name { font-size: 1rem; line-height: 1.3; }
.platform-results .casa-title-row .muted { overflow-wrap: anywhere; line-height: 1.4; }
.platform-results .casa-stats { gap: 10px; padding-top: 12px; }
.platform-results .casa-stats small { font-size: .66rem; }
.platform-results .casa-stats b { font-size: .94rem; line-height: 1.35; }
.platform-results .casa-card.has-banner .casa-mini { font-size: .8rem; line-height: 1.5; padding-top: 12px; }
@media (max-width: 620px) {
  .platform-results .casa-card.has-banner .casa-banner-media { height: 184px; flex-basis: 184px; }
  .platform-results .casa-card.has-banner .casa-banner-img { width: min(78%, 152px); height: 152px; }
}

/* A definite plot height keeps percentage bars visible inside flex buttons. */
.m-chart-col .m-chart-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 120px;
  width: 100%;
  height: 120px;
  border-bottom: 1px solid var(--line);
}
.m-chart-track i {
  flex: 0 0 auto;
  width: min(36px, 65%);
  min-height: 2px;
}
.m-chart-track.is-zero i {
  background: var(--line);
  box-shadow: none;
}
.m-chart-col > .m-chart-val {
  width: 100%;
  color: var(--text);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}


/* CPA status notice — 2026-11-01 */
.cpa-disabled-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(251, 191, 36, .4);
  border-radius: 8px;
  background: rgba(251, 191, 36, .1);
  color: #fcd38a;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
}
.cpa-disabled-detail { line-height: 1.6; color: var(--muted); }
.cpa-disabled-detail .cpa-disabled-badge { margin: 0 6px 4px 0; }
[data-theme="light"] .cpa-disabled-badge {
  color: #854d0e;
  background: #fff3cf;
  border-color: #d4a037;
}
