/* =========================================================
   SILVER STORE · HEADER GLOBAL PREMIUM · V1
   Portada y catálogos: negro + plateado + dorado + morado
   Ligero: CSS puro, sin librerías externas.
   ========================================================= */
.silver-global-header,
.silver-global-header *{box-sizing:border-box}
.silver-global-header{
  position:relative;
  z-index:190;
  width:100%;
  height:64px;
  border-bottom:1px solid rgba(141,91,255,.22);
  background:
    linear-gradient(90deg,#090b10 0%,#12131e 48%,#190f22 78%,#221408 100%);
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.silver-global-header-inner{
  width:min(960px,calc(100% - 32px));
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.silver-global-brand{
  width:260px;
  height:54px;
  display:grid;
  place-items:center;
  flex:0 1 260px;
  text-decoration:none;
}
.silver-global-brand img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:left center;
  filter:drop-shadow(0 0 10px rgba(145,109,255,.10));
}
.silver-global-actions,.sg-user-actions,.sg-guest-actions{
  display:flex;
  align-items:center;
  gap:9px;
}
.sg-install{
  width:40px;
  min-width:40px;
  height:36px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(141,91,255,.36);
  border-radius:8px;
  color:#f5cf6b;
  background:linear-gradient(180deg,rgba(23,16,38,.92),rgba(11,12,18,.96));
  box-shadow:inset 0 0 0 1px rgba(241,199,90,.05);
  cursor:pointer;
}
.sg-install-icon,.sg-install-icon svg{width:20px;height:20px;display:block}
.sg-install-icon svg{
  stroke:currentColor;
  stroke-width:2.15;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sg-guest-actions a{
  text-decoration:none;
  font-size:11px;
  font-weight:850;
}
.sg-guest-actions>a:first-child{color:#d7dce7;padding:9px 8px}
.sg-create{
  padding:10px 15px!important;
  border-radius:8px;
  color:#140d04!important;
  background:linear-gradient(135deg,#e8edf6 0%,#ffe08c 44%,#d5a22c 100%);
}
.sg-balance{
  height:39px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border:1px solid rgba(141,91,255,.34);
  border-radius:9px;
  background:linear-gradient(180deg,rgba(16,18,26,.95),rgba(13,14,19,.98));
  box-shadow:inset 0 0 0 1px rgba(241,199,90,.05);
  text-decoration:none;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.sg-wallet-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#fff;
  background:linear-gradient(145deg,#8d5bff 0%,#7f49f6 48%,#d5a22c 100%);
  box-shadow:0 0 16px rgba(141,91,255,.22);
}
.sg-balance small,.sg-balance b{display:block}
.sg-balance small{color:#909cb1;font-size:6px;letter-spacing:.55px;line-height:1.1}
.sg-balance b{margin-top:1px;color:#ffe08c;font-size:12px;line-height:1.15;white-space:nowrap}
.sg-account-menu{position:relative;display:flex;align-items:center}
.sg-user-menu-button{
  min-width:0;
  width:auto;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 10px 0 13px;
  border:1px solid rgba(241,199,90,.16);
  border-radius:8px;
  color:#171006;
  background:linear-gradient(135deg,#ffe08c 0%,#f1c75a 48%,#c9911f 100%);
  box-shadow:0 7px 18px rgba(0,0,0,.18),0 0 13px rgba(141,91,255,.06);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.sg-menu-chevron{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:13px;
  height:13px;
  color:#271707;
  font-size:12px;
  line-height:1;
  transform-origin:center;
  transition:transform .18s ease;
}
.sg-account-menu.open .sg-menu-chevron{transform:rotate(180deg)}
.sg-user-dropdown{
  position:absolute;
  z-index:300;
  top:calc(100% + 9px);
  right:0;
  width:286px;
  padding:13px;
  border:1px solid rgba(151,112,255,.28);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0,rgba(141,91,255,.12),transparent 35%),
    linear-gradient(180deg,rgba(18,20,29,.985),rgba(9,10,15,.99));
  box-shadow:0 18px 48px rgba(0,0,0,.52),0 0 24px rgba(141,91,255,.07);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-5px) scale(.985);
  transform-origin:top right;
  transition:opacity .15s ease,transform .15s ease,visibility .15s;
}
.sg-account-menu.open .sg-user-dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
.sg-user-dropdown::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-11px;
  height:12px;
}
.sg-user-dropdown-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px 13px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.sg-user-dropdown-head strong,.sg-user-dropdown-head small{display:block}
.sg-user-dropdown-head strong{
  max-width:210px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f4f6fa;
  font-size:14px;
}
.sg-user-dropdown-head small{
  max-width:210px;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#818a98;
  font-size:9.5px;
}
.sg-dropdown-status{color:#62e99d;font-size:8px;text-shadow:0 0 8px rgba(98,233,157,.35)}
.sg-user-dropdown nav{display:grid;gap:3px;padding-top:6px}
.sg-user-dropdown nav a{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 11px;
  border-radius:9px;
  color:#d8dde6;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  transition:background .15s ease,color .15s ease;
}
.sg-user-dropdown nav a span{width:20px;color:#f1c75a;text-align:center;font-size:12px}
.sg-user-dropdown nav a:hover{color:#fff;background:rgba(141,91,255,.09)}
.sg-user-dropdown .sg-admin-link{color:#ffe08c}
.sg-user-dropdown-logout{
  width:100%;
  min-height:41px;
  margin-top:8px;
  padding:0 11px;
  border:0;
  border-top:1px solid rgba(255,255,255,.06);
  border-radius:0 0 8px 8px;
  color:#ff7883;
  background:transparent;
  text-align:left;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.sg-user-dropdown-logout:hover{background:rgba(255,89,103,.06)}
.sg-install-toast{
  position:fixed;
  z-index:400;
  right:18px;
  top:76px;
  max-width:330px;
  padding:11px 14px;
  border:1px solid rgba(141,91,255,.44);
  border-radius:10px;
  color:#f4f6fb;
  background:linear-gradient(180deg,rgba(15,17,24,.98),rgba(11,13,19,.99));
  box-shadow:0 12px 35px rgba(0,0,0,.50),0 0 20px rgba(141,91,255,.10);
  font-size:11px;
  line-height:1.45;
  opacity:0;
  transform:translateY(-5px);
  transition:.18s ease;
}
.sg-install-toast.show{opacity:1;transform:none}
@media(hover:hover) and (pointer:fine){
  .sg-balance:hover{border-color:rgba(141,91,255,.52);box-shadow:0 0 18px rgba(141,91,255,.11);transform:translateY(-1px)}
  .sg-install:hover{border-color:rgba(241,199,90,.42);color:#ffe08c}
}
@media(max-width:820px){
  .silver-global-header{height:66px}
  .silver-global-header-inner{width:calc(100% - 22px);gap:8px}
  .silver-global-brand{width:180px;height:56px;flex-basis:180px}
  .sg-user-menu-button{width:36px;min-width:36px;padding:0}
  .sg-user-menu-button #sgHeaderName{display:none}
  .sg-menu-chevron{width:16px;height:16px;font-size:14px}
  .sg-user-dropdown{position:fixed;top:66px;right:10px;width:min(292px,calc(100vw - 20px))}
}
@media(max-width:520px){
  .silver-global-header-inner{width:calc(100% - 16px)}
  .silver-global-brand{width:128px;height:52px;flex-basis:128px}
  .silver-global-actions,.sg-user-actions,.sg-guest-actions{gap:6px}
  .sg-install{width:36px;min-width:36px;padding:0}
  .sg-install-icon,.sg-install-icon svg{width:18px;height:18px}
  .sg-balance{height:37px;padding:4px 6px;gap:5px}
  .sg-wallet-icon{width:25px;height:25px}
  .sg-balance small{font-size:5px}.sg-balance b{font-size:10px}
  .sg-guest-actions>a:first-child{display:none}
  .sg-create{padding:9px 10px!important;font-size:10px!important}
  .sg-user-dropdown{top:65px;right:8px;width:calc(100vw - 16px)}
  .sg-install-toast{left:10px;right:10px;top:74px;max-width:none}
}

/* PATCH 2026-09-12: recarga clara + estado invitado sin saldo */
.sg-user-actions[hidden],.sg-guest-actions[hidden]{display:none!important}
.sg-wallet-icon{
  color:#ffd85a;
  border:1px solid rgba(255,215,80,.72);
  background:radial-gradient(circle at 35% 28%,rgba(255,247,184,.42),rgba(255,194,34,.16) 42%,rgba(83,49,0,.28) 100%);
  box-shadow:0 0 8px rgba(255,196,36,.42),0 0 18px rgba(255,171,0,.22),inset 0 0 8px rgba(255,232,129,.18);
}
.sg-wallet-icon svg{width:24px;height:24px;overflow:visible}
.sg-wallet-icon svg ellipse,.sg-wallet-icon svg path,.sg-wallet-icon svg circle{
  fill:#ffc928;stroke:#fff0a0;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 2px rgba(255,200,35,.95));
}
.sg-wallet-icon svg circle{fill:#ffb900}
.sg-wallet-icon svg path:last-child,.sg-wallet-icon svg path:nth-last-child(2){fill:none;stroke:#fff6c7;stroke-width:2}
.sg-balance{border-color:rgba(241,199,90,.38)}
@media(hover:hover) and (pointer:fine){.sg-balance:hover{border-color:rgba(255,211,75,.68);box-shadow:0 0 18px rgba(255,185,24,.16)}}


/* SILVER STORE V5 · icono monedas doradas aprobado en categorias */
.sg-wallet-icon.sg-wallet-coins{background:transparent!important;color:inherit!important;box-shadow:none!important;border:0!important;border-radius:0!important;width:32px!important;height:32px!important;padding:0!important;overflow:visible!important}
.sg-wallet-icon.sg-wallet-coins svg{display:block;width:32px!important;height:32px!important;overflow:visible!important;filter:drop-shadow(0 0 3px rgba(255,199,40,.95)) drop-shadow(0 0 7px rgba(240,154,0,.45))}
.sg-wallet-icon.sg-wallet-coins svg ellipse,.sg-wallet-icon.sg-wallet-coins svg path,.sg-wallet-icon.sg-wallet-coins svg circle{filter:none}
@media(max-width:420px){.sg-wallet-icon.sg-wallet-coins,.sg-wallet-icon.sg-wallet-coins svg{width:29px!important;height:29px!important}}
