    /* ===== RESET & ROOT ===== */
    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent
    }

    html {
      height: 100%;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      overflow-x: hidden;
      /* Sem fundo, a área além do conteúdo aparecia PRETA ao arrastar de lado.
         #121110 = fallback p/ o 1º paint; a classe de tema em <html> refina depois. */
      background: var(--bg, #121110);
      overscroll-behavior: none;
    }

    body {
      height: 100%;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      overflow-x: hidden;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      /* Bloqueia arrasto horizontal do viewport (telas nunca rolam de lado).
         pinch-zoom junto: so pan-y desligava a pinca no Chrome do Android, e o
         zoom tinha sido liberado no viewport justamente por acessibilidade. */
      touch-action: pan-y pinch-zoom;
      overscroll-behavior-x: none;
      font-family: 'Sora', sans-serif;
      background: var(--bg);
      color: var(--text);
      transition: background .3s, color .3s;
      user-select: none;
      -webkit-user-select: none
    }

    input,
    textarea,
    [contenteditable] {
      user-select: text;
      -webkit-user-select: text
    }

    /* ===== THEMES ===== */
    :root {
      /* Cor da identidade do FastFin: o azul da marca (o mesmo do 'F' do
         logo). E UMA cor — antes havia um seletor de 7 temas, que fazia a
         interface nao ter identidade nenhuma. Trocar aqui troca no app todo. */
      --accent: #2A4BA8;
      --accent2: #1F3A85;
      --accent-rgb: 42, 75, 168;
      /* Cores semânticas FIXAS — nunca mudam com o tema de cor */
      --income: #3DD68C;
      --income-rgb: 61, 214, 140;
      --expense: #F26D6D;
      --expense-rgb: 242, 109, 109;
      --pending: #F0B429;
      --pending-rgb: 240, 180, 41;
      --purple: #C084FC;
      --cyan: #22D3EE;
      /* Elevacao neutra. Antes cada botao tinha sombra COLORIDA no tom do
         accent, o que dava aparencia de brilho/neon. Sombra serve pra dizer
         "isso esta acima daquilo" — quem faz isso e preto com alpha, nao cor. */
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28);
      --shadow-md: 0 2px 8px rgba(0, 0, 0, .34);
      --shadow-lg: 0 8px 24px rgba(0, 0, 0, .42);
    }

    /* ===== FONTES (proprias, nao do Google) =====================
       Arquivos variaveis, subconjunto latino: um download por familia cobre
       todos os pesos. font-display:swap mantem o texto visivel enquanto carrega
       — com a fonte vindo da mesma origem e pre-carregada, a troca acontece
       antes da primeira pintura e nao empurra mais o layout. */
    @font-face {
      font-family: 'Sora';
      font-style: normal;
      font-weight: 300 800;
      font-display: swap;
      src: url('./fonts/sora.woff2') format('woff2');
    }

    @font-face {
      font-family: 'JetBrains Mono';
      font-style: normal;
      font-weight: 400 600;
      font-display: swap;
      src: url('./fonts/jetbrains-mono.woff2') format('woff2');
    }

    .dark {
      --bg: #121110;
      --bg2: #171614;
      --bg3: #1C1A18;
      --surface: #211F1C;
      --surface2: #282521;
      --surface3: #2F2C27;
      --border: rgba(255, 255, 255, 0.07);
      --border2: rgba(255, 255, 255, 0.12);
      --text: #EDE9E3;
      --text2: #A39D93;
      --text3: #8C867D;
      /* Azul de TEXTO. O --accent continua sendo o de FUNDO: clarea-lo
         quebraria o branco em cima dele. Separados porque as duas exigencias
         de contraste sao opostas. */
      --accent-txt: #8FA8E8;
      --card-bg: #1C1A18;
      --modal-bg: #171614;
      --shadow: rgba(0, 0, 0, 0.6);
    }

    .light {
      --accent-txt: #2A4BA8;
      --bg: #F4F1EA;
      --bg2: #ECE8DF;
      --bg3: #E3DED3;
      --surface: #FFFDF8;
      --surface2: #F8F5EE;
      --surface3: #F0ECE3;
      --border: rgba(0, 0, 0, 0.08);
      --border2: rgba(0, 0, 0, 0.14);
      --text: #1A1814;
      --text2: #57524A;
      --text3: #736C62;
      --card-bg: #FFFDF8;
      --modal-bg: #FFFDF8;
      /* Semanticas mais escuras no claro: o verde/ambar do escuro ficavam
         abaixo de 2:1 sobre papel. Estes passam de 4,5:1. */
      --income: #1B7F52;
      --income-rgb: 27, 127, 82;
      --expense: #C2413B;
      --expense-rgb: 194, 65, 59;
      --pending: #9A6100;
      --pending-rgb: 154, 97, 0;
      --shadow: rgba(0, 0, 0, 0.12);
    }

    /* ===== APP SHELL ===== */
    #app {
      position: fixed;
      inset: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: var(--bg)
    }


    /* Icones do sprite. width/height em `em` de proposito: o tamanho passa a
       vir do font-size que o container ja tinha para o emoji, entao nenhuma
       regra existente precisou mudar. currentColor faz o icone herdar a cor
       do texto, inclusive nos estados hover/active. */
    .ff-ico {
      width: 1em;
      height: 1em;
      display: inline-block;
      vertical-align: -.125em;
      flex-shrink: 0;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round
    }

    /* ===== AVISO DE ARMAZENAMENTO =====
       Nao e "banner de cookie": o FastFin nao grava cookie nenhum. O que ele
       usa e localStorage/IndexedDB, e so para funcionar (guardar os proprios
       lancamentos e a sessao). Chamar isso de cookie seria mentir para o
       usuario, entao o texto diz o que de fato acontece.

       Barra no rodape em vez de modal de propósito: nao bloqueia a tela nem
       exige clique para usar o app — armazenamento essencial nao depende de
       consentimento previo (LGPD art. 7, e GDPR "strictly necessary"). */
    .storage-notice {
      position: fixed;
      left: 12px;
      right: 12px;
      /* Rodape, e SO na tela de login (ver initStorageNotice). Tentei os dois
         lugares dentro do app: no rodape ele cobre a barra de digitacao do chat
         em tablet/desktop; no topo cobre o cabecalho do chat e o logo. Na tela
         de login o rodape esta livre, e e ali que o aviso faz sentido — antes
         de a pessoa comecar a usar. */
      bottom: 12px;
      z-index: 9998;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      max-width: 720px;
      margin: 0 auto;
      padding: 14px 16px;
      border-radius: 16px;
      background: var(--surface2);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-lg);
      animation: fadeUp .3s ease both
    }

    /* O atributo `hidden` vira display:none pela folha do NAVEGADOR, que tem
       precedencia menor que qualquer regra de autor: o `display: flex` acima
       vencia e o aviso continuava visivel mesmo com hidden=true. */
    .aceite-termos {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text2);
  margin: 4px 0 12px;
  cursor: pointer;
}

/* caixa propria: a nativa saia branca e quadrada no tema escuro */
.aceite-termos input {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin: -1px 0 0; flex-shrink: 0; cursor: pointer;
  border: 1.5px solid var(--border2); border-radius: 6px; background: var(--surface2);
  display: grid; place-content: center;
  transition: background-color .15s, border-color .15s;
}
.aceite-termos input::after {
  content: ''; width: 10px; height: 6px; margin-top: -2px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0);
  transition: transform .15s ease;
}
.aceite-termos input:checked { background: var(--accent); border-color: var(--accent); }
.aceite-termos input:checked::after { transform: rotate(-45deg) scale(1); }
.aceite-termos input:hover { border-color: var(--accent-txt); }
.aceite-termos input:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 2px; }
.auth-confirm {
  font-size: 13px; line-height: 1.5; color: var(--text); padding: 12px 14px; border-radius: 12px;
  background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .35);
}

.aceite-termos a {
  color: var(--accent-txt);
  text-decoration: underline;
}

