/* VZ Finance 2.0 — Identidade visual baseada nos mockups fornecidos.
   Override conservador: mantém as regras de negócios e formulários existentes. */
:root{--teal:#00dcb0;--teal-dark:#009e86;--green:#13d9ad}
:root[data-resolved-theme=dark]{--bg:#041528;--surface:#10263b;--surface-alt:#152d44;--ink:#f3f8ff;--muted:#b6c7d9;--line:#294052;--teal:#13e4b5;--teal-dark:#35e6bc;--green:#19dfb3;--red:#ff7884;--soft-green:#0d3a3c;--soft-red:#40283c;--shadow:0 16px 32px rgba(0,4,19,.19)}
:root[data-resolved-theme=dark] .layout{background:#06182c}
:root[data-resolved-theme=dark] .sidebar{background:#041426;border-right:1px solid #162a3e}
:root[data-resolved-theme=dark] .main-layout{background:radial-gradient(ellipse at 96% 1%,rgba(0,174,145,.16),transparent 37%),linear-gradient(125deg,#061626 0%,#04182a 100%)}
:root[data-resolved-theme=dark] .panel,
:root[data-resolved-theme=dark] .metric:not(.metric-teal),
:root[data-resolved-theme=dark] .small-metric,
:root[data-resolved-theme=dark] .floating-panel{background:linear-gradient(138deg,#112b3f,#0e2337 100%);border-color:#243d52}
.sidebar{padding-top:17px}
.sidebar .brand{padding:0 5px 19px}
.sidebar .brand .brand-home img{width:202px;max-width:100%;height:58px;object-fit:contain;object-position:left center}
.sidebar nav{gap:8px}
.sidebar .nav-item{font-size:14px;font-weight:560;padding:12px 14px;min-height:47px}
:root[data-resolved-theme=dark] .sidebar .nav-item.selected{background:linear-gradient(100deg,#03d2ad,#06efbb);color:#032334;box-shadow:0 0 18px rgba(0,238,176,.2);border:0}
:root[data-resolved-theme=dark] .sidebar .nav-item.selected .nav-icon{color:#032334}
.content{padding:25px 31px 65px}
.page-header .header-heading{flex:1}
.page-header h1{font-weight:800;letter-spacing:-.04em}
.page-header .page-sub{font-size:13px}
.mobile-dashboard-heading{display:none}
.btn.primary{background:linear-gradient(105deg,#006c60,#06b896);color:#f4ffff;border:1.5px solid #1dffd0;box-shadow:0 0 0 1px rgba(17,237,180,.22) inset,0 0 16px rgba(0,237,173,.15);font-weight:770}
.btn.primary:hover{background:linear-gradient(105deg,#008673,#08dab0)}
.header-new{border-radius:16px;min-height:50px}
.privacy-eye{width:43px;height:43px;flex-shrink:0;color:var(--teal)!important;background:var(--surface-alt);border:1px solid var(--line)}
.privacy-eye[aria-pressed=true]{background:var(--soft-green);border-color:var(--teal)}
.privacy-eye svg{width:23px;height:23px}
:root[data-resolved-theme=dark] .metric-teal{background:linear-gradient(110deg,#005f5c,#072338 100%);border:1.5px solid #12e6b7;box-shadow:0 0 0 1px rgba(24,236,182,.08) inset,0 0 18px rgba(15,231,183,.13)}
:root[data-resolved-theme=dark] .metric-green,.metric-red,.metric-navy{background:linear-gradient(125deg,#102a3d,#11243a)!important}
:root[data-resolved-theme=dark] .metric-green .metric-value{color:#30ecc1}
:root[data-resolved-theme=dark] .metric-red .metric-value{color:#f0f3fb}
:root[data-resolved-theme=dark] .metric-navy .metric-value{color:#2ef1b7}
.metric{border-radius:17px;min-width:0}
.panel{border-radius:17px}
.panel h2{letter-spacing:-.025em}
.positive,.extra-metrics .small-metric:first-child b{color:#28e9bb!important}
:root[data-resolved-theme=dark] .negative{color:#ff7b8e!important}
:root[data-resolved-theme=dark] .bar.expense{background:linear-gradient(0deg,#3a5974,#8daabd)}
:root[data-resolved-theme=dark] .bar.income{background:linear-gradient(0deg,#03a98c,#1eeaba)}
:root[data-resolved-theme=dark] .dot.red,.dot.gray{background:#8daabd}
.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.vz-reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-top:19px}
.vz-reports-line-panel,.vz-reports-category-panel{grid-column:1/-1}
.vz-report-line{width:100%;height:250px;color:var(--muted);display:block;overflow:visible;margin-top:10px}
.vz-comparison-chart{height:220px;display:flex;justify-content:space-around;align-items:stretch;gap:4px;border-bottom:1px solid var(--line);padding:8px 1px 0}
.vz-comparison-col{flex:1 1 0;max-width:65px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;color:var(--muted);font-size:11px}
.vz-comparison-bars{display:flex;align-items:flex-end;justify-content:center;gap:4px;height:182px;width:100%;min-width:0}
.vz-comparison-bars>div{width:42%;max-width:23px;min-width:5px;border-radius:5px 5px 0 0}
.vz-bar-in{background:linear-gradient(0deg,#00a588,#20eeb9)}
.vz-bar-out{background:linear-gradient(0deg,#5a7893,#9ab3c7)}
.vz-legend{justify-content:flex-start}
.vz-donut-grid{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);align-items:center;gap:30px;margin-top:12px}
.vz-donut{width:min(100%,256px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto;filter:drop-shadow(0 10px 18px #0002)}
.vz-donut-inner{background:var(--surface);width:65%;height:65%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;gap:4px}
.vz-donut-inner b{font-size:clamp(12px,1.55vw,19px)}
.vz-donut-inner small{font-size:12px;color:var(--muted)}
.vz-donut-list{min-width:0;display:grid;gap:2px}
.vz-donut-list>div{display:grid;grid-template-columns:11px minmax(0,1fr) 52px minmax(90px,auto);gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:7px 0;font-size:12px}
.vz-donut-list i{width:10px;height:10px;border-radius:2px}
.vz-donut-list span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vz-donut-list b,.vz-donut-list small{text-align:right}
.vz-donut-list small{color:var(--muted)}
.report-filters{flex-wrap:wrap}
.report-filters label{max-width:300px}
/* Login e cadastro: gradiente azul-marinho com brilho verde-água do mockup. */
.cloud-auth-page{background:radial-gradient(ellipse at 70% 0%,#006f6c55 0%,transparent 36%),linear-gradient(135deg,#06172d,#001328 100%);color:#f8fdff}
.cloud-auth-illustration{background:radial-gradient(ellipse at 100% 35%,#00bc9b44,transparent 46%),linear-gradient(135deg,#051b34,#041326 100%)}
.cloud-auth-main{background:transparent}
.cloud-auth-card{padding:12px 0;color:#f9fdff}
.cloud-auth-card h1{font-size:clamp(34px,4vw,45px);font-weight:800}
.cloud-auth-card>p{color:#d2dce7;font-size:15px}
.cloud-auth-lang{color:#c2d5df}
.cloud-auth-lang select{background:#122a40;color:#e9f8f8;border-color:#28495a}
.cloud-auth-form{gap:14px}
.cloud-auth-form .input-shell{position:relative;gap:4px}
.cloud-auth-form .input-shell>span{font-size:12px;color:#bdc9d6}
.cloud-auth-form .input-shell>input{background:#10283e;color:#fff;border:1px solid #35516b;border-radius:15px;height:54px;padding:11px 16px;font-size:15px}
.cloud-auth-form .input-shell>input::placeholder{color:#aebed0}
.cloud-auth-form .input-shell>input:focus{border-color:#11d6af}
.cloud-auth-form .password-shell{position:relative}
.cloud-auth-form .password-shell .show-password{position:absolute;right:7px;bottom:6px;margin:0!important;min-height:42px;width:42px;height:42px;background:transparent;color:#e9fdff;border:0;border-radius:10px}
.cloud-auth-form .password-shell>input{padding-right:60px}
.cloud-auth-form>.btn.primary{min-height:55px;margin-top:11px;border-radius:16px;font-size:18px}
.cloud-auth-form .forgot-password-link{margin:0 0 0 auto;min-height:22px;padding:2px 0;color:#1ae9bd;font-size:13px}
.auth-links{margin-top:13px}
.auth-links>.btn.subtle{display:flex;background:transparent;color:#f2f8ff;border:1px solid #a8c9dc;border-radius:15px;min-height:50px;font-size:15px}
.auth-links>button:not(.btn){color:#35e6ba}
.cloud-auth-form .legal-acceptance{background:#0f293c;border:1px solid #264658;border-radius:14px;margin:6px 0 0}
.cloud-auth-form .legal-acceptance-row label{color:#f3f9ff}
.cloud-auth-form .legal-acceptance-row .legal-document-link{color:#34eec3}
.cloud-auth-mobile-logo{width:min(100%,275px);height:auto;margin:0 auto 33px;object-fit:contain}
/* Confirmação de exclusão — protege contra clique acidental. */
.delete-account-dialog{width:min(96vw,480px);padding:0;background:#0a2037;color:#f6faff;border:1px solid #2a4355;border-radius:20px;box-shadow:0 30px 85px rgba(0,0,0,.55)}
.delete-account-dialog::backdrop{background:#000b1bc9;backdrop-filter:blur(5px)}
.delete-account-body{text-align:center;padding:31px 25px 24px}
.delete-account-body h2{font-size:23px;letter-spacing:-.02em;margin:9px 0}
.delete-account-body p{line-height:1.6;color:#c3d2df;font-size:13px}
.delete-account-symbol{display:grid;place-items:center;background:#472b36;color:#ff8894;border-radius:50%;height:51px;width:51px;margin:0 auto 15px;font-size:31px;font-weight:800}
.delete-account-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:21px 0 10px}
.delete-account-options button{white-space:normal;font-size:13px;min-height:49px}
.danger-confirm{background:#c74052;color:white;border:1px solid #ef6072}
.delete-account-feedback:empty{display:none}
.delete-account-feedback{color:#ff9aa6!important;margin-top:9px}
.settings-panel .danger-btn{color:#f97681;border-color:#ae4253;background:#382735}
.mobile-drawer,.mobile-drawer-overlay{display:none!important}
/* Responsivo: menu hambúrguer substitui navegação inferior. */
@media(max-width:750px){
  body{background:#031326}
  .layout{display:block;max-width:100%}
  .sidebar,.mobile-bottom{display:none!important}
  .mobile-top{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:7px;position:sticky;top:0;z-index:65;padding:15px 13px 9px;height:73px;background:radial-gradient(ellipse at 99% 0%,#007d7442,transparent 48%),#05162a;border-bottom:1px solid #192e42}
  .hamburger-button{width:42px;height:42px;border:0;border-radius:14px;background:#122b41;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px;color:#fff}
  .hamburger-button span{display:block;width:19px;height:2px;border-radius:4px;background:#f5ffff}
  .mobile-top .brand-home{width:100%;max-width:none;min-width:0;justify-content:center;flex:1}
  .mobile-top .brand-home img{width:min(100%,180px);height:41px;object-fit:contain;object-position:center}
  .mobile-header-tools{display:flex;gap:2px;align-items:center;justify-content:flex-end}
  .mobile-header-tools .privacy-eye{width:34px;height:38px;border:0;background:transparent;color:#defffb!important}
  .mobile-header-tools .privacy-eye svg{width:21px;height:21px}
  .mobile-header-tools .avatar-toggle{width:39px;height:39px;padding:0}
  .mobile-header-tools .avatar-toggle .avatar{width:39px;height:39px;flex-basis:39px}
  .mobile-header-tools .floating-panel{position:fixed;z-index:92;top:69px;right:10px;left:auto;max-height:min(70vh,400px);width:min(290px,calc(100vw - 20px));background:#0d2940}
  .mobile-drawer-overlay:not([hidden]){display:block!important;position:fixed;inset:0;z-index:97;background:rgba(0,12,29,.72);backdrop-filter:blur(3px)}
  .mobile-drawer:not([hidden]){display:flex!important;position:fixed;z-index:98;inset:0 auto 0 0;width:min(320px,85vw);height:100dvh;flex-direction:column;overflow-y:auto;box-shadow:8px 0 38px #0007;background:#061c32;color:#f9ffff;border-right:1px solid #1e4b59;padding:14px 12px 24px}
  .mobile-drawer-top{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 8px 19px;border-bottom:1px solid #244657}
  .mobile-drawer-top img{width:177px;max-width:75%;height:42px;object-fit:contain}
  .drawer-close{width:35px;height:35px;flex:0 0 35px;background:#173b4e;border:0;border-radius:10px;color:white;font-size:26px}
  .mobile-drawer nav{display:grid;gap:6px;padding:19px 0}
  .mobile-drawer .nav-item{min-height:47px;border-radius:13px;color:#cbd9e7;text-align:left;padding:11px 13px;border:0;background:transparent;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650}
  .mobile-drawer .nav-item.selected{background:#0fe1b5;color:#04243a;box-shadow:0 0 18px #0ce9b92c}
  .mobile-drawer .nav-item.selected .nav-icon{color:#04243a}
  .mobile-drawer-bottom{display:grid;margin-top:auto;border-top:1px solid #244657;padding-top:12px;gap:5px}
  .mobile-drawer-bottom .nav-item:last-child{color:#ff9aa7}
  .content{padding:15px 14px 48px;max-width:670px}
  .page-header{gap:8px;margin:0 0 13px;min-height:0;flex-direction:column;align-items:stretch}
  .page-header h1{font-size:28px;line-height:1.15}
  .desktop-dashboard-heading{display:none}
  .mobile-dashboard-heading{display:inline}
  .page-header .page-sub{display:none}
  .page-header .header-actions{display:grid;grid-template-columns:1fr;gap:8px;width:100%;margin-top:6px}
  .page-header .header-actions>.privacy-eye,.page-header .header-user-tools{display:none!important}
  .page-header:has(.mobile-dashboard-heading) .header-new{display:none}
  .page-header .header-account,.page-header .header-account select{width:100%;min-width:0;max-width:none}
  .page-header .header-new{width:100%;min-height:50px;grid-column:1/-1;border-radius:18px;font-size:15px}
  .period-controls{margin:2px 0 15px;padding:10px;box-shadow:none}
  .period-controls .period-heading{display:none}
  .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metrics-grid .metric{border-radius:16px;padding:13px;min-height:122px;box-shadow:none}
  .metrics-grid .metric:first-child{grid-column:1/-1;min-height:102px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 10px}
  .metrics-grid .metric:first-child .metric-icon{display:none}
  .metrics-grid .metric:first-child .metric-label{font-size:15px}
  .metrics-grid .metric:first-child .metric-value{font-size:clamp(22px,6.8vw,33px);margin:0;text-align:right}
  .metrics-grid .metric:first-child .metric-sub{display:none}
  .metrics-grid .metric:first-child .metric-spark{display:none}
  .metrics-grid .metric:nth-child(4){grid-column:1/-1;min-height:73px;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}
  .metrics-grid .metric:nth-child(4) .metric-icon{width:31px;height:31px;margin:0}
  .metrics-grid .metric:nth-child(4) .metric-value{font-size:clamp(18px,5vw,25px);text-align:right;margin:0}
  .metrics-grid .metric:nth-child(4) .metric-sub,.metrics-grid .metric:nth-child(4) .metric-spark{display:none}
  .metric-icon{margin-bottom:8px}
  .metric-value{font-size:clamp(17px,5.1vw,25px)!important;white-space:normal;overflow-wrap:anywhere}
  .metrics-grid .metric:first-child .metric-value{font-size:clamp(22px,6.8vw,33px)!important}
  .metrics-grid .metric:nth-child(4) .metric-value{font-size:clamp(18px,5.5vw,26px)!important}
  .metric-label{font-size:12px}
  .metric-sub{font-size:10px}
  .extra-metrics{gap:8px;margin-top:11px}
  .extra-metrics .small-metric{min-height:64px;border-radius:14px;padding:10px;flex-direction:column;align-items:flex-start;gap:4px}
  .extra-metrics .small-metric b{font-size:clamp(15px,4.4vw,20px)}
  .dashboard-grid{grid-template-columns:1fr;gap:12px;margin-top:14px}
  .panel{border-radius:17px;padding:15px 13px}
  .panel h2{font-size:18px}
  .bar-chart{overflow-x:auto;gap:5px}
  .bar-cluster{min-width:14px}
  .bar-cluster>span{font-size:9px}
  .report-filters{margin:8px 0 14px}
  .report-filters label{flex:1 1 170px}
  .report-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .report-metrics .metric,.report-metrics .metric:first-child,.report-metrics .metric:nth-child(4){grid-column:auto!important;display:block!important;padding:10px!important;min-height:95px!important}
  .report-metrics .metric-icon{width:28px;height:28px;margin:0 0 7px!important}
  .report-metrics .metric-label{font-size:10px!important}
  .report-metrics .metric-value{font-size:clamp(12px,3.5vw,18px)!important;text-align:left!important}
  .report-metrics .metric-sub,.report-metrics .metric-spark{display:none}
  .vz-reports-grid{grid-template-columns:1fr;gap:12px;margin-top:12px}
  .vz-reports-grid .panel{grid-column:auto}
  .vz-report-line{height:auto;min-height:150px}
  .vz-donut-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .vz-donut{width:min(58vw,250px)}
  .vz-donut-list>div{grid-template-columns:11px minmax(0,1fr) 42px minmax(72px,auto);font-size:10.5px;gap:5px}
  .more-menu{display:none!important}
  .cloud-auth-page{display:block;min-height:100svh;background:radial-gradient(ellipse at 93% 0%,#007d7455,transparent 45%),linear-gradient(180deg,#071a32 0%,#001124 95%)}
  .cloud-auth-illustration{display:none}
  .cloud-auth-main{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;min-height:100svh;padding:26px 26px 60px}
  .cloud-auth-card{width:min(100%,420px);margin:20px auto 0;padding:0}
  .cloud-auth-mobile-logo{display:block;width:min(100%,275px);margin:15px auto 39px}
  .cloud-auth-card h1{font-size:clamp(30px,8vw,40px)}
  .cloud-auth-card>p{font-size:14px;margin:7px 0 27px}
  .cloud-auth-lang{margin-bottom:6px;opacity:.8}
  .cloud-auth-lang>span{display:none}
  .cloud-auth-form{gap:15px}
  .cloud-auth-form .input-shell>input{height:54px;font-size:16px}
  .cloud-auth-form .input-shell>span{font-size:11px}
  .cloud-auth-form>.btn.primary{min-height:57px;margin-top:13px}
  .cloud-auth-form .legal-acceptance{padding:13px 12px;margin:9px 0 0}
  .cloud-auth-form .legal-acceptance-row{font-size:12px}
  .auth-links{margin-top:17px}
  .auth-links>.btn.subtle{margin-top:0;width:100%;font-size:15px}
  .toast{bottom:17px}
  .delete-account-options{grid-template-columns:1fr}
}
@media(min-width:751px){.mobile-top{display:none}}
@media(max-width:370px){
  .mobile-top{grid-template-columns:39px minmax(0,1fr) 75px;gap:4px;padding-left:8px;padding-right:8px}
  .mobile-header-tools .privacy-eye{width:30px}
  .mobile-top .brand-home img{width:142px}
  .content{padding:13px 10px 40px}
  .vz-donut-list>div{font-size:9px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* O modo privacidade oculta números e embaralha a leitura dos gráficos. */
:root[data-hide-values=true] .bar-chart .bar,:root[data-hide-values=true] .chart-net-line,:root[data-hide-values=true] .vz-report-line,:root[data-hide-values=true] .vz-comparison-chart,:root[data-hide-values=true] .vz-donut{filter:blur(11px);user-select:none;pointer-events:none}
@media(max-width:750px){.report-metrics .metric-value{white-space:nowrap!important;overflow:hidden;text-overflow:clip;font-size:clamp(10px,2.85vw,15px)!important}.report-metrics .metric{padding:9px 8px!important}}
