/* ============ RamosCapital · identidade (todos os temas): fontes, selo, casca com Menu A, entrada, cofre ============ */
/* Números sempre alinhados (15/11/2026): a Cormorant usa algarismos antigos por padrão (3, 4, 5, 7, 9 descem da linha) e o Paulo viu como "deformação". */
:root { font-variant-numeric: lining-nums; }
/* Cormorant Garamond (SIL Open Font License 1.1), servida daqui mesmo: nada sai para a rede. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/cormorant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/cormorant-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --marca-ouro: var(--ouro);
  --marca-tx: var(--tx);
  --guilhoche: url('../img/marca/onda.svg');
  --guilhoche-op: 0.7;
  /* Foto da tela de senha: troque o arquivo img/entrada/fundo.jpg (ou só este caminho) por uma foto real. */
  --entrada-foto: url('../img/entrada/fundo.jpg');
  /* Área livre à direita do topo: os botões da janela (Windows) ficam ali; na web/Android a variável não existe e sobra só a margem. */
  --controles-janela: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw));
}
:root[data-tema='claro'] { --guilhoche: url('../img/marca/onda-claro.svg'); --guilhoche-op: 0.9; }

/* ---------- selo (logo A) ---------- */
.rc-selo { display: block; flex: none; color: var(--marca-ouro); }
.marca-nome { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.marca-nome strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.06rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--marca-tx); white-space: nowrap;
}
.marca-nome span { margin-top: 0.4rem; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--tx3); white-space: nowrap; }

/* ---------- casca: lateral (áreas + sub-menus) · topo · barra inferior no celular ---------- */
.casca { grid-template-columns: 15.5rem minmax(0, 1fr); }
.area { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.area .principal { flex: 1; min-height: 0; padding-top: 0; }
.lateral { overflow-y: auto; scrollbar-width: none; }
.lateral::-webkit-scrollbar { display: none; }
/* marca empilhada e centrada: selo, RAMOS CAPITAL e a linha de apoio cabem inteiros mesmo na lateral estreita */
.lateral-marca { flex-direction: column; gap: 0.7rem; padding: 0.15rem 0 1.15rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--borda); text-align: center; }
.lateral-marca .marca-nome { align-items: center; }
.lateral-marca .marca-nome strong { font-size: 1rem; letter-spacing: 0.18em; padding-left: 0.18em; }
.lateral-marca .marca-nome span { font-size: 0.54rem; letter-spacing: 0.3em; padding-left: 0.3em; margin-top: 0.35rem; }
.rc-selo-marca { width: 2.9rem; height: 2.9rem; }
.lateral-menu { gap: 1px; }
.menu-subs { display: flex; flex-direction: column; gap: 1px; margin: 0.15rem 0 0.4rem; }
.menu-sub {
  display: flex; align-items: center; height: 2.125rem; padding: 0 0.75rem 0 2.7rem; border: 0; border-radius: var(--r-p);
  background: none; color: var(--tx3); font-size: 0.875rem; font-weight: 520; text-align: left; cursor: pointer; position: relative;
  transition: color 0.12s, background 0.12s;
}
.menu-sub:hover { color: var(--tx); background: var(--sup2); }
.menu-sub.ativo { color: var(--tx); font-weight: 600; }
.menu-sub.ativo::before { content: ''; position: absolute; left: 1.55rem; top: 50%; width: 0.4rem; height: 0.4rem; margin-top: -0.2rem; border-radius: 50%; background: var(--ouro); }
.menu-rotulo { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx4); padding: 1.1rem 0.75rem 0.4rem; }
.lateral-atalhos { display: none; flex-direction: column; gap: 1px; }
.menu-atalho { height: 2.375rem; font-size: 0.9rem; }
.menu-atalho.ativo { background: var(--sup2); color: var(--tx); }
.menu-atalho.ativo::before { display: none; }
@media (min-width: 2200px) { .lateral-atalhos { display: flex; } }
.lateral-pe { padding-top: 0.75rem; }