.storage-notice[hidden] {
      display: none
    }

    .storage-notice-ico {
      font-size: 20px;
      color: var(--accent-txt);
      flex-shrink: 0;
      margin-top: 1px
    }

    .storage-notice-txt {
      flex: 1;
      font-size: 12px;
      line-height: 1.5;
      color: var(--text2)
    }

    .storage-notice-txt strong {
      display: block;
      color: var(--text);
      font-size: 13px;
      margin-bottom: 3px
    }

    .storage-notice-link {
      display: inline;
      margin-top: 4px;
      padding: 0;
      background: none;
      border: none;
      color: var(--accent-txt);
      font-family: inherit;
      font-size: 12px;
      font-weight: 700;
      text-decoration: underline;
      cursor: pointer
    }

    .storage-notice-ok {
      flex-shrink: 0;
      align-self: center;
      padding: 9px 18px;
      border-radius: 10px;
      border: none;
      background: var(--accent);
      color: #fff;
      font-family: 'Sora', sans-serif;
      font-weight: 700;
      font-size: 12px;
      cursor: pointer
    }

    .storage-notice-ok:active { opacity: .85 }

    @media (max-width: 560px) {
      .storage-notice { flex-wrap: wrap }

      .storage-notice-ok { width: 100% }
    }

    /* ===== SYNC STATUS BAR ===== */
    #syncBar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--surface2);
      z-index: 9999;
      overflow: hidden;
      display: none
    }

    #syncBar.syncing {
      display: block
    }

    #syncBar::after {
      content: '';
      position: absolute;
      left: -50%;
      width: 50%;
      height: 100%;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      animation: syncAnim 1.2s linear infinite
    }

    @keyframes syncAnim {
      from {
        left: -50%
      }

      to {
        left: 150%
      }
    }
    /* Mora dentro da linha "Conexao" em Configuracoes. Era um badge fixo no
       canto da tela, presente em toda tela do app — informacao de estado que
       nao muda quase nunca nao precisa acompanhar o usuario o tempo todo.
       Os ids continuam os mesmos: o JS que dirige o status nao mudou.
       Sem classe extra aqui de proposito — updateOnlineStatus() faz
       `el.className = status`, o que apagaria qualquer classe de estilo. */
    #syncStatus {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
      background: var(--surface2);
      border: 1px solid var(--border2);
      border-radius: 12px;
      padding: 9px 16px; min-width: 96px; justify-content: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--text2)
    }


    #syncDot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--text3);
      transition: background .3s
    }

    #syncStatus.online #syncDot {
      background: var(--income)
    }

    #syncStatus.offline #syncDot {
      background: var(--pending)
    }

    #syncStatus.syncing #syncDot {
      background: var(--accent);
      animation: pulse 1s infinite
    }

    /* ===== DESKTOP LAYOUT ===== */
    #mainApp {
      display: none;
      flex: 1;
      position: relative;
      overflow: hidden;
      height: 100%
    }

    /* SIDEBAR (mobile drawer & desktop fixed) */
    .sidebar {
      display: flex;
      flex-direction: column;
      width: 240px;
      flex-shrink: 0;
      background: var(--bg2);
      border-right: 1.5px solid var(--border);
      padding: 32px 16px 24px;
      gap: 4px;
      overflow-y: auto;
      z-index: 1000;
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      transform: translateX(-100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
      transform: translateX(0);
      box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .sidebar-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .sidebar-overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    .sidebar-nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 14px;
      border-radius: 14px;
      cursor: pointer;
      transition: all .2s;
      color: var(--text2);
      font-size: 14px;
      font-weight: 600;
      border: 1.5px solid transparent
    }

    .sidebar-nav-item:hover {
      background: var(--surface);
      color: var(--text)
    }

    .sidebar-nav-item.active {
      background: rgba(var(--accent-rgb), .12);
      color: var(--accent-txt);
      border-color: rgba(var(--accent-rgb), .2)
    }

    .sidebar-nav-icon {
      /* flex: svg inline ficava na linha de base do texto e descia/subia uns px */
      display: flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      flex-shrink: 0
    }

    .sidebar-fab {
      margin: 16px 0;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      border: none;
      border-radius: 14px;
      padding: 13px;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      transition: all .2s;
      width: 100%;
      font-family: 'Sora', sans-serif;
      box-shadow: var(--shadow-md);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px
    }

    .sidebar-fab:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-lg)
    }

    .sidebar-install {
      margin-top: auto;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      border: 1.5px dashed rgba(var(--accent-rgb), .55);
      border-radius: 14px;
      background: rgba(var(--accent-rgb), .1);
      color: var(--accent);
      font-family: inherit;
      text-align: left;
      cursor: pointer;
    }
    .sidebar-install[hidden] { display: none; }
    .setting-item[hidden], .form-row[hidden] { display: none; }
    .sidebar-install span { display: flex; flex-direction: column; }
    .sidebar-install b { font-size: 13px; color: var(--text); }
    .sidebar-install small { font-size: 10.5px; color: var(--text3); }
    .sidebar-install:not([hidden]) + .sidebar-user { margin-top: 0; }

    .sidebar-user {
      margin-top: auto;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      background: var(--surface);
      border-radius: 14px;
      border: 1.5px solid var(--border);
      cursor: pointer;
      transition: all .2s
    }

    .sidebar-user:hover {
      border-color: rgba(var(--accent-rgb), .3)
    }

    .sidebar-user-av {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 13px;
      color: #fff;
      flex-shrink: 0
    }

    .sidebar-user-name {
      font-size: 13px;
      font-weight: 700;
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .sidebar-user-sub {
      font-size: 10px;
      color: var(--text3)
    }

    /* MAIN CONTENT AREA */
    .app-body {
      display: flex;
      flex: 1;
      overflow: hidden;
      position: relative
    }

    .content-area {
      flex: 1;
      position: relative;
      overflow: hidden
    }

    /* ===== SCREENS ===== */
    .screen {
      position: absolute;
      inset: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 80px;
      /* visibility entra na transicao: some DEPOIS do fade de saida e aparece
         ANTES do de entrada, entao a animacao continua igual. */
      transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .35s ease, visibility .35s;
      z-index: 1
    }

    /* So opacity 0 deixava as telas escondidas no caminho do Tab e do leitor de
       tela: o foco do teclado ia parar em botoes invisiveis de outras telas. */
    .screen.hidden {
      pointer-events: none;
      opacity: 0;
      visibility: hidden
    }

    .screen.slide-left {
      transform: translateX(-100%)
    }

    .screen.slide-right {
      transform: translateX(100%)
    }

    .screen.active {
      transform: translateX(0);
      opacity: 1
    }

    /* ===== RESPONSIVE ===== */
    @media(min-width:768px) {
      #app {
        max-width: none
      }

      #authScreen {
        max-width: 440px;
        margin: 0 auto;
        justify-content: center
      }

      .auth-logo {
        font-size: 60px
      }

      .sidebar {
        position: relative;
        transform: translateX(0);
        box-shadow: none;
        z-index: 5;
      }

      .sidebar-overlay {
        display: none !important;
      }

      .bottom-nav {
        display: none !important
      }

      #installBanner {
        bottom: 24px;
        left: auto;
        right: 24px;
        width: 360px;
        border-radius: 18px
      }

      .screen {
        padding-bottom: 24px
      }

      .topbar {
        padding-top: 28px;
        padding-left: 28px;
        padding-right: 28px
      }

      .balance-card {
        margin: 6px 24px 0
      }

      .section-title {
        padding-left: 28px;
        padding-right: 28px
      }

      .qa-row {
        padding: 0 24px
      }

      .chart-card {
        margin: 0 24px
      }

      .tx-list,
      .goals-list,
      .acc-cards,
      .settings-list,
      .profile-stats {
        padding-left: 24px;
        padding-right: 24px
      }

      .filter-row {
        padding: 0 24px
      }

      .total-bar,
      .overdue-alert,
      .pay-tabs {
        margin-left: 24px;
        margin-right: 24px
      }

      .summary-row {
        padding: 0 24px
      }

      .notif-panel {
        border-radius: 0
      }

      /* Chat desktop */
      .chat-topbar {
        padding-top: 28px;
        padding-left: 28px;
        padding-right: 28px
      }

      .chat-msgs {
        padding-left: 28px;
        padding-right: 28px;
        padding-bottom: 160px
      }

      .chat-input-bar {
        bottom: 0 !important;
        padding: 14px 28px
      }

      #chatScreen .chat-msg {
        max-width: 60%
      }

      /* Panel desktop */
      .cat-period-row {
        padding: 12px 28px
      }

      .cat-summary-grid {
        padding: 0 28px;
        margin-bottom: 14px
      }

      .cat-action-row {
        padding: 0 28px
      }

      .cat-tabs {
        margin: 0 28px 12px
      }

      #catGroupList {
        padding-left: 28px;
        padding-right: 28px
      }
    }

    @media(min-width:1100px) {
      .sidebar {
        width: 260px
      }
    }

    @media(min-width:1400px) {
      .topbar {
        padding-top: 32px;
        padding-left: 40px;
        padding-right: 40px
      }

      .balance-card {
        margin: 8px 36px 0
      }

      .section-title {
        padding-left: 40px;
        padding-right: 40px
      }

      .qa-row {
        padding: 0 36px
      }

      .chart-card {
        margin: 0 36px
      }

      .tx-list,
      .goals-list,
      .acc-cards,
      .settings-list,
      .profile-stats {
        padding-left: 36px;
        padding-right: 36px
      }

      .filter-row,
      .summary-row {
        padding: 0 36px
      }

      .total-bar,
      .overdue-alert,
      .pay-tabs {
        margin-left: 36px;
        margin-right: 36px
      }
    }

    /* ===== AUTH SCREEN ===== */
    #authScreen {
      display: flex;
      flex-direction: row;
      z-index: 999;
      background: var(--bg);
      width: 100%;
      height: 100%;
      overflow: hidden;
      max-width: none;
      margin: 0;
      padding: 0;
    }

    /* LADO DIREITO — formulário */
    .auth-right {
      width: 100%;
      max-width: 480px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 40px 28px;
      overflow-y: auto;
      overflow-x: hidden;
      background: var(--bg);
      position: relative;
      /* height must be constrained for overflow-y to scroll */
      height: 100%;
      box-sizing: border-box;
    }

    .auth-right-inner {
      width: 100%;
      max-width: 400px
    }

    /* Mobile: só lado direito */
    .auth-logo {
      width: 56px;
      height: 56px;
      /* display:block + largura fixa nao obedece o text-align:center do pai;
         quem centraliza bloco e a margem automatica */
      margin: 0 auto 12px;
      animation: bounceIn .6s ease both;
      display: block
    }

    .auth-title {
      font-size: 32px;
      font-weight: 800;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 6px
    }

    .auth-tabs {
      display: flex;
      background: var(--surface2);
      border-radius: 14px;
      padding: 4px;
      margin-bottom: 24px;
      width: 100%;
      border: 1px solid var(--border)
    }

    .auth-tab {
      flex: 1;
      padding: 10px;
      text-align: center;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all .25s;
      color: var(--text2)
    }

    .auth-tab.active {
      background: var(--accent);
      color: #fff;
      box-shadow: var(--shadow-sm)
    }

    .auth-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 14px
    }

    .input-group {
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .input-group label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text2);
      letter-spacing: .5px;
      text-transform: uppercase
    }

    .ff-input {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 14px 16px;
      /* 16px NAO e estetica: abaixo disso o iOS da zoom sozinho ao focar o
         campo. Era o que obrigava o viewport a proibir zoom. */
      font-size: 16px;
      color: var(--text);
      font-family: 'Sora', sans-serif;
      outline: none;
      transition: border .2s, box-shadow .2s;
      width: 100%
    }

    .ff-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15)
    }

    .ff-btn {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      border: none;
      border-radius: 16px;
      padding: 15px;
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      transition: transform .15s, box-shadow .2s;
      width: 100%;
      font-family: 'Sora', sans-serif;
      box-shadow: var(--shadow-md)
    }

    .ff-btn:active {
      opacity: .85
    }

    .ff-btn:disabled {
      opacity: .6;
      cursor: not-allowed;
      transform: none
    }

    .ff-btn.secondary {
      background: var(--surface2);
      color: var(--text);
      border: 1.5px solid var(--border2);
      box-shadow: none
    }

    .auth-divider {
      text-align: center;
      color: var(--text3);
      font-size: 13px;
      position: relative;
      margin: 4px 0
    }

    .auth-divider::before,
    .auth-divider::after {
      content: '';
      position: absolute;
      top: 50%;
      /* sem o translate a linha de 1px fica meio pixel abaixo do centro real */
      transform: translateY(-50%);
      width: 40%;
      height: 1px;
      background: var(--border)
    }

    .auth-divider::before {
      left: 0
    }

    .auth-divider::after {
      right: 0
    }

    .auth-accounts {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      max-height: 220px;
      overflow-y: auto
    }

    .saved-acc {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 12px 14px;
      cursor: pointer;
      transition: all .2s
    }

    .saved-acc:active {
      opacity: .8
    }

    .saved-acc-av {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 16px;
      flex-shrink: 0
    }

    .saved-acc-info {
      flex: 1
    }

    .saved-acc-name {
      font-size: 14px;
      font-weight: 600
    }

    .del-acc-btn {
      background: rgba(var(--expense-rgb), .15);
      border: none;
      border-radius: 8px;
      padding: 4px 8px;
      color: var(--expense);
      cursor: pointer;
      font-size: 11px;
      font-weight: 600
    }

    /* Auth mobile header melhorado */
    .auth-mobile-header {
      text-align: center;
      margin-bottom: 20px;
      position: relative;
      padding: 28px 20px 20px;
      margin: -40px -28px 24px;
      background: var(--bg2);
      border-bottom: 1px solid var(--border)
    }


    /* Forgot password modal */
    .forgot-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .7);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .forgot-sheet {
      background: var(--bg);
      border-radius: 20px;
      padding: 28px;
      width: 100%;
      max-width: 400px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
      border: 1px solid var(--border)
    }

    .forgot-sheet h3 {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 6px
    }

    .forgot-sheet p {
      font-size: 13px;
      color: var(--text2);
      margin-bottom: 20px;
      line-height: 1.5
    }

    /* Desktop: mostrar layout split */
    @media(min-width:768px) {
      #authScreen {
        max-width: none;
        flex-direction: row;
        justify-content: center
      }

      .auth-right {
        border-left: none;
        justify-content: center;
        height: auto
      }

      /* no desktop o logo fica solto, sem a faixa de fundo do celular */
      .auth-mobile-header {
        margin: 0 0 20px;
        padding: 0;
        background: none;
        border: 0
      }

      .auth-right-heading {
        display: block
      }
    }

    .auth-right-heading {
      display: none;
      margin-bottom: 28px
    }

    .auth-right-heading h2 {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 6px
    }

    .auth-right-heading p {
      font-size: 14px;
      color: var(--text2)
    }

    /* ===== TOP BAR ===== */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 52px 20px 14px;
      flex-shrink: 0;
      position: relative;
      z-index: 2
    }

    .topbar-left h2 {
      font-size: 12px;
      color: var(--text2);
      font-weight: 500;
      letter-spacing: .5px
    }

    .topbar-left h1 {
      font-size: 22px;
      font-weight: 800;
      margin-top: 2px
    }

    .topbar-right {
      display: flex;
      gap: 8px;
      align-items: center
    }

    .icon-btn {
      width: 40px;
      height: 40px;
      border-radius: 13px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform .15s, background .2s;
      position: relative;
      flex-shrink: 0
    }

    .icon-btn:active {
      opacity: .7
    }

    .icon-btn svg {
      width: 18px;
      height: 18px;
      stroke: var(--text2)
    }

    .notif-badge {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--expense);
      border: 2px solid var(--bg)
    }

    .user-av {
      width: 40px;
      height: 40px;
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 14px;
      color: #fff;
      cursor: pointer;
      flex-shrink: 0;
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25)
    }

    /* ===== BALANCE CARD ===== */
    .balance-card {
      margin: 6px 16px 0;
      border-radius: 24px;
      padding: 22px;
      position: relative;
      overflow: hidden;
      background: linear-gradient(145deg, rgba(var(--accent-rgb), .18) 0%, var(--surface) 60%);
      border: 1.5px solid rgba(var(--accent-rgb), .2);
      animation: fadeUp .4s ease both
    }

    .balance-card::before {
      content: '';
      position: absolute;
      top: -60px;
      right: -40px;
      width: 220px;
      height: 220px;
      background: radial-gradient(ellipse, rgba(var(--accent-rgb), .25) 0%, transparent 65%);
      pointer-events: none
    }

    .bal-label {
      font-size: 11px;
      color: var(--text2);
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase
    }

    .bal-amount {
      font-size: 38px;
      font-weight: 800;
      letter-spacing: -1.5px;
      margin: 8px 0 4px;
      line-height: 1
    }

    .bal-amount small {
      font-size: 20px;
      color: var(--text2);
      font-weight: 400;
      margin-right: 3px
    }

    .bal-change {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(var(--income-rgb), .15);
      color: var(--income);
      border-radius: 99px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 18px
    }

    .bal-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px
    }

    .bal-stat {
      background: rgba(255, 255, 255, .05);
      border-radius: 14px;
      padding: 12px;
      border: 1px solid var(--border)
    }

    .dark .bal-stat {
      background: rgba(255, 255, 255, .04)
    }

    .light .bal-stat {
      background: rgba(0, 0, 0, .04)
    }

    .bal-stat-label {
      font-size: 10px;
      color: var(--text2);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .5px;
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 4px
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0
    }

    .bal-stat-val {
      font-size: 17px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace
    }

    .section-title {
      font-size: 11px;
      color: var(--text2);
      font-weight: 700;
      letter-spacing: .8px;
      text-transform: uppercase;
      padding: 20px 20px 10px
    }

    /* ===== QUICK ACTIONS ===== */
    .qa-row {
      display: flex;
      gap: 10px;
      padding: 0 16px;
      overflow-x: auto;
      touch-action: pan-x;
      scrollbar-width: none;
      padding-bottom: 2px
    }

    .qa-row::-webkit-scrollbar {
      display: none
    }

    .qa-btn {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
      cursor: pointer
    }

    .qa-btn:active .qa-icon {
      opacity: .7
    }

    .qa-icon {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid;
      transition: transform .15s
    }

    .qa-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--text2);
      white-space: nowrap
    }

    /* ===== SUMMARY PILLS ===== */
    .summary-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      padding: 0 16px
    }

    .sum-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 12px;
      text-align: center
    }

    .sum-val {
      font-size: 15px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 2px
    }

    .sum-lbl {
      font-size: 10px;
      color: var(--text2);
      font-weight: 600
    }

    /* ===== CHART ===== */
    .chart-card {
      margin: 0 16px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 18px;
      overflow: hidden
    }

    .chart-hd {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px
    }

    .chart-title {
      font-size: 14px;
      font-weight: 700
    }

    .period-tabs {
      display: flex;
      gap: 4px;
      background: var(--surface2);
      border-radius: 10px;
      padding: 3px
    }

    .ptab {
      padding: 5px 10px;
      border-radius: 7px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      color: var(--text2);
      transition: all .2s
    }

    .ptab.active {
      background: var(--accent);
      color: #fff
    }

    .chart-bars {
      display: flex;
      align-items: flex-end;
      gap: 3px;
      height: 110px;
      margin-bottom: 8px;
      padding: 0 2px
    }

    .bar-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      height: 100%;
      min-width: 0
    }

    .bar-cols {
      display: flex;
      gap: 2px;
      align-items: flex-end;
      width: 100%;
      height: 90px;
      flex: 1
    }

    .bar-col {
      flex: 1;
      border-radius: 4px 4px 0 0;
      background: var(--surface3);
      position: relative;
      overflow: hidden;
      transition: height .7s cubic-bezier(.4, 0, .2, 1);
      min-height: 4px
    }

    .bar-col.inc {
      background: rgba(var(--income-rgb), .5)
    }

    .bar-col.exp {
      background: rgba(var(--expense-rgb), .45)
    }

    .bar-col.inc.hi {
      background: linear-gradient(180deg, #3DD68C, #0BA66A)
    }

    .bar-col.exp.hi {
      background: linear-gradient(180deg, #F26D6D, #C0392B)
    }

    .bar-col.empty {
      background: var(--surface3);
      opacity: 0.4
    }

    .bar-month {
      font-size: 8px;
      color: var(--text3);
      font-weight: 600;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
      max-width: 100%;
      text-align: center
    }

    /* ===== MODAL GENÉRICO (PIN, etc.) ===== */
    .app-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .6);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100000;
      padding: 20px;
    }
    .app-overlay.open { display: flex; }
    .app-box {
      background: var(--modal-bg, var(--surface));
      border: 1.5px solid var(--border2);
      border-radius: 20px;
      padding: 24px;
      max-width: 400px;
      width: 100%;
      box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    }
    .app-box-icon { font-size: 34px; text-align: center; }
    .app-box-title { font-size: 19px; font-weight: 800; text-align: center; margin: 8px 0 12px; color: var(--text); }

    /* ===== MODAL: EXCLUIR CONTA ===== */
    .delacc-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .6);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100000;
      padding: 20px;
    }
    .delacc-overlay.open { display: flex; }
    .delacc-box {
      background: var(--modal-bg, var(--surface));
      border: 1.5px solid var(--border2);
      border-radius: 20px;
      padding: 24px;
      max-width: 400px;
      width: 100%;
      box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    }
    .delacc-icon { font-size: 34px; text-align: center; }
    .delacc-title { font-size: 19px; font-weight: 800; text-align: center; margin: 8px 0 12px; color: var(--text); }
    .delacc-warn { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 14px; }
    .delacc-warn b { color: var(--expense); }
    .delacc-info {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 14px;
      word-break: break-all;
    }
    .delacc-label { font-size: 12px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 6px; }
    .delacc-actions { display: flex; gap: 10px; margin-top: 16px; }
    .delacc-actions .ff-btn { flex: 1; }
    .ff-btn.delacc-danger { background: var(--expense); color: #fff; border: none; }
    .ff-btn.delacc-danger:hover { filter: brightness(1.06); }

    /* ===== GRÁFICO DE LINHA (Receitas x Despesas) ===== */
    .chart-bars.is-line {
      display: block;
      height: auto;
      padding: 0;
    }
    .line-chart {
      position: relative;
      width: 100%;
      height: 120px;
    }
    .lc-svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }
    .lc-line {
      fill: none;
      stroke-width: 2.5;
      stroke-linejoin: round;
      stroke-linecap: round;
      vector-effect: non-scaling-stroke;   /* traço fino mesmo esticando */
    }
    .lc-line-inc { stroke: #3DD68C; }
    .lc-line-exp { stroke: #F26D6D; }
    .lc-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .lc-dot {
      position: absolute;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      border: 2px solid var(--surface);
      box-sizing: border-box;
    }
    .lc-dot.inc { background: #3DD68C; }
    .lc-dot.exp { background: #F26D6D; }
    .lc-dot.today {
      width: 11px;
      height: 11px;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .28);
      z-index: 2;
    }
    .lc-today-line {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 0;
      border-left: 1.5px dashed rgba(var(--accent-rgb), .45);
      transform: translateX(-50%);
    }
    .lc-labels {
      display: flex;
      margin-top: 6px;
    }
    .lc-labels span {
      flex: 1;
      min-width: 0;
      text-align: center;
      font-size: 8px;
      color: var(--text3);
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
    }

    /* resumo, escala, balao e lista do dia */
    .lc-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--text2); margin: -6px 0 12px; }
    .lc-sum b, .lc-tip b, .chart-detail b { font-weight: 700; color: var(--text); }
    .lc-sum .pos, .lc-tip .pos, .chart-detail .pos { color: #3DD68C; }
    .lc-sum .neg, .lc-tip .neg, .chart-detail .neg { color: #F26D6D; }
    .lc-grid { stroke: var(--border2); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
    .lc-max { position: absolute; top: 0; left: 2px; font-size: 9px; font-weight: 600; color: var(--text3); }
    .lc-empty { position: absolute; inset: 0 0 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text3); }
    .lc-hits { position: absolute; inset: 0; }
    .lc-hit { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
    .lc-hit:hover, .lc-hit.on { background: rgba(var(--accent-rgb), .08); }
    .lc-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .lc-tip {
      position: absolute; top: 4px; z-index: 5; pointer-events: none;
      min-width: 170px; padding: 10px 12px; border-radius: 12px;
      background: var(--surface2); border: 1px solid var(--border2);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font-size: 12px; color: var(--text2);
    }
    .lc-tip-hd { font-weight: 700; color: var(--text); margin-bottom: 6px; }
    .lc-tip-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
    .lc-tip-ft { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border2); font-size: 10.5px; color: var(--text3); line-height: 1.5; }
    .chart-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border2); }
    .cd-hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
    .cd-x { background: none; border: 0; color: var(--text3); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
    .cd-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border2); font-size: 13px; }
    .cd-row:last-child { border-bottom: 0; }
    .cd-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .cd-name { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cd-name small { font-size: 10.5px; color: var(--text3); font-weight: 500; }
    .cd-empty { font-size: 12px; color: var(--text3); padding: 8px 0; }

    .chart-baseline {
      height: 1px;
      background: var(--border2);
      margin-bottom: 4px;
      flex-shrink: 0
    }

    .chart-legend {
      display: flex;
      gap: 14px;
      margin-top: 10px
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: var(--text2)
    }

    .legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%
    }

    /* ===== CATEGORY CHART (donut) ===== */
    .donut-wrap {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 4px
    }

    .donut-svg {
      flex-shrink: 0
    }

    .donut-legend {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1
    }

    .dl-item {
      display: flex;
      align-items: center;
      gap: 8px
    }

    .dl-dot {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      flex-shrink: 0
    }

    .dl-name {
      font-size: 12px;
      color: var(--text2);
      flex: 1
    }

    .dl-pct {
      font-size: 12px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace
    }

    /* ===== FILTERS ===== */
    .filter-row {
      display: flex;
      gap: 7px;
      padding: 0 16px;
      overflow-x: auto;
      touch-action: pan-x;
      scrollbar-width: none;
      padding-bottom: 4px
    }

    .filter-row::-webkit-scrollbar {
      display: none
    }

    .filter-chip {
      flex-shrink: 0;
      padding: 7px 14px;
      border-radius: 99px;
      font-size: 12px;
      font-weight: 600;
      background: var(--surface);
      border: 1.5px solid var(--border);
      color: var(--text2);
      cursor: pointer;
      transition: all .2s
    }

    .filter-chip.active {
      background: rgba(var(--accent-rgb), .18);
      border-color: rgba(var(--accent-rgb), .4);
      color: var(--accent-txt)
    }

    /* ===== TRANSACTIONS ===== */
    .tx-list {
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      gap: 7px;
      margin-top: 4px
    }

    .tx-item {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 12px 14px;
      cursor: pointer;
      transition: transform .15s, background .2s;
      position: relative;
      overflow: hidden
    }

    .tx-item:active {
      background: var(--surface2)
    }

    .tx-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      border-radius: 3px 0 0 3px
    }

    .tx-item.income::before {
      background: var(--income)
    }

    .tx-item.expense::before {
      background: var(--expense)
    }

    .tx-item.pending::before {
      background: var(--pending);
      animation: pulse 1.5s infinite
    }

    .tx-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 19px;
      flex-shrink: 0
    }

    .tx-info {
      flex: 1;
      min-width: 0
    }

    .tx-name {
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .tx-meta {
      font-size: 11px;
      color: var(--text2);
      margin-top: 2px;
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap
    }

    .tx-badge {
      padding: 2px 6px;
      border-radius: 5px;
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .badge-parc {
      background: rgba(var(--pending-rgb), .15);
      color: var(--pending)
    }

    .badge-pend {
      background: rgba(var(--pending-rgb), .15);
      color: var(--pending)
    }

    .badge-paid {
      background: rgba(var(--income-rgb), .12);
      color: var(--income)
    }

    .badge-rec {
      background: rgba(91, 138, 240, .12);
      color: var(--accent-txt)
    }

    .tx-right {
      text-align: right;
      flex-shrink: 0
    }

    .tx-val {
      font-size: 15px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace
    }

    .tx-val.pos {
      color: var(--income)
    }

    .tx-val.neg {
      color: var(--expense)
    }

    .tx-val.pend {
      color: var(--pending)
    }

    .tx-date {
      font-size: 10px;
      color: var(--text3);
      margin-top: 2px
    }

    .tx-installment {
      font-size: 10px;
      color: var(--pending);
      margin-top: 1px;
      font-weight: 600
    }

    /* ===== GOALS ===== */
    .goals-list {
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .goal-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 14px 16px;
      cursor: pointer;
      transition: transform .15s
    }

    .goal-card:active {
      background: var(--surface2)
    }

    .goal-hd {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 10px
    }

    .goal-name {
      font-size: 14px;
      font-weight: 700
    }

    .goal-sub {
      font-size: 11px;
      color: var(--text2);
      margin-top: 2px
    }

    .goal-nums {
      text-align: right
    }

    .goal-cur {
      font-size: 15px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace
    }

    .goal-total {
      font-size: 10px;
      color: var(--text3)
    }

    .goal-pct {
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 5px;
      display: flex;
      justify-content: space-between
    }

    .prog-track {
      height: 7px;
      background: var(--surface3);
      border-radius: 99px;
      overflow: hidden
    }

    .prog-bar {
      height: 100%;
      border-radius: 99px;
      transition: width 1s cubic-bezier(.4, 0, .2, 1)
    }

    /* ===== PAYABLES / RECEIVABLES ===== */
    .pay-tabs {
      display: flex;
      background: var(--surface2);
      border-radius: 14px;
      padding: 4px;
      margin: 0 16px;
      border: 1.5px solid var(--border)
    }

    .pay-tab {
      flex: 1;
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all .25s;
      color: var(--text2)
    }

    .pay-tab.active {
      color: #fff
    }

    .pay-tab.pay-active {
      background: var(--expense)
    }

    .pay-tab.rec-active {
      background: var(--income)
    }

    .pay-item {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 13px 14px;
      cursor: pointer;
      transition: all .15s;
      position: relative;
      overflow: hidden
    }

    .pay-item:active {
      background: var(--surface2)
    }

    .pay-status-bar {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      border-radius: 3px 0 0 3px
    }

    .pay-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0
    }

    .pay-info {
      flex: 1;
      min-width: 0
    }

    .pay-name {
      font-size: 14px;
      font-weight: 600
    }

    .pay-sub {
      font-size: 11px;
      color: var(--text2);
      margin-top: 2px
    }

    .pay-due {
      font-size: 10px;
      font-weight: 700;
      margin-top: 3px
    }

    .pay-due.overdue {
      color: var(--expense)
    }

    .pay-due.soon {
      color: var(--pending)
    }

    .pay-due.ok {
      color: var(--income)
    }

    .pay-right {
      text-align: right;
      flex-shrink: 0
    }

    .pay-val {
      font-size: 15px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace
    }

    .pay-actions {
      display: flex;
      gap: 5px;
      margin-top: 6px;
      flex-wrap: wrap
    }

    .pay-action-btn {
      padding: 3px 8px;
      border-radius: 7px;
      border: none;
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Sora', sans-serif;
      transition: transform .15s
    }

    .pay-action-btn:active {
      opacity: .8
    }

    .btn-full {
      background: rgba(var(--income-rgb), .2);
      color: var(--income)
    }

    .btn-half {
      background: rgba(var(--pending-rgb), .18);
      color: var(--pending)
    }

    .btn-parc {
      background: rgba(91, 138, 240, .15);
      color: var(--accent-txt)
    }

    .btn-skip {
      background: rgba(var(--expense-rgb), .12);
      color: var(--expense)
    }

    /* ===== INSTALLMENT DETAIL ===== */
    .inst-track {
      display: flex;
      gap: 4px;
      margin-top: 8px;
      flex-wrap: wrap
    }

    .inst-dot {
      width: 18px;
      height: 18px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      font-weight: 700;
      transition: all .2s
    }

    .inst-dot.paid {
      background: var(--income);
      color: #fff
    }

    .inst-dot.current {
      background: var(--pending);
      color: #000
    }

    .inst-dot.future {
      background: var(--surface3);
      color: var(--text3)
    }

    /* ===== ACCOUNTS SCREEN ===== */
    .acc-cards {
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .acc-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 18px;
      cursor: pointer;
      transition: all .2s;
      position: relative;
      overflow: hidden
    }

    .acc-card:active {
      background: var(--surface2)
    }

    .acc-card-hd {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px
    }

    .acc-bank {
      font-size: 13px;
      font-weight: 700;
      color: var(--text2)
    }

    .acc-type-badge {
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .5px
    }

    .acc-number {
      font-size: 13px;
      color: var(--text3);
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 6px
    }

    .acc-bal-label {
      font-size: 10px;
      color: var(--text2);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .acc-bal {
      font-size: 26px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: -1px
    }

    .acc-actions {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border)
    }

    .acc-action {
      flex: 1;
      padding: 8px;
      background: var(--surface2);
      border-radius: 10px;
      text-align: center;
      cursor: pointer;
      font-size: 11px;
      font-weight: 600;
      color: var(--text2);
      border: 1.5px solid var(--border);
      transition: all .2s
    }

    .acc-action:active {
      opacity: .75
    }

    /* ===== DEPOSIT/WITHDRAW MODAL ===== */
    .deposit-modal {
      padding: 16px 0
    }

    /* ===== NOTIFICATIONS PANEL ===== */
    .notif-panel {
      /* `fixed`, nao `absolute`. Com absolute o translateX(100%) empurrava o
         painel para fora do CONTAINER, nao da tela: em telas mais largas que o
         container (>=1000px) ele reaparecia no vao a direita e ficava
         permanentemente aberto por cima do conteudo. Gaveta se ancora na
         viewport. */
      position: fixed;
      top: 0;
      right: 0;
      width: min(320px, 90%);
      height: 100%;
      background: var(--modal-bg);
      border-left: 1.5px solid var(--border);
      z-index: 50;
      transform: translateX(100%);
      transition: transform .28s cubic-bezier(.4, 0, .2, 1);
      display: flex;
      flex-direction: column
    }

    .notif-panel.open {
      transform: translateX(0)
    }

    .notif-hd {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 52px 20px 16px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: var(--modal-bg);
      z-index: 1
    }

    .notif-clear { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--border); color: var(--text2); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
    .notif-clear:hover { color: var(--expense); border-color: var(--expense); }

    .notif-title {
      font-size: 18px;
      font-weight: 800
    }

    .notif-close {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer
    }

    .notif-item {
      padding: 14px 20px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background .2s
    }

    .notif-item:active {
      background: var(--surface)
    }

    .notif-item-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 3px
    }

    .notif-item-sub {
      font-size: 11px;
      color: var(--text2)
    }

    .notif-item-time {
      font-size: 10px;
      color: var(--text3);
      margin-top: 4px
    }

    .notif-dot-left {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
      margin-top: 4px
    }

    /* ===== MODAL ===== */
    .modal-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .6);
      z-index: 100;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
    }

    .modal-overlay.open {
      opacity: 1;
      pointer-events: all
    }

    .modal-sheet {
      background: var(--modal-bg);
      border-radius: 28px 28px 0 0;
      padding: 24px 20px 40px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(100%);
      transition: transform .35s cubic-bezier(.4, 0, .2, 1)
    }

    .modal-overlay.open .modal-sheet {
      transform: translateY(0)
    }

    /* PC: janela centralizada com os 4 cantos arredondados. Fica DEPOIS das regras
       base de proposito — no bloco @media do topo a base ganhava e o modal colava
       embaixo com o fundo reto. */
    @media(min-width:768px) {
      .modal-overlay { align-items: center }
      .modal-sheet { border-radius: 20px; max-width: 540px; margin: auto; padding-bottom: 24px; transform: translateY(24px) }
      .modal-handle { display: none }
    }

    .modal-handle {
      width: 40px;
      height: 4px;
      background: var(--border2);
      border-radius: 99px;
      margin: 0 auto 20px
    }

    .modal-title {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 20px;
      text-align: center
    }

    .form-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 14px
    }

    .form-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text2);
      letter-spacing: .5px;
      text-transform: uppercase
    }

    .ff-select {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 13px 16px;
      font-size: 14px;
      color: var(--text);
      font-family: 'Sora', sans-serif;
      outline: none;
      transition: border .2s;
      width: 100%;
      appearance: none;
      -webkit-appearance: none
    }

    .ff-select:focus {
      border-color: var(--accent)
    }

    .type-toggle {
      display: flex;
      gap: 8px
    }

    .type-btn {
      flex: 1;
      padding: 11px;
      border-radius: 14px;
      border: 1.5px solid var(--border);
      background: var(--surface);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all .2s;
      text-align: center;
      font-family: 'Sora', sans-serif;
      color: var(--text2)
    }

    .type-btn.income.selected {
      background: rgba(var(--income-rgb), .15);
      border-color: rgba(var(--income-rgb), .4);
      color: var(--income)
    }

    .type-btn.expense.selected {
      background: rgba(var(--expense-rgb), .12);
      border-color: rgba(var(--expense-rgb), .3);
      color: var(--expense)
    }

    .type-btn.payable.selected {
      background: rgba(var(--pending-rgb), .12);
      border-color: rgba(var(--pending-rgb), .3);
      color: var(--pending)
    }

    .type-btn.receivable.selected {
      background: rgba(91, 138, 240, .12);
      border-color: rgba(91, 138, 240, .3);
      color: var(--accent-txt)
    }

    .split-opts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 4px
    }

    .split-opt {
      padding: 10px;
      border-radius: 12px;
      border: 1.5px solid var(--border);
      background: var(--surface);
      text-align: center;
      cursor: pointer;
      transition: all .2s
    }

    .split-opt.selected {
      border-color: var(--accent);
      background: rgba(var(--accent-rgb), .1)
    }

    .split-opt-icon {
      font-size: 20px;
      margin-bottom: 4px
    }

    .split-opt-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text2)
    }

    .split-opt.selected .split-opt-label {
      color: var(--accent-txt)
    }

    .install-row {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .install-num {
      font-size: 28px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace;
      min-width: 40px;
      text-align: center
    }

    .install-stepper {
      display: flex;
      flex-direction: column;
      gap: 4px
    }

    .step-btn {
      width: 32px;
      height: 24px;
      border-radius: 8px;
      background: var(--surface2);
      border: 1.5px solid var(--border);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      font-family: 'Sora', sans-serif;
      transition: all .15s
    }

    .step-btn:active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent)
    }

    .half-preview {
      background: var(--surface2);
      border-radius: 12px;
      padding: 12px;
      margin-top: 8px;
      border: 1px solid var(--border)
    }

    .half-row {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      margin-bottom: 4px
    }

    .half-row:last-child {
      margin-bottom: 0;
      font-weight: 700
    }

    /* ===== PROFILE SCREEN ===== */
    .profile-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 52px 20px 24px;
      position: relative
    }

    .profile-av {
      width: 80px;
      height: 80px;
      border-radius: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 12px;
      box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25)
    }

    .profile-name {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 2px
    }

    .profile-email {
      font-size: 13px;
      color: var(--text2)
    }

    .profile-stats {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      padding: 0 16px;
      margin-bottom: 20px
    }

    .pstat {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 14px;
      text-align: center
    }

    .pstat-val {
      font-size: 18px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace
    }

    .pstat-lbl {
      font-size: 10px;
      color: var(--text2);
      font-weight: 600;
      margin-top: 3px
    }

    .settings-list {
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .setting-item {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 14px;
      cursor: pointer;
      transition: all .2s
    }

    .setting-item:active {
      background: var(--surface2)
    }

    .setting-icon {
      font-size: 20px;
      width: 24px;
      text-align: center
    }

    .setting-label {
      font-size: 14px;
      font-weight: 600;
      flex: 1
    }

    .setting-sub {
      font-size: 11px;
      color: var(--text3)
    }

    .toggle-switch {
      width: 44px;
      height: 24px;
      border-radius: 99px;
      background: var(--surface3);
      position: relative;
      cursor: pointer;
      transition: background .25s;
      flex-shrink: 0;
      border: none
    }

    .toggle-switch::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #fff;
      transition: transform .25s;
      box-shadow: 0 1px 4px rgba(0, 0, 0, .3)
    }

    .toggle-switch.on {
      background: var(--accent)
    }

    .toggle-switch.on::after {
      transform: translateX(20px)
    }

    .theme-swatch-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 4px
    }

    .theme-swatch {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      cursor: pointer;
      transition: transform .15s;
      border: 2px solid transparent
    }

    /* lapis: abre o seletor de cor do sistema (input invisivel por cima) */
    .swatch-custom { position: relative; display: flex; align-items: center; justify-content: center; background: var(--surface2); border-color: var(--border2); color: var(--text2); }
    .swatch-custom { padding: 0; font: inherit; }
    .swatch-custom.tem-cor { color: #fff; }
    .swatch-custom:focus-visible, .swatch-pop-c:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .swatch-wrap { position: relative; }
    .swatch-pop {
      position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 20;
      display: grid; grid-template-columns: repeat(5, 28px); gap: 8px; padding: 12px;
      background: var(--modal-bg); border: 1.5px solid var(--border2); border-radius: 14px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, .45); animation: fadeUp .15s ease both;
    }
    .swatch-pop[hidden] { display: none; }
    .swatch-pop-c { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); cursor: pointer; padding: 0; transition: transform .12s; }
    .swatch-pop-c:hover { transform: scale(1.15); }

    .theme-swatch.sel {
      border-color: var(--text);
      transform: scale(1.15)
    }

    .theme-swatch:active {
      opacity: .75
    }

    .cloud-info {
      background: rgba(var(--accent-rgb), .08);
      border: 1px solid rgba(var(--accent-rgb), .2);
      border-radius: 14px;
      padding: 14px 16px;
      margin: 0 16px 8px;
      display: flex;
      align-items: center;
      gap: 10px
    }

    .cloud-info-icon {
      font-size: 22px
    }

    .cloud-info-text {
      flex: 1;
      font-size: 12px;
      color: var(--text2);
      font-weight: 500
    }

    .cloud-info-text strong {
      color: var(--accent-txt);
      display: block;
      margin-bottom: 2px;
      font-size: 13px
    }

    /* ===== BOTTOM NAV ===== */
    .bottom-nav {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 68px;
      background: var(--bg2);
      border-top: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0;
      padding-bottom: env(safe-area-inset-bottom, 0px);
      z-index: 10;
    }

    /* todas as telas numa faixa de arrastar; as pontas esmaecem quando tem mais pra ver (--e/--d via JS) */
    .nav-trilho {
      --e: 0px; --d: 28px;
      position: relative; flex: 1; min-width: 0; height: 100%;
      display: flex; align-items: center; padding: 0 6px;
      overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
      overscroll-behavior-x: contain; scrollbar-width: none;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--e), #000 calc(100% - var(--d)), transparent);
      mask-image: linear-gradient(90deg, transparent, #000 var(--e), #000 calc(100% - var(--d)), transparent);
    }

    .nav-trilho::-webkit-scrollbar { display: none }

    .nav-item {
      flex: 0 0 auto;
      min-width: 66px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      cursor: pointer;
      padding: 8px 8px;
      border: 0;
      border-radius: 14px;
      background: none;
      font: inherit;
      scroll-snap-align: start;
      transition: background .2s
    }

    .nav-item:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: -2px }

    .nav-item:active {
      opacity: .7
    }

    .nav-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text2);
      opacity: .55;
      transition: opacity .2s, transform .2s
    }

    .nav-lbl {
      font-size: 9px;
      font-weight: 700;
      color: var(--text3);
      text-transform: uppercase;
      letter-spacing: .5px;
      transition: color .2s;
      /* segurança p/ textos mais longos (ex.: inglês): nunca estoura o item */
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .nav-item.active .nav-icon {
      opacity: 1;
      color: var(--accent-txt);
      transform: scale(1.1)
    }

    .nav-item.active .nav-lbl {
      color: var(--accent-txt)
    }

    .nav-fab-wrap {
      flex: none;
      display: flex;
      align-items: center;
      padding: 0 12px 0 4px
    }

    .fab {
      width: 54px;
      height: 54px;
      padding: 0;
      border: 0;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: var(--shadow-md);
      transition: transform .15s, box-shadow .15s;
      color: #fff
    }

    .fab:active {
      opacity: .85;
      box-shadow: var(--shadow-sm)
    }

    /* ===== INSTALL BANNER (PWA) ===== */
    #installBanner {
      position: fixed;
      bottom: 80px;
      left: 12px;
      right: 12px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      border-radius: 18px;
      padding: 14px 16px;
      display: none;
      align-items: center;
      gap: 12px;
      z-index: 200;
      box-shadow: var(--shadow-lg);
      animation: fadeUp .4s ease both
    }

    #installBanner.show {
      display: flex
    }

    /* ===== VERSAO NOVA DISPONIVEL ===== */
    #updateBanner {
      position: fixed;
      top: calc(env(safe-area-inset-top, 0px) + 10px);
      /* centraliza sem transform: o fadeUp anima transform e apagaria o translateX */
      left: 12px;
      right: 12px;
      margin: 0 auto;
      max-width: 420px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 10px 10px 14px;
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border2);
      border-radius: 14px;
      box-shadow: var(--shadow-lg);
      font-size: 13px;
      z-index: 99998; /* acima de modal e da tela de login; so o toast passa na frente */
      animation: fadeUp .3s ease both
    }

    /* display:flex acima venceria o [hidden] do navegador: a faixa ficava sempre na tela */
    #updateBanner[hidden] { display: none }
    #updateBanner span { flex: 1 }
    #updateBanner button.upd-depois { background: none; color: var(--text2); padding: 8px 6px }
    #updateBanner .ff-ico { color: var(--accent-txt); font-size: 16px }

    #updateBanner button {
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 8px 14px;
      min-height: 36px;
      font: inherit;
      font-weight: 700;
      cursor: pointer
    }

    /* ===== APAGAR DADOS ===== */
    .wipe-intro { font-size: 12.5px; color: var(--text2); line-height: 1.55; margin-bottom: 12px }

    .wipe-opt {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 48px;
      padding: 0 4px;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
      cursor: pointer
    }

    .wipe-opt input { width: 18px; height: 18px; accent-color: var(--expense); flex-shrink: 0 }
    .wipe-opt span { flex: 1 }
    .wipe-opt b { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text3); font-weight: 500 }
    .wipe-opt.wipe-all { font-weight: 700; border-bottom: 1px solid var(--border2) }
    .wipe-opt.vazio { opacity: .45; cursor: default }

    .install-banner-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #fff
    }

    .install-banner-text {
      flex: 1
    }

    .install-banner-title {
      font-size: 14px;
      font-weight: 800;
      color: #fff
    }

    .install-banner-sub {
      font-size: 11px;
      color: rgba(255, 255, 255, .8)
    }

    .install-banner-btn {
      background: rgba(255, 255, 255, .2);
      border: 1.5px solid rgba(255, 255, 255, .4);
      border-radius: 10px;
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      white-space: nowrap;
      font-family: 'Sora', sans-serif
    }

    .install-banner-close {
      background: none;
      border: none;
      color: rgba(255, 255, 255, .7);
      font-size: 20px;
      cursor: pointer;
      padding: 0 4px;
      font-family: 'Sora', sans-serif
    }

    /* ===== CHAT / REGISTRO RÁPIDO ===== */
    #chatScreen {
      background: var(--bg)
    }

    .chat-bg {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(var(--border) 1px, transparent 1px);
      background-size: 24px 24px;
      opacity: .4;
      pointer-events: none
    }

    .chat-topbar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 52px 16px 14px;
      background: var(--bg2);
      border-bottom: 1.5px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 5;
      flex-shrink: 0
    }

    .chat-av {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0
    }

    .chat-info {
      flex: 1
    }

    .chat-name {
      font-size: 16px;
      font-weight: 800
    }

    .chat-status {
      font-size: 11px;
      color: var(--income);
      font-weight: 600
    }

    .chat-msgs {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-bottom: 160px
    }

    .chat-msg {
      max-width: 85%;
      animation: fadeUp .25s ease both
    }

    .chat-msg.bot {
      align-self: flex-start
    }

    .chat-msg.user {
      align-self: flex-end
    }

    .chat-bubble {
      padding: 10px 14px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.5;
      position: relative
    }

    .chat-msg.bot .chat-bubble {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-bottom-left-radius: 4px;
      color: var(--text)
    }

    .chat-msg.user .chat-bubble {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      border-bottom-right-radius: 4px;
      color: #fff
    }

    .chat-time {
      font-size: 10px;
      color: var(--text3);
      margin-top: 4px;
      padding: 0 4px
    }

    .chat-msg.user .chat-time {
      text-align: right
    }

    .chat-result-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      padding: 12px 14px;
      margin-top: 6px;
      min-width: 220px
    }

    .chat-result-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px
    }

    .chat-result-row:last-child {
      margin-bottom: 0;
      border-top: 1px solid var(--border);
      padding-top: 6px;
      margin-top: 4px
    }

    .chat-result-label {
      font-size: 12px;
      color: var(--text2)
    }

    .chat-result-val {
      font-size: 13px;
      font-weight: 700
    }

    .chat-confirm-btns {
      display: flex;
      gap: 8px;
      margin-top: 10px
    }

    .chat-confirm-btn {
      flex: 1;
      padding: 8px;
      border-radius: 10px;
      border: none;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Sora', sans-serif;
      transition: transform .15s
    }

    .chat-confirm-btn:active {
      opacity: .8
    }

    .btn-confirm {
      background: var(--income);
      color: #fff
    }

    .btn-cancel-chat {
      background: var(--surface2);
      color: var(--text2);
      border: 1.5px solid var(--border)
    }

    /* Sugestões rápidas */
    /* voz btn */
    .chat-voice-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--surface2);
      /* Sem esta linha o <button> cai no 'buttontext' do navegador (preto) e o
         icone, que desenha com currentColor, sumia no tema escuro: 1.25:1. */
      color: var(--text);
      border: 1.5px solid transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
      transition: all .2s
    }

    .chat-voice-btn.listening {
      background: rgba(var(--expense-rgb), .15);
      border-color: var(--expense);
      animation: voicePulse 1s ease-in-out infinite
    }

    @keyframes voicePulse {

      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(var(--expense-rgb), .4)
      }

      50% {
        box-shadow: 0 0 0 10px rgba(var(--expense-rgb), 0)
      }
    }

    /* Input do chat */
    .chat-input-bar {
      position: absolute;
      bottom: 68px;
      left: 0;
      right: 0;
      padding: 10px 16px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
      background: var(--bg2);
      border-top: 1.5px solid var(--border);
      z-index: 11
    }

    /* a barra inteira e uma pilula, igual a caixa de teste da landing */
    .chat-input-row {
      display: flex;
      gap: 6px;
      align-items: flex-end;
      padding: 5px;
      border-radius: 26px;
      background: var(--surface);
      box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .55), 0 14px 32px -20px rgba(var(--accent-rgb), .8);
      transition: box-shadow .25s
    }

    .chat-input-row:focus-within {
      box-shadow: inset 0 0 0 2px var(--accent-txt), 0 14px 36px -14px rgba(var(--accent-rgb), .95)
    }

    .chat-input-wrap {
      flex: 1;
      align-self: center;
      padding: 8px 4px;
      display: flex;
      align-items: center;
      gap: 8px
    }

    #chatInput {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      caret-color: var(--accent-txt);
      font-family: 'Sora', sans-serif;
      resize: none;
      max-height: 80px;
      min-height: 20px;
      line-height: 1.4
    }

    .chat-send-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
      transition: transform .15s;
      box-shadow: var(--shadow-sm)
    }

    .chat-send-btn:active {
      opacity: .8
    }

    .chat-hint {
      font-size: 11px;
      color: var(--text3);
      text-align: center;
      padding: 4px 0 0;
      font-style: italic
    }

    /* ===== PAINEL DE CATEGORIAS (estilo Luke Zap) ===== */
    .cat-panel-screen {
      background: var(--bg)
    }

    .cat-period-row {
      display: flex;
      gap: 6px;
      padding: 12px 16px;
      overflow-x: auto;
      touch-action: pan-x;
      scrollbar-width: none
    }

    .cat-period-row::-webkit-scrollbar {
      display: none
    }

    .cat-period-chip {
      flex-shrink: 0;
      padding: 7px 16px;
      border-radius: 99px;
      font-size: 12px;
      font-weight: 700;
      background: var(--surface);
      border: 1.5px solid var(--border);
      color: var(--text2);
      cursor: pointer;
      transition: all .2s
    }

    .cat-period-chip.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff
    }

    .cat-summary-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 0 16px;
      margin-bottom: 12px
    }

    .cat-sum-card {
      border-radius: 18px;
      padding: 16px;
      position: relative;
      overflow: hidden
    }

    .cat-sum-card.despesas {
      background: rgba(var(--expense-rgb), .1);
      border: 1.5px solid rgba(var(--expense-rgb), .2)
    }

    .cat-sum-card.receitas {
      background: rgba(var(--income-rgb), .1);
      border: 1.5px solid rgba(var(--income-rgb), .2)
    }

    .cat-sum-card.saldo {
      background: rgba(var(--income-rgb), .08);
      border: 1.5px solid rgba(var(--income-rgb), .15)
    }

    .cat-sum-card.areceber {
      background: rgba(var(--pending-rgb), .1);
      border: 1.5px solid rgba(var(--pending-rgb), .2)
    }

    .cat-sum-arrow {
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 4px
    }

    .cat-sum-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: var(--text2);
      margin-bottom: 4px
    }

    .cat-sum-val {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.5px
    }

    .cat-sum-card.despesas .cat-sum-val {
      color: var(--expense)
    }

    .cat-sum-card.receitas .cat-sum-val {
      color: var(--income)
    }

    .cat-sum-card.saldo .cat-sum-val {
      color: var(--income)
    }

    .cat-sum-card.areceber .cat-sum-val {
      color: var(--pending)
    }

    /* =====================================================
       DASHBOARD (homeScreen) — layout estilo painel SaaS
       Mobile-first; vira grade de 4 colunas no desktop.
       ===================================================== */
    .dash-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 16px 6px;
    }
    .dash-greet { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .dash-greet span { font-size: 12.5px; color: var(--text2); font-weight: 600; }
    .dash-greet strong { font-size: 17px; color: var(--text); font-weight: 800; letter-spacing: -.3px; }
    .dash-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

    .dash-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      padding: 6px 16px 14px;
    }
    .dash-title { font-size: 23px; font-weight: 800; letter-spacing: -.6px; color: var(--text); margin: 0; }
    .dash-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }

    /* Pílulas de período */
    .period-pills {
      display: flex;
      gap: 7px;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      max-width: 100%;
      padding-bottom: 2px;
    }
    .period-pills::-webkit-scrollbar { display: none; }
    .period-pill {
      flex-shrink: 0;
      border: 1.5px solid var(--border);
      background: var(--surface);
      color: var(--text2);
      font-size: 12.5px;
      font-weight: 700;
      padding: 8px 14px;
      border-radius: 999px;
      cursor: pointer;
      white-space: nowrap;
      transition: all .15s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: inherit;
    }
    .period-pill:hover { border-color: var(--border2); color: var(--text); }
    .period-pill.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      box-shadow: var(--shadow-sm);
    }

    .home-custom-date {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 16px 12px;
      flex-wrap: wrap;
    }
    .home-custom-date .ff-input { width: auto; flex: 1; min-width: 130px; }

    /* Grade de cards */
    .dash-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      padding: 0 16px;
      margin-bottom: 14px;
    }
    .dash-card {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 18px;
      padding: 16px;
      position: relative;
      cursor: pointer;
      min-width: 0;            /* deixa o card ENCOLHER dentro da grade (evita estouro) */
      overflow: hidden;
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }
    .dash-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--shadow); border-color: var(--border2); }
    .dash-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .dash-card-ic {
      width: 38px; height: 38px; border-radius: 11px;
      display: flex; align-items: center; justify-content: center;
    }
    .dash-card-ic.exp { background: rgba(var(--expense-rgb), .14); color: var(--expense); }
    .dash-card-ic.inc { background: rgba(var(--income-rgb), .14); color: var(--income); }
    .dash-card-ic.bal { background: rgba(255, 255, 255, .22); color: #fff; }
    .dash-card-ic.rec { background: rgba(var(--pending-rgb), .16); color: var(--pending); }
    .dash-card-menu {
      background: none; border: none; cursor: pointer;
      color: var(--text3); font-size: 18px; line-height: 1;
      padding: 2px 6px; border-radius: 8px; font-weight: 700;
    }
    .dash-card-menu:hover { color: var(--text); background: var(--surface2); }
    .dash-card-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text2); margin-bottom: 5px; }
    .dash-card-val {
      font-size: clamp(17px, 5.2vw, 24px);   /* encolhe no celular, cresce no desktop */
      font-weight: 800; letter-spacing: -.7px; color: var(--text);
      line-height: 1.12;
      overflow-wrap: anywhere; word-break: break-word;   /* número enorme quebra em vez de estourar */
    }
    .dash-card-val small { font-size: .58em; font-weight: 700; opacity: .7; margin-right: 2px; }
    .dash-card-val.income { color: var(--income); }
    .dash-card-val.expense { color: var(--expense); }
    .dash-card-val.pending { color: var(--pending); }
    .dash-card-chg { font-size: 11.5px; color: var(--text2); margin-top: 6px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
    .dash-card-chg.up { color: var(--income); }
    .dash-card-chg.down { color: var(--expense); }

    /* Card de SALDO destacado (laranja) */
    .dash-card.highlight {
      background: linear-gradient(140deg, var(--accent) 0%, var(--accent2) 100%);
      border-color: transparent;
      box-shadow: var(--shadow-lg);
    }
    .dash-card.highlight .dash-card-label,
    .dash-card.highlight .dash-card-val,
    .dash-card.highlight .dash-card-chg { color: #fff; }
    .dash-card.highlight .dash-card-chg { opacity: .92; }
    .dash-card.highlight .dash-card-menu { color: rgba(255, 255, 255, .75); }
    .dash-card.highlight .dash-card-menu:hover { color: #fff; background: rgba(255, 255, 255, .15); }
    .dash-card.highlight:hover { box-shadow: var(--shadow-lg); }

    /* Botões de ação */
    .dash-actions { display: flex; gap: 10px; padding: 0 16px; margin-bottom: 18px; flex-wrap: wrap; }
    .dash-action-btn {
      flex: 1; min-width: 150px;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      background: var(--surface); border: 1.5px solid var(--border);
      color: var(--text); font-weight: 700; font-size: 13.5px;
      padding: 12px 16px; border-radius: 12px; cursor: pointer;
      font-family: inherit; transition: all .15s ease;
    }
    .dash-action-btn:hover { border-color: var(--accent); color: var(--accent-txt); }
    .dash-action-btn svg { color: var(--accent-txt); }

    /* Cabeçalho das transações (abas + filtros) */
    .dash-tx-head {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 4px 16px 12px; flex-wrap: wrap;
    }
    .dash-tabs { margin-bottom: 0 !important; padding: 0 !important; flex: 1; }
    .dash-filter-btn {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--surface); border: 1.5px solid var(--border);
      color: var(--text2); font-weight: 700; font-size: 12.5px;
      padding: 9px 15px; border-radius: 10px; cursor: pointer;
      font-family: inherit; transition: all .15s ease; flex-shrink: 0;
    }
    .dash-filter-btn:hover { border-color: var(--border2); color: var(--text); }
    .dash-adv-panel {
      margin: 0 16px 14px; padding: 14px;
      background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
    }
    .dash-chart { margin: 6px 16px 0; }

    /* Desktop: 4 colunas e respiro maior */
    @media (min-width: 768px) {
      .dash-topbar { padding: 26px 28px 4px; }
      .dash-head { padding: 8px 28px 18px; }
      .dash-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 28px; margin-bottom: 18px; }
      .dash-card-val { font-size: 26px; }
      .dash-actions { padding: 0 28px; }
      .dash-tx-head { padding: 4px 28px 14px; }
      .dash-adv-panel { margin: 0 28px 16px; }
      .dash-chart { margin: 6px 28px 0; }
      .dash-action-btn { flex: 0 0 auto; min-width: 170px; }
    }
    @media (min-width: 480px) and (max-width: 767px) {
      .dash-cards { grid-template-columns: repeat(2, 1fr); }
    }
    /* Telas bem estreitas: cards empilham confortável */
    @media (max-width: 400px) {
      .dash-card-val { font-size: 21px; }
      .dash-title { font-size: 20px; }
    }
    @media (min-width: 1400px) {
      .dash-topbar { padding: 30px 40px 4px; }
      .dash-head { padding: 8px 40px 20px; }
      .dash-cards, .dash-actions, .dash-tx-head { padding-left: 40px; padding-right: 40px; }
      .dash-adv-panel, .dash-chart { margin-left: 40px; margin-right: 40px; }
    }

    .cat-action-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 0 16px;
      margin-bottom: 16px
    }

    .cat-action-btn {
      padding: 14px;
      border-radius: 16px;
      border: 1.5px solid;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 13px;
      font-weight: 700;
      transition: all .2s
    }

    .cat-action-btn:active {
      opacity: .8
    }

    .cat-action-btn.register {
      background: rgba(var(--income-rgb), .1);
      border-color: rgba(var(--income-rgb), .3);
      color: var(--income)
    }

    .cat-action-btn.limits {
      background: rgba(var(--pending-rgb), .1);
      border-color: rgba(var(--pending-rgb), .3);
      color: var(--pending)
    }

    .cat-tabs {
      display: flex;
      background: var(--surface2);
      border-radius: 14px;
      padding: 3px;
      margin: 0 16px 12px;
      border: 1.5px solid var(--border)
    }

    .cat-tab {
      flex: 1;
      padding: 9px;
      text-align: center;
      border-radius: 11px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: all .2s;
      color: var(--text2)
    }

    .cat-tab.active-desp {
      background: rgba(var(--expense-rgb), .2);
      color: var(--expense)
    }

    .cat-tab.active-rec {
      background: rgba(var(--income-rgb), .15);
      color: var(--income)
    }

    .cat-tab.active-arec {
      background: rgba(var(--pending-rgb), .12);
      color: var(--pending)
    }

    .cat-group {
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 8px
    }

    .cat-group-hd {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px;
      cursor: pointer;
      transition: background .2s
    }

    .cat-group-hd:active {
      background: var(--surface2)
    }

    .cat-group-av {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 800;
      flex-shrink: 0
    }

    .cat-group-info {
      flex: 1
    }

    .cat-group-name {
      font-size: 14px;
      font-weight: 700
    }

    .cat-group-count {
      font-size: 11px;
      color: var(--text2)
    }

    .cat-group-right {
      display: flex;
      align-items: center;
      gap: 8px
    }

    .cat-group-val {
      font-size: 15px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace
    }

    .cat-group-val.desp {
      color: var(--expense)
    }

    .cat-group-val.rec {
      color: var(--income)
    }

    .cat-group-val.arec {
      color: var(--pending)
    }

    .cat-expand-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text3);
      transition: transform .2s;
      flex-shrink: 0
    }

    .cat-group.expanded .cat-expand-icon {
      transform: rotate(180deg)
    }

    .cat-group-items {
      display: none;
      border-top: 1px solid var(--border)
    }

    .cat-group.expanded .cat-group-items {
      display: block
    }

    .cat-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 14px;
      border-bottom: 1px solid var(--border)
    }

    .cat-item:last-child {
      border-bottom: none
    }

    .cat-item-name {
      flex: 1;
      font-size: 13px;
      font-weight: 600
    }

    .cat-item-sub {
      font-size: 10px;
      color: var(--text3);
      margin-top: 1px
    }

    .cat-item-val {
      font-size: 13px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace
    }

    .cat-item-btns {
      display: flex;
      gap: 4px
    }

    .cat-item-btn {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: transform .15s
    }

    .cat-item-btn:active {
      opacity: .75
    }

    .cat-item-btn.transfer {
      background: rgba(91, 138, 240, .15)
    }

    .cat-item-btn.edit {
      background: rgba(var(--income-rgb), .15)
    }

    .cat-item-btn.del {
      background: rgba(var(--expense-rgb), .12)
    }

    .cat-item-btn.move {
      background: rgba(91, 138, 240, .15);
      color: var(--accent-txt)
    }

    /* ===== CAT GROUP DOWNLOAD BTN ===== */
    .cat-dl-btn {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(var(--income-rgb), .12);
      color: var(--income);
      flex-shrink: 0;
      transition: transform .15s, background .2s
    }

    .cat-dl-btn:active {
      opacity: .75
    }

    /* ===== EXPORT MODAL ===== */
    .export-opt-card {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px;
      border-radius: 16px;
      border: 1.5px solid var(--border);
      cursor: pointer;
      transition: border-color .2s, background .2s;
      background: var(--surface2)
    }

    .export-opt-card:active {
      background: var(--surface3)
    }

    .export-opt-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0
    }

    .export-opt-info {
      flex: 1
    }

    .export-opt-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 2px
    }

    .export-opt-sub {
      font-size: 12px;
      color: var(--text2)
    }

    /* ===== MOVER MODAL ===== */
    .mover-cat-list {
      display: flex;
      flex-direction: column;
      max-height: 340px;
      overflow-y: auto;
      border: 1.5px solid var(--border);
      border-radius: 14px;
      margin: 12px 0
    }

    .mover-cat-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 14px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background .15s
    }

    .mover-cat-row:last-child {
      border-bottom: none
    }

    .mover-cat-row:active {
      background: var(--surface2)
    }

    .mover-radio {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid var(--text3);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .2s
    }

    .mover-radio.selected {
      border-color: var(--income);
      background: var(--income)
    }

    .mover-radio.selected::after {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff
    }

    .mover-cat-name {
      font-size: 14px;
      font-weight: 600;
      flex: 1
    }

    /* ===== CATEGORY PICKER FIELD ===== */
    .cat-picker-field {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 13px 16px;
      cursor: pointer;
      transition: border-color .2s;
      width: 100%
    }

    .cat-picker-field:focus-within,
    .cat-picker-field:active {
      border-color: var(--accent)
    }

    .cat-picker-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      flex-shrink: 0
    }

    /* ===== CAT PICKER BOTTOM SHEET ===== */
    .cat-picker-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .55);
      z-index: 9001;
      display: none;
      align-items: flex-end;
    }

    .cat-picker-overlay.open {
      display: flex
    }

    .cat-picker-sheet {
      width: 100%;
      max-width: 540px;
      margin: 0 auto;
      background: var(--modal-bg);
      border-radius: 20px 20px 0 0;
      padding: 16px 0 0;
      max-height: 80vh;
      display: flex;
      flex-direction: column
    }

    .cat-picker-handle {
      width: 40px;
      height: 4px;
      border-radius: 2px;
      background: var(--border2);
      margin: 0 auto 14px
    }

    .cat-picker-title {
      font-size: 16px;
      font-weight: 700;
      padding: 0 18px 12px;
      border-bottom: 1px solid var(--border)
    }

    .cat-picker-search {
      padding: 12px 16px 0;
      position: sticky;
      top: 0;
      background: var(--modal-bg)
    }

    @media(min-width:768px) {
      .cat-picker-overlay { align-items: center; }
      .cat-picker-sheet { border-radius: 20px; max-height: 72vh; padding-bottom: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
      .cat-picker-handle { display: none; }
    }

    /* barra de rolagem escura (a branca do sistema destoava no PC) */
    .cat-picker-list, .modal-sheet, .ffs-list { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

    .cat-picker-list {
      overflow-y: auto;
      flex: 1;
      padding: 4px 0
    }

    .cat-picker-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      cursor: pointer;
      transition: background .15s
    }

    .cat-picker-item:active {
      background: var(--surface2)
    }

    .cat-picker-item.selected {
      background: rgba(var(--income-rgb), .08)
    }

    .cat-picker-emoji {
      font-size: 20px;
      width: 32px;
      text-align: center;
      flex-shrink: 0
    }

    .cat-picker-item-name {
      font-size: 14px;
      font-weight: 600;
      flex: 1
    }

    .cat-picker-check {
      color: var(--income);
      font-size: 16px;
      font-weight: 700
    }

    .cat-picker-create {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px 20px;
      cursor: pointer;
      border-top: 1px solid var(--border);
      color: var(--accent-txt);
      font-size: 14px;
      font-weight: 700;
      position: sticky;
      bottom: 0;
      background: var(--modal-bg)
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(18px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    @keyframes fadeDown {
      from {
        opacity: 0;
        transform: translateY(-12px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    @keyframes bounceIn {
      0% {
        transform: scale(0)
      }

      60% {
        transform: scale(1.15)
      }

      100% {
        transform: scale(1)
      }
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .4
      }
    }

    @keyframes slideUp {
      from {
        transform: translateY(10px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    .anim-stagger>* {
      animation: slideUp .4s ease both
    }

    .anim-stagger>*:nth-child(1) {
      animation-delay: .05s
    }

    .anim-stagger>*:nth-child(2) {
      animation-delay: .1s
    }

    .anim-stagger>*:nth-child(3) {
      animation-delay: .15s
    }

    .anim-stagger>*:nth-child(4) {
      animation-delay: .2s
    }

    .anim-stagger>*:nth-child(5) {
      animation-delay: .25s
    }

    .anim-stagger>*:nth-child(6) {
      animation-delay: .3s
    }

    .anim-stagger>*:nth-child(7) {
      animation-delay: .35s
    }

    .anim-stagger>*:nth-child(8) {
      animation-delay: .4s
    }

    /* ===== MISC ===== */
    .sep {
      height: 1px;
      background: var(--border);
      margin: 20px 16px
    }

    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--text2)
    }

    .empty-state-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      color: var(--text2)
    }

    .empty-state-txt {
      font-size: 14px;
      font-weight: 500
    }

    .total-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 12px 16px;
      margin: 0 16px
    }

    .total-bar-label {
      font-size: 12px;
      color: var(--text2);
      font-weight: 600
    }

    .total-bar-val {
      font-size: 16px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace
    }

    .overdue-alert {
      background: rgba(var(--expense-rgb), .1);
      border: 1.5px solid rgba(var(--expense-rgb), .25);
      border-radius: 14px;
      padding: 12px 16px;
      margin: 0 16px;
      display: flex;
      align-items: center;
      gap: 10px
    }

    .overdue-alert-text {
      flex: 1;
      font-size: 12px;
      color: var(--expense);
      font-weight: 600
    }

    .offline-banner {
      background: rgba(var(--pending-rgb), .15);
      border: 1px solid rgba(var(--pending-rgb), .3);
      border-radius: 10px;
      padding: 8px 14px;
      margin: 8px 16px;
      font-size: 12px;
      color: var(--pending);
      font-weight: 600;
      display: none;
      align-items: center;
      gap: 6px
    }

    .offline-banner.show {
      display: flex
    }

    /* ===== FATURAMENTO AUTOMÁTICO (visual suave, igual ao resto do app) ===== */
    .nb-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 0; }
    .nb-stat { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 12px 8px; text-align: center; }
    .nb-stat.in, .nb-stat.out, .nb-stat.net { background: var(--surface); }
    .nb-stat-val { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.05; }
    .nb-stat-lbl { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text2); margin-top: 5px; }
    .nb-stat.in .nb-stat-val { color: var(--income); }
    .nb-stat.out .nb-stat-val { color: var(--expense); }
    .nb-stat.net .nb-stat-val { color: var(--pending); }
    .nb-add-bar { padding: 14px 16px 4px; }
    .nb-btn-add { width: 100%; border: none; border-radius: 14px; background: var(--accent); color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; padding: 14px; cursor: pointer; transition: filter .15s; }
    .nb-btn-add:hover { filter: brightness(1.05); }
    .nb-list { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 12px; }
    .nb-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 14px; color: var(--text); }
    .nb-card.paused { opacity: .5; }
    .nb-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .nb-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; border-radius: 8px; padding: 4px 10px; }
    .nb-badge.income { background: rgba(var(--income-rgb), .15); color: var(--income); }
    .nb-badge.expense { background: rgba(var(--expense-rgb), .15); color: var(--expense); }
    .nb-card-name { font-size: 17px; font-weight: 700; color: var(--text); }
    .nb-card-amount { font-size: 24px; font-weight: 800; margin: 2px 0 8px; }
    .nb-card-amount.income { color: var(--income); } .nb-card-amount.expense { color: var(--expense); }
    .nb-card-meta { font-size: 12.5px; font-weight: 600; color: var(--text2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .nb-chip { border: 1px solid var(--border); border-radius: 7px; padding: 2px 8px; font-size: 11px; font-weight: 600; background: var(--surface2); color: var(--text2); }
    .nb-card-actions { display: flex; gap: 10px; margin-top: 12px; }
    .nb-mini { flex: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); color: var(--text); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; padding: 9px; cursor: pointer; transition: background .15s; }
    .nb-mini:hover { background: var(--surface3); }
    .nb-mini.del { color: var(--expense); }
    .nb-toggle { width: 50px; height: 28px; border: 1px solid var(--border2); border-radius: 20px; background: var(--surface3); position: relative; cursor: pointer; flex-shrink: 0; padding: 0; transition: background .15s; }
    .nb-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
    .nb-toggle.on { background: var(--income); } .nb-toggle.on::after { left: 26px; }
    .nb-empty { border: 1px dashed var(--border2); border-radius: 16px; padding: 34px 18px; text-align: center; color: var(--text2); margin: 10px 16px; }
    .nb-empty-emoji { font-size: 40px; margin-bottom: 8px; }
    .nb-empty-title { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 4px; }
    /* modal de recorrência (suave) */
    .nb-modal { color: var(--text); animation: nbModalIn .34s cubic-bezier(.4, 0, .2, 1) both; }
    @keyframes nbModalIn {
      from { opacity: 0; transform: translateY(14px) scale(.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .nb-mtitle { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
    .nb-field { margin-bottom: 14px; }
    .nb-field > label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text2); margin-bottom: 7px; }
    .nb-input, .nb-select { width: 100%; border: 1px solid var(--border2); border-radius: 12px; background: var(--surface); color: var(--text); font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; padding: 12px; outline: none; transition: border-color .15s; }
    .nb-input:focus, .nb-select:focus { border-color: var(--accent); }
    .nb-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .nb-type-opt { border: 1px solid var(--border2); border-radius: 12px; padding: 13px; text-align: center; font-weight: 700; cursor: pointer; background: var(--surface); color: var(--text); font-size: 13.5px; transition: all .15s; }
    .nb-type-opt.sel.income { background: rgba(var(--income-rgb), .15); border-color: var(--income); color: var(--income); }
    .nb-type-opt.sel.expense { background: rgba(var(--expense-rgb), .15); border-color: var(--expense); color: var(--expense); }
    .nb-row2 { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
    .nb-end-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .nb-end-opt { border: 1px solid var(--border2); border-radius: 10px; padding: 10px 4px; text-align: center; font-weight: 600; font-size: 13px; cursor: pointer; background: var(--surface); color: var(--text); transition: all .15s; }
    .nb-end-opt.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
    .nb-save { width: 100%; border: none; border-radius: 12px; background: var(--accent); color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; padding: 14px; cursor: pointer; margin-top: 4px; transition: filter .15s; }
    .nb-save:hover { filter: brightness(1.05); }
    .nb-cancel { width: 100%; background: transparent; border: none; color: var(--text2); font-family: 'Sora', sans-serif; font-weight: 700; padding: 12px; margin-top: 6px; cursor: pointer; }

    /* ===== Botões de idioma (PT / EN) nas configurações ===== */
    .lang-toggle { display: flex; gap: 6px; flex-shrink: 0; }
    .lang-btn {
      border: 1.5px solid var(--border2);
      background: var(--surface2);
      color: var(--text2);
      font-family: 'Sora', sans-serif;
      font-weight: 700;
      font-size: 12px;
      padding: 6px 13px;
      border-radius: 10px;
      cursor: pointer;
      transition: all .15s;
    }
    .lang-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

    /* ===== Compatibilidade e acessibilidade ===== */
    /* iOS da zoom sozinho ao focar campo com fonte < 16px. O .ff-input ja tinha
       16px, mas o campo do CHAT (14px), os selects (14px), os campos do
       faturamento (15px) e varios inputs com font-size inline ficaram de fora
       — tocar no chat ampliava a tela inteira. So em tela de toque. */
    @media (hover: none) and (pointer: coarse) {
      input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
      select,
      textarea {
        font-size: 16px !important;
      }
    }

    /* Foco visivel pra quem navega por teclado. Os campos ja tinham o proprio
       realce; botoes e itens clicaveis nao tinham nenhum. */
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .ff-input:focus-visible,
    .ff-select:focus-visible,
    #chatInput:focus-visible {
      outline: none;
    }

    /* Respeita quem pediu menos movimento no sistema. */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
    }

    /* =====================================================================
       Visual SUAVE — o tema "neobrutalismo" foi REMOVIDO a pedido do usuário.
       O app volta ao estilo limpo (bordas finas, sombras suaves) definido nos
       estilos-base acima. (Bloco de overrides global removido.)
       ===================================================================== */

/* ===== SELETOR PROPRIO (ffsEnhance) ===== */
.ffs-nativo { display: none !important; }
.ffs { position: relative; width: 100%; }
.ffs-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; }
.ffs-btn[aria-expanded="true"] { border-color: var(--accent); }
.ffs-btn:disabled { opacity: .5; cursor: not-allowed; }
.ffs-vaziotxt { color: var(--text3); font-style: italic; }
.ffs-val { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ffs-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffs-seta { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--text3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.ffs-btn[aria-expanded="true"] .ffs-seta { transform: rotate(180deg); }
.ffs-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 300;
  background: var(--modal-bg, var(--surface)); border: 1.5px solid var(--border2); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4); padding: 6px; animation: fadeUp .15s ease both;
}
.ffs-search {
  width: 100%; margin-bottom: 6px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface2); color: var(--text);
  font-family: inherit; font-size: 16px; outline: none;
}
.ffs-search:focus { border-color: var(--accent); }
.ffs-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ffs-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font-family: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.ffs-opt[hidden] { display: none; }
.ffs-opt:hover, .ffs-opt:focus-visible { background: var(--surface2); outline: none; }
.ffs-opt.on { background: rgba(var(--accent-rgb), .14); color: var(--accent-txt, var(--text)); font-weight: 700; }
.ffs-vazio { padding: 10px; font-size: 13px; color: var(--text3); text-align: center; }
.ffs-badge.ffs-logo { position: relative; overflow: hidden; color: transparent; box-shadow: none; width: 28px; padding: 0; }
.ffs-badge.ffs-logo:not(:has(img)) { color: var(--c); }
.ffs-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dark .ffs-logo .lg-claro, .ffs-logo .lg-escuro { display: none; }
.dark .ffs-logo .lg-escuro { display: block; }
.ffs-badge {
  flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: -.2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.ffs-badge.ffs-logo.ffs-sprite { color: var(--accent-txt); font-size: 22px; }

/* ===== FUNDO DA TELA DE LOGIN: pontilhado + grafico subindo ===== */
#authScreen { position: relative; }
.auth-right { background: transparent; z-index: 1; }
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(var(--accent-rgb), .35) 1px, transparent 1.4px);
  background-size: 22px 22px;
  /* os pontos somem nas bordas em vez de terminar num corte reto */
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 80%);
}
.auth-bg-chart { position: absolute; left: 0; right: 28px; bottom: 0; width: calc(100% - 28px); height: 42%; }
.auth-bg-line {
  fill: none; stroke: var(--accent-txt); stroke-width: 2.5; stroke-linejoin: round; opacity: .6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: authLinha 1.8s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}
