/* PC coin recharge, Figma 49073:489415. The mobile layout uses mobile-recharge.css. */
.desktop-recharge-coin-caption { display: none; }

@media (min-width: 1200px) {
  :root { color-scheme: dark; }
  html, body { background: #070707; }
  body.mobile-recharge-page[data-recharge-tab="coin"] { color: #fff; }
  body[data-recharge-tab="coin"] .mobile-recharge-shell {
    height: max(1004px, calc(100vh - 76px));
    min-height: 1004px;
    overflow: hidden;
    background-color: #070707;
    background-image: url("/static/images/recharge-member-figma/background.svg"),
                      url("/static/images/coin-recharge-figma-background.png");
    background-position: center -76px, center -76px;
    background-size: 1200px 2598.4px, 1920px 1080px;
  }
  body[data-recharge-tab="coin"] .desktop-recharge-heading { top: 49px; }
  body[data-recharge-tab="coin"] .desktop-recharge-heading > span { margin-left: 48px; gap: 4px; }
  body[data-recharge-tab="coin"] .desktop-recharge-heading > span::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    background: url("/static/images/coin-recharge-figma-title.png") center / 40px 30px no-repeat;
  }
  body[data-recharge-tab="coin"] .desktop-recharge-heading img { display: none; }
  body[data-recharge-tab="coin"] .mobile-recharge-records { top: 55px; }

  body[data-recharge-tab="coin"] .mobile-recharge-hero {
    z-index: 10;
    top: 121px;
    left: max(0px, calc(50% - 600px));
    width: 718px;
    height: 361px;
    border-radius: 20px;
    background: url("/static/images/coin-recharge-figma-hero.png") center / 718px 400px no-repeat;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero::before,
  body[data-recharge-tab="coin"] .mobile-recharge-hero::after,
  body[data-recharge-tab="coin"] .desktop-recharge-coin-art { display: none; }
  /* Figma 49075:491182: background blur must live over the image, not inside a background SVG. */
  body[data-recharge-tab="coin"] .mobile-recharge-shell:not(.has-member) .mobile-recharge-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    border-radius: inherit;
    background: rgba(11, 11, 28, .1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: none;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-shell:not(.has-member) .mobile-recharge-hero { top: 122px; }
  body[data-recharge-tab="coin"] .desktop-recharge-coin-caption { z-index: 1; }
  body[data-recharge-tab="coin"] .mobile-recharge-shell.has-member .desktop-recharge-coin-caption { display: none; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user {
    top: 186.5px;
    left: calc(50% - 13px);
    width: 292px;
    height: 84px;
    padding: 12px;
    gap: 12px;
    transform: translateX(-50%);
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user[hidden],
  body[data-recharge-tab="coin"] .mobile-recharge-shell:not(.has-member) .mobile-recharge-coin-user { display: none; }
  /* Updated account card: Figma 49075:490336. */
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user > img { width: 60px; height: 60px; flex-shrink: 0; border: 2.5px solid #fff2bf; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user > span { width: 196px; min-width: 0; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user__identity { width: 100%; height: 32px; gap: 8px; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user strong { min-width: 0; overflow: hidden; font-size: 24px; line-height: 32px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user em { flex-shrink: 0; padding: 1px 6px; background: linear-gradient(160.906508deg, #fff2bf 0%, #facc15 55.769%); color: #694923; font-weight: 600; line-height: 16px; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-user small { width: 196px; color: rgba(255,255,255,.55); font-size: 16px; line-height: 22px; }
  body[data-recharge-tab="coin"] .mobile-recharge-shell.has-account-user:not(.has-member) .mobile-recharge-coin-user { width: max-content; max-width: 390px; }
  body[data-recharge-tab="coin"] .mobile-recharge-shell.has-account-user:not(.has-member) .mobile-recharge-coin-user > span,
  body[data-recharge-tab="coin"] .mobile-recharge-shell.has-account-user:not(.has-member) .mobile-recharge-coin-user small { width: auto; }
  body[data-recharge-tab="coin"] .mobile-recharge-shell.has-account-user:not(.has-member) .mobile-recharge-coin-user small { font-size: 12px; line-height: 18px; }

  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance {
    top: 36px;
    left: 793px;
    width: 356px;
    height: 157px;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance::before {
    top: 21px;
    left: 8px;
    right: 9px;
    height: 113px;
    transform: rotate(-6.31deg) skewX(2.02deg);
    border-radius: 17px;
    background: linear-gradient(220.633deg, #fcc100 0%, rgba(255,255,255,0) 100%),
                linear-gradient(40.633deg, #fe1d21 0%, rgba(255,255,255,0) 100%),
                radial-gradient(ellipse 28px 16px at 76.56% 100%, rgba(255,255,255,.05) 0%, #fff 96.727%);
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance::after {
    top: 24px;
    left: 17px;
    right: 0;
    height: 113px;
    transform: none;
    border-radius: 19px;
    background: linear-gradient(180deg, #0a0909, #1f0909);
    box-shadow: inset 0 2.076px 2.076px -.83px rgba(249,132,43,.15),
                inset 0 -6.227px 6.227px -2.076px rgba(255,255,255,.3),
                inset 0 -12.455px 8.303px -2.595px #e28b43,
                inset 0 -24.91px 18.682px -9.341px #ff7300;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance > span {
    top: 41px;
    left: 31px;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    line-height: 19px;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance > span::before { content: none; }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance > span > strong {
    gap: 4px;
    color: #ff5700;
    font-size: 33px;
    line-height: 40px;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance strong img { width: 37px; height: 37px; }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance > em {
    top: 65px;
    right: 14px;
    display: flex;
    width: 94px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 13px;
    background: linear-gradient(#ff5700,#ef5200);
    box-shadow: inset 0 1px 8px #ffeddb, 0 3px 8px rgba(255,88,0,.4);
    color: transparent;
    font-size: 0;
    line-height: 20px;
    white-space: nowrap;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-hero .mobile-recharge-balance > em::before { content: "充值金币"; display: block; color: #fff; font-size: 14px; line-height: 20px; }

  body[data-recharge-tab="coin"] .mobile-recharge-content {
    z-index: 2;
    top: 120px;
    width: 1200px;
    height: 724px;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-content::before,
  body[data-recharge-tab="coin"] .mobile-recharge-content::after {
    content: "";
    position: absolute;
    z-index: 0;
    display: block;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    background: linear-gradient(#27211d,#27211d) padding-box,
                linear-gradient(180deg,#fff 0%,rgba(255,255,255,.88) 17%,rgba(255,255,255,0) 100%) border-box;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-content::before { top: 387px; left: 0; width: 718px; height: 335px; }
  body[data-recharge-tab="coin"] .mobile-recharge-content::after { top: 0; left: 745px; width: 455px; height: 724px; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plans {
    position: absolute;
    z-index: 1;
    top: 460px;
    left: 42px;
    display: flex;
    width: 634px;
    height: 194px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-left: 0;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plans::-webkit-scrollbar { display: none; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan {
    width: 150px;
    min-width: 150px;
    height: 190px;
    flex: 0 0 150px;
    scroll-snap-align: start;
    padding: 10px 5px;
    border: 3px solid transparent;
    border-radius: 17px;
    background: linear-gradient(180deg,#432c33,#553c2e) padding-box;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan.is-active {
    border-width: 3px;
    background: linear-gradient(180deg,#432c33,#553c2e) padding-box,
                linear-gradient(135deg,#f3fb46,#fff 48%,#ff9c86) border-box;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan::before {
    right: auto;
    bottom: -12px;
    left: 50%;
    background-image: linear-gradient(177.319568deg, rgba(255,255,255,0) 26.403%, rgba(255,255,255,.7) 95.472%);
    color: transparent;
    opacity: .3;
    /* Compensate for the italic glyphs' right overhang when centering the artwork. */
    transform: translateX(calc(-50% - 7px)) skewX(-33deg) scaleY(.84);
  }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan > span:not(.mobile-recharge-coin-price) { height: 24.013px; gap: 2.703px; font-size: 16px; }
  /* Figma 49073:489874: original gift badge with the text at its design offset. */
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan > span:not(.mobile-recharge-coin-price) i {
    display: block;
    width: 36.823px;
    height: 24.013px;
    flex: 0 0 36.823px;
    padding: 7.29px 0 0 9.8px;
    border-radius: 0;
    background: url("/static/images/coin-recharge-figma-gift-badge.svg") left top / 37px 25px no-repeat;
    font: 600 14px/14px "PingFang SC", sans-serif;
    text-align: left;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan > img { width: 44px; height: 44px; margin: 16px auto 14px; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-plan > strong { height: 30px; overflow: hidden; font-size: 20px; line-height: 30px; text-overflow: ellipsis; white-space: nowrap; }
  body[data-recharge-tab="coin"] .mobile-recharge-coin-price { width: auto; margin-top: 10px; color: #ff5700; background: none; font-size: 16px; }

  body[data-recharge-tab="coin"] .mobile-recharge-payment {
    position: absolute;
    z-index: 1;
    top: 217px;
    left: 793px;
    width: 359px;
    margin: 0;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-payment h1 { margin: 0 0 40px; }
  body[data-recharge-tab="coin"] .mobile-recharge-payment h1 img {
    width: 30.9584px;
    height: 28.7585px;
    margin: 3.62px 2.52px;
    flex: 0 0 auto;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-payment__grid {
    width: 359px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px 12px;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-method { width: 100%; height: 60px; }
  body[data-recharge-tab="coin"] .mobile-recharge-notes--coin {
    position: absolute;
    z-index: 1;
    top: 459px;
    left: 793px;
    display: block;
    width: 359px;
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: 14px;
    line-height: 20px;
    text-align: justify;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-notes--coin strong {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
  }

  body[data-recharge-tab="coin"] .mobile-recharge-footer {
    z-index: 11;
    top: 711px;
    left: calc(50% + 201px);
    width: 343px;
    height: 104px;
    padding: 12px 0 0;
    transform: none;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-footer button::before {
    width: 70.85%;
    border-radius: 0;
    background: url("/static/images/coin-recharge-figma-button-left.svg") center / 100% 100% no-repeat;
    filter: none;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-footer button::after {
    width: 36.44%;
    background-image: url("/static/images/coin-recharge-figma-button-right.svg");
  }
  body[data-recharge-tab="coin"] .mobile-recharge-footer button > span { color: #fff; }
  body[data-recharge-tab="coin"] .mobile-recharge-footer button > strong {
    top: 0;
    right: 5px;
    left: auto;
    display: flex;
    width: 104px;
    height: 50px;
    align-items: center;
    justify-content: center;
    color: #1a1614;
    font-size: 18px;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-footer button > em {
    left: 92px;
    width: 131px;
    height: 20px;
    padding: 3px 8px;
    border-radius: 10px 10px 10px 0;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0;
  }
  body[data-recharge-tab="coin"] .mobile-recharge-footer p { color: #b3b3b3; }
  body[data-recharge-tab="coin"] .mobile-recharge-footer p a { color: #f68804; }
}
