* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --teal: #26A95E;
      --teal-hover: #0F8B4A;
      --teal-light: #e8f8ef;
      --background: #f1f5f9;
      --card: #ffffff;
      --input-bg: #f8fafc;
      --titulo: #1e293b;
      --texto: #334155;
      --texto-light: #475569;
      --texto-muted: #64748b;
      --verde: #26A95E;
      --verde-escuro: #0F8B4A;
      --vermelho: #ef4444;
      --vermelho-hover: #dc2626;
      --amarelo-bg: #fef9c3;
      --amarelo-texto: #92400e;
      --roxo: #8b5cf6;
      --roxo-light: #f3e8ff;
      /* Hero colors */
      --verde-claro: #26A95E;
      --verde-bg: #1a7544;
      --branco: #ffffff;
      --cinza: #334155;
    }

    body {
      font-family: 'Montserrat', sans-serif;
      background: var(--background);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 20px;
      padding-top: 40px;
      overflow-y: auto;
    }

    .container {
      width: 100%;
      max-width: 800px;
      padding: 0 24px;
    }

    /* MENU LATERAL */
    .menu-btn {
      position: fixed;
      top: 20px;
      left: 20px;
      padding: 10px 16px;
      border-radius: 12px;
      background: var(--card);
      border: none;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 600;
      color: var(--texto);
      z-index: 50;
      transition: all 0.2s;
      font-family: 'Montserrat', sans-serif;
    }

    @media (max-width: 480px) {
      .menu-btn {
        top: 40px;
      }
      
      body {
        padding-top: 100px;
        padding-bottom: 60px;
      }
      
      .card {
        padding-bottom: 120px;
      }
    }

    .menu-btn:hover {
      background: var(--teal-light);
    }

    .sidebar {
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100vh;
      background: var(--card);
      box-shadow: 4px 0 20px rgba(0,0,0,0.1);
      z-index: 100;
      transition: left 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .sidebar.active {
      left: 0;
    }

    .sidebar-header {
      padding: 24px 20px;
      border-bottom: 1px solid #e2e8f0;
    }

    .sidebar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .sidebar-logo img {
      height: 56px;
      width: auto;
    }

    .sidebar-close {
      position: absolute;
      top: 20px;
      right: 16px;
      width: 32px;
      height: 32px;
      border: none;
      background: transparent;
      font-size: 20px;
      cursor: pointer;
      color: var(--texto-light);
      border-radius: 8px;
      transition: all 0.2s;
    }

    .sidebar-close:hover {
      background: var(--input-bg);
      color: var(--titulo);
    }

    .sidebar-nav {
      flex: 1;
      padding: 16px 12px;
    }

    .sidebar-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      margin-bottom: 4px;
      border: none;
      background: transparent;
      width: 100%;
      text-align: left;
      font-family: inherit;
    }

    .sidebar-item:hover {
      background: var(--teal-light);
    }

    .sidebar-item.active {
      background: var(--teal);
    }

    .sidebar-item .icon {
      font-size: 20px;
    }

    .sidebar-item .texto {
      font-size: 15px;
      font-weight: 600;
      color: var(--titulo);
    }

    .sidebar-item.active .texto {
      color: white;
    }

    .sidebar-footer {
      padding: 16px 20px;
      border-top: 1px solid #e2e8f0;
      font-size: 12px;
      color: var(--texto-muted);
    }

    .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.4);
      z-index: 90;
    }

    .sidebar-overlay.active {
      display: block;
    }

    .tela {
      display: none;
    }

    .tela.active {
      display: block;
    }

    .card {
      background: var(--card);
      border-radius: 20px;
      padding: 32px 24px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      text-align: center;
      width: 100%;
      max-width: 100%;
    }

    /* Desktop styles */
    @media (min-width: 768px) {
      .container {
        max-width: 900px;
      }

      .card {
        padding: 48px 40px;
      }

      body {
        padding-top: 60px;
      }
    }

    @media (min-width: 1024px) {
      .container {
        max-width: 1000px;
      }
    }

    .card-titulo {
      font-size: 14px;
      font-weight: 600;
      color: var(--texto-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }

    .saldo-geral {
      font-size: 28px;
      font-weight: 800;
      color: var(--titulo);
      margin-bottom: 32px;
    }

    .btn-principal {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: linear-gradient(145deg, var(--teal), var(--teal-hover));
      border: none;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      margin: 0 auto 24px;
      box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
      transition: all 0.3s ease;
    }

    .btn-principal:hover {
      transform: scale(1.05);
      box-shadow: 0 12px 40px rgba(13, 148, 136, 0.5);
    }

    .btn-principal:active {
      transform: scale(0.98);
    }

    .btn-principal .emoji {
      position: absolute;
      top: 24px;
      font-size: 28px;
      opacity: 0.8;
    }

    .btn-principal .texto {
      font-size: 26px;
      font-weight: 700;
      color: white;
      text-align: center;
      line-height: 1.2;
      margin-top: 24px;
    }

    .dica {
      font-size: 13px;
      color: var(--texto-muted);
    }

    .btn-meus-gastos {
      width: 100%;
      padding: 14px 24px;
      background: transparent;
      color: var(--teal);
      border: 2px solid var(--teal);
      border-radius: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 24px;
      margin-bottom: 16px;
      transition: all 0.2s;
    }

    .btn-meus-gastos:hover {
      background: var(--teal-light);
      transform: translateY(-2px);
    }

    /* TELA MEUS GASTOS */
    .mes-seletor {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-bottom: 24px;
    }

    .mes-seletor .mes {
      font-size: 18px;
      font-weight: 700;
      color: var(--titulo);
      min-width: 140px;
      text-align: center;
    }

    .mes-seletor button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: var(--input-bg);
      color: var(--texto);
      font-size: 18px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .mes-seletor button:hover {
      background: var(--teal-light);
      color: var(--teal);
    }

    .resumo-total {
      background: var(--teal-light);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .resumo-total .label {
      font-size: 14px;
      color: var(--texto-light);
    }

    .resumo-total .valor {
      font-size: 24px;
      font-weight: 800;
      color: var(--teal);
    }

    .categoria-item {
      background: var(--input-bg);
      border-radius: 12px;
      margin-bottom: 16px;
      overflow: hidden;
      transition: all 0.2s;
      border: 1px solid #e2e8f0;
      border-left: 4px solid var(--titulo);
    }

    .categoria-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .categoria-header:hover {
      background: var(--teal-light);
    }

    .categoria-header .emoji {
      font-size: 20px;
    }

    .categoria-header .nome {
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: var(--titulo);
    }

    .categoria-header .valores {
      text-align: right;
    }

    .categoria-header .valor {
      font-size: 15px;
      font-weight: 700;
      color: var(--titulo);
    }

    .categoria-header .percent {
      font-size: 13px;
      font-weight: 700;
      margin-left: 8px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .categoria-header .percent.ok {
      color: var(--verde-escuro);
    }

    .categoria-header .percent.alerta {
      color: var(--amarelo-texto);
    }

    .categoria-header .percent.estourou {
      color: var(--vermelho);
    }

    .categoria-header .percent .icone {
      font-size: 10px;
    }

    .categoria-header .seta {
      font-size: 12px;
      color: var(--texto-muted);
      transition: transform 0.2s;
    }

    .categoria-item.expandido .seta {
      transform: rotate(180deg);
    }

    .categoria-detalhe {
      display: none;
      padding: 0 16px 16px;
      border-top: 1px solid #e2e8f0;
    }

    .categoria-item.expandido .categoria-detalhe {
      display: block;
    }

    .palavra-grupo {
      margin-top: 12px;
    }

    .palavra-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      background: white;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .palavra-header:hover {
      background: var(--teal-light);
    }

    .palavra-header .palavra {
      flex: 1;
      font-size: 14px;
      font-weight: 600;
      color: var(--texto);
    }

    .palavra-header .valor {
      font-size: 14px;
      font-weight: 700;
      color: var(--titulo);
    }

    .palavra-header .av {
      font-size: 12px;
      color: var(--texto-light);
      min-width: 50px;
      text-align: right;
    }

    .palavra-header .seta {
      font-size: 10px;
      color: var(--texto-muted);
      transition: transform 0.2s;
    }

    .palavra-grupo.expandido .palavra-header .seta {
      transform: rotate(180deg);
    }

    .palavra-gastos {
      display: none;
      margin-top: 8px;
      margin-left: 12px;
    }

    .palavra-grupo.expandido .palavra-gastos {
      display: block;
    }

    .gasto-linha {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      background: white;
      border-radius: 6px;
      margin-bottom: 4px;
      font-size: 13px;
    }

    .gasto-linha .data {
      color: var(--texto-light);
      min-width: 50px;
    }

    .gasto-linha .valor {
      flex: 1;
      font-weight: 600;
      color: var(--titulo);
    }

    .gasto-linha .forma {
      font-size: 12px;
      color: var(--texto-light);
    }

    /* INSIGHTS */
    .insights-container {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid #64748b;
    }

    .insight-secao {
      margin-bottom: 16px;
      padding-top: 16px;
      border-top: 1px solid #64748b;
    }

    .insight-secao:first-child {
      border-top: none;
      padding-top: 0;
    }

    .insight-titulo {
      font-size: 12px;
      font-weight: 700;
      color: var(--texto-light);
      text-transform: uppercase;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .insight-box {
      background: white;
      border-radius: 10px;
      padding: 12px;
    }

    .comparativo-linha {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .comparativo-linha .mes {
      font-size: 13px;
      color: var(--texto-light);
      min-width: 80px;
    }

    .comparativo-linha .barra-container {
      flex: 1;
      height: 8px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
    }

    .comparativo-linha .barra {
      height: 100%;
      background: var(--teal);
      border-radius: 4px;
    }

    .comparativo-linha .valor {
      font-size: 13px;
      font-weight: 600;
      color: var(--titulo);
      min-width: 80px;
      text-align: right;
    }

    .variacao {
      text-align: center;
      padding: 8px;
      background: var(--input-bg);
      border-radius: 8px;
      margin-top: 8px;
    }

    .variacao.positiva {
      color: var(--vermelho);
    }

    .variacao.negativa {
      color: var(--verde-escuro);
    }

    .proximo-mes-box {
      background: white;
      border-radius: 10px;
      padding: 12px;
    }

    .proximo-mes-linha {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      font-size: 13px;
    }

    .proximo-mes-linha .label {
      color: var(--texto-light);
    }

    .proximo-mes-linha .valor {
      font-weight: 600;
      color: var(--titulo);
    }

    .proximo-mes-linha .valor.disponivel {
      color: var(--verde-escuro);
    }

    .proximo-mes-linha .valor.comprometido {
      color: var(--amarelo-texto);
    }

    .alerta-box {
      background: white;
      border-radius: 10px;
      padding: 10px 12px;
      margin-bottom: 8px;
      font-size: 13px;
      display: flex;
      align-items: flex-start;
      gap: 8px;
      color: var(--titulo);
    }

    .alerta-box .alerta-icon {
      font-size: 16px;
    }

    .alerta-box.vermelho .alerta-icon {
      color: var(--vermelho);
    }

    .alerta-box.amarelo .alerta-icon {
      color: var(--amarelo-texto);
    }

    .alerta-box.azul .alerta-icon {
      color: #3b82f6;
    }

    .alerta-box.verde .alerta-icon {
      color: var(--verde-escuro);
    }

    .analise-box {
      background: linear-gradient(135deg, #f0fdfa 0%, #e0f7f4 100%);
      border: 1px solid var(--teal);
      border-radius: 12px;
      padding: 16px;
      font-size: 14px;
      line-height: 1.6;
      color: var(--titulo);
    }

    .analise-box strong {
      color: var(--teal);
    }

    .analise-alerta {
      color: var(--vermelho);
      font-weight: 600;
    }

    .btn-recolher {
      width: 100%;
      padding: 12px;
      margin-top: 16px;
      background: var(--input-bg);
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      color: var(--texto-light);
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-recolher:hover {
      background: #e2e8f0;
      color: var(--titulo);
    }

    .passo-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--teal);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }

    .passo-titulo {
      font-size: 24px;
      font-weight: 700;
      color: var(--titulo);
      margin-bottom: 24px;
    }

    .input-valor-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 32px;
    }

    .input-valor-container .prefixo {
      font-size: 32px;
      font-weight: 700;
      color: var(--texto-light);
    }

    .input-valor {
      width: 180px;
      font-size: 48px;
      font-weight: 800;
      color: var(--titulo);
      border: none;
      background: transparent;
      text-align: center;
      font-family: inherit;
    }

    .input-valor:focus {
      outline: none;
    }

    .input-valor::placeholder {
      color: var(--texto-muted);
    }

    .input-texto {
      width: 100%;
      padding: 16px 20px;
      border: 2px solid #e2e8f0;
      border-radius: 14px;
      font-size: 18px;
      font-family: inherit;
      color: var(--titulo);
      transition: all 0.2s;
      margin-bottom: 24px;
    }

    .input-texto:focus {
      outline: none;
      border-color: var(--teal);
      box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    }

    .input-texto::placeholder {
      color: var(--texto-muted);
    }

    .btn-continuar {
      width: 100%;
      padding: 16px 24px;
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
    }

    .btn-continuar:hover {
      background: var(--teal-hover);
      transform: translateY(-2px);
    }

    .btn-continuar:disabled {
      background: #cbd5e1;
      cursor: not-allowed;
      box-shadow: none;
      transform: none;
    }

    .btn-voltar {
      width: 100%;
      padding: 16px 24px;
      background: #64748b;
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 12px;
      transition: all 0.2s;
      box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3);
    }

    .btn-voltar:hover {
      background: #475569;
      transform: translateY(-2px);
    }

    /* FORMAS DE PAGAMENTO */
    .formas-pagamento {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 20px;
    }

    .forma-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      background: var(--input-bg);
      border: 2px solid transparent;
      border-radius: 14px;
      cursor: pointer;
      transition: all 0.2s;
      text-align: left;
    }

    .forma-btn:hover {
      background: var(--teal-light);
      border-color: var(--teal);
    }

    .forma-btn .emoji {
      font-size: 22px;
    }

    .forma-btn .info {
      flex: 1;
    }

    .forma-btn .nome {
      font-size: 15px;
      font-weight: 600;
      color: var(--titulo);
    }

    .forma-btn .detalhe {
      font-size: 11px;
      color: var(--texto-light);
      margin-top: 2px;
    }

    .forma-btn .badge {
      font-size: 10px;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 20px;
      background: var(--teal-light);
      color: var(--teal);
    }

    .forma-btn .badge.futuro {
      background: var(--roxo-light);
      color: var(--roxo);
    }

    /* LISTA DE CARTà•ES */
    .secao-titulo {
      font-size: 12px;
      font-weight: 600;
      color: var(--texto-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
      text-align: left;
    }

    .cartoes-lista {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 20px;
    }

    .cartao-btn {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: var(--input-bg);
      border: 2px solid transparent;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      text-align: left;
    }

    .cartao-btn:hover {
      background: var(--teal-light);
      border-color: var(--teal);
    }

    .cartao-icon {
      width: 40px;
      height: 26px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      color: white;
      font-weight: 700;
    }

    .cartao-btn .info {
      flex: 1;
    }

    .cartao-btn .nome {
      font-size: 14px;
      font-weight: 600;
      color: var(--titulo);
    }

    .cartao-btn .datas {
      font-size: 11px;
      color: var(--texto-light);
      margin-top: 1px;
    }

    .cartao-btn .impacto {
      text-align: right;
    }

    .cartao-btn .impacto-label {
      font-size: 9px;
      color: var(--texto-muted);
      text-transform: uppercase;
    }

    .cartao-btn .impacto-mes {
      font-size: 12px;
      font-weight: 700;
      color: var(--titulo);
    }

    /* PARCELAMENTO */
    .parcelas-container {
      margin-bottom: 20px;
    }

    .parcelas-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }

    .parcela-btn {
      padding: 12px 8px;
      background: var(--input-bg);
      border: 2px solid transparent;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
    }

    .parcela-btn:hover {
      background: var(--teal-light);
      border-color: var(--teal);
    }

    .parcela-btn.active {
      background: var(--teal);
      border-color: var(--teal);
    }

    .parcela-btn .num {
      font-size: 16px;
      font-weight: 700;
      color: var(--titulo);
    }

    .parcela-btn.active .num {
      color: white;
    }

    .parcela-btn .label {
      font-size: 10px;
      color: var(--texto-light);
    }

    .parcela-btn.active .label {
      color: rgba(255,255,255,0.8);
    }

    /* TELA RESPOSTA */
    .resposta-icon {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 40px;
    }

    .resposta-icon.pode {
      background: #dcfce7;
    }

    .resposta-icon.apertado {
      background: var(--amarelo-bg);
    }

    .resposta-icon.nao-pode {
      background: transparent;
      font-size: 60px;
    }

    .resposta-icon.nao-pode img {
      width: 50px;
      height: 50px;
    }

    .resposta-titulo {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .resposta-titulo.pode {
      color: var(--verde-escuro);
    }

    .resposta-titulo.apertado {
      color: var(--amarelo-texto);
    }

    .resposta-titulo.nao-pode {
      color: var(--vermelho);
    }

    .badge-alerta {
      display: inline-block;
      padding: 12px 28px;
      background: var(--vermelho);
      color: white;
      font-size: 20px;
      font-weight: 800;
      border-radius: 30px;
      animation: piscar 1s ease-in-out infinite;
    }

    @keyframes piscar {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    .resposta-descricao {
      font-size: 16px;
      color: var(--texto);
      margin-bottom: 12px;
    }

    .resposta-descricao strong {
      color: var(--titulo);
    }

    .resposta-pagamento {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--texto-light);
      padding: 6px 14px;
      background: var(--input-bg);
      border-radius: 20px;
      margin-bottom: 8px;
    }

    .resposta-impacto {
      font-size: 14px;
      font-weight: 700;
      color: var(--titulo);
      margin-bottom: 20px;
    }

    .resposta-detalhe {
      background: var(--input-bg);
      border-radius: 14px;
      padding: 16px 20px;
      margin-bottom: 24px;
      text-align: left;
    }

    .detalhe-header {
      font-size: 11px;
      font-weight: 600;
      color: var(--texto-muted);
      text-transform: uppercase;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid #e2e8f0;
    }

    .detalhe-linha {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
    }

    .detalhe-linha:not(:last-child) {
      border-bottom: 1px solid #e2e8f0;
    }

    .detalhe-label {
      font-size: 13px;
      color: var(--texto-light);
    }

    .detalhe-valor {
      font-size: 15px;
      font-weight: 700;
      color: var(--titulo);
    }

    .detalhe-valor.positivo {
      color: var(--verde-escuro);
    }

    .detalhe-valor.negativo {
      color: var(--vermelho);
    }

    .btn-registrar {
      width: 100%;
      padding: 16px 24px;
      background: var(--verde);
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    }

    .btn-registrar:hover {
      background: var(--verde-escuro);
      transform: translateY(-2px);
    }

    .btn-cancelar {
      width: 100%;
      padding: 16px 24px;
      background: #64748b;
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 12px;
      transition: all 0.2s;
      box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3);
    }

    .btn-cancelar:hover {
      background: #475569;
      transform: translateY(-2px);
    }

    .btn-sugestoes {
      width: 100%;
      padding: 16px 24px;
      background: #3b82f6;
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 12px;
      box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    }

    .btn-sugestoes:hover {
      background: #2563eb;
      transform: translateY(-2px);
    }

    /* MODAL SUGESTà•ES */
    .sugestao-secao {
      margin-bottom: 20px;
      text-align: left;
    }

    .sugestao-secao-titulo {
      font-size: 12px;
      font-weight: 700;
      color: var(--texto-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .sugestao-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: var(--input-bg);
      border: 2px solid transparent;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
      margin-bottom: 8px;
    }

    .sugestao-item:hover {
      background: var(--teal-light);
      border-color: var(--teal);
    }

    .sugestao-item.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .sugestao-item.disabled:hover {
      background: var(--input-bg);
      border-color: transparent;
    }

    .sugestao-item .status {
      font-size: 18px;
    }

    .sugestao-item .info {
      flex: 1;
    }

    .sugestao-item .titulo {
      font-size: 14px;
      font-weight: 600;
      color: var(--titulo);
    }

    .sugestao-item .detalhe {
      font-size: 12px;
      color: var(--texto-light);
      margin-top: 2px;
    }

    .sugestao-item .valor {
      font-size: 14px;
      font-weight: 700;
      color: var(--verde-escuro);
    }

    .sugestao-item.disabled .valor {
      color: var(--vermelho);
    }

    .sugestao-vazia {
      font-size: 13px;
      color: var(--texto-muted);
      padding: 12px;
      text-align: center;
      background: var(--input-bg);
      border-radius: 12px;
    }

    .valor-maximo-box {
      background: var(--teal-light);
      border: 2px solid var(--teal);
      border-radius: 12px;
      padding: 16px;
      text-align: center;
    }

    .valor-maximo-label {
      font-size: 12px;
      color: var(--texto-light);
      margin-bottom: 4px;
    }

    .valor-maximo-valor {
      font-size: 24px;
      font-weight: 800;
      color: var(--teal);
    }

    /* MODAL */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      padding: 20px;
      z-index: 100;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal {
      background: var(--card);
      border-radius: 20px;
      padding: 24px;
      width: 100%;
      max-width: 360px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    .modal-titulo {
      font-size: 18px;
      font-weight: 700;
      color: var(--titulo);
      text-align: center;
      margin-bottom: 8px;
    }

    .modal-subtitulo {
      font-size: 14px;
      color: var(--texto-light);
      text-align: center;
      margin-bottom: 20px;
    }

    .modal-subtitulo strong {
      color: var(--teal);
    }

    .categorias-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }

    .categoria-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 14px 8px;
      background: var(--input-bg);
      border: 2px solid transparent;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .categoria-btn:hover {
      background: var(--teal-light);
      border-color: var(--teal);
    }

    .categoria-btn .emoji {
      font-size: 24px;
    }

    .categoria-btn .nome {
      font-size: 11px;
      font-weight: 600;
      color: var(--texto);
      text-align: center;
    }

    /* TOAST */
    .toast {
      display: none;
      position: fixed;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--titulo);
      color: white;
      padding: 14px 24px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      z-index: 200;
    }

    .toast.active {
      display: block;
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    /* TELA SPLASH - Estilo Portal BPO */
    .splash-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      z-index: 1000;
      background: linear-gradient(135deg, #26A95E 0%, #0F8B4A 100%);
      transition: opacity 0.5s, transform 0.5s;
    }

    .splash-screen.hidden {
      opacity: 0;
      transform: scale(1.1);
      pointer-events: none;
    }

    .splash-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 28px 40px;
      background: rgba(0, 0, 0, 0.35);
    }

    .splash-header-text {
      text-align: left;
    }

    .splash-title {
      font-size: 32px;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 6px;
      text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    }

    .splash-subtitle {
      font-size: 16px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.9);
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    .splash-btn {
      padding: 16px 40px;
      font-size: 16px;
      font-weight: 700;
      font-family: 'Montserrat', sans-serif;
      color: #26A95E;
      background: #ffffff;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .splash-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }

    .splash-main {
      flex: 1;
    }

    .splash-footer {
      text-align: center;
      padding: 28px 20px 32px;
      background: rgba(0, 0, 0, 0.35);
    }

    .splash-slogan {
      font-size: 22px;
      font-weight: 700;
      font-style: italic;
      color: #ffffff;
      margin-bottom: 10px;
      text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    }

    .splash-areas {
      font-size: 15px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.95);
      letter-spacing: 0.5px;
      text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    @media (max-width: 640px) {
      .splash-header {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
      }
      .splash-header-text {
        text-align: center;
      }
      .splash-title {
        font-size: 26px;
      }
      .splash-subtitle {
        font-size: 14px;
      }
      .splash-btn {
        padding: 14px 32px;
        font-size: 15px;
      }
      .splash-slogan {
        font-size: 18px;
      }
      .splash-areas {
        font-size: 13px;
      }
    }

    /* TELA INICIAL */
    .card-logo {
      width: 220px;
      margin: 0 auto 8px;
      display: block;
    }

    .card-divisor {
      height: 1px;
      background: #e2e8f0;
      margin: 20px 0;
    }

    .card-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      margin-top: 8px;
    }

    .card-footer-versao {
      font-size: 11px;
      color: var(--texto-muted);
    }
/* ========================================
   AUTENTICACAO - Netlify Identity
   ======================================== */

/* Botoes de auth na splash */
.splash-auth-buttons {
  display: flex;
  gap: 12px;
}

.splash-btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.splash-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar - Usuario logado */
.sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.user-info {
  padding: 8px 12px;
  margin-bottom: 8px;
}

.user-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
}

.logout-item {
  color: #f87171 !important;
}

.logout-item:hover {
  background: rgba(248, 113, 113, 0.1) !important;
}

/* Esconde elementos quando nao logado */
.sidebar-user {
  display: none;
}

body.logged-in .sidebar-user {
  display: block;
}

/* ========================================
   MODAL DE LOGIN CUSTOMIZADO
   ======================================== */

#modalLogin {
  z-index: 10000;
}

