/* MegaStream · TANDA 09 · archivo, seguridad de acceso y pulido responsive */
:root{--ms-emerald:#19df91;--ms-cyan:#35c6f9}
body[data-theme="dark"]{background-color:#02050d!important}
/* Acceso compacto: conservar paleta y comportamiento original de formularios. */
body #ms-auth .ms-modal{width:min(92vw,390px)!important;max-height:92dvh!important}
body #ms-auth .ms-modal-body{padding:10px 16px 16px!important;max-height:calc(92dvh - 55px)!important;overflow:auto!important}
body #ms-auth .ms-form{gap:7px!important}
body #ms-auth .ms-auth-brand img{width:56px!important;height:56px!important}
body #ms-auth .ms-form input,body #ms-auth .ms-form select{min-height:38px!important;padding:8px 10px!important}
.ms-reactivation-link{display:block;width:100%;min-height:42px;border:1px solid #4c9acb;border-radius:9px;background:transparent;color:#bde7ff;font-weight:700;cursor:pointer;padding:8px}
.ms-reactivation-wa{display:block;text-align:center;margin:14px 0 3px;color:#62eab2;font-weight:700;text-decoration:underline;overflow-wrap:anywhere}
#ms-reactivation-modal .ms-modal{width:min(94vw,480px);max-height:90dvh;overflow:auto}
/* Botones de compra: borde luminoso y barrido lateral discreto, sin sombras. */
body[data-theme="dark"] .producto>button:not(:disabled),body[data-theme="dark"] [data-international-cart]:not(:disabled){position:relative!important;overflow:hidden!important;border:2px solid #2bb6e9!important;background-color:#06172a!important;color:#f6fbff!important;box-shadow:none!important}
body[data-theme="dark"] .producto>button:not(:disabled)::after,body[data-theme="dark"] [data-international-cart]:not(:disabled)::after{content:""!important;position:absolute!important;top:-35%!important;bottom:-35%!important;left:-40%!important;width:22%!important;background:linear-gradient(90deg,transparent,#a5f4ff99,transparent)!important;transform:skewX(-20deg)!important;animation:ms-tanda09-sheen 4.5s ease-in-out infinite!important;pointer-events:none}
@keyframes ms-tanda09-sheen{0%,16%{left:-45%;opacity:0}28%{opacity:.65}56%{left:115%;opacity:.7}70%,100%{left:115%;opacity:0}}
/* Cabecera: reproductor y campana en espacios separados en móvil. */
body .music-bar{box-shadow:none!important}
body .radio-controls{box-shadow:none!important}
body .top-bar-right-elements{isolation:isolate}
body #ms-header-actions{position:relative!important;z-index:70!important;flex-shrink:0!important}
body #ms-news-button{position:relative!important;flex-shrink:0!important;touch-action:manipulation!important}
body .volume-control{position:relative!important;z-index:1!important;touch-action:pan-x!important}
body #volume-slider{touch-action:pan-x!important}
body #ms-balance,body #ms-account-balance,body .ms-wallet-card strong,body .ms-current-balance{color:var(--ms-emerald)!important;font-weight:800!important;font-variant-numeric:tabular-nums}
body .ms-account-button,body #ms-balance{border-radius:10px}
/* Actividad y solicitudes administrativas, sin mostrar valores inventados. */
#ms-admin .ms-account-activity{color:#eaf7ff}
#ms-admin .ms-activity-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}
#ms-admin .ms-activity-summary article{border:1px solid #286da4;border-radius:12px;background:#071b2b;padding:14px;display:grid;gap:4px}
#ms-admin .ms-activity-summary b{font-size:1.45rem;color:#51e9a7;font-variant-numeric:tabular-nums}
#ms-admin .ms-activity-summary span{color:#c8e5f9;font-size:.82rem}
#ms-admin .ms-account-activity .ms-admin-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#ms-admin .ms-account-activity .ms-admin-toolbar>*{max-width:100%}
#ms-admin .ms-account-activity .ms-activity-user{border:1px solid #205578;border-radius:10px;padding:12px;overflow-wrap:anywhere}
#ms-admin .ms-activity-state{display:inline-block;border:1px solid #4c9acb;border-radius:100px;padding:3px 9px;font-size:.72rem;white-space:normal}
#ms-admin .ms-activity-state.archived,#ms-admin .ms-activity-state.rejected{color:#ffb7bf;border-color:#ec667a}
#ms-admin .ms-activity-state.warned,#ms-admin .ms-activity-state.pending{color:#ffde91;border-color:#e4ac48}
#ms-admin .ms-activity-state.active,#ms-admin .ms-activity-state.approved{color:#76f3bd;border-color:#26c88b}
#ms-admin .ms-activity-user[hidden]{display:none!important}
/* Modo claro: contraste para categorías, tarjetas, controles, estadísticas y FAQ. */
body[data-theme="light"]{background:#eef4f9!important;color:#142b3d!important}
body[data-theme="light"] #ms-admin .ms-account-activity,body[data-theme="light"] #ms-admin .ms-activity-user{color:#18384c}
body[data-theme="light"] #ms-admin .ms-activity-summary article{background:#fff;border-color:#8aafc7}
body[data-theme="light"] #ms-admin .ms-activity-summary b{color:#047653}
body[data-theme="light"] #ms-admin .ms-activity-summary span{color:#355c74}
body[data-theme="light"] #ms-admin .ms-activity-state.archived{color:#9c1c32}
body[data-theme="light"] #ms-admin .ms-activity-state.warned{color:#805300}
body[data-theme="light"] #ms-admin .ms-activity-state.active{color:#046a4c}
body[data-theme="light"] #ms-admin .ms-account-activity .ms-note{color:#3b5365}
body[data-theme="light"] #ms-admin .ms-account-activity input,body[data-theme="light"] #ms-admin .ms-account-activity select{background:#fff!important;color:#102c43!important;border:1px solid #7398b0!important}
body[data-theme="light"] .producto{background:#fff!important;border-color:#9eb7ca!important}
body[data-theme="light"] .producto h2,body[data-theme="light"] .producto p,body[data-theme="light"] .producto small{color:#16354a!important}
body[data-theme="light"] .producto>button:not(:disabled){background:#0865ad!important;color:#fff!important;border:2px solid #0865ad!important}
body[data-theme="light"] .ms-reactivation-link{color:#075987;border-color:#548eb2}
body[data-theme="light"] #ms-reactivation-modal .ms-modal{background:#fff;color:#153349}
body[data-theme="light"] #ms-reactivation-modal input{background:#fff;color:#153349;border-color:#8ba7bb}
@media(max-width:760px){
  body .site-header .header-main-bar{min-width:0!important}
  body .site-header .header-center-area{min-width:0!important}
  body .site-header .top-bar-right-elements{flex:0 0 auto!important;min-width:40px!important;position:relative!important;z-index:70!important}
  body #ms-news-button{width:34px!important;min-width:34px!important;height:34px!important}
  body .radio-controls{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
  body .radio-controls .volume-control{min-width:36px!important;width:42px!important;margin:0!important;overflow:visible!important}
  body #volume-slider{width:30px!important;min-width:30px!important}
  #ms-admin .ms-activity-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ms-admin .ms-account-activity .ms-admin-toolbar>input,#ms-admin .ms-account-activity .ms-admin-toolbar>select{flex:1 1 180px;min-width:0}
}
@media(max-width:380px){body #ms-auth .ms-modal{width:95vw!important}#ms-admin .ms-activity-summary{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){body .producto>button::after,body [data-international-cart]::after{animation:none!important}body #ms-news-button{animation:none!important}}