.auth-bg-area { opacity: 0; animation: authArea .8s ease 1.6s forwards; }
/* ponto no fim da linha: 1200,118 do viewBox -> right 28px, 118/400 da altura do grafico */
.auth-bg-dot {
  position: absolute; right: 28px; bottom: calc(42% * (1 - 118 / 400)); width: 10px; height: 10px; margin: 0 -5px -5px 0;
  border-radius: 50%; background: var(--accent-txt); opacity: 0;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5);
  animation: authArea .3s ease 1.9s forwards, authPulso 2.4s ease-out 2.2s infinite;
}
@keyframes authLinha { to { stroke-dashoffset: 0; } }
/* o grafico sobe enquanto se desenha */
.auth-bg-chart { transform-origin: bottom; animation: authSobe 2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes authSobe { from { transform: scaleY(.35); } }
/* depois de desenhado, um brilho percorre a linha de tempos em tempos */
.auth-bg-brilho {
  fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  /* um traco so (o vao de 2 e maior que a linha inteira): entra pela esquerda, sai pela direita
     em velocidade constante e espera fora da linha ate a proxima volta */
  stroke-dasharray: .14 2; stroke-dashoffset: .14; opacity: .9;
  filter: drop-shadow(0 0 6px var(--accent-txt));
  animation: authBrilho 2.6s cubic-bezier(.55, 0, .25, 1) 1.2s infinite; /* risca rapido, como um tracante */
}
@keyframes authBrilho {
  0% { stroke-dashoffset: .14; }
  42%, 100% { stroke-dashoffset: -1; }
}
.auth-bg-area { animation: authArea .8s ease 1.6s forwards, authRespira 5s ease-in-out 2.4s infinite; }
@keyframes authRespira { 50% { opacity: .65; } }
/* fechamento da apresentacao: o grafico tambem sobe */
.lp-final-graf { transform-origin: bottom; }
.lp-js .lp-final-graf { transform: scaleY(.35); transition: transform 2s cubic-bezier(.16, 1, .3, 1); }
.lp-js .lp-final-graf.lp-desenha { transform: none; }
@keyframes authArea { to { opacity: 1; } }
@keyframes authPulso { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); } 100% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); } }
@media (prefers-reduced-motion: reduce) {
  .auth-bg-line { animation: none; stroke-dashoffset: 0; }
  .auth-bg-area, .auth-bg-dot { animation: none; opacity: 1; }
  .auth-bg-chart, .auth-bg-brilho { animation: none; }
  .lp-js .lp-final-graf { transform: none; transition: none; }
}