#modalLogin .modal-login {
  max-width: 420px;
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--texto-muted);
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--titulo);
}

/* Abas */
.login-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
}

.login-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--texto-light);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.login-tab.active {
  color: var(--teal);
  border-bottom: 3px solid var(--teal);
  margin-bottom: -2px;
}

.login-tab:hover:not(.active) {
  background: var(--input-bg);
}

/* Formulario */
.login-form {
  padding: 28px 24px;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--titulo);
  margin-bottom: 6px;
}

.login-header p {
  font-size: 14px;
  color: var(--texto-light);
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--titulo);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--titulo);
  transition: all 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(38, 169, 94, 0.1);
}

.input-group input::placeholder {
  color: var(--texto-muted);
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 8px;
}

.btn-login:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
}

.btn-login:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

.btn-cadastro {
  background: var(--verde);
}

.btn-cadastro:hover {
  background: var(--verde-escuro);
}

.login-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.login-link a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

.login-erro {
  margin-top: 16px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  text-align: center;
  display: none;
}

.login-erro.show {
  display: block;
}

.login-sucesso {
  margin-top: 16px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #16a34a;
  font-size: 13px;
  text-align: center;
  display: none;
}

.login-sucesso.show {
  display: block;
}

/* ========================================
   CONTROLE DE VISIBILIDADE SPLASH/CONTAINER
   ======================================== */

