/* Login/Cadastro global: body-level modal, sem dependência do overlay legado. */
html body #sr-login-modal.login-dropdown{
  position:fixed!important; inset:0!important; width:100%!important; min-width:0!important; max-width:none!important; max-height:none!important; left:0!important; top:0!important; right:0!important; bottom:0!important; height:100vh!important; height:100dvh!important;
  margin:0!important; padding:clamp(12px,3vw,28px)!important; box-sizing:border-box!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  overflow-x:hidden!important; overflow-y:auto!important; background:rgba(2,5,10,.78)!important;
  backdrop-filter:blur(8px)!important; -webkit-backdrop-filter:blur(8px)!important;
  border:0!important; border-radius:0!important; box-shadow:none!important; transform:none!important;
  opacity:0!important; visibility:hidden!important; pointer-events:none!important;
  z-index:2147483600!important;
}
html body #sr-login-modal.login-dropdown.active{opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
html body #sr-login-modal > .login-dropdown-content{
  position:relative!important; inset:auto!important; transform:none!important;
  width:min(480px,100%)!important; max-width:480px!important; min-width:0!important;
  height:auto!important; max-height:calc(100dvh - 24px)!important; margin:auto!important;
  padding:24px 26px 26px!important; box-sizing:border-box!important; overflow:auto!important;
  background:linear-gradient(180deg,#0c121d 0%,#090e17 100%)!important;
  border:1px solid #263247!important; border-radius:18px!important;
  box-shadow:0 28px 90px rgba(0,0,0,.68)!important; opacity:1!important; visibility:visible!important;
  z-index:1!important;
}
html body #sr-login-modal .modal-close{position:absolute!important;top:12px!important;right:12px!important;z-index:3!important;}
html body #sr-login-modal .login-tabs{margin:0 42px 20px 0!important;}
html body.sr-login-open{overflow:hidden!important;}
@media (max-width:600px){
  html body #sr-login-modal.login-dropdown{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;}
  html body #sr-login-modal > .login-dropdown-content{width:100%!important;max-width:430px!important;padding:20px 14px 16px!important;border-radius:15px!important;max-height:calc(100dvh - 16px)!important;}
}
@media (max-height:620px){html body #sr-login-modal.login-dropdown{align-items:flex-start!important;}html body #sr-login-modal > .login-dropdown-content{margin-top:8px!important;margin-bottom:8px!important;}}

html body #sr-login-modal #login-form,html body #sr-login-modal #register-form{width:100%!important;min-width:0!important;max-width:100%!important;display:block!important;float:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
html body #sr-login-modal .form-group{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
html body #sr-login-modal input[type="text"],html body #sr-login-modal input[type="email"],html body #sr-login-modal input[type="password"]{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
html body #sr-login-modal .login-submit,html body #sr-login-modal .register-submit{position:static!important;float:none!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:44px!important;transform:none!important;margin:16px 0 0!important;padding:12px 16px!important;box-sizing:border-box!important;text-align:center!important;white-space:normal!important}
html body #sr-login-modal>.login-dropdown-content{overflow-x:hidden!important;flex:0 1 480px!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important}
html body #sr-login-modal .remember-me{display:flex!important;align-items:center!important;gap:8px!important}
html body #sr-login-modal .remember-me input{width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important}

/* Pesquisa global: body-level modal, isolado do login e do overlay legado. */
#sr-search-modal.sr-search-dialog{
  position:fixed; inset:0; width:100vw; height:100vh; height:100dvh;
  margin:0; padding:clamp(12px,4vw,40px); box-sizing:border-box;
  display:flex; align-items:center; justify-content:center; overflow:auto;
  background:rgba(2,5,10,.78); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:0; border-radius:0; box-shadow:none; transform:none;
  opacity:0; visibility:hidden; pointer-events:none; z-index:110000;
}
#sr-search-modal.sr-search-dialog.active{opacity:1;visibility:visible;pointer-events:auto;}
#sr-search-modal > .sr-search-panel{
  position:relative; inset:auto; transform:none;
  width:min(680px,100%); max-width:680px; min-width:0; margin:auto;
  padding:28px; box-sizing:border-box;
  background:linear-gradient(180deg,#0b1220,#080e18); border:1px solid rgba(122,145,185,.28);
  border-radius:18px; box-shadow:0 28px 90px rgba(0,0,0,.68); opacity:1;visibility:visible;z-index:1;
}
#sr-search-modal .search-modal-heading{font-size:1.1rem;font-weight:800;color:#f6f8fc;margin:0 42px 18px 0;}
#sr-search-modal .modal-close{position:absolute;top:14px;right:14px;z-index:3;}
#sr-search-modal .search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%;margin:0;}
#sr-search-modal .search-modal-label{display:block;min-width:0;margin:0;}
#sr-search-modal .search-field{width:100%;height:48px;box-sizing:border-box;margin:0;padding:0 16px;border:1px solid #26354d;border-radius:12px;background:#070d17;color:#f7f9fc;font-size:16px;outline:none;}
#sr-search-modal .search-field:focus{border-color:#ff3d75;box-shadow:0 0 0 3px rgba(255,61,117,.12);}
#sr-search-modal .search-submit{height:48px;min-width:112px;padding:0 18px;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:linear-gradient(100deg,#ff336d,#9e37e8);color:#fff;font-weight:800;cursor:pointer;}
html body.sr-search-open{overflow:hidden;}
@media (max-width:600px){#sr-search-modal.sr-search-dialog{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));}#sr-search-modal > .sr-search-panel{padding:22px 16px 16px;border-radius:15px;}#sr-search-modal .search-form{grid-template-columns:1fr;}#sr-search-modal .search-submit{width:100%;min-width:0;}}
@media (max-height:520px){#sr-search-modal.sr-search-dialog{align-items:flex-start;}#sr-search-modal > .sr-search-panel{margin-top:8px;margin-bottom:8px;}}

/* Narrow compatibility overrides while the global skin still uses !important. */
#sr-search-modal input.search-field{background:#070d17!important;color:#f7f9fc!important;border:1px solid #26354d!important;border-radius:12px!important;outline:none!important;}
#sr-search-modal input.search-field:focus{border-color:#ff3d75!important;box-shadow:0 0 0 3px rgba(255,61,117,.12)!important;}
#sr-search-modal button{border-radius:12px!important;}
