/* CAMADA Finance RC47.13.38 - Repaginacao Total Familia CAMADA-MED
   Liquid Glass Petroleo + Safira Tatico + Dourado Metalico (#05090D, #0B1F2B, #D4AF37, #B8860B, #F4F6F8, #A9B3BF, #10B981, #F59E0B, #EF4444)
   Inclui: Botao "+" Safira Liquid Glass Tatil + Leque Haptic Touch, Grafico 3D Extrudado, Evolucao Mensal SVG, ECG Dinamico no PULSO e Cabecalho Enxuto iOS/iPadOS. */

:root {
  --cf-v31-deep: #05090D;
  --cf-v31-petrol: #0B1F2B;
  --cf-v31-gold: #D4AF37;
  --cf-v31-gold-dark: #B8860B;
  --cf-v31-silver: #F4F6F8;
  --cf-v31-muted: #A9B3BF;
  --cf-v31-green: #10B981;
  --cf-v31-amber: #F59E0B;
  --cf-v31-red: #EF4444;
  --cf-v31-sapphire: #2563EB;
  --cf-v31-sapphire-hi: #60A5FA;
  --cf-v31-border-gold: rgba(212, 175, 55, 0.28);
  --cf-v31-border-soft: rgba(244, 246, 248, 0.11);
}

/* 1. Blindagem Safari iOS/iPadOS */
.camada-finance-premium .cf-app-root {
  overflow-x: clip !important;
  min-height: 100dvh;
}

.camada-finance-premium .app-root > header.cf-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  padding-top: max(env(safe-area-inset-top, 0px), 6px) !important;
  padding-bottom: 8px !important;
}

/* 2. Fundo optico profundo unificado com o CAMADA-MED */
html.dark body.camada-finance-premium {
  background:
    radial-gradient(960px 540px at 8% -12%, rgba(11, 31, 43, 0.94), transparent 62%),
    radial-gradient(700px 420px at 94% 0%, rgba(212, 175, 55, 0.11), transparent 60%),
    radial-gradient(640px 380px at 50% 102%, rgba(37, 99, 235, 0.10), transparent 62%),
    linear-gradient(165deg, #05090D 0%, #07131D 52%, #05090D 100%) !important;
  color: var(--cf-v31-silver);
}

/* 3. Cabecalho compacto Flow Studio em Liquid Glass Petroleo */
html.dark body.camada-finance-premium .app-root > header.cf-header {
  background: linear-gradient(180deg, rgba(5, 9, 13, 0.92), rgba(11, 31, 43, 0.84)) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  border-bottom: 1px solid var(--cf-v31-border-gold) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.44), inset 0 -1px 0 rgba(244, 246, 248, 0.06) !important;
}

.cf-header-inner {
  gap: 7px !important;
}

html.dark body.camada-finance-premium .cf-icon-button {
  background: linear-gradient(155deg, rgba(11, 31, 43, 0.86), rgba(5, 9, 13, 0.92)) !important;
  border: 1px solid rgba(212, 175, 55, 0.24) !important;
  color: var(--cf-v31-silver) !important;
  box-shadow: inset 0 1px 0 rgba(244, 246, 248, 0.08), 0 6px 18px rgba(0, 0, 0, 0.26);
}

html.dark body.camada-finance-premium .cf-tool {
  min-height: 40px !important;
  padding: 6px 9px !important;
  border-radius: 13px !important;
  background: linear-gradient(155deg, rgba(11, 31, 43, 0.78), rgba(5, 9, 13, 0.90)) !important;
  border: 1px solid var(--cf-v31-border-soft) !important;
  color: var(--cf-v31-silver) !important;
  box-shadow: inset 0 1px 0 rgba(244, 246, 248, 0.07), 0 8px 20px rgba(0, 0, 0, 0.22);
}

html.dark body.camada-finance-premium .cf-tool-simulation {
  border-color: rgba(16, 185, 129, 0.36) !important;
  color: #6EE7B7 !important;
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.14), rgba(5, 9, 13, 0.92)) !important;
}

html.dark body.camada-finance-premium .cf-tool-calendar {
  border-color: rgba(244, 246, 248, 0.16) !important;
  color: var(--cf-v31-silver) !important;
}

html.dark body.camada-finance-premium .cf-tool-ai {
  border-color: rgba(212, 175, 55, 0.56) !important;
  color: #FEF7DC !important;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.38), rgba(11, 31, 43, 0.92) 60%, rgba(212, 175, 55, 0.24)) !important;
  box-shadow: inset 0 1px 0 rgba(254, 247, 220, 0.22), 0 8px 22px rgba(212, 175, 55, 0.14);
}