/* Container escondido quando splash está visível */
body:not(.logged-in) .container {
  display: none;
}

body:not(.logged-in) .menu-btn {
  display: none;
}

/* Quando logado, container visível */
body.logged-in .container {
  display: block;
}

body.logged-in .menu-btn {
  display: flex;
}

/* Splash escondido quando logado */
body.logged-in .splash-screen {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.1);
}

/* ========================================
   RESPONSIVIDADE MOBILE/DESKTOP
   ======================================== */

/* Mobile styles */
body.is-mobile {
  padding: 10px;
  padding-top: 80px;
}

body.is-mobile .container {
  padding: 0 16px;
}

body.is-mobile .card {
  padding: 24px 16px;
  border-radius: 16px;
}

body.is-mobile .btn-principal {
  width: 150px;
  height: 150px;
}

body.is-mobile .btn-principal .texto {
  font-size: 22px;
}

body.is-mobile .saldo-geral {
  font-size: 24px;
}

/* Tablet styles */
body.is-tablet .container {
  max-width: 700px;
}

/* Desktop styles */
body.is-desktop .container {
  max-width: 900px;
}

body.is-desktop .card {
  padding: 48px 40px;
}
    /* HERO */
    .hero {
      background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-bg) 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 40px 120px;
      position: relative;
      overflow: hidden;
    }
    
    /* PARTÍCULAS FLUTUANTES */
    .particulas {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
      pointer-events: none;
    }
    
    .particula {
      position: absolute;
      opacity: 0.4;
      animation: flutuar 6s infinite ease-in-out;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    }
    
    .particula.grande { font-size: 60px; }
    .particula.medio { font-size: 45px; }
    .particula.pequeno { font-size: 35px; }
    
    .particula:nth-child(1) { left: 3%; top: 15%; animation-delay: 0s; }
    .particula:nth-child(2) { left: 10%; top: 60%; animation-delay: 1s; }
    .particula:nth-child(3) { left: 18%; top: 30%; animation-delay: 2s; }
    .particula:nth-child(4) { left: 25%; top: 75%; animation-delay: 0.5s; }
    .particula:nth-child(5) { left: 75%; top: 20%; animation-delay: 1.5s; }
    .particula:nth-child(6) { left: 82%; top: 55%; animation-delay: 2.5s; }
    .particula:nth-child(7) { left: 88%; top: 35%; animation-delay: 0.8s; }
    .particula:nth-child(8) { left: 92%; top: 70%; animation-delay: 1.8s; }
    .particula:nth-child(9) { left: 5%; top: 85%; animation-delay: 3s; }
    .particula:nth-child(10) { left: 95%; top: 10%; animation-delay: 2.2s; }
    .particula:nth-child(11) { left: 30%; top: 10%; animation-delay: 1.2s; }
    .particula:nth-child(12) { left: 70%; top: 85%; animation-delay: 0.3s; }
    
    @keyframes flutuar {
      0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.4;
      }
      50% { 
        transform: translateY(-25px) rotate(15deg) scale(1.1); 
        opacity: 0.6;
      }
    }
    
    /* MOEDAS CAINDO */
    .moedas {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      overflow: hidden;
    }
    
    .moeda {
      position: absolute;
      top: -80px;
      animation: cair 6s infinite linear;
      opacity: 0.5;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    }
    
    .moeda.grande { font-size: 50px; }
    .moeda.medio { font-size: 38px; }
    .moeda.pequeno { font-size: 28px; }
    
    .moeda:nth-child(1) { left: 2%; animation-delay: 0s; animation-duration: 7s; }
    .moeda:nth-child(2) { left: 8%; animation-delay: 1.5s; animation-duration: 6s; }
    .moeda:nth-child(3) { left: 15%; animation-delay: 0.5s; animation-duration: 8s; }
    .moeda:nth-child(4) { left: 22%; animation-delay: 2s; animation-duration: 5s; }
    .moeda:nth-child(5) { left: 78%; animation-delay: 0.8s; animation-duration: 7s; }
    .moeda:nth-child(6) { left: 85%; animation-delay: 2.5s; animation-duration: 6s; }
    .moeda:nth-child(7) { left: 92%; animation-delay: 1s; animation-duration: 8s; }
    .moeda:nth-child(8) { left: 98%; animation-delay: 3s; animation-duration: 5s; }
    .moeda:nth-child(9) { left: 5%; animation-delay: 4s; animation-duration: 6s; }
    .moeda:nth-child(10) { left: 95%; animation-delay: 3.5s; animation-duration: 7s; }
    
    @keyframes cair {
      0% {
        transform: translateY(-80px) rotate(0deg);
        opacity: 0;
      }
      10% { opacity: 0.6; }
      90% { opacity: 0.6; }
      100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
      }
    }
    
    /* BRILHOS DE FUNDO */
    .brilhos {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
    }
    
    .brilho {
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
      animation: brilhar 4s infinite ease-in-out;
    }
    
    .brilho:nth-child(1) { width: 300px; height: 300px; top: 10%; left: 5%; animation-delay: 0s; }
    .brilho:nth-child(2) { width: 200px; height: 200px; top: 60%; left: 80%; animation-delay: 1s; }
    .brilho:nth-child(3) { width: 250px; height: 250px; top: 70%; left: 10%; animation-delay: 2s; }
    .brilho:nth-child(4) { width: 180px; height: 180px; top: 20%; right: 5%; animation-delay: 1.5s; }
    
    @keyframes brilhar {
      0%, 100% { transform: scale(1); opacity: 0.3; }
      50% { transform: scale(1.2); opacity: 0.5; }
    }
    
    /* ONDA NO RODAPÉ */
    .wave-container {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 150px;
      overflow: hidden;
    }
    
    .wave {
      position: absolute;
      bottom: 0;
      left: -100%;
      width: 300%;
      height: 100%;
      animation: wave-move 8s infinite linear;
    }
    
    .wave svg {
      width: 100%;
      height: 100%;
    }
    
    @keyframes wave-move {
      0% { transform: translateX(0); }
      100% { transform: translateX(33.33%); }
    }
    
    /* CONTEÚDO CENTRAL */
    .hero-content {
      text-align: center;
      color: white;
      position: relative;
      z-index: 10;
      max-width: 800px;
    }
    
    /* LOGO CENTRAL */
    .logo-central {
      height: 120px;
      margin-bottom: 30px;
      animation: logoEntrada 1s ease-out, logoPulse 3s infinite ease-in-out 1s;
      filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    }
    
    @keyframes logoEntrada {
      from {
        opacity: 0;
        transform: scale(0.5) translateY(-30px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }
    
    @keyframes logoPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }
    
    /* TÍTULO */
    .titulo-hero {
      font-size: 52px;
      font-weight: 800;
      margin-bottom: 20px;
      text-shadow: 0 4px 20px rgba(0,0,0,0.2);
      animation: fadeInUp 1s ease-out 0.3s both;
    }
    
    /* SUBTÍTULO */
    .subtitulo-hero {
      font-size: 22px;
      font-weight: 400;
      opacity: 0.95;
      margin-bottom: 40px;
      line-height: 1.6;
      text-shadow: 0 2px 10px rgba(0,0,0,0.1);
      animation: fadeInUp 1s ease-out 0.5s both;
    }
    
    /* BOTÃO CTA */
    .btn-cta {
      display: inline-block;
      padding: 20px 60px;
      background: white;
      color: var(--verde-escuro);
      border: none;
      border-radius: 50px;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      animation: fadeInUp 1s ease-out 0.7s both;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
    
    .btn-cta::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(38, 169, 94, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }
    
    .btn-cta:hover::before {
      width: 400px;
      height: 400px;
    }
    
    .btn-cta:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }
    
    .btn-cta span {
      position: relative;
      z-index: 1;
    }
    
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* FOOTER - FIXO */
    .splash-screen.hero .footer {
      background: #1e3a2f;
      padding: 20px 40px;
      display: flex;
      justify-content: center;
      gap: 40px;
      flex-wrap: wrap;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 100;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    }
    
    .splash-screen.hero .feature {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      color: white;
      max-width: 220px;
    }
    
    .splash-screen.hero .feature-icon {
      width: 44px;
      height: 44px;
      background: rgba(38, 169, 94, 0.3);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      animation: bounce 2s infinite ease-in-out;
      transition: all 0.3s;
      flex-shrink: 0;
    }
    
    .splash-screen.hero .feature:hover .feature-icon {
      background: rgba(38, 169, 94, 0.5);
      transform: scale(1.1);
    }
    
    .splash-screen.hero .feature:nth-child(1) .feature-icon { animation-delay: 0s; }
    .splash-screen.hero .feature:nth-child(2) .feature-icon { animation-delay: 0.2s; }
    .splash-screen.hero .feature:nth-child(3) .feature-icon { animation-delay: 0.4s; }
    .splash-screen.hero .feature:nth-child(4) .feature-icon { animation-delay: 0.6s; }
    
    .splash-screen.hero .feature-texto {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    
    .splash-screen.hero .feature-texto strong {
      font-size: 14px;
      font-weight: 700;
    }
    
    .splash-screen.hero .feature-texto span {
      font-size: 11px;
      opacity: 0.75;
      line-height: 1.3;
    }
    
    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    
    /* RESPONSIVO */
    @media (max-width: 900px) {
      .splash-screen.hero .footer {
        gap: 20px;
        padding: 15px 20px;
      }
      .splash-screen.hero .feature {
        max-width: 160px;
      }
      .splash-screen.hero .feature-texto span {
        display: none;
      }
    }
    
    @media (max-width: 768px) {
      .titulo-hero { font-size: 36px; }
      .subtitulo-hero { font-size: 18px; }
      .hero { padding: 40px 20px 140px; }
      .logo-central { height: 80px; }
      .particula.grande { font-size: 40px; }
      .particula.medio { font-size: 32px; }
      .particula.pequeno { font-size: 24px; }
      .splash-screen.hero .footer {
        gap: 10px;
        padding: 12px 10px;
      }
      .splash-screen.hero .feature {
        flex-direction: column;
        align-items: center;
        max-width: 70px;
        gap: 4px;
      }
      .splash-screen.hero .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
      .splash-screen.hero .feature-texto strong {
        font-size: 10px;
        text-align: center;
      }
    }

/* OVERRIDE: Splash Screen com Hero Design */
.splash-screen.hero {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 120px;
  position: fixed;
  overflow: hidden;
}

.splash-screen.hero .hero-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ========================================
   TELA DE CATEGORIAS
   ======================================== */

.categorias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.categorias-header .passo-titulo {
  margin-bottom: 0;
}

.btn-add-categoria {
  padding: 10px 20px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-add-categoria:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
}

/* Lista de categorias */
.categorias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.categoria-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--input-bg);
  border-radius: 14px;
  border-left: 4px solid var(--teal);
  cursor: pointer;
  transition: all 0.2s;
}

