:root {
  --account-bg: #08090e;
  --account-surface: #151824;
  --account-surface-2: #1d2130;
  --account-gold: #ffc21c;
  --account-gold-soft: #ffe39a;
  --account-text: #f8fafc;
  --account-muted: #a5a8b3;
  --account-border: #34394a;
  --account-danger: #ff5a4f;
}

.account-page { background: var(--account-bg); color: var(--account-text); min-height: 100dvh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.account-page button { cursor: pointer; touch-action: manipulation; }
.account-page button:focus-visible, .credential-modal button:focus-visible { outline: 3px solid var(--account-gold); outline-offset: 3px; }
.account-header { min-height: 60px; padding: max(8px, env(safe-area-inset-top)) 14px 6px; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--account-bg) 92%, transparent); backdrop-filter: blur(18px); }
.account-header > button { width: 44px; height: 44px; border: 1px solid var(--account-border); border-radius: 14px; background: var(--account-surface); color: var(--account-gold); font-size: 30px; }
.account-header > button svg { width: 20px; }
.account-header h1 { margin: 0; font-size: 20px; }
.account-header nav { flex: 1; display: flex; justify-content: center; gap: 12px; }
.account-header nav button { min-height: 44px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--account-muted); font-size: 17px; font-weight: 800; }
.account-header nav button.active { color: var(--account-gold-soft); border-color: var(--account-gold-soft); }

