/* Wallet presentation; payment values and submission remain owned by Livewire. */
.sg-recharge {
    grid-column: 1 / -1; min-width: 0; padding: 30px; border: 1px solid #ffffffed;
    border-radius: 28px; color: #29493e; letter-spacing: 0;
    background: radial-gradient(ellipse at 100% 0, #faeacb85, transparent 48%), linear-gradient(145deg, #fffffff0, #f2f8eff0);
    box-shadow: 0 14px 44px #264c3b0c, inset 0 1px 0 #fff;
}
.sg-recharge, .sg-recharge * { box-sizing: border-box; letter-spacing: 0; }
.sg-recharge-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 26px; }
.sg-recharge-head > div:first-child { min-width: 0; }
.sg-recharge-eyebrow { display: flex; align-items: center; gap: 7px; color: #7e8e7e; font-size: 11px; font-weight: 600; }
.sg-recharge-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #a7864f; box-shadow: 0 0 0 3px #cfb68120; }
.sg-recharge h2 { margin: 10px 0 8px; font-size: 28px; font-weight: 750; line-height: 1.45; }
.sg-recharge-intro { margin: 0; color: #688272; font-size: 13px; line-height: 1.8; }
.sg-recharge-intro > span { margin-left: 12px; color: #829183; }
.sg-recharge-emblem { position: relative; display: grid; place-items: center; flex: 0 0 90px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #fff4d9, #e4edd838); }
.sg-recharge-emblem > span { position: absolute; inset: 0; border: 1px solid #c7af7633; border-radius: 50%; transform: rotate(-25deg) scaleX(.9); }
.sg-recharge-emblem::after { content: ''; position: absolute; inset: 7px; border: 1px solid #ffffffdb; border-radius: 50%; }
.sg-recharge-emblem img { position: relative; z-index: 1; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 9px #ba8d4230); }
.sg-recharge-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.sg-recharge-fieldset legend { padding: 0; margin-bottom: 15px; font-size: 14px; line-height: 24px; font-weight: 650; }
.sg-recharge-step { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border: 1px solid #d1dfd1; border-radius: 8px; color: #7c927e; font-size: 10px; font-weight: 650; }
.sg-recharge-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sg-recharge-tier, .sg-recharge-method { display: block; position: relative; min-width: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sg-recharge input[type="radio"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; border: 0; clip: rect(0, 0, 0, 0); overflow: hidden; }
.sg-recharge-tier-face {
    position: relative; min-height: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 8px; padding: 20px 10px; border: 1px solid #d9e4d9; border-radius: 17px; background: #ffffffa6;
    box-shadow: inset 0 1px 0 #fff, 0 3px 8px #31594503;
    transition: background .22s, border-color .22s, box-shadow .22s, transform .3s cubic-bezier(.2, 1.3, .4, 1);
}
.sg-recharge-tier-face > strong { font-size: 30px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sg-recharge-tier-face > strong small { margin-left: 3px; font-size: 13px; font-weight: 500; color: #7d8c7e; }
.sg-recharge-tier-bonus { color: #879582; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.sg-recharge-tier-bonus b { color: #9b7740; font-weight: 650; font-variant-numeric: tabular-nums; }
.sg-recharge-selected { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #39775f; opacity: 0; transform: scale(.65); transition: opacity .2s, transform .3s cubic-bezier(.2, 1.5, .4, 1); }
.sg-recharge-selected svg { width: 12px; height: 12px; }
.sg-recharge input:checked + .sg-recharge-tier-face { background: linear-gradient(145deg, #e8f3e8, #dcebe0); border-color: #719782; color: #2b634d; box-shadow: inset 0 0 0 1px #719782, 0 5px 16px #32664e0c; }
.sg-recharge input:checked + .sg-recharge-tier-face .sg-recharge-tier-bonus { color: #68846b; }
.sg-recharge input:checked + .sg-recharge-tier-face .sg-recharge-selected { opacity: 1; transform: scale(1); }
.sg-recharge input:focus-visible + span { outline: 2px solid #39775f; outline-offset: 3px; }
.sg-recharge-tier:active .sg-recharge-tier-face, .sg-recharge-method:active .sg-recharge-method-face { transform: scale(.97); }
.sg-recharge-tier-wide { grid-column: 1 / -1; }
.sg-recharge-tier-wide .sg-recharge-tier-face { min-height: 76px; flex-direction: row; justify-content: space-between; padding: 18px 26px; background: linear-gradient(115deg, #f5f3e9b3, #ffffffc4); }
.sg-recharge-tier-wide .sg-recharge-tier-bonus { margin-right: 16px; padding: 5px 10px; border-radius: 8px; background: #dfc18b1a; }
.sg-recharge-receipt { margin: 20px 0 0; padding: 20px; border: 1px solid #e6e1cc; border-radius: 17px; background: linear-gradient(115deg, #f9f4e7b3, #f5f8ecbd); }
.sg-recharge-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sg-recharge-total > span { display: flex; align-items: center; gap: 8px; color: #7b795f; font-size: 12px; }
.sg-recharge-total svg { width: 18px; height: 18px; color: #ac8957; }
.sg-recharge-total > div { display: flex; align-items: baseline; gap: 6px; }
.sg-recharge-total strong { color: #376b51; font-size: 30px; font-weight: 750; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sg-recharge-total small { color: #7e8b77; font-size: 11px; }
.sg-recharge-breakdown { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: #7b8978; font-size: 12px; line-height: 1.6; }
.sg-recharge-breakdown b { color: #5f775e; font-weight: 650; }
.sg-recharge-breakdown i { color: #aaa58c; font-style: normal; }
.sg-recharge-rebate { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #d9d8c6; color: #929785; font-size: 11px; line-height: 1.6; }
.sg-recharge-checkout { margin-top: 24px; padding-top: 22px; border-top: 1px solid #dce5d9; }
.sg-recharge-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-recharge-method-face { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 10px 12px; border: 1px solid #dae4d8; border-radius: 12px; background: #ffffffa1; transition: background .2s, border-color .2s, transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.sg-recharge-method-face > strong { color: #54715c; font-size: 14px; font-weight: 650; }
.sg-recharge-method-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 16px; font-weight: 700; }
.sg-recharge-method-mark.is-alipay { background: #248eba; }
.sg-recharge-method-mark.is-wechat { background: #439467; }
.sg-recharge-method-face > svg { width: 17px; height: 17px; color: #4e8164; opacity: 0; }
.sg-recharge input:checked + .sg-recharge-method-face { background: #eaf2e4; border-color: #9cbaa1; box-shadow: inset 0 0 0 1px #9cbaa13b; }
.sg-recharge input:checked + .sg-recharge-method-face > svg { opacity: 1; }
.sg-recharge-pay-row { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: center; margin-top: 20px; }
.sg-recharge-pay-total > span { display: block; margin-bottom: 2px; color: #889181; font-size: 11px; }
.sg-recharge-pay-total > strong { display: flex; align-items: baseline; gap: 3px; color: #305d48; font-size: 30px; font-weight: 750; line-height: 1.2; }
.sg-recharge-pay-total small { font-size: 16px; font-weight: 600; }
.sg-recharge-pay-total b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.sg-recharge-submit { min-width: 0; width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px 12px; border: 1px solid #35644e; border-radius: 14px; color: #fff9eb; background: linear-gradient(120deg, #467e65, #2d604d); font-size: 16px; font-weight: 650; box-shadow: inset 0 1px 0 #ffffff33, 0 4px 0 #264e3e, 0 8px 18px #315c431f; transition: transform .25s, box-shadow .25s; touch-action: manipulation; }
.sg-recharge-submit > svg { width: 17px; height: 17px; flex-shrink: 0; }
.sg-recharge-submit > svg:last-child { margin-left: 6px; width: 16px; }
.sg-wallet-page > .sg-form-grid { animation: none !important; transform: none !important; }
.sg-recharge-submit:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff33, 0 2px 0 #264e3e; }
.sg-recharge-submit:focus-visible { outline: 2px solid #39775f; outline-offset: 4px; }
.sg-recharge-submit:disabled { opacity: .55; cursor: wait; }
@media (hover: hover) {
    .sg-recharge-tier:hover .sg-recharge-tier-face { border-color: #679c81; transform: translateY(-2px); }
    .sg-recharge-method:hover .sg-recharge-method-face { border-color: #679c81; }
    .sg-recharge-submit:hover { box-shadow: inset 0 1px 0 #ffffff33, 0 4px 0 #264e3e, 0 10px 22px #315c432a; }
}
@media (max-width: 680px) {
    .sg-wallet-page { padding-bottom: 196px; }
    .sg-recharge { padding: 22px 16px 18px; border-radius: 23px; }
    .sg-recharge-head { gap: 8px; padding-bottom: 24px; }
    .sg-recharge-eyebrow { font-size: 9px; gap: 6px; }
    .sg-recharge h2 { font-size: 21px; margin: 10px 0 6px; }
    .sg-recharge-intro { font-size: 12px; }
    .sg-recharge-intro > span { display: block; margin: 0; font-size: 10px; }
    .sg-recharge-emblem { flex-basis: 58px; width: 58px; height: 58px; }
    .sg-recharge-emblem img { width: 46px; height: 46px; }
    .sg-recharge-fieldset legend { font-size: 13px; margin-bottom: 12px; }
    .sg-recharge-step { width: 21px; height: 21px; font-size: 9px; border-radius: 7px; }
    .sg-recharge-tiers { gap: 9px; }
    .sg-recharge-tier { scroll-margin-bottom: 265px; }
    .sg-recharge-tier-face { min-height: 96px; padding: 22px 3px 16px; gap: 8px; border-radius: 13px; }
    .sg-recharge-tier-face > strong { font-size: 26px; }
    .sg-recharge-tier-face > strong small { font-size: 10px; margin-left: 2px; }
    .sg-recharge-tier-bonus { font-size: 9px; }
    .sg-recharge-selected { width: 14px; height: 14px; top: 5px; right: 5px; }
    .sg-recharge-selected svg { width: 10px; height: 10px; }
    .sg-recharge-tier-wide .sg-recharge-tier-face { min-height: 66px; padding: 16px 18px; }
    .sg-recharge-tier-wide .sg-recharge-tier-bonus { font-size: 11px; padding: 5px 8px; margin-right: 8px; }
    .sg-recharge-receipt { padding: 15px 12px; margin-top: 16px; border-radius: 14px; }
    .sg-recharge-total { gap: 6px; }
    .sg-recharge-total > span { gap: 5px; font-size: 11px; }
    .sg-recharge-total svg { width: 15px; height: 15px; }
    .sg-recharge-total strong { font-size: 26px; }
    .sg-recharge-total small { font-size: 10px; }
    .sg-recharge-breakdown { font-size: 10px; gap: 8px; margin-top: 10px; }
    .sg-recharge-rebate { font-size: 9px; margin-top: 10px; padding-top: 9px; }
    .sg-recharge-checkout { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); margin: 0; padding: 12px 15px 15px; border: 1px solid #ffffffed; border-radius: 22px; background: #f6faf1f5; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -5px 28px #314e3812, 0 10px 22px #314e3810, inset 0 1px 0 #fff; }
    .sg-recharge-checkout legend { margin-bottom: 9px; font-size: 11px; line-height: 18px; color: #7f8f7b; }
    .sg-recharge-checkout .sg-recharge-step { display: none; }
    .sg-recharge-methods { gap: 10px; }
    .sg-recharge-method-face { min-height: 44px; padding: 7px; gap: 7px; border-radius: 11px; }
    .sg-recharge-method-face > strong { font-size: 13px; }
    .sg-recharge-method-mark { width: 22px; height: 22px; font-size: 14px; border-radius: 6px; }
    .sg-recharge-method-face > svg { width: 15px; height: 15px; }
    .sg-recharge-pay-row { grid-template-columns: minmax(85px, .7fr) minmax(0, 1.3fr); gap: 12px; margin-top: 12px; }
    .sg-recharge-pay-total > span { font-size: 10px; }
    .sg-recharge-pay-total > strong { font-size: 28px; }
    .sg-recharge-submit { min-height: 47px; padding: 11px 8px; font-size: 14px; border-radius: 12px; }
    .sg-recharge-submit > svg:last-child { margin-left: 2px; }
    .sg-wallet-page > .sg-metrics { gap: 9px; }
    .sg-wallet-page > .sg-metrics article { min-height: 95px; }
}
@media (max-width: 350px) {
    .sg-recharge { padding: 18px 12px 14px; }
    .sg-recharge h2 { font-size: 19px; }
    .sg-recharge-emblem { flex-basis: 44px; width: 44px; height: 44px; }
    .sg-recharge-emblem img { width: 38px; height: 38px; }
    .sg-recharge-tiers { gap: 7px; }
    .sg-recharge-tier-face > strong { font-size: 23px; }
    .sg-recharge-breakdown { gap: 5px; font-size: 9px; }
    .sg-recharge-total > span { font-size: 10px; }
    .sg-recharge-tier-wide .sg-recharge-tier-face { padding: 14px 13px; }
    .sg-recharge-tier-wide .sg-recharge-tier-bonus { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sg-recharge * { transition: none !important; } }
