/* ===== Tema Enerzee Hub (enerzeehub.tech) aplicado ao superapp =====
   Verde profundo + lima, Space Grotesk nos títulos, Inter no texto,
   cartões planos com borda lima translúcida. Escuro é o padrão (como no Hub).
   Só sobrescreve tokens de css/tokens.css — o app.css original segue intacto. */

:root {
  --ez-lime: #c6f135;
  --ez-lime-soft: #d7ff5c;
  --ez-lime-text: #3f5510;
  --ez-forest-deep: #0c1a10;
  --ez-forest: #4d7c0f;
  --ez-brl: #4d7c0f;
  --ez-ok-ink: #3f5510;
  --ez-faixa-verde: #5f7d14;

  --ez-bg: #f4f7ef;
  --ez-bg-glow: radial-gradient(120% 80% at 50% -10%, rgba(198, 241, 53, 0.10), transparent 55%), #f4f7ef;
  --ez-header-bg: rgba(255, 255, 255, 0.86);
  --ez-tabbar-bg: rgba(255, 255, 255, 0.96);
  --ez-login-bg: #060d08;
  --ez-device-screen-bg: #060d08;
  --ez-surface: #ffffff;
  --ez-surface-solid: #ffffff;
  --ez-surface-secondary: #eef3e6;
  --ez-elevated-bg: #ffffff;
  --ez-elevated-bg-hover: #f8fbf3;
  --ez-soft-panel: #eef3e6;
  --ez-soft-panel-strong: #e4ecd7;
  --ez-mint: rgba(143, 174, 45, 0.12);
  --ez-mint-strong: rgba(143, 174, 45, 0.22);
  --ez-glass-border: rgba(40, 70, 20, 0.14);
  --ez-separator: rgba(40, 70, 20, 0.12);
  --ez-separator-strong: rgba(40, 70, 20, 0.24);

  --ez-ink: #0c1a10;
  --ez-ink-secondary: #5b6f5e;
  --ez-ink-tertiary: #7f9282;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", Inter, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-card: 0 1px 2px 0 rgb(12 26 16 / 0.05);
  --shadow-float: 0 12px 32px rgb(12 26 16 / 0.14);
  --shadow-glow: 0 0 0 1px rgba(198, 241, 53, 0.28), 0 8px 24px rgba(198, 241, 53, 0.14);
}