.categoria-card:hover {
  background: var(--teal-light);
  transform: translateX(4px);
}

.categoria-card.receita {
  border-left-color: var(--verde);
}

.categoria-card .emoji {
  font-size: 28px;
  width: 40px;
  text-align: center;
}

.categoria-card .info {
  flex: 1;
}

.categoria-card .nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--titulo);
  margin-bottom: 4px;
}

.categoria-card .palavras {
  font-size: 12px;
  color: var(--texto-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.categoria-card .tipo-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.categoria-card .tipo-badge.despesa {
  background: #fef2f2;
  color: #dc2626;
}

.categoria-card .tipo-badge.receita {
  background: #f0fdf4;
  color: #16a34a;
}

.categoria-card .orcamento {
  font-size: 14px;
  font-weight: 700;
  color: var(--titulo);
  text-align: right;
}

.categoria-card .btn-editar {
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.categoria-card .btn-editar:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* Modal categoria */
.modal-categoria {
  max-width: 480px;
  position: relative;
  overflow: visible;
}

.modal-categoria > .modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: white;
  border: 2px solid #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-categoria > .modal-close:hover {
  background: var(--vermelho);
  border-color: var(--vermelho);
  color: white;
  transform: scale(1.1);
}

.categoria-form {
  padding: 24px;
}

/* Botões do modal */
.modal-botoes {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancelar {
  flex: 1;
  padding: 14px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-cancelar:hover {
  background: #e2e8f0;
  color: #1f2937;
}

.btn-salvar {
  flex: 2;
  margin-top: 0;
}

/* Emoji picker */
.emoji-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emoji-input {
  width: 70px;
  height: 50px;
  font-size: 28px;
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
}

.emoji-input:focus {
  outline: none;
  border-color: var(--teal);
}

.emoji-sugestoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-sugestoes span {
  font-size: 24px;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.emoji-sugestoes span:hover {
  background: var(--teal-light);
  transform: scale(1.2);
}

/* Tipo toggle */
.tipo-toggle {
  display: flex;
  gap: 10px;
}

.tipo-btn {
  flex: 1;
  padding: 12px;
  background: var(--input-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--texto);
}

.tipo-btn:hover {
  background: var(--teal-light);
}

.tipo-btn.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}

.tipo-btn.active[data-tipo="receita"] {
  background: #f0fdf4;
  border-color: var(--verde);
  color: var(--verde);
}

/* Cor picker */
.cor-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cor-picker input[type="color"] {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.cor-preview {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-light);
  font-family: monospace;
}

/* Input orçamento */
.input-orcamento {
  width: 120px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  color: var(--titulo);
}

.input-orcamento:focus {
  outline: none;
  border-color: var(--teal);
}

/* Input hint */
.input-hint {
  font-size: 12px;
  color: var(--texto-muted);
  margin-bottom: 10px;
  margin-top: -4px;
}

/* Palavras-chave */
.palavras-chave-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 10px;
  background: var(--input-bg);
  border-radius: 10px;
  margin-bottom: 10px;
}

.palavra-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--titulo);
}

.palavra-tag .remover {
  font-size: 14px;
  cursor: pointer;
  color: var(--texto-muted);
  transition: color 0.2s;
}

.palavra-tag .remover:hover {
  color: var(--vermelho);
}

.add-palavra-container {
  display: flex;
  gap: 8px;
}

.add-palavra-container input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.add-palavra-container input:focus {
  outline: none;
  border-color: var(--teal);
}

.add-palavra-container button {
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-palavra-container button:hover {
  background: var(--teal-hover);
}

/* Botão excluir */
.btn-excluir-categoria {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--vermelho);
  border: 2px solid var(--vermelho);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-excluir-categoria:hover {
  background: var(--vermelho);
  color: white;
}

/* Categoria vazia */
.categorias-vazia {
  text-align: center;
  padding: 40px 20px;
  color: var(--texto-muted);
}

.categorias-vazia .emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.categorias-vazia p {
  font-size: 14px;
}

/* Seção título */
.secao-titulo {
  font-size: 13px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Modal título */
.modal-titulo {
  font-size: 20px;
  font-weight: 700;
  color: var(--titulo);
  text-align: center;
  padding: 20px 24px 0;
}

/* Categoria anônima */
.categoria-card.anonima {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left-color: #374151 !important;
}

.categoria-card .anonima-desc {
  color: #6b7280;
  font-style: italic;
  font-size: 12px;
}

.categoria-card .info-tooltip {
  font-size: 14px;
  cursor: help;
  margin-left: 4px;
}

/* Tooltip customizado */
.info-tooltip {
  position: relative;
}

.info-tooltip:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

/* ========================================
   CAMPO DE BUSCA - TELA INICIAL
   ======================================== */

.busca-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s;
}

.busca-container:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(38, 169, 94, 0.1);
}

.busca-icon {
  font-size: 18px;
  opacity: 0.7;
}

.busca-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--titulo);
  outline: none;
}