.topo {
  position: relative; z-index: 60; flex: none; display: flex; align-items: center; gap: 0.75rem;
  min-height: var(--barra-titulo); padding: 0 calc(var(--controles-janela) + 0.75rem) 0 2.5rem;
  border-bottom: 1px solid var(--borda); -webkit-app-region: drag;
}
.topo-selo, .topo-titulo { display: none; }
.topo-subs { display: flex; gap: 0.375rem; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 0.375rem 0; }
.topo-subs::-webkit-scrollbar { display: none; }
.topo-subs:empty { display: none; }
.pilula {
  flex: none; height: 1.875rem; padding: 0 0.9rem; border-radius: 99px; border: 1px solid var(--borda2); background: transparent;
  color: var(--tx2); font-size: 0.8125rem; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pilula:hover { color: var(--tx); border-color: var(--borda3); }
.pilula.ativo { background: var(--ouro); border-color: var(--ouro); color: var(--logo-tx); }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.topo-acoes .btn-icone { width: 2rem; height: 2rem; }
.topo-olho.oculto { color: var(--ouro); }
@media (min-width: 1500px) { .topo-subs { display: none; } }
@media (max-width: 1499px) and (min-width: 901px) {
  .casca { grid-template-columns: 13.25rem minmax(0, 1fr); }
  .menu-subs { display: none; }
  .topo { padding-left: 1.5rem; }
}
.abas { display: none; }

/* ---------- modo discreto: aviso discreto no olho; os valores já chegam mascarados ---------- */
kbd {
  display: inline-block; min-width: 1.4em; padding: 0 0.35em; border: 1px solid var(--borda3); border-bottom-width: 2px; border-radius: 4px;
  font: 600 0.78em/1.5 'Inter', system-ui, sans-serif; color: var(--tx2); text-align: center; background: var(--sup2);
}

/* ---------- Mês: visões do sub-menu ---------- */
.acoes-novo { display: inline-flex; gap: 0.625rem; }
.mes-grade[data-visao='apagar'], .mes-grade[data-visao='receb'] { grid-template-columns: minmax(0, 1fr); }
.mes-grade[data-visao='apagar'] .painel-receitas, .mes-grade[data-visao='apagar'] .painel-lado,
.mes-grade[data-visao='receb'] .painel-despesas, .mes-grade[data-visao='receb'] .painel-lado { display: none; }

/* ---------- tela de senha: "Salão de banco" (foto + desfoque 4 px + véu marinho + guilhochê) ---------- */
/* A entrada é sempre escura (vidro sobre a foto), em qualquer tema. */
.tela-entrada {
  position: relative; overflow: hidden; background: #060a14; padding: 1.5rem;
  --sup: rgba(10, 14, 24, 0.74); --campo: rgba(0, 0, 0, 0.34); --borda2: rgba(212, 181, 106, 0.34); --borda3: rgba(212, 181, 106, 0.55);
  --tx: #ece4d0; --tx2: #c4baa3; --tx3: #9a917c; --placeholder: #6f685a; --acento: #e2c785; --acento-anel: rgba(226, 199, 133, 0.22);
  --ruim: #f0a08c; --aviso: #e9b866; --aviso-fundo: rgba(233, 184, 102, 0.08); --aviso-borda: rgba(233, 184, 102, 0.3); --aviso-tx: #ead2a4;
  color-scheme: dark; color: var(--tx);
  overflow-y: auto; place-items: safe center;
}
.entrada-fundo { position: absolute; inset: 0; pointer-events: none; }
.entrada-foto { position: absolute; inset: -30px; background: var(--entrada-foto) center / cover no-repeat; filter: blur(4px) grayscale(0.2) brightness(0.9) saturate(0.95); transform: scale(1.04); }
.entrada-veu { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(6, 8, 14, 0.12), rgba(6, 8, 14, 0.62)), linear-gradient(180deg, rgba(6, 9, 18, 0.15), rgba(6, 9, 18, 0.5)); }
.entrada-guilhoche { position: absolute; inset: 0; background-image: url('../img/marca/onda.svg'); opacity: 0.35; }
.cartao-entrada {
  position: relative; width: min(25rem, 100%); gap: 1.1rem; padding: 2.25rem 2.25rem 1.75rem; border-radius: 3px;
  background: rgba(10, 12, 18, 0.72); border: 1px solid rgba(201, 169, 97, 0.34); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.cartao-entrada::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #e6cf94, transparent); }
.cartao-largo { width: min(38rem, 100%); }
.entrada-marca { gap: 0; }
.rc-selo-entrada { width: 3.5rem; height: 3.5rem; color: #c9a961; margin-bottom: 0.7rem; }
.marca-wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.55rem !important; letter-spacing: 0.22em !important; padding-left: 0.22em; text-transform: uppercase; color: #e6cf94; margin: 0 !important; line-height: 1.15 !important; }
.marca-apoio { font-size: 0.62rem; letter-spacing: 0.34em; padding-left: 0.34em; text-transform: uppercase; color: #8f8673; margin-top: 0.4rem; }
.entrada-marca p { color: var(--tx2); margin-top: 1.1rem; font-size: 0.88rem; }
.tela-entrada .campo-rotulo { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a39a85; font-weight: 550; }
.tela-entrada .in { border-radius: 2px; border-color: rgba(201, 169, 97, 0.35); }
.tela-entrada .in[type='password'] { letter-spacing: 0.25em; color: #e6cf94; }
.tela-entrada .in-senha .btn-icone { color: #a39a85; border-radius: 2px; }
.tela-entrada .in-senha .btn-icone:hover { background: rgba(201, 169, 97, 0.12); color: #e6cf94; }
.btn-entrar {
  border-radius: 2px; background: linear-gradient(180deg, #e2c785, #b8954e) !important; color: #16120a !important;
  font-size: 0.78rem !important; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase;
}
.btn-entrar:hover { filter: brightness(1.06); }
.entrada-nota { text-align: center; font-size: 0.72rem; color: #8f8673; }
.tela-entrada .aviso { border-radius: 2px; }
.tela-entrada .campo-dica { color: #9a917c; }

/* ---------- animação "Cofre" ao desbloquear ---------- */
/* Aparece fechado na hora (por cima do portão da Web/Android, z 10000, e do login do computador); ao ganhar .rodar:
   0–0,9 s volante gira e as travas recolhem com um "clique" (≈0,72 s) · 0,9–1,6 s a porta abre em perspectiva ·
   1,45–1,85 s o véu some · 1,6–2,2 s os números se decifram (marca.js) · 2,25 s sai. Só transform/opacity. */
.cofre-anim {
  --cofre-sa-t: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --cofre-sa-b: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --cofre-sa-l: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));
  --cofre-sa-r: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));
  position: fixed; inset: 0; z-index: 10002; display: grid; place-items: center; pointer-events: none; overflow: hidden;
  padding: var(--cofre-sa-t) var(--cofre-sa-r) var(--cofre-sa-b) var(--cofre-sa-l);
  background: radial-gradient(90% 80% at 50% 45%, #0d1427, #05070d);
  will-change: opacity; animation: cofre-entra 0.22s ease-out both;
}
.cofre-anim::before { content: ''; position: absolute; inset: 0; background-image: url('../img/marca/onda.svg'); opacity: 0.4; }
/* ≈ 60 % da largura no celular, sem passar de 17rem (computador) nem da altura disponível */
.cofre-centro {
  position: relative; width: min(60vw, 17rem, calc(56vh - var(--cofre-sa-t) - var(--cofre-sa-b))); aspect-ratio: 1;
  perspective: 1100px; perspective-origin: 50% 50%;
}
.cofre-centro > svg, .cofre-porta, .cofre-porta > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cofre-porta { transform-origin: 4% 50%; will-change: transform, opacity; backface-visibility: visible; }
.cofre-segredo, .cofre-travas { will-change: transform; transform-origin: 50% 50%; }
.cofre-moldura { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }
.cofre-anel {
  position: absolute; left: 50%; top: 50%; width: 50%; height: 50%; margin: -25% 0 0 -25%; border-radius: 50%;
  border: 1.5px solid #e6cf94; opacity: 0; will-change: transform, opacity;
}
.cofre-anim.rodar { animation: cofre-sai 0.4s ease 1.45s forwards; }
.cofre-anim.rodar .cofre-segredo { animation: cofre-gira 0.9s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
.cofre-anim.rodar .cofre-travas { animation: cofre-trava 0.9s linear both; }
.cofre-anim.rodar .cofre-anel { animation: cofre-anel 0.75s ease-out 0.72s forwards; }
.cofre-anim.rodar .cofre-porta { animation: cofre-porta 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both; }
@keyframes cofre-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes cofre-sai { from { opacity: 1; } to { opacity: 0; } }
/* volta e meia com um leve recuo no fim (a manopla termina deitada à direita) */
@keyframes cofre-gira { 0% { transform: rotate(0deg); } 84% { transform: rotate(462deg); } 100% { transform: rotate(450deg); } }
/* travas paradas, depois recolhem de uma vez com um tranco (o "clique") */
@keyframes cofre-trava {
  0%, 66% { transform: scale(1); }
  80% { transform: scale(0.72); }
  88% { transform: scale(0.8); }
  100% { transform: scale(0.77); }
}
@keyframes cofre-anel { from { opacity: 0.85; transform: scale(0.8); } to { opacity: 0; transform: scale(3.2); } }
@keyframes cofre-porta {
  0% { transform: rotateY(0deg); opacity: 1; }
  12% { transform: rotateY(-4deg) translateZ(4px); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: rotateY(-108deg); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) { .cofre-anim { display: none; } }

/* ---------- Ajustes: sub-menus ---------- */
.aj-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: var(--e8); align-items: start; }
.aj-menu { position: sticky; top: var(--e3); display: flex; flex-direction: column; gap: 2px; padding-right: var(--e4); border-right: 1px solid var(--borda); }
.aj-menu-item {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.8rem; border: 0; border-radius: var(--r); background: none;
  color: var(--tx2); text-align: left; cursor: pointer; position: relative; transition: background 0.12s, color 0.12s;
}
.aj-menu-item .ic { width: 1.15rem; height: 1.15rem; color: var(--tx3); }
.aj-menu-item span { display: flex; flex-direction: column; min-width: 0; }
.aj-menu-item strong { font-weight: 600; font-size: 0.93rem; }
.aj-menu-item small { font-size: 0.75rem; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aj-menu-item:hover { background: var(--sup2); color: var(--tx); }
.aj-menu-item.ativo { background: var(--sup2); color: var(--tx); }
.aj-menu-item.ativo .ic { color: var(--ouro); }
.aj-menu-item.ativo::before { content: ''; position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--ouro); }
.aj-conteudo { display: flex; flex-direction: column; gap: var(--e5); max-width: 62rem; min-width: 0; }
.aj-titulo { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; }
.aj-conteudo .aj-linha:first-of-type { border-top: 0; }
.aj-linha .escala { display: flex; align-items: center; gap: 0.75rem; }
.aj-linha .escala output { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.aj-sync { border-style: dashed; }
.aj-sync .selo { background: var(--sup3); color: var(--tx3); }
.tabela-atividade td:first-child { white-space: nowrap; }

.temas { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--e3); }
.tema-op {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.75rem 0.85rem 0.85rem; border-radius: var(--r);
  border: 1px solid var(--borda2); background: var(--sup2); cursor: pointer; text-align: left; transition: border-color 0.12s;
}
.tema-op:hover { border-color: var(--borda3); }
.tema-op.ativo { border-color: var(--ouro); box-shadow: 0 0 0 1px var(--ouro); }
.tema-op strong { font-size: 0.93rem; margin-top: 0.55rem; }
.tema-op small { font-size: 0.75rem; color: var(--tx3); }
.tema-amostra { display: grid; grid-template-columns: 1.3fr 1fr 0.55fr; gap: 3px; width: 100%; height: 2.4rem; padding: 5px; border-radius: 3px; }
.tema-amostra i { border-radius: 2px; }
.tema-op-imperial .tema-amostra { background: #060c1a; } .tema-op-imperial .tema-amostra i { background: #0b1428; border-top: 1px solid #d4b56a; } .tema-op-imperial .tema-amostra i:last-child { background: #d4b56a; }
.tema-op-escuro .tema-amostra { background: #090b10; } .tema-op-escuro .tema-amostra i { background: #171c25; } .tema-op-escuro .tema-amostra i:last-child { background: #60cdff; }
.tema-op-claro .tema-amostra { background: #e9e6df; } .tema-op-claro .tema-amostra i { background: #ffffff; } .tema-op-claro .tema-amostra i:last-child { background: #0a78b8; }
.tema-op-sistema .tema-amostra { background: linear-gradient(90deg, #090b10 50%, #e9e6df 50%); } .tema-op-sistema .tema-amostra i { background: rgba(127, 127, 127, 0.35); }

.interruptor {
  position: relative; width: 2.75rem; height: 1.55rem; flex: none; border-radius: 99px; border: 1px solid var(--borda3);
  background: var(--sup3); cursor: pointer; padding: 0; transition: background 0.15s, border-color 0.15s;
}
.interruptor i { position: absolute; top: 2px; left: 2px; width: calc(1.55rem - 6px); height: calc(1.55rem - 6px); border-radius: 50%; background: var(--tx3); transition: transform 0.15s, background 0.15s; }
.interruptor.ligado { background: var(--ouro); border-color: var(--ouro); }
.interruptor.ligado i { transform: translateX(1.2rem); background: var(--logo-tx); }

/* entrada rápida do computador (0.7.0): Vídeos e MaisQI sem o cofre; a senha fica para a parte financeira */
.entrada-rapida { display: flex; flex-direction: column; gap: 0.5rem; }
.entrada-rapida .entrada-nota { margin: 0; }
.entrada-rapida .erro-form:empty { display: none; }
.entrada-ou { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 0.25rem; color: #8f8673; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.entrada-ou::before, .entrada-ou::after { content: ''; flex: 1; height: 1px; background: rgba(201, 169, 97, 0.28); }

/* ---------- tela de escolha: parte financeira x Vídeos ---------- */
.entrada-escolha { gap: 1.1rem; }
.escolha-areas { display: flex; flex-direction: column; gap: 0.8rem; }
.area-op {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; width: 100%;
  padding: 1.1rem 1.2rem; border-radius: 3px; cursor: pointer; text-align: left;
  background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(201, 169, 97, 0.34);
  color: var(--tx); transition: border-color 0.14s, background 0.14s, transform 0.14s;
}
.area-op:hover { border-color: rgba(212, 181, 106, 0.7); background: rgba(201, 169, 97, 0.08); transform: translateY(-1px); }
.area-op:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.area-op.area-destaque { border-color: rgba(212, 181, 106, 0.6); background: rgba(201, 169, 97, 0.1); }
.area-op .area-ic { width: 1.55rem; height: 1.55rem; color: #e6cf94; }
.area-op strong { font-size: 1.02rem; font-weight: 600; color: #e6cf94; letter-spacing: 0.01em; }
.area-op .area-sub { font-size: 0.78rem; color: var(--tx2); line-height: 1.4; }
.area-op.carregando { opacity: 0.6; pointer-events: none; }
.entrada-escolha .erro-rapida:empty { display: none; }
.entrada-voltar { align-self: center; margin-top: -0.2rem; font-size: 0.78rem; color: #a39a85; }
.entrada-voltar:hover { color: #e6cf94; }