html.dark body.camada-finance-premium .cf-month-control {
  background: linear-gradient(155deg, rgba(11, 31, 43, 0.84), rgba(5, 9, 13, 0.92)) !important;
  border: 1px solid rgba(212, 175, 55, 0.26) !important;
  color: var(--cf-v31-silver) !important;
  padding: 2px 4px !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(244, 246, 248, 0.07);
}

.cf-month-control button {
  min-height: 38px !important;
}

html.dark body.camada-finance-premium .cf-ecosystem-link {
  border-color: rgba(96, 165, 250, 0.42) !important;
  background: linear-gradient(145deg, rgba(15, 61, 115, 0.45), rgba(5, 9, 13, 0.92)) !important;
  color: #E0F2FE !important;
}

/* 4. Superficies Liquid Glass Petroleo unificadas em toda a Home */
html.dark body.camada-finance-premium .cf-glass-panel {
  background: linear-gradient(155deg, rgba(11, 31, 43, 0.84), rgba(5, 9, 13, 0.94)) !important;
  border: 1px solid rgba(212, 175, 55, 0.24) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(244, 246, 248, 0.09),
    0 18px 46px rgba(0, 0, 0, 0.42);
}

html.dark body.camada-finance-premium .camada-pulse-card .rounded-2xl {
  background: linear-gradient(150deg, rgba(14, 38, 54, 0.72), rgba(5, 9, 13, 0.88)) !important;
  border: 1px solid rgba(244, 246, 248, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(244, 246, 248, 0.07), 0 8px 20px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark body.camada-finance-premium .xm-mob-summary-card,
html.dark body.camada-finance-premium .xm-mob-plan-row,
html.dark body.camada-finance-premium .xm-mob-day-close {
  background: linear-gradient(155deg, rgba(11, 31, 43, 0.82), rgba(5, 9, 13, 0.92)) !important;
  border-color: rgba(212, 175, 55, 0.24) !important;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(244, 246, 248, 0.07), 0 10px 26px rgba(0, 0, 0, 0.26);
}

html.dark body.camada-finance-premium .cf-dialog-panel,
html.dark body.camada-finance-premium .cf-form-dialog,
html.dark body.camada-finance-premium .cf-account-gate section {
  background: linear-gradient(158deg, rgba(11, 31, 43, 0.95), rgba(5, 9, 13, 0.98)) !important;
  border: 1px solid rgba(212, 175, 55, 0.36) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(244, 246, 248, 0.09);
}

/* 5. Card Hero PULSO + Microtracado ECG Dinamico */
html.dark body.camada-finance-premium .camada-pulse-card {
  border-color: rgba(212, 175, 55, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(212, 175, 55, 0.08) !important;
}

html.dark body.camada-finance-premium .camada-pulse-card::after {
  background:
    radial-gradient(420px 160px at 85% 0%, rgba(212, 175, 55, 0.09), transparent 65%),
    linear-gradient(152deg, rgba(11, 31, 43, 0.96), rgba(5, 9, 13, 0.99)) !important;
}

html.dark body.camada-finance-premium .camada-pulse-card[data-health-status="green"] {
  box-shadow: inset 0 1px 0 rgba(16, 185, 129, 0.24), 0 22px 58px rgba(0, 0, 0, 0.46), 0 0 30px rgba(16, 185, 129, 0.10) !important;
}

html.dark body.camada-finance-premium .camada-pulse-card[data-health-status="yellow"] {
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.26), 0 22px 58px rgba(0, 0, 0, 0.46), 0 0 30px rgba(245, 158, 11, 0.11) !important;
}

html.dark body.camada-finance-premium .camada-pulse-card[data-health-status="red"] {
  box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.28), 0 22px 58px rgba(0, 0, 0, 0.46), 0 0 30px rgba(239, 68, 68, 0.12) !important;
}

.cf-pulse-ecg-strip {
  width: 100%;
  height: 22px;
  margin-bottom: 8px;
  opacity: 0.92;
  overflow: hidden;
}

.cf-pulse-ecg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cf-pulse-ecg-svg path {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cf-pulse-ecg-svg .cf-ecg-bg {
  stroke: rgba(212, 175, 55, 0.18);
}

.cf-pulse-ecg-svg .cf-ecg-beam {
  stroke: #D4AF37;
  stroke-dasharray: 24 76;
  animation: cf-ecg-flow 2.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.7));
}

.cf-pulse-ecg-svg.is-green .cf-ecg-beam {
  stroke: #10B981;
  animation-duration: 2.6s;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.8));
}