.busca-input::placeholder {
  color: var(--texto-muted);
}

.busca-limpar {
  background: #e2e8f0;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--texto-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.busca-limpar:hover {
  background: var(--vermelho);
  color: white;
}

/* Resultados da busca */
.busca-resultados {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--input-bg);
}

.busca-resultado-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.busca-resultado-item:last-child {
  border-bottom: none;
}

.busca-resultado-item:hover {
  background: var(--teal-light);
}

.busca-resultado-item .emoji {
  font-size: 20px;
}

.busca-resultado-item .info {
  flex: 1;
}

.busca-resultado-item .descricao {
  font-size: 14px;
  font-weight: 600;
  color: var(--titulo);
}

.busca-resultado-item .detalhes {
  font-size: 12px;
  color: var(--texto-light);
}

.busca-resultado-item .valor {
  font-size: 15px;
  font-weight: 700;
  color: var(--vermelho);
}

.busca-resultado-item .valor.receita {
  color: var(--verde);
}

.busca-vazio {
  padding: 20px;
  text-align: center;
  color: var(--texto-muted);
  font-size: 14px;
}

/* ========================================
   CORRECAO ICONE RESPOSTA
   ======================================== */

.resposta-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 40px;
}

.resposta-icon.pode {
  background: #dcfce7;
  color: #16a34a;
}

