:root {
  --bg: #090302;
  --bg-2: #140603;
  --panel: rgba(30, 10, 4, 0.92);
  --panel-soft: rgba(18, 7, 4, 0.88);
  --line: rgba(255, 165, 52, 0.18);
  --line-strong: rgba(255, 191, 77, 0.45);
  --text: #fff4e8;
  --muted: #c9a887;
  --accent: #f4ad3f;
  --accent-2: #ff7d1f;
  --danger: #ff634d;
  --radius: 26px;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 185, 88, 0.12), 0 20px 60px rgba(255, 112, 29, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255,126,31,0.16), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(255,180,79,0.12), transparent 24%),
    linear-gradient(180deg, #110401 0%, #090302 100%);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.shell {
  width: min(1560px, calc(100% - 64px));
  margin: 0 auto;
}
.main-stack {
  padding: 116px 0 48px;
  display: grid;
  gap: 28px;
}

.silk-layer,
.ember-layer,
.transition-veil,
.page-loader { position: fixed; inset: 0; pointer-events: none; }
.silk-layer {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,145,70,0.05) 22%, transparent 45%),
    linear-gradient(170deg, transparent 0%, rgba(255,145,70,0.05) 20%, transparent 52%),
    linear-gradient(40deg, transparent 0%, rgba(255,145,70,0.04) 18%, transparent 50%);
  opacity: .7;
}
.ember-layer {
  background-image: radial-gradient(circle, rgba(255,179,82,.7) 0 35%, transparent 36%), radial-gradient(circle, rgba(255,115,28,.6) 0 35%, transparent 36%);
  background-size: 8px 8px, 12px 12px;
  background-position: 0 0, 30px 40px;
  opacity: .14;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  animation: drift 18s linear infinite;
}
@keyframes drift {
  from { transform: translateY(0); }
  50% { transform: translateY(18px); }
  to { transform: translateY(0); }
}

.page-loader {
  z-index: 60;
  pointer-events: auto;
  background: radial-gradient(circle at center, rgba(255,130,39,0.22), rgba(9,3,2,0.98) 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-card {
  width: min(480px, calc(100% - 40px));
  text-align: center;
  padding: 34px 28px;
  border: 1px solid rgba(255, 180, 70, .2);
  border-radius: 28px;
  background: rgba(18, 7, 4, 0.92);
  box-shadow: 0 30px 120px rgba(0,0,0,.45);
}
.loader-seal,
.brand-seal,
.current-balance-icon,
.alert-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff8c3a, #a94211);
  color: #fff3df;
  box-shadow: 0 14px 36px rgba(255,122,39,.28);
  font-size: 30px;
  font-weight: 700;
}
.loader-brand { margin-top: 18px; font-size: 32px; font-family: Georgia, serif; letter-spacing: .08em; }
.loader-brand small { display: block; font-size: 13px; letter-spacing: .28em; color: var(--muted); font-family: Inter, sans-serif; margin-top: 6px; }
.loader-bar {
  margin: 22px auto 14px;
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
.loader-card p { margin: 0; color: var(--muted); }

.transition-veil {
  z-index: 48;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(circle at center, rgba(255, 122, 39, 0.18), rgba(9,3,2,0.86) 55%);
  transition: opacity .4s ease, visibility .4s ease;
}
.transition-veil.is-active { opacity: 1; visibility: visible; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(9,3,2,0.88), rgba(9,3,2,0.42));
  border-bottom: 1px solid rgba(255,174,80,0.09);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-copy b { display: block; font: 700 35px/1 Georgia, serif; letter-spacing: .08em; }
.brand-copy small { display: block; color: var(--muted); letter-spacing: .24em; margin-top: 4px; }
.top-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.header-action,
.profile-pill,
.temple-button,
.ghost-button,
.quick-action,
.auth-tab,
.chip,
.method-card {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
}
.header-action {
  height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1px solid rgba(255,176,82,.18);
  background: rgba(16, 7, 4, 0.78);
  color: #f8d9ab;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-action:hover,
.profile-pill:hover,
.quick-action:hover,
.ghost-button:hover,
.auth-tab:hover,
.chip:hover,
.method-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,194,94,.38);
}
.header-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-pill {
  min-width: 192px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,176,82,.18);
  background: rgba(15, 7, 4, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.profile-pill__avatar,
.profile-avatar-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffcb8d, #bf5d20 65%, #632608);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(255,132,39,.28);
}
.profile-pill__avatar { width: 44px; height: 44px; font-size: 18px; }
.profile-avatar-large { width: 84px; height: 84px; font-size: 28px; }
.profile-pill__copy { display: flex; flex-direction: column; align-items: flex-start; }
.profile-pill__copy strong { font-size: 15px; }
.profile-pill__copy small { color: var(--muted); }
.profile-pill__caret { font-size: 22px; color: var(--accent); margin-left: auto; }

.panel,
.card-glow,
.modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow), var(--glow);
}
.panel,
.card-glow { border-radius: var(--radius); }
.panel--soft { background: linear-gradient(180deg, rgba(24, 9, 4, .94), rgba(13, 5, 3, .94)); }
.panel--hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 620px);
  gap: 12px;
  padding: 44px 40px 24px;
  min-height: 760px;
  position: relative;
  overflow: hidden;
}
.panel--hero::before,
.profile-character-card::before,
.topup-character::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,150,64,.24), rgba(255,110,30,.09) 45%, transparent 72%);
  filter: blur(18px);
}
.hero-copy { align-self: center; padding: 24px 0 16px 12px; z-index: 1; }
.eyebrow {
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #e6a457;
  margin-bottom: 14px;
}
.hero h1,
.section-title-row h2,
.about-grid h2,
.modal-card h2 {
  font-family: Georgia, serif;
}
.hero h1 {
  font-size: clamp(58px, 7vw, 104px);
  line-height: .95;
  margin: 0;
  letter-spacing: -.03em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-actions { margin-top: 28px; }
.temple-button,
.ghost-button {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,191,86,.32);
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.temple-button {
  background: linear-gradient(180deg, #ffd27d, #f0aa34);
  color: #311300;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(255,173,62,.26);
}
.temple-button:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(255,173,62,.34); }
.temple-button--block,
.ghost-button--block { width: 100%; }
.ghost-button {
  background: rgba(22, 10, 4, 0.8);
  color: var(--text);
}
.trust-list {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.trust-list div { padding: 18px 12px; border-right: 1px solid var(--line); }
.trust-list div:last-child { border-right: 0; }
.trust-list b { color: var(--accent); margin-right: 10px; }
.trust-list span { color: var(--muted); }
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrap {
  width: 100%;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.hero-image-wrap img {
  max-height: 710px;
  width: auto;
  filter: drop-shadow(0 26px 54px rgba(0, 0, 0, .48));
  animation: floaty 6.5s ease-in-out infinite;
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.view { display: none; opacity: 0; transform: translateY(10px); }
.view.is-active { display: block; animation: switchIn .45s ease forwards; }
@keyframes switchIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.strip-grid,
.topup-layout,
.catalog,
.about-grid { min-height: 620px; }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 22px;
}
.profile-main { display: grid; gap: 20px; }
.card-glow { padding: 22px; position: relative; overflow: hidden; }
.card-glow::before {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,163,76,.12), transparent 65%);
  pointer-events: none;
}
.profile-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.profile-summary__identity {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.profile-summary__identity h2 { margin: 0 0 6px; font-size: 40px; }
.profile-summary__identity p { margin: 0; color: var(--muted); }
.level-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.badge-level,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,190,90,.18);
  background: rgba(255,150,66,.08);
  color: #ffcd81;
  font-size: 12px;
  font-weight: 700;
}
.xp-bar {
  width: min(320px, 38vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.xp-bar span {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}
.profile-stats-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.profile-stats-head strong { display: block; font-size: clamp(28px, 2.2vw, 40px); }
.profile-stats-head small,
.mini-stats small,
.field-label,
.helper-note,
.topup-footer-points,
.modal-copy,
.warning-box,
.modal-error,
.feature-list,
.guest-note,
.orders-meta,
.order-status,
.payment-row small,
.current-balance-card p { color: var(--muted); }
.profile-grid,
.profile-bottom-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.section-title-row h2,
.section-title-row h3,
.about-grid h2 { margin: 0; }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.mini-stats--tight { margin-bottom: 0; }
.mini-stats > div {
  border: 1px solid rgba(255,188,91,.12);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
}
.mini-stats strong { display: block; font-size: 22px; }
.activity-bars {
  min-height: 124px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.activity-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.activity-bar__column {
  width: 100%;
  min-height: 12px;
  max-height: 110px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, rgba(255,175,76,.95), rgba(153,73,20,.35));
  border: 1px solid rgba(255,192,95,.12);
}
.activity-bar small { color: var(--muted); font-size: 12px; }
.copy-row { display: flex; gap: 10px; margin-bottom: 16px; }
.field-input,
.copy-row input,
.amount-input-wrap input {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,185,88,.15);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}
.copy-row input { flex: 1; }
.achievement-grid,
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.achievement-item,
.reward-item,
.order-item,
.payment-row {
  border: 1px solid rgba(255,187,90,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}
.achievement-item,
.reward-item { padding: 14px; }
.achievement-item.is-locked,
.reward-item.is-locked { opacity: .45; }
.achievement-item strong,
.reward-item strong { display: block; margin-bottom: 6px; }
.reward-item button {
  margin-top: 10px;
  height: 34px;
  width: 100%;
  border: 1px solid rgba(255,188,92,.22);
  border-radius: 12px;
  background: rgba(255,169,68,.1);
  color: #ffd690;
}
.orders-list,
.payment-history-list { display: grid; gap: 12px; max-height: 420px; overflow: auto; padding-right: 4px; }
.order-item,
.payment-row {
  padding: 15px 16px;
  display: grid;
  gap: 6px;
}
.order-item__top,
.payment-row { grid-template-columns: 1fr auto auto; align-items: center; }
.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.order-status[data-status="paid"] { background: rgba(44, 176, 96, .14); color: #84e1aa; }
.order-status[data-status="pending"] { background: rgba(49, 123, 255, .14); color: #7cb6ff; }
.order-status[data-status="expired"],
.order-status[data-status="cancelled"] { background: rgba(255, 99, 77, .14); color: #ff9a8b; }
.quick-actions { display: grid; gap: 12px; }
.quick-action {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,186,89,.13);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-align: left;
  padding: 0 16px;
}
.quick-action--danger { color: #ff9b8e; }
.guest-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,177,82,.08);
  border: 1px solid rgba(255,177,82,.14);
}
.profile-aside { position: relative; }
.profile-character-card {
  position: sticky;
  top: 110px;
  height: calc(100vh - 150px);
  min-height: 680px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 52% 16%, rgba(255,150,58,.2), transparent 32%),
    linear-gradient(180deg, rgba(29,10,4,.78), rgba(12,5,3,.95));
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
}
.profile-character-card img,
.topup-character img {
  position: absolute;
  inset: auto 50% 0 auto;
  transform: translateX(50%);
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 18px 48px rgba(0,0,0,.4));
}

.topup-panel {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(250px, 290px) 300px;
  gap: 24px;
  padding: 22px;
  align-items: start;
}
.topup-form { min-height: 590px; }
.amount-input-wrap { position: relative; margin-bottom: 14px; }
.amount-input-wrap span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.amount-presets,
.catalog-filters,
.payment-method-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,186,88,.16);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.chip.is-active,
.auth-tab.is-active,
.method-card.is-active { background: rgba(255,171,68,.12); border-color: rgba(255,192,90,.45); color: #ffd38a; }
.topup-method-title { margin-top: 18px; }
.method-card {
  width: min(31%, 180px);
  min-width: 150px;
  min-height: 118px;
  border-radius: 18px;
  border: 1px solid rgba(255,184,87,.16);
  background: rgba(255,255,255,.02);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}
.method-card strong { display: block; margin-top: 6px; }
.method-card small { color: var(--muted); }
.method-icon { font-size: 24px; color: var(--accent); }
.helper-note { margin: 10px 0 18px; }
.topup-footer-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.current-balance-card { text-align: left; }
.current-balance-card strong { display: block; font-size: 48px; margin: 12px 0 6px; }
.topup-side { display: grid; gap: 20px; }
.topup-character {
  position: relative;
  min-height: 690px;
  border-radius: 28px;
  overflow: hidden;
}
.topup-character::before { inset: 70px 0 auto auto; }

.catalog { padding: 24px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.catalog-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,184,87,.12);
  background: linear-gradient(180deg, rgba(33,13,8,.96), rgba(15,6,4,.96));
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  display: grid;
}
.catalog-thumb {
  aspect-ratio: 1 / .88;
  background: linear-gradient(180deg, rgba(255,146,62,.12), rgba(255,255,255,.02));
  overflow: hidden;
}
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card__body { padding: 16px; display: grid; gap: 10px; }
.catalog-card__body h3 { margin: 0; font-size: 18px; }
.catalog-card__meta { color: var(--muted); font-size: 14px; min-height: 38px; }
.catalog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.catalog-price { font-weight: 800; font-size: 22px; color: #ffd486; }
.catalog-buy {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,191,88,.24);
  background: linear-gradient(180deg, #ffcf75, #f0aa33);
  color: #301300;
  font-weight: 800;
}
.about-grid { display: none; }
.about-grid.is-active { display: grid; animation: switchIn .45s ease forwards; }
.feature-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 2, 1, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.is-hidden { display: none; }
.modal-card {
  width: min(540px, 100%);
  padding: 28px;
  border-radius: 28px;
  position: relative;
  background: linear-gradient(180deg, rgba(27,10,4,.96), rgba(15,6,3,.98));
}
.modal-card--purchase { width: min(560px, 100%); }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
}
.modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.auth-tab {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(255,185,88,.14);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.auth-panel { display: none; gap: 10px; }
.auth-panel.is-active { display: grid; }
.field-label { display: block; margin: 2px 0 6px; }
.modal-divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
  color: var(--muted);
}
.modal-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(255,185,88,.12);
}
.modal-divider span { position: relative; padding: 0 12px; background: rgba(18,7,4,.92); }
.warning-box {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,184,89,.16);
  background: rgba(255,184,89,.06);
}
.alert-mark { margin-bottom: 14px; }
.modal-error { min-height: 20px; color: #ffb0a5; margin-top: 12px; }
.purchase-summary { margin-bottom: 16px; display: grid; gap: 8px; }
.payment-box { margin-top: 18px; display: grid; gap: 12px; }
.payment-box.is-hidden { display: none; }
.payment-cta-group { display: grid; gap: 10px; }
.payment-link-button.is-hidden { display: none; }

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,190,92,.16);
  background: rgba(18, 7, 4, .92);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: rise .6s ease both; }