/* "← Início" da tela de login: volta pra apresentacao. O app instalado nao tem apresentacao. */
.auth-voltar {
  position: absolute; z-index: 2; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 14px);
  background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  font: 600 14px 'Sora', sans-serif; color: var(--text2);
}
.auth-voltar:hover { color: var(--text); background: var(--surface); }
.auth-voltar:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 2px; }
@media (display-mode: standalone) { .auth-voltar { display: none; } }

/* ===== APRESENTACAO (#landing) — a raiz do site na web ===== */
html[data-sem-landing] #landing, #landing[hidden] { display: none; }
#landing {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  padding: 0 20px env(safe-area-inset-bottom, 0px);
  scrollbar-color: var(--border2) transparent;
  /* cores das categorias, usadas no celular e nos cartoes em volta dele */
  --lp-azul: #5B82E8; --lp-ambar: #E3A33B; --lp-verde: #2FB37A; --lp-rosa: #D9667A;
}
#landing ::selection { background: rgba(var(--accent-rgb), .55); color: #fff; }
#landing > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
#landing h1, #landing h2 { text-wrap: balance; }

/* ---------- topo fixo, de ponta a ponta ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 12px;
}
/* vidro: o que rola por baixo aparece desfocado */
.lp-nav::before {
  content: ''; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: var(--bg); /* tela inteira, sem passar da borda */
  box-shadow: 0 1px 0 transparent; transition: box-shadow .3s, background-color .3s;
}
.lp-nav.lp-rolou::before {
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border);
}
.lp-nav .lp-ctas { gap: 8px; align-items: center; }
.lp-nav-link { font-size: 14px; font-weight: 600; color: var(--text2); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.lp-nav-link:hover { color: var(--text); }
.lp-nav-link:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 2px; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
a.lp-logo { color: inherit; text-decoration: none; border-radius: 10px; }
a.lp-logo:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 4px; }
.lp-logo-ico { width: 32px; height: 32px; }