html.theme-dark {
  --ez-lime: #c6f135;
  --ez-lime-text: #c6f135;
  --ez-forest-deep: #f4f7ef;
  --ez-forest: #c6f135;
  --ez-leaf: #c6f135;
  --ez-brl: #c6f135;
  --ez-ok-ink: #c6f135;
  --ez-faixa-verde: #c6f135;
  --ez-on-accent-dark: #08150a;

  --ez-bg: #060d08;
  --ez-bg-glow: radial-gradient(100% 70% at 50% -12%, rgba(198, 241, 53, 0.08), transparent 56%), #060d08;
  --ez-dark-glow-a: rgba(198, 241, 53, 0.07);
  --ez-dark-glow-b: rgba(198, 241, 53, 0.03);
  --ez-dark-grad-base: linear-gradient(145deg, #0f1d13 0%, #13251a 100%);
  --ez-body-bg: #000000;
  --ez-device-screen-bg: #060d08;
  --ez-header-bg: rgba(8, 18, 9, 0.88);
  --ez-tabbar-bg: rgba(8, 18, 9, 0.96);
  --ez-login-bg: #060d08;
  --ez-glass-border: rgba(196, 255, 92, 0.14);
  --ez-elevated-bg: #0f1d13;
  --ez-elevated-bg-hover: #13251a;
  --ez-soft-panel: #0b170e;
  --ez-soft-panel-strong: #10200f;
  --ez-surface: #0f1d13;
  --ez-surface-solid: #0f1d13;
  --ez-surface-secondary: #0b170e;
  --ez-separator: rgba(196, 255, 92, 0.12);
  --ez-separator-strong: rgba(196, 255, 92, 0.26);
  --ez-mint: rgba(198, 241, 53, 0.10);
  --ez-mint-strong: rgba(198, 241, 53, 0.18);
  --ez-ok-bg: rgba(198, 241, 53, 0.10);
  --ez-ok-border: rgba(198, 241, 53, 0.28);
  --ez-faixa-verde-soft: rgba(198, 241, 53, 0.10);

  --ez-ink: #f4f7ef;
  --ez-ink-secondary: #9fb3a0;
  --ez-ink-tertiary: #6f8471;
  --ez-ink-on-brand: #08150a;

  --shadow-card: none;
  --shadow-float: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(198, 241, 53, 0.22), 0 10px 30px rgba(198, 241, 53, 0.10);
}

/* Tipografia do Hub: títulos em Space Grotesk */
.h1, .h2, .h3, h1, h2, h3,
.app-header__title, .proposal-create__hero h1, .cadastro-title h1 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

/* ===================================================================
   Camada de componentes no padrão do Enerzee Hub
   =================================================================== */
:root {
  --hub-lime-dim: #5f7d14;
  --hub-border: rgba(40, 70, 20, 0.14);
  --hub-border-strong: rgba(40, 70, 20, 0.28);
  --hub-accent: rgba(143, 174, 45, 0.12);
  --hub-ink: #4d7c0f;
  --hub-tile: radial-gradient(circle at 30% 20%, #1a4024, #060d08 78%);
  --sidebar-w: 16.5rem;
}
html.theme-dark {
  --hub-lime-dim: #8fae2d;
  --hub-border: rgba(196, 255, 92, 0.14);
  --hub-border-strong: rgba(196, 255, 92, 0.28);
  --hub-accent: rgba(198, 241, 53, 0.10);
  --hub-ink: #c6f135;
}

body { font-size: 14.5px; }
::selection { background: #c6f135; color: #08150a; }
:focus-visible { outline: 2px solid var(--hub-ink); outline-offset: 2px; }
#app, .app-main { background: var(--ez-bg-glow); }

/* Títulos e rótulos ("kicker" do Hub) */
.h1 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; font-size: clamp(1.625rem, 3vw, 2.25rem); }
.h2, .app-header__title, .sidebar-brand__name { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; }
.eyebrow { font-weight: 600; letter-spacing: 0.12em; color: var(--hub-lime-dim); }
.muted { color: var(--ez-ink-secondary); }
.money-lg, .money { font-family: var(--font-head); letter-spacing: -0.015em; }

/* Cartões planos com borda lima translúcida */
.card, .home-shortcut, .icon-btn, .filter-chip, .list--tiles .list-row {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card {
  background: var(--ez-surface-solid);
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--hub-border-strong); }
html.theme-dark .card--ecash { border-color: color-mix(in srgb, var(--ez-ecash) 30%, transparent); }

/* Botões em pílula; primário lima chapado em Space Grotesk */
.btn { border-radius: 999px; font-weight: 600; transition: transform .12s ease, background .15s, border-color .15s, color .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn--primary, html.theme-dark .btn--primary, html.theme-dark .battery-card .btn--primary, .btn--lime, html.theme-dark .btn--lime {
  background: #c6f135; color: #08150a; box-shadow: none;
  font-family: var(--font-head); font-weight: 700;
}
.btn--primary:hover:not(:disabled), .btn--lime:hover:not(:disabled) { background: #d7ff5c; filter: none; }
.btn--ghost, .btn--secondary { border: 1px solid var(--hub-border-strong); background: transparent; }
.btn--ghost:hover:not(:disabled), .btn--secondary:hover:not(:disabled) { border-color: var(--hub-ink); color: var(--hub-ink); }

/* Cartão de saldo da Carteira: painel escuro com brilho lima (como o hero do Hub) */
.card--primary, html.theme-dark .card--primary {
  background: radial-gradient(120% 90% at 100% 0%, rgba(198, 241, 53, 0.16), transparent 60%), linear-gradient(160deg, #10200f, #060d08);
  color: #f4f7ef;
  border: 1px solid rgba(198, 241, 53, 0.28);
  box-shadow: none;
}
.card--primary .eyebrow { color: #8fae2d; }
.card--primary .money-lg { color: #c6f135; font-family: var(--font-head); }
.card--primary .btn--block, html.theme-dark .card--primary .btn--block {
  background: #c6f135; color: #08150a; border: 0; font-family: var(--font-head); font-weight: 700;
}
.card--primary .btn--block:hover:not(:disabled) { background: #d7ff5c; }

/* Campos */
.field input, .field select, .field textarea,
html.theme-dark .field input, html.theme-dark .field select, html.theme-dark .field textarea {
  border-radius: 10px; border-color: var(--hub-border-strong);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--hub-ink); }

/* Chips de filtro */
.filter-chip { border-color: var(--hub-border); background: transparent; }
.filter-chip.is-active, html.theme-dark .filter-chip.is-active {
  background: var(--hub-accent); border-color: var(--hub-border-strong); color: var(--hub-ink); font-weight: 600;
}

/* Pílulas */
.pill { border-radius: 999px; }

/* Header e barra inferior: vidro sobre o fundo, como o topbar do Hub */
.app-header, html.theme-dark .app-header {
  background: color-mix(in srgb, var(--ez-bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hub-border);
}
.tabbar, html.theme-dark .tabbar {
  background: color-mix(in srgb, var(--ez-bg) 92%, transparent);
  border-top: 1px solid var(--hub-border); box-shadow: none;
}
.tabbar__item.is-active, html.theme-dark .tabbar__item.is-active {
  background: var(--hub-accent); color: var(--hub-ink); border-color: transparent;
}
.tabbar__item--create, html.theme-dark .tabbar__item--create {
  background: #c6f135; color: #08150a; box-shadow: none; font-family: var(--font-head); font-weight: 700;
}
.icon-btn {
  background: transparent; border: 1px solid var(--hub-border); box-shadow: none; border-radius: 10px;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--hub-accent); border-color: var(--hub-border-strong); color: var(--hub-ink); }

/* Marca: ladrilho com o símbolo lima, igual ao brand-mark do Hub */
.app-header__mark {
  background: var(--hub-accent); border: 1px solid var(--hub-border-strong);
  box-shadow: none; border-radius: 10px; padding: 6px;
}
.app-header__mark--mobile { width: 36px; height: 36px; padding: 5px; }
.sidebar-brand__text { display: flex; flex-direction: column; min-width: 0; }
.sidebar-brand__tag { font-size: 11px; color: var(--ez-ink-secondary); white-space: nowrap; }

/* Atalhos da home: ícones em ladrilho escuro com brilho (launcher do Hub) */
.home-shortcut { background: var(--ez-surface-solid); border: 1px solid var(--hub-border); box-shadow: none; }
.home-shortcut:hover, .home-shortcut:focus-visible { border-color: var(--hub-border-strong); background: var(--ez-surface-solid); }
.home-shortcut__icon {
  color: #c6f135; background: var(--hub-tile);
  border: 1px solid rgba(198, 241, 53, 0.14); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Desktop: sidebar no estilo do Hub (16rem, itens compactos) */
@media (min-width: 900px) {
  html:not(.is-framed) .tabbar { background: var(--ez-surface-solid); border-right: 1px solid var(--hub-border); align-items: stretch; padding: .75rem .625rem 1.5rem; }
  html:not(.is-framed) .tabbar__group { text-align: left; padding: .875rem .625rem .375rem; }
  html:not(.is-framed) .tabbar__item { align-self: stretch; justify-content: flex-start; padding: .5rem .625rem; }
  html.theme-dark:not(.is-framed) .tabbar { background: #081209; }
  html:not(.is-framed) .sidebar-brand { gap: .75rem; padding: .25rem .5rem 1rem; margin-bottom: .25rem; border-bottom: 1px solid var(--hub-border); }
  html:not(.is-framed) .sidebar-brand__name { font-size: 1rem; color: var(--ez-ink); }
  html:not(.is-framed) .tabbar__group { font-size: 11px; }
  html:not(.is-framed) .tabbar__item {
    width: auto; min-height: 38px; font-size: .9375rem; border-radius: .5rem;
    color: var(--ez-ink-secondary);
  }
  html:not(.is-framed) .tabbar__item svg { width: 20px; height: 20px; opacity: .85; }
  html:not(.is-framed) .tabbar__item:hover { background: var(--hub-accent); color: var(--hub-ink); }
  html:not(.is-framed) .tabbar__item.is-active { background: var(--hub-accent); color: var(--hub-ink); font-weight: 600; }
  html:not(.is-framed) .app-header { background: color-mix(in srgb, var(--ez-bg) 86%, transparent); }
}

/* ===== Carteira (melhorias) ===== */

.carteira-bonus { width: 100%; text-align: left; align-items: stretch; padding: var(--space-4); cursor: pointer; color: inherit; }
.carteira-bonus__topo { width: 100%; }
.carteira-bonus__link { font-size: .8125rem; font-weight: 600; color: var(--hub-ink); }
.carteira-bonus__linhas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .375rem; font-size: .8125rem; color: var(--ez-ink-secondary); }
.carteira-bonus__linhas strong { color: var(--ez-ink); font-weight: 600; }
.saques-card { align-items: stretch; padding: var(--space-4); }

.list-row[hidden] { display: none !important; }

/* ===== Relatório de bônus ===== */
.bonus-abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bonus-aba { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; padding: .625rem .75rem; border-radius: 12px; border: 1px solid var(--hub-border); background: var(--ez-surface-solid); text-align: left; color: var(--ez-ink-secondary); }
.bonus-aba__label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bonus-aba__valor { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--ez-ink); white-space: nowrap; }
.bonus-aba.is-active { border-color: var(--hub-ink); background: var(--hub-accent); color: var(--hub-ink); }
.bonus-total { align-items: stretch; padding: var(--space-4); }
.bonus-produto { width: 100%; text-align: left; color: inherit; cursor: pointer; }
.bonus-produto:hover { background: var(--hub-accent); }
.bonus-produto__barra { height: 6px; border-radius: 999px; background: var(--ez-surface-secondary); margin-top: .5rem; overflow: hidden; }
.bonus-produto__barra span { display: block; height: 100%; border-radius: inherit; background: #c6f135; }
.bonus-produto__acao { margin-top: .375rem; font-size: .75rem; font-weight: 600; color: var(--hub-ink); }

/* ===== Rede: cadastrar + busca com linha de patrocínio ===== */
.rede-acoes { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 620px) { .rede-acoes { grid-template-columns: 1fr auto; } }

.link-btn { color: var(--hub-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* ===== Bateria: histórico mensal ===== */
.battery-card__historico { align-self: flex-start; margin-top: .75rem; font-size: .8125rem; font-weight: 600; color: var(--hub-ink); }

/* ===== Menu de baixo flutuante (como no Instagram) — mesmo do Enerzee Hub =====
   Cápsula de vidro fosco, solta das bordas e presa ao pé da tela; o item ativo ganha
   uma pílula. Só no celular (de 900px em diante o menu vira a barra lateral). */
@media (max-width: 899px) {
  html:not(.is-framed) {
    --nav-gap: max(12px, env(safe-area-inset-bottom, 0px));
    --nav-h: 64px;
  }
  html:not(.is-framed) .tabbar,
  html.theme-dark:not(.is-framed) .tabbar {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: var(--nav-gap);
    width: auto; max-width: 30rem; margin: 0 auto;
    height: var(--nav-h); min-height: 0;
    padding: 5px; column-gap: 0; align-items: stretch;
    border: 1px solid color-mix(in srgb, #c6f135 18%, rgba(255, 255, 255, .10));
    border-radius: 999px;
    background: color-mix(in srgb, var(--ez-surface-solid) 12%, transparent);
    backdrop-filter: blur(6px) saturate(150%); -webkit-backdrop-filter: blur(6px) saturate(150%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
  }
  html:not(.is-framed) .tabbar__item {
    min-height: 0; height: 100%; justify-content: center; gap: 2px; padding: 0 1px;
    border-radius: 999px; font-size: 10px; letter-spacing: -.01em;
    -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s;
  }
  html:not(.is-framed) .tabbar__item svg { width: 21px; height: 21px; }
  html:not(.is-framed) .tabbar__item:active { transform: scale(.96); }
  html:not(.is-framed) .tabbar__item.is-active,
  html.theme-dark:not(.is-framed) .tabbar__item.is-active {
    background: color-mix(in srgb, #c6f135 20%, transparent); color: var(--hub-ink); font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #c6f135 38%, transparent);
  }
  /* "Proposta" no meio: pílula lima dentro da cápsula */
  html:not(.is-framed) .tabbar__item--create,
  html.theme-dark:not(.is-framed) .tabbar__item--create {
    min-height: 0; height: 100%; justify-content: center; border-radius: 999px;
    background: #c6f135; color: #08150a; box-shadow: 0 4px 14px rgba(198, 241, 53, .25);
  }
  html:not(.theme-dark):not(.is-framed) .tabbar {
    background: color-mix(in srgb, #eef8d6 82%, transparent);
    border-color: rgba(77, 124, 15, .22);
    box-shadow: 0 10px 30px rgba(20, 40, 20, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
  }
  html:not(.theme-dark):not(.is-framed) .tabbar__item.is-active {
    background: color-mix(in srgb, #c6f135 45%, transparent); color: #2f4208; box-shadow: none;
  }
  /* o conteúdo e o que flutua acima do menu acompanham a cápsula */
  html:not(.is-framed) .app-main { padding-bottom: calc(var(--nav-h) + var(--nav-gap) + 2rem); }
  html:not(.is-framed) .install-bar { position: fixed; bottom: calc(var(--nav-h) + var(--nav-gap) + 12px); }
}
@media (prefers-reduced-transparency: reduce) {
  html:not(.is-framed) .tabbar { background: var(--ez-surface-solid) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ===== Selo verde (informação de destaque: o que falta, pódio…) ===== */
.selo-verde {
  display: flex; align-items: center; gap: .625rem; padding: .5rem .875rem .5rem .5rem;
  border-radius: 999px; border: 1px solid rgba(198, 241, 53, .45);
  background: linear-gradient(135deg, rgba(198, 241, 53, .18), rgba(63, 174, 63, .10));
  color: var(--ez-ink); font-size: .8125rem; font-weight: 600; line-height: 1.35; text-align: left;
}
.selo-verde__icone { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #c6f135; color: #08150a; }
html:not(.theme-dark) .selo-verde { border-color: rgba(77, 124, 15, .35); background: linear-gradient(135deg, rgba(198, 241, 53, .35), rgba(143, 174, 45, .14)); color: #1f3307; }
.grad-card__falta.selo-verde { margin-top: .75rem; align-self: center; }

/* ===== Bateria em uso: cor realista (verde → âmbar → vermelho), brilho e células ===== */
.battery-gauge__fill,
html.theme-dark .battery-gauge__fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .10) 42%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .18) 100%),
    var(--bat-cor, #34c759);
  box-shadow: 0 0 14px color-mix(in srgb, var(--bat-cor, #34c759) 45%, transparent), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.battery-gauge__fill--alta { --bat-cor: #bfef2e; --bat-claro: #ecff9e; --bat-escuro: #7fa80f; }
.battery-gauge__fill--media { --bat-cor: #ffd60a; --bat-claro: #fff3a6; --bat-escuro: #b89400; }
.battery-gauge__fill--baixa { --bat-cor: #ff453a; --bat-claro: #ff9d96; --bat-escuro: #b3160d; animation: bat-pulsa 1.6s ease-in-out infinite; }
@keyframes bat-pulsa { 50% { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .battery-gauge__fill--baixa { animation: none; } }
/* divisões de célula na carcaça (fixas, não encolhem com a carga) */
.battery-gauge__shell::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1.5px), rgba(0, 0, 0, .28) calc(20% - 1.5px) 20%);
}
.battery-gauge__pct { z-index: 1; }
.battery-gauge__pct--fora { color: var(--ez-ink) !important; }
.battery-gauge__pct:not(.battery-gauge__pct--fora) { color: #0b1a0c; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }

/* Preenchimento encaixado na carcaça (folga uniforme até a borda) com volume 3D */
.battery-gauge__fill,
html.theme-dark .battery-gauge__fill {
  inset: 4px auto 4px 4px;
  max-width: calc(100% - 8px);
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    linear-gradient(180deg,
      var(--bat-claro, #ecff9e) 0%,
      var(--bat-cor, #bfef2e) 38%,
      var(--bat-cor, #bfef2e) 60%,
      var(--bat-escuro, #7fa80f) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .55),
    inset 0 -3px 4px rgba(0, 0, 0, .22),
    inset -2px 0 3px rgba(0, 0, 0, .12),
    0 0 12px color-mix(in srgb, var(--bat-cor, #bfef2e) 40%, transparent);
}
/* reflexo de vidro na metade de cima */
.battery-gauge__fill::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 32%;
  border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.battery-gauge__shell::after { inset: 4px; border-radius: calc(var(--radius-lg) - 6px); }

/* Tema claro: ícones e rótulos do menu de baixo com mais contraste sobre o verde claro */
@media (max-width: 899px) {
  html:not(.theme-dark):not(.is-framed) .tabbar__item { color: #3a5222; }
}

/* ===== Menu "Mais" (três pontinhos) em grade de ícones, como o launcher do Hub ===== */
.mais-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem .5rem; margin-top: .75rem; }
@media (min-width: 620px) { .mais-grade { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mais-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .25rem .125rem; border-radius: 1rem; color: var(--ez-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mais-tile__icone {
  width: 4.5rem; height: 4.5rem; border-radius: 1.35rem; display: grid; place-items: center;
  color: #c6f135; background: var(--hub-tile); border: 1px solid rgba(198, 241, 53, .16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .12s ease;
}
.mais-tile__icone svg { width: 1.95rem; height: 1.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mais-tile:hover .mais-tile__icone { transform: translateY(-2px); }
.mais-tile:active .mais-tile__icone { transform: scale(.94); }
.mais-tile:focus-visible { outline: 2px solid var(--hub-ink); outline-offset: 2px; }
.mais-tile__label { font-size: .875rem; font-weight: 500; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
html:not(.theme-dark) .mais-tile__icone { box-shadow: 0 6px 14px rgba(20, 40, 20, .18); }

/* ===== Minhas propostas (nova UX) ===== */
.mp-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; }

.mp-lista { display: grid; gap: .625rem; }
@media (min-width: 900px) { .mp-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-card {
  position: relative; display: flex; overflow: hidden; border-radius: 14px; color: inherit; text-decoration: none;
  background: var(--ez-surface-solid); border: 1px solid var(--hub-border); transition: border-color .15s, transform .12s;
}
.mp-card--link:hover { border-color: var(--hub-border-strong); }
.mp-card--link:active { transform: scale(.99); }
.mp-card__barra { flex: none; width: 4px; background: var(--cor); }
.mp-card__corpo { flex: 1; min-width: 0; padding: .875rem 1rem; display: grid; gap: .25rem; }
.mp-card__topo { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mp-card__topo .money { font-family: var(--font-head); font-size: 1rem; white-space: nowrap; }
.mp-card__nome { margin: .25rem 0 0; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.mp-card__meta { font-size: .8125rem; color: var(--ez-ink-secondary); }
.mp-card__rodape { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .25rem; font-size: .75rem; color: var(--ez-ink-tertiary); }
.mp-card__abrir { font-weight: 600; color: var(--hub-ink); white-space: nowrap; }

/* Cartões consolidadores de Minhas propostas */
.mp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 900px) { .mp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mp-kpi {
  position: relative; display: flex; flex-direction: column; gap: .125rem; padding: .875rem 1rem; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--hub-border); background: var(--ez-surface-solid);
}
.mp-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kpi-cor); }
.mp-kpi--total { --kpi-cor: #8fae2d; background: radial-gradient(120% 90% at 100% 0%, rgba(198, 241, 53, .12), transparent 60%), var(--ez-surface-solid); }
.mp-kpi--andamento { --kpi-cor: #ffd60a; }
.mp-kpi--ganhas { --kpi-cor: #c6f135; }
.mp-kpi--perdidas { --kpi-cor: #ff6b5e; }
.mp-kpi__titulo { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ez-ink-secondary); }
.mp-kpi__qtd { font-family: var(--font-head); font-size: 1.75rem; line-height: 1.1; }
.mp-kpi__valor { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--hub-ink); }
.mp-kpi__extra { font-size: .6875rem; color: var(--ez-ink-tertiary); }
.mp-kpi__extra b { color: var(--ez-ink); }
.mp-funil { align-items: stretch; padding: var(--space-4); }
.mp-funil__lista { display: grid; gap: .125rem; }
.mp-status {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) 70px 2rem auto; align-items: center; gap: .5rem;
  width: 100%; padding: .5rem .375rem; border-radius: 10px; text-align: left; color: inherit; font-size: .8125rem;
}
.mp-status:hover, .mp-status.is-active { background: var(--hub-accent); }
.mp-status__ponto { width: 10px; height: 10px; border-radius: 50%; }
.mp-status__nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-status__barra { height: 6px; border-radius: 999px; background: var(--ez-surface-secondary); overflow: hidden; }
.mp-status__barra span { display: block; height: 100%; border-radius: inherit; }
.mp-status__qtd { text-align: right; font-weight: 700; }
.mp-status__valor { text-align: right; color: var(--ez-ink-secondary); font-size: .75rem; white-space: nowrap; }
@media (max-width: 420px) { .mp-status { grid-template-columns: 10px minmax(0, 1fr) 2rem auto; } .mp-status__barra { display: none; } }

/* ===== Painel de Vendas (nova UX) ===== */
.vd-mes { display: flex; align-items: center; gap: .375rem; margin-top: .125rem; }
.vd-mes .h1 { margin: 0; }
.vd-mes__seta { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--hub-border-strong); color: var(--hub-ink); font-size: 1.125rem; line-height: 1; }
.vd-mes__seta:disabled { opacity: .3; }
.mp-kpi--link { text-align: left; color: inherit; cursor: pointer; transition: border-color .15s, transform .12s; }
.mp-kpi--link:hover { border-color: var(--hub-border-strong); }
.mp-kpi--link:active { transform: scale(.98); }

.vd-produtos { display: grid; gap: .25rem; }
.vd-produto { display: grid; gap: .375rem; padding: .625rem .5rem; border-radius: 10px; color: inherit; text-decoration: none; }
.vd-produto:hover { background: var(--hub-accent); }
.vd-produto__topo { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.vd-produto__nome { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.vd-produto__barra { height: 6px; border-radius: 999px; background: var(--ez-surface-secondary); overflow: hidden; }
.vd-produto__barra span { display: block; height: 100%; border-radius: inherit; }
.vd-produto__rodape { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ez-ink-tertiary); }
.vd-produto__abrir { font-weight: 600; color: var(--hub-ink); }
.vd-mes .h1 { font-size: clamp(1.375rem, 5.5vw, 2rem); white-space: nowrap; }
.vd-nova { flex: none; align-self: center; }

/* =====================================================================
   Tema escuro mais leve (opção B · "Escuro suave" de opcoes-layout.html)
   Fundo grafite-esverdeado com brilho suave, cartões de vidro translúcido,
   bordas quase invisíveis e cantos mais arredondados. Só vale no escuro.
   ===================================================================== */
html.theme-dark {
  --ez-bg: #0d120e;
  --ez-bg-glow: radial-gradient(120% 55% at 50% -8%, #1b2a1d 0%, rgba(27, 42, 29, 0) 60%), #0d120e;
  --ez-surface-solid: #141b16;
  --ez-surface: #141b16;
  --ez-elevated-bg: #161e18;
  --ez-surface-secondary: rgba(255, 255, 255, .06);
  --ez-soft-panel: rgba(255, 255, 255, .04);
  --ez-ink-secondary: #a3b2a5;
  --ez-ink-tertiary: #7d8c7f;
  --hub-border: rgba(255, 255, 255, .07);
  --hub-border-strong: rgba(198, 241, 53, .26);
  --hub-accent: rgba(198, 241, 53, .10);
  --hub-lime-dim: #a3c45a;
  --ez-separator: rgba(255, 255, 255, .06);
  --ez-separator-strong: rgba(255, 255, 255, .10);
}
html.theme-dark body, html.theme-dark #app, html.theme-dark .app-main { background: var(--ez-bg-glow); background-attachment: fixed; }

/* cartões de vidro */
html.theme-dark .card,
html.theme-dark .mp-kpi,
html.theme-dark .mp-card,
html.theme-dark .home-shortcut,
html.theme-dark .bonus-aba,
html.theme-dark .carteira-bonus {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  box-shadow: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.theme-dark .card:hover,
html.theme-dark .mp-card--link:hover,
html.theme-dark .mp-kpi--link:hover,
html.theme-dark .home-shortcut:hover { border-color: rgba(198, 241, 53, .22); }
html.theme-dark .mp-kpi--total {
  background: linear-gradient(140deg, rgba(198, 241, 53, .14), rgba(198, 241, 53, .03));
  border-color: rgba(198, 241, 53, .18);
}
/* faixa de cor dos consolidadores mais fina e suave */
html.theme-dark .mp-kpi::before { width: 3px; opacity: .85; }
/* cartão de saldo da Carteira: vidro com brilho lima, sem o bloco escuro pesado */
html.theme-dark .card--primary {
  background: linear-gradient(140deg, rgba(198, 241, 53, .20), rgba(198, 241, 53, .04));
  border: 1px solid rgba(198, 241, 53, .25);
}
/* chips e campos */
html.theme-dark .filter-chip { background: rgba(255, 255, 255, .06); border-color: transparent; color: #b8c6b9; }
html.theme-dark .filter-chip.is-active { background: #c6f135; color: #0d120e; border-color: #c6f135; }

html.theme-dark .field input, html.theme-dark .field select, html.theme-dark .field textarea {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08);
}
html.theme-dark .icon-btn { background: rgba(255, 255, 255, .06); border-color: transparent; }
/* topo, menu de baixo e lateral em vidro leve */
html.theme-dark .app-header { background: rgba(13, 18, 14, .72); border-bottom-color: rgba(255, 255, 255, .05); }
@media (max-width: 899px) {
  html.theme-dark:not(.is-framed) .tabbar { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
}
@media (min-width: 900px) {
  html.theme-dark:not(.is-framed) .tabbar { background: rgba(255, 255, 255, .025); border-right-color: rgba(255, 255, 255, .05); }
}
/* bateria e trilhos */
html.theme-dark .battery-gauge__shell { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .10); }
html.theme-dark .mp-status:hover, html.theme-dark .vd-produto:hover { background: rgba(255, 255, 255, .05); }

/* ===== Splash entre menus (tela de espera) ===== */
.ld-tela { display: grid; place-items: center; min-height: 58vh; animation: ld-entra .25s ease-out both; }
.ld-box { display: grid; justify-items: center; gap: .875rem; text-align: center; }
.ld-mark { position: relative; display: grid; place-items: center; width: 64px; height: 64px; }
.ld-mark::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 241, 53, .26), rgba(198, 241, 53, 0) 68%); animation: sp-glow 2.4s ease-in-out infinite; }
.ld-mark svg { position: relative; width: 52px; height: 52px; fill: #c6f135; filter: drop-shadow(0 0 8px rgba(198, 241, 53, .4)); }
html:not(.theme-dark) .ld-mark svg { fill: #6b8f12; }
.ld-mark path { opacity: .22; animation: sp-charge 1.6s ease-in-out infinite; }
.ld-mark path:nth-child(2) { animation-delay: .2s; } .ld-mark path:nth-child(3) { animation-delay: .4s; } .ld-mark path:nth-child(4) { animation-delay: .6s; }
.ld-texto { font-family: var(--font-head); font-size: .9375rem; font-weight: 600; color: var(--ez-ink-secondary); }
.ld-tela .sp-bar { width: 110px; height: 3px; border-radius: 99px; background: rgba(198, 241, 53, .18); overflow: hidden; }
.ld-tela .sp-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #c6f135, transparent); animation: sp-run 1.1s ease-in-out infinite; }
@keyframes ld-entra { from { opacity: 0; } }
@keyframes sp-charge { 0%, 100% { opacity: .22; } 35%, 60% { opacity: 1; } }
@keyframes sp-glow { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes sp-run { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .ld-mark path { opacity: 1; animation: none; } .ld-mark::before, .ld-tela .sp-bar i { animation: none; } }

/* Bateria em uso: 20 barras de 5% (vão de 2px na cor da carcaça) */
.battery-gauge__shell::after {
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), var(--bat-vao, #eef1ea) calc(5% - 2px) 5%);
}
html.theme-dark .battery-gauge__shell::after { --bat-vao: #121a14; }
html:not(.theme-dark) .battery-gauge__shell::after { --bat-vao: #eef2e8; }
.battery-gauge__fill { z-index: 0; }
.battery-gauge__shell::after { z-index: 1; }
.battery-gauge__pct { z-index: 2 !important; text-shadow: 0 0 6px rgba(236, 255, 158, .9), 0 1px 0 rgba(255, 255, 255, .5); }
html.theme-dark .battery-gauge__pct--fora { text-shadow: 0 0 6px rgba(0, 0, 0, .8); }
/* percentual dentro da carga: selo claro por cima das 10 barras */
.battery-gauge__pct:not(.battery-gauge__pct--fora) {
  margin-left: 10px; padding: 2px 10px; border-radius: 10px; line-height: 1.2;
  background: rgba(244, 255, 210, .92); color: #10200a; text-shadow: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* Selo "Versão Beta" no canto superior direito da tela inicial */
.screen--com-selo { position: relative; }
.selo-beta {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .3rem .75rem; border-radius: 999px;
  font-family: var(--font-head); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #08150a; background: linear-gradient(135deg, #e4ff8a, #c6f135);
  box-shadow: 0 0 0 1px rgba(198, 241, 53, .5), 0 4px 14px rgba(198, 241, 53, .25);
}
.selo-beta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #08150a; animation: beta-pulsa 1.8s ease-in-out infinite; }
@keyframes beta-pulsa { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .selo-beta::before { animation: none; } }

/* =====================================================================
   Tema escuro: todos os cartões com fundo em degradê lima suave e borda
   "metalizada" (brilho lima nos cantos, que some no meio) — o mesmo visual
   do cartão do Desafio 7x7, um pouco mais suave.
   Camadas: tinta lima (padding-box) · base escura (padding-box) · borda (border-box).
   ===================================================================== */
html.theme-dark {
  --card-tinta: linear-gradient(140deg, rgba(198, 241, 53, .085), rgba(198, 241, 53, .015) 55%, rgba(198, 241, 53, .035));
  --card-base: linear-gradient(#121914, #121914);
  --card-borda: linear-gradient(140deg, rgba(228, 255, 138, .34), rgba(198, 241, 53, .07) 38%, rgba(198, 241, 53, .05) 62%, rgba(228, 255, 138, .22));
}
html.theme-dark .card,
html.theme-dark .mp-kpi,
html.theme-dark .mp-card,
html.theme-dark .home-shortcut,
html.theme-dark .bonus-aba,
html.theme-dark .carteira-bonus,
html.theme-dark .mp-kpi--total {
  border: 1px solid transparent !important;
  background: var(--card-tinta) padding-box, var(--card-base) padding-box, var(--card-borda) border-box !important;
  box-shadow: inset 0 1px 0 rgba(228, 255, 138, .05), 0 8px 24px -14px rgba(0, 0, 0, .55);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.theme-dark .card:hover,
html.theme-dark .mp-card--link:hover,
html.theme-dark .mp-kpi--link:hover,
html.theme-dark .home-shortcut:hover,
html.theme-dark .carteira-bonus:hover {
  --card-borda: linear-gradient(140deg, rgba(228, 255, 138, .5), rgba(198, 241, 53, .12) 40%, rgba(198, 241, 53, .1) 62%, rgba(228, 255, 138, .34));
}
/* o 7x7 e o cartão de saldo continuam um tom mais forte que os demais */

html.theme-dark .card--primary {
  --card-tinta: linear-gradient(140deg, rgba(198, 241, 53, .13), rgba(198, 241, 53, .03) 60%);
}
html.theme-dark .card--primary {
  border: 1px solid transparent !important;
  background: var(--card-tinta) padding-box, var(--card-base) padding-box, var(--card-borda) border-box !important;
}

/* ===== "+" central da barra de baixo: só o sinal, maior ===== */
.tabbar__item.tabbar__item--so-mais > span.tabbar__create-icon { font-size: 34px; font-weight: 400; line-height: 1; height: auto; }
.tabbar__item--so-mais { justify-content: center !important; gap: 0 !important; }

/* Menu "Criar" (folha que sobe do pé da tela) */
.menu-criar { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.menu-criar__fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: mc-fade .18s ease-out; }
.menu-criar__folha {
  position: relative; width: 100%; max-width: 30rem; margin: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); padding: 10px 14px 14px;
  border-radius: 24px; display: grid; gap: 8px; animation: mc-sobe .22s cubic-bezier(.22, 1, .36, 1);
  background: var(--ez-surface-solid); border: 1px solid var(--hub-border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
html.theme-dark .menu-criar__folha { background: linear-gradient(160deg, rgba(198, 241, 53, .10), rgba(198, 241, 53, .02) 60%), #121914; }
.menu-criar__alca { width: 40px; height: 4px; border-radius: 99px; margin: 0 auto 6px; background: var(--ez-separator-strong); }
.menu-criar .eyebrow { padding: 0 4px 2px; }
.menu-criar__opcao {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left;
  border-radius: 16px; border: 1px solid var(--hub-border); background: rgba(255, 255, 255, .03); color: var(--ez-ink);
}
.menu-criar__opcao:hover, .menu-criar__opcao:focus-visible { border-color: var(--hub-border-strong); background: var(--hub-accent); outline: none; }
.menu-criar__opcao b { display: block; font-family: var(--font-head); font-size: 1rem; }
.menu-criar__opcao small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--ez-ink-secondary); }
.menu-criar__icone { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #c6f135; background: var(--hub-tile); border: 1px solid rgba(198, 241, 53, .18); }
.menu-criar__icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-criar__seta { font-size: 1.25rem; color: var(--hub-ink); }
.menu-criar__cancelar { margin-top: 2px; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--ez-ink-secondary); }
.menu-criar.is-saindo .menu-criar__fundo, .menu-criar.is-saindo .menu-criar__folha { opacity: 0; transition: opacity .18s; }
@keyframes mc-fade { from { opacity: 0; } }
@keyframes mc-sobe { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .menu-criar__fundo, .menu-criar__folha { animation: none; } }

/* ===== Tema claro: topo em verde-escuro (faixa de marca, como no Enerzee Hub) ===== */
html:not(.theme-dark) .app-header {
  background: linear-gradient(180deg, #13261a, #0f1d13) !important;
  border-bottom: 1px solid rgba(198, 241, 53, .18) !important;
  color: #f4f7ef;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html:not(.theme-dark) .app-header .app-header__title { color: #f4f7ef; }
html:not(.theme-dark) .app-header .app-header__sub { color: #a9bca9; }
html:not(.theme-dark) .app-header .app-header__mark { background: rgba(198, 241, 53, .12); border-color: rgba(198, 241, 53, .32); }
html:not(.theme-dark) .app-header .icon-btn {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(198, 241, 53, .22); color: #f4f7ef;
}
html:not(.theme-dark) .app-header .icon-btn:hover,
html:not(.theme-dark) .app-header .icon-btn:focus-visible { background: rgba(198, 241, 53, .14); color: #c6f135; }
html:not(.theme-dark) .app-header .icon-btn svg { color: inherit; }

/* Percentual da bateria em uso: selo escuro de vidro com o número em lima brilhando
   (opção B de opcoes-percentual.html). Substitui o selo claro. */
.battery-gauge__pct:not(.battery-gauge__pct--fora) {
  background: rgba(6, 13, 8, .72) !important;
  color: #c6f135 !important;
  border: 1px solid rgba(198, 241, 53, .4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
  text-shadow: 0 0 10px rgba(198, 241, 53, .5) !important;
}

/* Percentual da bateria em uso: etiqueta ACIMA da bateria, apontando onde a carga
   termina (opção F), com o fundo escuro de vidro da opção B. */
.battery-gauge:has(.battery-gauge__pct--acima) { margin-top: 38px; }
.battery-gauge__shell:has(.battery-gauge__pct--acima) { overflow: visible; }
.battery-gauge__pct.battery-gauge__pct--acima {
  top: -36px !important; transform: translateX(-50%) !important; margin: 0 !important;
  padding: 3px 11px !important; border-radius: 10px !important; line-height: 1.25;
  font-family: var(--font-head); font-size: 1.0625rem !important; font-weight: 700; white-space: nowrap; z-index: 3 !important;
  background: rgba(6, 13, 8, .82) !important; color: #c6f135 !important; border: 1px solid rgba(198, 241, 53, .4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important; text-shadow: 0 0 10px rgba(198, 241, 53, .5) !important;
}
/* setinha apontando para o fim da carga, no mesmo vidro escuro */
.battery-gauge__pct--acima::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg); border-radius: 2px;
  background: rgba(6, 13, 8, .92); border-right: 1px solid rgba(198, 241, 53, .4); border-bottom: 1px solid rgba(198, 241, 53, .4);
}
.battery-gauge__pct--acima.battery-gauge__pct { color: #c6f135 !important; }
.section-title .link-btn { white-space: nowrap; flex: none; }

/* =====================================================================
   Tema claro: fundo da tela branco e cartões no off-white (invertidos),
   e bateria com cinza no lugar do branco (vãos, carcaça e brilho).
   ===================================================================== */
html:not(.theme-dark) {
  --ez-bg: #ffffff;
  --ez-bg-glow: radial-gradient(120% 60% at 50% -10%, rgba(198, 241, 53, .08), transparent 55%), #ffffff;
  --ez-surface: #f2f5ec;
  --ez-surface-solid: #f2f5ec;
  --ez-elevated-bg: #f2f5ec;
  --ez-elevated-bg-hover: #edf1e5;
  --ez-surface-secondary: #e6ebdd;
}
html:not(.theme-dark) body, html:not(.theme-dark) #app, html:not(.theme-dark) .app-main { background: var(--ez-bg-glow); }
html:not(.theme-dark) .card,
html:not(.theme-dark) .mp-kpi,
html:not(.theme-dark) .mp-card,
html:not(.theme-dark) .home-shortcut,
html:not(.theme-dark) .bonus-aba,
html:not(.theme-dark) .carteira-bonus {
  background: #f2f5ec;
  border-color: rgba(40, 70, 20, .12);
  box-shadow: 0 1px 2px rgba(20, 40, 20, .04);
}
html:not(.theme-dark) .card--primary { background: linear-gradient(140deg, #eaf6c6, #f2f5ec 65%); }

/* bateria: vãos, carcaça e brilho em cinza */
html:not(.theme-dark) .battery-gauge__shell { background: #d9ded6; border-color: #b4bcb2; }
html:not(.theme-dark) .battery-gauge__shell::after { --bat-vao: #7f8a80; }
html:not(.theme-dark) .battery-gauge__fill--alta { --bat-claro: #d6ec7a; }
html:not(.theme-dark) .battery-gauge__fill::before { background: linear-gradient(180deg, rgba(120, 130, 120, .28), rgba(120, 130, 120, 0)); }
html:not(.theme-dark) .battery-gauge__nub { background: #b4bcb2; }

/* ===== Meus diretos (conceito da Lista de diretos do Hub) ===== */

/* Contador de notificações em verde (lima com texto escuro), não vermelho */
.badge-dot, html.theme-dark .badge-dot { background: #c6f135 !important; color: #08150a !important; box-shadow: 0 0 0 2px var(--ez-bg), 0 0 8px rgba(198, 241, 53, .45) !important; }
html:not(.theme-dark) .app-header .badge-dot { box-shadow: 0 0 0 2px #0f1d13 !important; }
/* sino "aberto" quando a lista está na tela */
.app-header .icon-btn[data-action="voltar"][aria-label^="Notificações"] { background: rgba(198, 241, 53, .16); border-color: rgba(198, 241, 53, .4); color: #c6f135; }
.app-header .icon-btn .badge-dot { top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: 10px; }

/* ---- Próxima carga: anel compacto com as informações ao lado ---- */
.battery-card__head--secundaria { margin-top: 14px; padding-top: 12px; margin-bottom: 6px; }
.carga-anel-linha { display: flex; align-items: center; gap: 16px; text-align: left; }
.carga-anel { position: relative; flex: none; width: 78px; height: 78px; }
.carga-anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.carga-anel circle { fill: none; stroke-width: 9; }
.carga-anel__trilho { stroke: rgba(255, 255, 255, .07); }
.carga-anel__arco { stroke: url(#carga-anel-grad); stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(198, 241, 53, .5)); }
.carga-anel__valor { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.carga-anel__valor b { font: 600 1.35rem/1 "Space Grotesk", sans-serif; color: var(--ez-ink); }
.carga-anel__valor small { margin-top: 2px; font-size: .55rem; letter-spacing: .08em; color: var(--ez-ink-secondary); }
.carga-anel-info { flex: 1; display: grid; gap: 3px; font-size: .75rem; color: var(--ez-ink-secondary); }
.carga-anel-info > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.carga-anel-info b { font: 600 .875rem "Space Grotesk", sans-serif; color: var(--ez-ink); white-space: nowrap; }
html:not(.theme-dark) .carga-anel__trilho { stroke: rgba(8, 21, 10, .1); }
html:not(.theme-dark) .carga-anel__arco { filter: none; }
.battery-card__acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.battery-card__acoes .battery-card__historico { margin-top: 0; align-self: center; }

/* ---- iPhone: sem zoom automático ----
   O Safari do iOS amplia a página ao focar um campo com letra menor que 16px e ela
   fica maior que a tela. Em telas de toque todo campo usa 16px; e o texto não é
   "inflado" ao girar o aparelho. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse), (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ---- Parte consumida da bateria: cinza em degradê (claro em cima, escuro embaixo) ---- */
html.theme-dark .battery-gauge__shell {
  padding: 4px;
  background:
    linear-gradient(180deg, #6a706b 0%, #4a504b 42%, #2e332f 100%) content-box,
    rgba(255, 255, 255, .06);
}
html:not(.theme-dark) .battery-gauge__shell {
  padding: 4px;
  background:
    linear-gradient(180deg, #eef0ec 0%, #c9cec7 45%, #9ea59d 100%) content-box,
    #d9ded6;
}

/* ---- Divisória entre a bateria em uso e a próxima carga: verde metálico ---- */
.battery-card__head--secundaria {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(127, 168, 15, .15) 0%, #7fa80f 18%, #ecff9e 50%, #9ccc1c 72%, rgba(77, 124, 15, .15) 100%) 1;
}
html:not(.theme-dark) .battery-card__head--secundaria {
  border-image: linear-gradient(90deg, rgba(77, 124, 15, .2) 0%, #6b8f12 20%, #b5dc3a 50%, #6b8f12 80%, rgba(77, 124, 15, .2) 100%) 1;
}

/* Tema claro: divisões da bateria em cinza claro, mais leves */
html:not(.theme-dark) .battery-gauge__shell::after { --bat-vao: #c8cec6; }

/* ---- Atalhos do Início alinhados: ícone sempre no topo e texto com a mesma
   altura (2 linhas) em todos, mesmo quando um rótulo quebra e os outros não ---- */
.home-shortcuts { align-items: stretch; }
.home-shortcut { justify-content: flex-start; padding-top: 14px; padding-bottom: 12px; }
.home-shortcut__label {
  display: flex; align-items: flex-start; justify-content: center;
  min-height: calc(2 * 1.15em);
}

/* ---- Atalhos do Início: só o ícone e o nome, sem o cartão em volta ---- */
html .home-shortcut,
html.theme-dark .home-shortcut,
html:not(.theme-dark) .home-shortcut,
html .home-shortcut:hover,
html .home-shortcut:focus-visible {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0;
  padding: 4px 0 0;
}
html .home-shortcut:focus-visible .home-shortcut__icon { outline: 2px solid #c6f135; outline-offset: 2px; }
.home-shortcut:hover .home-shortcut__icon { border-color: rgba(198, 241, 53, .4); }

/* Atalhos do Início: ícones um pouco maiores */
.home-shortcut__icon { width: 54px; height: 54px; border-radius: 17px; }
.home-shortcut__icon svg { width: 29px; height: 29px; }

/* Desktop: menu lateral com os grupos do "Mais" — rola se não couber na tela */
@media (min-width: 900px) {
  html:not(.is-framed) .tabbar { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
  html:not(.is-framed) .tabbar a.tabbar__item { text-decoration: none; }
}

/* ---- Web: bateria em uso (65%) e próxima carga (35%) lado a lado ----
   Decide pela largura do próprio card (container query), não da janela: só fica lado
   a lado quando o card tem 900px ou mais; abaixo disso a próxima carga volta para
   baixo da bateria (como no celular), em qualquer tela ou zoom do navegador. */
.stack:has(> .battery-card) { container: bateria / inline-size; }
@container bateria (min-width: 900px) {
  .battery-card {
    display: grid !important;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    grid-template-areas: "uso prox" "uso acoes";
    grid-template-rows: 1fr auto;
    column-gap: 0;
    align-items: stretch;
  }
  .battery-card > .battery-card__section:first-of-type { grid-area: uso; padding-right: 28px; }
  .battery-card > .battery-card__section:nth-of-type(2) { grid-area: prox; padding-left: 28px; border-left: 1px solid transparent;
    border-image: linear-gradient(180deg, rgba(127, 168, 15, .15), #7fa80f 25%, #ecff9e 50%, #9ccc1c 75%, rgba(77, 124, 15, .15)) 1; }
  .battery-card > .battery-card__acoes { grid-area: acoes; padding-left: 28px; border-left: 1px solid transparent;
    border-image: linear-gradient(180deg, rgba(156, 204, 28, .5), rgba(77, 124, 15, .1)) 1; }
  /* a divisória horizontal sai: no desktop a separação é a linha vertical */
  .battery-card .battery-card__head--secundaria { margin-top: 0; padding-top: 0; border-top: 0; border-image: none; }
  .battery-card .carga-anel-linha { margin-top: 10px; }
}

/* ---- Web, tema claro: topo do menu lateral no mesmo verde escuro do cabeçalho ---- */
@media (min-width: 900px) {
  html:not(.theme-dark):not(.is-framed) .sidebar-brand {
    box-sizing: border-box; height: 65px; min-height: 65px;
    margin: -.75rem -.625rem .5rem; padding: 0 1.125rem;
    background: linear-gradient(180deg, #13261a, #0f1d13);
    border-bottom: 1px solid rgba(198, 241, 53, .18);
  }
  html:not(.theme-dark):not(.is-framed) .sidebar-brand__name { color: #f4f7ef; }
  html:not(.theme-dark):not(.is-framed) .sidebar-brand__tag { color: #a9bca9; }
  html:not(.theme-dark):not(.is-framed) .sidebar-brand .app-header__mark { background: rgba(198, 241, 53, .12); border-color: rgba(198, 241, 53, .32); }
}

/* ---- Atalhos do Início: subtítulo e seta só aparecem na web ---- */
.home-shortcut__sub, .home-shortcut__seta { display: none; }

/* ---- Web: atalhos viram cards horizontais que preenchem a linha (responsivos) ---- */
@media (min-width: 900px) {
  /* 2×2 em telas médias, 4 numa linha em telas largas — nunca sobra um sozinho */
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  html .home-shortcut,
  html.theme-dark .home-shortcut,
  html:not(.theme-dark) .home-shortcut {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icone nome seta" "icone sub seta";
    align-items: center; column-gap: 14px; row-gap: 2px;
    padding: 14px 16px !important; min-height: 0; text-align: left;
    border-radius: 18px;
    border: 1px solid var(--hub-border) !important;
    background: var(--ez-surface-solid) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12) !important;
  }
  html.theme-dark .home-shortcut {
    background: linear-gradient(160deg, rgba(198, 241, 53, .06), rgba(198, 241, 53, .015) 60%), #111a13 !important;
    border-color: rgba(198, 241, 53, .14) !important;
  }
  html:not(.theme-dark) .home-shortcut { background: #f2f5ec !important; border-color: #dfe5d6 !important; }
  html .home-shortcut:hover { border-color: rgba(198, 241, 53, .45) !important; transform: translateY(-1px); }
  .home-shortcut__icon { grid-area: icone; width: 48px; height: 48px; border-radius: 15px; }
  .home-shortcut__icon svg { width: 25px; height: 25px; }

  .home-shortcut__label { grid-area: nome; display: block; min-height: 0; text-align: left; font-size: .95rem; align-self: end; }
  .home-shortcut__sub { grid-area: sub; display: block; font-size: .78rem; color: var(--ez-ink-secondary); align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .home-shortcut__seta { grid-area: seta; display: block; font-size: 1.4rem; line-height: 1; color: #9ccc1c; }
}

@media (min-width: 1200px) {
  .home-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Próxima carga: rótulo e valor nunca saem do card — se não couber na linha, o valor
   desce para baixo do rótulo em vez de vazar pela borda. */
.carga-anel-info { min-width: 0; }
.carga-anel-info > div { flex-wrap: wrap; min-width: 0; }
.carga-anel-info > div > b { margin-left: auto; }

/* ---- Vitrine do Início: só na versão web ---- */
.vitrine-web { display: none; }
@media (min-width: 900px) {
  .vitrine-web {
    position: relative; display: flex; align-items: center; overflow: hidden;
    aspect-ratio: 3 / 1; max-height: 360px; min-height: 240px; margin: 0 0 24px;
    border-radius: 24px; border: 1px solid rgba(198, 241, 53, .22);
    background: #04140a url("../img/vitrine-web.webp") right center / cover no-repeat;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  }
  .vitrine-web::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 14, 7, .85) 0%, rgba(3, 14, 7, .55) 38%, rgba(3, 14, 7, 0) 62%); }
  .vitrine-web__texto { position: relative; max-width: 52%; padding: 0 clamp(24px, 4vw, 56px); display: grid; gap: 12px; }
  .vitrine-web__eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c6f135; }
  .vitrine-web__titulo { margin: 0; font: 600 clamp(1.6rem, 2.6vw, 2.5rem)/1.1 var(--font-head, "Space Grotesk"), sans-serif; color: #fff; letter-spacing: -.02em; }
  .vitrine-web__titulo span { color: #c6f135; }
  .vitrine-web__sub { margin: 0; max-width: 34ch; font-size: clamp(.85rem, 1vw, 1rem); color: rgba(241, 248, 230, .82); }
  .vitrine-web__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
  .vitrine-web__sec { color: #e6f7b6 !important; border-color: rgba(198, 241, 53, .45) !important; background: rgba(6, 20, 10, .35) !important; backdrop-filter: blur(6px); }
}
/* Vitrine fina: metade da altura (6:1). A imagem fica inteira à direita, na altura
   da faixa, e o resto da faixa é o mesmo verde escuro do lado esquerdo dela. */
@media (min-width: 900px) {
  .vitrine-web {
    aspect-ratio: 6 / 1; max-height: 180px; min-height: 120px;
    background: linear-gradient(90deg, #03120a 0%, #062a12 100%) left / 100% 100% no-repeat;
    background-color: #03120a;
  }
  .vitrine-web::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 3 / 1; height: 100%;
    background: url("../img/vitrine-web.webp") right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  }
  .vitrine-web::before { z-index: 1; background: linear-gradient(90deg, rgba(3, 14, 7, .6) 0%, rgba(3, 14, 7, 0) 45%); }
  .vitrine-web__texto { z-index: 2; max-width: 60%; gap: 6px; }
  .vitrine-web__titulo { font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
  .vitrine-web__titulo br { display: none; }
  .vitrine-web__titulo span::before { content: " "; }
  .vitrine-web__sub { display: none; }
  .vitrine-web__acoes .btn { min-height: 34px; padding: 6px 14px; font-size: .85rem; }
  .vitrine-web__eyebrow { font-size: .68rem; }
}

/* ---- Celular: áreas de toque de pelo menos ~40–44px ----
   Filtros (chips), botões pequenos, setas de mês, links de ação e botões do topo
   ficavam entre 28 e 36px — difícil de acertar com o dedo. */
@media (pointer: coarse), (max-width: 899px) {
  .filter-chip { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .btn--sm { min-height: 40px; }
  .app-header .icon-btn { min-width: 40px; min-height: 40px; }
  .vd-mes__seta { min-width: 44px; min-height: 44px; }
  .battery-card__historico,
  .bonus-produto__acao { min-height: 40px; display: inline-flex; align-items: center; }
  .mp-status { min-height: 44px; }
}
/* Vitrine sempre na largura toda (a proporção fixa + altura máxima encolhia a largura
   em telas grandes); só a altura acompanha a tela. */
@media (min-width: 900px) {
  .vitrine-web { width: 100%; aspect-ratio: auto; height: clamp(120px, 11vw, 180px); max-height: none; min-height: 0; }
}

/* Selo "Versão Beta" no topo, à esquerda do sino */
.app-header .selo-beta { position: static; align-self: center; flex: none; margin-right: 2px; }
@media (max-width: 899px) {
  .app-header .selo-beta { padding: .25rem .5rem; font-size: .5625rem; letter-spacing: .08em; gap: .3rem; }
  .app-header .selo-beta span { display: none; }
}

/* Vitrine sem a Lumi: fundo só com as luzes verdes e a tela do app num celular */
@media (min-width: 900px) {
  .vitrine-web { background: #03120a url("../img/vitrine-fundo.webp") center 62% / cover no-repeat; }
  .vitrine-web::after { display: none; }
  .vitrine-web::before { background: linear-gradient(90deg, rgba(3, 14, 7, .78) 0%, rgba(3, 14, 7, .35) 45%, rgba(3, 14, 7, .1) 100%); }
  .vitrine-web__celular {
    position: absolute; z-index: 2; right: clamp(28px, 7%, 110px); top: 16px;
    width: clamp(92px, 9vw, 128px); aspect-ratio: 284 / 624;
    padding: 5px; border-radius: 20px; background: linear-gradient(160deg, #3a4a3c, #0b120c 40%, #1d281e);
    border: 1px solid rgba(198, 241, 53, .35);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .55), 0 0 36px rgba(198, 241, 53, .28);
    transform: rotate(-7deg); transform-origin: 50% 0;
  }
  .vitrine-web__celular::before { content: ""; position: absolute; top: 8px; left: 50%; width: 30%; height: 6px; border-radius: 99px; background: #050a06; transform: translateX(-50%); z-index: 1; }
  .vitrine-web__celular img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
}
/* Tema claro: vitrine sem sombra */
html:not(.theme-dark) .vitrine-web { box-shadow: none; }
/* Vitrine abaixo do "Olá" */
@media (min-width: 900px) { .vitrine-web { margin: 18px 0 0; } }

.carteira-bonus__saida { color: var(--ez-red, #ff6b5e) !important; }

/* ---- Aviso de consultor inativo (bateria em 0%) ---- */
.aviso-inativo { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px 16px; }
.aviso-inativo__fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); animation: mc-fade .18s ease-out; }
.aviso-inativo__caixa {
  position: relative; width: min(420px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto;
  display: grid; gap: 12px; justify-items: center; text-align: center; padding: 26px 20px 16px; border-radius: 24px;
  background: linear-gradient(165deg, #2c4a12 0%, #17290b 55%, #0f1c08 100%); color: #f1f8e6;
  border: 1px solid rgba(198, 241, 53, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(236, 255, 158, .18);
  animation: aviso-inativo-entra .22s ease-out;
}
@keyframes aviso-inativo-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .aviso-inativo__caixa, .aviso-inativo__fundo { animation: none; } }
.aviso-inativo.is-saindo { opacity: 0; transition: opacity .18s; }
.aviso-inativo__icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #c6f135; color: #0b1a0c; box-shadow: 0 0 24px rgba(198, 241, 53, .4); }
.aviso-inativo__icone svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aviso-inativo__titulo { margin: 2px 0 0; font: 600 1.25rem/1.25 var(--font-head, "Space Grotesk"), sans-serif; color: #fff; }
.aviso-inativo__caixa p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(241, 248, 230, .86); }
.aviso-inativo__caixa p strong { color: #d9f77a; }
.aviso-inativo__caixa .btn { width: 100%; }
.aviso-inativo__caixa .btn--primary { margin-top: 4px; }
.aviso-inativo__caixa .btn--ghost { color: #e6f7b6; border-color: rgba(198, 241, 53, .4); }
.aviso-inativo__depois { padding: 6px 12px; font-size: .8125rem; color: rgba(241, 248, 230, .7); }

/* ===== Minhas propostas: busca única, filtros em chips, etiquetas e páginas ===== */
.mp-busca { position: relative; display: flex; gap: .5rem; align-items: center; }
.mp-busca__lupa { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--ez-ink-tertiary); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mp-busca__input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px 10px 40px; border-radius: 999px; font: inherit;
  border: 1px solid var(--hub-border-strong); background: var(--ez-surface-solid); color: var(--ez-ink);
}
.mp-busca__input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--hub-ink); }
.mp-busca .btn { min-height: 46px; }
.mp-filtros { display: grid; gap: .5rem; }
.mp-filtro { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.mp-filtro__rotulo { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hub-lime-dim); }
.mp-filtro .chips-scroll { margin: 0; }
.mp-dica { margin: 0 0 0 4.75rem; font-size: .75rem; color: var(--ez-ink-tertiary); }
.mp-datas { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: end; margin-left: 4.75rem; }
.mp-datas[hidden] { display: none; }
.mp-datas .field { margin: 0; }
@media (max-width: 420px) {
  .mp-filtro { grid-template-columns: 1fr; gap: .25rem; }
  .mp-dica,
.mp-datas { margin-left: 0; }
  .mp-datas { grid-template-columns: 1fr 1fr; }
  .mp-datas .btn { grid-column: span 2; }
}
.mp-ativos { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.mp-ativo {
  display: inline-flex; align-items: center; gap: .375rem; padding: .3rem .4rem .3rem .75rem; border-radius: 999px;
  background: var(--hub-accent); border: 1px solid var(--hub-border-strong); color: var(--ez-ink); font-size: .8125rem; font-weight: 600;
}
.mp-ativo span { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgba(0, 0, 0, .18); font-size: .875rem; line-height: 1; }
.mp-paginas { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mp-paginas__atual { font-size: .8125rem; color: var(--ez-ink-secondary); }
html.theme-dark .mp-busca__input {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08);
}

/* ===== Rede (busca + linha de patrocínio) e Meus diretos ===== */
.rede-busca { display: flex; gap: .5rem; align-items: center; }
.rede-busca__input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--hub-border-strong); background: var(--ez-surface-solid); color: var(--ez-ink); font: inherit;
}
.rede-busca__input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--hub-ink); }
.rede-busca .btn { min-height: 44px; }
.busca-resultados { display: grid; gap: .5rem; margin-top: .5rem; }
.busca-resultado { width: 100%; align-items: stretch; text-align: left; padding: .875rem 1rem; color: inherit; cursor: pointer; }
.busca-resultado__topo { align-items: flex-start; gap: .75rem; }
.busca-resultado__abrir { font-size: .75rem; font-weight: 600; color: var(--hub-ink); white-space: nowrap; }
.patrocinio { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; font-size: .75rem; color: var(--ez-ink-secondary); }
.patrocinio__no { padding: .125rem .5rem; border-radius: 999px; background: var(--ez-surface-secondary); white-space: nowrap; }
.patrocinio__no small { font-family: var(--font-mono); font-size: .6875rem; opacity: .8; }
.patrocinio__no--voce { background: var(--hub-accent); color: var(--hub-ink); font-weight: 600; }
.patrocinio__no--alvo { background: var(--hub-accent); color: var(--ez-ink); border: 1px solid var(--hub-border-strong); font-weight: 600; }
.patrocinio__sep { opacity: .6; }
html.theme-dark .busca-resultado {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  box-shadow: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.theme-dark .rede-busca__input {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08);
}
html.theme-dark .busca-resultado {
  border: 1px solid transparent !important;
  background: var(--card-tinta) padding-box, var(--card-base) padding-box, var(--card-borda) border-box !important;
  box-shadow: inset 0 1px 0 rgba(228, 255, 138, .05), 0 8px 24px -14px rgba(0, 0, 0, .55);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html:not(.theme-dark) .busca-resultado {
  background: #f2f5ec;
  border-color: rgba(40, 70, 20, .12);
  box-shadow: 0 1px 2px rgba(20, 40, 20, .04);
}
.md-pontos { display: flex; align-items: baseline; gap: .5rem; padding: .625rem .875rem; border-radius: 12px; background: var(--hub-accent); font-size: .8125rem; color: var(--ez-ink-secondary); }
.md-pontos b { font-family: var(--font-head); font-size: 1.0625rem; color: var(--hub-ink); }
.md-pontos small { margin-left: auto; font-size: .75rem; }
.md-controles { display: grid; gap: .5rem; }
@media (min-width: 620px) {
  .md-controles { grid-template-columns: 1fr 220px; }
  .md-chips { grid-column: 1 / -1; }
}
.md-ordem__select { padding-left: 14px; appearance: auto; }
.md-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.md-qtd { opacity: .7; margin-left: 2px; }
.md-lista { display: grid; gap: .75rem; }
@media (min-width: 900px) {
  .md-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.md-card { display: flex !important; flex-direction: column; width: 100%; align-items: stretch !important; gap: .75rem !important; padding: 1rem !important; text-align: left; color: inherit; cursor: pointer; }
.md-card:active { transform: scale(.99); }
.md-card__topo { display: flex; gap: .75rem; align-items: flex-start; }
.md-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 .9375rem var(--font-head); color: var(--hub-ink); background: var(--hub-accent); box-shadow: inset 0 0 0 2px var(--faixa); }
.md-ident { display: grid; gap: .25rem; min-width: 0; }
.md-nome { font-family: var(--font-head); font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.md-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.md-login { font-size: .75rem; color: var(--ez-ink-tertiary); font-family: var(--font-mono); }
.md-status { font-size: .75rem; color: var(--ez-ink-secondary); }
.md-ativo { color: var(--hub-ink); font-weight: 600; }
.md-inativo { color: #ff6b5e; font-weight: 600; }
.md-bateria { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .5rem; font-size: .75rem; color: var(--ez-ink-secondary); }
.md-bateria b { color: var(--ez-ink); font-family: var(--font-head); }
.md-bateria small { color: var(--ez-ink-tertiary); }
.md-bateria__trilho { height: 6px; border-radius: 99px; background: var(--ez-surface-secondary); overflow: hidden; }
.md-bateria__trilho i { display: block; height: 100%; border-radius: inherit; }
.md-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.md-rede .md-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 380px) {
  .md-rede .md-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.md-num { display: grid; gap: 1px; min-width: 0; }
.md-num span { font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ez-ink-tertiary); }
.md-num b { font-family: var(--font-head); font-size: 1.0625rem; }
.md-num small { font-size: .6875rem; color: var(--ez-ink-tertiary); }
.md-rede { padding-top: .75rem; border-top: 1px solid var(--hub-border); display: grid; gap: .5rem; }
.md-rede__titulo { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hub-lime-dim); }
.md-ver { justify-self: end; font-size: .8125rem; font-weight: 600; color: var(--hub-ink); }
.md-acoes { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.md-whats {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px;
  background: #5fcf73; color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; box-shadow: 0 4px 12px rgba(37, 211, 102, .25);
}
.md-whats svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.md-whats:hover { background: #4cc463; }
.md-whats--carregando { background: var(--ez-surface-secondary); color: var(--ez-ink-tertiary); box-shadow: none; font-weight: 600; }
.md-sem-fone { font-size: .75rem; color: var(--ez-ink-tertiary); }
.md-card:focus-visible { outline: 2px solid var(--hub-ink); outline-offset: 2px; }
.md-card { gap: .625rem !important; padding: .875rem 1rem !important; }
.md-card__topo { position: relative; padding-right: 22px; }
.md-seta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--ez-ink-secondary); }
.md-card:hover .md-seta { color: #9ccc1c; }
.md-linha { display: flex; align-items: center; gap: 12px; }
.md-linha .md-bateria { flex: 1; min-width: 0; }
.md-linha .md-whats { flex: none; padding: 8px 14px; min-height: 40px; font-size: .875rem; }
.md-linha .md-sem-fone { flex: none; font-size: .75rem; color: var(--ez-ink-secondary); }

/* ===== Relatório de Bônus: resumo do mês e financeiro geral ===== */
.br-resumo { align-items: stretch; padding: var(--space-4); }
.br-resumo__linha { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 6px; }
.br-resumo__linha div,
.br-geral__grade div { display: grid; gap: 2px; font-size: .75rem; color: var(--ez-ink-secondary); }
.br-resumo__linha b,
.br-geral__grade b { font: 600 .95rem var(--font-head, "Space Grotesk"), sans-serif; color: var(--ez-ink); white-space: nowrap; }
.br-geral { align-items: stretch; padding: var(--space-4); }
.br-geral__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.bonus-aba.is-off { opacity: .55; }

/* ===== Desafio 7x7: cartão da Home (.j7c) e simulador (.sim7) ===== */
html.theme-dark .j7c {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  box-shadow: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.theme-dark .j7c {
  background: linear-gradient(140deg, rgba(198, 241, 53, .14), rgba(198, 241, 53, .03));
  border-color: rgba(198, 241, 53, .18);
}
html.theme-dark .j7c {
  border: 1px solid transparent !important;
  background: var(--card-tinta) padding-box, var(--card-base) padding-box, var(--card-borda) border-box !important;
  box-shadow: inset 0 1px 0 rgba(228, 255, 138, .05), 0 8px 24px -14px rgba(0, 0, 0, .55);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.theme-dark .j7c {
  --card-tinta: linear-gradient(140deg, rgba(198, 241, 53, .13), rgba(198, 241, 53, .03) 60%);
}
html:not(.theme-dark) .j7c {
  background: #f2f5ec;
  border-color: rgba(40, 70, 20, .12);
  box-shadow: 0 1px 2px rgba(20, 40, 20, .04);
}
.sim7 { align-items: stretch; gap: 10px; }
.sim7__titulo { display: flex; align-items: center; gap: 10px; margin: 0; }
.sim7__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--hub-tile, rgba(198, 241, 53, .1)); color: #c6f135; border: 1px solid rgba(198, 241, 53, .18); }
.sim7__ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html:not(.theme-dark) .sim7__ic { color: #4d6b0c; }
.sim7__grade { display: grid; gap: 18px; margin-top: 6px; }
@media (min-width: 700px) {
  .sim7__grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.sim7__campos { display: grid; gap: 14px; align-content: start; }
.sim7__linha { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--ez-ink-secondary); }
.sim7__linha b { color: var(--ez-ink); font-family: var(--font-head); }
.sim7__slider input { width: 100%; margin-top: 6px; accent-color: #9ccc1c; }
.sim7__padrao { justify-self: start; }
.sim7__saida { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--hub-border, rgba(255, 255, 255, .08)); }
html:not(.theme-dark) .sim7__saida { background: #e9eee2; }
.sim7__grande { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sim7__grande b { font: 600 2.75rem/1 var(--font-head, "Space Grotesk"), sans-serif; color: var(--ez-ink); }
.sim7__grande.ok b { color: #c6f135; }
html:not(.theme-dark) .sim7__grande.ok b { color: #5d8a0e; }
.sim7__grande span { color: var(--ez-ink-secondary); font-size: .9rem; }
.sim7__veredito { margin: 0; font-size: .875rem; }
.sim7__veredito.ok { color: #c6f135; }
.sim7__veredito.atencao { color: #ffd60a; }
html:not(.theme-dark) .sim7__veredito.ok { color: #4d7c0f; }
html:not(.theme-dark) .sim7__veredito.atencao { color: #a16207; }
.sim7__barras { position: relative; height: 9rem; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; border-bottom: 1px solid var(--hub-border-strong, rgba(255, 255, 255, .18)); margin-top: 18px; }
.sim7__barra { position: relative; border-radius: 4px 4px 0 0; background: rgba(198, 241, 53, .4); }
.sim7__barra.ok { background: #c6f135; }
html:not(.theme-dark) .sim7__barra { background: rgba(93, 138, 14, .35); }
html:not(.theme-dark) .sim7__barra.ok { background: #6b9a12; }
.sim7__barra b { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: .6875rem; color: var(--ez-ink-secondary); padding-bottom: 2px; }
.sim7__meta { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #ffd60a; pointer-events: none; }
html:not(.theme-dark) .sim7__meta { border-top-color: #ca8a04; }
.sim7__meta em { position: absolute; right: 0; bottom: 2px; font-size: .625rem; font-style: normal; color: #ffd60a; }
html:not(.theme-dark) .sim7__meta em { color: #a16207; }
.sim7__eixo { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; text-align: center; font-size: .6875rem; color: var(--ez-ink-secondary); }
@media (pointer: coarse), (max-width: 899px) {
  .sim7__padrao { min-height: 40px; display: inline-flex; align-items: center; }
}
.carteira-aviso { margin-top: .625rem; font-size: .8125rem; color: #c9d6c3; opacity: .9; }

/* Atalhos do Início com 3 itens (sem o HUB): uma linha de 3 em qualquer largura —
   a grade padrão (4 no celular, 2×2/4 na web) deixaria buraco ou um card sozinho. */
.home-shortcuts[data-qtd="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* Atalho HUB: símbolo da Enerzee no ladrilho */
.home-shortcut--hub .home-shortcut__icon img { width: 32px; height: 32px; filter: drop-shadow(0 0 5px rgba(198, 241, 53, .55)); }
@media (min-width: 900px) { .home-shortcut--hub .home-shortcut__icon img { width: 28px; height: 28px; } }

/* Atalhos do Início com 5 itens: uma linha de 5 no celular e na web larga;
   na web média (cards horizontais) não cabem 5 — fica 3 + 2. */
.home-shortcuts[data-qtd="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
@media (min-width: 900px) and (max-width: 1199px) {
  .home-shortcuts[data-qtd="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ===== Hub aberto dentro do app (celular): tela cheia, splash e X flutuante ===== */
.hub-janela {
  position: fixed; inset: 0; z-index: 200; background: #0b130d;
  padding-top: env(safe-area-inset-top);
  animation: hub-entra .2s ease-out;
}
.hub-janela.is-saindo { opacity: 0; transition: opacity .18s; }
@keyframes hub-entra { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .hub-janela { animation: none; }
}
.hub-janela iframe { display: block; width: 100%; height: 100%; border: 0; background: #0b130d; }
html.hub-aberto,
html.hub-aberto body { overflow: hidden; }
.hub-janela__fechar {
  position: absolute; z-index: 1; left: 12px; top: calc(env(safe-area-inset-top) + 12px);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10, 18, 12, .72); color: #f4f7ef; border: 1px solid rgba(198, 241, 53, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.hub-janela__fechar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hub-splash {
  position: absolute; inset: 0; z-index: 1; min-height: 0;
  background: radial-gradient(120% 70% at 50% 35%, #173a1f 0%, #0b130d 62%);
  transition: opacity .25s ease;
}
.hub-splash.is-saindo { opacity: 0; pointer-events: none; }
.hub-splash__nome { font: 600 1.375rem var(--font-head, "Space Grotesk"), sans-serif; color: #f4f7ef; letter-spacing: -.01em; }
.hub-splash .ld-texto { color: #a9bca9; }
.hub-janela__fechar { z-index: 2; }
.hub-janela__fechar {
  background: linear-gradient(160deg, rgba(198, 241, 53, .38), rgba(120, 170, 20, .22)) !important;
  border: 1px solid rgba(220, 255, 140, .55) !important;
  color: #f7ffe6 !important;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 14px rgba(198, 241, 53, .25) !important;
}

/* ===== Proposta: falar com o cliente (WhatsApp + reenviar) ===== */
.pd-contato { align-items: stretch !important; gap: .5rem !important; padding: 1rem !important; }
.pd-editar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ez-ink-secondary); border: 1px solid var(--hub-border); }
.pd-editar:hover { color: var(--hub-ink); border-color: var(--hub-border-strong); }
.pd-editar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-fone { font-family: var(--font-head); font-size: 1rem !important; color: var(--ez-ink) !important; }
.pd-editado { font-family: Inter, sans-serif; font-size: .6875rem; padding: 1px 8px; border-radius: 99px; background: var(--hub-accent); color: var(--hub-ink); }
.pd-form { display: grid; gap: .5rem; }
.pd-form[hidden] { display: none; }
.pd-form .field { margin: 0; }
.pd-form__acoes { display: flex; justify-content: space-between; gap: .5rem; }
.pd-botoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .25rem; }
.pd-reenviar { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.pd-reenviar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ===== Proposta: resumo do sistema (Solar) ===== */
.rs-card { align-items: stretch; gap: .875rem; padding: var(--space-4); }
.rs-card .h2 { margin: 0; }
.rs-destaques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rs-destaque { min-width: 0; }
.rs-destaque {
  display: grid; gap: .375rem; padding: .875rem 1rem; border-radius: 14px;
  background: var(--ez-surface-secondary); border: 1px solid var(--hub-border);
}
.rs-destaque--ativo {
  background: linear-gradient(140deg, rgba(198, 241, 53, .16), rgba(198, 241, 53, .03) 70%), var(--ez-surface-secondary);
  border-color: rgba(198, 241, 53, .35);
}
.rs-destaque__topo { display: flex; align-items: center; gap: .75rem; }
.rs-destaque__valor { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 1.875rem); font-weight: 600; line-height: 1; color: var(--ez-ink); white-space: nowrap; }
.rs-destaque__unidade { flex: 1; text-align: center; font-size: .875rem; color: var(--ez-ink-secondary); }
.rs-destaque__rotulo { font-size: .75rem; color: var(--ez-ink-secondary); }
.rs-linhas { margin: 0; display: grid; }
.rs-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem .125rem; border-top: 1px solid var(--hub-border); }
.rs-linha:first-child { border-top: 0; }
.rs-linha dt { font-size: .8125rem; color: var(--ez-ink-secondary); }
.rs-linha dd { margin: 0; font-family: var(--font-head); font-size: .875rem; font-weight: 600; color: var(--ez-ink); text-align: right; overflow-wrap: anywhere; }
/* Celular: os dois destaques continuam lado a lado (como no novo) — a unidade cola no
   número e a fonte encolhe com a tela para "7.201,43 kWh" caber na metade da largura. */
@media (max-width: 620px) {
  .rs-destaques { gap: .5rem; }
  .rs-destaque { padding: .75rem .75rem .625rem; }
  .rs-destaque__topo { gap: .375rem; align-items: baseline; }
  .rs-destaque__valor { font-size: clamp(1.25rem, 6vw, 1.625rem); }
  .rs-destaque__unidade { flex: none; text-align: left; font-size: .8125rem; }
}