.reveal-delay-1 { animation-delay: .08s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1300px) {
  .panel--hero { grid-template-columns: 1fr; }
  .hero-image-wrap { min-height: 520px; }
  .hero-image-wrap img { max-height: 560px; }
  .profile-layout,
  .topup-panel { grid-template-columns: 1fr; }
  .profile-character-card,
  .topup-character { min-height: 520px; height: auto; position: relative; top: auto; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .shell { width: min(100% - 28px, 100%); }
  .header-inner { grid-template-columns: 1fr; justify-items: center; }
  .profile-pill { width: 100%; max-width: 360px; }
  .trust-list,
  .profile-grid,
  .profile-bottom-grid,
  .about-grid,
  .mini-stats,
  .profile-stats-head,
  .achievement-grid,
  .reward-grid,
  .catalog-grid { grid-template-columns: 1fr; }
  .topup-side { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-stack { padding-top: 166px; }
  .top-actions { justify-content: flex-start; }
  .panel--hero { padding: 26px 20px 20px; min-height: 0; }
  .hero-copy { padding: 10px 0 0; }
  .hero h1 { font-size: clamp(44px, 11vw, 72px); }
  .hero-image-wrap { min-height: 360px; }
  .hero-image-wrap img { max-height: 420px; }
  .card-glow, .modal-card, .profile-layout, .topup-panel, .catalog { padding: 18px; }
  .copy-row { flex-direction: column; }
  .method-card { width: 100%; }
}
.order-open {
  min-height: 40px;
  justify-self: start;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,191,88,.22);
  background: rgba(255,169,68,.08);
  color: #ffd691;
}
.order-open:hover { border-color: rgba(255,191,88,.48); transform: translateY(-1px); }

/* ========================================================================== */
/* V105 — reference polish: Sparkle density + Anonka imperial orange language */
/* ========================================================================== */
:root {
  --bg: #060202;
  --bg-2: #120402;
  --panel: rgba(18, 7, 4, 0.88);
  --panel-soft: rgba(12, 5, 3, 0.86);
  --line: rgba(255, 170, 65, 0.19);
  --line-strong: rgba(255, 195, 84, 0.5);
  --text: #fff5e7;
  --muted: #b99168;
  --accent: #f5ad38;
  --accent-2: #ff741b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  --glow: 0 0 0 1px rgba(255, 184, 75, .08), 0 22px 70px rgba(181, 65, 16, .14);
}

body {
  min-height: 100vh;
  background: #070202;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 1, 1, .45), rgba(6, 2, 1, .76)),
    radial-gradient(circle at 76% 24%, rgba(255, 110, 24, .1), transparent 30%),
    url("/assets/site/han_shop/imperial-scene.svg?v=106") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42), transparent 24%, transparent 76%, rgba(0,0,0,.3)),
    linear-gradient(180deg, rgba(0,0,0,.1), transparent 42%, rgba(0,0,0,.44));
}