.resposta-icon.pode::before {
  content: '✓';
}

.resposta-icon.nao-pode {
  background: #fee2e2;
  color: #dc2626;
}

.resposta-icon.nao-pode::before {
  content: '✕';
}

.resposta-icon.alerta {
  background: #fef9c3;
  color: #ca8a04;
}

.resposta-icon.alerta::before {
  content: '⚠';
}

/* ========================================
   BOTAO SAIR - MENU LATERAL
   ======================================== */

.sidebar-item.logout-item {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  margin-top: 10px;
}

.sidebar-item.logout-item .icon {
  font-size: 20px;
}

.sidebar-item.logout-item .icon::before {
  content: '🚪';
}

.sidebar-item.logout-item:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.sidebar-item.logout-item:hover .texto {
  color: white;
}

/* ========================================
   SELETOR DE MES - DESTAQUE
   ======================================== */

.mes-seletor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--teal-light) 0%, #d1fae5 100%);
  border-radius: 14px;
  border: 2px solid var(--teal);
}

.mes-seletor button {
  width: 36px;
  height: 36px;
  background: white;
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mes-seletor button:hover {
  background: var(--teal);
  color: white;
  transform: scale(1.1);
}

.mes-seletor .mes {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-hover);
  min-width: 120px;
  text-align: center;
}