.account-bottom-nav { position: fixed; z-index: 80; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 750px); min-height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 20px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(2, 1fr); background: rgba(9, 10, 14, .96); border-top: 1px solid #252834; backdrop-filter: blur(20px); }
.account-bottom-nav button { min-height: 52px; border: 0; background: transparent; color: #8c9098; display: grid; place-items: center; align-content: center; gap: 1px; font-size: 12px; font-weight: 700; }
.account-bottom-nav svg { width: 24px; height: 24px; }
.account-bottom-nav button.active { color: var(--account-gold); }
.home { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

.mine-hero { margin: 12px; padding: 16px 14px 14px; border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(131, 41, 124, .65), transparent 48%), radial-gradient(circle at 0 0, rgba(21, 111, 111, .6), transparent 43%), #10121b; border: 1px solid rgba(255,255,255,.08); }
.mine-user { display: flex; gap: 12px; align-items: center; }
.mine-user img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); }
.mine-user h1 { margin: 0 0 2px; font-size: 20px; }
.mine-user button { min-height: 44px; display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--account-muted); font: 600 13px ui-monospace, monospace; padding: 0; }
.mine-user button svg { width: 16px; }
.wallet-summary { margin-top: 14px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--account-border); border-radius: 16px; overflow: hidden; }
.wallet-summary article { min-width: 0; padding: 2px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 44px auto; align-items: center; column-gap: 7px; background: var(--account-surface); position: relative; }
.wallet-summary h2 { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.wallet-summary strong { display: block; margin: 0; color: var(--account-gold); font-size: 26px; font-variant-numeric: tabular-nums; }
.wallet-summary .member-status { font-size: 21px; line-height: 1; }
.wallet-summary p { grid-column: 1 / -1; grid-row: 3; min-height: 18px; margin: 1px 0 0; color: var(--account-muted); font-size: 10px; line-height: 1.35; }
.wallet-summary button { grid-column: 2; grid-row: 2; min-width: 56px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: #452000; font-size: 12px; font-weight: 800; }
.wallet-summary button span { min-height: 36px; padding-inline: 7px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(90deg, #ffb800, #ffe39a); transition: filter .2s ease, transform .2s ease; }
.wallet-summary button:hover span { filter: brightness(1.04); }
.wallet-summary button:active span { transform: scale(.97); }
.mine-grid { margin: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mine-grid > button { min-width: 0; min-height: 92px; padding: 10px 4px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: linear-gradient(145deg, #171b27, #12141e); color: var(--account-text); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mine-grid .mine-glyph { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; color: #5a2a00; background: linear-gradient(145deg, #fff095, #ffac00); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); font-size: 21px; font-weight: 900; }
.mine-grid .mine-glyph svg { width: 22px; height: 22px; }
.mine-grid strong { max-width: 100%; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-grid small { max-width: 100%; margin-top: 2px; color: var(--account-muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-preview { margin: 18px 12px; }
.order-preview h2 { font-size: 18px; }
.account-empty { min-height: 120px; display: grid; place-items: center; color: #6f737d; }
.order-row { width: 100%; min-height: 68px; margin-bottom: 8px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: left; border: 1px solid var(--account-border); border-radius: 15px; background: var(--account-surface); color: var(--account-text); }
.order-row span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.order-row span:last-child { text-align: right; }
.order-row small { color: var(--account-muted); overflow: hidden; text-overflow: ellipsis; }
.order-row b { color: var(--account-gold-soft); font-variant-numeric: tabular-nums; }

.store-page { background: radial-gradient(circle at 20% 0, rgba(117, 48, 10, .42), transparent 30%), var(--account-bg); }
.store-banner { margin: 6px 14px 18px; min-height: 112px; padding: 18px; display: flex; align-items: flex-end; border-radius: 18px; color: #58300b; background: linear-gradient(110deg, rgba(255,226,171,.96), rgba(255,244,219,.78)), url("./assets00/original-app/image__drama__coin_wallet_bg.webp") center/cover; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.membership-store .store-banner { background: linear-gradient(110deg, rgba(255,227,177,.96), rgba(255,244,221,.55)), url("./assets00/original-app/figma__vip__vip_user_banner.webp") center/cover; }
.store-banner strong { font-size: 23px; }
.store-banner p { margin: 5px 0 0; font-size: 13px; font-weight: 700; }
.benefits { margin: 0 14px 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.benefits h2 { grid-column: 1/-1; margin: 0 0 4px; color: var(--account-gold); font-size: 17px; }
.benefits div { min-width: 0; }
.benefits span { width: 40px; height: 40px; margin: auto; display: grid; place-items: center; border-radius: 12px; background: #2b2419; color: var(--account-gold-soft); font-weight: 900; }
.benefits span svg { width: 22px; height: 22px; }
.benefits strong { display: block; margin-top: 5px; font-size: 10px; }
.product-grid { padding: 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.product-card { position: relative; min-width: 0; min-height: 145px; padding: 16px 7px 10px; display: flex; flex-direction: column; align-items: center; border: 2px solid #5f523e; border-radius: 16px; color: var(--account-text); background: linear-gradient(155deg, #201d18, #181612); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.product-card.active { border-color: var(--account-gold-soft); background: linear-gradient(155deg, #5e2c1e, #29190e); box-shadow: 0 0 0 2px rgba(255,194,28,.12); }
.product-card:active { transform: scale(.98); }
.product-card strong { max-width: 100%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card b { margin-top: 14px; font-size: 25px; color: #fff3d6; font-variant-numeric: tabular-nums; }
.product-card del { color: var(--account-muted); font-size: 11px; }
.product-card small { min-height: 28px; max-width: 100%; margin-top: auto; color: var(--account-gold-soft); font-size: 10px; line-height: 1.35; overflow: hidden; }
.network-select { margin: 20px 14px 100px; }
.network-select h2 { font-size: 17px; }
.network-select > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.network-select button { min-height: 48px; border: 2px solid var(--account-border); border-radius: 14px; background: var(--account-surface); color: var(--account-text); font-size: 14px; font-weight: 800; }
.network-select button.active { border-color: var(--account-gold); color: var(--account-gold-soft); }
.network-select p { color: var(--account-muted); font-size: 12px; }
.store-cta { position: fixed; z-index: 75; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 750px); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #090a0f 20%); }
.store-cta button { width: 100%; min-height: 52px; border: 0; border-radius: 26px; background: linear-gradient(90deg, #ffd980, #e9ad3e); color: #4b2700; font-size: 18px; font-weight: 900; }
.store-cta button:disabled { opacity: .55; cursor: not-allowed; }

.checkout-page { padding-bottom: 120px; }
.checkout-product { margin: 25px; padding: 22px; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--account-border); border-radius: 20px; background: var(--account-surface); }
.checkout-product > span { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: white; background: #22a988; font-size: 13px; font-weight: 900; }
.checkout-product h2, .checkout-product p { margin: 0; }
.checkout-product p { margin-top: 7px; color: var(--account-muted); }
.checkout-product > strong { color: var(--account-gold); font-size: 22px; }
.checkout-warning { margin: -90px 25px 0; padding: 20px; border-radius: 16px; background: #151821; color: var(--account-muted); }

.payment-page { padding-bottom: 40px; background: #f8f8f8; color: #111; }
.payment-page .account-header { background: rgba(255,255,255,.94); }
.payment-page .account-header h1 { color: #111; }
.payment-card { margin: 4px 14px 22px; padding: 18px 18px 25px; border-top: 8px solid var(--account-gold); border-radius: 15px; background: white; }
.payment-card dl { margin: 0; }
.payment-card dl > div { min-height: 55px; display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: 10px; }
.payment-card dt { color: #85858b; font-size: 16px; }
.payment-card dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.payment-card dd button { min-width: 54px; min-height: 36px; margin-left: 6px; border: 0; border-radius: 8px; color: #2488ff; background: #f2f4f7; }
.payment-amount { color: #ff621d; font-size: 22px !important; font-weight: 800; font-variant-numeric: tabular-nums; }
.network-pill { padding: 9px 20px; border-radius: 12px; color: #111; background: #ff9d00; font-weight: 900; }
.payment-qr { width: min(76vw, 340px); aspect-ratio: 1; margin: 18px auto; padding: 12px; border: 2px solid #777; border-radius: 18px; background: white; }
.payment-qr svg { width: 100%; height: 100%; }
.countdown { text-align: center; color: #1b1b1b; font-variant-numeric: tabular-nums; }
.payment-status { margin: 16px auto 0; padding: 13px; text-align: center; border-radius: 12px; color: #775400; background: #fff4ce; font-weight: 800; }
.payment-status.paid { color: #0d6a39; background: #dff8e9; }
.payment-status.expired, .payment-status.exception { color: #9a211e; background: #ffe4e1; }
.payment-steps { padding: 0 25px; }
.payment-steps h2 { text-align: center; font-size: 30px; }
.payment-steps p { display: flex; gap: 12px; font-size: 17px; font-weight: 700; line-height: 1.55; }
.payment-steps b { color: #e33; }

.account-loading { min-height: 70dvh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--account-muted); }
.account-loading button { min-width: 120px; min-height: 48px; border: 0; border-radius: 24px; background: var(--account-gold); font-weight: 800; }
.credential-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom)); }
.credential-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.credential-card { position: relative; width: min(100%, 320px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px 20px 20px; border: 1px solid #6a6656; border-radius: 24px; text-align: center; color: var(--account-text); background: #12151c; box-shadow: 0 24px 72px #000; }
.credential-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--account-muted); background: #20242e; font-size: 24px; }
.credential-logo { margin: 0 auto 6px; color: var(--account-gold); font-size: 52px; font-weight: 1000; line-height: 1; }
.credential-card h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.credential-card p { max-width: 280px; margin: 8px auto 0; color: var(--account-muted); font-size: 14px; line-height: 1.45; }
.credential-qr { width: min(52vw, 184px); margin: 14px auto; padding: 8px; border-radius: 14px; background: white; }
.credential-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.credential-card > strong { display: block; color: var(--account-gold-soft); font: 700 14px ui-monospace, monospace; }
.credential-save { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 24px; background: linear-gradient(90deg, #ffbd18, #ffdf79); color: #4f2800; font-size: 16px; font-weight: 900; }
.account-toast { position: fixed; z-index: 1200; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 48px); padding: 13px 22px; border-radius: 24px; color: white; background: rgba(26,28,35,.96); box-shadow: 0 12px 38px rgba(0,0,0,.4); text-align: center; }

@media (max-width: 420px) {
  .wallet-summary { padding: 8px; }
  .wallet-summary article { padding-inline: 8px; }
  .mine-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(5, 1fr); }
  .benefits h2 { grid-column: 1/-1; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .mine-grid { grid-template-columns: repeat(4, 1fr); }
  .mine-grid > button { min-height: 105px; }
  .credential-card { max-width: 320px; padding-block: 18px; }
  .credential-logo { font-size: 44px; }
  .credential-qr { width: 150px; margin-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-page *, .credential-modal * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
