/* Hiro Coin (HC) shared header wallet + top-up */
.hc-header-wallet{display:flex;align-items:center;direction:ltr;flex:0 0 auto}
.hc-wallet-button{
  height:40px;
  min-width:146px;
  padding:3px 4px 3px 5px;
  display:grid;
  grid-template-columns:34px minmax(48px,1fr) 30px;
  align-items:center;
  gap:7px;
  border:1px solid rgba(219,174,79,.34);
  border-radius:13px;
  background:
    radial-gradient(circle at 15% 0,rgba(34,122,229,.12),transparent 55%),
    linear-gradient(180deg,rgba(13,29,50,.96),rgba(8,21,38,.98));
  color:#f2c968;
  box-shadow:
    0 8px 22px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 0 0 1px rgba(29,100,174,.08);
  font:inherit;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease
}
.hc-wallet-button:hover{
  transform:translateY(-1px);
  border-color:rgba(242,196,94,.56);
  background:
    radial-gradient(circle at 15% 0,rgba(37,133,245,.16),transparent 55%),
    linear-gradient(180deg,rgba(15,34,58,.98),rgba(9,23,42,.99));
  box-shadow:0 10px 27px rgba(0,0,0,.2),0 0 0 1px rgba(232,184,78,.08),inset 0 1px 0 rgba(255,255,255,.055)
}
.hc-wallet-button:focus-visible{outline:2px solid rgba(73,159,255,.72);outline-offset:2px}
.hc-wallet-coin{
  width:32px;height:32px;
  display:grid;place-items:center;
  border-radius:50%;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.20));
  overflow:visible
}
.hc-wallet-coin img{width:32px;height:32px;display:block;max-width:none}
.hc-balance-value{
  min-width:0;
  color:#f3cb6e;
  font-size:.78rem;
  font-weight:950;
  line-height:1;
  letter-spacing:.015em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  text-align:center;
  text-shadow:0 0 11px rgba(222,171,62,.13)
}
.hc-wallet-plus{
  width:28px;height:30px;
  display:grid;place-items:center;
  border:1px solid rgba(228,181,79,.37);
  border-radius:9px;
  background:linear-gradient(180deg,rgba(28,32,34,.9),rgba(16,24,34,.95));
  color:#f4cd70;
  font-size:1.12rem;
  font-weight:600;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 12px rgba(213,158,47,.06)
}
.hc-header-wallet.is-loading .hc-balance-value{opacity:.52}
.service-os .hc-wallet-button,
html[data-theme="dark"] .hc-wallet-button{
  border-color:rgba(224,179,79,.36);
  background:
    radial-gradient(circle at 13% 0,rgba(19,115,230,.14),transparent 55%),
    linear-gradient(180deg,rgba(10,27,49,.98),rgba(6,19,36,.99));
  color:#f2c968
}
.hc-modal-backdrop{position:fixed;inset:0;z-index:2200;display:grid;place-items:center;padding:20px;background:rgba(10,20,36,.42);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}.hc-modal-backdrop[hidden]{display:none!important}
.hc-modal{width:min(560px,100%);max-height:min(760px,calc(100dvh - 28px));overflow:auto;border:1px solid rgba(28,42,67,.10);border-radius:28px;background:rgba(255,255,255,.985);box-shadow:0 30px 90px rgba(24,41,73,.28);color:#1a2940;direction:var(--hc-dir,ltr)}
.hc-modal-head{position:relative;padding:25px 26px 16px;text-align:center}.hc-modal-coin{width:70px;height:70px;display:block;margin:0 auto 10px;filter:drop-shadow(0 10px 18px rgba(162,109,18,.20))}.hc-modal-head h2{margin:0;font-size:1.28rem;font-weight:950}.hc-modal-head p{max-width:410px;margin:7px auto 0;color:#718096;font-size:.84rem;line-height:1.75}
.hc-modal-close{position:absolute;top:16px;inset-inline-end:17px;width:34px;height:34px;border:0;border-radius:11px;background:#f3f6fa;color:#506078;font-size:1.25rem;cursor:pointer}.hc-modal-body{padding:6px 24px 24px}.hc-section-label{display:block;margin:10px 1px 8px;font-size:.72rem;font-weight:950;color:#59677a}
.hc-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.hc-package{min-height:94px;padding:13px 8px;border:1px solid #e4e9f0;border-radius:16px;background:#fbfcfe;text-align:center;color:#26364d;cursor:pointer}.hc-package strong{display:block;font-size:1.05rem;font-weight:950}.hc-package small{display:block;margin-top:6px;color:#7a8797;font-size:.72rem}.hc-package[aria-pressed="true"]{border-color:#d9a332;background:linear-gradient(180deg,#fffdf5,#fff8df);box-shadow:inset 0 0 0 1px rgba(217,163,50,.22),0 8px 22px rgba(185,126,15,.09)}
.hc-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hc-payment-card{min-height:68px;padding:11px 12px;border:1px solid #e4e9f0;border-radius:15px;background:#fbfcfe;display:flex;align-items:center;gap:10px;text-align:start;color:#27374e}.hc-payment-card[aria-pressed="true"]{border-color:#68a4f1;background:#f1f7ff}.hc-payment-card:disabled{opacity:.56;cursor:not-allowed}.hc-payment-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid #e3e8ef}.hc-payment-copy strong,.hc-payment-copy small{display:block}.hc-payment-copy strong{font-size:.8rem}.hc-payment-copy small{margin-top:3px;color:#8692a1;font-size:.65rem}
.hc-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px}.hc-method-card{position:relative;min-width:0;min-height:58px;padding:8px 9px;border:1px solid #e1e7ef;border-radius:12px;background:#fff;color:#26364d;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:7px;text-align:start;font:inherit;cursor:pointer}.hc-method-card[aria-checked="true"]{border-color:#68a4f1;background:#f1f7ff;box-shadow:inset 0 0 0 1px rgba(104,164,241,.12)}.hc-method-asset{width:30px;height:30px;display:grid;place-items:center;border:1px solid #dfe6ee;border-radius:9px;background:#f8fafc;color:#1e5fae;font-size:.61rem;font-weight:950}.hc-method-copy{min-width:0}.hc-method-copy strong,.hc-method-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hc-method-copy strong{font-size:.68rem}.hc-method-copy small{margin-top:2px;color:#8794a4;font-size:.58rem}.hc-method-recommended{position:absolute;top:-7px;inset-inline-end:7px;padding:2px 5px;border:1px solid #e4bf67;border-radius:999px;background:#fff8df;color:#8d681c;font-size:.48rem;font-weight:900;line-height:1.25}.hc-network-warning{margin-top:10px;padding:10px 11px;border:1px solid #efcf8a;border-radius:12px;background:#fff9e9;color:#76571d;font-size:.68rem;font-weight:750;line-height:1.65}.hc-network-meta{margin:7px 2px 0;color:#7b8797;font-size:.62rem;line-height:1.55}.hc-primary{width:100%;min-height:47px;margin-top:17px;border:0;border-radius:14px;background:linear-gradient(135deg,#1877eb,#0c58bf);color:#fff;font:inherit;font-weight:950;cursor:pointer;box-shadow:0 12px 24px rgba(24,119,235,.20)}.hc-primary:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.hc-security{display:flex;align-items:center;justify-content:center;gap:6px;margin:11px 0 0;color:#8a96a5;font-size:.64rem}.hc-security svg{width:13px;height:13px}.hc-message{min-height:18px;margin:10px 0 0;text-align:center;color:#64748b;font-size:.73rem;line-height:1.55}.hc-message.is-error{color:#bd2c36}.hc-message.is-success{color:#16804b}
.hc-pay-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:4px}.hc-pay-item{padding:11px 12px;border:1px solid #e4e9f0;border-radius:14px;background:#f8fafc}.hc-pay-item.wide{grid-column:1/-1}.hc-pay-item span,.hc-pay-item strong,.hc-pay-item code{display:block}.hc-pay-item span{font-size:.64rem;color:#8290a0}.hc-pay-item strong{margin-top:4px;font-size:.83rem}.hc-pay-item code{margin-top:5px;font-size:.69rem;word-break:break-all;direction:ltr;text-align:left}
.hc-copy{margin-top:7px;border:0;background:transparent;color:#1769e0;font:inherit;font-size:.7rem;font-weight:850;cursor:pointer;padding:0}.hc-field{display:block;margin-top:13px}.hc-field span{display:block;margin-bottom:6px;font-size:.7rem;font-weight:850;color:#607086}.hc-field input{width:100%;height:43px;box-sizing:border-box;border:1px solid #e0e6ee;border-radius:12px;padding:0 11px;font:inherit;direction:ltr}
.hc-inline-actions{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.hc-quiet{height:47px;margin-top:17px;padding:0 15px;border:1px solid #e1e6ed;border-radius:14px;background:#fff;color:#526176;font:inherit;font-weight:850;cursor:pointer}.hc-modal-footer-link{display:block;margin:14px auto 0;width:max-content;color:#5d6d83;font-size:.69rem;text-decoration:none}
html[data-theme="dark"] .hc-modal{background:#0e1726;border-color:rgba(255,255,255,.10);color:#eaf1fb}html[data-theme="dark"] .hc-modal-close,html[data-theme="dark"] .hc-package,html[data-theme="dark"] .hc-payment-card,html[data-theme="dark"] .hc-method-card,html[data-theme="dark"] .hc-pay-item,html[data-theme="dark"] .hc-field input,html[data-theme="dark"] .hc-quiet{background:#131f32;border-color:rgba(255,255,255,.10);color:#eaf1fb}html[data-theme="dark"] .hc-method-card[aria-checked="true"]{background:#142b49;border-color:#4d8fdc}html[data-theme="dark"] .hc-method-asset{background:#0f1a2b;border-color:rgba(255,255,255,.10);color:#8fc1ff}html[data-theme="dark"] .hc-network-warning{background:#2a2517;border-color:#725a25;color:#f3daa0}html[data-theme="dark"] .hc-network-meta{color:#9cabc0}html[data-theme="dark"] .hc-package[aria-pressed="true"]{background:#2a2517;border-color:#c89b3d}html[data-theme="dark"] .hc-payment-card[aria-pressed="true"]{background:#142b49;border-color:#4d8fdc}

@media(max-width:47.99rem){
  .hc-wallet-button{height:36px;min-width:112px;grid-template-columns:28px minmax(36px,1fr) 25px;gap:5px;padding:2px 3px 2px 4px;border-radius:11px}
  .hc-wallet-coin,.hc-wallet-coin img{width:27px;height:27px}
  .hc-balance-value{font-size:.67rem}
  .hc-wallet-plus{width:24px;height:28px;border-radius:8px;font-size:1rem}
  .hc-modal-backdrop{padding:10px;align-items:end}.hc-modal{max-height:88dvh;border-radius:24px 24px 18px 18px}.hc-modal-head{padding:22px 18px 13px}.hc-modal-body{padding:5px 15px 18px}.hc-modal-coin{width:60px;height:60px}
}
/* Compact shared header for real mobile widths (including 400–430px devices). */
@media(max-width:480px){
  .public-header:has(.hc-header-wallet){
    grid-template-columns:minmax(0,62px) minmax(86px,96px) minmax(0,1fr)!important;
    column-gap:3px!important;
    padding-inline:5px!important
  }
  .public-header:has(.hc-header-wallet) .public-header-left{
    gap:2px!important;
    min-width:0
  }
  .public-header:has(.hc-header-wallet) .public-header-right{
    gap:3px!important;
    min-width:0;
    justify-content:flex-end
  }
  .public-header:has(.hc-header-wallet) .service-brand,
  .public-header:has(.hc-header-wallet) .public-header-brand{
    flex:0 0 25px!important;
    width:25px!important;
    min-width:25px!important
  }
  .public-header:has(.hc-header-wallet) .service-brand img,
  .public-header:has(.hc-header-wallet) .brand-mark{
    width:25px!important;
    height:25px!important;
    border-radius:8px!important
  }
  .public-header:has(.hc-header-wallet) .menu-toggle{
    width:33px!important;
    min-width:33px!important;
    height:34px!important;
    padding:6px!important
  }
  .public-header:has(.hc-header-wallet) .primary-nav,
  .public-header:has(.hc-header-wallet) .service-nav{
    min-width:86px!important;
    width:92px!important;
    max-width:96px!important;
    gap:1px!important;
    padding:2px!important
  }
  .public-header:has(.hc-header-wallet) .primary-nav a,
  .public-header:has(.hc-header-wallet) .service-nav a{
    min-width:0!important;
    min-height:30px!important;
    padding:4px 5px!important;
    font-size:.61rem!important;
    white-space:nowrap
  }
  .public-header:has(.hc-header-wallet) .header-profile-button{
    width:32px!important;
    height:34px!important;
    flex:0 0 32px!important;
    border-radius:9px!important
  }
  .public-header:has(.hc-header-wallet) .header-profile-button svg{
    width:16px!important;
    height:16px!important
  }
  .public-header:has(.hc-header-wallet) .language-trigger{
    width:32px!important;
    min-width:32px!important;
    height:34px!important;
    padding:0!important;
    gap:0!important;
    border-radius:9px!important
  }
  .public-header:has(.hc-header-wallet) .language-trigger>svg:first-child{
    width:15px!important;
    height:15px!important;
    flex-basis:15px!important
  }
  .public-header:has(.hc-header-wallet) .language-trigger-code,
  .public-header:has(.hc-header-wallet) .language-trigger .lang-chevron{
    display:none!important
  }
  .public-header:has(.hc-header-wallet) .hc-header-wallet{
    min-width:0;
    flex:0 1 94px
  }
  .public-header:has(.hc-header-wallet) .hc-wallet-button{
    width:94px;
    min-width:94px;
    max-width:94px;
    height:34px;
    grid-template-columns:25px minmax(24px,1fr) 20px;
    gap:3px;
    padding:2px 3px;
    border-radius:10px
  }
  .public-header:has(.hc-header-wallet) .hc-wallet-coin,
  .public-header:has(.hc-header-wallet) .hc-wallet-coin img{
    width:24px;
    height:24px
  }
  .public-header:has(.hc-header-wallet) .hc-balance-value{
    font-size:.61rem;
    letter-spacing:0
  }
  .public-header:has(.hc-header-wallet) .hc-wallet-plus{
    width:20px;
    height:24px;
    border-radius:7px;
    font-size:.88rem
  }
}
@media(max-width:390px){
  .public-header:has(.hc-header-wallet){
    grid-template-columns:minmax(0,58px) minmax(82px,88px) minmax(0,1fr)!important;
    column-gap:2px!important;
    padding-inline:4px!important
  }
  .public-header:has(.hc-header-wallet) .menu-toggle{
    width:31px!important;
    min-width:31px!important
  }
  .public-header:has(.hc-header-wallet) .service-brand,
  .public-header:has(.hc-header-wallet) .public-header-brand{
    flex-basis:23px!important;
    width:23px!important;
    min-width:23px!important
  }
  .public-header:has(.hc-header-wallet) .service-brand img,
  .public-header:has(.hc-header-wallet) .brand-mark{
    width:23px!important;
    height:23px!important
  }
  .public-header:has(.hc-header-wallet) .primary-nav,
  .public-header:has(.hc-header-wallet) .service-nav{
    width:86px!important;
    min-width:82px!important
  }
  .public-header:has(.hc-header-wallet) .public-header-right{gap:2px!important}
  .public-header:has(.hc-header-wallet) .header-profile-button{
    width:30px!important;
    flex-basis:30px!important
  }
  .public-header:has(.hc-header-wallet) .language-trigger{
    width:30px!important;
    min-width:30px!important
  }
  .public-header:has(.hc-header-wallet) .hc-header-wallet{flex-basis:88px}
  .public-header:has(.hc-header-wallet) .hc-wallet-button{
    width:88px;
    min-width:88px;
    max-width:88px;
    grid-template-columns:23px minmax(22px,1fr) 19px;
    gap:2px
  }
  .public-header:has(.hc-header-wallet) .hc-wallet-coin,
  .public-header:has(.hc-header-wallet) .hc-wallet-coin img{
    width:22px;
    height:22px
  }
  .public-header:has(.hc-header-wallet) .hc-balance-value{font-size:.58rem}
  .public-header:has(.hc-header-wallet) .hc-wallet-plus{
    width:19px;
    height:23px;
    font-size:.84rem
  }
  .hc-package-grid{gap:6px}.hc-package{min-height:86px;padding:11px 5px}.hc-payment-grid{grid-template-columns:1fr}.hc-method-grid{grid-template-columns:1fr;gap:7px}.hc-method-card{min-height:54px}.hc-method-copy strong{font-size:.72rem}
}


/* Final approved Hiro Coin asset rendering — 2026-09-30
   Keep one canonical SVG, preserve detail at mobile header sizes, and avoid a stale/soft coin. */
.hc-wallet-coin,
.hc-wallet-coin img{
  width:32px;
  height:32px;
}
.hc-wallet-coin{
  filter:drop-shadow(0 2px 2px rgba(12,24,42,.18));
}
.hc-modal-coin{
  width:76px;
  height:76px;
  filter:drop-shadow(0 7px 12px rgba(126,84,14,.16));
}
@media(max-width:480px){
  .public-header:has(.hc-header-wallet) .hc-wallet-button{
    grid-template-columns:29px minmax(20px,1fr) 20px;
  }
  .public-header:has(.hc-header-wallet) .hc-wallet-coin,
  .public-header:has(.hc-header-wallet) .hc-wallet-coin img{
    width:28px;
    height:28px;
  }
  .hc-modal-coin{
    width:68px;
    height:68px;
  }
}
@media(max-width:390px){
  .public-header:has(.hc-header-wallet) .hc-wallet-button{
    grid-template-columns:28px minmax(18px,1fr) 19px;
  }
  .public-header:has(.hc-header-wallet) .hc-wallet-coin,
  .public-header:has(.hc-header-wallet) .hc-wallet-coin img{
    width:27px;
    height:27px;
  }
}

/* Hiro Coin custom top-up — pending deploy. Bonus is extra HC, never a USD discount. */
.hc-custom-topup{margin-top:10px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:15px;background:#fbfcfe}
.hc-custom-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#42536a;font-size:.72rem;font-weight:900}
.hc-custom-label small{color:#8794a4;font-size:.59rem;font-weight:650}
.hc-custom-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:43px;margin-top:7px;border:1px solid #d6dee9;border-radius:12px;background:#fff;overflow:hidden}
.hc-custom-entry:focus-within{border-color:#67a6ef;box-shadow:0 0 0 3px rgba(43,128,224,.1)}
.hc-custom-entry input{width:100%;min-width:0;height:41px;padding:0 10px;border:0;outline:0;background:transparent;color:#20324a;font:inherit;font-size:.8rem;font-weight:850;direction:ltr}
.hc-custom-entry span{padding-inline:9px 11px;color:#7e8b9b;font-size:.66rem;font-weight:850}
.hc-custom-summary{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid #edf1f5}
.hc-custom-summary>span{display:grid;gap:1px}.hc-custom-summary small{color:#8996a6;font-size:.55rem}.hc-custom-summary strong{color:#20324a;font-size:.7rem}
.hc-custom-summary em{padding:3px 7px;border:1px solid rgba(210,156,45,.35);border-radius:999px;background:#fff7dc;color:#8e620f;font-size:.55rem;font-style:normal;font-weight:950;white-space:nowrap}
html[data-theme="dark"] .hc-custom-topup{border-color:rgba(255,255,255,.1);background:#131f32}
html[data-theme="dark"] .hc-custom-label,html[data-theme="dark"] .hc-custom-entry input,html[data-theme="dark"] .hc-custom-summary strong{color:#eaf1fb}
html[data-theme="dark"] .hc-custom-label small,html[data-theme="dark"] .hc-custom-summary small{color:#93a4ba}
html[data-theme="dark"] .hc-custom-entry{border-color:rgba(255,255,255,.11);background:#0e1726}
.hc-wallet-coin img,.hc-modal-coin{image-rendering:auto}
@media(max-width:480px){.hc-custom-label{display:grid;gap:3px}.hc-custom-summary{grid-template-columns:1fr 1fr}.hc-custom-summary em{grid-column:1/-1;width:max-content}}


/* Hiro Coin approved package artwork — correction 5, pending deploy */
.hc-package{
  min-height:148px;
  padding:7px 6px 11px;
  display:grid;
  grid-template-rows:76px auto;
  align-items:end;
  justify-items:center;
  gap:4px;
  overflow:hidden;
}
.hc-package-art{
  width:100%;
  height:76px;
  display:grid;
  place-items:center;
  pointer-events:none;
  user-select:none;
}
.hc-package-art img{
  display:block!important;
  width:auto;
  height:auto;
  max-width:98px;
  max-height:82px;
  object-fit:contain;
  opacity:1!important;
  visibility:visible!important;
  filter:drop-shadow(0 5px 7px rgba(78,49,5,.16));
}
.hc-package[data-hc-package="100"] .hc-package-art img{max-width:82px;max-height:72px}
.hc-package[data-hc-package="500"] .hc-package-art img{max-width:94px;max-height:80px}
.hc-package[data-hc-package="1000"] .hc-package-art img{max-width:102px;max-height:84px}
.hc-package-copy{display:grid;justify-items:center;line-height:1.15}
.hc-package-copy strong{margin:0}
.hc-package-copy small{margin-top:5px}
html[data-theme="dark"] .hc-package-art img{filter:drop-shadow(0 6px 9px rgba(0,0,0,.3))}
@media(max-width:480px){
  .hc-package{min-height:132px;grid-template-rows:62px auto;padding:6px 3px 9px;gap:3px}
  .hc-package-art{height:62px}
  .hc-package-art img{max-width:70px;max-height:62px}
  .hc-package[data-hc-package="100"] .hc-package-art img{max-width:68px;max-height:60px}
  .hc-package[data-hc-package="500"] .hc-package-art img{max-width:76px;max-height:66px}
  .hc-package[data-hc-package="1000"] .hc-package-art img{max-width:82px;max-height:70px}
  .hc-package-copy strong{font-size:.78rem;white-space:nowrap}
  .hc-package-copy small{font-size:.61rem;margin-top:4px}
}
