/* Surfaces and section order follow the four CrownCards 1.5.9 screen components. */
.page.account-page {
  --ac-stroke: rgba(195,181,244,.21);
  --ac-muted: #c3bdd4;
  max-width: 880px;
  color: #faf8ff;
  background-color: #100f17;
  border-radius: 22px;
  padding: clamp(18px,3vw,36px);
}
.account-page .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.account-page .hero h1 { font-size: clamp(26px,3vw,38px); }
.account-page .hero .eyebrow { color: #c2b9e6; margin-bottom: 5px; font-size: 10px; }
.account-page .eyebrow::before,
.account-page .art-well::before { content: none; }
.account-page .hero .subtitle { margin: 5px 0 0; color: var(--ac-muted); font-size: .88rem; }
.account-page .hero .cover-art { width: 62px; height: 62px; }
.account-page .items-section, .account-page .stats, .account-page .related { margin-top: 18px; }
.account-page .items { grid-template-columns: 1fr; gap: 9px; }
.account-page .item {
  border: 1px solid var(--ac-stroke);
  border-radius: 16px;
  background: #1d1a29;
}
.account-page a.item:hover, .account-page .related-link:hover { border-color: #a998ed; }
.account-page .item-copy { display: flex; flex-direction: column; justify-content: center; padding: 14px 32px 14px 16px; min-width: 0; }
.account-page .item-copy h3 { order: -1; font-size: 1rem; margin: 0 0 4px; }
.account-page .item-copy p { font-size: .81rem; color: var(--ac-muted); line-height: 1.46; }
.account-page .item .meta { order: 1; color: #cec1ff; font-size: .69rem; margin-top: 5px; letter-spacing: .03em; }
.account-page .arrow { top: 50%; right: 12px; transform: translateY(-50%); color: #d2c9ee; }
.account-page .item:has(.art-well) { display: flex; align-items: center; }
.account-page .item:has(.art-well) .item-copy { flex: 1 1 auto; }
.account-page .art-well { flex: none; width: 68px; height: 68px; background: transparent; border: 0; margin-left: 8px; }
.account-page .art-well .item-art { padding: 2px; transform: none; filter: none; }
.account-page .stats { border-color: var(--ac-stroke); background: #353047; }
.account-page .stats div { background: #1b1826; }
.account-page .stats dt { color: var(--ac-muted); }
.account-page .stats dd { font-size: 1rem; }
.account-page .button, .account-page .related-link { min-height: 44px; border-radius: 14px; }
.account-page .button { background: #6b43d6; color: white; }
.account-page .button.secondary, .account-page .related-link { background: #231e31; color: #ede9f7; border: 1px solid var(--ac-stroke); }
.account-page .account-heading { margin: 0 0 10px; font-size: 1.2rem; letter-spacing: -.035em; }
.account-page .account-links { padding-top: 16px; border-top: 1px solid var(--ac-stroke); }
.account-page .note { line-height: 1.6; color: #aea8bd; }

/* RewardsScreen: rewardsBg, DailyRewardsWidget, RewardChestEntry, recurring cards, quest cadence. */
.account-page[data-route="8783"] { background: #0e0d1e url('/art/native-account/rewards-bg.webp') center top / 100% auto no-repeat; }
.account-page .reward-feature .item { min-height: 104px; background: linear-gradient(118deg,#30246e,#211a3b); }
.account-page .reward-feature .item:first-child { border-color: #8570c8; background: linear-gradient(118deg,#5832a0,#2c2155 72%,#322456); }
.account-page .reward-feature .art-well { width: 85px; height: 85px; margin: 0 0 0 10px; }
.account-page .reward-feature h3 { font-size: 1.25rem; }
.account-page .reward-bonuses .items { grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); }
.account-page .reward-bonuses .item { align-items: flex-start; flex-direction: column; background: linear-gradient(145deg,#292142,#191622); }
.account-page .reward-bonuses .art-well { width: 44px; height: 48px; margin: 10px 0 0 12px; }
.account-page .reward-bonuses .item-copy { padding: 7px 14px 14px; }
.account-page .reward-extras .items { grid-template-columns: repeat(2,minmax(0,1fr)); }
.account-page .reward-cadences .items { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--ac-stroke); background: #14111e; border-radius: 16px; }
.account-page .reward-cadences .item { text-align: center; border: 0; border-radius: 12px; background: none; }
.account-page .reward-cadences .item[aria-current] { background: #503085; box-shadow: inset 0 0 0 1px #9c7cd1; }
.account-page .reward-cadences .item-copy { min-height: 48px; height: 100%; padding: 6px 2px; }
.account-page .reward-cadences h3 { font-size: .77rem; margin: 0; }
.account-page .reward-cadences .arrow { display: none; }
.account-page .reward-cadences :is(p,.meta), .account-page .refer-offer h3 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ReferBackdrop, ReferHeroArt, ReferRewardTogether and ReferInviteCard. */
.account-page[data-route="8715"] { max-width: 740px; background: linear-gradient(180deg,#1c1452,#17113f 42%,#100c2b 72%,#0c0a20); }
.account-page[data-route="8715"] .hero { display: block; text-align: center; }
.account-page[data-route="8715"] .hero .subtitle { margin-inline: auto; }
.account-page[data-route="8715"] .hero .eyebrow { justify-content: center; }
.account-page .refer-stage {
  position: relative;
  display: grid; place-items: center;
  height: clamp(158px,20vw,214px);
  max-width: 430px; margin: 6px auto 0;
  background: url('/art/native-account/coin-left-upper.webp') 5% 34% / auto 28% no-repeat,
              url('/art/native-account/coin-right-lower.webp') 96% 72% / auto 25% no-repeat,
              radial-gradient(ellipse,#8761ff80,transparent 64%);
}
.account-page .refer-stage::before, .account-page .refer-stage::after {
  content: ''; position: absolute; top: 20%; height: 62%; aspect-ratio: 367 / 512;
  border-radius: 8px; background: center / cover url('/art/native-account/spin-holo-card.webp');
}
.account-page .refer-stage::before { right: 52%; transform: rotate(-19deg); }
.account-page .refer-stage::after { left: 52%; transform: rotate(19deg); }
.account-page .refer-pack { position: relative; z-index: 1; height: 102%; max-width: 52%; object-fit: contain; filter: drop-shadow(0 10px 9px #0d0728ab); }
.account-page .refer-offer { margin-top: 0; }
.account-page .refer-offer .item { border: 0; background: transparent; text-align: center; }
.account-page .refer-offer .item-copy { align-items: center; padding: 0 8px 8px; }
.account-page .refer-wordmark { order: -2; width: min(234px,82%); height: auto; }
.account-page .refer-offer .arrow { display: none; }
.account-page .refer-invite { position: relative; padding: 16px; margin-top: 14px; border: 1.5px solid #7d76e6; border-radius: 20px; background: linear-gradient(125deg,#363065,#221a46 65%,#4b3878); }
.account-page .refer-code { margin: 0; }
.account-page .refer-code .item { border: none; background: none; }
.account-page .refer-code .item-copy { padding: 2px 78px 2px 0; }
.account-page .refer-code h3 { font-size: .83rem; color: #e2d8ff; }
.account-page .refer-code p { font-size: clamp(1.35rem,4vw,2rem); font-weight: 800; letter-spacing: .07em; color: white; }
.account-page .refer-code .long-invite-code { font: 700 clamp(.94rem,4vw,1.22rem)/1.5 ui-monospace,monospace; letter-spacing: .015em; }
.account-page .refer-code .arrow { display: none; }
.account-page .refer-chest { position: absolute; top: -8px; right: 13px; width: 74px; height: 74px; object-fit: contain; pointer-events: none; }
.account-page .refer-qr { margin-top: 9px; }
.account-page[data-route="8715"] .model-form { margin-top: 12px; }
.account-page[data-route="8715"] .actions { display: grid; }
.account-page[data-route="8715"] .button:not(.secondary) { min-height: 50px; font-size: 1.13rem; background: linear-gradient(180deg,#8658fd,#6340cd); }

/* ProfileScreen: centered editable identity, seasonal highlight, GlassPill action rows and stats. */
.account-page[data-route="8659"] { background: #0c0b19 url('/art/native-account/profile-bg.webp') top center / 100% auto no-repeat; }
.account-page .profile-identity { position: relative; }
.account-page .profile-identity .hero { flex-direction: column; text-align: center; padding-top: 4px; }
.account-page .profile-identity .profile-name { display: block; color: #fff; font-size: 22px; line-height: 1.35; }
.account-page .profile-identity .profile-tenure { font-size: .77rem; color: var(--ac-muted); }
.account-page .profile-identity:has(.profile-name) h1 { font-size: 1rem; }
.account-page .profile-identity .eyebrow { justify-content: center; }
.account-page .profile-avatar {
  display: grid; place-items: center;
  width: 100px; height: 100px; border-radius: 50%; font-size: 2rem; font-weight: 800;
  background: url('/art/native-account/avatar-ring-no-tier.webp') center / 100% no-repeat, radial-gradient(circle at 40% 25%,#5e507b,#241c38 75%);
}
.account-page .profile-avatar .cover-art { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; }
.account-page .profile-identity [data-avatar-widget]:has(img) {
  position: absolute; pointer-events: none; width: 100px; height: 100px; top: 4px; left: 50%;
  transform: translateX(-50%); display: grid; place-content: center;
}
.account-page .profile-identity [data-avatar-widget] > span { transform: scale(.78); }
.account-page .profile-highlight .item { background: linear-gradient(105deg,#39253b,#241d2e); border-color: #93653d; }
.account-page .profile-highlight .item-copy { padding-left: 78px; min-height: 76px; background: url('/art/pumpkin.webp') 12px center / 54px auto no-repeat; }
.account-page .profile-pills { justify-content: center; }
.account-page .profile-pills .related-link { border-radius: 999px; background: linear-gradient(175deg,#373341,#1a1721 75%); }
.account-page[data-route="8659"] .stats { grid-template-columns: repeat(3,minmax(0,1fr)); text-align: center; }
.account-page[data-route="8659"] .stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 14px 6px; }
.account-page[data-route="8659"] .stats dd { font-size: 1.18rem; }
.account-page .profile-tier .item { background: linear-gradient(110deg,#38343e,#1e1b23 70%); }
.account-page .profile-cards .items { display: flex; overflow-x: auto; padding-bottom: 6px; }
.account-page .profile-cards .item { flex: 0 0 170px; flex-direction: column; align-items: stretch; }
.account-page .profile-cards .art-well { width: 100%; height: 150px; margin: 0; }

/* WalletBalanceCard 45491 and WalletActionCard 45499. */
.account-page[data-route="7248"] { position: relative; max-width: 760px; background: #111016; }
.account-page .account-back { position: absolute; z-index: 2; left: clamp(18px,3vw,36px); min-width: 44px; min-height: 44px; justify-content: center; color: #efeaff; font-size: 1.4rem; background: #25222e; border-radius: 50%; }
.account-page[data-route="7248"] .hero { padding-left: 58px; }
.account-page[data-route="7248"] .hero .cover-art { display: none; }
.account-page[data-route="7248"] .stats { display: flex; flex-direction: column; gap: 0; padding: 22px; border: 1px solid #8857cd66; border-radius: 24px; background: linear-gradient(145deg,#24202d,#201c28 55%,#442e65); }
.account-page[data-route="7248"] .stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: none; padding: 3px 0; }
.account-page[data-route="7248"] .stats div:first-child { display: block; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--ac-stroke); }
.account-page[data-route="7248"] .stats div:first-child dt { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.account-page[data-route="7248"] .stats div:first-child dd { font-size: clamp(34px,5vw,44px); line-height: 1.18; }
.account-page .wallet-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.account-page .wallet-actions .related-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; font-size: 1rem; background: #211d29; }
.account-page .wallet-actions .related-link:first-child { border-color: #9067d3; background: linear-gradient(130deg,#342454,#221a32); }
.account-page .wallet-actions a::before { content: '↑'; display: grid; place-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; background: #393143; color: #e2cfff; }
.account-page .wallet-actions a:first-child::before { content: '+'; background: #543b7f; }
.account-page .wallet-transactions .items { gap: 0; border: 1px solid var(--ac-stroke); background: #1c1923; border-radius: 16px; overflow: hidden; }
.account-page .wallet-transactions .item { border: 0; border-radius: 0; background: none; }
.account-page .wallet-transactions .item + .item { border-top: 1px solid var(--ac-stroke); }
.account-page .wallet-transactions .item:first-child h3 { font-size: 1.2rem; }
@media (max-width:760px) {
  .page.account-page { border-radius: 0; padding: 18px 14px 26px; }
  main:has(> .account-page) { padding: 0 0 calc(72px + env(safe-area-inset-bottom)); }
  .account-page .account-back { left: 14px; }
}
@media (max-width:540px) {
  .account-page .reward-bonuses .items { grid-template-columns: 1fr; }
  .account-page .reward-bonuses .item { flex-direction: row; align-items: center; }
  .account-page .reward-bonuses .art-well { width: 48px; margin: 0 0 0 10px; }
  .account-page .reward-bonuses .item-copy { padding: 12px; }
  .account-page .reward-extras .items { grid-template-columns: 1fr; }
}

/* CrownCards 1.5.9: 04_analysis/route_modules.tsv and the matching jsx_outline.
   Keep the H5 fields, validation and focus order throughout these flows. */
.standard-page:is([data-route="5186"],[data-route="5281"],[data-route="7271"],
  [data-route="7203"],[data-route="9516"],[data-route="9439"],[data-route="9234"],
  [data-route="5074"],[data-route="4565"],[data-route="5009"]) {
  max-width: 720px;
  --flow-line: #ffffff23;
  --flow-panel: #1d1b24;
  --flow-muted: #c0bdc9;

  & .items { grid-template-columns: minmax(0,1fr); gap: 8px; }
  & .item { border-color: var(--flow-line); border-radius: 16px; background: var(--flow-panel); }
  & .item-copy { flex: 1; min-width: 0; padding: 14px 16px; }
  & a.item .item-copy { padding-right: 34px; }
  & .item-copy h3 { margin-block: 2px 4px; font-size: 1rem; }
  & .meta { color: var(--flow-muted); text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
  & .item:has(.art-well) { display: flex; align-items: center; }
  & .art-well { flex: none; width: 64px; height: 74px; margin-left: 12px; border: 0; background: none; }
  & .art-well::before { content: none; }
  & .item-art { width: 100%; padding: 0; transform: none; filter: none; }
  & .arrow { color: #c4b5ec; }
  & .field { max-width: none; }
  & .field input:not([type=checkbox]), & .field select {
    min-height: 48px; min-width: 0; border-color: #ffffff38; border-radius: 13px;
    background-color: #201e26; color: #faf9fc; font-size: 16px;
  }
  & .actions > .button, & .related-link { min-height: 44px; }
  & .actions > .button { flex: 1 1 100%; border-radius: 999px; }
}

/* ShipAddressScreen / AddressCard; ShipContinueFooter (39111) uses the full-width light button. */
.standard-page:is([data-route="5186"],[data-route="5281"],[data-route="7271"]) {
  & .model-form { padding: 16px; border: 1px solid var(--flow-line); border-radius: 18px; background: var(--flow-panel); }
  & .button:not(.secondary) { min-height: 48px; background: #f5f3f9; color: #16131d; }
  & .hero.has-art { grid-template-columns: minmax(0,1fr) 68px; padding: 16px; background: var(--flow-panel); }
  & .cover-art { height: 76px; }
}
.standard-page[data-route="5186"] .related-link[href*="add=1"] {
  justify-content: center; flex-basis: 100%; border: 1px dashed #a79aba; background: transparent;
}
/* ShippingFeeSummary and ReviewPaymentDetailsCard group charges in label/value rows. */
.standard-page:is([data-route="5281"],[data-route="7271"],[data-route="9516"],[data-route="5009"]) .stats {
  display: block; background: var(--flow-panel); padding: 8px 16px;
  & div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; background: none; }
  & dd { max-width: 66%; margin: 0; text-align: right; font-size: .92rem; }
}
.standard-page:is([data-route="5281"],[data-route="7271"]):has(.model-form) .stats > div:last-child {
  border-top: 1px solid var(--flow-line); margin-top: 4px; padding-block: 12px 6px;
  & dt { color: inherit; font-weight: 700; }
}
/* ShipmentsScreen (45340), ShipmentDetailsHeader, ShipmentStatusCard and ShipmentDeliveryAddress. */
.standard-page[data-route="7203"] .controls:has(select[name="status"]) {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px;
  & .field { margin: 0; }
  & .button { min-height: 48px; }
}
.standard-page[data-route="7203"] .item:has(.item-art) .item-copy {
  display: flex; flex-direction: column;
  & h3 { order: -1; }
}
#page-dialog .standard-page[data-route="9516"] .hero.has-art {
  display: flex; align-items: center; gap: 14px; min-height: 88px;
  & .cover-art { flex: none; order: -1; width: 64px; height: 78px; }
}
.standard-page[data-route="9516"] .stats { border-color: #74698d; }
.standard-page[data-route="9516"] .related-link[href*="panel=tracking"] { justify-content: center; flex-basis: 100%; }

/* InsufficientBalanceScreen (51999) and CashOutScreen (38686) lead with the actual amounts.
   Scope the generic pack illustration override to the demo asset, preserving offer and product art. */
.standard-page:is([data-route="9439"],[data-route="9234"],[data-route="5074"]) .hero:has(> img[src="/art/gold.webp"]) {
  display: block; border: 0; border-radius: 0; background: none;
  & > img { display: none; }
}
.standard-page[data-route="5074"] .hero:has(> img[src="/art/gold.webp"]) { padding: 6px 0 12px; }
/* InsufficientBalanceScreen centers the heading group and sets the title in amber. */
#page-dialog .standard-page[data-route="9439"] .hero-copy {
  display: grid; justify-items: center; gap: 6px; max-width: none; text-align: center;
}
#page-dialog .standard-page[data-route="9439"] .hero h1 {
  color: #f4a11c; font-size: 26px; font-weight: 600; letter-spacing: -.025em;
}
#page-dialog .standard-page[data-route="9439"] .hero .subtitle {
  margin: 0; color: rgb(255 255 255 / 55%);
}
.standard-page[data-route="9439"] .hero .eyebrow {
  display: block; margin: 0; letter-spacing: 2.5px; color: var(--flow-text, #f6f4fa);
}
.standard-page[data-route="9439"] .eyebrow::before { content: none; }
.standard-page:is([data-route="9234"],[data-route="9439"],[data-route="5074"],[data-route="4565"]) .stats {
  grid-template-columns: repeat(auto-fit,minmax(min(132px,100%),1fr));
  & div { padding: 12px 14px; background: var(--flow-panel); }
}
/* The pack-specific sheet appends the quoted shortfall after balance and pack price. */
.standard-page[data-route="9439"] .stats:has(> div:nth-child(3):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.standard-page[data-route="9439"] .stats > div:nth-child(3):last-child {
  grid-column: 1/-1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  background: #302839;
  & dd { margin: 0; }
}
.standard-page[data-route="5074"][data-variant="list"] .stats > div:first-child {
  grid-column: 1/-1; padding: 16px; background: linear-gradient(130deg,#24202e,#382b48);
  & dd { font-size: clamp(1.8rem,5vw,2.5rem); line-height: 1.22; }
}
.standard-page[data-route="5074"][data-variant="list"] .related-link[href="#/4565"] {
  flex-basis: 100%; justify-content: center; border-radius: 999px; background: #f2eef8; color: #211b28;
}
/* AmountDisplay, PaymentMethodPill, QuickAmountChips and PayoutMethodOption, jsx_outline/9234,4565,5009. */
.standard-page:is([data-route="9234"],[data-route="4565"]) .field input[name="amount"] {
  min-height: 66px; text-align: center; font-weight: 750; font-size: clamp(1.8rem,7vw,2.4rem); font-variant-numeric: tabular-nums;
}
.standard-page[data-route="4565"][data-variant="form"]:has(input[name="amount"]) {
  padding: clamp(14px,2.5vw,24px); border-radius: 18px; background: #0f0e19 url('/art/native-account/profile-bg.webp') top center / cover;
}
.standard-page[data-route="9234"] select[name="method"] { border-radius: 999px; }
.standard-page[data-route="9234"] .related-link[href^="#/9234?"][href*="amount="] {
  justify-content: center; text-align: center; flex: 1 1 max(42%,100px); padding-inline: 10px; border-radius: 999px; font-size: .8rem; background: #302a3c;
}
.standard-page:is([data-route="9439"],[data-route="9234"],[data-route="4565"],[data-route="5009"]) .button:not(.secondary) {
  min-height: 48px; background: #f1eef8; color: #211b28;
}
