
/* v7.95 — suíte premium do perfil, topo e conta */
:root{
  --dimi-brand-1:#36df9c;
  --dimi-brand-2:#12b7aa;
  --dimi-brand-3:#0f5fa8;
  --dimi-navy-1:#071624;
  --dimi-navy-2:#0d2338;
  --dimi-muted-1:#607089;
  --dimi-surface-1:#ffffff;
  --dimi-surface-2:#f6fafc;
}
.topbar-user-btn{
  position:relative!important;
  min-height:54px!important;
  padding:7px 12px 7px 8px!important;
  border-radius:18px!important;
  border:1px solid rgba(15,95,168,.14)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbfc 100%)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.9);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.topbar-user-btn:hover,.topbar-user-btn:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(18,183,170,.24)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.09),0 0 0 4px rgba(18,183,170,.08);
}
.topbar-user-btn::before{
  content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;
  background:linear-gradient(135deg,rgba(54,223,156,.24),rgba(18,183,170,.16),rgba(15,95,168,.20));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;opacity:.7;
}
#current-user-avatar.user-avatar{width:42px!important;height:42px!important;min-width:42px!important;box-shadow:0 10px 22px rgba(2,16,28,.12)!important}
.topbar-user-copy{display:grid!important;gap:2px!important;min-width:0}
.topbar-user-copy b{font-size:13.5px!important;color:#334155!important;line-height:1.15!important;max-width:175px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-user-copy small{font-size:11px!important;color:#64748b!important;font-weight:700!important;line-height:1.2!important}
.topbar-user-chevron{display:grid!important;place-items:center!important;width:18px!important;height:18px!important;color:#7b8aa1!important;transition:transform .18s ease,color .18s ease!important}
.topbar-user-btn[aria-expanded="true"] .topbar-user-chevron{transform:rotate(180deg);color:#0f5fa8!important}
.topbar-user-status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#2ecc71;box-shadow:0 0 0 4px rgba(46,204,113,.12);margin-right:6px;vertical-align:middle}
.topbar-user-meta{display:inline-flex;align-items:center;gap:2px}

.account-drawer-head{
  justify-content:space-between!important;align-items:center!important;
}
.dimi-v795-drawer-kicker{display:flex;align-items:center;gap:10px;min-width:0}
.dimi-v795-drawer-mark{
  width:38px;height:38px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--dimi-brand-1),var(--dimi-brand-3));
  color:#fff;font-size:16px;font-weight:900;box-shadow:0 10px 22px rgba(15,95,168,.18);
}
.dimi-v795-drawer-copy{display:grid;gap:2px;min-width:0}
.dimi-v795-drawer-copy strong{font-size:13px;color:#0f2236;line-height:1.1}
.dimi-v795-drawer-copy span{font-size:11px;color:#71839a;line-height:1.2}
.account-profile{padding-top:16px!important}
.account-profile .user-avatar{margin-top:2px!important}
.account-profile h3{font-size:19px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-profile p{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dimi-v795-profile-strip{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.dimi-v795-profile-pill{
  display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;
  background:rgba(15,95,168,.06);border:1px solid rgba(15,95,168,.10);color:#4f647b;font-size:10.5px;font-weight:800;
}
.dimi-v795-profile-pill i{width:8px;height:8px;border-radius:999px;background:linear-gradient(135deg,var(--dimi-brand-1),var(--dimi-brand-2));display:inline-block}
.account-section{overflow:visible!important}
.account-section-title{display:flex;align-items:center;justify-content:space-between}
.dimi-v795-section-badge{font-size:10px;color:#0f5fa8;background:rgba(15,95,168,.08);padding:3px 8px;border-radius:999px;border:1px solid rgba(15,95,168,.10)}
.account-action--enhanced .copy small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#modal-root .modal .modal-header{position:sticky;top:0;z-index:2}
#modal-root .modal .modal-footer{position:sticky;bottom:0;z-index:2}
#modal-root .modal .btn.secondary{
  background:linear-gradient(180deg,#ffffff,#f4f7fb)!important;
  color:#334155!important;border:1px solid rgba(15,95,168,.12)!important;
}
#modal-root .modal .btn.primary{
  background:linear-gradient(135deg,#14c88b,#0f5fa8)!important;
  color:#fff!important;box-shadow:0 12px 28px rgba(15,95,168,.18)!important;
}
#modal-root .modal .btn.primary:disabled{box-shadow:none!important}
#modal-root .modal .btn.primary:hover{filter:saturate(1.02)}

.dimi-v795-profile-note{
  display:flex;align-items:flex-start;gap:10px;padding:12px 14px;
  border-radius:16px;border:1px solid rgba(15,95,168,.10);
  background:linear-gradient(180deg,#f6fbff,#f5fffb);
  color:#567086;font-size:12px;line-height:1.5;
}
.dimi-v795-profile-note .icon{
  width:30px;height:30px;min-width:30px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(54,223,156,.18),rgba(15,95,168,.10));color:#0f5fa8;
}
.dimi-v795-fieldset{display:grid;gap:12px}
.dimi-v795-data-modal .profile-view-grid{margin-top:14px}
.dimi-v795-data-modal .profile-view-item{position:relative;overflow:hidden}
.dimi-v795-data-modal .profile-view-item::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--dimi-brand-1),var(--dimi-brand-3));opacity:.7}
.dimi-v795-pass-modal .form-grid{gap:16px!important}
.dimi-v795-pass-strength{display:flex;gap:8px;align-items:center;font-size:11px;color:#64748b;margin-top:6px}
.dimi-v795-pass-strength .bar{height:7px;flex:1;border-radius:999px;background:#e2e8f0;overflow:hidden}
.dimi-v795-pass-strength .bar span{display:block;height:100%;width:0;background:linear-gradient(135deg,#f59e0b,#10b981);transition:width .18s ease}
.dimi-v795-photo-modal .modal-footer,
.dimi-v795-pass-modal .modal-footer,
.dimi-v795-data-modal .modal-footer{gap:10px!important}

html[data-theme="dark"] .topbar-user-btn{background:linear-gradient(180deg,#0d1828,#0b1424)!important;border-color:#22354b!important;box-shadow:0 12px 28px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .topbar-user-copy b{color:#e5eef8!important}
html[data-theme="dark"] .topbar-user-copy small,html[data-theme="dark"] .dimi-v795-drawer-copy span{color:#9fb1c8!important}
html[data-theme="dark"] .dimi-v795-drawer-copy strong{color:#f8fafc!important}
html[data-theme="dark"] .dimi-v795-profile-pill{background:#102134;border-color:#23445f;color:#a8bdd4}
html[data-theme="dark"] #modal-root .modal .btn.secondary{background:#0f1b2f!important;color:#e5eef8!important;border-color:#284157!important}
html[data-theme="dark"] .dimi-v795-profile-note{background:#0f1b2f!important;border-color:#274157!important;color:#b8c8da}
html[data-theme="dark"] .dimi-v795-pass-strength{color:#9db0c8}

@media(max-width:760px){
  .topbar-user-btn{padding:6px 8px!important}
  .topbar-user-copy{display:none!important}
}

/* v7.96.13 — painel Minha conta sempre completo na viewport */
.account-drawer{
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.account-drawer-head{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
}
.account-profile{
  flex:0 0 auto!important;
}
.account-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding-bottom:10px!important;
}
.account-footer{
  position:relative!important;
  bottom:auto!important;
  flex:0 0 auto!important;
  margin-top:0!important;
  z-index:6!important;
  padding-bottom:max(14px,env(safe-area-inset-bottom))!important;
  box-shadow:0 -10px 24px rgba(2,16,28,.06)!important;
}
.account-footer .btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
}

@media(max-height:900px){
  .account-drawer-head{padding:9px 12px!important}
  .dimi-v795-drawer-mark{width:34px!important;height:34px!important;border-radius:12px!important}
  .account-close{width:36px!important;height:36px!important}
  .account-profile{padding:10px 18px 10px!important}
  .account-profile .user-avatar{width:64px!important;height:64px!important;min-width:64px!important;margin:0 auto 8px!important}
  .account-profile h3{font-size:16px!important}
  .account-profile p{font-size:11px!important;margin-top:3px!important}
  .account-status{margin-top:7px!important;padding:5px 10px!important}
  .dimi-v795-profile-strip{margin-top:8px!important;gap:6px!important}
  .dimi-v795-profile-pill{padding:5px 8px!important;font-size:9.5px!important}
  .account-body{padding:10px 12px!important;gap:9px!important}
  .account-section-title{padding:8px 11px!important}
  .account-info-row{padding:8px 11px!important}
  .account-action--enhanced{padding:10px 11px!important;gap:10px!important}
  .account-action--enhanced .ico{width:36px!important;height:36px!important;min-width:36px!important}
  .account-action--enhanced .copy strong{font-size:12.5px!important}
  .account-action--enhanced .copy small{font-size:10px!important}
  .account-footer{padding:10px 12px max(10px,env(safe-area-inset-bottom))!important}
  .account-footer .btn{min-height:42px!important}
}