.cf-pulse-ecg-svg.is-yellow .cf-ecg-beam {
  stroke: #F59E0B;
  animation-duration: 1.7s;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.85));
}

.cf-pulse-ecg-svg.is-red .cf-ecg-beam {
  stroke: #EF4444;
  animation-duration: 1.15s;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.9));
}

.cf-pulse-ecg-svg.is-unknown .cf-ecg-beam {
  stroke: #60A5FA;
  animation-duration: 3.1s;
  filter: drop-shadow(0 0 5px rgba(96, 165, 250, 0.75));
}

@keyframes cf-ecg-flow {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* 6. BOTAO "+" 3D SAFIRA LIQUID GLASS + BORDA DINAMICA (ASSINATURA OPTICA CAMADA-MED) */
html.dark body.camada-finance-premium .app-root nav[aria-label="Navegação Principal"] {
  background: linear-gradient(180deg, rgba(11, 31, 43, 0.90), rgba(5, 9, 13, 0.97)) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.28) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.camada-finance-premium .app-root nav[aria-label="Navegação Principal"] button.cf-fab-sapphire {
  --cf-px: 32%;
  --cf-py: 22%;
  --cf-sx: 1;
  --cf-sy: 1;
  --cf-dip: 0px;
  --cf-rx: 0deg;
  --cf-ry: 0deg;
  --cf-charge: 0;
  position: relative;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent;
  transform: perspective(260px) translate3d(0, var(--cf-dip), 0) rotateX(var(--cf-rx)) rotateY(var(--cf-ry)) scale(var(--cf-sx), var(--cf-sy)) !important;
  transition: transform 340ms cubic-bezier(0.24, 1.52, 0.38, 1) !important;
}

.camada-finance-premium .app-root nav[aria-label="Navegação Principal"] button.cf-fab-sapphire:active,
.camada-finance-premium .app-root nav[aria-label="Navegação Principal"] button.cf-fab-sapphire.is-pressing {
  transition: transform 70ms cubic-bezier(0.2, 0.9, 0.3, 1) !important;
  transform: perspective(260px) translate3d(0, var(--cf-dip), 0) rotateX(var(--cf-rx)) rotateY(var(--cf-ry)) scale(var(--cf-sx), var(--cf-sy)) !important;
}

.camada-finance-premium .app-root nav[aria-label="Navegação Principal"] button.cf-fab-sapphire.is-open {
  transform: perspective(260px) translate3d(0, -4px, 0) scale(1.07) !important;
}

/* Anel SVG finissimo de pressao (visivel somente ao manter pressionado) */
.cf-fab-svg-ring {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 6;
}

/* Chassi circular 3D com borda dinamica giratoria 100% recortada (overflow: hidden) */
.cf-fab-rim-shell {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  padding: 2.4px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040B16;
  box-shadow:
    0 0 0 2.5px #05090D,
    0 11px 22px rgba(2, 8, 22, 0.88),
    0 4px 12px rgba(29, 78, 216, 0.48),
    0 0 18px rgba(56, 139, 250, 0.32);
  transition: box-shadow 200ms ease, filter 160ms ease;
}

.cf-fab-sapphire.is-pressing .cf-fab-rim-shell {
  box-shadow:
    0 0 0 2.5px #05090D,
    0 4px 10px rgba(2, 8, 22, 0.92),
    0 0 22px rgba(96, 165, 250, 0.68),
    0 0 10px rgba(212, 175, 55, 0.36);
}

.cf-fab-sapphire.is-open .cf-fab-rim-shell {
  box-shadow:
    0 0 0 2.5px #05090D,
    0 12px 26px rgba(2, 8, 22, 0.88),
    0 0 22px rgba(212, 175, 55, 0.45),
    0 0 14px rgba(96, 165, 250, 0.42);
}

/* Feixe optico dinamico girando na borda (igual .cmc-moving-rim do CAMADA-MED) */
.cf-fab-rim-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 175%;
  height: 175%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    rgba(15, 45, 92, 0.42) 0deg,
    rgba(56, 139, 250, 0.58) 32deg,
    rgba(186, 230, 253, 0.96) 54deg,
    rgba(255, 252, 236, 1) 62deg,
    rgba(212, 175, 55, 0.94) 72deg,
    rgba(29, 78, 216, 0.38) 104deg,
    rgba(7, 22, 52, 0.30) 182deg,
    rgba(56, 139, 250, 0.78) 222deg,
    rgba(224, 242, 254, 0.94) 238deg,
    rgba(212, 175, 55, 0.62) 252deg,
    rgba(15, 45, 92, 0.42) 308deg,
    rgba(15, 45, 92, 0.42) 360deg
  );
  animation: cf-fab-rim-orbit 6.4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.cf-fab-sapphire.is-pressing .cf-fab-rim-spin {
  animation-duration: 2.1s;
  filter: brightness(1.22);
}