.lp-btn {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--accent); border: 0; border-radius: 14px; padding: 14px 24px;
  transition: transform .15s cubic-bezier(.16, 1, .3, 1), background .2s;
}
.lp-btn:hover { background: var(--accent2); transform: translateY(-1px); } /* sem brilho em botao */
.lp-btn:active { transform: translateY(0) scale(.98); }
.lp-btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border2); }
.lp-btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border2); }
.lp-btn-claro { background: #fff; color: var(--accent); }
.lp-btn-claro:hover { background: #fff; }
.lp-btn:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 3px; }
.lp-btn-claro:focus-visible { outline-color: #fff; }

/* ---------- historia: texto rola, celular parado ---------- */
.lp-story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  column-gap: clamp(32px, 6vw, 104px);
}
.lp-caps { grid-column: 1; grid-row: 1; }
.lp-palco {
  grid-column: 2; grid-row: 1; position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100dvh - 64px);
  display: flex; align-items: center; justify-content: center;
}
/* o mesmo pontilhado da tela de login, atras do celular */
.lp-palco::before {
  content: ''; position: absolute; inset: 4% -30%; pointer-events: none;
  background-image: radial-gradient(rgba(var(--accent-rgb), .4) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
/* brilho atras do celular: muda de cor com a cena */
.lp-brilho {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  color: var(--lp-azul); background: radial-gradient(closest-side, currentColor, transparent); opacity: .3; transition: color .8s ease;
}
.lp-palco[data-cena="2"] .lp-brilho { color: var(--lp-ambar); }
.lp-palco[data-cena="3"] .lp-brilho { color: var(--lp-rosa); }
.lp-palco[data-cena="4"] .lp-brilho { color: var(--lp-verde); }

.lp-cap { min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-start; max-width: 34rem; padding: 7vh 0 40px; }
/* primeira tela mais curta: o titulo seguinte aparece cortado embaixo, sinal de que tem mais */
.lp-cap-hero { min-height: calc(82vh - 64px); justify-content: center; max-width: 40rem; padding: 24px 0 0; }
.lp-cap h1 { font-size: clamp(40px, 6.2vw, 82px); line-height: .98; font-weight: 800; letter-spacing: -.04em; margin: 0 0 24px; }
/* "em uma frase." ganha um traco que se desenha embaixo */
.lp-cap h1 span {
  color: var(--accent-txt);
  background: linear-gradient(currentColor, currentColor) 0 94% / 0% .07em no-repeat;
  animation: lpSublinha .9s cubic-bezier(.16, 1, .3, 1) .5s forwards;
}
@keyframes lpSublinha { to { background-size: 100% .07em; } }
.lp-lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--text2); max-width: 32em; margin: 0 0 32px; }
.lp-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-note { font-size: 13px; color: var(--text3); margin-top: 18px; }
.lp-cap h2 { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 0 0 20px; }
.lp-cap p { font-size: 17px; line-height: 1.6; color: var(--text2); max-width: 30em; }
/* com JS, so o capitulo da cena atual fica aceso */
.lp-js .lp-cap { opacity: .28; transition: opacity .5s; }
.lp-js .lp-cap.on { opacity: 1; }

