body.suku-wallet-open {
  overflow: hidden;
}

#nav-tab-wallet {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(6, 182, 212, .1));
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: .2s ease;
}

#nav-tab-wallet img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

#nav-tab-wallet:hover,
body.suku-wallet-open #nav-tab-wallet {
  border-color: rgba(34, 211, 238, .55);
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .22);
}

#steam-wallet-page {
  position: fixed;
  z-index: 35;
  inset: 68px 0 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at 75% 0%, rgba(37, 99, 235, .12), transparent 30rem),
    radial-gradient(circle at 0% 45%, rgba(6, 182, 212, .07), transparent 26rem),
    #050a17;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#steam-wallet-page[hidden] { display: none; }

.sw-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.sw-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; color: #94a3b8; font-weight: 700; cursor: pointer; }
.sw-back:hover { color: #67e8f9; }
.sw-title-row { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-top: 12px; }
.sw-eyebrow { color: #22d3ee; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sw-title { margin: 7px 0 6px; color: white; font-size: clamp(27px, 4vw, 42px); line-height: 1.1; font-weight: 950; letter-spacing: -.035em; }
.sw-subtitle { max-width: 660px; margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.7; }
.sw-rating { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: #94a3b8; font-size: 12px; }
.sw-rating b { color: white; }
.sw-stars { color: #fbbf24; letter-spacing: 1px; }
.sw-steam-mark { flex: 0 0 auto; width: 210px; height: 118px; overflow: hidden; border: 1px solid rgba(96, 165, 250, .24); border-radius: 22px; background: #071426; box-shadow: 0 24px 60px rgba(2, 132, 199, .13); }
.sw-steam-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sw-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.sw-benefit { display: inline-flex; align-items: center; padding: 9px 13px; border: 1px solid rgba(51, 65, 85, .72); border-radius: 999px; background: rgba(15, 23, 42, .74); color: #cbd5e1; font-size: 12px; font-weight: 700; }
.sw-panel { border: 1px solid rgba(51, 65, 85, .75); border-radius: 20px; background: rgba(10, 17, 34, .83); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.sw-region { padding: 20px; margin-bottom: 16px; }
.sw-heading { margin: 0; color: white; font-size: 15px; font-weight: 850; }
.sw-help { margin: 5px 0 13px; color: #64748b; font-size: 12px; }
.sw-tabs { display: inline-flex; gap: 5px; padding: 4px; border-radius: 12px; background: #080e1d; }
.sw-tab { padding: 9px 14px; border: 0; border-radius: 9px; background: transparent; color: #64748b; font-weight: 800; cursor: pointer; }
.sw-tab.is-active { background: linear-gradient(135deg, #2563eb, #0891b2); color: white; box-shadow: 0 6px 18px rgba(37,99,235,.22); }
.sw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sw-values { padding: 20px; }
.sw-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.sw-value { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid rgba(51,65,85,.7); border-radius: 13px; background: rgba(9,15,29,.82); color: #cbd5e1; text-align: left; cursor: pointer; transition: .18s ease; }
.sw-value:hover { transform: translateY(-1px); border-color: rgba(59,130,246,.55); background: rgba(15,29,58,.8); }
.sw-value.is-selected { border-color: #22d3ee; background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(6,182,212,.08)); box-shadow: 0 0 0 2px rgba(34,211,238,.07); }
.sw-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #475569; border-radius: 50%; }
.sw-check::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.sw-value.is-selected .sw-check { border-color: #22d3ee; }
.sw-value.is-selected .sw-check::after { background: #22d3ee; }
.sw-value-name { min-width: 0; color: #e2e8f0; font-size: 12px; font-weight: 750; }
.sw-value-price { color: #60a5fa; font-size: 13px; font-weight: 900; white-space: nowrap; }
.sw-summary { position: sticky; top: 16px; display: grid; gap: 12px; }
.sw-quantity, .sw-total-box { padding: 18px; }
.sw-qty { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sw-qty button { width: 34px; height: 34px; border: 1px solid #263349; border-radius: 9px; background: #111827; color: white; font-size: 20px; cursor: pointer; }
.sw-qty button:disabled { opacity: .35; cursor: not-allowed; }
.sw-qty output { min-width: 48px; padding: 8px; border: 1px solid #334155; border-radius: 9px; color: white; text-align: center; font-weight: 800; }
.sw-total-line { display: flex; justify-content: space-between; align-items: center; }
.sw-total-line strong { color: #38bdf8; font-size: 21px; }
.sw-action { width: 100%; min-height: 43px; margin-top: 10px; border: 0; border-radius: 11px; font-weight: 850; cursor: pointer; transition: .18s ease; }
.sw-action:disabled { opacity: .38; cursor: not-allowed; }
.sw-cart-action { border: 1px solid rgba(71,85,105,.65); background: #111827; color: #cbd5e1; }
.sw-buy-action { background: linear-gradient(90deg,#2563eb,#4f46e5); color: white; box-shadow: 0 10px 28px rgba(37,99,235,.18); }
.sw-action:not(:disabled):hover { filter: brightness(1.12); transform: translateY(-1px); }
.sw-note { margin: 11px 0 0; color: #64748b; font-size: 10px; line-height: 1.55; text-align: center; }
.sw-empty { grid-column: 1 / -1; padding: 34px; color: #64748b; text-align: center; }
.sw-toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 17px; border: 1px solid rgba(52,211,153,.35); border-radius: 12px; background: #06241c; color: #a7f3d0; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .22s ease; }
.sw-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sw-modal-wrap, .sw-drawer-wrap { position: fixed; z-index: 80; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.sw-modal-wrap[hidden], .sw-drawer-wrap[hidden] { display: none; }
.sw-modal { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 36px); overflow-y: auto; margin: 18px auto; padding: 24px; }
.sw-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sw-checkout-content { margin-top: 20px; }
.sw-checkout-content .sw-form { margin-top: 0; }
.sw-close { width: 34px; height: 34px; border: 1px solid #334155; border-radius: 10px; background: #111827; color: white; cursor: pointer; }
.sw-form { display: grid; gap: 13px; margin-top: 18px; }
.sw-field label { display: block; margin-bottom: 6px; color: #94a3b8; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.sw-field input { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid #334155; border-radius: 11px; background: #070d19; color: white; outline: none; }
.sw-field input:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.sw-order-preview { padding: 13px; border-radius: 12px; background: #080f20; color: #cbd5e1; font-size: 12px; line-height: 1.6; }
.sw-error { color: #fda4af; font-size: 12px; }
.sw-payment { text-align: center; }
.sw-payment img { width: min(300px, 100%); margin: 18px auto; border: 8px solid white; border-radius: 16px; background: white; }
.sw-payment-code { padding: 12px; border: 1px dashed #22d3ee; border-radius: 12px; color: #67e8f9; font-family: ui-monospace, monospace; font-weight: 900; }
.sw-drawer { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); padding: 22px; border-radius: 0; overflow-y: auto; }
.sw-cart-list { display: grid; gap: 10px; margin: 18px 0; }
.sw-cart-item { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; border: 1px solid #273449; border-radius: 12px; background: #080f1d; }
.sw-cart-item small { color: #64748b; }
.sw-remove { border: 0; background: none; color: #fb7185; cursor: pointer; }

@media (max-width: 820px) {
  #steam-wallet-page { top: 116px; }
  #nav-tab-wallet { min-height: 38px; flex: 1 0 auto; padding: 7px 12px; font-size: 12px; }
  .sw-layout { grid-template-columns: 1fr; }
  .sw-summary { position: static; grid-template-columns: 1fr 1fr; }
  .sw-value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #steam-wallet-page { inset: 116px 0 0; }
  .sw-shell { width: min(100% - 20px, 1180px); padding-top: 20px; }
  .sw-title-row { display: block; }
  .sw-steam-mark { display: none; }
  .sw-benefits { gap: 7px; }
  .sw-benefit { font-size: 10px; }
  .sw-summary { grid-template-columns: 1fr; }
  .sw-values, .sw-region, .sw-quantity, .sw-total-box { padding: 15px; }
}
