﻿@font-face {
  font-family: "Permanent Marker";
  src: url("../fontes/PermanentMarker-Regular.ttf") format("truetype");
  font-display: swap;
}

/* === Variaveis e base === */
:root {
  --bg: #0b1320;
  --bg-soft: #142033;
  --panel: #1f2f45;
  --panel-2: #274261;
  --accent: #ffbf3c;
  --accent-2: #ff5d73;
  --mint: #21d4b4;
  --ink: #f7fbff;
  --muted: #c5cedd;
  --warn: #ff7b7b;
  --good: #52d19d;
  --shadow: rgba(2, 8, 20, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --space: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Tahoma", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}


h1, h2, h3, h4 {
  font-family: "Garamond", "Georgia", serif;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 12px 0;
}

/* === Fundo e camadas === */
.FUNDO_CAMADA {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.FUNDO_CAMADA_A {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 183, 3, 0.25), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(7, 195, 167, 0.2), transparent 40%);
}

.FUNDO_CAMADA_B {
  background:
    linear-gradient(120deg, rgba(35, 38, 66, 0.95), rgba(15, 16, 32, 0.98));
}

.FUNDO_CAMADA_C {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
}

/* === Barra superior e marca === */
.TOPO_BARRA {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(8, 14, 24, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 191, 60, 0.42);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.MARCA {
  display: flex;
  align-items: center;
  gap: 12px;
}

.MARCA_LINK {
  text-decoration: none;
  color: inherit;
}

.MARCA_LOGO {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.MARCA_TEXTO {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.MARCA_NOME {
  font-family: "Permanent Marker", "Trebuchet MS", "Tahoma", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.MARCA_SUB {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Permanent Marker", "Trebuchet MS", "Tahoma", sans-serif;
}

.MENU_TOPO {
  display: none !important;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.MENU_TOPO_BOTAO,
.MENU_TOPO_LINK {
  display: none !important;
}

.MENU_TOPO_BOTAO,
.MENU_TOPO_LINK {
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.MENU_TOPO_BOTAO:hover,
.MENU_TOPO_LINK:hover {
  transform: translateY(-2px);
  background: rgba(255, 183, 3, 0.15);
}

.MENU_TOPO_BOTAO_GHOST {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

/* === Layout principal === */
.APP_TELA {
  padding: 112px 32px 32px;
}

.BOTAO_VOLTAR_MENU {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin-bottom: 16px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.BOTAO_VOLTAR_MENU:hover {
  transform: translateY(-2px);
  background: rgba(255, 183, 3, 0.22) !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.TELA {
  display: none;
  animation: fadeUp 0.6s ease;
}

.TELA_ATIVA {
  display: block;
}

.CALCULO_LAYOUT {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.CALCULO_RESUMO {
  position: sticky;
  top: 96px;
}

.CALCULO_RESUMO .ESTAT_VALOR {
  font-size: 20px;
  line-height: 1.1;
}

.CALCULO_RESUMO .ESTATISTICAS > div > .ESTAT_LABEL {
  display: block;
  margin-bottom: 6px;
}

.RAPIDA_DESTAQUE {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}


.RAPIDA_LAYOUT {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.RAPIDA_CARTAO {
  background: linear-gradient(160deg, rgba(46, 51, 87, 0.9), rgba(21, 23, 44, 0.95));
}

.RAPIDA_RESUMO {
  position: sticky;
  top: 96px;
}

.RAPIDA_RESUMO .ESTAT_VALOR {
  font-size: 20px;
  line-height: 1.1;
}

.RAPIDA_RESUMO .ESTATISTICAS > div > .ESTAT_LABEL {
  display: block;
  margin-bottom: 6px;
}

.RAPIDA_ACOES {
  margin-top: 10px;
}

/* === Paineis e cartoes === */
.PAINEL {
  background: rgba(35, 38, 66, 0.9);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 40px var(--shadow);
  border: 1px solid rgba(255, 191, 60, 0.2);
}

.AUTH_PAINEL {
  max-width: 760px;
  margin: 0 auto;
}

.AUTH_CARTAO {
  max-width: 560px;
  margin: 0 auto;
}

.AUTH_TABS {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.AUTH_TAB {
  width: 100%;
}

.AUTH_PANE {
  display: none;
}

.AUTH_PANE_ATIVO {
  display: block;
}

.AUTH_FORM {
  margin-top: 12px;
}

.PAINEL_CENTRO {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.PAINEL_CABECALHO {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.PAINEL_ACOES {
  display: flex;
  gap: 10px;
}

.TEXTO_SUAVE {
  color: var(--muted);
}

/* === Botoes e acoes === */
.BOTAO {
  background: linear-gradient(120deg, rgba(255, 191, 60, 0.26), rgba(39, 66, 97, 0.9));
  color: var(--ink);
  border: 1px solid rgba(255, 191, 60, 0.5);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.BOTAO:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(255, 191, 60, 0.38), rgba(39, 66, 97, 0.95));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.BOTAO_DESTAQUE {
  background: linear-gradient(120deg, var(--accent), #ffd166);
  color: #1b1c33;
  font-weight: 700;
}

.BOTAO_TRANSPARENTE {
  background: transparent;
  border: 1px solid rgba(255, 191, 60, 0.45);
}

.SUPORTE {
  margin-top: 20px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
}

.SUPORTE_PONTO {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.SPLASH {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 60vh;
}

.SPLASH_IMAGEM {
  width: min(400px, 80%);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
}

.SPLASH_BARRA {
  width: min(360px, 80%);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.SPLASH_BARRA span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: progress 1.6s ease-in-out infinite;
}

.SPLASH_META {
  display: flex;
  gap: 16px;
  color: var(--accent);
  font-size: 14px;
}

.MENU_GRADE {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.MENU_DESTAQUE {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.MENU_DESTAQUE_TITULO {
  font-family: "Permanent Marker", "Trebuchet MS", "Tahoma", sans-serif;
  font-size: 26px;
  letter-spacing: 0.8px;
  color: var(--accent);
}

.MENU_DESTAQUE_SUB {
  max-width: 520px;
}

.MENU_CARTAO {
  position: relative;
  background: linear-gradient(160deg, rgba(46, 51, 87, 0.9), rgba(21, 23, 44, 0.95));
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: center;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  min-height: 150px;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  overflow: hidden;
}

.MENU_CARTAO::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 183, 3, 0.8), rgba(7, 195, 167, 0.6));
  opacity: 0.7;
}

.MENU_CARTAO::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.MENU_CARTAO_ICONE {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), #ffd166);
  color: #1b1c33;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.MENU_CARTAO_TITULO {
  font-size: 16px;
  font-weight: 600;
}

.MENU_CARTAO_META {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.MENU_CARTAO_SETA {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

.MENU_CARTAO_PRIMARIO {
  background: linear-gradient(150deg, rgba(255, 183, 3, 0.16), rgba(46, 51, 87, 0.9));
}

.MENU_CARTAO_MENTA {
  background: linear-gradient(150deg, rgba(7, 195, 167, 0.18), rgba(21, 23, 44, 0.95));
}

.MENU_CARTAO_ROSA {
  background: linear-gradient(150deg, rgba(239, 71, 111, 0.2), rgba(21, 23, 44, 0.95));
}

.MENU_CARTAO_SOL {
  background: linear-gradient(150deg, rgba(255, 209, 102, 0.18), rgba(21, 23, 44, 0.95));
}

.MENU_CARTAO:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 183, 3, 0.5);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.MENU_CARTAO:hover .MENU_CARTAO_SETA {
  transform: translateX(4px);
}

.GRADE {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  min-width: 0;
}

input, select, textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 191, 60, 0.35);
  background: rgba(15, 16, 32, 0.6);
  color: var(--ink);
  font-size: 14px;
  min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 191, 60, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 191, 60, 0.18);
}

.CAMPO_SUFFIX {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.CAMPO_SUFFIX input {
  width: 100%;
}

.CAMPO_SUFFIX span {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.CARTAO {
  background: rgba(27, 28, 51, 0.75);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 191, 60, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.CARTAO_LINHA {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.DIVISAO {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.TOGGLE_LINHA {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.TOGGLE {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.TOGGLE input {
  width: 18px;
  height: 18px;
}

.ESTATISTICAS {
  display: grid;
  gap: 14px;
}

.ESTAT_LINHA {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ESTAT_PERC {
  font-size: 12px;
  color: var(--muted);
}

.ESTAT_LABEL {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.ESTAT_VALOR {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ESTAT_AVISO {
  color: var(--warn);
}

.ESTAT_BOM {
  color: var(--good);
}

.ESTAT_META {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

/* === Perfil e upload de foto === */
.PERFIL {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.PERFIL_FOTO {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.PERFIL_FOTO .GRADE {
  grid-template-columns: 1fr;
}

.PERFIL_FOTO img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.PERFIL_FOTO_MOLDURA {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 120deg, rgba(255, 183, 3, 0.9), rgba(7, 195, 167, 0.7), rgba(255, 183, 3, 0.9));
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.PERFIL_FOTO_MOLDURA_VAZIA {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(140deg, rgba(46, 51, 87, 0.8), rgba(15, 16, 32, 0.95));
  border: 1px dashed rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.PERFIL_FOTO_MOLDURA_VAZIA::after {
  content: "Sem foto";
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.PERFIL_FOTO_MOLDURA_VAZIA img {
  opacity: 0;
}

.PERFIL_FOTO_BOTAO {
  width: 100%;
  justify-content: center;
}

.PERFIL_INFO {
  display: grid;
  gap: 8px;
}

.PERFIL_INFO_TOPO {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.PERFIL_IDENTIDADE {
  min-width: 0;
}

.PERFIL_ACOES {
  margin-top: 8px;
}

.PERFIL_ACOES_TOPO {
  margin-top: 0;
  flex-shrink: 0;
}

.UPLOAD_INFO {
  width: 100%;
  display: none;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.UPLOAD_MOSTRAR {
  display: grid;
}

.UPLOAD_BARRA {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.UPLOAD_BARRA span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.UPLOAD_TEXTO {
  text-align: center;
}

.BADGE_LINHA {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.BADGE_ITEM {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  min-height: 26px;
}

.BADGE_ITEM_ACAO {
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* === Modal === */
.MODAL {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 20, 0.7);
  z-index: 20;
}

.MODAL_ABERTO {
  display: flex;
}

.MODAL_CARTAO {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  width: min(360px, 92%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px var(--shadow);
  display: grid;
  gap: 12px;
}

.MODAL_ACOES {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.CAMPO_SUGESTAO {
  position: relative;
}

.SUGESTOES {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 30px var(--shadow);
  display: none;
  z-index: 12;
  max-height: 200px;
  overflow: auto;
}

.SUGESTOES_ABERTO {
  display: grid;
}

.SUGESTOES button {
  background: transparent;
  border: none;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
}

.SUGESTOES button:hover {
  background: rgba(255, 183, 3, 0.12);
}

.MIDIA_INLINE {
  display: flex;
  gap: 20px;
  align-items: center;
}

.MIDIA_INLINE img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.TABELA {
  display: grid;
  gap: 8px;
}

.TABELA_LINHA {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr 0.6fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 16, 32, 0.5);
  font-size: 12px;
}

.TABELA_CABECALHO {
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
}

.DESPESAS_LISTA {
  display: grid;
  gap: 18px;
}

.DESPESA_CARTAO {
  background: rgba(27, 28, 51, 0.75);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.DESPESA_CARTAO h4 {
  margin-bottom: 12px;
}

.LISTA {
  display: grid;
  gap: 12px;
}

.LISTA_ITEM {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(27, 28, 51, 0.8);
  border: 1px solid rgba(255, 191, 60, 0.16);
  display: grid;
  gap: 10px;
}

.LISTA_ITEM_CABECALHO {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.LISTA_ITEM_CABECALHO strong {
  flex: 1 1 180px;
  min-width: 0;
}

.LISTA_ITEM_ACOES {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.LISTA_ITEM_ACOES .BOTAO {
  white-space: nowrap;
}

.LISTA_ITEM_META {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.DETALHE_LAYOUT {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.DETALHE_CARTAO {
  background: rgba(15, 16, 32, 0.45);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}

.DETALHE_CARTAO_COLETA {
  box-shadow: inset 0 0 0 1px rgba(255, 183, 3, 0.12);
}

.DETALHE_CARTAO_DESTINO {
  box-shadow: inset 0 0 0 1px rgba(7, 195, 167, 0.16);
}

.DETALHE_CARTAO_RESUMO {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.DETALHE_CARTAO h3 {
  margin-bottom: 8px;
}

.DETALHE_ITEM {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  align-items: flex-start;
}

.DETALHE_ITEM strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* === Toast === */
.TOAST {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(35, 38, 66, 0.95);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.TOAST_ABERTO {
  opacity: 1;
  transform: translateY(0);
}

/* === Animacoes === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progress {
  0% { transform: translateX(-40%); }
  50% { transform: translateX(20%); }
  100% { transform: translateX(120%); }
}

/* === Responsivo === */
@media (max-width: 900px) {
  .TOPO_BARRA {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .APP_TELA {
    padding: 96px 20px 20px;
  }

  .PERFIL {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .CARTAO_LINHA {
    grid-template-columns: 1fr;
  }

  .CALCULO_LAYOUT {
    grid-template-columns: 1fr;
  }

  .CALCULO_RESUMO {
    position: static;
  }

  .RAPIDA_RESUMO {
    position: static;
  }
}

@media (max-width: 900px) {
  .PAINEL {
    padding: 16px;
  }

  .TOPO_BARRA {
    padding: 12px 16px;
  }

  .APP_TELA {
    padding: 88px 16px 16px;
  }

  .GRADE {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .MENU_TOPO_BOTAO,
  .MENU_TOPO_LINK {
    width: auto;
    justify-content: center;
    padding: 10px 12px;
    font-size: 11px;
    border-radius: 14px;
    text-transform: none;
    letter-spacing: 0.4px;
  }

  .MENU_GRADE {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .MENU_CARTAO {
    min-height: 170px;
    padding: 20px;
    align-content: start;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(46, 51, 87, 0.95), rgba(15, 16, 32, 0.95));
  }

  .MENU_CARTAO_ICONE {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .MENU_CARTAO_TITULO {
    font-size: 18px;
  }

  .MENU_CARTAO_META {
    font-size: 13px;
  }

  .PERFIL {
    gap: 16px;
  }

  .PERFIL_FOTO {
    justify-items: flex-start;
  }

  .PERFIL_INFO_TOPO {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .PERFIL_ACOES_TOPO .BOTAO {
    width: auto;
    min-width: 96px;
    justify-content: center;
  }

  .CARTAO {
    padding: 16px;
  }

  .CARTAO_LINHA {
    gap: 16px;
  }

  .TOPO_BARRA {
    border-bottom: none;
    background: rgba(8, 14, 24, 0.9);
  }

  .MARCA {
    width: 100%;
    justify-content: space-between;
  }

  .MARCA_TEXTO {
    align-items: flex-end;
  }

  .PAINEL_ACOES {
    flex-wrap: wrap;
    width: 100%;
  }

  .PAINEL_ACOES .BOTAO {
    flex: 1 1 auto;
  }

  .LISTA_ITEM_ACOES {
    width: 100%;
    justify-content: stretch;
  }

  .LISTA_ITEM_ACOES .BOTAO {
    flex: 1 1 140px;
    text-align: center;
    justify-content: center;
  }

  .TABELA_LINHA {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .TOGGLE_LINHA .BOTAO {
    width: 100%;
    justify-content: center;
  }

  .ESTAT_VALOR {
    font-size: 21px;
  }

  .DETALHE_ITEM strong {
    text-align: left;
  }

  .AUTH_TABS {
    grid-template-columns: 1fr;
  }

  .PAGINA_MENU .MENU_DESTAQUE {
    margin-bottom: 16px;
  }

  .PAGINA_MENU .MENU_DESTAQUE_TITULO {
    font-size: 22px;
  }

  .BOTAO_VOLTAR_MENU {
    width: 100%;
    justify-content: center;
  }

  .RAPIDA_DESTAQUE {
    flex-direction: column;
    align-items: flex-start;
  }


  .RAPIDA_LAYOUT {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .APP_TELA {
    padding: 84px 12px 12px;
  }

  .PAINEL {
    padding: 12px;
    border-radius: 14px;
  }

  .CARTAO {
    padding: 12px;
    border-radius: 14px;
  }

  .PAINEL_CABECALHO {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .PAINEL_CABECALHO h2 {
    font-size: 24px;
  }

  .PAINEL_ACOES {
    width: 100%;
  }

  .PAINEL_ACOES .BOTAO {
    width: 100%;
    justify-content: center;
  }

  .BOTAO {
    padding: 11px 14px;
    font-size: 12px;
    line-height: 1.2;
    min-height: 42px;
  }

  input, select, textarea {
    font-size: 16px;
    min-height: 44px;
  }

  textarea {
    min-height: 96px;
  }

  .BADGE_LINHA {
    gap: 8px;
  }

  .BADGE_ITEM {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  .DETALHE_ITEM {
    flex-direction: column;
    gap: 4px;
  }

  .ESTAT_VALOR {
    font-size: 19px;
  }

  .CALCULO_RESUMO .ESTAT_VALOR {
    font-size: 18px;
  }

  .RAPIDA_RESUMO .ESTAT_VALOR {
    font-size: 18px;
  }

  #signature-pad {
    height: 180px;
  }
}





button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 191, 60, 0.92);
  outline-offset: 2px;
}

.PAGINA_MENU .MENU_DESTAQUE {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(20, 32, 51, 0.9), rgba(13, 21, 36, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.MENU_ORIENTACAO {
  min-width: 260px;
  max-width: 320px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

.MENU_ORIENTACAO strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
}

.MENU_ORIENTACAO p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.MENU_ORIENTACAO ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.MENU_CARTAO {
  min-height: 190px;
  gap: 10px;
}

.MENU_CARTAO_ORDEM {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b1320;
  background: linear-gradient(140deg, var(--accent), #ffd166);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.MENU_CARTAO_TITULO {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.MENU_CARTAO_META {
  color: #d7deea;
  font-size: 13px;
}

.MENU_CARTAO_ACAO {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 700;
}

.MENU_CARTAO:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(255, 191, 60, 0.72);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.38);
}

@media (max-width: 900px) {
  .PAGINA_MENU .MENU_DESTAQUE {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .MENU_ORIENTACAO {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