/* ---------- o celular: moldura de aluminio laranja, borda preta fina ---------- */
.lp-phone {
  position: relative; z-index: 1; height: min(640px, 80vh); height: min(640px, 80dvh); aspect-ratio: 9 / 19.4; container-type: size;
  border-radius: 15.5% / 7.2%; padding: 1.3%;
  background: linear-gradient(135deg, #F8AE78 0%, #E8742F 20%, #C65A1F 52%, #E58040 78%, #A44517 100%);
  box-shadow: 0 50px 90px -35px rgba(0, 0, 0, .75), 0 24px 48px -24px rgba(198, 90, 31, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 -2px 3px rgba(0, 0, 0, .3);
}
.lp-phone::before, .lp-phone::after { content: ''; position: absolute; width: 4px; border-radius: 2px; }
.lp-phone::before { /* botao de acao + volume */
  left: -3px; top: 17%; height: 24%;
  background: linear-gradient(#D9682A 0 16%, transparent 16% 30%, #D9682A 30% 60%, transparent 60% 70%, #D9682A 70% 100%);
}
.lp-phone::after { right: -3px; top: 27%; height: 11%; background: #D9682A; } /* liga/desliga */
.lp-tela {
  position: relative; height: 100%; border-radius: 13.6% / 6.3%; overflow: hidden; border: 1.6cqw solid #050505;
  background: var(--bg); color: var(--text); font-size: 2.2cqh; line-height: 1.35;
}
.lp-tela::before { /* ilha da camera */
  content: ''; position: absolute; z-index: 3; top: 1.2cqh; left: 50%; width: 26cqw; height: 3.6cqh; margin-left: -13cqw;
  border-radius: 99px; background: #000;
}
.lp-tela::after { /* reflexo do vidro */
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%);
}
.lp-status { display: flex; justify-content: space-between; align-items: center; height: 6.2cqh; padding: 0 7cqw; font-size: 1.9cqh; font-weight: 700; }
.lp-status-ico { display: flex; gap: .8cqh; align-items: center; }
.lp-status-ico svg { height: 1.6cqh; width: auto; }
.lp-status-ico .lp-bateria { height: 1.75cqh; }
.lp-sinal { display: flex; gap: .3cqh; align-items: flex-end; height: 1.6cqh; }
.lp-sinal i { width: .45cqh; border-radius: 1px; background: currentColor; }
.lp-sinal i:nth-child(1) { height: 35%; } .lp-sinal i:nth-child(2) { height: 55%; } .lp-sinal i:nth-child(3) { height: 78%; } .lp-sinal i:nth-child(4) { height: 100%; }

.lp-cena {
  position: absolute; inset: 6.2cqh 0 0; padding: 1cqh 5cqw 3cqh; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(2cqh) scale(.97); filter: blur(5px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1), filter .45s ease, visibility 0s linear .6s;
}
.lp-phone[data-cena="0"] .lp-cena-chat, .lp-phone[data-cena="1"] .lp-cena-chat,
.lp-phone[data-cena="2"] .lp-cena-cat, .lp-phone[data-cena="3"] .lp-cena-contas, .lp-phone[data-cena="4"] .lp-cena-meta {
  opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .08s, .08s, .08s, 0s;
}
.lp-app-top { display: flex; align-items: center; gap: 1.2cqh; font-size: 2.6cqh; font-weight: 800; letter-spacing: -.02em; padding: 1cqh 0 1.8cqh; }
.lp-app-top .ff-ico { color: var(--accent-txt); font-size: 2.6cqh; }
#landing .lp-tela b, #landing .lp-tela strong { color: var(--text); font-variant-numeric: tabular-nums; }
#landing .lp-tela .pos { color: var(--income); }
#landing .lp-tela .neg { color: var(--expense); }

/* cena: chat, com o que economizou no mes no topo */
.lp-saldo {
  margin-bottom: 1.2cqh; padding: 1.8cqh 2cqh; border-radius: 2.4cqh;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .45), rgba(var(--accent-rgb), .1));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45);
}
.lp-saldo small { display: block; font-size: 1.8cqh; color: var(--text2); }
.lp-saldo strong { display: block; font-size: 4.2cqh; font-weight: 800; letter-spacing: -.03em; margin: .2cqh 0 .8cqh; }
.lp-saldo-mov { display: flex; gap: 2.4cqh; font-size: 1.8cqh; }
.lp-saldo-mov em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-saldo.lp-pulso { animation: lpPulso .6s ease; }
@keyframes lpPulso { 40% { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45), 0 0 0 .6cqh rgba(var(--accent-rgb), .25); } }
.lp-dia { align-self: center; font-size: 1.7cqh; color: var(--text3); padding: .3cqh 1.4cqh; border-radius: 99px; background: var(--surface); }
.lp-msgs {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.1cqh; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%); mask-image: linear-gradient(transparent, #000 12%);
}
.lp-msg {
  max-width: 84%; padding: 1.2cqh 1.7cqh; border-radius: 2.4cqh 2.4cqh 2.4cqh .7cqh;
  background: var(--surface2); color: var(--text2);
}
.lp-msg:has(.lp-tags) { max-width: 94%; }
.lp-eu { align-self: flex-end; border-radius: 2.4cqh 2.4cqh .7cqh 2.4cqh; background: var(--accent); color: #fff; }
.lp-tags { display: flex; flex-wrap: wrap; gap: .7cqh; }
.lp-tags em { font-size: .9em; font-style: normal; padding: .4cqh 1.1cqh; border-radius: 99px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border2); }
.lp-js .lp-msg { opacity: 0; transform: translateY(1.2cqh) scale(.94); transform-origin: bottom left; transition: opacity .3s, transform .45s cubic-bezier(.16, 1, .3, 1); }
.lp-js .lp-eu { transform-origin: bottom right; }
.lp-js .lp-msg.on { opacity: 1; transform: none; }
/* antes da 2a cena as mensagens novas nem ocupam lugar */
.lp-js .lp-msg[data-passo="1"]:not(.on) { display: none; }
/* mesma pilula do chat do app: microfone, texto e enviar redondo azul */
.lp-input {
  display: flex; align-items: center; gap: 1cqh; margin-top: 1.6cqh; height: 6.4cqh; padding: .6cqh;
  border-radius: 99px; background: var(--surface); color: var(--text); font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .55), 0 1.6cqh 3.6cqh -2cqh rgba(var(--accent-rgb), .8);
}
.lp-digitando { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.lp-input-mic, .lp-input-env { flex: none; display: grid; place-items: center; width: 5.2cqh; height: 5.2cqh; border-radius: 50%; font-size: 2.3cqh; }
.lp-input-mic { background: var(--surface2); color: var(--text); }
.lp-input-env { background: var(--accent); color: #fff; }
.lp-digitando:empty::before { content: 'Digite ou fale…'; color: var(--text3); }
.lp-digitando.lp-cursor::after { content: ''; display: inline-block; width: 2px; height: 2.4cqh; margin-left: 2px; vertical-align: -.4cqh; background: var(--accent-txt); animation: lpPisca .9s steps(1) infinite; }
@keyframes lpPisca { 50% { opacity: 0; } }

/* cena: categorias, com rosca e barras */
.lp-cat-topo { display: flex; align-items: center; justify-content: space-between; gap: 2cqh; padding: .6cqh 0 2.2cqh; }
.lp-total small { display: block; color: var(--text3); font-size: 1.9cqh; margin-bottom: .4cqh; }
.lp-total strong { font-size: 4.4cqh; font-weight: 800; letter-spacing: -.03em; }
.lp-rosca {
  width: 13cqh; height: 13cqh; border-radius: 50%; flex: none;
  background: conic-gradient(var(--lp-azul) 0 52%, var(--lp-ambar) 52% 80%, var(--lp-verde) 80% 91%, var(--lp-rosa) 91% 100%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%);
}
.lp-js .lp-rosca { transform: rotate(-90deg) scale(.6); opacity: 0; transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .4s; }
.lp-js .lp-phone[data-cena="2"] .lp-rosca { transform: none; opacity: 1; }
.lp-barras, .lp-metas { list-style: none; margin: 0; padding: 0; }
.lp-barras li, .lp-metas li { display: grid; grid-template-columns: 1fr auto; row-gap: 1cqh; padding: 1.6cqh 0; border-top: 1px solid var(--border); }
.lp-barras li > span::before { content: ''; display: inline-block; width: 1.2cqh; height: 1.2cqh; margin-right: 1cqh; border-radius: 50%; background: var(--c); }
.lp-barras i, .lp-metas i { grid-column: 1 / -1; height: 1cqh; border-radius: 99px; background: var(--c); transform-origin: left; transform: scaleX(var(--p)); }
.lp-js .lp-barras i, .lp-js .lp-metas i { transform: scaleX(0); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.lp-js .lp-phone[data-cena="2"] .lp-barras i, .lp-js .lp-phone[data-cena="4"] .lp-metas i { transform: scaleX(var(--p)); }
.lp-barras li:nth-child(2) i { transition-delay: .09s; } .lp-barras li:nth-child(3) i { transition-delay: .18s; } .lp-barras li:nth-child(4) i { transition-delay: .27s; }

/* cena: contas, com o aviso caindo do topo */
.lp-notif {
  display: flex; gap: 1.4cqh; align-items: center; margin: 0 0 1.6cqh; padding: 1.5cqh; border-radius: 2.6cqh;
  background: var(--surface2); box-shadow: 0 1.6cqh 3cqh -1.4cqh rgba(0, 0, 0, .55), inset 0 0 0 1px var(--border2);
}
.lp-notif .ff-ico { flex: none; font-size: 2.4cqh; color: #fff; background: var(--lp-rosa); padding: 1cqh; width: 4.4cqh; height: 4.4cqh; border-radius: 1.2cqh; }
.lp-notif span { display: flex; flex-direction: column; font-size: 1.9cqh; color: var(--text2); }
.lp-notif b { font-size: 2cqh; }
.lp-js .lp-notif { transform: translateY(-14cqh); opacity: 0; transition: transform .7s cubic-bezier(.16, 1, .3, 1) .35s, opacity .3s .35s; }
.lp-js .lp-phone[data-cena="3"] .lp-notif { transform: none; opacity: 1; }
.lp-contas { list-style: none; margin: 0; padding: 0; }
.lp-contas li { display: flex; justify-content: space-between; align-items: center; gap: 1.4cqh; padding: 1.7cqh 0; border-top: 1px solid var(--border); }
.lp-contas li > span { flex: 1; }
.lp-contas li::before { content: ''; width: 1cqh; height: 4.4cqh; border-radius: 99px; background: var(--c, var(--border2)); }
.lp-contas small { display: block; font-size: 1.8cqh; color: var(--text3); }
#landing .lp-conta-urg small, #landing .lp-conta-urg b { color: var(--expense); }
.lp-conta-ok b { text-decoration: line-through; text-decoration-color: var(--text3); }
#landing .lp-conta-ok small { color: var(--income); }

/* cena: meta, um porquinho brilhante; a moeda cai na fenda e ele da um pulinho */
.lp-pote-wrap { position: relative; width: 74cqw; margin: auto auto 1.5cqh; padding-top: 7cqh; }
.lp-porco { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 92%; }
.lp-moeda {
  position: absolute; z-index: 0; top: 0; left: 48.6%; width: 6cqw; height: 6cqw; margin-left: -3cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE89A, #F2C23E 55%, #C08A1C); box-shadow: inset 0 0 0 .5cqw rgba(160, 100, 10, .35); opacity: 0;
}
.lp-phone[data-cena="4"] .lp-moeda { animation: lpMoeda 2.2s cubic-bezier(.5, 0, .9, .5) .9s infinite; }
.lp-phone[data-cena="4"] .lp-porco { animation: lpPula 2.2s ease-out .9s infinite; }
/* cai, gira de lado e some dentro da fenda (o porco fica por cima) */
@keyframes lpMoeda {
  0% { transform: translateY(-2cqh) scaleX(1); opacity: 0; }
  15% { opacity: 1; }
  60% { transform: translateY(10cqh) scaleX(.3); opacity: 1; }
  75%, 100% { transform: translateY(14cqh) scaleX(.3); opacity: 0; }
}
@keyframes lpPula { 0%, 62% { transform: none; } 70% { transform: translateY(1.2cqh) scale(1.03, .95); } 80% { transform: translateY(-.6cqh) scale(.99, 1.02); } 90%, 100% { transform: none; } }
.lp-meta-barra { display: block; width: 60%; height: 1cqh; margin-top: 1cqh; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.lp-meta-barra i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, #F59AB4, #D85E7E); transform-origin: left; }
.lp-js .lp-meta-barra i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1) .3s; }
.lp-js .lp-phone[data-cena="4"] .lp-meta-barra i { transform: none; }
.lp-meta-txt { display: flex; flex-direction: column; align-items: center; gap: .4cqh; text-align: center; }
.lp-meta-txt strong { font-size: 2.8cqh; font-weight: 800; letter-spacing: -.02em; }
.lp-meta-txt > span { font-size: 2.1cqh; color: var(--text2); font-variant-numeric: tabular-nums; }
.lp-metas { margin: 3cqh 0 auto; font-size: 1.9cqh; }
.lp-js .lp-metas i { transition-delay: .3s; }

/* ---------- cartoes que flutuam em volta do celular (trocam com a cena) ---------- */
.lp-voa {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: var(--surface); color: var(--text); font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--border2);
  opacity: 0; transform: translateY(12px) scale(.92); filter: blur(4px); pointer-events: none;
  transition: opacity .4s ease, transform .6s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}
.lp-voa b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.lp-voa small { display: block; font-size: 12px; color: var(--text3); }
.lp-voa-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; font-size: 18px; background: var(--c); }
/* encostam so na borda do celular (meia largura dele ~148px), sem cobrir a tela */
.lp-voa-esq { right: calc(50% + 120px); top: 20%; }
.lp-voa-dir { left: calc(50% + 116px); bottom: 17%; }
.lp-palco[data-cena="0"] .lp-voa[data-c~="0"], .lp-palco[data-cena="1"] .lp-voa[data-c~="1"], .lp-palco[data-cena="2"] .lp-voa[data-c~="2"],
.lp-palco[data-cena="3"] .lp-voa[data-c~="3"], .lp-palco[data-cena="4"] .lp-voa[data-c~="4"] {
  opacity: 1; transform: none; filter: none; transition-delay: .35s;
  animation: lpBoia 5s ease-in-out .9s infinite;
}
.lp-voa-dir { animation-delay: 1.6s !important; }
@keyframes lpBoia { 50% { transform: translateY(-8px); } }
/* mini grafico de barras e onda de voz dentro dos cartoes */
.lp-mini { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.lp-mini i { width: 7px; border-radius: 3px; background: var(--c, var(--lp-azul)); height: var(--h); }
.lp-voz { display: flex; align-items: center; gap: 3px; height: 24px; }
.lp-voz i { width: 3px; height: 30%; border-radius: 2px; background: var(--accent-txt); animation: lpVoz 1s ease-in-out infinite; }
.lp-voz i:nth-child(2) { animation-delay: -.2s; } .lp-voz i:nth-child(3) { animation-delay: -.5s; } .lp-voz i:nth-child(4) { animation-delay: -.1s; }
.lp-voz i:nth-child(5) { animation-delay: -.7s; } .lp-voz i:nth-child(6) { animation-delay: -.35s; }
@keyframes lpVoz { 50% { height: 100%; } }
.lp-mini-rosca { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--lp-azul) 0 52%, var(--lp-ambar) 52% 80%, var(--lp-verde) 80% 91%, var(--lp-rosa) 91%); -webkit-mask: radial-gradient(circle, transparent 50%, #000 51%); mask: radial-gradient(circle, transparent 50%, #000 51%); }

/* ---------- frases que se organizam ---------- */
#landing > .lp-organiza { max-width: none; margin: 40px -20px 0; padding: 96px 20px; overflow: hidden; overflow: clip; border-block: 1px solid var(--border); } /* clip: corta os blocos voando sem impedir o sticky de dentro */
.lp-organiza > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.lp-organiza h2 { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin-bottom: 44px; }
.lp-organiza h2 span { color: var(--accent-txt); }
.lp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-col { --t: var(--expense); padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.lp-col-entrou { --t: var(--income); }
.lp-col-vem { --t: #E3B341; }
.lp-col h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .02em; margin: 0 0 14px; color: var(--text); }
.lp-col h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--t); }
.lp-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-col li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 13px;
  background: var(--surface2); color: var(--text);
}
.lp-col li span { grid-column: 1 / -1; font-size: 12.5px; color: var(--text3); }
.lp-col li b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-col li small { align-self: center; font-size: 12px; font-weight: 600; color: var(--t); }
/* bagunca -> ordem presa a rolagem (so com JS e sem "menos movimento"). O JS poe --p na secao
   (0 = baguncado, 1 = arrumado); cada bloco tem um atraso --o, e posicao, giro, cor e desfoque seguem
   --q dele. Rolando pra cima o mesmo caminho volta ao contrario. --kx/--ky encolhem o espalhamento. */