.cf-fab-sapphire.is-open .cf-fab-rim-spin {
  animation-duration: 3.4s;
  filter: brightness(1.15);
}

@keyframes cf-fab-rim-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cupula 3D em Safira Liquid Glass com refracao e espessura real */
.cf-fab-orb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8FAFC;
  background:
    radial-gradient(circle at var(--cf-px) var(--cf-py), rgba(224, 242, 254, 0.56) 0%, rgba(96, 165, 250, 0.44) 24%, rgba(29, 78, 216, 0.78) 54%, rgba(10, 34, 84, 0.96) 82%, rgba(4, 14, 38, 1) 100%),
    linear-gradient(180deg, #2563EB 0%, #0E347A 58%, #041028 100%);
  box-shadow:
    inset 0 2.5px 4px rgba(255, 255, 255, 0.76),
    inset 0 8px 14px rgba(147, 197, 253, 0.28),
    inset 0 -8px 14px rgba(2, 10, 28, 0.88),
    inset 0 -2px 5px rgba(125, 211, 252, 0.72);
  transition: filter 150ms ease, box-shadow 180ms ease;
}

.cf-fab-sapphire.is-pressing .cf-fab-orb {
  filter: brightness(1.16) saturate(1.22);
  box-shadow:
    inset 0 4px 10px rgba(224, 242, 254, 0.82),
    inset 0 -5px 10px rgba(4, 15, 38, 0.82),
    inset 0 -2px 7px rgba(125, 211, 252, 0.92);
}