/* ========================================
   LOGO NO SIDEBAR
   ======================================== */

.sidebar-logo img {
  max-width: 150px;
  height: auto;
}

/* ========================================
   TELA DE CARTOES - CARD MENOR
   ======================================== */

#tela-cartoes .card {
  padding: 24px 20px;
}

#tela-cartoes .passo-titulo {
  font-size: 22px;
  margin-bottom: 16px;
}

#tela-cartoes .cartoes-lista {
  gap: 10px;
}

#tela-cartoes .cartao-btn {
  padding: 12px 14px;
}

#tela-cartoes .cartao-icon {
  width: 40px;
  height: 28px;
  font-size: 12px;
}

#tela-cartoes .cartao-btn .nome {
  font-size: 14px;
}

#tela-cartoes .cartao-btn .datas {
  font-size: 11px;
}

#tela-cartoes .impacto-mes {
  font-size: 12px;
}

/* ========================================
   TELA CONTAS E CARTÕES
   ======================================== */

/* Abas */
.tabs-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--input-bg);
  border-radius: 14px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-light);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--titulo);
}

.tab-btn.active {
  background: var(--teal);
  color: white;
  box-shadow: 0 2px 8px rgba(38, 169, 94, 0.3);
}

/* Conteúdo das abas */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Lista vazia */
.lista-vazia {
  text-align: center;
  padding: 30px 20px;
  color: var(--texto-muted);
  font-size: 14px;
  display: none;
}