.lp-org-js .lp-col li {
  --q: clamp(0, calc((var(--p, 1) - var(--o, 0)) / .55), 1);
  --nq: calc(1 - var(--q));
  transform: translate(calc(var(--x) * var(--nq) * var(--kx, 1)), calc(var(--y) * var(--nq) * var(--ky, 1)))
    rotate(calc(var(--r) * var(--nq))) scale(calc(1 + (var(--s) - 1) * var(--nq)));
  background: color-mix(in srgb, var(--cor) calc(var(--nq) * 100%), var(--surface2));
  color: color-mix(in srgb, #111 calc(var(--nq) * 100%), var(--text));
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, calc(var(--nq) * .6));
  animation: lpBalanca var(--bt, 1.4s) ease-in-out var(--bd, 0s) infinite alternate;
}
.lp-org-js:not(.lp-org-vivo) .lp-col li { animation-play-state: paused; } /* fora da tela nao gasta nada */
.lp-org-js .lp-col li span { color: color-mix(in srgb, rgba(0, 0, 0, .7) calc(var(--nq) * 100%), var(--text3)); }
.lp-org-js .lp-col li small { color: color-mix(in srgb, rgba(0, 0, 0, .7) calc(var(--nq) * 100%), var(--t)); }
/* a secao fica alta e o conteudo gruda na tela: a pessoa rola um bom trecho vendo o voo inteiro */
.lp-organiza.lp-org-js { min-height: 240vh; }
.lp-org-js .lp-org-palco { position: sticky; top: calc(64px + 3vh); }
/* as colunas (fundo, borda e titulo) so aparecem no fim do caminho */
.lp-org-js .lp-col {
  --pc: clamp(0, calc((var(--p, 1) - .75) / .25), 1);
  background: color-mix(in srgb, var(--surface) calc(var(--pc) * 100%), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) calc(var(--pc) * 100%), transparent);
}
.lp-org-js .lp-col h3 { opacity: var(--pc); }
/* enquanto baguncados os blocos balancam; o balanco encolhe junto com a bagunca */
@keyframes lpBalanca {
  from { translate: calc(-7px * var(--nq)) calc(5px * var(--nq)); rotate: calc(-4deg * var(--nq)); }
  to { translate: calc(7px * var(--nq)) calc(-5px * var(--nq)); rotate: calc(4deg * var(--nq)); }
}

/* ---------- slogan: pro dia a dia e pra empreendedores individuais ---------- */
.lp-mais { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 72px; padding: 120px 0 104px; align-items: start; }
.lp-mais-cab { position: sticky; top: 112px; }
.lp-mais h2, .lp-planos h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.lp-mais-cab h2 { margin-bottom: 18px; font-size: clamp(30px, 3.5vw, 48px); }
.lp-mais-cab h2 span { color: var(--accent-txt); }
.lp-mais-cab p { font-size: 17px; line-height: 1.55; color: var(--text2); max-width: 24em; margin: 0 0 32px; }
/* grafico subindo embaixo do titulo, igual ao da tela de login */
.lp-mais-graf { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.lp-mais-graf path:first-child { fill: none; stroke: var(--accent-txt); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lp-mais-graf path + path { fill: url(#lpGrafFill); }
.lp-mais-graf circle { fill: var(--accent-txt); }
.lp-frases { list-style: none; margin: 0; padding: 0; }
.lp-frases li {
  display: flex; gap: 18px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--border2);
  font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15;
}
.lp-frases li:last-child { border-bottom: 1px solid var(--border2); }
.lp-frases .ff-ico { flex: none; font-size: .7em; color: var(--c); transform: translateY(.06em); }
.lp-js .lp-frases li { opacity: .28; transition: opacity .6s; }
.lp-js .lp-frases li.on { opacity: 1; }
.lp-fatos { grid-column: 1 / -1; list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-fatos li {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 99px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; color: var(--text2);
}
.lp-fatos .ff-ico { color: var(--accent-txt); font-size: 17px; }

/* ---------- planos ---------- */
.lp-planos { padding: 16px 0 112px; scroll-margin-top: 80px; }
.lp-planos h2 { margin-bottom: 12px; }
.lp-planos > p { font-size: 17px; color: var(--text2); margin: 0 0 36px; }
.lp-planos-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 920px; }
.lp-plano {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 22px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border2);
}
.lp-plano::before { /* faixa de cor no topo de cada plano */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c);
}
.lp-plano-on {
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent);
}
.lp-plano-on .lp-preco { font-size: 52px; }
.lp-plano .lp-plano-dia { color: var(--text); }
.lp-plano .lp-plano-anual { margin-top: -6px; font-size: 13.5px; }
.lp-plano .lp-plano-anual b { color: var(--c); }
.lp-plano .lp-plano-mais { font-weight: 700; color: var(--text); margin-top: 4px; }
.lp-plano-nota { font-size: 12.5px; line-height: 1.5; color: var(--text3); }
/* Gratis: so o basico, sem lista de vantagens */
.lp-plano-gratis { --c: var(--border2); background: transparent; }
.lp-plano-gratis .lp-preco { color: var(--text2); }
.lp-plano-gratis .lp-btn { margin-top: auto; } /* botao alinhado com o do Pro */
.lp-plano-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-plano h3 { font-size: 16px; font-weight: 700; margin: 0; }
.lp-selo { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.lp-preco { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.lp-preco small { font-size: 15px; font-weight: 600; color: var(--text3); letter-spacing: 0; }
.lp-plano p { font-size: 14px; line-height: 1.55; color: var(--text2); margin: 0; }
.lp-plano ul { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--text2); flex: 1; }
.lp-plano li::before { /* visto desenhado em CSS */
  content: ''; display: inline-block; width: 5px; height: 10px; margin: 0 12px 2px 3px;
  border: solid var(--income); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lp-plano .lp-btn { align-self: stretch; justify-content: center; text-align: center; }

/* ---------- fechamento ---------- */
#landing > .lp-final {
  position: relative; max-width: none; margin: 0 -20px; padding: 128px 20px 168px; overflow: hidden; text-align: center;
  background: var(--accent); color: #fff;
}
.lp-final::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
}
.lp-final-graf { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; pointer-events: none; }
.lp-final-graf path:first-child { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2.5; stroke-linejoin: round; }
.lp-final-graf path + path { fill: url(#lpFinalFill); }
.lp-final h2 { position: relative; font-size: clamp(38px, 6.4vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -.04em; max-width: 13ch; margin: 0 auto 40px; }
.lp-final .lp-btn { position: relative; }

/* ---------- rodape ---------- */
.lp-foot { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; padding: 64px 0 32px; }
.lp-foot-marca p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--text2); max-width: 22em; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 6px; }
.lp-foot nav a, .lp-foot nav button {
  font: 600 14px 'Sora', sans-serif; color: var(--text2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
}
.lp-foot nav a:hover, .lp-foot nav button:hover { color: var(--text); }
.lp-foot nav a:focus-visible, .lp-foot nav button:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 3px; border-radius: 4px; }
.lp-foot small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text3); }

/* ---------- telas medias: os cartoes flutuantes ficam pra dentro ---------- */