/* Camada interna de profundidade 3D (chanfro de cristal safira) */
.cf-fab-depth {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.24);
  background: radial-gradient(circle at 50% 62%, rgba(56, 189, 248, 0.22) 0%, rgba(15, 61, 115, 0.08) 55%, rgba(2, 8, 23, 0.42) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Reflexo especular convexo no topo da lente 3D */
.cf-fab-specular {
  position: absolute;
  top: 2.5px;
  left: 8px;
  right: 8px;
  height: 23px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(224, 242, 254, 0.22) 52%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Arco caustico luminoso refratado na base interna da gema */
.cf-fab-caustic {
  position: absolute;
  bottom: -2px;
  left: 10px;
  right: 10px;
  height: 15px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(186, 230, 253, 0.78) 0%, rgba(56, 139, 250, 0.35) 55%, transparent 78%);
  pointer-events: none;
  opacity: calc(0.68 + var(--cf-charge) * 0.32);
  z-index: 1;
}

/* Icone "+" esculpido flutuando dentro da lente 3D */
.cf-fab-plus {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  filter: drop-shadow(0 2px 4px rgba(2, 8, 22, 0.72)) drop-shadow(0 0 8px rgba(186, 230, 253, 0.45));
  transition: transform 260ms cubic-bezier(0.24, 1.5, 0.38, 1);
}

.cf-fab-sapphire.is-pressing .cf-fab-plus {
  transform: scale(0.90) translateY(1px);
}

.cf-fab-sapphire.is-open .cf-fab-plus {
  transform: rotate(45deg) scale(1.04);
}

.cf-fab-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(5, 9, 13, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cf-fab-fan {
  position: fixed;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(2, minmax(136px, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(11, 31, 43, 0.94), rgba(5, 9, 13, 0.97));
  border: 1px solid rgba(96, 165, 250, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.68), 0 0 24px rgba(37, 99, 235, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: cf-fan-pop 200ms cubic-bezier(0.22, 1.3, 0.36, 1);
}

@keyframes cf-fan-pop {
  from { opacity: 0; transform: translate(-50%, 14px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.cf-fan-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px !important;
  font-weight: 700;
  color: #F4F6F8;
  border: 1px solid rgba(244, 246, 248, 0.14);
  background: rgba(15, 38, 56, 0.72);
  cursor: pointer;
}

.cf-fan-pill.is-expense { border-color: rgba(239, 68, 68, 0.45); color: #FCA5A5; background: rgba(127, 29, 29, 0.32); }
.cf-fan-pill.is-income { border-color: rgba(16, 185, 129, 0.45); color: #6EE7B7; background: rgba(6, 78, 59, 0.32); }
.cf-fan-pill.is-voice { border-color: rgba(96, 165, 250, 0.50); color: #BAE6FD; background: rgba(15, 61, 115, 0.42); }
.cf-fan-pill.is-sim { border-color: rgba(212, 175, 55, 0.50); color: #FEF3C7; background: rgba(120, 85, 25, 0.34); }
.cf-fan-pill.is-med { grid-column: 1 / -1; border-color: rgba(96, 165, 250, 0.55); color: #E0F2FE; background: linear-gradient(135deg, rgba(15, 61, 115, 0.58), rgba(11, 31, 43, 0.92)); }

/* 7. GRAFICO 3D EXTRUDADO ULTRA PREMIUM (CATEGORIAS) */
.cf-chip-3d {
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  color: #E7C887;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.36);
}

.cf-donut-3d-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 6px;
}

.cf-donut-3d-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.48));
}

.cf-slice-3d {
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.22, 1.35, 0.36, 1), filter 200ms ease;
}

.cf-slice-3d.is-active {
  filter: brightness(1.16) drop-shadow(0 8px 14px rgba(212, 175, 55, 0.25));
}

.cf-donut-3d-readout {
  margin-top: -10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(11, 31, 43, 0.78), rgba(5, 9, 13, 0.90));
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.cf-donut-3d-label {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A9B3BF;
}

.cf-donut-3d-value {
  font-size: 20px !important;
  font-weight: 800;
  color: #F4F6F8;
  margin-top: 2px;
}

.cf-donut-3d-pct {
  margin-top: 4px;
  font-size: 12px !important;
  font-weight: 700;
  color: #E7C887;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

/* 8. EVOLUCAO MENSAL SVG CORRIGIDA E NITIDA NO MOBILE */
.cf-chart-legend {
  font-size: 12px !important;
  color: #CBD5E1;
}

.cf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  font-weight: 600;
}

.cf-legend-item i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.cf-evolution-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(11, 31, 43, 0.80), rgba(5, 9, 13, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.cf-evo-month {
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F4F6F8;
}

.cf-evo-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px !important;
  font-weight: 600;
}

.cf-evolution-svg-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(5, 9, 13, 0.45);
  border: 1px solid rgba(244, 246, 248, 0.06);
  padding: 6px 4px 2px;
}

.cf-evolution-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 9. DITADO POR VOZ NO MODAL DE TRANSACAO */
.cf-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px !important;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px !important;
  font-weight: 700;
  color: #E0F2FE;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(145deg, rgba(15, 61, 115, 0.65), rgba(11, 31, 43, 0.92));
  cursor: pointer;
}

.cf-voice-btn.is-listening {
  border-color: rgba(239, 68, 68, 0.65);
  color: #FECACA;
  background: rgba(153, 27, 27, 0.45);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}

.cf-voice-hint {
  font-size: 13px !important;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 61, 115, 0.30);
  border: 1px solid rgba(96, 165, 250, 0.30);
  color: #BAE6FD;
}

/* 10. Indicador de nuvem sincronizada */
.cf-cloud-dot.is-confirmed {
  background: #10B981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.cf-cloud-dot.needs-attention {
  background: #EF4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

@media (max-width: 767px) {
  .camada-finance-premium .app-root > header.cf-header {
    position: sticky !important;
    top: 0 !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  }
  .cf-header-inner { padding: 0 12px !important; gap: 6px !important; }
  .cf-tool { min-height: 38px !important; padding: 5px 6px !important; font-size: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-pulse-ecg-svg .cf-ecg-beam,
  .cf-fab-rim-spin {
    animation: none !important;
  }
  .cf-fab-sapphire,
  .cf-slice-3d {
    transition: none !important;
  }
}



/* RC47.13.38 — Blindagem de alinhamento de icones, 1 linha nas ferramentas e banner CAMADA-MED */
.camada-finance-premium .cf-header-icons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.camada-finance-premium .cf-header-tools .cf-tool {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camada-finance-premium .cf-header-icons svg,
.camada-finance-premium .cf-header-tools svg,
.camada-finance-premium nav[aria-label="Navegação Principal"] svg {
  flex-shrink: 0 !important;
  display: block;
}

.cf-med-banner {
  border-color: rgba(96, 165, 250, 0.38) !important;
  background: linear-gradient(150deg, rgba(15, 61, 115, 0.42), rgba(11, 31, 43, 0.88) 48%, rgba(5, 9, 13, 0.96)) !important;
}

.cf-med-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px !important;
  font-weight: 700;
  cursor: pointer;
}

.cf-med-action-btn.is-primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(11, 31, 43, 0.92));
  border: 1px solid rgba(16, 185, 129, 0.48);
  color: #6EE7B7;
}

.cf-med-action-btn.is-secondary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(11, 31, 43, 0.92));
  border: 1px solid rgba(96, 165, 250, 0.50);
  color: #E0F2FE;
}