.shell { width: min(1500px, calc(100% - 54px)); }
.main-stack {
  position: relative;
  z-index: 2;
  padding: 104px 0 48px;
  gap: 24px;
}
.silk-layer { z-index: 1; opacity: .42; mix-blend-mode: screen; }
.ember-layer {
  z-index: 1;
  opacity: .2;
  background-image:
    radial-gradient(circle, rgba(255,199,99,.8) 0 18%, transparent 20%),
    radial-gradient(circle, rgba(255,116,26,.64) 0 16%, transparent 18%),
    radial-gradient(circle, rgba(255,167,61,.5) 0 14%, transparent 16%);
  background-size: 160px 160px, 230px 230px, 310px 310px;
  background-position: 12px 28px, 86px 144px, 170px 40px;
  mask-image: linear-gradient(180deg, transparent 2%, #000 25%, #000 82%, transparent);
}

.site-header {
  top: 12px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.header-inner {
  min-height: 70px;
  padding: 9px 11px 9px 14px;
  border: 1px solid rgba(255, 184, 82, .16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 7, 4, .88), rgba(9, 4, 2, .78));
  box-shadow: 0 20px 55px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px) saturate(1.15);
}
.brand { gap: 10px; min-width: 220px; }
.brand-seal,
.loader-seal,
.current-balance-icon,
.alert-mark {
  border: 1px solid rgba(255, 209, 119, .3);
  background: linear-gradient(145deg, #e66b23 0%, #a62d0d 58%, #5c1707 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 35px rgba(247, 98, 24, .2);
}
.brand-seal { width: 42px; height: 42px; border-radius: 11px; font-size: 22px; }
.brand-copy b {
  font: 700 22px/1 "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: .12em;
  text-shadow: 0 0 24px rgba(255,185,83,.12);
}
.brand-copy small { margin-top: 3px; font-size: 9px; letter-spacing: .28em; }
.top-actions { gap: 7px; }
.header-action {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(12, 5, 3, .58);
  border-color: rgba(255, 182, 80, .14);
  color: #d9b27f;
  font-size: 13px;
}
.header-action:hover,
.header-action:focus-visible {
  color: #ffd18b;
  background: rgba(255, 153, 53, .08);
  border-color: rgba(255, 193, 92, .35);
  box-shadow: inset 0 0 24px rgba(255,149,44,.045);
}
.profile-pill {
  min-width: 168px;
  min-height: 48px;
  padding: 6px 9px;
  border-radius: 14px;
  background: rgba(12, 5, 3, .68);
}
.profile-pill__avatar { width: 36px; height: 36px; font-size: 15px; }
.profile-pill__copy strong { font-size: 13px; }
.profile-pill__copy small { font-size: 12px; color: #d7a867; }

.panel,
.card-glow,
.modal-card {
  border-color: rgba(255, 177, 72, .16);
  background:
    linear-gradient(180deg, rgba(28, 11, 6, .9), rgba(11, 4, 3, .94));
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255,255,255,.018);
}
.panel,
.card-glow { border-radius: 20px; }
.panel--soft {
  background:
    radial-gradient(circle at 84% 18%, rgba(244, 102, 24, .06), transparent 26%),
    linear-gradient(180deg, rgba(22, 8, 5, .93), rgba(10, 4, 3, .96));
}

.panel--hero {
  min-height: calc(100vh - 132px);
  max-height: 860px;
  grid-template-columns: minmax(430px, .96fr) minmax(430px, .86fr);
  padding: 42px 34px 20px 58px;
  border-radius: 30px;
  border-color: rgba(255, 172, 63, .13);
  background:
    linear-gradient(90deg, rgba(8,3,2,.94) 0%, rgba(10,4,2,.76) 39%, rgba(10,4,2,.13) 68%, rgba(8,3,2,.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.35)),
    url("/assets/site/han_shop/imperial-scene.svg?v=106") center / cover no-repeat;
  box-shadow: 0 30px 100px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,199,103,.025);
}
.panel--hero::before {
  inset: auto -120px -160px auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255,126,31,.22), rgba(255,92,17,.07) 42%, transparent 68%);
  filter: blur(14px);
}
.panel--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 174, 65, .05), transparent 12%, transparent 88%, rgba(255, 135, 40, .05)),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 18%);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 89, .025);
}
.hero-copy { padding: 18px 0 18px 0; z-index: 3; }
.eyebrow {
  margin-bottom: 15px;
  color: #b8783f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .32em;
}
.hero h1 {
  max-width: 720px;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(58px, 6.1vw, 96px);
  line-height: .94;
  letter-spacing: -.035em;
  color: #fff3dd;
  text-shadow: 0 5px 32px rgba(0,0,0,.58);
}
.hero h1 em,
.hero h1 .hero-accent { color: #efab48; font-style: normal; font-weight: 700; }
.hero-actions { margin-top: 31px; }
.temple-button {
  min-height: 52px;
  border-radius: 14px;
  border-color: rgba(255,222,146,.48);
  background: linear-gradient(180deg, #ffd270 0%, #ee9f28 58%, #c77214 100%);
  box-shadow: 0 14px 38px rgba(234, 128, 26, .23), inset 0 1px 0 rgba(255,255,255,.35);
  color: #271000;
  letter-spacing: .01em;
}
.temple-button:not(.temple-button--block)::after { content: "→"; font-size: 18px; margin-left: 5px; }
.temple-button:hover { box-shadow: 0 18px 48px rgba(241, 140, 34, .33), inset 0 1px 0 rgba(255,255,255,.4); }
.ghost-button {
  border-radius: 14px;
  background: rgba(9, 4, 2, .62);
  border-color: rgba(255,181,76,.17);
}
.trust-list {
  width: min(660px, 100%);
  margin-top: 38px;
  border-top-color: rgba(255,174,72,.13);
  border-bottom: 1px solid rgba(255,174,72,.08);
  background: linear-gradient(90deg, rgba(255,142,37,.035), transparent);
}
.trust-list div { padding: 13px 10px; border-right-color: rgba(255,174,72,.1); font-size: 12px; }
.trust-list b { font-size: 10px; letter-spacing: .08em; color: #d98b37; }
.trust-list span { color: #9f7c5d; }
.hero-stage { z-index: 2; align-items: flex-end; }
.hero-image-wrap { min-height: 650px; align-items: flex-end; justify-content: flex-end; }
.hero-image-wrap::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 2%;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,139,47,.16), rgba(255,95,20,.04) 48%, transparent 70%);
  filter: blur(10px);
}
.hero-image-wrap img {
  max-height: min(78vh, 750px);
  margin-right: -12px;
  filter: drop-shadow(0 30px 58px rgba(0,0,0,.58)) drop-shadow(0 0 44px rgba(217,84,15,.08));
}

.profile-layout {
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  min-height: calc(100vh - 132px);
}
.profile-main { gap: 15px; }
.card-glow { padding: 18px; }
.card-glow::before { opacity: .6; }
.profile-summary { padding: 18px 20px; }
.profile-summary__identity h2 { font-size: 29px; }
.profile-avatar-large { width: 64px; height: 64px; font-size: 23px; }
.profile-stats-head { gap: 30px; }
.profile-stats-head strong { font-size: clamp(22px, 1.7vw, 31px); color: #e9b05b; }
.profile-stats-head small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.profile-grid { gap: 14px; }
.profile-bottom-grid { gap: 14px; }
.section-title-row { margin-bottom: 14px; }
.section-title-row h2,
.section-title-row h3 { letter-spacing: -.02em; }
.section-title-row h3 { font-size: 16px; }
.mini-stats { gap: 8px; }
.mini-stats > div { border-color: rgba(255,178,72,.1); background: rgba(255,255,255,.015); }
.mini-stats strong { color: #e3a747; font-size: 18px; }
.activity-bar__column { background: linear-gradient(180deg, #f5a63d, #9e3b13); box-shadow: 0 0 20px rgba(238,119,28,.09); }
.achievement-item,
.reward-item,
.order-item,
.payment-row { background: rgba(255,255,255,.014); border-color: rgba(255,182,77,.09); }
.achievement-item,
.reward-item { border-radius: 13px; }
.profile-character-card {
  min-height: 620px;
  border-radius: 22px;
  border-color: rgba(255,176,70,.12);
  background:
    radial-gradient(circle at 50% 16%, rgba(255,146,54,.14), transparent 30%),
    linear-gradient(180deg, rgba(28,10,5,.42), rgba(8,3,2,.75)),
    url("/assets/site/han_shop/imperial-scene.svg?v=106") 68% center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012), 0 24px 58px rgba(0,0,0,.32);
}
.profile-character-card img { max-height: 102%; bottom: -1%; }
.quick-action {
  min-height: 48px;
  border-radius: 13px;
  background: rgba(255,255,255,.012);
  border-color: rgba(255,181,75,.1);
}
.quick-action:hover { background: rgba(255,159,49,.055); }
.guest-note { border-radius: 13px; }

.topup-panel {
  grid-template-columns: minmax(390px, 1.15fr) minmax(260px, .72fr) 330px;
  min-height: calc(100vh - 132px);
  padding: 18px;
  gap: 18px;
  border-radius: 26px;
}
.topup-form { min-height: 0; }
.amount-input-wrap input,
.field-input,
.copy-row input {
  background: rgba(5,2,1,.5);
  border-color: rgba(255,178,74,.13);
  border-radius: 12px;
}
.amount-input-wrap input:focus,
.field-input:focus,
.copy-row input:focus {
  outline: none;
  border-color: rgba(255,199,97,.48);
  box-shadow: 0 0 0 3px rgba(255,151,44,.07);
}
.chip { border-radius: 10px; background: rgba(255,255,255,.016); }
.chip.is-active,
.auth-tab.is-active,
.method-card.is-active {
  background: linear-gradient(180deg, rgba(255,174,66,.11), rgba(150,64,17,.07));
  border-color: rgba(255,198,93,.42);
  color: #ffd38a;
  box-shadow: inset 0 0 24px rgba(255,129,31,.035);
}
.method-card {
  min-height: 104px;
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}
.current-balance-card strong { color: #efad4f; }
.topup-character {
  min-height: 650px;
  border: 1px solid rgba(255,176,72,.09);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,134,43,.13), transparent 30%),
    linear-gradient(180deg, rgba(18,6,3,.15), rgba(6,2,1,.52));
}
.topup-character img { max-height: 104%; bottom: -2%; }

.catalog {
  border-radius: 26px;
  padding: 20px;
  min-height: calc(100vh - 132px);
}
.catalog-grid { gap: 14px; }
.catalog-card {
  border-radius: 17px;
  border-color: rgba(255,183,77,.12);
  background: linear-gradient(180deg, rgba(26,10,6,.94), rgba(10,4,3,.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.catalog-thumb { aspect-ratio: 1/.72; }
.catalog-card__body { padding: 13px; gap: 8px; }
.catalog-card__body h3 { font-size: 15px; }
.catalog-card__meta { font-size: 12px; color: #a98666; }
.catalog-price { font-size: 19px; color: #f2b154; }
.catalog-buy {
  min-height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd16f, #dd8f20);
  box-shadow: 0 10px 25px rgba(221,119,22,.18);
}

.modal-backdrop {
  background:
    linear-gradient(90deg, rgba(4,1,1,.88), rgba(7,2,1,.7) 46%, rgba(7,2,1,.56)),
    url("/assets/site/han_shop/imperial-scene.svg?v=106") center / cover no-repeat;
  backdrop-filter: blur(6px) saturate(.92);
  overflow: hidden;
}
#authModal::after {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - 1420px) / 2));
  bottom: -13%;
  width: min(44vw, 700px);
  height: 110%;
  z-index: 0;
  pointer-events: none;
  background: none;
  opacity: .36;
  filter: saturate(.92) drop-shadow(0 28px 65px rgba(0,0,0,.6));
}
.modal-card {
  z-index: 2;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(24,9,5,.96), rgba(10,4,2,.98));
  box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,193,88,.04);
}
.modal-card--welcome { width: min(500px, 100%); }
.modal-card h2 { font-size: 29px; margin-bottom: 8px; }
.modal-brand { margin-bottom: 13px; }
.auth-tabs { gap: 7px; }
.auth-tab { min-height: 43px; border-radius: 11px; }
.warning-box { border-radius: 12px; }
.alert-mark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: radial-gradient(circle, rgba(247,157,55,.12), rgba(154,56,15,.1));
  border: 2px solid rgba(255,169,66,.82);
  color: #ffc16a;
  box-shadow: 0 0 35px rgba(238,104,24,.14);
}
.modal-card--compact { text-align: center; width: min(430px, 100%); }
.modal-card--compact .ghost-button { margin-top: 9px; }

.page-loader {
  background:
    radial-gradient(circle at center, rgba(255,116,30,.16), rgba(5,2,1,.93) 54%),
    linear-gradient(180deg, rgba(5,2,1,.46), rgba(5,2,1,.78)),
    url("/assets/site/han_shop/imperial-scene.svg?v=106") center / cover no-repeat;
  backdrop-filter: blur(3px);
}
.loader-card {
  width: min(520px, calc(100% - 40px));
  padding: 38px 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.loader-seal {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto;
  font-size: 38px;
  background: radial-gradient(circle, rgba(255,154,54,.2), rgba(91,26,8,.3) 65%, rgba(12,4,2,.5));
  border: 2px solid rgba(255,170,67,.7);
  box-shadow: 0 0 0 11px rgba(255,142,39,.025), 0 0 72px rgba(255,99,17,.18);
}
.loader-brand { font-size: 28px; letter-spacing: .14em; color: #ead4b3; }
.loader-bar { height: 7px; border: 1px solid rgba(255,183,77,.14); background: rgba(0,0,0,.42); }
.loader-bar span { background: linear-gradient(90deg, #d5791e, #ffd06e, #eb7e20); box-shadow: 0 0 18px rgba(255,156,46,.25); }
.loader-card p { font-family: Georgia, serif; color: #9e7a5c; }

.transition-veil {
  background: radial-gradient(circle at center, rgba(255,104,20,.16), rgba(4,1,1,.84) 47%, rgba(4,1,1,.93));
}
.transition-veil::before {
  content: "漢";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.86) rotate(-8deg);
  border: 2px solid rgba(255,171,64,.72);
  color: #f5b45a;
  font: 700 32px/1 Georgia, serif;
  background: radial-gradient(circle, rgba(255,120,26,.12), rgba(27,7,2,.42));
  box-shadow:
    0 0 0 12px rgba(255,108,20,.02),
    0 0 0 24px rgba(255,116,23,.018),
    0 0 58px rgba(255,100,18,.2);
  opacity: 0;
  transition: opacity .2s ease, transform .38s ease;
}
.transition-veil.is-active::before { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(5deg); }

.toast { border-radius: 13px; background: rgba(18,7,4,.94); }

@media (max-width: 1300px) {
  .panel--hero { max-height: none; min-height: 720px; grid-template-columns: minmax(390px,.95fr) minmax(390px,.85fr); }
  .hero-image-wrap { min-height: 600px; }
  .profile-layout,
  .topup-panel { min-height: 0; }
  .profile-character-card { min-height: 560px; height: 560px; }
  .topup-character { min-height: 560px; }
}

@media (max-width: 1040px) {
  .site-header { top: 8px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .header-action { padding: 0 10px; }
  .header-action span:last-child { display: none; }
  .profile-pill { min-width: 0; }
  .profile-pill__copy { display: none; }
  .panel--hero { grid-template-columns: 1fr 1fr; padding-left: 34px; }
  .trust-list { grid-template-columns: 1fr; max-width: 390px; }
  .trust-list div { border-right: 0; border-bottom: 1px solid rgba(255,174,72,.08); }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 24px, 100%); }
  .main-stack { padding-top: 98px; }
  .header-inner { min-height: 62px; }
  .brand-copy b { font-size: 18px; }
  .profile-pill__avatar { width: 34px; height: 34px; }
  .panel--hero {
    min-height: 720px;
    max-height: none;
    grid-template-columns: 1fr;
    padding: 32px 22px 0;
    background:
      linear-gradient(180deg, rgba(6,2,1,.92) 0%, rgba(8,3,2,.72) 46%, rgba(7,2,1,.2) 72%, rgba(7,2,1,.45) 100%),
      url("/assets/site/han_shop/imperial-scene.svg?v=106") center / cover no-repeat;
  }
  .hero-copy { text-align: center; }
  .hero h1 { margin: 0 auto; font-size: clamp(48px, 12vw, 78px); }
  .hero-actions { display: flex; justify-content: center; }
  .trust-list { margin-inline: auto; display: none; }
  .hero-image-wrap { min-height: 380px; justify-content: center; margin-top: -20px; }
  .hero-image-wrap img { max-height: 470px; margin-right: 0; }
  .profile-layout,
  .topup-panel { padding: 12px; }
  #authModal::after { opacity: .16; width: 82vw; right: -20vw; }
}

@media (max-width: 560px) {
  .site-header { top: 6px; }
  .header-inner { padding: 7px; border-radius: 16px; gap: 6px; }
  .brand-seal { width: 36px; height: 36px; }
  .brand-copy { display: none; }
  .top-actions { gap: 4px; }
  .header-action { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }
  .profile-pill { padding: 3px; border: 0; background: transparent; }
  .profile-pill__caret { display: none; }
  .panel--hero { border-radius: 22px; padding-inline: 14px; }
  .hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero-image-wrap img { max-height: 420px; }
  .card-glow,
  .modal-card,
  .catalog { padding: 14px; }
  .modal-card h2 { font-size: 25px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .method-card { min-width: 0; }
}

/* V105 layout correction: .view.is-active must not collapse hero grid to block. */
.panel--hero.view.is-active { display: grid; }
.hero-image-wrap img { max-height: min(86vh, 790px); }
.profile-character-card img,
.topup-character img {
  max-width: none;
  max-height: none;
  width: auto;
}
.profile-character-card img { height: 108%; }
.topup-character img { height: 106%; }

/* V106 — seamless scene, free character, compact payments/profile menu */
:root { --character-space: clamp(320px, 31vw, 520px); }

.page-loader,
.transition-veil { display: none !important; }

.site-wordmark {
  position: fixed;
  left: clamp(28px, 7vw, 150px);
  top: 76px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(82px, 10.5vw, 178px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .9;
  color: rgba(255, 139, 36, .018);
  -webkit-text-stroke: 1px rgba(255, 126, 24, .13);
  text-shadow: 0 0 62px rgba(255, 91, 14, .035);
}

/* No full-width framed boxes: the imperial background is the page itself. */
.header-inner {
  border: 0 !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.018) !important;
}
.panel,
.panel--soft,
.profile-layout,
.topup-panel,
.catalog {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.panel--hero {
  border: 0 !important;
  box-shadow: none !important;
  background:
    linear-gradient(90deg, rgba(5,2,1,.86) 0%, rgba(7,3,2,.58) 37%, rgba(7,3,2,.06) 68%, transparent 100%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.22)) !important;
}
.panel--hero::after { display: none !important; }

/* Move the navigation cluster to the right, closer to the reference. */
.top-actions {
  justify-content: flex-end !important;
  padding-left: clamp(20px, 6vw, 110px);
}

.profile-shell { position: relative; justify-self: end; }
.profile-pill__caret {
  font-size: 16px;
  line-height: 1;
  color: #a97a50;
  transition: transform .18s ease, color .18s ease;
}
.profile-shell.is-open .profile-pill__caret { transform: rotate(180deg); color: #ffd18b; }
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(255, 176, 77, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19,8,5,.97), rgba(8,3,2,.985));
  box-shadow: 0 24px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.018);
  backdrop-filter: blur(18px) saturate(1.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.profile-shell.is-open .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.profile-menu button,
.profile-menu a {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #ead5bb;
  text-align: left;
  text-decoration: none;
}
.profile-menu button:hover,
.profile-menu a:hover { background: rgba(255, 143, 39, .075); color: #ffd18b; }
.profile-menu__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,179,80,.11);
  background: rgba(255,151,43,.06);
}
.profile-menu__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-menu__divider { height: 1px; margin: 5px 7px; background: linear-gradient(90deg, transparent, rgba(255,178,76,.14), transparent); }
.profile-menu .profile-menu__logout { color: #c9938a; }
.profile-menu .profile-menu__logout:hover { color: #ff8d7d; background: rgba(255,82,62,.075); }
.profile-menu .profile-menu__logout .profile-menu__icon { background: rgba(255,83,63,.055); border-color: rgba(255,104,83,.12); }

/* A single free-standing character is now part of the page background, not a card. */
.floating-character {
  position: fixed;
  right: max(-4px, calc((100vw - 1540px) / 2 - 8px));
  bottom: -2.5vh;
  width: min(36vw, 570px);
  height: calc(100vh - 80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(26px, 18px, 0) scale(.975);
  transition: opacity .32s ease, transform .42s cubic-bezier(.22,1,.36,1), filter .18s ease;
}
.floating-character::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 4%;
  bottom: 4%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 48%, rgba(255,111,25,.15), rgba(255,84,11,.045) 42%, transparent 70%);
  filter: blur(18px);
}
.floating-character.is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); }
.floating-character.is-swapping { opacity: .08; transform: translate3d(34px, 5px, 0) scale(.99); filter: blur(2px); }
.floating-character img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: min(90vh, 860px);
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 28px 58px rgba(0,0,0,.62)) drop-shadow(0 0 35px rgba(219,81,12,.09));
}

/* Reserve clean breathing room for the free character on desktop. */
.profile-layout { display: block !important; padding: 8px var(--character-space) 18px 0 !important; min-height: calc(100vh - 118px); }
.topup-panel {
  grid-template-columns: minmax(410px, 1.2fr) minmax(250px, .7fr) !important;
  padding: 8px var(--character-space) 18px 0 !important;
  gap: 15px !important;
  min-height: calc(100vh - 118px);
}
.catalog { padding: 8px var(--character-space) 24px 0 !important; }
.about-grid { padding-right: var(--character-space); }
.profile-aside,
.profile-character-card,
.topup-character { display: none !important; }

.profile-grid > section:last-child { grid-column: 1 / -1; }
.profile-bottom-grid--wide { grid-template-columns: 1fr !important; }
.recent-purchases-card { min-height: 190px; }
.recent-purchases-card .orders-list { max-height: 520px; }

.character-style {
  display: grid;
  gap: 7px;
  justify-items: start;
  flex: 0 0 auto;
}
.character-style > small {
  color: #a98567;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.character-style__options { display: flex; gap: 7px; }
.character-style__button {
  width: 47px;
  height: 47px;
  padding: 0;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid rgba(255,177,72,.12);
  background: rgba(255,255,255,.012);
  box-shadow: inset 0 0 18px rgba(255,139,36,.025);
  opacity: .7;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.character-style__button:hover,
.character-style__button.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(255,196,91,.55);
  box-shadow: 0 0 0 2px rgba(255,146,41,.06), inset 0 0 22px rgba(255,139,36,.045);
}
.character-style__button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: scale(1.22) translateY(4px);
}

/* Real payment artwork from the existing payment_icons bundle. */
.method-card {
  min-height: 112px !important;
  grid-template-rows: 46px auto auto;
  align-content: center;
  gap: 4px;
}
.method-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: inherit !important;
}
.method-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 11px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.24));
}
.method-card strong { margin-top: 1px !important; }
.method-card small { display: block; margin-top: 2px; color: #bc966f !important; font-size: 11px; }
.helper-note { display: none !important; }

/* Keep payment/history blocks compact; no large empty placeholder panel. */
.topup-side { align-content: start; gap: 15px !important; }
.payment-history-card { min-height: 0; }
.payment-history-list { max-height: 310px; }
.current-balance-card { min-height: 0; }

@media (max-width: 1350px) and (min-width: 1101px) {
  .profile-summary {
    display: grid !important;
    grid-template-columns: minmax(270px,1fr) auto;
  }
  .character-style { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 1100px) {
  :root { --character-space: 0px; }
  .floating-character { display: none !important; }
  .profile-layout,
  .topup-panel,
  .catalog,
  .about-grid { padding-right: 0 !important; }
  .topup-panel { grid-template-columns: 1fr !important; }
  .profile-summary { flex-wrap: wrap; }
  .site-wordmark { left: 24px; top: 86px; font-size: clamp(66px, 14vw, 128px); }
}

@media (max-width: 820px) {
  .top-actions { padding-left: 0 !important; justify-content: center !important; }
  .profile-shell { justify-self: center; }
  .profile-menu { position: fixed; top: 78px; right: 12px; width: min(260px, calc(100vw - 24px)); }
  .profile-summary { display: grid !important; grid-template-columns: 1fr !important; }
  .profile-stats-head { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .character-style { justify-items: start; }
  .site-wordmark { opacity: .72; }
}

@media (max-width: 560px) {
  .site-wordmark { top: 72px; font-size: 23vw; }
  .profile-menu { top: 64px; }
  .profile-stats-head { gap: 8px !important; }
  .character-style__button { width: 43px; height: 43px; }
  .method-card { min-height: 100px !important; }
}

/* V107 — centered frameless home, quieter particles and five new character looks. */
.site-wordmark {
  left: 50%;
  top: clamp(104px, 13vh, 150px);
  transform: translateX(-50%);
  width: max-content;
  font-size: clamp(156px, 21vw, 390px);
  color: rgba(255, 139, 36, .022);
  -webkit-text-stroke: 1px rgba(255, 126, 24, .105);
  text-shadow: 0 0 82px rgba(255, 91, 14, .032);
}

.ember-layer {
  opacity: .09;
  background-image:
    radial-gradient(circle, rgba(255, 194, 91, .72) 0 12%, transparent 14%),
    radial-gradient(circle, rgba(255, 109, 24, .55) 0 10%, transparent 12%);
  background-size: 440px 440px, 690px 690px;
  background-position: 34px 72px, 210px 280px;
}

.header-inner {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.panel--hero,
.panel--hero.view.is-active {
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center;
  min-height: calc(100vh - 104px);
  max-height: none;
  padding: clamp(90px, 15vh, 180px) 24px 80px !important;
  overflow: visible;
  background: transparent !important;
}
.panel--hero::before,
.panel--hero::after { display: none !important; }
.hero-copy {
  width: 100%;
  max-width: 1320px;
  padding: 0 !important;
  align-self: center;
  text-align: center;
}
.hero h1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .2em;
  max-width: none;
  margin: 0 auto;
  font-size: clamp(58px, 7.4vw, 116px);
  line-height: 1;
  letter-spacing: -.045em;
}
.hero h1 em { font-style: italic; font-weight: 600; color: #fff3dd; }
.hero h1 .hero-accent { color: #efa63e; }
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-free-button {
  min-height: 52px;
  padding: 0 24px;
  border-color: rgba(255, 190, 88, .3);
  color: #f3c37d;
  background: rgba(16, 7, 4, .42);
}
.hero-free-button:hover { background: rgba(255, 148, 42, .08); color: #ffd18b; }
.hero-free-button.is-unavailable { opacity: .72; }

.profile-stats-head { align-items: stretch; }
.profile-stats-head > div {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.profile-stats-head strong { line-height: 1.05; white-space: nowrap; }
.profile-stats-head small { display: block; margin-top: 7px; line-height: 1.2; }

.mini-stats > div {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mini-stats strong { line-height: 1.1; white-space: nowrap; }
.mini-stats small { display: block; margin-top: 7px; line-height: 1.25; }

#authModal::after { display: none !important; }
#buyModal::after {
  content: "";
  position: absolute;
  right: max(-80px, calc((100vw - 1320px) / 2 - 80px));
  bottom: -11%;
  width: min(40vw, 600px);
  height: 108%;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/site/han_shop/model-checkout-v112.png?v=112") right bottom / contain no-repeat;
  opacity: .32;
  filter: saturate(.96) drop-shadow(0 28px 65px rgba(0,0,0,.58));
}
#buyModal .modal-card { position: relative; z-index: 2; }

@media (max-width: 820px) {
  .site-wordmark {
    top: 100px;
    font-size: clamp(104px, 28vw, 210px);
  }
  .panel--hero,
  .panel--hero.view.is-active {
    min-height: calc(100vh - 88px);
    padding: 110px 12px 60px !important;
  }
  .hero h1 { font-size: clamp(48px, 12vw, 78px); }
  #buyModal::after { opacity: .1; width: 82vw; right: -28vw; }
}

@media (max-width: 560px) {
  .site-wordmark { top: 82px; font-size: 29vw; }
  .hero h1 { font-size: clamp(43px, 13.6vw, 64px); }
  .hero-actions { margin-top: 28px; }
  .hero-actions > button { width: min(100%, 260px); }
  .profile-stats-head > div { min-height: 62px; }
  .profile-stats-head small { font-size: 9px; letter-spacing: .04em; }
  .mini-stats > div { min-height: 76px; padding-inline: 8px; }
}

/* V108 — denser header, layered wordmarks, reviews and storefront footer. */
.site-wordmark--one {
  left: 50%;
  top: clamp(104px, 13vh, 150px);
  transform: translateX(-50%);
}
.site-wordmark--two {
  left: -5vw;
  top: 39vh;
  transform: rotate(-15deg);
  font-size: clamp(90px, 13vw, 220px);
  color: rgba(255,139,36,.013);
  -webkit-text-stroke-color: rgba(255,126,24,.075);
}
.site-wordmark--three {
  left: auto;
  right: -7vw;
  top: 48vh;
  transform: rotate(78deg);
  transform-origin: center;
  font-size: clamp(78px, 11vw, 188px);
  color: rgba(255,139,36,.012);
  -webkit-text-stroke-color: rgba(255,126,24,.07);
}
.site-wordmark--four {
  left: 25vw;
  top: auto;
  bottom: -1vh;
  transform: rotate(9deg);
  font-size: clamp(74px, 10vw, 170px);
  color: rgba(255,139,36,.012);
  -webkit-text-stroke-color: rgba(255,126,24,.065);
}

.header-inner {
  background: linear-gradient(180deg, rgba(24,9,5,.965), rgba(9,4,3,.94)) !important;
  border: 1px solid rgba(255,181,80,.16) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035) !important;
  backdrop-filter: blur(20px) saturate(1.16) !important;
}
.brand { min-width: 178px; }
.brand-copy small { color: #d6a46b; letter-spacing: .16em; }
.top-actions { padding-left: clamp(8px, 2.5vw, 42px) !important; gap: 6px; }
.header-action {
  padding-inline: 11px;
  background: rgba(10,4,3,.88);
  border-color: rgba(255,181,80,.19);
}
.profile-pill {
  min-width: 164px;
  background: rgba(10,4,3,.92);
  border-color: rgba(255,181,80,.22);
}

#topupPayButton { margin-top: 22px; }

.reviews-view {
  min-height: 680px;
  padding: 24px 0 60px;
}
.reviews-heading { max-width: 720px; margin-bottom: 24px; }
.reviews-heading h2 {
  margin: 0;
  font: 700 clamp(34px,4.2vw,64px)/1.05 "Palatino Linotype","Book Antiqua",Georgia,serif;
}
.reviews-heading p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.review-card {
  overflow: hidden;
  border: 1px solid rgba(255,181,80,.17);
  border-radius: 22px;
  background: linear-gradient(180deg,rgba(28,11,6,.94),rgba(10,4,3,.97));
  box-shadow: 0 20px 55px rgba(0,0,0,.31), inset 0 1px 0 rgba(255,255,255,.025);
}
.review-card__photo { aspect-ratio: 4/3; overflow: hidden; background: rgba(255,139,36,.035); }
.review-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.review-card:hover .review-card__photo img { transform: scale(1.025); }
.review-card__body { padding: 18px; }
.review-card__top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.review-card__top h3 { margin: 0; font-size: 18px; }
.review-stars { color: #ffb341; letter-spacing: .08em; white-space: nowrap; }
.review-card__body p { margin: 12px 0 0; color: #c9a887; line-height: 1.55; }
.review-author { display: block; margin-top: 16px; color: #f2c789; font-size: 13px; }
.reviews-empty { grid-column: 1/-1; padding: 34px; text-align: center; color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 3;
  margin-bottom: 28px;
  border: 1px solid rgba(255,181,80,.16);
  border-radius: 24px;
  background: linear-gradient(180deg,rgba(23,9,6,.955),rgba(9,4,3,.98));
  box-shadow: 0 26px 72px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.025);
  overflow: hidden;
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(280px,1.4fr) minmax(150px,.55fr) minmax(170px,.55fr);
  gap: 48px;
  padding: 28px 32px 24px;
}
.footer-brand-link { display: inline-grid; gap: 4px; }
.footer-brand-link b { font: 700 22px/1 Georgia,serif; letter-spacing: .12em; }
.footer-brand-link small { color: #d5a66f; letter-spacing: .17em; font-size: 9px; text-transform: uppercase; }
.site-footer__brand p { max-width: 380px; margin: 16px 0 0; color: #a98567; font-size: 13px; line-height: 1.6; }
.site-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer__column > span { margin-bottom: 5px; color: #8e6d55; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-footer__column button,.site-footer__column a { padding: 0; border: 0; background: transparent; color: #cdb59d; font-size: 13px; }
.site-footer__column button:hover,.site-footer__column a:hover,.site-footer__bottom a:hover { color: #ffd18b; }
.site-footer__community a { padding: 8px 14px; border: 1px solid rgba(255,181,80,.2); border-radius: 11px; background: rgba(255,139,36,.055); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 32px;
  border-top: 1px solid rgba(255,181,80,.1);
  color: #80634e;
  font-size: 11px;
}
.site-footer__bottom div { display: flex; gap: 24px; }

@media (max-width: 1180px) {
  .header-action span:last-child { display: none; }
  .header-action { width: 42px; padding: 0; justify-content: center; }
  .reviews-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .site-wordmark--two,.site-wordmark--three,.site-wordmark--four { opacity: .52; }
  .reviews-grid { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 26px; }
  .site-footer__brand { grid-column: 1/-1; }
  .site-footer__bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .header-inner { background: rgba(13,5,3,.965) !important; }
  .site-footer__main { grid-template-columns: 1fr; padding: 24px 20px; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { padding: 15px 20px; }
  .site-footer__bottom div { flex-direction: column; gap: 8px; }
}

/* V109 — responsive navigation, persistent guests, real activity and video feed. */
.header-action.is-active {
  color: #ffd18b;
  border-color: rgba(255,194,94,.5);
  background: linear-gradient(180deg,rgba(255,157,48,.15),rgba(255,112,24,.06));
  box-shadow: inset 0 0 22px rgba(255,139,36,.08),0 8px 26px rgba(0,0,0,.22);
}
.profile-pill {
  background: linear-gradient(180deg,rgba(25,10,6,.985),rgba(11,4,3,.985)) !important;
  backdrop-filter: blur(18px) saturate(1.1);
}
.profile-summary { position: relative; isolation: isolate; }
.profile-summary__identity,.profile-stats-head { position: relative; z-index: 2; }
.profile-summary__model { display: none; }
.activity-bar__column.is-zero {
  opacity: .2;
  background: rgba(255,177,74,.35);
}
.payment-method-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.payment-method-grid .method-card { width: 100%; min-width: 0; }
#topupMethods > .method-card:last-child:nth-child(5),
#purchaseMethods > .method-card:last-child:nth-child(5),
#topupMethods > .method-card:last-child:nth-child(4),
#purchaseMethods > .method-card:last-child:nth-child(4) { grid-column: 2; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-watch,.order-open {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 750;
}
.order-watch {
  border: 1px solid rgba(255,191,88,.38);
  background: linear-gradient(180deg,#ffd27d,#e89b28);
  color: #311300;
  box-shadow: 0 10px 24px rgba(255,153,35,.17);
}
.order-watch:hover { transform: translateY(-1px); }

.modal-card--video {
  width: min(1120px,calc(100vw - 32px));
  max-height: min(900px,calc(100dvh - 32px));
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(270px,.75fr);
  grid-template-rows: auto minmax(0,1fr);
  gap: 16px;
  overflow: hidden;
  padding: 24px;
}
.video-modal-heading { grid-column: 1/-1; padding-right: 48px; }
.video-modal-heading .eyebrow { margin-bottom: 5px; }
.video-modal-heading h2 { margin: 0; }
.video-player-shell {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,181,80,.16);
  border-radius: 20px;
  background: radial-gradient(circle at center,rgba(255,135,33,.08),transparent 54%),#050202;
}
.video-player-shell video { width: 100%; height: 100%; max-height: 680px; object-fit: contain; background: #000; }
.video-player-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; color: #9e7b61; text-align: center; }
.video-player-empty.is-hidden { display: none; }
.video-feed { min-height: 0; display: grid; align-content: start; gap: 8px; overflow-y: auto; padding-right: 4px; }
.video-feed-card {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255,181,80,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  color: #ebd6bc;
  text-align: left;
}
.video-feed-card:hover,.video-feed-card.is-active { border-color: rgba(255,193,91,.45); background: rgba(255,145,39,.09); }
.video-feed-card__index { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,144,38,.08); color: #f2ad47; font-weight: 800; }
.video-feed-card strong,.video-feed-card small { display: block; }
.video-feed-card small { margin-top: 4px; color: #98775f; font-size: 11px; }
.video-feed-card__play { color: #f3b65b; text-align: center; }
.video-feed-empty { padding: 28px 14px; color: #9e7b61; text-align: center; }

@media (max-width: 1100px) {
  .modal-card--video { grid-template-columns: 1fr minmax(230px,.62fr); }
  .video-player-shell { min-height: 360px; }
}

@media (max-width: 820px) {
  :root { --mobile-nav-height: 72px; }
  body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 20px) !important; }
  .site-header { padding: max(7px,env(safe-area-inset-top)) 0 7px; background: rgba(7,2,2,.9); border-bottom-color: rgba(255,174,80,.08); backdrop-filter: none !important; }
  .header-inner {
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 8px !important;
    padding: 6px 7px !important;
    border-radius: 17px !important;
    backdrop-filter: none !important;
  }
  .brand { min-width: 0; overflow: hidden; }
  .brand-copy { display: block !important; }
  .brand-copy b { font-size: clamp(19px,6vw,25px); white-space: nowrap; }
  .brand-copy small { margin-top: 3px; font-size: 8px; letter-spacing: .11em; white-space: nowrap; }
  .profile-shell { grid-column: 2; justify-self: end !important; }
  .profile-pill { width: auto !important; min-width: 0 !important; max-width: none !important; min-height: 44px; padding: 4px 7px 4px 4px !important; gap: 7px; border: 1px solid rgba(255,181,80,.19) !important; }
  .profile-pill__avatar { width: 35px !important; height: 35px !important; flex: 0 0 35px; }
  .profile-pill__copy { display: flex !important; min-width: 0; }
  .profile-pill__copy strong { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .profile-pill__copy small { font-size: 10px; }
  .profile-pill__caret { display: none; }
  .profile-menu { top: calc(max(7px,env(safe-area-inset-top)) + 64px) !important; right: 10px; }

  .top-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px,env(safe-area-inset-bottom));
    z-index: 46;
    height: var(--mobile-nav-height);
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 3px !important;
    padding: 6px !important;
    border: 1px solid rgba(255,181,80,.2);
    border-radius: 20px;
    background: linear-gradient(180deg,rgba(28,11,7,.985),rgba(9,4,3,.99));
    box-shadow: 0 18px 48px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(22px) saturate(1.16);
  }
  .header-action {
    width: auto !important;
    height: 58px;
    min-width: 0;
    padding: 4px 2px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    font-size: 9px;
  }
  .header-action span:last-child { display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-action svg { width: 19px; height: 19px; }
  .header-action.is-active { color: #ffd18b; background: rgba(255,145,39,.12); box-shadow: inset 0 0 18px rgba(255,139,36,.08); }

  .main-stack { padding: calc(max(7px,env(safe-area-inset-top)) + 79px) 0 24px !important; gap: 16px; }
  .site-wordmark--one { top: 78px; font-size: clamp(86px,29vw,188px); }
  .panel--hero,.panel--hero.view.is-active { min-height: calc(100dvh - 160px); padding: 44px 8px 42px !important; }

  .profile-layout { min-height: 0 !important; padding: 0 !important; }
  .profile-main { gap: 12px !important; }
  .profile-summary { padding: 14px !important; gap: 12px !important; overflow: hidden; }
  .profile-summary__identity { min-height: 84px; padding-right: 98px; gap: 10px; }
  .profile-summary__identity h2 { font-size: clamp(22px,7vw,29px); }
  .profile-summary__identity p { font-size: 12px; }
  .profile-avatar-large { width: 54px; height: 54px; flex: 0 0 54px; font-size: 20px; }
  .level-row { margin-top: 9px; gap: 8px; }
  .xp-bar { width: min(150px,36vw); }
  .profile-summary__model { display: block; position: absolute; z-index: 1; right: -3px; top: 1px; width: 112px; height: 150px; object-fit: contain; object-position: center top; opacity: .72; filter: drop-shadow(0 12px 24px rgba(0,0,0,.48)); pointer-events: none; }
  .profile-stats-head { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 6px !important; padding-top: 8px; border-top: 1px solid rgba(255,181,80,.1); }
  .profile-stats-head > div { min-height: 58px !important; padding: 6px 3px; }
  .profile-stats-head strong { font-size: clamp(19px,6vw,25px) !important; }
  .profile-stats-head small { font-size: 8px !important; }

  .profile-grid,.profile-bottom-grid,.about-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .card-glow,.catalog,.topup-panel { padding: 15px !important; border-radius: 19px; }
  .section-title-row { margin-bottom: 12px; }
  .section-title-row h2,.section-title-row h3 { font-size: clamp(18px,5.3vw,23px); }
  .mini-stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 6px !important; margin-bottom: 12px; }
  .mini-stats > div { min-height: 68px !important; padding: 7px 4px !important; border-radius: 14px; }
  .mini-stats strong { font-size: clamp(15px,5vw,20px) !important; }
  .mini-stats small { margin-top: 5px !important; font-size: 9px; line-height: 1.15; }
  .activity-bars { min-height: 92px; gap: 5px; }
  .activity-bar { gap: 6px; }
  .activity-bar small { font-size: 9px; }
  .achievement-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .copy-row { flex-direction: column; }

  .topup-panel { min-height: 0 !important; gap: 12px !important; }
  .amount-presets { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .payment-method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #topupMethods > .method-card:last-child:nth-child(5),
  #purchaseMethods > .method-card:last-child:nth-child(5) { grid-column: 1/-1; width: calc(50% - 5px); justify-self: center; }
  .method-card { min-height: 94px !important; padding: 10px 5px !important; }
  .method-icon,.method-icon img { width: 40px; height: 40px; }
  #topupPayButton { margin-top: 18px; }

  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px; }
  .catalog-card__body { padding: 12px; }
  .catalog-card__body h3 { font-size: 15px; }
  .catalog-card__footer { align-items: flex-end; gap: 7px; }
  .catalog-buy { padding-inline: 11px; }
  .reviews-view { min-height: 0; padding: 12px 0 28px; }
  .reviews-heading h2 { font-size: clamp(31px,9vw,46px); }

  .site-footer { margin-bottom: 0; border-radius: 20px; }
  .modal-backdrop { padding: max(10px,env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); align-items: flex-end; }
  .modal-card { width: 100%; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 22px 22px 16px 16px; }
  .modal-card--video { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto minmax(160px,1fr); gap: 12px; padding: 16px; }
  .video-modal-heading { grid-column: 1; }
  .video-player-shell { min-height: 240px; max-height: 48dvh; }
  .video-player-shell video { max-height: 48dvh; }
  .video-feed { max-height: 34dvh; }
  .toast-stack { left: 10px; right: 10px; bottom: calc(var(--mobile-nav-height) + 16px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; width: 100%; max-width: none; }
}

@media (max-width: 520px) {
  .catalog-grid { grid-template-columns: 1fr !important; }
  .catalog-card { display: grid; grid-template-columns: 112px minmax(0,1fr); }
  .catalog-thumb { aspect-ratio: auto; min-height: 150px; }
  .review-card__top { align-items: flex-start; flex-direction: column; gap: 7px; }
  .site-footer__main { gap: 20px; }
  .site-footer__brand p { margin-top: 10px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 12px) !important; }
  .top-actions { left: 6px; right: 6px; }
  .brand-copy small { display: none; }
  .profile-pill__copy strong { max-width: 54px; }
  .profile-summary__identity { padding-right: 78px; }
  .profile-summary__model { width: 94px; opacity: .58; }
  .profile-stats-head strong { font-size: 18px !important; }
  .mini-stats strong { font-size: 15px !important; }
}

@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) {
  :root { --mobile-nav-height: 58px; }
  .site-header { position: absolute; }
  .top-actions { height: var(--mobile-nav-height); }
  .header-action { height: 46px; flex-direction: row; font-size: 9px; }
  .main-stack { padding-top: 76px !important; }
  .panel--hero,.panel--hero.view.is-active { min-height: 330px; padding-block: 36px !important; }
  .modal-card--video { grid-template-columns: 1.25fr .75fr; grid-template-rows: auto minmax(0,1fr); }
  .video-modal-heading { grid-column: 1/-1; }
  .video-player-shell { min-height: 250px; max-height: none; }
  .video-feed { max-height: none; }
}

/* V110 — exact profile model, deterministic payments, visible mobile models. */
.mobile-character-stage { display: none; }
.section-title-row--watch { align-items: center; gap: 12px; }
.video-library-button { flex: 0 0 auto; margin-left: auto; }

/* Desktop payment map: Telegram Stars is always directly below CryptoBot. */
#topupMethods > [data-method="sbp"],
#purchaseMethods > [data-purchase-method="sbp"] { grid-column: 1; grid-row: 1; }
#topupMethods > [data-method="cryptobot"],
#purchaseMethods > [data-purchase-method="cryptobot"] { grid-column: 2; grid-row: 1; }
#topupMethods > [data-method="xrocket"],
#purchaseMethods > [data-purchase-method="xrocket"] { grid-column: 3; grid-row: 1; }
#topupMethods > [data-method="ton"],
#purchaseMethods > [data-purchase-method="ton"] { grid-column: 1; grid-row: 2; }
#topupMethods > [data-method="stars"],
#purchaseMethods > [data-purchase-method="stars"] { grid-column: 2 !important; grid-row: 2; }

@media (max-width: 1100px) {
  .mobile-character-stage {
    display: grid;
    grid-column: 1 / -1;
    place-items: end center;
    position: relative;
    z-index: 2;
    height: clamp(210px, 30vw, 290px);
    margin: -10px 0 -30px;
    overflow: visible;
    pointer-events: none;
  }
  .mobile-character-stage::before {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 12px;
    height: 58%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(255,126,31,.17),transparent 68%);
    filter: blur(16px);
  }
  .mobile-character-stage img {
    width: auto;
    height: min(34vw, 300px);
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 42px rgba(0,0,0,.6));
  }
  .about-grid > .mobile-character-stage { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .profile-summary__identity {
    min-height: 136px;
    padding-right: 140px;
  }
  .profile-summary__model {
    right: -5px;
    top: 2px;
    width: 146px;
    height: 188px;
    opacity: .94;
    object-position: center top;
    filter: drop-shadow(0 15px 28px rgba(0,0,0,.6));
  }
  .mobile-character-stage {
    height: clamp(178px, 51vw, 230px);
    margin: -4px 0 -22px;
  }
  .mobile-character-stage img { height: min(62vw, 270px); }

  /* Two columns on phones, with the final Stars card centered on row three. */
  #topupMethods > [data-method="sbp"],
  #purchaseMethods > [data-purchase-method="sbp"] { grid-column: 1; grid-row: 1; }
  #topupMethods > [data-method="cryptobot"],
  #purchaseMethods > [data-purchase-method="cryptobot"] { grid-column: 2; grid-row: 1; }
  #topupMethods > [data-method="xrocket"],
  #purchaseMethods > [data-purchase-method="xrocket"] { grid-column: 1; grid-row: 2; }
  #topupMethods > [data-method="ton"],
  #purchaseMethods > [data-purchase-method="ton"] { grid-column: 2; grid-row: 2; }
  #topupMethods > [data-method="stars"],
  #purchaseMethods > [data-purchase-method="stars"] {
    grid-column: 1 / -1 !important;
    grid-row: 3;
    width: calc(50% - 5px);
    justify-self: center;
  }
  .section-title-row--watch { flex-wrap: nowrap; }
  .video-library-button { min-height: 40px; padding-inline: 13px; }
}

@media (max-width: 360px) {
  .profile-summary__identity { min-height: 122px; padding-right: 116px; }
  .profile-summary__model { width: 124px; height: 168px; opacity: .9; }
  .mobile-character-stage { height: 166px; }
  .section-title-row--watch h3 { font-size: 17px; }
  .video-library-button { padding-inline: 10px; font-size: 12px; }
}

/* V110 mobile direction: a free vertical character fixed to the right edge. */
@media (max-width: 1100px) {
  .floating-character {
    display: block !important;
    position: fixed;
    right: -26px;
    bottom: 22px;
    width: min(34vw, 310px);
    height: calc(100dvh - 126px);
    z-index: 12;
    overflow: visible;
  }
  .floating-character.is-visible { opacity: .88; }
  .floating-character::before { left: 4%; right: -5%; bottom: 4%; opacity: .65; }
  .floating-character img {
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 72dvh;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 22px 42px rgba(0,0,0,.68)) drop-shadow(0 0 28px rgba(219,81,12,.09));
  }
}

@media (max-width: 820px) {
  .floating-character {
    right: -30px;
    bottom: calc(var(--mobile-nav-height) + max(5px, env(safe-area-inset-bottom)));
    width: min(42vw, 185px);
    height: calc(100dvh - 154px);
  }
  .floating-character.is-visible { opacity: .92; }
  .floating-character img { top: 24px; bottom: auto; max-height: 58dvh; }
  .profile-summary__model { display: none !important; }
  .profile-summary__identity { min-height: 94px; padding-right: 0; }
}

@media (max-width: 360px) {
  .floating-character { right: -26px; width: 42vw; }
  .floating-character.is-visible { opacity: .86; }
}

/* V111 — clean cutout, desktop 3+1 payments, unobtrusive mobile characters. */
#topupMethods > [data-method],
#purchaseMethods > [data-purchase-method] {
  grid-column: auto !important;
  grid-row: auto !important;
}

@media (min-width: 821px) {
  #topupMethods,
  #purchaseMethods {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
  #topupMethods > .method-card:nth-child(4):last-child,
  #purchaseMethods > .method-card:nth-child(4):last-child {
    grid-column: 2 !important;
  }
  #topupMethods > .method-card:nth-child(5):last-child,
  #purchaseMethods > .method-card:nth-child(5):last-child {
    grid-column: 2 !important;
  }
}

@media (max-width: 1100px) {
  .mobile-character-stage { display: none !important; }
  .main-stack,
  .site-header,
  .mobile-nav,
  .site-footer { position: relative; z-index: 2; }
  .floating-character {
    display: block !important;
    z-index: 1 !important;
    right: -7vw !important;
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important;
    width: min(43vw,300px) !important;
    height: calc(100dvh - 122px) !important;
    pointer-events: none !important;
    filter: none !important;
    -webkit-mask-image: linear-gradient(to bottom,transparent 0,#000 10%,#000 88%,transparent 100%);
    mask-image: linear-gradient(to bottom,transparent 0,#000 10%,#000 88%,transparent 100%);
  }
  .floating-character.is-visible { opacity: .28 !important; }
  .floating-character::before { display: none !important; }
  .floating-character img {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 74dvh !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    filter: saturate(.8) contrast(.9) drop-shadow(0 18px 35px rgba(0,0,0,.45)) !important;
  }
}

@media (max-width: 820px) {
  #topupMethods,
  #purchaseMethods { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  #topupMethods > [data-method],
  #purchaseMethods > [data-purchase-method] {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
  }
  #topupMethods > .method-card:nth-child(5):last-child,
  #purchaseMethods > .method-card:nth-child(5):last-child {
    grid-column: 1 / -1 !important;
    width: calc(50% - 5px) !important;
    justify-self: center;
  }
  .floating-character {
    right: -13vw !important;
    width: min(56vw,230px) !important;
    height: calc(100dvh - 142px) !important;
  }
  .floating-character.is-visible { opacity: .24 !important; }
  .floating-character img { max-height: 68dvh !important; }
}

@media (max-width: 390px) {
  .floating-character { right: -16vw !important; width: 60vw !important; }
  .floating-character.is-visible { opacity: .21 !important; }
}

.topup-payment-box { margin-top: 14px; }
.topup-payment-box .payment-cta-group { margin-top: 10px; }

/* V112 — durable mobile dock, compact content and on-site receipts. */
.mobile-bottom-nav { display: none; }
.payment-expiry {
  display: block;
  margin: -4px 0 10px;
  color: #d7a46d;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.receipt-upload {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(255,181,80,.24);
  border-radius: 14px;
  background: rgba(255,145,39,.035);
}
.receipt-upload.is-hidden { display: none; }
.receipt-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sbp-receipt-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.receipt-file-button {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255,181,80,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: #f4c785;
  cursor: pointer;
  text-align: center;
}
.cancel-payment-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,99,77,.22);
  border-radius: 13px;
  background: rgba(255,74,55,.055);
  color: #e8a095;
}
.cancel-payment-button:hover { border-color: rgba(255,112,91,.46); background: rgba(255,74,55,.1); }

.catalog-card--free {
  grid-column: 1 / -1;
  grid-template-columns: minmax(230px,32%) minmax(0,1fr);
  min-height: 230px;
}
.catalog-card--free .catalog-thumb { aspect-ratio: auto; min-height: 230px; }
.catalog-card--free .catalog-card__body { align-content: center; padding: clamp(20px,3vw,40px); }
.catalog-card--free .catalog-card__body h3 { font-size: clamp(23px,2.4vw,36px); }
.catalog-card--free .catalog-card__meta { min-height: 0; max-width: 760px; font-size: 15px; }
.catalog-card--free .catalog-buy { min-width: 190px; }

.about-grid { min-height: 0 !important; align-items: start; }
.about-grid.is-active { display: grid; }
.about-grid > .card-glow { min-height: 0 !important; height: auto; align-self: start; }
.about-grid p { margin: 16px 0; color: var(--muted); line-height: 1.55; }
.about-grid .feature-list { line-height: 1.5; }

@media (max-width: 820px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .site-header .top-actions { display: none !important; }
  .mobile-bottom-nav {
    position: fixed !important;
    display: grid !important;
    grid-template-columns: repeat(7,minmax(0,1fr));
    left: max(8px,env(safe-area-inset-left)) !important;
    right: max(8px,env(safe-area-inset-right)) !important;
    bottom: max(8px,env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: 72px !important;
    gap: 3px;
    padding: 6px;
    z-index: 1000 !important;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    border: 1px solid rgba(255,181,80,.24);
    border-radius: 20px;
    background: linear-gradient(180deg,#24100a 0%,#0b0504 100%);
    box-shadow: 0 18px 48px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,255,255,.05);
  }
  .mobile-bottom-nav .header-action {
    width: 100% !important;
    height: 58px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px !important;
    border: 0;
    border-radius: 14px;
    background: transparent;
    font-size: 9px;
  }
  .mobile-bottom-nav .header-action span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav .header-action.is-active { color: #ffd18b; background: rgba(255,145,39,.14); box-shadow: inset 0 0 18px rgba(255,139,36,.1); }
  .modal-backdrop { z-index: 2000 !important; }
  .toast-stack { z-index: 2100 !important; }
  .page-loader { z-index: 3000 !important; }
  .floating-character { z-index: 1 !important; }
  .main-stack,.site-header,.site-footer { z-index: 2; }

  .catalog-card--free {
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(120px,36%) minmax(0,1fr) !important;
    min-height: 174px;
  }
  .catalog-card--free .catalog-thumb { min-height: 174px; }
  .catalog-card--free .catalog-card__body { padding: 15px; }
  .catalog-card--free .catalog-card__body h3 { font-size: clamp(18px,5.8vw,25px); }
  .catalog-card--free .catalog-buy { min-width: 0; }
  .about-grid { gap: 12px !important; padding-bottom: 8px !important; }
}

@media (max-width: 420px) {
  .mobile-bottom-nav {
    left: max(5px,env(safe-area-inset-left)) !important;
    right: max(5px,env(safe-area-inset-right)) !important;
    bottom: max(5px,env(safe-area-inset-bottom)) !important;
  }
  .catalog-card--free { grid-template-columns: 104px minmax(0,1fr) !important; min-height: 156px; }
  .catalog-card--free .catalog-thumb { min-height: 156px; }
  .catalog-card--free .catalog-card__meta { font-size: 11px; }
  .catalog-card--free .catalog-price { font-size: 17px; }
}

/* V112 — polished checkout with a quiet character backdrop. */
#buyModal {
  background:
    radial-gradient(circle at 76% 48%,rgba(255,126,31,.16),transparent 34%),
    rgba(6,2,1,.82);
}
#buyModal::after {
  right: clamp(-70px,calc((100vw - 1260px)/2),120px);
  bottom: -5%;
  width: min(39vw,580px);
  height: 96%;
  opacity: .34;
}
#buyModal .modal-card--purchase {
  width: min(620px,calc(100vw - 48px));
  padding: clamp(26px,3vw,38px);
  border: 1px solid rgba(255,183,76,.25);
  background:
    radial-gradient(circle at 90% 0,rgba(255,141,36,.09),transparent 32%),
    linear-gradient(165deg,rgba(34,13,7,.985),rgba(12,5,3,.99));
  box-shadow: 0 34px 100px rgba(0,0,0,.68),0 0 56px rgba(255,118,24,.08);
}
#buyModal .modal-card--purchase > h2 {
  margin: 0 44px 8px 0;
  font-size: clamp(30px,3vw,42px);
  line-height: 1.05;
}
#buyModal .purchase-summary {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255,184,78,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
#buyModal .payment-method-grid { gap: 10px; }
#buyModal .payment-method-grid .method-card {
  min-height: 112px;
  border-radius: 17px;
  transition: transform .2s ease,border-color .2s ease,background .2s ease;
}
#buyModal .payment-method-grid .method-card:hover { transform: translateY(-2px); }
#buyModal .purchase-actions {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,183,76,.12);
}
#buyModal #createOrderButton {
  min-height: 54px;
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(244,145,25,.17);
}
#buyModal .payment-box {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgba(255,183,76,.15);
  border-radius: 17px;
  background: rgba(0,0,0,.17);
}

