/* PRONTO FLUX — acabamento somente no menu da conta, 30/10/2026.
   Mantém intactos links, regras de assinatura e lógica de bloqueio. */
.account-popover.header-popover{
  border:1px solid color-mix(in srgb,var(--red,#d71920) 23%,var(--border,#343438))!important;
  border-radius:19px!important;
  background:linear-gradient(155deg,color-mix(in srgb,var(--red,#d71920) 5%,var(--panel,#1e1e21)),var(--panel,#1e1e21) 44%)!important;
  box-shadow:0 25px 65px rgba(0,0,0,.32),0 2px 14px rgba(0,0,0,.1)!important;
}
.account-popover .header-popover-head{
  min-height:55px!important;padding:0 17px!important;
  background:color-mix(in srgb,var(--red,#d71920) 5%,var(--panel2,#252529));
  border-bottom:1px solid var(--border,#38383f)!important;
}
.account-popover .header-popover-head b{
  color:var(--text,#f8f8fa)!important;font-size:13px!important;font-weight:850!important;letter-spacing:.01em;
}
.account-popover .header-popover-close{
  width:31px!important;height:31px!important;border-radius:10px!important;
  display:grid!important;place-items:center!important;
  background:color-mix(in srgb,var(--panel3,#33333b) 82%,transparent)!important;
  color:var(--muted,#b9b9c0)!important;font-size:19px!important;
  transition:background .17s,color .17s;
}
.account-popover .header-popover-close:hover{
  color:var(--text,#fff)!important;background:color-mix(in srgb,var(--red,#d71920) 17%,var(--panel3,#33333b))!important;
}
.account-popover .header-popover-body{padding:16px!important;line-height:1.5}
.account-popover .header-popover-body >p,
.account-popover .header-popover-body >div >p{line-height:1.6}
.account-popover .account-popover-profile{
  padding:12px!important;gap:12px!important;border-radius:14px!important;
  border:1px solid var(--border,#3a3a41)!important;
  background:color-mix(in srgb,var(--panel2,#28282b) 90%,transparent)!important;
}
.account-popover .account-popover-profile b{font-size:14px!important;line-height:1.4}
.account-popover .account-popover-profile span{font-size:11px!important}
.account-popover .account-popover-profile small{font-size:10px!important;padding:4px 9px!important}
.account-popover .account-popover-section{margin-top:14px!important;padding-top:12px!important}
.account-popover .account-section-head span{font-size:10px!important;letter-spacing:.05em}
.account-popover .account-menu-row{
  min-height:54px!important;
  grid-template-columns:36px minmax(0,1fr) 16px!important;
  gap:10px!important;padding:10px 12px!important;margin:5px 0!important;
  border-radius:13px!important;
  transition:background .18s,border-color .18s,transform .18s;
}
.account-popover .account-menu-row>span:first-child{
  width:35px;height:35px;border-radius:10px;
  background:color-mix(in srgb,var(--red,#d71920) 9%,var(--panel2,#28282b));
  color:var(--red,#d71920)!important;
}
.account-popover .account-menu-row p b{font-size:12px!important;line-height:1.45!important}
.account-popover .account-menu-row p small{font-size:10px!important;line-height:1.4!important}
.account-popover .account-menu-row[data-account-page="subscription"]{
  border:1px solid color-mix(in srgb,var(--red,#d71920) 31%,var(--border,#3a3a42))!important;
  background:color-mix(in srgb,var(--red,#d71920) 8%,var(--panel2,#29292d))!important;
}
.account-popover .account-menu-row[data-account-page="subscription"]:hover{
  transform:translateY(-1px);border-color:var(--red,#d71920)!important;
  background:color-mix(in srgb,var(--red,#d71920) 14%,var(--panel2,#29292d))!important;
}
.account-popover .account-logout-btn{
  min-height:43px!important;margin-top:14px!important;padding:11px 13px!important;
  border:1px solid color-mix(in srgb,var(--red,#d71920) 25%,var(--border,#34343b))!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--red,#d71920) 7%,var(--panel2,#29292d))!important;
  color:#f05b64!important;font-size:12px!important;font-weight:800!important;
}
.account-popover .account-logout-btn:hover{
  background:color-mix(in srgb,var(--red,#d71920) 14%,var(--panel2,#29292d))!important;
}
@media(max-width:480px){
  .account-popover .header-popover-body{padding:12px!important}
  .account-popover .account-menu-row{padding:9px 10px!important}
}
@media(prefers-reduced-motion:reduce){
  .account-popover .account-menu-row{transition:none!important}
  .account-popover .account-menu-row:hover{transform:none!important}
}


/* 30/10/2026 — menu da conta de ASSINATURA ENCERRADA.
   Este menu é criado por headerPopover() e não recebe a classe
   .account-popover: por isso o acabamento padrão acima não o alcançava.
   Somente apresentação; preserva handlers, cobrança e bloqueio. */
.header-popover:has(.pf-subscription-expired-pop){
  border:1px solid color-mix(in srgb,var(--red,#d71920) 30%,var(--border,#38383d))!important;
  border-radius:20px!important;
  background:linear-gradient(150deg,color-mix(in srgb,var(--red,#d71920) 5%,var(--panel,#1d1d20)),var(--panel,#1d1d20) 55%)!important;
  box-shadow:0 22px 65px rgba(0,0,0,.36),0 6px 24px rgba(0,0,0,.12)!important;
}
.header-popover:has(.pf-subscription-expired-pop) .header-popover-head{
  min-height:56px!important;padding:0 17px!important;
  background:color-mix(in srgb,var(--red,#d71920) 5%,var(--panel2,#29292d))!important;
  border-bottom:1px solid var(--border,#35353b)!important;
}
.header-popover:has(.pf-subscription-expired-pop) .header-popover-head b{
  font-size:13px!important;font-weight:850!important;letter-spacing:.01em!important;
}
.header-popover:has(.pf-subscription-expired-pop) .header-popover-close{
  width:32px!important;height:32px!important;display:grid!important;place-items:center!important;
  border-radius:10px!important;background:var(--panel3,#323239)!important;color:var(--muted,#a8a8ae)!important;
}
.header-popover:has(.pf-subscription-expired-pop) .header-popover-close:hover{
  color:var(--text,#fff)!important;background:color-mix(in srgb,var(--red,#d71920) 18%,var(--panel3,#323239))!important;
}
.header-popover:has(.pf-subscription-expired-pop) .header-popover-body{
  display:grid!important;gap:11px!important;padding:16px!important;
}
.header-popover .pf-subscription-expired-pop{
  position:relative;overflow:hidden;
  display:grid;gap:7px;padding:15px 15px 16px!important;margin:0!important;
  border:1px solid color-mix(in srgb,var(--red,#d71920) 33%,var(--border,#38383d))!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--red,#d71920) 10%,var(--panel2,#29292d)),var(--panel2,#29292d))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.045);
}
.header-popover .pf-subscription-expired-pop::before{
  content:"●  ACESSO PAUSADO";display:block;margin-bottom:4px;
  color:#fb727b;font-size:9px;font-weight:900;letter-spacing:.11em;line-height:1.3;
}
.header-popover .pf-subscription-expired-pop strong{
  display:block;font-size:16px!important;font-weight:900!important;line-height:1.3!important;
  letter-spacing:-.025em!important;color:var(--text,#fff)!important;
}
.header-popover .pf-subscription-expired-pop p{
  margin:0!important;color:var(--muted,#b7b7be)!important;
  font-size:11px!important;line-height:1.65!important;
}
.header-popover #expiredAccountPlans{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;width:100%!important;min-height:51px!important;
  margin:0!important;padding:13px 14px!important;white-space:normal!important;
  border:1px solid color-mix(in srgb,var(--red,#d71920) 46%,var(--border,#38383d))!important;
  border-radius:13px!important;text-align:left!important;
  background:color-mix(in srgb,var(--red,#d71920) 14%,var(--panel2,#29292d))!important;
  color:var(--text,#fff)!important;font-size:13px!important;font-weight:850!important;
  line-height:1.4!important;cursor:pointer;transition:background .18s,border-color .18s,transform .18s;
}
.header-popover #expiredAccountPlans::after{
  content:"›";font-size:23px;line-height:14px;font-weight:600;color:#f16a72;margin-left:8px;
}
.header-popover #expiredAccountPlans:hover,
.header-popover #expiredAccountPlans:focus-visible{
  background:color-mix(in srgb,var(--red,#d71920) 22%,var(--panel2,#29292d))!important;
  border-color:var(--red,#d71920)!important;transform:translateY(-1px);
}
.header-popover #expiredAccountLogout{
  box-sizing:border-box!important;width:100%!important;min-height:44px!important;
  margin:1px 0 0!important;padding:10px 12px!important;
  border:1px solid color-mix(in srgb,var(--red,#d71920) 21%,var(--border,#35353b))!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--red,#d71920) 5%,var(--panel2,#29292d))!important;
  color:#f17179!important;font-size:12px!important;font-weight:800!important;
}
.header-popover #expiredAccountLogout:hover,
.header-popover #expiredAccountLogout:focus-visible{
  background:color-mix(in srgb,var(--red,#d71920) 12%,var(--panel2,#29292d))!important;
}
@media(max-width:480px){
  .header-popover:has(.pf-subscription-expired-pop) .header-popover-body{padding:12px!important}
  .header-popover .pf-subscription-expired-pop{padding:13px!important}
}
@media(prefers-reduced-motion:reduce){
  .header-popover #expiredAccountPlans{transition:none!important}
  .header-popover #expiredAccountPlans:hover{transform:none!important}
}