/* ---------- celular e tablet ---------- */
@property --lp-g { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
/* ===== versao celular da apresentacao =====
   Sem celular desenhado (a pessoa ja esta num celular): cada capitulo vira um cartao que se
   empilha ao rolar e traz o pedaco do app dele (.lp-m, que no computador fica escondido). */
.lp-m { display: none; }
/* abertura: teste de verdade, com o mesmo leitor de frases do app */
.lp-m.lp-teste { display: block; margin: 0 0 28px; max-width: 520px; }
.lp-teste-campo {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 99px; cursor: text;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .55), 0 18px 40px -22px rgba(var(--accent-rgb), .8);
  transition: box-shadow .25s;
}
.lp-teste-campo:focus-within { box-shadow: inset 0 0 0 2px var(--accent-txt), 0 18px 44px -16px rgba(var(--accent-rgb), .95); }
.lp-teste-campo input {
  flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: none;
  font-family: inherit; font-size: 17px; font-weight: 600; color: var(--text); caret-color: var(--accent-txt);
}
.lp-teste-campo input::placeholder { color: var(--text3); font-weight: 500; }
.lp-teste-campo .ff-ico { flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--accent); color: #fff; }
.lp-teste-res { display: flex; flex-direction: column; gap: 12px; padding: 22px 4px 0; min-height: 124px; }
.lp-teste-valor { font-size: clamp(42px, 12.5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
#landing .lp-teste-valor.neg { color: var(--expense); }
#landing .lp-teste-valor.pos { color: var(--income); }
#landing .lp-teste-valor.rec { color: var(--accent-txt); }
#landing .lp-teste-valor.pag { color: var(--pending); }
#landing .lp-teste-valor.meta { color: #C084FC; }
#landing .lp-teste-vazio .lp-teste-valor { color: var(--text3); }
.lp-teste-valor.lp-pop { animation: lpPop .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes lpPop { from { transform: translateY(6px) scale(.97); opacity: .4; } }
.lp-teste-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.lp-teste-tags em {
  font-style: normal; font-size: 14px; font-weight: 700; padding: 7px 13px; border-radius: 99px;
  background: var(--surface2); color: var(--text); animation: lpTag .45s cubic-bezier(.16, 1, .3, 1) both;
}
.lp-teste-tags em:nth-child(2) { animation-delay: .05s; }
.lp-teste-tags em:nth-child(3) { animation-delay: .1s; }
.lp-teste-tags em:nth-child(n+4) { animation-delay: .15s; }
#landing .lp-teste-vazio .lp-teste-tags em { background: none; padding-left: 0; color: var(--text3); font-weight: 500; }
@keyframes lpTag { from { opacity: 0; transform: translateY(6px) scale(.92); } }
/* sugestoes: uma fileira de arrastar pro lado */
.lp-teste-sug { display: flex; gap: 8px; margin: 16px -20px 0; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; }
.lp-teste-sug::-webkit-scrollbar { display: none; }
.lp-teste-sug button {
  flex: none; padding: 9px 14px; border: 0; border-radius: 99px; background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border2); font: inherit; font-size: 14px; font-weight: 600; color: var(--text2);
}
.lp-teste-sug button::before { content: '"'; }
.lp-teste-sug button::after { content: '"'; }
.lp-teste-sug button:active { background: var(--surface2); color: var(--text); }
.lp-teste-sug button:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 2px; }
@media (min-width: 880px) {
  .lp-teste-valor { font-size: 52px; }
  .lp-teste-sug { flex-wrap: wrap; margin: 14px 0 0; padding: 0; }
  .lp-teste-sug button:hover { background: var(--surface2); color: var(--text); }
}
@media (max-width: 879px) {
  .lp-story { display: block; }
  .lp-palco { display: none; }
  .lp-m { display: block; }
  .lp-js .lp-cap { opacity: 1; }
  .lp-cap { min-height: 0; max-width: none; padding: 0; }
  .lp-cap-hero { padding: 12px 0 64px; }
  .lp-cap h1 { font-size: clamp(34px, 10vw, 52px); margin-bottom: 16px; }
  .lp-lead { margin-bottom: 24px; }
  .lp-m b, .lp-m strong { color: var(--text); font-variant-numeric: tabular-nums; }
  #landing .lp-m .neg { color: var(--expense); }
  #landing .lp-m .pos { color: var(--income); }
  .lp-m-ico {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-size: 19px;
    color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent);
  }

  .lp-lead { margin-bottom: 22px; }

  /* capitulos: cada um com titulo grande e UM elemento grande, numa luz da cor dele */
  .lp-cap:not(.lp-cap-hero) { --cc: var(--lp-azul); position: relative; padding: 80px 0 48px; }
  .lp-cap:not(.lp-cap-hero)::before {
    content: ''; position: absolute; z-index: -1; left: -20px; right: -20px; bottom: 0; height: 75%; pointer-events: none;
    background: radial-gradient(70% 45% at 50% 55%, color-mix(in srgb, var(--cc) 20%, transparent), transparent 72%);
  }
  .lp-cap[data-cap="2"] { --cc: var(--lp-ambar); }
  .lp-cap[data-cap="3"] { --cc: var(--lp-rosa); }
  .lp-cap[data-cap="4"] { --cc: var(--lp-verde); }
  .lp-cap h2 { font-size: clamp(38px, 11vw, 50px); line-height: 1; margin-bottom: 16px; }
  .lp-cap h2 span { color: var(--accent-txt); } /* mesmo destaque do titulo do topo */
  .lp-cap p { font-size: 16.5px; line-height: 1.55; }
  .lp-cap:not(.lp-cap-hero) .lp-m { margin-top: 40px; }
  /* entrada: o elemento grande chega de baixo, desfocado, quando o capitulo aparece */
  .lp-js .lp-cap:not(.lp-cap-hero) .lp-m { transition: opacity .6s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
  .lp-js .lp-cap:not(.lp-cap-hero):not(.lp-m-on) .lp-m { opacity: 0; transform: translateY(48px) scale(.92); }
  .lp-js .lp-m-tags em, .lp-js .lp-m-contas li {
    transition: opacity .4s ease, transform .55s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(.5s + var(--i, 0) * .12s);
  }
  .lp-js .lp-cap:not(.lp-m-on) .lp-m-tags em, .lp-js .lp-cap:not(.lp-m-on) .lp-m-contas li { opacity: 0; transform: translateY(10px); }

  /* 1: voz */
  .lp-m-voz { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .lp-m-mic {
    position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; font-size: 42px;
    background: var(--accent); color: #fff; box-shadow: 0 22px 50px -16px rgba(var(--accent-rgb), .95);
  }
  .lp-m-mic::before, .lp-m-mic::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .7);
    animation: lpOnda 2.4s cubic-bezier(.2, .6, .4, 1) infinite;
  }
  .lp-m-mic::after { animation-delay: 1.2s; }
  @keyframes lpOnda { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
  .lp-m-voz .lp-voz { height: 40px; gap: 5px; }
  .lp-m-voz .lp-voz i { width: 5px; }
  .lp-m-fala { font-size: 27px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--text); }
  .lp-m-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .lp-m-tags em { font-style: normal; font-size: 15px; font-weight: 700; padding: 8px 15px; border-radius: 99px; background: var(--surface2); color: var(--text); }
  .lp-m-tags em:first-child { color: var(--expense); }

  /* 2: rosca que se desenha, com o total no meio */
  .lp-m-rosca { position: relative; display: grid; place-items: center; width: min(260px, 72vw); aspect-ratio: 1; margin: 0 auto 28px; text-align: center; }
  .lp-m-rosca::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(var(--lp-azul) 0 52%, var(--lp-ambar) 52% 80%, var(--lp-verde) 80% 91%, var(--lp-rosa) 91% 100%);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%), conic-gradient(#000 var(--lp-g), transparent 0);
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle, transparent 60%, #000 61%) intersect, conic-gradient(#000 var(--lp-g), transparent 0);
    transition: --lp-g 1.8s cubic-bezier(.16, 1, .3, 1) .35s;
  }
  .lp-js .lp-cap:not(.lp-m-on) .lp-m-rosca::before { --lp-g: 0%; }
  .lp-m-rosca small { display: block; font-size: 13px; color: var(--text3); }
  .lp-m-rosca strong { font-size: 38px; font-weight: 800; letter-spacing: -.035em; }

  /* 2 e 4: barras */
  .lp-m-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .lp-m-barras li { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 15px; color: var(--text2); }
  .lp-m-barras li b { font-size: 15px; font-weight: 700; }
  .lp-m-barras li i { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
  .lp-m-barras li i::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--c);
    transform-origin: left; transform: scaleX(var(--p)); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(.6s + var(--i, 0) * .1s);
  }
  .lp-js .lp-cap:not(.lp-m-on) .lp-m-barras li i::before { transform: scaleX(0); }

  /* 3: notificacao grande + contas */
  /* notificacao com cara de notificacao de celular de verdade: cinza neutro, icone do app, nome e hora */
  .lp-cap[data-cap="3"]::before { display: none; }
  .lp-m-notif {
    display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px 14px 13px; border-radius: 22px;
    background: color-mix(in srgb, var(--text) 9%, var(--surface));
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent) inset, 0 16px 34px -18px rgba(0, 0, 0, .7);
  }
  .lp-m-app { flex: none; width: 40px; height: 40px; margin-top: 2px; }
  .lp-m-notif > span { flex: 1; min-width: 0; }
  .lp-m-notif-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text3); }
  .lp-m-notif-top small { font-size: 13px; }
  .lp-m-notif b { display: block; margin: 1px 0 2px; font-size: 16px; font-weight: 700; line-height: 1.3; }
  .lp-m-notif > span > span:last-child { font-size: 15px; line-height: 1.35; color: var(--text2); }
  .lp-m-contas ul { list-style: none; margin: 14px 0 0; padding: 0; }
  .lp-m-contas li { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--text); }
  .lp-m-contas li:last-child { border-bottom: 0; }
  .lp-m-contas li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
  .lp-m-contas li span { flex: 1; display: flex; flex-direction: column; }
  .lp-m-contas li small { font-size: 12.5px; color: var(--text3); }
  #landing .lp-m-pago { color: var(--text3); text-decoration: line-through; }

  /* 4: o numero da meta, enorme */
  .lp-m-pct { display: block; font-size: clamp(100px, 31vw, 136px); font-weight: 800; letter-spacing: -.04em; line-height: .88; color: var(--income); font-variant-numeric: tabular-nums; }
  #landing .lp-m-pct { color: var(--income); }
  .lp-m-meta-top { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
  .lp-m-meta-top b { display: block; font-size: 18px; }
  .lp-m-meta-top small { font-size: 14px; color: var(--text3); }
  .lp-m-barra { display: block; height: 16px; margin-top: 20px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
  .lp-m-barra i {
    display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--lp-verde);
    transform-origin: left; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1) .5s;
  }
  .lp-js .lp-cap:not(.lp-m-on) .lp-m-barra i { transform: scaleX(0); }
  .lp-m-meta .lp-m-barras { margin-top: 28px; }

  /* frases que se organizam: as 3 colunas empilham numa so, com 2 frases cada, pra caber na tela parada */
  #landing > .lp-organiza { padding: 64px 20px 40px; }
  .lp-organiza h2 { margin-bottom: 20px; }
  .lp-cols { grid-template-columns: 1fr; gap: 10px; }
  .lp-col { padding: 12px 14px; }
  .lp-col h3 { margin-bottom: 8px; }
  .lp-col ul { gap: 6px; }
  .lp-col li { padding: 8px 12px; }
  .lp-col li:nth-child(n+3) { display: none; }
  .lp-col li b { font-size: 14px; }
  /* bagunca menor no celular: a tela e estreita */
  .lp-organiza { --kx: .3; --ky: .2; }
  .lp-organiza.lp-org-js { min-height: 200vh; }
  .lp-org-js .lp-org-palco { top: 72px; }

  .lp-mais { grid-template-columns: 1fr; padding: 72px 0 56px; }
  .lp-mais-cab { position: static; }
  .lp-fatos { margin-top: 32px; }
  /* Pro em cima, Gratis embaixo */
  .lp-planos-grade { grid-template-columns: 1fr; gap: 10px; }
  .lp-plano { padding: 22px 18px; }
  .lp-plano-on .lp-preco { font-size: 44px; }
  .lp-planos { padding-bottom: 64px; }
  .lp-foot { grid-template-columns: 1fr; }
  #landing > .lp-final { padding: 96px 20px 136px; }
}
@media (max-width: 560px) {
  .lp-nav .lp-btn { padding: 11px 16px; font-size: 14px; }
  .lp-nav-link { display: none; }
}
@media (max-width: 420px) { .lp-nav-cta { display: none; } }

/* ---------- menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .lp-cap h1 span { animation: none; background-size: 100% .07em; }
  .lp-cena, .lp-voa { transform: none; filter: none; transition: opacity .3s, visibility 0s linear .3s; }
  .lp-palco .lp-voa { animation: none !important; }
  .lp-voz i { animation: none; height: 60%; }
  .lp-js .lp-msg, .lp-js .lp-notif, .lp-js .lp-barras i, .lp-js .lp-metas i, .lp-js .lp-meta-barra i, .lp-js .lp-rosca { transition: opacity .3s; }
  .lp-js .lp-barras i, .lp-js .lp-metas i { transform: scaleX(var(--p)); }
  .lp-js .lp-meta-barra i, .lp-js .lp-notif, .lp-js .lp-rosca { transform: none; }
  .lp-phone[data-cena="4"] .lp-porco, .lp-phone[data-cena="4"] .lp-moeda { animation: none; }
  .lp-saldo.lp-pulso { animation: none; }
  .lp-org-js .lp-col li { animation: none; }
  .lp-m-mic { animation: none; }
  .lp-js .lp-m, .lp-js .lp-m *, .lp-js .lp-m *::before { transition: none !important; filter: none !important; }
  .lp-m-mic::before, .lp-m-mic::after, .lp-teste-tags em, .lp-teste-valor.lp-pop { animation: none; }
}

/* "Voltar ao inicio" embaixo da conta na barra lateral: abre a apresentacao. O app instalado nao tem. */
.sidebar-voltar {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 12px;
  background: none; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 13px 'Sora', sans-serif; color: var(--text3); transition: color .2s, background .2s;
}
.sidebar-voltar .ff-ico { transform: rotate(180deg); }
.sidebar-voltar:hover { color: var(--text); background: var(--surface); }
.sidebar-voltar:focus-visible { outline: 2px solid var(--accent-txt); outline-offset: 2px; }
@media (display-mode: standalone) { .sidebar-voltar { display: none; } }


/* graficos subindo da apresentacao: a linha se desenha, depois a area e o ponto aparecem (so com JS) */
.lp-js .lp-final-graf path:first-child, .lp-js .lp-mais-graf path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-js .lp-final-graf path + path, .lp-js .lp-mais-graf path + path, .lp-js .lp-mais-graf circle { opacity: 0; }
.lp-desenha path:first-child { animation: authLinha 2s cubic-bezier(.4, 0, .2, 1) forwards; }
.lp-desenha path + path, .lp-desenha circle { animation: authArea .8s ease 1.7s forwards; }
@media (prefers-reduced-motion: reduce) {
  .lp-js .lp-final-graf path:first-child, .lp-js .lp-mais-graf path:first-child { stroke-dashoffset: 0; }
  .lp-js .lp-final-graf path + path, .lp-js .lp-mais-graf path + path, .lp-js .lp-mais-graf circle { opacity: 1; }
  .lp-desenha path, .lp-desenha circle { animation: none; }
}

/* olho de mostrar/ocultar senha: pisca na troca e o risco se desenha */
.ff-pisca { transform-origin: center; animation: ffPisca .38s cubic-bezier(.4, 0, .2, 1); }
@keyframes ffPisca { 45% { transform: scaleY(.1); } }
.ff-pisca .ff-risco { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ffRisco .3s ease-out .2s forwards; }
@keyframes ffRisco { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ff-pisca { animation: none; }
  .ff-pisca .ff-risco { animation: none; stroke-dashoffset: 0; }
}

/* troca de cena presa a rolagem (so com JS e sem "menos movimento"): --d e a distancia da
   cena ate a posicao da rolagem (0 = na tela, 1 = uma tela abaixo, -1 = uma acima); --a = |--d| */
.lp-status { position: relative; z-index: 2; background: var(--bg); }
.lp-phone.lp-rola .lp-cena {
  visibility: visible; transition: none; will-change: transform;
  opacity: calc(1 - var(--a, 1) * 1.15);
  transform: translateY(calc(var(--d, 1) * 100%)) scale(calc(1 - var(--a, 1) * .08));
}

/* avatar da conta: inicial na cor da carteira sobre um fundo tingido dela (sem degrade).
   --av vem do JS (cor da carteira); o texto mistura com --text, entao funciona no claro e no escuro */
.saved-acc-av, .user-av, .sidebar-user-av, .profile-av {
  --av: var(--accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--av) 24%, var(--surface));
  color: color-mix(in srgb, var(--av) 45%, var(--text));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--av) 55%, transparent);
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -.03em;
}
.profile-av { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--av) 55%, transparent), 0 0 0 6px color-mix(in srgb, var(--av) 12%, transparent); }

/* ---------- aviso (toast): cartao solido no topo, longe da barra do chat e do menu de baixo ---------- */
#toast {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 99999;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 420px);
  padding: 11px 16px 11px 12px; border-radius: 12px;
  background: var(--surface2); color: var(--text);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45);
  font-size: 13.5px; font-weight: 500; line-height: 1.4; text-align: left;
  pointer-events: none; opacity: 0; transform: translate(-50%, -10px);
  transition: opacity .2s, transform .3s cubic-bezier(.2, 1, .3, 1);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
/* so ok e erro ganham icone: um circulo cheio com o simbolo, sem halo */
#toast.ok::before, #toast.erro::before {
  content: '\2713'; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--income); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}
#toast.erro::before { content: '!'; background: var(--expense); }

/* ---------- forca da senha no cadastro: 4 tracos + palavra + dica do que falta ---------- */
.senha-forca { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--text3); }
.senha-forca-barra { flex: none; display: flex; gap: 4px; }
.senha-forca-barra i { width: 26px; height: 4px; border-radius: 4px; background: var(--border2); transition: background .25s; }
.senha-forca { --f: var(--expense); }
.senha-forca[data-n="2"] { --f: var(--pending); }
.senha-forca[data-n="3"], .senha-forca[data-n="4"] { --f: var(--income); }
.senha-forca[data-n="1"] .senha-forca-barra i:nth-child(-n+1),
.senha-forca[data-n="2"] .senha-forca-barra i:nth-child(-n+2),
.senha-forca[data-n="3"] .senha-forca-barra i:nth-child(-n+3),
.senha-forca[data-n="4"] .senha-forca-barra i { background: var(--f); }
.senha-forca-txt b { color: var(--f); font-weight: 700; }

/* ---------- aparelho de toque: menu do topo sem vidro fosco (o blur de fundo repinta a cada rolagem) ---------- */
@media (pointer: coarse) {
  .lp-nav.lp-rolou::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 94%, transparent); }
}

/* ---------- faixa do plano no Perfil ---------- */
.plano-faixa {
  margin: 0 16px 12px; padding: 14px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pending) 14%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--pending) 35%, transparent);
}
.plano-faixa-top { display: flex; align-items: center; gap: 8px; }
.plano-faixa-sub { font-size: 12px; color: var(--text3); }
.plano-faixa-nome { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--surface2); color: var(--text); }
.plano-faixa[data-plano="pro"] .plano-faixa-nome { background: var(--pending); color: #111; }
.plano-faixa-lim { font-size: 14px; font-weight: 600; color: var(--text); }
.plano-faixa-pro { font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.plano-faixa-pro b { color: var(--pending); }
.plano-faixa-btn {
  align-self: flex-start; margin-top: 6px; padding: 9px 16px; border: 0; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 800; background: var(--pending); color: #111;
}
.plano-faixa-btn:active { transform: scale(.97); }