@media (max-width: 820px) {
  #buyModal::after {
    right: -16vw;
    bottom: 2%;
    width: 70vw;
    height: 74%;
    opacity: .10;
    filter: saturate(.9) drop-shadow(0 18px 42px rgba(0,0,0,.55));
  }
  #buyModal .modal-card--purchase {
    width: 100%;
    padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 14px 14px;
  }
  #buyModal .purchase-actions { margin-top: 24px; padding-top: 16px; }
  #buyModal .payment-method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #buyModal .payment-method-grid .method-card { min-height: 96px; }
}

@media (max-width: 820px) and (orientation: landscape) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .mobile-bottom-nav { height: 60px !important; padding: 4px; }
  .mobile-bottom-nav .header-action { height: 50px !important; }
  .mobile-bottom-nav .header-action span:last-child { font-size: 8px; }
}

/* V114: stable product art, shared free CTA styling and glow-only hover. */
.top-actions { flex-wrap: nowrap; }
.header-action--free {
  color: #ffe1a6;
  border-color: rgba(255,190,88,.38);
  background: linear-gradient(180deg,rgba(84,36,10,.88),rgba(28,10,4,.9));
  box-shadow: 0 0 22px rgba(255,139,34,.12),inset 0 0 16px rgba(255,156,42,.06);
}
.header-action--free.is-unavailable { opacity: .48; }