.lista-vazia.show {
  display: block;
}

/* Botão adicionar item */
.btn-add-item {
  width: 100%;
  padding: 14px;
  background: var(--teal-light);
  color: var(--teal);
  border: 2px dashed var(--teal);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 16px;
}

.btn-add-item:hover {
  background: var(--teal);
  color: white;
  border-style: solid;
}

/* Lista de contas */
.contas-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card de conta */
.conta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--input-bg);
  border-radius: 14px;
  border-left: 4px solid var(--teal);
  cursor: pointer;
  transition: all 0.2s;
}

.conta-card:hover {
  background: var(--teal-light);
  transform: translateX(4px);
}

.conta-card .banco-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 700;
}

.conta-card .info {
  flex: 1;
}

.conta-card .nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--titulo);
  margin-bottom: 2px;
}

.conta-card .banco-nome {
  font-size: 12px;
  color: var(--texto-light);
}

.conta-card .tipo-conta {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--texto-light);
}

.conta-card .saldo {
  text-align: right;
}

.conta-card .saldo-label {
  font-size: 10px;
  color: var(--texto-muted);
  text-transform: uppercase;
}

.conta-card .saldo-valor {
  font-size: 16px;
  font-weight: 700;
  color: var(--verde);
}

.conta-card .saldo-valor.negativo {
  color: var(--vermelho);
}

/* Lista de cartões para gerenciamento */
.cartoes-lista-gerenciar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card de cartão */
.cartao-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--input-bg);
  border-radius: 14px;
  border-left: 4px solid #820AD1;
  cursor: pointer;
  transition: all 0.2s;
}

.cartao-card:hover {
  background: var(--teal-light);
  transform: translateX(4px);
}

.cartao-card .cartao-visual {
  width: 50px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: 700;
  position: relative;
}

.cartao-card .cartao-visual .digitos {
  font-size: 9px;
  opacity: 0.9;
}

.cartao-card .info {
  flex: 1;
}

.cartao-card .nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--titulo);
  margin-bottom: 2px;
}

.cartao-card .bandeira-banco {
  font-size: 12px;
  color: var(--texto-light);
}

.cartao-card .datas-cartao {
  font-size: 11px;
  color: var(--texto-muted);
  margin-top: 2px;
}

.cartao-card .limite {
  text-align: right;
}

.cartao-card .limite-label {
  font-size: 10px;
  color: var(--texto-muted);
  text-transform: uppercase;
}

.cartao-card .limite-valor {
  font-size: 16px;
  font-weight: 700;
  color: var(--titulo);
}

/* ========================================
   MODAIS CONTA E CARTÃO
   ======================================== */

.modal-conta,
.modal-cartao {
  max-width: 480px;
  position: relative;
  overflow: visible;
}

.modal-conta > .modal-close,
.modal-cartao > .modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: white;
  border: 2px solid #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-conta > .modal-close:hover,
.modal-cartao > .modal-close:hover {
  background: var(--vermelho);
  border-color: var(--vermelho);
  color: white;
  transform: scale(1.1);
}

.conta-form,
.cartao-form {
  padding: 24px;
}

/* Input select */
.input-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--titulo);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.input-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(38, 169, 94, 0.1);
}

/* Input row - dois campos lado a lado */
.input-row {
  display: flex;
  gap: 12px;
}

.input-row .input-group {
  flex: 1;
}

.input-row .input-group.half {
  flex: 1;
}

/* Cores dos bancos */
.banco-bb { background: #FFCC00; color: #003366; }
.banco-bradesco { background: #CC092F; }
.banco-caixa { background: #005CA9; }
.banco-itau { background: #003399; }
.banco-nubank { background: #820AD1; }
.banco-santander { background: #EC0000; }
.banco-sicoob { background: #003641; }
.banco-sicredi { background: #33A02C; }
.banco-btg { background: #001F3F; }
.banco-c6 { background: #242424; }
.banco-outro { background: #64748b; }

/* Bandeiras */
.bandeira-visa { background: linear-gradient(135deg, #1A1F71 0%, #0066A1 100%); }
.bandeira-mastercard { background: linear-gradient(135deg, #EB001B 0%, #F79E1B 100%); }
.bandeira-elo { background: linear-gradient(135deg, #FFCB05 0%, #00A4E0 100%); }
.bandeira-amex { background: linear-gradient(135deg, #006FCF 0%, #0097D6 100%); }
.bandeira-hipercard { background: linear-gradient(135deg, #B3131B 0%, #E31937 100%); }
.bandeira-outra { background: #64748b; }