.catalog-thumb {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%,rgba(255,145,52,.16),transparent 64%),
    linear-gradient(180deg,rgba(255,146,62,.08),rgba(255,255,255,.015));
}
.catalog-thumb img {
  width: 100%;
  height: 100%;
  padding: clamp(6px,1vw,12px);
  object-fit: contain !important;
  object-position: center center;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.38));
}
.catalog-card--free {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,202,107,.58) !important;
  background:
    radial-gradient(circle at 13% 44%,rgba(255,147,45,.13),transparent 36%),
    linear-gradient(180deg,rgba(39,16,8,.98),rgba(14,6,4,.98));
  box-shadow:
    0 0 0 1px rgba(255,162,51,.12),
    0 0 30px rgba(255,132,29,.17),
    0 24px 60px rgba(0,0,0,.34);
}
.catalog-card--free::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 26px rgba(255,153,46,.12);
}
.catalog-buy {
  transition: border-color .22s ease,box-shadow .22s ease,filter .22s ease,background .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .catalog-buy:hover {
    animation: none;
    transform: none;
    border-color: rgba(255,229,169,.62);
    filter: brightness(1.055) saturate(1.05);
    box-shadow: 0 14px 34px rgba(242,143,32,.34),inset 0 1px 0 rgba(255,255,255,.42);
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-buy:hover { animation: none !important; transform: none !important; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .header-inner { gap: 8px; }
  .brand { min-width: 118px; }
  .brand-copy b { font-size: 27px; }
  .brand-copy small { display: none; }
  .top-actions { padding-left: 0 !important; gap: 4px; }
  .header-action { padding-inline: 7px; gap: 5px; font-size: 11px; }
  .header-action svg { width: 15px; height: 15px; }
  .profile-pill { min-width: 136px; }
}

@media (max-width: 820px) {
  .mobile-bottom-nav { grid-template-columns: repeat(7,minmax(0,1fr)) !important; }
  .mobile-bottom-nav .header-action { font-size: 8px !important; }
  .mobile-bottom-nav .header-action svg { width: 17px; height: 17px; }
  .mobile-bottom-nav .header-action--free span:last-child {
    white-space: normal;
    text-overflow: clip;
    line-height: 1.05;
  }
}

@media (max-width: 390px) {
  .mobile-bottom-nav .header-action { padding-inline: 1px !important; font-size: 7.4px !important; }
  .mobile-bottom-nav .header-action svg { width: 16px; height: 16px; }
}

/* V117: compact product cards, support inbox entry point and balance checkout polish. */
.header-action--support {
  color: #ffe5bd;
  border-color: rgba(255,190,88,.22);
}

/* Match the compact 3-column card proportions from the supplied desktop reference. */
@media (min-width: 961px) {
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 16px !important; }
}
.catalog-card,
.catalog-card--free {
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  grid-template-rows: 168px minmax(0,1fr) !important;
  min-height: 338px !important;
  overflow: hidden !important;
}
.catalog-card .catalog-thumb,
.catalog-card--free .catalog-thumb {
  width: 100% !important;
  height: 168px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden;
}
.catalog-card .catalog-thumb img,
.catalog-card--free .catalog-thumb img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}
.catalog-card .catalog-card__body,
.catalog-card--free .catalog-card__body {
  display: flex !important;
  flex-direction: column !important;
  align-content: initial !important;
  padding: 14px !important;
  gap: 8px !important;
}
.catalog-card .catalog-card__body h3,
.catalog-card--free .catalog-card__body h3 {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.22;
}
.catalog-card .catalog-card__meta,
.catalog-card--free .catalog-card__meta {
  min-height: 0 !important;
  max-width: none !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 12px !important;
  line-height: 1.45;
}
.catalog-card .catalog-card__footer,
.catalog-card--free .catalog-card__footer { margin-top: auto !important; }
.catalog-card--free .catalog-buy { min-width: 0 !important; }

@media (min-width: 821px) and (max-width: 1180px) {
  .header-action--support { display: none; }
}
@media (max-width: 960px) and (min-width: 561px) {
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr !important; }
  .catalog-card,
  .catalog-card--free {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: 158px minmax(0,1fr) !important;
    min-height: 315px !important;
  }
  .catalog-card .catalog-thumb,
  .catalog-card--free .catalog-thumb { height: 158px !important; min-height: 0 !important; }
}
