:root {
  --bg: #f6f7ff;
  --surface: #ffffff;
  --surface-soft: #fef4f5;
  --text: #141c35;
  --muted: #7b8098;
  --line: #ececf5;
  --brand: #ff5f64;
  --brand-strong: #ff4d57;
  --brand-soft: #ff8f8d;
  --pill: linear-gradient(135deg, #ff625d, #ff9186);
  --shadow: 0 14px 32px rgba(255, 96, 99, 0.14);
  --safe-top: max(env(safe-area-inset-top, 0px), 0px);
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), 0px);
  --mobile-frame: min(100vw, 430px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: Arial, Helvetica, sans-serif;
  background: #efeefe;
  color: var(--text);
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

input::placeholder {
  color: #bcc1d2;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  padding: 0;
  overflow-x: hidden;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.01);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  pointer-events: auto;
}

.boot-loader.hidden {
  display: none;
  pointer-events: none;
}

.boot-loader-inner {
  position: relative;
  width: var(--mobile-frame);
  max-width: 100vw;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.turbo-loader {
  width: fit-content;
  font-size: clamp(28px, 8vw, 40px);
  font-family: system-ui, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px red;
  background: conic-gradient(red 0 0) 0/0% 100% no-repeat text;
  -webkit-background-clip: text;
  background-clip: text;
  animation: turbo-loader-fill 2s linear infinite;
}

.turbo-loader::before {
  content: "Turbo...";
}

@keyframes turbo-loader-fill {
  to {
    background-size: 120% 100%;
  }
}

.phone-frame {
  position: relative;
  width: var(--mobile-frame);
  max-width: 100%;
  min-height: 100dvh;
  height: auto;
  background: var(--bg);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

.screen.active {
  display: block;
}

.login-screen {
  background: var(--bg);
}

.support-screen {
  background: #f7f8ff;
  padding-bottom: 28px;
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
}

.gradient-header,
.detail-header.coral {
  background: linear-gradient(180deg, #ff7472 0%, #ff8b85 100%);
  color: #fff;
}

.auth-hero {
  padding: 12px 16px 28px;
  min-height: 164px;
  color: #fff;
  background: linear-gradient(180deg, #ff7472 0%, #ff8b85 100%);
}

.hero-top,
.topbar,
.plain-header,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-top {
  position: relative;
  justify-content: center;
  min-height: 34px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo-full {
  display: block;
  width: auto;
  object-fit: contain;
}

.login-brand {
  margin: 0 auto;
  transform: translateX(0);
  width: 116px;
}

.home-brand {
  gap: 8px;
}

.activity-brand {
  height: 32px;
}

.brand-lockup-centered {
  margin: 0 auto;
}

.brand-wordmark {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-mark-image {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-mark-image-light {
  height: 16px;
}

.brand-mark-image-brand {
  height: 22px;
}

.brand-wordmark-white {
  height: 14px;
}

.brand-wordmark-red {
  height: 22px;
}

.brand-logo-full-light {
  width: 116px;
  height: auto;
}

.home-brand-single {
  display: flex;
  align-items: center;
}

.home-brand-logo {
  width: 138px;
  height: 34px;
  max-height: 34px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-lockup-light {
  color: #fff;
}

.brand-lockup-brand {
  color: var(--brand-strong);
}

.icon-button,
.notify-button,
.back-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button.ghost,
.back-button {
  width: 30px;
  height: 30px;
  color: inherit;
  font-size: 28px;
}

.back-button {
  position: relative;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1;
}

.back-button::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  color: #101827;
  -webkit-mask: url("./assets/angle-left.svg") center / contain no-repeat;
  mask: url("./assets/angle-left.svg") center / contain no-repeat;
}

.auth-back-button {
  position: absolute;
  left: 0;
  top: 0;
}

.icon-button.small {
  font-size: 16px;
  color: #c6c7d3;
}

.auth-copy h1 {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1;
}

.auth-copy p {
  margin: 0;
  max-width: 316px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.auth-copy {
  margin-top: 0;
}

.auth-card {
  margin-top: 0;
  padding: 18px 16px 28px;
  overflow-x: hidden;
}

.auth-view[data-auth-view="register"] .auth-copy p,
.auth-view[data-auth-view="reset"] .auth-copy p {
  max-width: 320px;
}

.auth-tabs,
.quick-actions,
.service-grid,
.activity-icons,
.feature-grid,
.recommend-grid,
.mini-grid,
.wallet-game-cards,
.deposit-methods,
.amount-grid {
  display: grid;
}

.auth-tabs {
  grid-template-columns: 1fr;
  max-width: 100%;
  justify-items: center;
  background: transparent;
  border-bottom: 1px solid #d9dce8;
  margin-bottom: 18px;
}

.auth-tab {
  min-width: 172px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 4px 12px;
  color: #ff5f64;
  position: relative;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.auth-tab.active {
  color: var(--brand-strong);
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 104px;
  bottom: -1px;
  height: 2.5px;
  background: var(--brand-strong);
  transform: translateX(-50%);
}

.auth-tab-icon {
  width: 19px;
  height: 19px;
  display: block;
  filter: brightness(0) saturate(100%) invert(55%) sepia(69%) saturate(2019%) hue-rotate(317deg) brightness(102%) contrast(101%);
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
}

.field-icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%) invert(59%) sepia(86%) saturate(1665%) hue-rotate(314deg) brightness(103%) contrast(102%);
}

.split-field,
.input-wrap,
.ticker-card,
.menu-item,
.account-strip,
.amount-entry {
  display: flex;
  align-items: center;
}

.split-field,
.input-wrap,
.amount-entry {
  border-radius: 16px;
  background: #fff;
  min-height: 54px;
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  box-shadow: inset 0 0 0 1px #edf0f7;
}

.split-field {
  gap: 10px;
}

.split-field > *,
.input-wrap > * {
  min-width: 0;
}

.split-field input,
.input-wrap input,
.otp-input-wrap input {
  min-width: 0;
  font-size: 15px;
  color: #1f2944;
  font-weight: 600;
}

.split-field input::placeholder,
.input-wrap input::placeholder,
.otp-input-wrap input::placeholder {
  font-weight: 500;
}

.country-code {
  min-width: 72px;
  height: 40px;
  border-radius: 12px;
  background: #f7f7fb;
  color: #5f6783;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  padding-right: 18px;
}

.country-code::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #8d93ad;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 24px;
  color: #6f768f;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.agreement-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  color: #6f768f;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.agreement-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c8cada;
  flex: 0 0 16px;
  position: relative;
  background: #fff;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.agreement-circle::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.75);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.agreement-link {
  color: var(--brand-strong);
  font-size: 12px;
  padding: 0;
}

.remember-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remember-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: 0 0 18px;
  background: #fff;
  border: 1.5px solid #d7dceb;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.remember-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.75);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.remember-input:checked + .remember-check {
  background: linear-gradient(180deg, #ff726f, #ff5c62);
  border-color: transparent;
  box-shadow: 0 6px 12px rgba(255, 95, 100, 0.16);
}

.remember-input:checked + .remember-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.remember-input:checked + .agreement-circle {
  background: linear-gradient(180deg, #ff726f, #ff5c62);
  border-color: transparent;
  box-shadow: 0 6px 12px rgba(255, 95, 100, 0.16);
}

.remember-input:checked + .agreement-circle::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.eye-button {
  width: 28px;
  height: 28px;
}

.eye-icon-image {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) saturate(100%) invert(82%) sepia(8%) saturate(308%) hue-rotate(187deg) brightness(90%) contrast(89%);
}

.primary-button,
.secondary-button,
.chip-button,
.light-pill,
.pill-action,
.small-outline,
.outline-chip,
.disabled-button {
  border-radius: 999px;
}

.primary-button,
.chip-button,
.disabled-button.active {
  background: var(--pill);
  color: #fff;
}

.primary-button,
.secondary-button,
.disabled-button {
  width: 100%;
  height: 56px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.secondary-button {
  margin-top: 18px;
  border: 1.5px solid var(--brand-strong);
  color: var(--brand-strong);
  background: transparent;
}

.auth-secondary-link {
  font-size: 13px;
  letter-spacing: 0;
}

.auth-secondary-link strong {
  font-weight: 800;
}

.wide-secondary {
  margin-top: 18px;
}

.slim {
  height: 44px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.utility-action {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.utility-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 119, 113, 0.16), rgba(255, 181, 167, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 95, 100, 0.08);
}

.utility-icon-image {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) saturate(100%) invert(56%) sepia(68%) saturate(1948%) hue-rotate(317deg) brightness(104%) contrast(101%);
}

.utility-icon-image-support {
  width: 19px;
  height: 19px;
}

.otp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.otp-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.otp-send-button {
  height: 40px;
  min-width: 86px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pill);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 96, 99, 0.18);
}

.auth-view[data-auth-view="register"] .primary-button,
.auth-view[data-auth-view="reset"] .primary-button {
  margin-top: 4px;
}

.auth-view[data-auth-view="register"] .auth-tabs,
.auth-view[data-auth-view="reset"] .auth-tabs {
  margin-bottom: 20px;
}

.auth-view[data-auth-view="register"] .auth-tab,
.auth-view[data-auth-view="reset"] .auth-tab {
  min-width: 192px;
}

@media (max-width: 420px) {
  .auth-hero {
    padding: 12px 14px 24px;
  }

  .auth-copy h1 {
    margin: 22px 0 10px;
    font-size: 20px;
  }

  .auth-copy p {
    max-width: 100%;
    font-size: 11px;
  }

  .auth-copy {
    margin-top: 0;
  }

  .auth-card {
    padding: 16px 12px 24px;
  }

  .auth-tab {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  .auth-view[data-auth-view="register"] .auth-tab,
  .auth-view[data-auth-view="reset"] .auth-tab {
    min-width: 0;
  }

  .split-field,
  .input-wrap,
  .amount-entry {
    padding: 0 12px;
  }

  .country-code {
    min-width: 66px;
    font-size: 14px;
  }

  .otp-row {
    gap: 8px;
  }

  .otp-send-button {
    min-width: 74px;
    padding: 0 12px;
    font-size: 13px;
  }
}

.app-screen {
  padding-bottom: 86px;
  min-height: 100dvh;
  height: auto;
  flex-direction: column;
  overflow: visible;
}

.app-screen.nav-reserve-hidden {
  padding-bottom: 0;
}

.app-screen.active {
  display: flex;
}

.page-stack {
  min-height: calc(100dvh - 78px);
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.page {
  display: none;
  position: relative;
  padding: 10px 12px 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.page.active {
  display: block;
  pointer-events: auto;
  min-height: 100%;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#page-home {
  --home-header-gap: 6px;
  --home-header-height: 48px;
  padding-top: calc(var(--home-header-height) + env(safe-area-inset-top, 0px) + var(--home-header-gap));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#page-home .white-topbar {
  background: #fff;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 22;
  margin: 0;
  padding: calc(7px + env(safe-area-inset-top, 0px)) 14px 7px;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 4px 14px rgba(18, 24, 44, 0.05);
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: calc(var(--home-header-height, 48px) + env(safe-area-inset-top, 0px));
  min-height: calc(var(--home-header-height, 48px) + env(safe-area-inset-top, 0px));
  max-height: calc(var(--home-header-height, 48px) + env(safe-area-inset-top, 0px));
  overflow: visible;
}

.home-sticky-shortcuts {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 23;
  display: none;
  width: var(--mobile-frame);
  max-width: 100vw;
  margin: 0;
  min-height: calc(62px + env(safe-area-inset-top, 0px));
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 8px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  gap: 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 18px rgba(18, 24, 44, 0.08);
  border-bottom: 1px solid #edf0f7;
  align-items: center;
}

.home-sticky-shortcuts::-webkit-scrollbar {
  display: none;
}

.home-topbar-tab {
  flex: 0 0 auto;
  min-width: 92px;
  height: 48px;
  padding: 6px 10px;
  border-radius: 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  color: #7c86a5;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf0f7;
  scroll-snap-align: start;
}

.home-topbar-tab.active {
  background: linear-gradient(180deg, #ff8f86, #ff6f69);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 104, 104, 0.18);
}

.home-topbar-tab-media {
  width: 36px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-topbar-tab-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-topbar-tab strong {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.notify-button {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 111, 110, 0.16), rgba(255, 154, 146, 0.24));
  color: var(--brand-strong);
  box-shadow: none;
}

.home-notify-button {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-notify-button img {
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.home-notify-button .dot {
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.notify-button img {
  width: 17px;
  height: 17px;
  display: block;
  object-fit: contain;
}

.home-notify-button img {
  filter: invert(43%) sepia(85%) saturate(2289%) hue-rotate(333deg) brightness(103%) contrast(101%);
}

.notify-button.mini {
  width: 28px;
  height: 28px;
  background: rgba(255, 95, 100, 0.1);
}

.support-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 8px 10px 10px;
  background: #fff;
  border-bottom: 1px solid #eceef6;
}

.support-header h1 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}

.support-header-button,
.support-lang-button,
.support-logo-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.support-header-button img {
  width: 18px;
  height: 18px;
  display: block;
}

.support-lang-button {
  justify-self: end;
  border: 1.5px solid #ff5f64;
  color: #233456;
  background: #fff;
  font-weight: 600;
}

.support-logo-button {
  justify-self: end;
  background: transparent;
  padding: 0;
}

.support-logo-button img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.support-banner-wrap {
  padding: 14px 10px 0;
}

.support-banner {
  display: block;
  width: 100%;
  border-radius: 4px;
}

.support-card {
  margin: 12px 10px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(27, 35, 67, 0.06);
  overflow: hidden;
}

.support-card h2 {
  margin: 0;
  padding: 16px 14px 12px;
  font-size: 16px;
  font-weight: 400;
  color: #16223c;
}

.support-list {
  padding: 0 14px 6px;
}

.support-item {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #eff1f7;
  color: #16223c;
  text-align: left;
  background: transparent;
  transition: background-color 0.16s ease;
}

.support-item:last-child {
  border-bottom: 0;
}

.support-item:active {
  background: rgba(255, 95, 100, 0.04);
}

.support-item:first-child {
  border-top: 0;
}

.support-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  box-shadow: none;
  border: 0;
  overflow: hidden;
  padding: 0;
}

.support-item-icon-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.support-item-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #23304a;
}

.support-item-arrow {
  color: #c2c8d6;
  font-size: 20px;
  line-height: 1;
  justify-self: end;
  font-weight: 400;
}

.game-page {
  padding-top: 6px;
}

.game-header {
  align-items: flex-start;
}

.game-header-copy {
  text-align: center;
  flex: 1 1 auto;
}

.game-header-copy h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.game-header-copy p {
  margin: 4px 0 0;
  color: #7d859d;
  font-size: 12px;
}

.game-balance-strip,
.game-period-card,
.game-result-card,
.game-choice-card,
.game-bet-card,
.game-history-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(27, 35, 67, 0.06);
}

.game-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.game-balance-strip span,
.game-period-card span,
.game-history-tab {
  color: #7b839a;
}

.game-balance-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.game-add-balance {
  min-width: 96px;
  height: 38px;
}

.game-period-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-top: 12px;
}

.game-period-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.game-result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.game-result-card {
  padding: 12px;
}

.game-result-card span,
.game-result-card small {
  display: block;
  color: #7b839a;
}

.game-result-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 18px;
  color: #15213b;
}

.game-result-card small {
  font-size: 11px;
}

.game-timer-block {
  text-align: right;
}

.game-timer-block strong {
  color: var(--brand-strong);
}

.game-choice-card {
  padding: 14px;
  margin-top: 12px;
}

.game-color-row,
.game-size-row,
.game-chip-row,
.game-history-tabs {
  display: grid;
  gap: 10px;
}

.game-color-row {
  grid-template-columns: repeat(3, 1fr);
}

.game-color-button,
.game-size-button,
.game-chip,
.game-number-button,
.game-history-tab {
  border-radius: 12px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.game-color-button,
.game-size-button {
  height: 44px;
  color: #fff;
}

.game-color-green { background: linear-gradient(135deg, #33c489, #21a66f); }
.game-color-violet { background: linear-gradient(135deg, #9a63ff, #c65bff); }
.game-color-red { background: linear-gradient(135deg, #ff6f6b, #ff4e57); }

.game-number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.game-number-button {
  height: 52px;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(27, 35, 67, 0.12);
}

.game-number-green { background: linear-gradient(135deg, #35cd90, #24a96f); }
.game-number-red { background: linear-gradient(135deg, #ff7a74, #ff5a62); }
.game-number-violet { background: linear-gradient(135deg, #ab75ff, #d264ff); }

.game-color-button.active,
.game-size-button.active,
.game-number-button.active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 5px rgba(255, 96, 99, 0.28);
  transform: translateY(-1px);
}

.game-size-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.game-size-big { background: linear-gradient(135deg, #ffae4c, #ff7a47); color: #fff; height: 46px; }
.game-size-small { background: linear-gradient(135deg, #69a7ff, #4e80ff); color: #fff; height: 46px; }

.game-bet-card {
  padding: 14px;
  margin-top: 12px;
}

.game-bet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-bet-head h3 {
  margin: 0;
  font-size: 15px;
}

.game-bet-head span {
  color: #7b839a;
  font-size: 12px;
}

.game-chip-row {
  grid-template-columns: repeat(5, 1fr);
  margin: 14px 0 16px;
}

.game-chip {
  height: 40px;
  background: #fff4f4;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px #ffd8d9;
}

.game-chip.active,
.game-history-tab.active {
  background: linear-gradient(135deg, #ff706c, #ff8a80);
  color: #fff;
  box-shadow: none;
}

.game-history-card {
  padding: 14px;
  margin-top: 12px;
}

.game-history-tabs {
  grid-template-columns: 1fr 1fr;
}

.game-history-tab {
  height: 40px;
  background: #f4f6fb;
}

.game-history-head {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr .8fr;
  gap: 8px;
  margin-top: 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid #eff1f7;
  color: #7b839a;
  font-size: 11px;
  font-weight: 700;
}

.game-history-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.game-history-item {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr .8fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #eff1f7;
  font-size: 12px;
  align-items: center;
}

.game-history-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.game-history-item strong {
  color: #16223c;
}

.game-history-number {
  font-weight: 700;
  color: var(--brand-strong);
}

.game-history-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.game-history-empty {
  padding: 18px 0 10px;
  text-align: center;
  color: #8790a8;
  font-size: 13px;
}

.game-bet-status {
  font-weight: 700;
}

.game-bet-status.pending {
  color: #8a91a8;
}

.game-bet-status.won {
  color: #1aa96a;
}

.game-bet-status.lost {
  color: #ff5f64;
}

.game-result-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.game-result-dot.green { background: #27b574; }
.game-result-dot.red { background: #ff5e61; }
.game-result-dot.violet { background: #af67ff; }

.game-page {
  position: relative;
  padding: 4px 10px 18px;
  background: #f4f6ff;
  overflow: hidden;
}

.game-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 292px;
  background:
    radial-gradient(58% 92% at 6% 8%, rgba(255,255,255,0.20) 0 34%, transparent 35%),
    radial-gradient(62% 90% at 92% -2%, rgba(255,255,255,0.12) 0 30%, transparent 31%),
    radial-gradient(90% 54% at 50% 100%, rgba(255,121,121,0.62) 0 42%, transparent 43%),
    radial-gradient(52% 32% at 14% 84%, rgba(255,145,145,0.46) 0 56%, transparent 57%),
    radial-gradient(52% 32% at 86% 84%, rgba(255,145,145,0.46) 0 56%, transparent 57%),
    linear-gradient(180deg, #fb7676 0%, #f56b6b 58%, #f56b6b 100%);
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  z-index: 0;
}

.game-page > * {
  position: relative;
  z-index: 1;
}

.wingo-reset-shell {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.wingo-reset-card {
  min-height: 140px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px 20px;
  text-align: center;
}

.wingo-reset-card strong {
  font-size: 22px;
  color: #1d2642;
}

.wingo-reset-card span {
  max-width: 240px;
  font-size: 14px;
  line-height: 1.45;
  color: #6a7189;
}

.wingo-dev-hidden {
  display: none !important;
}

  margin-top: 8px;
  font-size: 14px;
  color: #6f7790;
}

  min-height: 38px;
  padding: 12px 0;
}

.wingo-outcome-banner {
  height: 132px;
  margin: 0 -24px 12px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

.wingo-outcome-number {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}

.wingo-outcome-number img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.wingo-header {
  align-items: center;
  color: #fff;
  background: transparent;
  min-height: 36px;
  padding: 4px 0 0;
}

.wingo-header-logo {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.wingo-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 52px;
}

.wingo-header-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.96;
}

.wingo-header-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.wingo-wallet-card,
.wingo-timer-card,
.wingo-latest-card,
.wingo-betting-card,
.wingo-history-shell {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wingo-wallet-card {
  margin-top: 14px;
  padding: 16px 18px 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(246,247,250,0.97) 100%),
    url("./assets/wingo-walletbg.webp") center/cover no-repeat;
  position: relative;
  z-index: 3;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(42, 52, 84, 0.12);
}

.wingo-wallet-balance {
  text-align: center;
}

.wingo-balance-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wingo-wallet-balance strong {
  display: block;
  font-size: 31px;
  line-height: 1.05;
  color: #1d2642;
}

.wingo-balance-refresh {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url("./assets/wingo-refresh.webp") center/contain no-repeat;
  font-size: 0;
}

.wingo-wallet-balance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #3c4b76;
  font-size: 13px;
  font-weight: 500;
}

.wingo-wallet-mini-icon {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff7f7b, #ff6264);
  display: inline-block;
  position: relative;
}

.wingo-wallet-mini-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.92);
}

.wingo-wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.wingo-wallet-button {
  height: 44px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wingo-wallet-button.withdraw {
  background: linear-gradient(135deg, #ff8f59, #ff5966);
}

.wingo-wallet-button.deposit {
  background: linear-gradient(135deg, #31c76d, #15a847);
}

.wingo-announcement {
  margin-top: 12px;
  margin-bottom: -12px;
  min-height: 38px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  text-align: left;
  position: relative;
  z-index: 4;
  box-shadow: 0 6px 16px rgba(42, 52, 84, 0.08);
}

.wingo-announcement .home-announcement-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f56b6b;
}

.wingo-announcement .home-announcement-icon img {
  width: 12px;
  height: 12px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.wingo-announcement .home-announcement-text {
  font-size: 11px;
  line-height: 1.1;
  color: #1d2642;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wingo-announcement .home-announcement-action {
  min-width: 60px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8b82, #ff6e75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wingo-room-shell {
  margin-top: 0;
  padding: 18px 11px 12px;
  border-radius: 26px 26px 16px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,249,253,0.98) 100%);
  box-shadow: 0 10px 24px rgba(42, 52, 84, 0.10);
  position: relative;
  z-index: 2;
}

.wingo-room-shell::before,
.wingo-room-shell::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 38px;
  height: 24px;
  background: rgba(255,255,255,0.98);
}

.wingo-room-shell::before {
  left: 0;
  border-top-left-radius: 18px;
  border-top-right-radius: 28px;
}

.wingo-room-shell::after {
  right: 0;
  border-top-right-radius: 18px;
  border-top-left-radius: 28px;
}

.wingo-room-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.wingo-room-tab {
  min-height: 76px;
  padding: 9px 4px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfbfd 0%, #eceff5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 3px 12px rgba(42, 52, 84, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8f96ad;
  position: relative;
  overflow: hidden;
}

.wingo-room-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(226, 230, 241, 0.95);
  pointer-events: none;
}

.wingo-room-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.wingo-room-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.wingo-room-tab strong {
  font-size: 11px;
  color: inherit;
  white-space: nowrap;
}

.wingo-room-tab span {
  font-size: 10px;
  white-space: nowrap;
}

.wingo-room-tab.active {
  background: linear-gradient(180deg, #ff7f79 0%, #ff6967 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 10px 18px rgba(245,107,107,0.24);
}

.wingo-room-tab.active::after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.wingo-timer-card {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(42, 52, 84, 0.08);
  background: #fff;
}

.wingo-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #ff7e78, #ff625f);
}

.wingo-pill-button {
  min-width: 112px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.wingo-timer-copy {
  text-align: right;
  color: #fff;
}

.wingo-timer-copy span,
.wingo-timer-copy small {
  display: block;
}

.wingo-timer-copy span {
  font-size: 12px;
}

.wingo-timer-copy strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.wingo-timer-copy small {
  margin-top: 1px;
  font-size: 12px;
  opacity: 0.92;
}

.wingo-timer-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 6px;
  background: url("./assets/wingo-ticket.webp") center/100% 100% no-repeat;
}

.wingo-timer-body::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 48.8%;
  border-left: 1px dashed rgba(255, 206, 214, 0.9);
}

.wingo-period-copy {
  display: grid;
  gap: 7px;
  padding-right: 12px;
}

.wingo-period-copy span {
  color: #ff5d60;
  font-size: 12px;
  font-weight: 700;
}

.wingo-period-copy strong {
  font-size: clamp(11px, 3.4vw, 13px);
  color: #243053;
  overflow-wrap: anywhere;
}

.wingo-clock-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wingo-clock-wrap > span {
  font-size: 24px;
  line-height: 1;
  color: #ff6665;
  font-weight: 800;
}

.wingo-clock-box {
  width: 26px;
  height: 34px;
  border-radius: 6px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 215, 0.95);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #1d2642;
}

.wingo-lock-note {
  display: block;
  padding: 4px 12px 12px;
  color: #222;
  font-size: 12px;
}

.wingo-ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 2px;
}

.wingo-recent-balls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.wingo-recent-ball {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wingo-recent-ball img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wingo-ticket-period {
  font-size: clamp(10px, 3vw, 12px);
  line-height: 1;
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wingo-latest-card {
  margin-top: 14px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(42, 52, 84, 0.08);
}

.wingo-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7e879f;
  font-size: 11px;
}

.wingo-latest-digits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.wingo-latest-digit {
  height: 80px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef1fb, 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 800;
  color: #ff5b64;
  line-height: 1;
}

.wingo-latest-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.wingo-meta-chip {
  min-height: 50px;
  border-radius: 12px;
  background: #fff7f7;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 6px;
  text-align: center;
}

.wingo-meta-chip span {
  font-size: 10px;
  color: #7f869e;
}

.wingo-meta-chip strong {
  font-size: 12px;
  color: #1d2642;
}

.wingo-betting-card {
  margin-top: 10px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(42, 52, 84, 0.08);
}

.wingo-betting-card .game-color-row {
  gap: 8px;
}

.wingo-betting-card .game-color-button {
  height: 40px;
  font-size: 13px;
  border-radius: 12px 12px 6px 6px;
}

.wingo-betting-card .game-number-grid {
  gap: 8px;
  margin-top: 10px;
}

.wingo-betting-card .game-number-button {
  height: 50px;
  font-size: 24px;
}

.wingo-betting-card .game-size-row {
  gap: 8px;
  margin-top: 10px;
}

.wingo-betting-card .game-size-button {
  height: 42px;
  font-size: 13px;
  border-radius: 6px 6px 12px 12px;
}

.wingo-bet-card {
  margin-top: 10px;
  border-radius: 14px;
  background: #f9fbff;
  padding: 10px;
}

.wingo-bet-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 156px);
  gap: 12px;
  align-items: center;
}

.wingo-current-stake {
  display: grid;
  gap: 4px;
}

.wingo-current-stake span {
  color: #7f869e;
  font-size: 12px;
}

.wingo-current-stake strong {
  font-size: 22px;
  color: #1d2642;
}

.wingo-history-shell {
  margin-top: 8px;
  box-shadow: 0 8px 20px rgba(42, 52, 84, 0.08);
}

.wingo-history-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wingo-history-tabs .game-history-tab {
  height: 40px;
}

.wingo-history-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 2px;
  color: #7f869e;
  font-size: 12px;
}

.wingo-page-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f4f6fb;
  color: #7f869e;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.wingo-page-button.active {
  background: linear-gradient(135deg, #ff706c, #ff8a80);
  color: #fff;
}

.wingo-rule-modal-card {
  width: min(100%, 320px);
  padding-top: 28px;
}

.wingo-rule-modal-card h3 {
  margin: 0;
  font-size: 22px;
  color: #1d2642;
}

.wingo-rule-body {
  max-height: 360px;
  overflow-y: auto;
  text-align: left;
  margin-top: 14px;
  padding-right: 4px;
  display: grid;
  gap: 12px;
}

.wingo-rule-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #253051;
}

.wingo-outcome-card {
  width: min(100%, 318px);
  padding: 14px 14px 18px;
}

.wingo-outcome-banner {
  min-height: 170px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.wingo-outcome-copy {
  display: grid;
  gap: 6px;
  color: #fff;
  text-align: left;
}

.wingo-outcome-number {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.wingo-outcome-number img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.wingo-outcome-copy strong {
  font-size: 26px;
}

.wingo-outcome-copy span {
  font-size: 16px;
}

.disabled-soft {
  opacity: 0.78;
  filter: saturate(0.9);
}

.game-number-button {
  position: relative;
  height: 56px;
  border-radius: 50%;
  font-size: 0;
  font-weight: 800;
  color: transparent;
  box-shadow: none;
  overflow: visible;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 52px 52px;
  background-color: transparent;
}

.game-number-button::before {
  display: none;
}

.game-number-button {
  display: grid;
  place-items: center;
  z-index: 0;
}

.game-number-button {
  text-shadow: none;
}

.game-number-button.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.92), 0 0 0 5px rgba(245,107,107,0.30);
}

.game-number-button[data-game-number="0"] { background-image: url("./assets/wingo-ball-0.webp"); }
.game-number-button[data-game-number="1"] { background-image: url("./assets/wingo-ball-1.webp"); }
.game-number-button[data-game-number="2"] { background-image: url("./assets/wingo-ball-2.webp"); }
.game-number-button[data-game-number="3"] { background-image: url("./assets/wingo-ball-3.webp"); }
.game-number-button[data-game-number="4"] { background-image: url("./assets/wingo-ball-4.webp"); }
.game-number-button[data-game-number="5"] { background-image: url("./assets/wingo-ball-5.webp"); }
.game-number-button[data-game-number="6"] { background-image: url("./assets/wingo-ball-6.webp"); }
.game-number-button[data-game-number="7"] { background-image: url("./assets/wingo-ball-7.webp"); }
.game-number-button[data-game-number="8"] { background-image: url("./assets/wingo-ball-8.webp"); }
.game-number-button[data-game-number="9"] { background-image: url("./assets/wingo-ball-9.webp"); }

.game-number-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.game-chip-row {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.game-chip {
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
  background: #f4f6fb;
  color: #8d94ac;
  box-shadow: inset 0 0 0 1px #edf0f8;
}

.game-chip.active {
  background: #20b458;
  color: #fff;
}

.game-chip-random {
  background: #fff;
  color: #ff625f;
  box-shadow: inset 0 0 0 1px #ffb3b1;
}

.game-size-big,
.game-size-small {
  height: 44px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.game-size-big {
  background: linear-gradient(135deg, #ffb35d, #ff9a45);
}

.game-size-small {
  background: linear-gradient(135deg, #77a8f3, #5b8fe9);
}

.game-history-head {
  background: linear-gradient(180deg, #ff6f72 0%, #ff6669 100%);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 12px 12px 10px;
  border-bottom: 0;
  margin-top: 14px;
}

.game-history-item {
  padding: 10px 0;
}

.game-history-number {
  font-size: 30px;
  line-height: 1;
}

.dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3e46;
}

.banner-card,
.ticker-card,
.balance-card,
.safe-card,
.mini-card,
.menu-list,
.service-card,
.wallet-card,
.form-card,
.notes-card,
.history-card,
.support-card,
.account-strip,
.promo-data {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.hero-carousel {
  position: relative;
  margin-top: 0;
  overflow: hidden;
}

.hero-carousel.is-hidden,
.ticker-card.is-hidden {
  display: none;
}

.hero-carousel.is-empty {
  display: none;
}

.hero-slides {
  position: relative;
  min-height: 132px;
  aspect-ratio: 2.4 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f2f8;
  box-shadow: 0 10px 24px rgba(28, 34, 66, 0.06);
  touch-action: pan-y;
  cursor: grab;
}

.hero-slides.is-dragging {
  cursor: grabbing;
}

.hero-slide,
.hero-slide.active {
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-slides.is-dragging .hero-slide {
  transition: none;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: center;
}

.hero-dots {
  display: none !important;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #ffffff;
}

.ticker-card {
  margin-top: 10px;
  gap: 8px;
  min-height: 42px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1.25;
  border-radius: 12px;
}

.ticker-icon-image-wrap {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.ticker-icon-image {
  width: 14px;
  height: 14px;
  display: block;
  filter: invert(45%) sepia(94%) saturate(1902%) hue-rotate(329deg) brightness(101%) contrast(101%);
}

#home-announcement {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-brand-logo {
  width: 138px;
  height: 34px;
  max-height: 34px;
}

.home-category-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.home-category-tab {
  position: relative;
  min-height: var(--home-block-height, 82px);
  border-radius: 8px;
  border: 0;
  box-shadow: 0 8px 18px rgba(28, 34, 66, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  color: #fff;
  overflow: hidden;
  background: var(--home-tab-bg) center/cover no-repeat;
}

.home-category-tab-wide {
  grid-column: span 3;
  min-height: var(--home-block-height, 98px);
}

.home-category-tab-compact {
  grid-column: span 2;
  min-height: var(--home-block-height, 76px);
}

.home-category-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.home-category-tab::after {
  display: none;
}

.home-category-tab > * {
  position: relative;
  z-index: 2;
}

.home-category-tab.active {
  transform: none;
  box-shadow: 0 8px 18px rgba(28, 34, 66, 0.08);
  filter: none;
}

.home-category-tab-media {
  width: 58px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  margin: 0;
  flex: 0 0 auto;
}

.home-category-tab-wide .home-category-tab-media {
  position: static;
  width: 82px;
  height: 58px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.home-category-tab-compact .home-category-tab-media {
  width: 46px;
  height: 34px;
}

.home-category-tab-wide .home-category-tab-media img {
  max-width: 100%;
  max-height: 100%;
}

.home-category-tab-media img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transform: translate(var(--home-icon-x, 0), calc(var(--home-icon-y, 0px) + 4px)) scale(calc(var(--home-icon-scale, 1) * var(--home-icon-bonus, 1)));
  transform-origin: center center;
}

.home-category-tab-compact {
  --home-icon-bonus: 1.08;
}

.home-category-tab-compact .home-category-tab-media {
  width: 48px;
  height: 36px;
}

.home-category-tab[data-tab-id="casino"],
.home-category-tab[data-tab-id="slots"],
.home-category-tab[data-tab-id="sports"],
.home-category-tab[data-tab-id="rummy"],
.home-category-tab[data-tab-id="fishing"],
.home-category-tab[data-tab-id="original"] {
  --home-icon-bonus: 1.14;
}

.home-category-tab strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 18px;
  padding: 0;
  font-size: calc(12px * var(--home-text-scale, 1));
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  text-align: right;
  z-index: 3;
  white-space: nowrap;
}

.home-category-tab[data-tab-id="casino"] strong {
  font-size: calc(11px * var(--home-text-scale, 1));
}

.home-category-tab-wide strong {
  position: static;
  width: auto;
  transform: none;
  min-height: 24px;
  padding: 0;
  font-size: calc(14px * var(--home-text-scale, 1));
}

@media (max-width: 430px) {
  .home-category-tab {
    gap: 12px;
  }

  .home-category-tab-media {
    width: 82px;
    height: 60px;
  }

  .home-category-tab-wide .home-category-tab-media {
    width: 116px;
    height: 82px;
  }

  .home-category-tab-compact {
    --home-icon-bonus: 1.12;
  }

  .home-category-tab-compact .home-category-tab-media {
    width: 68px;
    height: 50px;
  }

  .home-category-tab strong {
    font-size: calc(15px * var(--home-text-scale, 1));
  }

  .home-category-tab-wide strong {
    font-size: calc(17px * var(--home-text-scale, 1));
  }

  .home-category-tab[data-tab-id="casino"] strong {
    font-size: calc(13px * var(--home-text-scale, 1));
  }

  .home-category-tab[data-tab-id="casino"],
  .home-category-tab[data-tab-id="slots"],
  .home-category-tab[data-tab-id="sports"],
  .home-category-tab[data-tab-id="rummy"],
  .home-category-tab[data-tab-id="fishing"],
  .home-category-tab[data-tab-id="original"] {
    --home-icon-bonus: 1.2;
  }
}

.home-lobby-sections {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#page-home.home-shortcuts-active .home-sticky-shortcuts {
  display: flex;
}

#page-home.home-subpage .home-sticky-shortcuts {
  display: flex;
}

#page-home.home-shortcuts-active .white-topbar,
#page-home.home-subpage .white-topbar {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

#page-home.home-shortcuts-active .white-topbar .home-brand-single,
#page-home.home-shortcuts-active .white-topbar .home-notify-button,
#page-home.home-subpage .white-topbar .home-brand-single,
#page-home.home-subpage .white-topbar .home-notify-button {
  opacity: 0;
  pointer-events: none;
}

.home-category-sentinel {
  width: 100%;
  height: 1px;
}

#page-home.home-subpage .home-category-tabs {
  display: none;
}

#page-home.home-subpage .home-lobby-sections {
  margin-top: 8px;
  padding-top: 56px;
}

.home-section-block {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.home-section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 15px;
  min-width: 0;
  flex: 1 1 auto;
}

.home-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: #ff6868;
}

.home-section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #ff8e8e;
  background: #fff;
  color: #ff6868;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 104, 104, 0.08);
  flex: 0 0 auto;
}

.home-controlled-grid,
.home-game-grid {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-controlled-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-controlled-card,
.home-game-card,
.home-inline-banner,
.home-info-card,
.home-chart-board {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.home-controlled-card {
  position: relative;
  min-height: 154px;
  padding: 14px 10px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-items: center;
  row-gap: 2px;
  overflow: hidden;
}

.home-controlled-image {
  width: 94px;
  height: 94px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: none;
  transform-origin: center center;
  align-self: center;
  justify-self: center;
}

.home-controlled-title {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  word-break: normal;
  white-space: nowrap;
  padding: 0 2px;
}

.home-section-block:first-child .home-controlled-grid {
  gap: 14px;
}

.home-section-block:first-child .home-controlled-card {
  min-height: 168px;
  padding: 16px 10px 14px;
}

.home-section-block:first-child .home-controlled-image {
  width: 102px;
  height: 102px;
  transform: none;
}

.home-section-block:first-child .home-controlled-title {
  min-height: 34px;
  font-size: 15px;
}

.theme-coral { background: linear-gradient(180deg, #ff8f86, #ff6868); }
.theme-orange { background: linear-gradient(180deg, #ff9b68, #ff7b3f); }
.theme-sun { background: linear-gradient(180deg, #ffae7d, #ff846d); }
.theme-mint { background: linear-gradient(180deg, #ff8f86, #ff6b7c); }
.theme-pink { background: linear-gradient(180deg, #ff85a7, #ff677e); }

.home-inline-banner {
  min-height: 80px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #ff8b8b, #ff6657 55%, #ff9a5f);
}

.home-inline-banner strong,
.home-inline-banner span {
  display: block;
}

.home-inline-banner strong {
  font-size: 16px;
}

.home-inline-banner span {
  font-size: 12px;
}

.home-inline-banner-action {
  min-width: 88px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.home-lottery-helper {
  min-height: 74px;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 48px 1fr 74px;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff8b8b, #ff6657 55%, #ff9a5f);
}

.home-lottery-helper-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-lottery-helper-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.home-lottery-helper-copy strong,
.home-lottery-helper-copy span {
  display: block;
}

.home-lottery-helper-copy strong {
  font-size: 13px;
  line-height: 1.08;
}

.home-lottery-helper-copy span {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.25;
  opacity: 0.96;
}

.home-lottery-helper-action {
  min-width: 74px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.home-lottery-list {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-lottery-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 13px;
  padding: 12px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  text-align: left;
  overflow: hidden;
}

.home-lottery-card-left {
  display: block;
}

.home-lottery-card-thumb {
  width: 80px;
  min-height: 110px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8f86, #ff6868);
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 8px 8px;
}

.home-lottery-thumb-label {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
  align-self: start;
  justify-self: start;
  width: 100%;
}

.home-lottery-card-thumb img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}

.home-lottery-card-body {
  display: grid;
  gap: 9px;
  align-content: center;
  min-width: 0;
}

.home-lottery-card-top,
.home-lottery-card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.home-lottery-card-top strong {
  color: #141a30;
  font-size: 15px;
  line-height: 1.1;
  min-width: 0;
  flex: 1 1 auto;
}

.home-lottery-go {
  min-width: 58px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a84, #ff6a62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.home-lottery-card-line span {
  color: #6d7695;
  font-size: 11px;
  min-width: 0;
  flex: 1 1 auto;
}

.home-lottery-card-line strong {
  color: #ff7f4b;
  font-size: 11px;
  line-height: 1;
  flex: 0 0 auto;
}

.home-lottery-card-body p {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid #ff6f69;
  color: #7681a5;
  font-size: 10px;
  line-height: 1.34;
}

.home-winning-board {
  display: grid;
  gap: 10px;
}

.home-winning-list {
  display: grid;
  gap: 8px;
}

.home-winning-row {
  display: grid;
  grid-template-columns: 1fr 42px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.home-winning-row > strong {
  color: #28304d;
  font-size: 13px;
}

.home-winning-chip {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff8f86, #ff6868);
}

.home-winning-row div {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.home-winning-row b {
  color: #141a30;
  font-size: 13px;
}

.home-winning-row span {
  color: #8f97b3;
  font-size: 10px;
}

.home-game-card {
  position: relative;
  min-height: 166px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
}

.home-game-card-image,
.home-game-card-shade {
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.home-game-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.home-game-card-shade {
  background: transparent;
}

.home-game-card strong,
.home-game-card small,
.home-coming-soon {
  position: relative;
  z-index: 1;
}

.home-game-card strong {
  font-size: 17px;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.home-game-card small {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.home-coming-soon {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #ff6363;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.home-chart-board {
  padding: 12px;
  background: linear-gradient(180deg, #fefeff, #f7f8ff);
}

.home-chart-podium {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 204px;
  padding: 14px 8px 14px;
  background:
    radial-gradient(ellipse at 18% -6%, rgba(255, 218, 218, 0.48) 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% -8%, rgba(255, 232, 200, 0.58) 0 20%, transparent 21%),
    radial-gradient(ellipse at 82% -6%, rgba(255, 218, 218, 0.48) 0 18%, transparent 19%),
    linear-gradient(180deg, #7c1418 0%, #a31b1f 34%, #d9272d 68%, #ff5252 100%);
  border-radius: 16px;
  overflow: hidden;
}

.home-chart-podium::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64%;
  background:
    radial-gradient(ellipse at 18% 90%, rgba(255, 255, 255, 0.98) 0 10%, rgba(219, 219, 219, 0.95) 11%, rgba(186, 186, 186, 0.82) 18%, transparent 19%),
    radial-gradient(ellipse at 50% 86%, rgba(255, 250, 228, 0.98) 0 11%, rgba(255, 227, 153, 0.96) 12%, rgba(221, 166, 64, 0.86) 20%, transparent 21%),
    radial-gradient(ellipse at 82% 90%, rgba(255, 255, 255, 0.98) 0 10%, rgba(240, 226, 220, 0.95) 11%, rgba(205, 177, 165, 0.82) 18%, transparent 19%);
  pointer-events: none;
}

.home-podium-card {
  position: relative;
  min-height: 156px;
  padding: 10px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  text-align: center;
  color: #fff;
  background: transparent;
  overflow: visible;
  z-index: 2;
}

.home-podium-avatar {
  width: 60px;
  height: 60px;
  margin: 18px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.82);
  background-color: rgba(255, 255, 255, 0.2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.podium-1 {
  transform: translateY(-4px);
  z-index: 3;
}

.podium-2,
.podium-3 {
  transform: translateY(30px);
}

.home-podium-crown {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.home-podium-place {
  width: 62px;
  height: auto;
  margin-top: -2px;
  object-fit: contain;
}

.home-podium-card strong {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.home-podium-card > span:last-child {
  max-width: 100%;
  padding: 0 10px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

.home-chart-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.home-chart-row {
  background: #fff;
  border-radius: 12px;
  min-height: 54px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr) minmax(0, 112px);
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(28, 34, 66, 0.04);
  overflow: hidden;
}

.home-chart-index {
  color: #7d87a5;
  font-size: 12px;
  font-weight: 700;
}

.home-chart-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff4f4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.home-chart-row strong {
  font-size: 15px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-chart-pill {
  min-width: 0;
  width: 100%;
  padding: 0 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff837a, #ff6a6d);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .home-chart-board {
    padding: 10px;
  }

  .home-chart-podium {
    gap: 6px;
    min-height: 184px;
    padding: 12px 6px 10px;
  }

  .home-podium-card {
    min-height: 142px;
    padding: 8px 4px 10px;
    gap: 4px;
  }

  .home-podium-avatar {
    width: 52px;
    height: 52px;
    margin-top: 16px;
  }

  .home-podium-crown {
    width: 30px;
    height: 30px;
  }

  .home-podium-place {
    width: 54px;
  }

  .podium-1 {
    transform: translateY(0);
  }

  .podium-2,
  .podium-3 {
    transform: translateY(22px);
  }

  .home-podium-card strong {
    font-size: 11px;
  }

  .home-podium-card > span:last-child {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .home-chart-row {
    grid-template-columns: 18px 30px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 50px;
    padding: 0 8px;
  }

  .home-chart-avatar {
    width: 30px;
    height: 30px;
  }

  .home-chart-row strong {
    font-size: 13px;
  }

  .home-chart-pill {
    width: auto;
    max-width: 88px;
    height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }
}

.home-info-card {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.home-provider-grid {
  display: grid;
  gap: 10px;
}

.home-provider-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-provider-row:first-child {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.home-provider-row:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.home-provider-brand,
.home-provider-tag {
  min-height: 40px;
  border-radius: 10px;
  background: #f5f7ff;
  border: 1px solid #eef1fb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.home-provider-brand {
  min-height: 58px;
  padding: 8px 12px;
  background: #f6f8ff;
  box-shadow: none;
}

.home-provider-brand-image {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.provider-turbo .home-provider-brand-image {
  max-height: 34px;
}

.provider-18plus .home-provider-brand-image {
  max-height: 44px;
}

.provider-jili .home-provider-brand-image,
.provider-evolution .home-provider-brand-image,
.provider-last-logo .home-provider-brand-image {
  max-height: 32px;
}

.home-provider-tag {
  font-size: 12px;
  font-weight: 700;
  color: #ff605c;
}

.home-info-copy {
  display: grid;
  gap: 10px;
  padding: 4px 2px;
}

.home-info-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #232d4b;
}

.home-info-links {
  display: grid;
  gap: 8px;
}

.home-info-link {
  min-height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf1f8;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.ticker-icon {
  color: var(--brand-strong);
  font-size: 11px;
}

.pill-action,
.chip-button,
.light-pill,
.small-outline,
.outline-chip {
  padding: 0 12px;
  height: 30px;
  white-space: nowrap;
}

.pill-action,
.chip-button {
  background: var(--pill);
  color: #fff;
}

.small-outline,
.outline-chip {
  border: 1px solid var(--brand-soft);
  color: var(--brand-strong);
  background: #fff;
}

.feature-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.feature-tile,
.recommend-card,
.activity-card,
.deposit-method,
.channel-card,
.wallet-game-card {
  position: relative;
  overflow: hidden;
}

.feature-tile {
  min-height: 62px;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  color: #fff;
}

.feature-tile strong,
.recommend-card strong {
  display: block;
  font-size: 17px;
}

.feature-tile span,
.recommend-card small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.gold { background: linear-gradient(135deg, #ffc76a, #ff8d59); }
.violet { background: linear-gradient(135deg, #8a6bff, #e061ff); }
.coral { background: linear-gradient(135deg, #ff7f76, #ffa15b); }
.purple { background: linear-gradient(135deg, #9b62ff, #ba7dff); }
.amber { background: linear-gradient(135deg, #ffb654, #ff8540); }
.sun { background: linear-gradient(135deg, #ffbc73, #ff8a7a); }
.pink { background: linear-gradient(135deg, #ff84a6, #ff6b72); }
.blue { background: linear-gradient(135deg, #69b4ff, #5a8aff); }
.dark { background: linear-gradient(135deg, #2a0d19, #81182d); }
.cherry { background: linear-gradient(135deg, #4a0b16, #ae2038); }
.orange { background: linear-gradient(135deg, #ffa742, #ffcc74); color: #602400; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}

.section-head h2,
.history-section h3,
.service-card h3,
.form-card h3,
.promo-data h3 {
  margin: 0;
  font-size: 15px;
}

.recommend-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.recommend-card {
  min-height: 116px;
  border-radius: 16px;
  padding: 14px;
  color: #fff;
}

.gradient-header {
  border-radius: 0 0 26px 26px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 22px;
}

.gradient-header.centered {
  text-align: center;
}

.bonus-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0;
}

.bonus-row span,
.promo-summary p,
.promo-summary span,
.duo-stats span,
.mini-card span,
.safe-card p,
.history-line span,
.wallet-ring small,
.method-line,
.notes-card li,
.last-login {
  color: rgba(20, 28, 53, 0.65);
}

.gradient-header .bonus-row span,
.gradient-header .bonus-row strong,
.gradient-header p,
.gradient-header .last-login {
  color: #fff;
}

.bonus-row strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.45);
}

.light-pill {
  min-width: 132px;
  background: #fff;
  color: var(--brand-strong);
}

.activity-icons {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  padding: 14px 6px 10px;
}

.activity-icon {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
  text-align: center;
}

.activity-icon span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffcf71, #ff8b7f);
  box-shadow: 0 8px 18px rgba(255, 119, 112, 0.18);
  color: #fff;
  font-size: 20px;
}

.activity-cards {
  display: grid;
  gap: 12px;
}

.activity-card {
  padding: 0 0 16px;
}

.activity-art {
  height: 120px;
  background: linear-gradient(135deg, #ff8d7c, #ff6157);
  border-radius: 16px 16px 0 0;
}

.activity-card h3,
.activity-card p {
  margin: 12px 14px 0;
}

.plain-header {
  min-height: calc(46px + env(safe-area-inset-top, 0px));
  padding: calc(4px + env(safe-area-inset-top, 0px)) 2px 14px;
}

.plain-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  color: #111722;
}

.header-spacer {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.link-button {
  color: #131927;
  font-size: 13px;
}

.promo-summary {
  margin: 0 -12px 0;
  padding: 12px 16px 30px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 209, 209, 0.42) 0, rgba(255, 209, 209, 0.42) 18%, transparent 19%),
    radial-gradient(circle at 72% 0%, rgba(255, 214, 214, 0.28) 0, rgba(255, 214, 214, 0.28) 34%, transparent 35%),
    linear-gradient(180deg, #ff7d7b 0%, #ff8f89 100%);
  color: #fff;
  text-align: center;
}

.promo-summary strong {
  display: block;
  font-size: 39px;
  line-height: 1.05;
}

.promo-summary span {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #ff6b69;
  font-size: 11px;
  line-height: 1;
}

.promo-summary p {
  margin: 7px 0 0;
  color: #fff;
  font-size: 11px;
}

.duo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffcecb;
  position: relative;
  z-index: 2;
  margin: -30px 10px 16px;
  box-shadow: 0 10px 24px rgba(30, 35, 66, 0.06);
}

.duo-stats > div {
  background: #fff;
}

.duo-stats h3 {
  margin: 0;
  padding: 11px 10px 10px;
  text-align: center;
  background: linear-gradient(180deg, #ff666b 0%, #ff5d65 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.duo-stats ul {
  list-style: none;
  margin: 0;
  padding: 12px 8px 10px;
}

.duo-stats li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 0;
}

.duo-stats strong {
  font-size: 16px;
  line-height: 1;
  color: #162137;
}

.duo-stats li span {
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  color: #4a5877;
}

.menu-list {
  margin-top: 12px;
  padding: 2px 0;
}

.menu-item {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  border-bottom: 1px solid #f1f2f8;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-tail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #707a95;
}

.copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.copy-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.promo-data {
  margin-top: 14px;
  padding: 16px;
}

.promo-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 8px;
  margin-top: 12px;
  text-align: center;
}

.promo-data-grid strong {
  display: block;
  font-size: 24px;
  color: var(--brand-strong);
}

.agency-header {
  padding-top: 2px;
  align-items: center;
}

#page-promotion {
  --promo-header-height: calc(56px + var(--safe-top));
  padding-top: var(--promo-header-height);
}

#page-promotion .agency-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 42;
  margin: 0;
  min-height: var(--promo-header-height);
  height: var(--promo-header-height);
  max-height: var(--promo-header-height);
  padding: calc(8px + var(--safe-top)) 12px 8px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 6px 16px rgba(18, 24, 44, 0.03);
}

.agency-header h2 {
  flex: 1 1 auto;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
}

.agency-header-spacer {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.agency-header-action {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 30px;
  background: linear-gradient(180deg, #ff8f8a 0%, #ff7b76 100%);
  box-shadow: 0 8px 16px rgba(255, 109, 109, 0.22);
}

.agency-header-action::before,
.agency-header-action::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
}

.agency-header-action::before {
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.agency-header-action::after {
  top: 15px;
  width: 14px;
  height: 8px;
  border-radius: 999px 999px 6px 6px;
}

.promo-list {
  margin-top: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.promo-list .menu-item {
  min-height: 58px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 34, 66, 0.06);
}

.promo-row-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.promo-list-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffa8a3 0%, #ff7771 100%);
  box-shadow: 0 8px 16px rgba(255, 110, 110, 0.18);
}

.promo-list-icon::before,
.promo-list-icon::after {
  content: "";
  position: absolute;
  background: #fff;
}

.promo-list-icon-code::before {
  top: 5px;
  left: 6px;
  width: 10px;
  height: 12px;
  border-radius: 2px;
}

.promo-list-icon-code::after {
  top: 7px;
  left: 8px;
  width: 6px;
  height: 2px;
  box-shadow: 0 4px 0 #fff, 0 8px 0 #fff;
}

.promo-list-icon-team::before {
  top: 5px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 8px 0 0 #fff, 4px 7px 0 3px #fff;
}

.promo-list-icon-team::after {
  display: none;
}

.promo-list-icon-commission::before {
  top: 4px;
  left: 10px;
  width: 2px;
  height: 13px;
  border-radius: 999px;
}

.promo-list-icon-commission::after {
  top: 9px;
  left: 6px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
}

.promo-list .compact {
  min-height: 62px;
}

.promo-list .menu-tail strong {
  font-size: 12px;
  color: #51607f;
  font-weight: 500;
}

.promo-list .menu-item > span:last-child {
  color: #1c2442;
  font-size: 19px;
}

.account-header {
  margin: -10px -12px 0;
  padding: 18px 20px 88px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(255, 89, 96, 0.2);
}

.name-line,
.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-line strong {
  display: block;
  max-width: 176px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.profile-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0;
}

.vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.vip-chip img {
  width: auto;
  height: 20px;
  max-width: 70px;
  display: block;
  object-fit: contain;
}

.vip-chip em {
  font-style: normal;
  line-height: 1;
}

.meta-line {
  margin-top: 9px;
  gap: 7px;
  font-size: 11px;
  color: #fff;
}

.uid-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb941, #ff9740);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.uid-pill strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.uid-copy-button {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.95;
}

.uid-copy-button img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.meta-line span {
  opacity: 1;
  font-weight: 700;
}

.meta-line strong {
  font-size: 12px;
  line-height: 1;
}

.last-login {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.2;
}

.balance-card {
  margin-top: -50px;
  padding: 18px 18px 18px;
}

.balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-top strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.05;
}

.chip-button {
  min-width: 108px;
  height: 38px;
}

.quick-actions {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.quick-action {
  min-height: 90px;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #fffefe, #fff8f8);
  color: var(--text);
  box-shadow: inset 0 0 0 1px #ffe7e8;
  font-size: 12px;
  padding: 12px 8px 11px;
}

.action-icon,
.service-icon,
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.action-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(255, 109, 101, 0.18);
}

.action-icon-wallet { background: linear-gradient(135deg, #ff9089, #ff6a67); }
.action-icon-deposit { background: linear-gradient(135deg, #ffb45d, #ff9254); }
.action-icon-withdraw { background: linear-gradient(135deg, #68a7ff, #7f8cff); }
.action-icon-vip { background: linear-gradient(135deg, #7be3c5, #3fc89f); }
.action-icon-history { background: linear-gradient(135deg, #ffa5a0, #ff7d76); }
.action-icon-history-alt { background: linear-gradient(135deg, #ffb160, #ff8b53); }

.quick-action span:last-child {
  line-height: 1.2;
}

.safe-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.safe-card h3,
.safe-card p {
  margin: 0;
}

.safe-card strong {
  color: #ff9c24;
}

.mini-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mini-card {
  padding: 14px;
}

.mini-card strong {
  display: block;
  font-size: 15px;
}

.mini-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #fff;
  font-style: normal;
  font-size: 11px;
}

.service-card {
  margin-top: 16px;
  padding: 16px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 8px;
  margin-top: 16px;
}

.service-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  font-size: 12px;
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--brand-strong);
  background: linear-gradient(135deg, rgba(255, 112, 110, 0.14), rgba(255, 172, 135, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 95, 100, 0.08);
}

.detail-page {
  padding-top: 0;
}

.detail-header {
  margin: -10px -12px 12px;
  min-height: calc(58px + env(safe-area-inset-top, 0px));
  padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 16px;
}

.detail-header h2 {
  margin: 0;
  font-size: 28px;
}

.detail-header strong {
  display: block;
  margin-top: 6px;
  font-size: 40px;
}

.detail-header span {
  font-size: 13px;
}

.wallet-card {
  padding: 16px;
}

.wallet-page {
  padding-top: 0;
}

.wallet-page .wallet-header {
  position: sticky;
  top: 0;
  z-index: 22;
  min-height: calc(154px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 14px 20px;
  margin: 0 -12px 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, #ff7472 0%, #ff8b85 100%);
}

.wallet-header .back-button,
.wallet-header .header-spacer {
  margin-top: calc(2px + var(--safe-top) / 2);
}

.wallet-header-center {
  flex: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.wallet-header-center h2 {
  font-size: 18px;
  font-weight: 600;
}

.wallet-header-icon-wrap {
  width: 44px;
  height: 44px;
  margin-top: 10px;
  display: grid;
  place-items: center;
}

.wallet-header-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 1;
}

.wallet-header strong {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.wallet-header span {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.wallet-page-card {
  margin-top: -2px;
  padding: 16px 12px 16px;
  border-radius: 5%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(34, 47, 88, 0.08);
}

.wallet-page-splits {
  gap: 14px;
  margin-bottom: 16px;
}

.wallet-page-ring {
  gap: 10px;
}

.wallet-page-ring span {
  width: 74px;
  height: 74px;
  border-width: 5px;
  border-color: #f1f1f1;
  background: #fff;
  color: #182247;
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.wallet-page-ring.active span {
  border-color: #ff5f67;
}

.wallet-page-ring small {
  font-size: 12px;
  line-height: 1.3;
  color: #10193b;
  text-align: center;
}

.wallet-transfer-button {
  width: 100%;
  min-height: 26px;
  margin-top: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff716d, #ff625f);
  box-shadow: none;
  font-size: 13px;
}

.wallet-action-grid {
  margin-top: 18px;
  gap: 8px;
}

.wallet-action-item {
  min-height: 70px;
  gap: 7px;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.wallet-action-item .action-icon-image-wrap {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfd, #fff5f5);
  box-shadow: 0 10px 20px rgba(255, 98, 95, 0.08);
}

.wallet-action-item .action-icon-image {
  width: 20px;
  height: 20px;
}

.wallet-action-item span:last-child {
  font-size: 11px;
  line-height: 1.25;
  color: #46527d;
}

.wallet-splits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-ring {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.wallet-ring span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 8px solid #f1f1f1;
  font-weight: 700;
}

.wallet-ring.active span {
  border-color: var(--brand-strong);
}

.wallet-actions {
  margin-top: 18px;
}

.wallet-game-cards {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.wallet-game-card {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.wallet-game-card.active {
  background: linear-gradient(180deg, #ff8178, #ff6a68);
  color: #fff;
}

.balance-banner {
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff5f64, #ff7c6e);
}

.balance-banner strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
}

.balance-banner small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.support-card,
.account-strip {
  margin-top: 12px;
  padding: 14px 16px;
}

.support-card strong {
  display: block;
  margin-bottom: 6px;
}

.channel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.channel-tabs button {
  min-height: 74px;
  border-radius: 14px;
  background: #fff;
  color: #616983;
  box-shadow: inset 0 0 0 1px #efeef6;
}

.channel-tabs .active {
  background: #fff5f5;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px #ffbdbf;
}

.form-card,
.notes-card,
.history-section {
  margin-top: 14px;
}

.form-card,
.notes-card {
  padding: 16px;
}

.amount-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.amount-button {
  min-height: 42px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px #e7e8f1;
}

.amount-entry {
  gap: 8px;
  margin-top: 14px;
  color: var(--brand-strong);
}

.balance-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}

.disabled-button {
  margin-top: 14px;
  background: #cacedc;
  color: #fff;
}

.notes-card ul {
  margin: 0;
  padding-left: 18px;
}

.notes-card li {
  margin: 8px 0;
  line-height: 1.6;
}

.history-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.history-card {
  padding: 14px 16px;
}

.history-top,
.history-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-top {
  margin-bottom: 10px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6a67, #ff8382);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.history-top strong {
  color: #1fa44a;
}

.history-line {
  padding: 4px 0;
  font-size: 13px;
}

.deposit-order-card {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef1f7;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 31, 58, 0.05);
}

.deposit-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #eef1f7;
}

.deposit-order-kind {
  min-width: 96px;
  padding: 9px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #32c38d 0%, #43c887 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.deposit-order-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.deposit-order-status em {
  font-style: normal;
  font-size: 19px;
  line-height: 1;
}

.deposit-order-status.is-pending {
  color: #74a0ef;
}

.deposit-order-status.is-success {
  color: #25b56c;
}

.deposit-order-status.is-failed {
  color: #ff5d58;
}

.deposit-order-grid {
  padding: 10px 16px 14px;
  display: grid;
  gap: 8px;
}

.deposit-order-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.deposit-order-row > span {
  color: #8c919f;
  font-size: 14px;
  font-weight: 600;
}

.deposit-order-row > strong,
.deposit-order-order-wrap strong {
  color: #5f6678;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.deposit-order-row-order {
  align-items: start;
}

.deposit-order-order-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.deposit-order-code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-order-copy {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.deposit-order-copy img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  opacity: 0.42;
}

.deposit-order-copy:active {
  transform: scale(0.95);
}

.withdraw-page {
  background: #f6f7fb;
  padding: 58px 12px 26px;
}

.withdraw-page .withdraw-sticky-head {
  position: relative;
  margin: 0 0 14px;
  padding: 0;
}

.withdraw-page .withdraw-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 22;
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 8px 18px rgba(24, 31, 58, 0.06);
}

.withdraw-page .withdraw-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.withdraw-page .withdraw-header .back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.withdraw-history-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: #141b2d;
}

.withdraw-page .withdraw-balance-banner {
  margin-top: 0;
  min-height: 122px;
  padding: 15px 18px 18px;
  border-radius: 14px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 26px rgba(255, 109, 105, 0.22);
}

.withdraw-balance-label,
.withdraw-balance-line {
  display: flex;
  align-items: center;
}

.withdraw-balance-label {
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.withdraw-balance-label img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.withdraw-balance-line {
  margin-top: 8px;
  gap: 8px;
}

.withdraw-page .withdraw-balance-banner strong {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.withdraw-page .withdraw-balance-banner small {
  display: none;
}

.withdraw-balance-refresh {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.withdraw-balance-refresh img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.withdraw-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.withdraw-method-card {
  min-height: 88px;
  padding: 10px 10px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eceff7;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  color: #626a80;
  text-align: center;
}

.withdraw-method-card.active {
  background: linear-gradient(135deg, #ff6f6f, #ff9690);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 109, 105, 0.18);
}

.withdraw-method-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.withdraw-method-icon img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.withdraw-method-card strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.withdraw-beneficiary-card,
.withdraw-card {
  margin-top: 14px;
  width: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(26, 33, 66, 0.04);
}

.withdraw-beneficiary-card {
  min-height: 88px;
  padding: 14px 16px 13px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  color: #b6bccd;
  text-align: center;
}

.withdraw-beneficiary-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.withdraw-beneficiary-icon.is-support {
  color: transparent;
}

.withdraw-beneficiary-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

.withdraw-beneficiary-card strong {
  font-size: 13px;
  font-weight: 700;
  color: #b4bbcd;
}

.withdraw-beneficiary-subtitle {
  display: block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 600;
  color: #8b93a6;
}

.withdraw-beneficiary-subtitle.is-hidden,
.withdraw-beneficiary-help.is-hidden,
.withdraw-usdt-row.is-hidden {
  display: none;
}

.withdraw-beneficiary-help {
  margin: 14px 18px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
  color: #ff6b68;
}

.withdraw-beneficiary-card.is-filled {
  position: relative;
  min-height: 68px;
  padding: 12px 34px 12px 14px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  justify-items: start;
  align-items: center;
  text-align: left;
  gap: 0 10px;
  color: #667087;
}

.withdraw-beneficiary-card.is-filled::after {
  content: "\203A";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d95aa;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.withdraw-beneficiary-card.is-filled .withdraw-beneficiary-icon {
  width: 34px;
  height: 34px;
  grid-column: 1;
  grid-row: 1;
}

.withdraw-beneficiary-card.is-filled .withdraw-beneficiary-icon img {
  width: 30px;
  height: 30px;
}

.withdraw-beneficiary-card.is-filled strong {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: #6c7387;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.withdraw-beneficiary-card.is-filled .withdraw-beneficiary-subtitle {
  grid-column: 3;
  grid-row: 1;
  width: auto;
  padding-right: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6f7890;
  white-space: nowrap;
}

.withdraw-beneficiary-card.is-filled.is-upi-filled {
  min-height: 74px;
  padding: 12px 34px 12px 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
}

.withdraw-beneficiary-card.is-filled.is-upi-filled .withdraw-beneficiary-icon {
  width: 30px;
  height: 30px;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.withdraw-beneficiary-card.is-filled.is-upi-filled .withdraw-beneficiary-icon img {
  width: 24px;
  height: 24px;
}

.withdraw-beneficiary-card.is-filled.is-upi-filled strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  font-weight: 600;
  color: #4e566d;
  align-self: center;
}

.withdraw-beneficiary-card.is-filled.is-upi-filled .withdraw-beneficiary-subtitle {
  grid-column: 1 / span 2;
  grid-row: 2;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  font-size: 13px;
  font-weight: 500;
  color: #67718a;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.withdraw-beneficiary-card.is-filled.is-usdt-filled {
  min-height: 74px;
  padding: 12px 34px 12px 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
}

.withdraw-beneficiary-card.is-filled.is-usdt-filled .withdraw-beneficiary-icon {
  width: 30px;
  height: 30px;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.withdraw-beneficiary-card.is-filled.is-usdt-filled .withdraw-beneficiary-icon img {
  width: 26px;
  height: 26px;
}

.withdraw-beneficiary-card.is-filled.is-usdt-filled strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 600;
  color: #4e566d;
  align-self: center;
}

.withdraw-beneficiary-card.is-filled.is-usdt-filled .withdraw-beneficiary-subtitle {
  grid-column: 1 / span 2;
  grid-row: 2;
  width: 100%;
  padding-right: 0;
  font-size: 12px;
  font-weight: 500;
  color: #67718a;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.withdraw-bank-page,
.withdraw-bank-list-page {
  --withdraw-bank-head-space: 58px;
  background: #f6f7fb;
}

.withdraw-bank-page {
  padding: calc(var(--withdraw-bank-head-space) + 10px) 14px calc(90px + env(safe-area-inset-bottom));
}

.withdraw-bank-list-page {
  padding: calc(var(--withdraw-bank-head-space) + 62px) 14px 24px;
}

.withdraw-bank-sticky-head,
.withdraw-bank-list-sticky-head {
  position: relative;
  margin: 0;
}

.withdraw-bank-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 26;
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 8px 18px rgba(24, 31, 58, 0.06);
}

.withdraw-bank-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #131a2a;
}

.withdraw-bank-header .back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.withdraw-bank-notice {
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ea5b62;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(25, 31, 56, 0.04);
}

.withdraw-bank-notice-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  border: 1.5px solid #f3aab1;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}

.withdraw-bank-form-wrap {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.withdraw-bank-field-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #151b2b;
  font-size: 15px;
  font-weight: 600;
}

.withdraw-bank-field-head img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.withdraw-bank-select-button,
.withdraw-bank-input-wrap {
  min-height: 54px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(24, 31, 58, 0.04);
}

.withdraw-bank-select-button {
  margin-top: -2px;
  padding: 0 18px;
  border: 0;
  width: 100%;
  background: linear-gradient(90deg, #ff6f70 0%, #ff908a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.withdraw-bank-select-button strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.withdraw-bank-input-wrap {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.withdraw-bank-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d2436;
  font-size: 15px;
  font-weight: 500;
}

.withdraw-bank-input-wrap input::placeholder {
  color: #c5cada;
  font-weight: 500;
}

.withdraw-bank-save-bar {
  position: sticky;
  bottom: 0;
  margin-top: 22px;
  padding-top: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 4px);
  background: linear-gradient(180deg, rgba(246, 247, 251, 0) 0%, #f6f7fb 24%, #f6f7fb 100%);
}

.withdraw-bank-save-button {
  width: 100%;
  height: 52px;
  margin: 0 !important;
  border-radius: 24px;
  border: 0;
  background: #ccd0df;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.withdraw-bank-save-button.active {
  background: linear-gradient(90deg, #ff6f70 0%, #ff908a 100%);
  box-shadow: 0 12px 24px rgba(255, 111, 112, 0.22);
}

.withdraw-bank-list-sticky-head {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 26;
  background: #f6f7fb;
  padding: 0 14px 12px;
}

.withdraw-bank-list-page .withdraw-bank-header {
  position: relative;
  left: auto;
  transform: none;
  width: calc(100% + 28px);
  margin: 0 -14px;
}

.withdraw-bank-search-wrap {
  margin-top: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(24, 31, 58, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}

.withdraw-bank-search-wrap img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.withdraw-bank-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d2436;
  font-size: 15px;
  font-weight: 500;
}

.withdraw-bank-search-wrap input::placeholder {
  color: #c3c9d8;
  font-weight: 600;
}

.withdraw-bank-list-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 31, 58, 0.04);
  overflow: hidden;
}

.withdraw-bank-list-title {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f2f8;
  color: #697288;
  font-size: 15px;
  font-weight: 600;
}

.withdraw-bank-option-list {
  display: grid;
}

.withdraw-bank-option {
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  border-top: 1px solid #f4f5fa;
  background: #fff;
  text-align: left;
  color: #6b7387;
  font-size: 15px;
  font-weight: 600;
}

.withdraw-bank-option:first-child {
  border-top: 0;
}

.withdraw-bank-option.active {
  color: #ff6b68;
}

.withdraw-bank-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #b6bdcd;
  font-size: 14px;
  font-weight: 600;
}

.withdraw-bank-account-page {
  background: #f6f7fb;
  padding: 58px 14px 24px;
}

.withdraw-bank-account-page .withdraw-bank-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
}

.withdraw-bank-account-card,
.withdraw-bank-account-add-card {
  margin-top: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(24, 31, 58, 0.04);
}

.withdraw-bank-account-card {
  overflow: hidden;
}

.withdraw-bank-account-band {
  height: 28px;
  background: linear-gradient(90deg, #ff6f70 0%, #ff908a 100%);
}

.withdraw-bank-account-grid {
  padding: 8px 10px 0;
}

.withdraw-bank-account-row {
  min-height: 30px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: #f8f8fb;
  color: #6c7490;
  font-size: 12px;
  font-weight: 500;
}

.withdraw-bank-account-row + .withdraw-bank-account-row {
  margin-top: 2px;
}

.withdraw-bank-account-row strong {
  color: #67708b;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.withdraw-bank-account-selected {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #343c4c;
  font-size: 13px;
  font-weight: 600;
}

.withdraw-bank-account-selected-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff615f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.withdraw-bank-account-add-card {
  width: 100%;
  min-height: 86px;
  padding: 14px 16px;
  border: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.withdraw-bank-account-add-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.withdraw-bank-account-add-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  opacity: 0.72;
}

.withdraw-bank-account-add-card strong {
  font-size: 13px;
  font-weight: 600;
  color: #c0c6d7;
}

.withdraw-bank-account-support {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid #f3b1ae;
  background: #fff;
  color: #f06b68;
  font-size: 14px;
  font-weight: 600;
}

.withdraw-upi-method-page,
.withdraw-upi-form-page {
  background: #f6f7fb;
}

.withdraw-upi-method-page {
  padding: 58px 0 calc(76px + env(safe-area-inset-bottom));
}

.withdraw-upi-form-page {
  padding: 58px 14px calc(90px + env(safe-area-inset-bottom));
}

.withdraw-upi-method-page .withdraw-bank-header,
.withdraw-upi-form-page .withdraw-bank-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
}

.withdraw-upi-method-empty {
  min-height: 320px;
  padding: 34px 22px 0;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.withdraw-upi-method-empty img {
  width: 204px;
  height: auto;
  opacity: 0.56;
}

.withdraw-upi-method-empty strong {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.withdraw-upi-method-empty.is-hidden,
.withdraw-upi-method-card.is-hidden {
  display: none;
}

.withdraw-upi-method-card {
  margin: 12px 14px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(24, 31, 58, 0.04);
}

.withdraw-upi-method-card-band {
  height: 28px;
  background: linear-gradient(90deg, #1a58cf 0%, #1c62db 100%);
}

.withdraw-upi-method-card-body {
  padding: 12px 14px 8px;
  display: grid;
  gap: 8px;
}

.withdraw-upi-method-line {
  display: grid;
  gap: 2px;
}

.withdraw-upi-method-line span {
  color: #7f879b;
  font-size: 13px;
  font-weight: 500;
}

.withdraw-upi-method-line strong {
  color: #5f6d91;
  font-size: 15px;
  font-weight: 500;
  word-break: break-word;
}

.withdraw-upi-method-current {
  min-height: 40px;
  padding: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667087;
  font-size: 12px;
  font-weight: 500;
}

.withdraw-upi-method-current-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff615f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.withdraw-upi-add-button {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  height: calc(56px + env(safe-area-inset-bottom));
  padding: 0 0 env(safe-area-inset-bottom);
  border: 0;
  background: linear-gradient(90deg, #ff6261 0%, #ff7d7b 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.withdraw-upi-form-wrap {
  padding-top: 8px;
  display: grid;
  gap: 14px;
}

.withdraw-upi-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #101827;
}

.withdraw-upi-form-title img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.withdraw-upi-form-title strong {
  font-size: 18px;
  font-weight: 700;
}

.withdraw-upi-note {
  margin: -10px 0 4px;
  color: #ff5e5b;
  font-size: 11px;
  line-height: 1.45;
}

.withdraw-usdt-method-card-band {
  background: linear-gradient(90deg, #00a67d 0%, #0bb08a 100%);
}

.withdraw-usdt-method-card .withdraw-upi-method-current {
  color: #556179;
}

.withdraw-usdt-otp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: stretch;
}

.withdraw-usdt-otp-input-wrap {
  min-height: 52px;
}

.withdraw-usdt-otp-action {
  min-height: 52px;
  border-radius: 8px;
  border: 0;
  background: #cfd4e2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.withdraw-usdt-otp-action.is-verified {
  background: #24b56d;
}

.withdraw-usdt-otp-note {
  min-height: 16px;
  margin: -6px 0 2px;
  color: #ff6a68;
  font-size: 11px;
  line-height: 1.4;
}

.withdraw-usdt-otp-note.is-success {
  color: #24b56d;
}

.withdraw-card {
  padding: 16px;
}

.withdraw-form-card {
  position: relative;
  overflow: visible;
}

.withdraw-section-head {
  display: none;
}

.withdraw-preset-grid.hidden {
  display: none;
}

.withdraw-amount-entry {
  min-height: 48px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f7f8ff;
  box-shadow: inset 0 0 0 1px #eef1f8;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.withdraw-entry-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.withdraw-entry-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #d8ddea;
}

.withdraw-entry-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.withdraw-amount-entry input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: #46506a;
}

.withdraw-amount-entry input::placeholder {
  color: #ff6f6d;
  opacity: 0.86;
  font-size: 13px;
}

.withdraw-usdt-row input {
  color: #ff6a67;
}

.withdraw-summary-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #646d84;
  font-size: 12px;
  font-weight: 700;
}

.withdraw-summary-row strong {
  color: #f3a23d;
  font-size: 13px;
  font-weight: 800;
}

.app-standard-modal-card {
  width: min(calc(100% - 36px), 320px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 16, 32, 0.28);
  overflow: hidden;
  position: relative;
}

.withdraw-sheet-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.withdraw-sheet-popup.hidden {
  display: none;
}

.withdraw-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 21, 34, 0.48);
}

.withdraw-sheet {
  position: relative;
  z-index: 1;
  width: var(--mobile-frame);
  max-width: 100vw;
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -14px 34px rgba(17, 24, 39, 0.14);
}

.withdraw-password-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #f1f3f8;
}

.withdraw-password-sheet-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.withdraw-password-sheet-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7d74 0%, #ff5f60 100%);
}

.withdraw-password-sheet-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.withdraw-password-sheet-title strong {
  display: block;
  color: #1a2440;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.withdraw-password-sheet-close {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 999px;
  background: #f3f5fa;
  color: #8a93a8;
  font-size: 22px;
  line-height: 1;
}

.withdraw-password-sheet-body {
  padding: 16px 18px 14px;
}

.withdraw-password-sheet-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #ff6667;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.withdraw-password-sheet-prompt img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  object-fit: contain;
}

.withdraw-password-entry {
  min-height: 46px;
  padding: 0 10px 0 12px;
  border-radius: 12px;
  background: #fff8e8;
  box-shadow: inset 0 0 0 1px #f2e2c8;
}

.withdraw-password-entry input {
  background: transparent;
}

.withdraw-password-entry input::placeholder {
  color: #b7a48d;
}

.withdraw-password-note {
  margin: 10px 0 0;
  color: #ff6767;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}

.withdraw-password-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.withdraw-password-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #667596;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.withdraw-password-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-top: 1px solid #f1e3e2;
}

.withdraw-password-cancel,
.withdraw-password-confirm {
  min-width: 0;
  height: 50px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
}

.withdraw-password-cancel {
  background: #fff;
  color: #ff6667;
  border-right: 1px solid #f1e3e2;
}

.withdraw-password-confirm {
  background: linear-gradient(180deg, #ff7f79 0%, #ff6767 100%);
  color: #fff;
  box-shadow: none;
}

.withdraw-success-card {
  padding: 52px 24px 24px;
  text-align: center;
  overflow: visible;
}

.withdraw-success-hero {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 118px;
  pointer-events: none;
}

.withdraw-success-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
}

.withdraw-success-title {
  margin: 0;
  color: #1a2440;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.withdraw-success-copy {
  margin: 12px 0 0;
  color: #7b8098;
  font-size: 13px;
  line-height: 1.55;
}

.withdraw-success-confirm {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #ff5f60 0%, #ff8d7f 100%);
  box-shadow: 0 8px 18px rgba(255, 95, 96, 0.24);
}

.withdraw-all-chip {
  min-width: 68px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1.5px solid #efb3b0;
  background: #fff;
  color: #ef6d69;
  font-size: 13px;
  font-weight: 800;
}

.withdraw-submit-button {
  margin-top: 14px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  background: #ccd0df;
}

.withdraw-submit-button.active {
  background: linear-gradient(135deg, #ff6d6b, #ff928d);
  box-shadow: 0 12px 24px rgba(255, 109, 105, 0.2);
}

.withdraw-rules-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.withdraw-rules-card li {
  position: relative;
  padding-left: 16px;
  color: #5e6679;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.withdraw-rules-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: #ff6969;
  transform: rotate(45deg);
}

.withdraw-rule-hot {
  color: #ff6a68;
  font-weight: 800;
}

.withdraw-rule-rollover {
  color: #ff5a58;
  font-weight: 900;
}

.withdraw-inline-history {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.withdraw-history-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.withdraw-history-head img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.withdraw-history-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #101827;
}

.withdraw-inline-history .history-list {
  margin-top: 0;
}

.withdraw-inline-history .deposit-history-empty {
  padding: 8px 0 0;
}

.withdraw-inline-history .deposit-history-empty img {
  width: 152px;
  opacity: 0.82;
}

.withdraw-inline-history .deposit-history-empty span {
  margin-top: 12px;
  color: #c3c8d8;
  font-size: 14px;
  font-weight: 700;
}

.withdraw-history-more {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid #f2b8b5;
  background: #fff;
  color: #f06d69;
  font-size: 15px;
  font-weight: 700;
}

.withdraw-inline-history .history-card,
.deposit-inline-history .history-card,
#page-withdraw-history .history-card,
#page-deposit-history .history-card {
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf0f7;
  padding: 12px 14px;
}

#page-withdraw-history,
#page-deposit-history {
  background: #f6f7fb;
  padding: 8px 12px 24px;
}

#page-withdraw-history .plain-header,
#page-deposit-history .plain-header {
  margin: 0 0 12px;
  padding: 4px 2px 10px;
}

#page-withdraw-history .plain-header h2,
#page-deposit-history .plain-header h2 {
  font-size: 18px;
  font-weight: 500;
}

#page-withdraw-history .account-detail-history,
#page-deposit-history .account-detail-history {
  margin-top: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

#page-withdraw-history .history-list,
#page-deposit-history .history-list {
  margin-top: 0;
  gap: 12px;
}

.withdraw-inline-history .history-top,
.deposit-inline-history .history-top,
#page-withdraw-history .history-top,
#page-deposit-history .history-top {
  margin-bottom: 10px;
}

.withdraw-inline-history .status-pill,
.deposit-inline-history .status-pill,
#page-withdraw-history .status-pill,
#page-deposit-history .status-pill {
  min-height: 22px;
  padding: 0 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff706f, #ff9289);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.withdraw-inline-history .history-top strong,
.deposit-inline-history .history-top strong,
#page-withdraw-history .history-top strong,
#page-deposit-history .history-top strong {
  font-size: 12px;
  font-weight: 800;
}

.withdraw-inline-history .history-line,
.deposit-inline-history .history-line,
#page-withdraw-history .history-line,
#page-deposit-history .history-line {
  min-height: 28px;
  font-size: 11px;
  color: #63708a;
}

.withdraw-inline-history .history-line span:first-child,
.deposit-inline-history .history-line span:first-child,
#page-withdraw-history .history-line span:first-child,
#page-deposit-history .history-line span:first-child {
  color: #8e96aa;
  font-weight: 700;
}

.withdraw-order-card {
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
  border: 1px solid #eef1f7;
  background: #fff;
  box-shadow: none !important;
}

.withdraw-order-head {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f3f8;
}

.withdraw-order-kind {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff706f, #ff948d);
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.withdraw-order-status {
  font-size: 12px;
  font-weight: 700;
}

.withdraw-order-status.is-success {
  color: #25b56c;
}

.withdraw-order-status.is-failed {
  color: #ff5c57;
}

.withdraw-order-status.is-pending {
  color: #c97c37;
}

.withdraw-order-grid {
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

.withdraw-order-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.withdraw-order-row > span {
  color: #8f95a6;
  font-size: 11px;
  font-weight: 500;
}

.withdraw-order-row > strong,
.withdraw-order-order-wrap strong,
.withdraw-order-remarks {
  color: #5f6678;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.withdraw-order-row:first-child strong {
  color: #e6a13a;
  font-weight: 700;
}

.withdraw-order-order-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.withdraw-order-code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-order-copy {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.withdraw-order-copy img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  opacity: 0.38;
}

.withdraw-order-row-remarks .withdraw-order-remarks {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #f1f3fb;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  line-height: 1.45;
  color: #7b88a0;
  white-space: pre-wrap;
}

.withdraw-order-row-remarks {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}

.withdraw-order-row-remarks > span {
  text-align: left;
}

.deposit-history-card .withdraw-order-kind {
  background: linear-gradient(135deg, #32c38d 0%, #43c887 100%);
}

.deposit-history-card .withdraw-order-status.is-pending {
  color: #74a0ef;
}

#page-withdraw .withdraw-inline-history {
  margin-top: 16px;
}

#page-withdraw-history .history-list {
  margin-top: 0;
  gap: 10px;
}

.deposit-methods {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.deposit-method,
.channel-card {
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: inset 0 0 0 1px #f0f1f7;
  text-align: left;
}

.deposit-method.active,
.channel-card {
  background: linear-gradient(135deg, #ff756f, #ff9489);
  color: #fff;
}

.deposit-method strong,
.channel-card strong {
  display: block;
}

.deposit-method span,
.channel-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.method-line {
  margin: 14px 0 0;
}

#page-deposit {
  --deposit-head-space: 58px;
  --deposit-bar-space: 82px;
  background: #f6f7fb;
  padding: calc(var(--deposit-head-space) + 10px) 12px calc(var(--deposit-bar-space) + 18px + env(safe-area-inset-bottom));
}

.deposit-page .deposit-sticky-head {
  position: relative;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
}

.deposit-page .deposit-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 22;
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 8px 18px rgba(24, 31, 58, 0.06);
}

.deposit-page .deposit-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.deposit-page .deposit-header .back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.deposit-history-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 600;
  color: #131927;
}

.deposit-history-link img {
  width: 14px;
  height: 14px;
  display: none;
}

.deposit-page .deposit-balance-banner {
  margin-top: 0;
  min-height: 122px;
  padding: 15px 18px 18px;
  border-radius: 14px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 26px rgba(255, 109, 105, 0.22);
}

.deposit-balance-label,
.deposit-balance-line {
  display: flex;
  align-items: center;
}

.deposit-balance-label {
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.deposit-balance-label img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.deposit-page .deposit-balance-banner strong {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.deposit-page .deposit-balance-banner small {
  display: none;
}

.deposit-balance-line {
  margin-top: 8px;
  gap: 8px;
}

.deposit-balance-refresh {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.deposit-balance-refresh img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.deposit-balance-refresh:active {
  transform: scale(0.94);
}

.deposit-methods-turbo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.deposit-method-card {
  position: relative;
  min-height: 94px;
  padding: 12px 10px 11px;
  border-radius: 8px;
  border: 1px solid #eceff6;
  background: #fff;
  box-shadow: 0 10px 18px rgba(25, 31, 56, 0.05);
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 7px;
  text-align: left;
  overflow: visible;
}

.deposit-method-card.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #ff8f89 0%, #ff6965 100%);
  box-shadow: 0 14px 26px rgba(255, 112, 110, 0.26);
}

.deposit-method-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.deposit-method-copy {
  display: grid;
  gap: 4px;
  width: 100%;
}

.deposit-method-card strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.deposit-method-card small {
  font-size: 10px;
  font-weight: 700;
  color: #ff655f;
  opacity: 1;
}

.deposit-method-card.active small {
  color: rgba(255, 255, 255, 0.95);
}

.deposit-method-range {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #6b7280;
}

.deposit-method-card.active .deposit-method-range,
.deposit-method-card.active strong {
  color: #fff;
}

.deposit-method-badge {
  position: absolute;
  top: -20px;
  right: -10px;
  width: 58px;
  height: 58px;
  display: block;
  z-index: 3;
}

.deposit-method-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(255, 93, 89, 0.22));
}

.deposit-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef1f6;
  box-shadow: 0 10px 22px rgba(28, 34, 66, 0.05);
}

.deposit-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.deposit-section-head img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.deposit-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.deposit-channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deposit-channel-list.single-route {
  grid-template-columns: 1fr;
}

.deposit-route-card {
  width: 100%;
  display: block;
  min-height: 78px;
  padding: 13px 12px;
  border-radius: 8px;
  border: 1px solid #eceef4;
  background: #fff;
  color: #111827;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.deposit-route-card.active {
  border-color: transparent;
  background: linear-gradient(180deg, #ff8882 0%, #ff6c68 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 112, 110, 0.22);
}

.deposit-route-card strong,
.deposit-route-card span,
.deposit-route-card small {
  display: block;
}

.deposit-route-card strong {
  font-size: 14px;
  font-weight: 700;
}

.deposit-route-card span,
.deposit-route-card small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.deposit-route-meta {
  color: #61697d;
}

.deposit-route-card small {
  font-weight: 700;
  color: #ff655f;
}

.deposit-route-card.active .deposit-route-meta,
.deposit-route-card.active .deposit-route-bonus {
  color: rgba(255, 255, 255, 0.96);
}

.deposit-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.deposit-amount-button {
  min-height: 42px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #e5e7ef;
  background: #fff;
  color: #ff5c57;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.deposit-amount-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #ff8984 0%, #ff6764 100%);
  box-shadow: 0 10px 18px rgba(255, 104, 99, 0.22);
  transform: translateY(-1px);
}

.deposit-amount-button-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.deposit-chip-currency {
  color: #ff4f57;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.deposit-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deposit-chip-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.deposit-chip-value {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.deposit-amount-button.active .deposit-chip-currency,
.deposit-amount-button.active .deposit-chip-value {
  color: #fff;
}

.deposit-amount-button:not(.active) .deposit-chip-currency,
.deposit-amount-button:not(.active) .deposit-chip-value {
  color: #ff5c57;
}

.deposit-amount-entry {
  display: grid;
  grid-template-columns: 18px 1fr 20px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e8ebf4;
  background: #fff;
  color: #ff5c57;
}

.deposit-convert-row.hidden {
  display: none !important;
}

.deposit-amount-entry:focus-within {
  border-color: #ffb1ae;
  box-shadow: 0 0 0 2px rgba(255, 108, 104, 0.08);
}

.deposit-amount-entry.active {
  border-color: #ffb8b4;
  background: #fff4f4;
  box-shadow: 0 0 0 1px rgba(255, 105, 101, 0.08);
}

.deposit-entry-icon {
  display: grid;
  place-items: center;
}

.deposit-entry-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(29%) sepia(95%) saturate(2978%) hue-rotate(340deg) brightness(106%) contrast(98%);
}

.deposit-entry-icon img.crypto-icon {
  filter: none;
}

.deposit-amount-entry input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.deposit-amount-entry.active input {
  color: #ff5d58;
  font-weight: 800;
}

.deposit-amount-entry input::placeholder {
  color: #b7bccb;
}

.deposit-entry-clear {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
}

.deposit-entry-clear.active {
  opacity: 1;
  pointer-events: auto;
}

.deposit-entry-clear img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  opacity: 0.86;
}

.deposit-entry-clear.active img {
  opacity: 1;
}

.deposit-convert-row {
  margin-top: 10px;
  min-height: 48px;
  background: #f8f8ff;
  border-color: #eef0f8;
  grid-template-columns: 18px 1fr;
}

.deposit-convert-row input {
  font-size: 15px;
  font-weight: 700;
  color: #8e97ae;
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
  cursor: default;
}

.deposit-convert-display {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.deposit-convert-display.is-empty {
  color: #b7bccb;
}

.deposit-convert-display.has-value {
  color: #8e97ae;
}

.deposit-convert-row .deposit-entry-icon img,
.deposit-amount-entry .deposit-entry-icon img[src*='deposit-rupee-icon'] {
  filter: hue-rotate(-20deg) saturate(1.8);
}

.deposit-convert-row .deposit-entry-icon {
  position: relative;
}

.deposit-convert-row .deposit-entry-icon::after,
#page-deposit.deposit-crypto-mode .deposit-amount-entry:not(.deposit-convert-row) .deposit-entry-icon::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: #d9deea;
}

#page-deposit.deposit-crypto-mode .deposit-amount-entry:not(.deposit-convert-row) {
  background: #f8f8ff;
  border-color: #eef0f8;
}

#page-deposit.deposit-crypto-mode .deposit-amount-entry:not(.deposit-convert-row) input {
  color: #ff5d58;
  font-weight: 800;
}

#page-deposit.deposit-crypto-mode .deposit-amount-entry:not(.deposit-convert-row).active,
.deposit-convert-row.active {
  border-color: #ffd8d6;
  background: #fff5f5;
}

#page-deposit.deposit-crypto-mode .deposit-amount-entry:not(.deposit-convert-row).active input {
  color: #ff5d58;
}

.deposit-convert-row.active input {
  color: #9ea6bb;
  font-weight: 700;
}

.deposit-instructions-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.deposit-instructions-card li {
  position: relative;
  padding-left: 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5d6479;
}

.deposit-instructions-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: #ff6c68;
}

.deposit-submit-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  bottom: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #edf0f7;
  background: #fff;
  box-shadow: 0 -8px 18px rgba(18, 27, 54, 0.08);
}

.deposit-submit-bar.active {
  box-shadow: 0 -8px 20px rgba(255, 101, 95, 0.1);
}

.deposit-submit-meta {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 0;
}

.deposit-submit-meta span {
  font-size: 11px;
  font-weight: 600;
  color: #5d6479;
}

.deposit-submit-meta strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-submit-button {
  margin-top: 0 !important;
  min-width: 116px;
  width: auto;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #cfd5e2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: background 160ms ease, box-shadow 160ms ease, min-width 160ms ease, color 160ms ease;
}

.deposit-submit-button.active {
  background: linear-gradient(135deg, #ff6f6b 0%, #ff8a7e 100%);
  box-shadow: 0 10px 18px rgba(255, 103, 99, 0.24);
  min-width: 170px;
}

#page-deposit:has(#deposit-input:not(:placeholder-shown)) .deposit-submit-bar {
  box-shadow: 0 -8px 20px rgba(255, 101, 95, 0.1);
}

#page-deposit:has(#deposit-input:not(:placeholder-shown)) .deposit-submit-button {
  background: linear-gradient(135deg, #ff6f6b 0%, #ff8a7e 100%);
  box-shadow: 0 10px 18px rgba(255, 103, 99, 0.24);
  min-width: 170px;
  color: #fff;
}

#page-deposit:has(#deposit-input:not(:placeholder-shown)) .deposit-amount-entry:not(.deposit-convert-row) {
  border-color: #ffb8b4;
  background: #fff4f4;
  box-shadow: 0 0 0 1px rgba(255, 105, 101, 0.08);
}

#page-deposit:has(#deposit-input:not(:placeholder-shown)) .deposit-amount-entry:not(.deposit-convert-row) input {
  color: #ff5d58;
  font-weight: 800;
}

.deposit-history-link span {
  font-size: 12px;
  white-space: nowrap;
}

.deposit-inline-history {
  padding-bottom: 20px;
}

.deposit-history-list {
  min-height: 144px;
}

.deposit-history-empty {
  min-height: 144px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  color: #b7bccb;
  text-align: center;
}

.deposit-history-empty img {
  width: 132px;
  max-width: 68%;
  height: auto;
  opacity: 0.56;
}

.deposit-history-empty span {
  font-size: 14px;
  font-weight: 600;
  color: #b7bccb;
}

#page-deposit.deposit-crypto-mode .deposit-amount-entry {
  grid-template-columns: 18px 1fr 20px;
}

#page-deposit.deposit-crypto-mode .deposit-convert-row {
  grid-template-columns: 18px 1fr;
  display: grid !important;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: transparent;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 7px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
  overflow: visible;
}

.bottom-nav-bg {
  position: absolute;
  top: -6px;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 6px);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  filter: drop-shadow(0 -8px 18px rgba(22, 27, 50, 0.07));
}

.bottom-nav > .nav-item {
  position: relative;
  z-index: 1;
}

.bottom-nav.nav-hidden {
  display: none;
}

.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  color: #7a839f;
  font-size: 11px;
  line-height: 1;
}

.nav-icon {
  width: 22px;
  height: 22px;
}

.nav-icon-image-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.76;
  filter: grayscale(0.1);
}

.nav-item.active {
  color: var(--brand-strong);
}

.nav-item.active .nav-icon-image {
  opacity: 1;
  filter: none;
}

.nav-center {
  position: relative;
  z-index: 4;
  margin-top: 0;
  min-height: 58px;
  align-content: end;
  justify-items: center;
  gap: 0;
  color: var(--brand-strong);
  font-weight: 700;
  overflow: visible;
}

.nav-center-stack {
  position: relative;
  width: 100px;
  height: 72px;
  margin-top: -26px;
}

.nav-center-wheel-stage {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 85px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.nav-center-wheel {
  width: 85px;
  height: 85px;
  object-fit: contain;
  display: block;
}

.nav-center-chip {
  position: absolute;
  top: 43px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  bottom: -2px;
  background: #fff;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  border: 0;
  box-shadow: none;
  outline: none;
}

.nav-center-label {
  position: relative;
  z-index: 4;
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-strong);
  white-space: nowrap;
  transform: translateY(-23%);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 22, 32, 0.45);
  padding: 24px;
  z-index: 40;
}

body.app-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.app-modal-open .phone-frame,
body.app-modal-open .app-screen,
body.app-modal-open .page-stack,
body.app-modal-open .page.active {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.app-modal-open .app-screen,
body.app-modal-open .bottom-nav,
body.app-modal-open #page-home .white-topbar,
body.app-modal-open .home-sticky-shortcuts {
  pointer-events: none !important;
}

.modal.hidden,
.toast.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(100%, 290px);
  border-radius: 22px;
  background: #fff;
  padding: 44px 24px 24px;
  text-align: center;
}

.modal-check {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
}

.modal-card h3 {
  margin: 0;
  font-size: 32px;
}

.modal-card p {
  margin: 12px 0 0;
  color: #7b8098;
}

#reward-modal {
  background: rgba(24, 29, 44, 0.5);
}

#login-entry-modal-bonus,
#login-entry-modal-upi,
#login-entry-modal-welcome,
#session-kick-modal,
#logout-confirm-modal,
#withdraw-success-modal {
  background: rgba(18, 22, 34, 0.72);
  backdrop-filter: blur(5px);
}

.modal:not(.hidden) {
  z-index: 120;
  pointer-events: auto;
  touch-action: auto;
}

.login-info-modal-card {
  width: min(calc(100% - 20px), 312px);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 26px 66px rgba(10, 16, 32, 0.34);
}

/* Login/register entry popups — fixed shell (bonus -> upi -> welcome) */
:root {
  --login-entry-modal-width: min(calc(100% - 20px), 312px);
  --login-entry-modal-height: 420px;
}

.login-entry-modal-card {
  width: var(--login-entry-modal-width);
  height: var(--login-entry-modal-height);
  max-height: min(78dvh, var(--login-entry-modal-height));
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 26px 66px rgba(10, 16, 32, 0.34);
}

.login-entry-modal-head,
.login-entry-modal-foot {
  flex-shrink: 0;
  text-align: center;
  background: linear-gradient(180deg, #ff6a70 0%, #ff585f 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.login-entry-modal-head {
  padding: 11px 16px 10px;
}

.login-entry-modal-head strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.login-entry-modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 12px;
  background: #fff;
}

.login-entry-modal-scroll--banner {
  padding: 0;
  background: #fff;
}

.login-entry-modal-body {
  padding: 12px 14px 14px;
  background: #fff;
}

.login-entry-modal-scroll--welcome {
  display: grid;
  gap: 16px;
  text-align: center;
  align-content: start;
}

.login-entry-modal-foot {
  padding: 0;
}

.login-entry-modal-foot--dual {
  display: flex;
  flex-direction: column;
}

.login-entry-modal-foot--dual .login-entry-modal-confirm + .login-entry-modal-confirm {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.login-entry-modal-foot .login-entry-modal-confirm.primary-button {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 11px 16px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.login-entry-modal-foot .login-entry-modal-confirm.primary-button:active {
  background: rgba(0, 0, 0, 0.08);
}

.login-entry-modal-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #1a0506;
  vertical-align: top;
}

.login-entry-modal-scroll--banner .login-entry-modal-banner {
  border-radius: 0;
}

.login-entry-modal-text,
.login-entry-modal-scroll--welcome p {
  margin: 0;
  color: #1d2742;
  font-size: 14px;
  line-height: 1.48;
}

.login-entry-modal-lead {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.login-entry-modal-quote {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.login-entry-modal-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76px;
  padding: 4px 0 0;
}

.login-entry-modal-logo {
  display: block;
  max-width: 100%;
  width: 190px;
  height: auto;
  object-fit: contain;
}

.login-entry-modal-caption {
  margin: 0 0 10px;
  text-align: center;
  color: #1d2742;
  font-size: 15px;
  font-weight: 700;
}

.login-entry-modal-reminder {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff2f0;
  color: #293249;
  font-size: 12px;
  line-height: 1.35;
}

.login-entry-modal-reminder span {
  position: relative;
  display: block;
  padding-left: 14px;
}

.login-entry-modal-reminder span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ff5d63;
}

.login-info-modal-head {
  padding: 14px 18px 13px;
  text-align: center;
  background: linear-gradient(180deg, #ff6a70 0%, #ff585f 100%);
  color: #fff;
}

.login-info-modal-head strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-info-modal-body {
  padding: 16px 16px 12px;
  background: #fff;
}

.login-info-modal-body--welcome {
  display: grid;
  gap: 16px;
  text-align: center;
  min-height: 250px;
  align-content: start;
  background: #fff;
}

.login-info-modal-welcome-hero {
  display: none;
}

.login-info-modal-welcome-kicker {
  display: inline-flex;
  align-self: center;
  justify-self: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-info-modal-welcome-hero strong {
  font-size: 21px;
  line-height: 1.12;
  font-weight: 800;
}

.login-info-modal-welcome-subline {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.login-info-modal-body--welcome p {
  margin: 0;
  color: #1d2742;
  font-size: 14px;
  line-height: 1.48;
}

.login-info-modal-lead {
  padding-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.login-info-modal-quote {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.login-info-modal-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76px;
  padding: 4px 0 0;
}

.login-info-modal-logo {
  display: block;
  max-width: 100%;
  width: 190px;
  height: auto;
  object-fit: contain;
}


.session-kick-modal-head {
  background: linear-gradient(180deg, #ff6a70 0%, #ff4d57 100%);
}

.session-kick-modal-body {
  display: grid;
  gap: 10px;
  text-align: center;
  min-height: 170px;
  align-content: center;
  padding: 22px 18px 18px;
}

.session-kick-modal-body p {
  margin: 0;
  color: #27304a;
  font-size: 14px;
  line-height: 1.55;
}

.account-logout-button {
  width: 100%;
  height: 56px;
  margin-top: 18px;
  border-radius: 999px;
  border: 1.5px solid #ff6a70;
  background: #fff;
  color: #ff5f60;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.account-logout-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.logout-confirm-card {
  padding: 28px 22px 22px;
  text-align: center;
}

.logout-confirm-icon-wrap {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logout-confirm-icon-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.logout-confirm-text {
  margin: 0 0 22px;
  color: #1a2440;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.logout-confirm-actions {
  display: grid;
  gap: 12px;
}

.logout-confirm-primary,
.logout-confirm-secondary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.logout-confirm-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #ff7d74 0%, #ff5f60 100%);
  box-shadow: 0 8px 18px rgba(255, 95, 96, 0.28);
}

.logout-confirm-secondary {
  border: 1.5px solid #ff7b73;
  background: #fff;
  color: #ff635f;
}

.login-info-modal-body--banner {
  min-height: 0;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, #fffefe 0%, #fff7f4 100%);
}

.login-info-modal-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(25, 34, 60, 0.12);
  background: #320507;
}

.login-info-modal-caption {
  margin-top: 12px;
  text-align: center;
  color: #1d2742;
  font-size: 15px;
  font-weight: 700;
}

.login-info-modal-reminder {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff2f0;
  color: #293249;
  font-size: 12px;
  line-height: 1.35;
}

.login-info-modal-reminder span {
  position: relative;
  display: block;
  padding-left: 14px;
}

.login-info-modal-reminder span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ff5d63;
}

.login-info-modal-foot {
  padding: 0 16px 16px;
  background: #fff;
}

.login-info-modal-confirm {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

#reward-modal .reward-modal-card {
  width: min(100%, 278px);
  border-radius: 18px;
  padding: 50px 22px 16px;
  box-shadow: 0 18px 48px rgba(16, 22, 44, 0.18);
  overflow: visible;
}

#reward-modal .modal-check {
  width: 120px;
  height: 120px;
  margin: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -46%);
}

#reward-modal h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  color: #1e2a4a;
  letter-spacing: -0.02em;
}

#reward-modal .reward-modal-copy {
  width: 176px;
  margin: 8px auto 0;
  font-size: 11px;
  line-height: 1.24;
  color: #7180a4;
}

#reward-modal .reward-modal-amount {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #66718d;
}

#reward-modal .reward-modal-amount strong {
  color: #ff9839;
  font-size: 15px;
  font-weight: 700;
}

#reward-modal .reward-receive-button {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

#first-deposit-modal {
  background: rgba(18, 22, 34, 0.72);
  backdrop-filter: blur(5px);
}

#first-deposit-modal .first-deposit-modal-card {
  position: relative;
  width: min(calc(100% - 18px), 332px);
  max-height: min(82vh, 620px);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 28px 68px rgba(10, 16, 32, 0.36);
}

.first-deposit-modal-head {
  position: relative;
  padding: 14px 18px 12px;
  text-align: center;
  background: linear-gradient(180deg, #ff696f 0%, #ff5a61 55%, #ff5259 100%);
  color: #fff;
}

.first-deposit-modal-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.first-deposit-modal-head strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.first-deposit-modal-head span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.96;
}

.first-deposit-modal-list {
  max-height: min(60vh, 430px);
  overflow-y: auto;
  padding: 8px 8px 0;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
  overscroll-behavior: contain;
}

.first-deposit-modal-list .first-deposit-bonus-card {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 10px 8px;
  border-radius: 8px;
  border: 1px solid #ebe6e0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(29, 39, 66, 0.05);
}

.first-deposit-modal-list .first-deposit-bonus-card::before {
  content: none;
}

.first-deposit-modal-list .first-deposit-bonus-card-top strong {
  font-size: 11px;
  font-weight: 500;
}

.first-deposit-modal-list .first-deposit-bonus-card-top strong span {
  font-size: 18px;
  color: #ff8b35;
}

.first-deposit-modal-list .first-deposit-bonus-card-top em {
  font-size: 16px;
  font-weight: 500;
  color: #ff8b35;
}

.first-deposit-modal-list .first-deposit-bonus-card p {
  margin: 4px 0 8px;
  font-size: 9px;
  line-height: 1.25;
  color: #77819b;
}

.first-deposit-modal-list .first-deposit-bonus-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.first-deposit-modal-list .first-deposit-progress {
  height: 16px;
  border-radius: 999px;
  background: #d9d9d9;
}

.first-deposit-modal-list .first-deposit-progress-block {
  position: relative;
  display: block;
  min-height: 16px;
  gap: 0;
}

.first-deposit-modal-list .first-deposit-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1b2236;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  z-index: 1;
  pointer-events: none;
}

.first-deposit-modal-list .first-deposit-row-action {
  min-width: 78px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  border-color: #ff9c52;
  color: #ff9c52;
  box-shadow: none;
  cursor: pointer;
}

.first-deposit-modal-list .first-deposit-row-action--claim {
  border-color: #ff625f;
  background: linear-gradient(135deg, #ff8f86, #ff5f5c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 98, 95, 0.28);
}

.first-deposit-modal-list .first-deposit-row-action--closed,
.first-deposit-modal-list .first-deposit-row-action--received {
  border-color: #ead9c9;
  background: #fff9f3;
  color: #d5a77b;
  box-shadow: none;
}

.first-deposit-modal-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 10px;
  background: #fff;
  border-top: 1px solid #edf0f8;
}

.first-deposit-modal-check {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  color: #7b859e;
  font-size: 9px;
  line-height: 1.2;
}

.first-deposit-modal-check span {
  display: block;
}

.first-deposit-modal-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #ff6667;
}

.first-deposit-modal-activity {
  min-width: 120px;
  height: 34px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #ff827d 0%, #ff6465 100%);
  box-shadow: 0 8px 18px rgba(255, 100, 99, 0.18);
}

.first-deposit-modal-close {
  width: 36px;
  height: 36px;
  margin: 10px auto 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(41, 48, 71, 0.56);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.original-join-card {
  width: min(100%, 256px);
  padding: 28px 20px 18px;
  border-radius: 18px;
}

.original-join-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #1d2642;
  font-weight: 700;
}

.original-join-card p {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #7b8098;
}

.original-join-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.original-join-actions button {
  height: 36px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

#original-join-cancel {
  background: #f4f6fb;
  color: #1d2642;
}

#original-join-confirm {
  background: #ffffff;
  color: #2a7cff;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  min-width: 94px;
  max-width: min(230px, calc(100vw - 64px));
  min-height: 82px;
  padding: 14px 16px 13px;
  border-radius: 8px;
  background: rgba(22, 23, 29, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  z-index: 130;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 34px rgba(13, 16, 28, 0.18);
  backdrop-filter: blur(1px);
}

.toast-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 26px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
}

.toast-copy {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.toast.hidden {
  display: none;
}

@media (min-width: 420px) {
  .phone-frame {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 24px 60px rgba(22, 27, 50, 0.12);
  }
}

@media (max-width: 480px) {
  .home-section-block:first-child .home-controlled-grid {
    gap: 8px;
  }

  .home-section-block:first-child .home-controlled-card {
    min-height: 162px;
    grid-template-rows: auto 1fr;
    align-content: center;
    justify-items: center;
    row-gap: 4px;
    padding: 14px 6px 12px;
  }

  .home-section-block:first-child .home-controlled-title {
    min-height: 30px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1.02;
    white-space: normal;
    text-wrap: balance;
  }

  .home-section-block:first-child .home-controlled-image {
    width: 98px;
    height: 98px;
    align-self: center;
    justify-self: center;
  }
}

.activity-main-header {
  margin: -10px -12px 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 18px;
}

.activity-brand-large {
  width: 146px;
  height: auto;
  flex: 0 0 auto;
}

#page-activity {
  padding-bottom: 110px;
}

#page-activity .light-pill {
  height: 36px;
  min-width: 140px;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.24);
}

#page-activity .bonus-row {
  gap: 22px;
  margin: 16px 0 14px;
}

#page-activity .bonus-row span {
  font-size: 13px;
}

#page-activity .bonus-row strong {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.activity-main-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 12px 2px 14px;
}

.activity-main-action {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 0;
  color: var(--text);
  font-size: 12px;
  text-align: center;
  line-height: 1.15;
}

.activity-main-media {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 127, 118, 0.12), rgba(255, 207, 132, 0.26));
  box-shadow: 0 8px 18px rgba(255, 120, 112, 0.14);
}

.activity-main-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-main-action:nth-child(1) .activity-main-media {
  background: linear-gradient(180deg, #ffd9c3, #ffb6b0);
}

.activity-main-action:nth-child(2) .activity-main-media {
  background: linear-gradient(180deg, #c9e8ff, #90c4ff);
}

.activity-main-action:nth-child(3) .activity-main-media {
  background: linear-gradient(180deg, #ffd67b, #ffb34c);
}

.activity-main-action:nth-child(4) .activity-main-media {
  background: linear-gradient(180deg, #b8f2da, #64deb4);
}

.activity-top-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  align-items: start;
}

.activity-info-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  text-align: left;
  min-height: 204px;
}

.activity-info-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transform: scale(1.055);
  transform-origin: center;
}

.activity-info-copy {
  padding: 8px 10px 16px;
}

.activity-info-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.15;
  color: #131a30;
}

.activity-info-copy p {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: #616983;
  min-height: 40px;
}

#page-activity .activity-top-cards,
#page-activity .activity-event-list,
#page-activity .activity-main-actions {
  margin-left: 2px;
  margin-right: 2px;
}

.activity-event-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.activity-banner-card,
.activity-footer-only-banner {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.activity-banner-card img,
.activity-footer-only-banner img {
  width: 100%;
  display: block;
}

.activity-banner-card img {
  aspect-ratio: 2.72 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transform: scale(1.035);
  transform-origin: center;
}

.activity-banner-card-static {
  cursor: default;
}

.activity-event-list .activity-banner-label {
  display: none;
}

.activity-banner-name {
  padding: 10px 12px 12px;
  color: #151d33;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  background: #fff;
}

.activity-banner-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #121a30;
  line-height: 1.15;
}

.activity-banner-label-dots::before,
.activity-banner-label-alert::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6064;
  margin-left: 2px;
}

.activity-banner-label-dots::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6064;
  margin-left: 4px;
}

.activity-banner-label-alert::before {
  content: "!";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ff6064;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.activity-banner-label-alert::after {
  content: "!";
  margin-left: 6px;
  color: #ff6064;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.activity-footer-only-banner {
  padding: 0;
  min-height: 0;
}

.activity-footer-only-banner img {
  width: 100%;
  aspect-ratio: 2.62 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.activity-end-note {
  text-align: center;
  color: #a2a9bf;
  font-size: 13px;
  padding: 4px 0 8px;
}

.activity-bonus-record-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #434b63;
}

.activity-bonus-record-link img {
  width: 18px;
  height: 18px;
}

.activity-bonus-page-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 8;
  min-height: 50px;
  padding: 8px 12px 10px;
  background: #fff;
  border-bottom: 1px solid #eef0f7;
}

.activity-bonus-page-header h2 {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
}

.activity-bonus-page-header .back-button,
.activity-bonus-page-header .activity-bonus-record-link {
  position: relative;
  z-index: 1;
}

.activity-bonus-page-header .activity-bonus-record-link {
  font-size: 11px;
}

.activity-bonus-page-header .activity-bonus-record-link img {
  width: 16px;
  height: 16px;
}

#page-activity-bonus {
  padding-top: 58px;
}

.activity-bonus-banner-card,
.invite-bonus-hero,
.jackpot-hero,
.jackpot-rule-top,
.attendance-header-card,
.activity-detail-stack,
.bonus-table-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.activity-bonus-banner-card img,
.invite-bonus-hero img,
.jackpot-hero img,
.jackpot-rule-top > img,
.activity-detail-stack img {
  width: 100%;
  display: block;
}

#page-activity-bonus .activity-bonus-banner-card {
  margin-left: -12px;
  margin-right: -12px;
  border-radius: 0;
  box-shadow: none;
}

#page-activity-bonus .activity-bonus-banner-card img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.activity-bonus-missions,
.activity-bonus-records,
.invitation-bonus-list,
.invitation-record-list,
.rebate-history-list,
.attendance-history-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  overflow: visible;
}

.activity-mission-card,
.activity-record-card,
.invite-bonus-card,
.invitation-record-card,
.rebate-summary-card,
.rebate-history-card,
.jackpot-empty-card,
.activity-empty-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.activity-mission-card {
  padding: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
}

.activity-mission-head,
.invite-bonus-card-head,
.rebate-history-top,
.invite-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-mission-head {
  margin: 0;
  padding: 0 12px 0 0;
  min-height: 38px;
  border-bottom: 1px solid #f1f2f8;
  align-items: flex-start;
}

.mission-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 30px;
  padding: 0 15px;
  border-radius: 0 0 10px 0;
  background: linear-gradient(135deg, #18b85c, #18c16e);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(24, 184, 92, 0.16);
  margin: 0;
  flex: 0 0 auto;
}

.activity-mission-head strong {
  padding-top: 9px;
}

.invite-bonus-card-head span {
  display: inline-flex;
  align-items: center;
  min-width: 86px;
  height: 40px;
  padding: 0 12px;
  border-radius: 16px 0 16px 0;
  background: linear-gradient(135deg, #18b85c, #1fc876);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.activity-mission-head strong {
  color: #8f95ab;
  font-size: 12px;
  font-weight: 700;
}

.activity-mission-line,
.activity-mission-reward,
.invite-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.activity-mission-line,
.activity-mission-reward {
  margin-left: 12px;
  margin-right: 12px;
}

.activity-mission-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-mission-inline-bet {
  font-size: 12px;
  color: #2b3452;
}

.activity-mission-icon-wrap {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6e67, #ff8a74);
  box-shadow: 0 4px 10px rgba(255, 96, 99, 0.16);
}

.activity-mission-icon-wrap img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.activity-mission-target {
  color: #ff5f64;
  font-size: 12px;
  font-weight: 700;
}

.activity-mission-track {
  min-height: 32px;
  margin-top: 8px;
  margin-left: 12px;
  margin-right: 12px;
  border-radius: 8px;
  background: #f4f5fa;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #8a91a7;
  font-size: 11px;
  position: relative;
  overflow: hidden;
}

.activity-mission-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 118, 104, 0.28), rgba(255, 176, 92, 0.2));
}

.activity-mission-track span {
  position: relative;
  z-index: 1;
}

.activity-mission-reward strong,
.invite-bonus-card-head strong,
.invite-bonus-row strong {
  color: #ff924c;
}

.activity-mission-inline-reward {
  font-size: 18px;
  font-weight: 700;
  color: #ff8d4a;
}

.activity-mission-reward-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.activity-mission-reward-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(72%) sepia(61%) saturate(1843%) hue-rotate(338deg) brightness(103%) contrast(102%);
}

.activity-mission-button,
.invite-bonus-status,
.jackpot-batch-button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border-radius: 999px;
  background: #c6cadb;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.activity-mission-button.ready {
  background: var(--pill);
}

.activity-mission-button:not(.ready) {
  background: #c9cddd;
  color: #fff;
}

.activity-mission-button {
  width: calc(100% - 24px);
  margin-left: auto;
  margin-right: auto;
}

.activity-record-card,
.invitation-record-card,
.rebate-history-card {
  padding: 14px;
}

#page-activity-bonus-record .activity-bonus-records {
  gap: 12px;
}

#page-activity-bonus-record .activity-record-card {
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(28, 34, 66, 0.055);
}

#page-activity-bonus-record .activity-record-amount-block {
  min-width: 102px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ecfff4 0%, #dff9ea 100%);
  box-shadow: inset 0 0 0 1px rgba(33, 181, 103, 0.08);
}

#page-activity-bonus-record .activity-record-amount-label {
  color: #25a962;
}

#page-activity-bonus-record .activity-record-amount {
  color: #0f9a52;
  font-weight: 800;
}

.activity-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.activity-record-title-block {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.activity-record-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.activity-record-type-activity {
  background: #e9fff1;
  color: #1d9d57;
}

.activity-record-type-rebate {
  background: #eef4ff;
  color: #4a6bdf;
}

.activity-record-type-attendance {
  background: #fff4e6;
  color: #ff8e1f;
}

.activity-record-type-jackpot {
  background: #fff0f0;
  color: #ff6267;
}

.activity-record-title-block strong {
  font-size: 16px;
  line-height: 1.15;
  color: #18233f;
}

.activity-record-copy {
  font-size: 12px;
  line-height: 1.35;
  color: #7482a3;
}

.activity-record-amount-block {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5f3 0%, #ffe9e5 100%);
  text-align: right;
}

.activity-record-amount-label {
  display: block;
  font-size: 10px;
  color: #ff8574;
}

.activity-record-amount {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1;
  color: #ff6a56;
}

.activity-record-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef1f8;
  display: grid;
  gap: 8px;
}

.activity-record-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-record-meta-row span {
  font-size: 11px;
  color: #8591ae;
}

.activity-record-meta-row strong {
  font-size: 12px;
  font-weight: 600;
  color: #202c48;
  text-align: right;
}

.activity-empty-card {
  padding: 18px 14px;
  text-align: center;
  color: #7c86a0;
}

.invite-bonus-hero {
  position: relative;
  margin-top: 0;
  margin-left: -12px;
  margin-right: -12px;
  min-height: 156px;
  border-radius: 0;
  background: linear-gradient(135deg, #ff8e45, #ff6a4e);
}

.invite-bonus-hero img {
  height: 156px;
  object-fit: cover;
  object-position: center right;
}

.invite-bonus-hero-copy {
  position: absolute;
  inset: 0;
  padding: 14px 14px 10px;
  color: #fff;
  display: grid;
  align-content: start;
  gap: 5px;
  background: linear-gradient(90deg, rgba(255, 112, 69, 0.88) 0%, rgba(255, 118, 69, 0.78) 44%, rgba(255, 118, 69, 0.18) 68%, rgba(255, 118, 69, 0) 100%);
}

.invite-bonus-hero-copy strong {
  max-width: 156px;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0;
}

.invite-bonus-hero-copy span {
  max-width: 158px;
  font-size: 10px;
  line-height: 1.24;
  color: rgba(255, 255, 255, 0.96);
}

.invite-bonus-hero-copy small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #fff3d0;
}

.invite-bonus-shortcuts,
.jackpot-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: -20px;
  padding: 0 6px;
  position: relative;
  z-index: 2;
}

.invite-shortcut,
.jackpot-shortcut {
  min-height: 56px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  color: #7a8399;
  font-size: 11px;
  text-align: center;
}

.invite-shortcut {
  grid-template-columns: 1fr;
  min-height: 76px;
  padding: 10px 8px 10px;
  gap: 7px;
  font-size: 10px;
  color: #707995;
}

.invite-shortcut img,
.jackpot-shortcut img,
.rebate-tab img,
.bonus-table-title img,
.jackpot-warning-box img {
  width: 18px;
  height: 18px;
}

.invite-shortcut img {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(113, 183, 255, 0.18), rgba(85, 151, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(113, 183, 255, 0.18);
  filter: brightness(0) saturate(100%) invert(59%) sepia(77%) saturate(1331%) hue-rotate(181deg) brightness(101%) contrast(101%);
}

.invite-shortcut:last-child img {
  background: linear-gradient(135deg, rgba(123, 235, 177, 0.18), rgba(66, 194, 135, 0.08));
  box-shadow: inset 0 0 0 1px rgba(98, 213, 152, 0.18);
  filter: brightness(0) saturate(100%) invert(62%) sepia(75%) saturate(478%) hue-rotate(95deg) brightness(93%) contrast(91%);
}

.invite-bonus-card {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

.invite-bonus-footer {
  position: relative;
  z-index: 1;
  padding: 0 14px 14px;
  margin-top: 4px;
}

.invite-bonus-footer .invite-bonus-status {
  width: 100%;
  margin: 12px 0 0;
}

.invite-bonus-claimed-stamp {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 110px;
  max-width: calc(100% - 48px);
  height: auto;
  transform: translateX(-50%) rotate(-15deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: 20;
  user-select: none;
  -webkit-user-drag: none;
}

.invite-bonus-status.is-received {
  position: relative;
  z-index: 1;
  background: #c6cadb;
  color: #fff;
  font-weight: 700;
}

.invite-bonus-status.is-ready {
  background: var(--pill);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.invite-bonus-status.is-unfinished {
  background: #c6cadb;
  color: #fff;
  font-weight: 700;
}

.invite-bonus-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 12px 14px 0;
  border-top: 1px dashed #ececf5;
  margin-top: 12px;
}

.invite-bonus-progress div {
  text-align: center;
}

.invite-bonus-progress div:first-child {
  border-right: 1px solid #ececf5;
}

.invite-bonus-progress strong {
  display: block;
  color: #ff8e4a;
  font-size: 14px;
}

.invite-bonus-progress span {
  color: #8790a8;
  font-size: 10px;
}

.invite-bonus-status {
  min-height: 32px;
  font-size: 12px;
  line-height: 32px;
  text-align: center;
  border-radius: 999px;
}

.invite-bonus-footer .invite-bonus-status {
  width: 100%;
  margin: 12px 0 0;
}

.invite-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 14px 0;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 2px;
  border-top: 1px solid #f1f2f8;
  font-size: 12px;
  background: #f7f8fd;
}

.invite-bonus-row:first-of-type {
  margin-top: 6px;
}

.invite-bonus-row span {
  color: #2c3553;
}

.invite-bonus-row strong {
  color: #ff8e4a;
  font-size: 12px;
}

.invite-bonus-card-head {
  min-height: 40px;
}

.invite-bonus-card-head span {
  min-width: 86px;
  height: 40px;
  padding: 0 12px;
  border-radius: 16px 0 16px 0;
  background: linear-gradient(135deg, #18b85c, #1fc876);
  font-size: 12px;
}

.invite-bonus-card-head strong {
  padding-right: 12px;
  font-size: 18px;
  color: #ff7c43;
}

#page-invitation-bonus {
  padding-top: 44px;
}

#page-invitation-bonus .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 390px);
  box-sizing: border-box;
  z-index: 8;
  margin: 0;
  padding: 6px 10px 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(227, 232, 243, 0.95);
}

#page-invitation-bonus .plain-header h2 {
  font-size: 16px;
  font-weight: 500;
}

#page-first-deposit-bonus {
  padding-top: 48px;
  padding-bottom: 26px;
}

#page-first-deposit-bonus .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 390px);
  box-sizing: border-box;
  z-index: 8;
  margin: 0;
  padding: 6px 10px 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(227, 232, 243, 0.95);
}

#page-first-deposit-bonus .plain-header h2 {
  font-size: 16px;
  font-weight: 500;
}

.first-deposit-bonus-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.first-deposit-bonus-card {
  padding: 13px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 34, 66, 0.06);
}

.first-deposit-bonus-card-top,
.first-deposit-bonus-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.first-deposit-bonus-card-top strong {
  font-size: 12px;
  font-weight: 500;
  color: #1d2742;
  line-height: 1.1;
}

.first-deposit-bonus-card-top strong span {
  color: #ff8b35;
  font-size: 21px;
  font-weight: 500;
  margin-left: 2px;
}

.first-deposit-bonus-card-top em {
  font-style: normal;
  color: #ff8b35;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.first-deposit-bonus-card p {
  margin: 7px 0 12px;
  color: #7280a2;
  font-size: 11px;
  line-height: 1.38;
}

.first-deposit-progress {
  position: relative;
  flex: 1 1 auto;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #d9d9d9;
}

.first-deposit-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8f86, #ff605d);
}

.first-deposit-progress-block {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: block;
  min-height: 14px;
}

.first-deposit-progress-text {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1d2742;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  z-index: 1;
  pointer-events: none;
}

.first-deposit-row-action {
  min-width: 92px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid #ff9a4e;
  color: #ff9a4e;
  background: #fff9f3;
  font-size: 11px;
  font-weight: 500;
}

.first-deposit-row-action--claim {
  border-color: #ff6a64;
  background: linear-gradient(135deg, #ff8e85, #ff6463);
  color: #fff;
}

.first-deposit-row-action--closed,
.first-deposit-row-action--received {
  border-color: #dfe4ef;
  background: #f4f6fb;
  color: #8d96ad;
}

.first-deposit-row-action:disabled {
  opacity: 1;
}

.first-deposit-rules-card {
  margin-top: 16px;
  padding: 18px 15px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 34, 66, 0.06);
}

.first-deposit-rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.first-deposit-rules-list li {
  position: relative;
  padding-left: 15px;
  color: #6a7595;
  font-size: 12px;
  line-height: 1.52;
}

.first-deposit-rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ff6b63;
}

.invite-rules-card,
.invite-rules-notes {
  margin-top: 12px;
}

.rules-table {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.rules-table-head,
.rules-table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.rules-table-head {
  background: linear-gradient(135deg, #ff6e6c, #ff5a64);
  color: #fff;
  font-weight: 700;
}

.rules-table-row {
  border-top: 1px solid #eff1f7;
  color: #61708e;
}

.rules-pill-title {
  width: 160px;
  height: 36px;
  margin: -6px auto 12px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, #ff6e6c, #ff5a64);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.invite-rules-notes ul,
.notes-card ul {
  margin: 0;
  padding-left: 18px;
}

.invitation-record-card .history-line,
.rebate-history-card .history-line {
  margin-top: 10px;
}

.rebate-tabs {
  display: grid;
  grid-template-columns: 64px;
  gap: 10px;
  margin-top: 12px;
}

.rebate-tab {
  min-height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff746f, #ff8a7a);
  color: #fff;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  font-size: 12px;
}

.rebate-summary-card {
  margin-top: 12px;
  padding: 14px;
}

.rebate-summary-card h3 {
  margin: 0;
  font-size: 15px;
}

.rebate-realtime,
.rebate-total-line,
.bonus-table-title,
.jackpot-warning-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rebate-realtime {
  width: fit-content;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #ff9c9f;
  color: #ff5a64;
  font-size: 11px;
}

.rebate-realtime img,
.rebate-total-line img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.rebate-total-line {
  margin-top: 10px;
  gap: 6px;
}

.rebate-total-line strong {
  font-size: 22px;
  line-height: 1;
}

.rebate-note {
  min-height: 32px;
  margin-top: 10px;
  border-radius: 10px;
  background: #f4f5fa;
  padding: 8px 10px;
  color: #8b93aa;
  font-size: 11px;
}

.rebate-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.rebate-mini-stats div {
  border-radius: 12px;
  background: #f6f7fb;
  padding: 10px;
}

.rebate-mini-stats span,
.rebate-summary-card p,
.attendance-header-copy span {
  color: #7f879d;
}

.rebate-mini-stats strong {
  display: block;
  margin-top: 6px;
  color: #ff7e46;
  font-size: 18px;
}

.rebate-summary-card p {
  margin: 10px 0 0;
  font-size: 11px;
}

#rebate-claim-button {
  margin-top: 10px;
}

#rebate-claim-button:disabled {
  background: #cfd2de;
  color: #1d2642;
  box-shadow: none;
}

#page-attendance-rules .invite-rules-notes,
#page-invitation-rules .invite-rules-notes {
  position: relative;
  margin-top: 20px;
  padding: 0 20px 22px;
  border-radius: 17px;
  border: 1px solid rgba(255, 91, 96, 0.14);
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 34, 66, 0.055);
  overflow: visible;
}

#page-attendance-rules .invite-rules-notes::before,
#page-invitation-rules .invite-rules-notes::before {
  display: none;
}

#page-attendance-rules .rules-pill-title,
#page-invitation-rules .rules-pill-title {
  position: relative;
  width: min(62%, 214px);
  height: 44px;
  margin: 0 auto 24px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, #ff5b60 0%, #ff7068 58%, #ff806e 100%);
  box-shadow: 0 10px 22px rgba(255, 91, 96, 0.18);
  font-size: 16px;
  line-height: 44px;
  letter-spacing: 0;
  isolation: isolate;
  overflow: visible;
}

#page-attendance-rules .rules-pill-title::before,
#page-attendance-rules .rules-pill-title::after,
#page-invitation-rules .rules-pill-title::before,
#page-invitation-rules .rules-pill-title::after {
  content: "";
  position: absolute;
  top: 0;
  width: 42px;
  height: 44px;
  background: inherit;
  z-index: -1;
  pointer-events: none;
}

#page-attendance-rules .rules-pill-title::before,
#page-invitation-rules .rules-pill-title::before {
  left: -27px;
  border-radius: 0 0 0 24px;
  transform: skewX(24deg);
  transform-origin: right top;
}

#page-attendance-rules .rules-pill-title::after,
#page-invitation-rules .rules-pill-title::after {
  right: -27px;
  border-radius: 0 0 24px 0;
  transform: skewX(-24deg);
  transform-origin: left top;
}

#page-attendance-rules .invite-rules-notes ul,
#page-invitation-rules .invite-rules-notes ul {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#page-attendance-rules .invite-rules-notes li,
#page-invitation-rules .invite-rules-notes li {
  position: relative;
  margin: 0;
  padding-left: 22px;
  color: #687386;
  font-size: 13px;
  line-height: 1.58;
}

#page-attendance-rules .invite-rules-notes li::before,
#page-invitation-rules .invite-rules-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #ff5d60;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(255, 93, 96, 0.24);
}

.rebate-empty-card,
.attendance-empty-card,
.record-empty-card {
  min-height: 118px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px 14px;
}

.rebate-empty-card img,
.attendance-empty-card img,
.record-empty-card img {
  width: 118px;
  max-width: 66%;
  height: auto;
  opacity: 0.68;
}

.rebate-empty-card span,
.attendance-empty-card span,
.record-empty-card span {
  color: #7c86a0;
  font-size: 13px;
  font-weight: 600;
}

.rebate-history-top span {
  color: #1bb06c;
  font-weight: 700;
}

.jackpot-batch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.jackpot-batch-button img {
  width: 14px;
  height: 14px;
}

.jackpot-shortcut-static {
  cursor: default;
}

#page-super-jackpot .plain-header {
  padding: 4px 0 12px;
}

#page-super-jackpot .plain-header h2 {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-super-jackpot .back-button,
#page-super-jackpot .header-spacer {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

#page-super-jackpot .jackpot-hero {
  margin-top: 4px;
}

#page-super-jackpot .jackpot-batch-button {
  min-height: 42px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

#page-super-jackpot .jackpot-shortcuts {
  margin-top: 12px;
  padding: 0;
  z-index: 1;
}

#page-super-jackpot .jackpot-shortcut {
  min-height: 62px;
  border-radius: 14px;
}

.jackpot-empty-card {
  margin-top: 12px;
  padding: 12px 14px 14px;
  text-align: center;
}

.jackpot-empty-box {
  min-height: 120px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f7fd, #eef1f8);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.jackpot-empty-box::before {
  content: "";
  width: 82px;
  height: 56px;
  border-radius: 12px 12px 10px 10px;
  background: linear-gradient(180deg, #d7dce8, #c8cfde);
  clip-path: polygon(10% 34%, 26% 14%, 46% 16%, 58% 4%, 76% 19%, 92% 34%, 92% 66%, 8% 66%);
  opacity: 0.7;
  box-shadow: 0 10px 18px rgba(176, 184, 205, 0.18);
}

.jackpot-empty-box::after {
  content: "No data";
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #c1c8d9;
  font-size: 13px;
}

.jackpot-empty-card p {
  margin: 10px 0 0;
  font-size: 12px;
}

.jackpot-rule-top {
  position: relative;
  margin-top: 12px;
}

.jackpot-warning-box {
  position: static;
  margin: 0 12px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff6f2, #fff0ea);
  color: #ff6b57;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 104, 0.16);
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  gap: 10px;
}

.bonus-table-card {
  margin-top: 14px;
  padding: 16px 16px 18px;
}

.bonus-table-title h3 {
  margin: 0;
}

.jackpot-service-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  color: #74809b;
  line-height: 1.55;
  align-items: flex-start;
  font-size: 12px;
}

.jackpot-service-note img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.bonus-table-card .small-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 34px;
  margin: 20px auto 0;
  padding: 0 18px;
}

.attendance-header-card {
  position: relative;
  background: linear-gradient(135deg, #ff5e62, #ff805d);
  color: #fff;
}

.attendance-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.attendance-header-copy {
  position: relative;
  padding: 16px 14px 88px;
  display: grid;
  gap: 6px;
}

.attendance-header-copy strong {
  font-size: 28px;
  line-height: 1;
}

.attendance-progress-line {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.attendance-progress-line strong {
  font-size: 24px;
}

.attendance-shortcuts {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.attendance-shortcuts .pill-action {
  min-width: 124px;
}

.attendance-day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.attendance-day-card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  padding: 12px 10px;
  text-align: center;
}

.attendance-star-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin: 8px auto;
}

.attendance-star-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendance-day-card.day-seven {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.attendance-day-card.day-seven img {
  width: 88px;
}

#attendance-claim-button {
  margin-top: 16px;
}

#attendance-claim-button.deposit-first {
  background: linear-gradient(135deg, #13b86f, #07a85f);
  box-shadow: 0 12px 24px rgba(7, 168, 95, 0.24);
}

.attendance-day-card.claimed {
  box-shadow: inset 0 0 0 2px rgba(255, 95, 100, 0.22);
}

.attendance-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.attendance-history-item small {
  display: block;
  margin-top: 4px;
  color: #8792ab;
}

.attendance-history-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  justify-content: center;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7f78, #ff8f82);
  color: #fff;
}

.attendance-history-badge img {
  width: 16px;
  height: 16px;
}

.activity-detail-stack {
  margin-top: 12px;
  padding-bottom: 20px;
}

.activity-detail-stack img + img {
  margin-top: 12px;
}

.activity-detail-stack .small-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, calc(100% - 40px));
  min-height: 36px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.activity-agent-detail-stack {
  padding-bottom: 0;
}

.activity-agent-detail-card {
  padding: 16px 16px 18px;
  display: grid;
  gap: 12px;
}

.activity-agent-detail-card h3 {
  margin: 0;
  color: #101a34;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.activity-agent-detail-card p {
  margin: 0;
  color: #5f6f91;
  font-size: 13px;
  line-height: 1.55;
}

.activity-agent-detail-button {
  width: 100%;
  height: 42px;
  margin-top: 4px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.avatar {
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  padding: 0;
}

.avatar-sprite {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #fff4f4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-sprite-small {
  width: 58px;
  height: 58px;
}

.account-balance-top {
  justify-content: space-between;
}

.account-balance-top > div > span {
  color: #707a95;
  font-size: 12px;
}

.account-wallet-pill {
  min-width: 118px;
  height: 34px;
  padding: 0 16px;
  background: linear-gradient(135deg, #ff746f, #ff595f);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.quick-action-media {
  min-height: 90px;
}

.action-icon-image-wrap {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-icon-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.account-mini-grid {
  margin-top: 16px;
}

#page-account .meta-line {
  align-items: center;
}

#page-account .uid-pill {
  gap: 6px;
  min-height: 26px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(4px);
}

#page-account .uid-pill strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#page-account .uid-copy-button {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

#page-account .uid-copy-button img {
  width: 11px;
  height: 11px;
}

#page-account .account-header {
  margin: -10px -12px 0 !important;
  padding-top: calc(24px + var(--safe-top)) !important;
}

.mini-card {
  min-height: 108px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-card-button {
  text-align: left;
}

.mini-card-static {
  cursor: default;
}

.mini-card-media {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 44px;
  background: #fff5f5;
}

.mini-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card-copy {
  text-align: left;
}

.mini-card-copy span {
  color: #717b96;
  line-height: 1.25;
}

#page-account .account-mini-grid .mini-card {
  min-height: 104px;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(28, 34, 66, 0.05);
}

#page-account .account-mini-grid .mini-card-media {
  border-radius: 10px;
}

.menu-item-icon {
  min-height: 58px;
}

.menu-item-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.menu-item-icon-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.menu-item-static {
  cursor: default;
}

.service-item-button,
.mini-card-button {
  border: 0;
  background: #fff;
}

.service-item-static {
  cursor: default;
}

.agency-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff1f1;
  box-shadow: inset 0 0 0 1px #ffd3d1;
}

.agency-header-action img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.agency-header-action::before,
.agency-header-action::after {
  display: none;
}

.promo-download-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.promo-download-trigger img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.promo-list {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
}

.promo-list .menu-item {
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 34, 66, 0.06);
}

.promo-row-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.promo-list-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff0ef 0%, #ffe2e1 100%);
}

.promo-list-media-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.promo-list .menu-tail strong {
  font-size: 13px;
  font-weight: 500;
  color: #68789a;
}

.promo-copy-row .copy-icon img {
  width: 15px;
  height: 15px;
}

.promo-data-card {
  margin-top: 14px;
}

.promo-data-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  text-transform: lowercase;
}

.promo-data-title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.promo-data-grid span {
  font-size: 11px;
  line-height: 1.3;
}

.promo-referral-banner {
  margin-top: -10px;
  margin-left: -12px;
  margin-right: -12px;
  width: calc(100% + 24px);
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

.promo-referral-banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

#page-promotion .promo-data-card {
  margin-bottom: 0;
}

.promo-history-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

#page-promo-history {
  padding-top: 56px;
  background: #f6f7fd;
}

#page-promo-history .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 22;
  margin: 0;
  padding: 8px 12px 10px;
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #edf0f7;
}

#page-promo-history .plain-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #151d31;
}

#page-promo-history .back-button,
#page-promo-history .header-spacer {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

#page-promo-history .back-button {
  font-size: 26px;
}

#page-promo-history .promo-history-tabs {
  margin: 2px 0 14px;
}

#page-promo-subordinates {
  padding-top: 56px;
  background: #f6f7fd;
}

#page-promo-subordinates .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 22;
  margin: 0;
  padding: 8px 12px 10px;
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #edf0f7;
}

#page-promo-subordinates .plain-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #151d31;
}

#page-promo-subordinates .back-button,
#page-promo-subordinates .header-spacer {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

#page-promo-subordinates .back-button {
  font-size: 26px;
}

#page-promo-subordinates .promo-search-row {
  margin-top: 2px;
}

#page-promo-commission {
  padding-top: calc(108px + var(--safe-top));
  background: #f6f7fd;
}

#page-promo-commission .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 32;
  margin: 0;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  min-height: calc(52px + var(--safe-top));
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04);
}

#page-promo-commission .plain-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #111827;
}

#page-promo-commission .back-button,
#page-promo-commission .header-spacer {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

#page-promo-commission .promo-commission-date {
  position: fixed;
  top: calc(58px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 31;
  width: calc(var(--mobile-frame) - 24px);
  max-width: calc(100vw - 24px);
  min-height: 42px;
  margin: 0;
  border: 1px solid #edf0f7;
  box-shadow: 0 8px 22px rgba(28, 34, 66, 0.06);
}

#page-promo-commission .commission-detail-list {
  padding: 0 12px 18px;
}

#page-promo-rules {
  padding-top: calc(58px + var(--safe-top));
  background: #f6f7fd;
}

#page-promo-rules .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 32;
  margin: 0;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  min-height: calc(52px + var(--safe-top));
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04);
}

#page-promo-rules .plain-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #111827;
}

#page-promo-rules .back-button,
#page-promo-rules .header-spacer {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.promo-history-tab {
  height: 42px;
  border-radius: 10px;
  background: #fff;
  color: #6a7797;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(28, 34, 66, 0.04);
}

.promo-history-tab.active {
  background: linear-gradient(180deg, #ff8a84 0%, #ff6d6e 100%);
  color: #fff;
}

.promo-history-list,
.subordinate-data-list,
.commission-detail-list,
.promo-ratio-list {
  display: grid;
  gap: 12px;
}

.subordinate-data-list {
  margin-top: 18px;
}

.promo-history-card,
.subordinate-card,
.commission-detail-card,
.promo-rule-card,
.promo-rule-table,
.promo-agent-contact-card,
.promo-ratio-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(28, 34, 66, 0.05);
}

.promo-history-card {
  padding: 14px 14px 12px;
}

.promo-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.promo-history-top strong {
  font-size: 13px;
}

.promo-history-top span,
.promo-history-line span {
  color: #7d88a5;
  font-size: 11px;
}

.promo-history-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.promo-poster-page {
  display: grid;
  gap: 14px;
}

.promo-poster-card {
  --promo-qr-left: 50%;
  --promo-qr-top: 85.9%;
  --promo-qr-size: 24.6%;
  position: relative;
  width: 100%;
  max-width: 272px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}

.promo-poster-bg {
  display: block;
  width: 100%;
  height: auto;
}

.promo-poster-qr-wrap {
  position: absolute;
  left: var(--promo-qr-left);
  top: var(--promo-qr-top);
  width: var(--promo-qr-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
  box-shadow: 0 12px 28px rgba(145, 59, 0, 0.24);
}

.promo-poster-qr {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-poster-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #1d243f;
  font-size: 12px;
}

.promo-poster-copy strong {
  color: #ff5858;
}

.promo-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  font-size: 12px;
  color: #22304f;
  box-shadow: 0 4px 14px rgba(28, 34, 66, 0.04);
}

.promo-search-button {
  width: 52px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8b83 0%, #ff6466 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-search-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.promo-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.promo-filter-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  color: #34456a;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(28, 34, 66, 0.04);
}

.promo-date-filter input,
.promo-commission-date input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.promo-date-filter span,
.promo-commission-date span {
  pointer-events: none;
}

.promo-subordinate-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
  padding: 1px;
  background-image: linear-gradient(180deg, #ff6569 0%, #ff5b61 100%);
  box-shadow: 0 10px 22px rgba(255, 91, 97, 0.16);
}

.promo-subordinate-summary div {
  min-height: 86px;
  padding: 15px 10px 13px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  background: linear-gradient(180deg, #ff6669 0%, #ff5a61 100%);
  color: #fff;
}

.promo-subordinate-summary strong {
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.promo-subordinate-summary span {
  font-size: 10.5px;
  line-height: 1.25;
  max-width: 112px;
}

.subordinate-card {
  padding: 15px 14px 14px;
  border-radius: 12px;
}

.subordinate-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f7;
}

.subordinate-card-head strong {
  font-size: 14px;
}

.subordinate-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.subordinate-copy img {
  width: 16px;
  height: 16px;
}

.subordinate-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.subordinate-card-grid .wide {
  grid-column: 1 / -1;
}

.subordinate-card-grid span {
  display: block;
  margin-bottom: 4px;
  color: #7d88a5;
  font-size: 11px;
}

.subordinate-card-grid strong {
  font-size: 13px;
  color: #1f2b47;
}

.promo-sheet {
  position: fixed;
  inset: 0;
  z-index: 48;
  width: 100%;
  max-width: 390px;
  left: 50%;
  transform: translateX(-50%);
}

.promo-sheet.hidden {
  display: none;
}

.promo-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 32, 0.36);
}

.promo-sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 18px 18px 0 0;
  background: #fff;
  padding: 10px 18px 26px;
  box-shadow: 0 -10px 30px rgba(18, 24, 42, 0.16);
}

.promo-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ff6b69;
  font-size: 14px;
}

.promo-sheet-options {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 18px;
}

.promo-sheet-option {
  color: #cad0dd;
  font-size: 16px;
}

.promo-sheet-option.active {
  color: #5c6f98;
}

.promo-commission-date {
  margin-bottom: 14px;
}

.commission-detail-card {
  padding: 14px;
}

.commission-detail-card > strong {
  display: block;
  font-size: 13px;
  color: #66789b;
}

.commission-detail-time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #9aa5bd;
}

.commission-detail-card p {
  margin: 8px 0 10px;
  color: #7181a2;
  font-size: 11px;
}

.commission-detail-grid {
  display: grid;
  gap: 8px;
}

.commission-detail-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f7f8fc;
}

.commission-detail-grid span {
  color: #7686a8;
  font-size: 11px;
}

.commission-detail-grid strong {
  color: #1f2c48;
  font-size: 12px;
}

.commission-detail-grid .orange {
  color: #ff8b3d;
}

.promo-rules-hero {
  text-align: center;
  margin-bottom: 12px;
}

.promo-rules-hero strong {
  display: block;
  color: #ff5d63;
  font-size: 17px;
}

.promo-rules-hero span {
  display: block;
  margin-top: 6px;
  color: #67789a;
  font-size: 13px;
}

.promo-rule-card {
  position: relative;
  padding: 36px 16px 16px;
  margin-bottom: 12px;
}

.promo-rule-badge {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 170px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #ff6669 0%, #ff5a61 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.promo-rule-card p {
  margin: 0;
  color: #6a7897;
  font-size: 12px;
  line-height: 1.6;
}

.promo-rule-table {
  overflow: hidden;
  margin-bottom: 12px;
}

.promo-rule-table-head,
.promo-rule-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
}

.promo-rule-table-head {
  min-height: 54px;
  padding: 0 12px;
  background: linear-gradient(180deg, #ff6669 0%, #ff5a61 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.promo-rule-table-row {
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid #eef1f8;
  color: #6a7897;
  font-size: 12px;
}

.promo-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd48c 0%, #ffb047 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.promo-inline-link {
  margin-top: 10px;
  color: #ff5d63;
  font-size: 12px;
}

.promo-agent-header {
  margin-bottom: 0;
}

#page-promo-agent-support {
  padding-top: 56px;
  background: #f6f7fd;
}

#page-promo-agent-support .promo-agent-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 22;
  margin: 0;
  padding: 8px 12px 10px;
  background: #fff;
  color: #151d31;
  box-shadow: none;
  border-bottom: 1px solid #edf0f7;
}

#page-promo-agent-support .promo-agent-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #151d31;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-promo-agent-support .promo-agent-header .back-button,
#page-promo-agent-support .promo-agent-header .header-spacer {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #151d31;
}

.promo-agent-banner-block {
  margin: 0 -12px 0;
  overflow: hidden;
}

.promo-agent-banner-block img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-agent-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.promo-agent-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.promo-agent-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff1ef 0%, #ffe4e2 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-agent-contact-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.promo-agent-contact-copy {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.promo-agent-contact-copy strong {
  font-size: 14px;
}

.promo-agent-contact-copy span {
  color: #7383a4;
  font-size: 11px;
}

.promo-agent-contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f5f8ff;
  color: #5879b9;
  font-size: 11px;
  border: 0;
}

.promo-agent-contact-tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.promo-ratio-tab-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

#page-promo-ratio {
  padding-top: calc(58px + var(--safe-top));
  background: #f6f7fd;
}

#page-promo-ratio .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  z-index: 32;
  margin: 0;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  min-height: calc(52px + var(--safe-top));
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04);
}

#page-promo-ratio .plain-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #111827;
}

#page-promo-ratio .back-button,
#page-promo-ratio .header-spacer {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.promo-ratio-tab {
  min-width: 124px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8a83 0%, #ff6869 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.18);
}

.promo-ratio-tab img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.promo-ratio-card {
  padding: 14px 14px 10px;
}

.promo-ratio-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #1f2c48;
}

.promo-ratio-card h3 em {
  color: #ff6064;
  font-style: italic;
}

.promo-ratio-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.promo-ratio-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67789a;
  font-size: 11px;
}

.promo-ratio-line i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #ff7075;
  flex: 0 0 10px;
}

.promo-ratio-line strong {
  color: #1f2c48;
  font-size: 11px;
}

.promo-empty-state {
  margin-top: 6px;
}

#page-promo-history .promo-empty-state,
#page-promo-history .gift-empty-state {
  margin-top: 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-promo-history .gift-empty-state-history {
  min-height: 260px;
  gap: 10px;
  align-content: center;
}

.service-icon-image-wrap {
  padding: 8px;
}

.service-icon-image,
.utility-icon-image-support {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.wheel-page {
  position: relative;
  min-height: calc(100dvh - 78px);
  padding: 0 0 24px;
  background: linear-gradient(180deg, #f04f49 0%, #c91f27 100%);
}

.wheel-header {
  margin: 0 -12px 0;
  padding: 12px 12px 14px;
}

.wheel-header h2 {
  font-size: 28px;
}

.wheel-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wheel-tool-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 700;
}

.wheel-tool-button img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.wheel-intro-screen,
.wheel-main-screen {
  position: relative;
}

.wheel-intro-screen.hidden,
.wheel-main-screen.hidden,
.wheel-modal.hidden {
  display: none;
}

.wheel-intro-screen {
  min-height: calc(100dvh - 144px);
  background: #000;
  padding: 78px 22px 32px;
  color: #fff;
}

.wheel-intro-title {
  text-align: center;
  color: #ffd85d;
  font-size: 22px;
  font-weight: 700;
}

.wheel-intro-title::before,
.wheel-intro-title::after {
  content: "❦";
  margin: 0 8px;
  color: #d8b03b;
  font-size: 22px;
}

.wheel-gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 30px;
  margin: 52px 18px 22px;
}

.wheel-gift-card {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.wheel-gift-box {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff6668 0%, #e41820 100%);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.wheel-gift-box::before,
.wheel-gift-box::after {
  content: "";
  position: absolute;
}

.wheel-gift-box::before {
  top: 0;
  left: 39px;
  width: 14px;
  height: 92px;
  background: linear-gradient(180deg, #ffe7ea 0%, #fff 48%, #ffd7db 100%);
}

.wheel-gift-box::after {
  left: 0;
  right: 0;
  top: 38px;
  height: 16px;
  background: linear-gradient(180deg, #ffe7ea 0%, #fff 48%, #ffd7db 100%);
}

.wheel-gift-card .wheel-gift-box + .wheel-gift-amount {
  opacity: 0;
}

.wheel-gift-card.revealed .wheel-gift-amount {
  opacity: 1;
}

.wheel-gift-card.active .wheel-gift-box {
  transform: scale(1.08);
  box-shadow: 0 0 0 12px rgba(255, 113, 104, 0.1), 0 0 34px rgba(255, 102, 85, 0.45);
}

.wheel-gift-card.active .wheel-gift-box::before,
.wheel-gift-card.active .wheel-gift-box::after {
  filter: brightness(1.02);
}

.wheel-gift-amount {
  min-width: 74px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 2, 2, 0.92);
  box-shadow: inset 0 0 0 1.5px #f0a528;
  color: #ffcf58;
  font-size: 13px;
  transition: opacity 0.2s ease;
}

.wheel-intro-caption {
  text-align: center;
  font-size: 14px;
}

.wheel-main-screen {
  min-height: calc(100dvh - 144px);
  overflow: hidden;
  padding: 0 0 22px;
}

.wheel-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.wheel-balance-block,
.wheel-stage,
.wheel-invite-button,
.wheel-progress-note,
.wheel-record-section {
  position: relative;
  z-index: 1;
}

.wheel-balance-block {
  padding-top: 8px;
  text-align: center;
  color: #fff;
}

.wheel-balance-timer {
  display: block;
  font-size: 14px;
  opacity: 0.95;
}

.wheel-balance-amount {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  font-weight: 800;
  color: #ffe15a;
}

.wheel-cashout-button {
  margin-top: 10px;
  min-width: 134px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbe3c 0%, #ff8a16 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: inset 0 2px 0 rgba(255, 239, 190, 0.45);
}

.wheel-stage {
  width: 100%;
  max-width: 318px;
  margin: 14px auto 0;
  padding-top: 18px;
}

.wheel-pointer {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #fffae7;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 4px 6px rgba(155, 49, 16, 0.4));
}

.wheel-disc-button {
  position: relative;
  display: block;
  width: 286px;
  height: 286px;
  margin: 0 auto;
}

.wheel-disc-image {
  width: 286px;
  height: 286px;
  display: block;
  object-fit: contain;
  transform-origin: 50% 50%;
}

.wheel-center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff9ea 0%, #ffe9c8 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  box-shadow: 0 0 0 6px #ffb94b, 0 10px 18px rgba(191, 56, 18, 0.22);
}

.wheel-center-badge strong {
  color: #ff5a57;
  font-size: 20px;
  line-height: 1;
}

.wheel-center-badge span {
  margin-top: 2px;
  color: #ff6d5b;
  font-size: 10px;
  font-weight: 700;
}

.wheel-base-image {
  display: block;
  width: 100%;
  margin-top: -30px;
}

.wheel-invite-button {
  display: block;
  min-width: 212px;
  height: 38px;
  margin: 6px auto 0;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc63d 0%, #ff9014 100%);
  color: #fff;
  font-size: 13px;
  box-shadow: inset 0 2px 0 rgba(255, 238, 179, 0.4);
}

.wheel-progress-note {
  margin: 10px 0 0;
  text-align: center;
  color: #ffe7d2;
  font-size: 12px;
}

.wheel-record-section {
  margin-top: 24px;
  padding: 0 16px;
  color: #fff;
}

.wheel-record-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.wheel-record-list {
  display: grid;
  gap: 12px;
}

.wheel-record-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wheel-record-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #fff4f4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wheel-record-copy {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.wheel-record-copy strong {
  font-size: 13px;
}

.wheel-record-copy span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.wheel-record-amount {
  text-align: right;
  font-size: 14px;
  color: #ffe062;
}

.wheel-record-empty {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.wheel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 18, 0.72);
}

.wheel-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100% - 44px, 292px);
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.wheel-modal-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff9a92 0%, #ff8182 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.wheel-rules-body {
  max-height: 360px;
  overflow: auto;
  padding: 12px 14px 14px;
}

.wheel-rules-body p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #111722;
}

.wheel-modal-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100% - 56px, 198px);
  height: 44px;
  margin: 6px auto 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 22px rgba(255, 108, 105, 0.2);
  text-align: center;
  align-self: center;
}

.wheel-cashout-card {
  padding: 18px 18px 20px;
  text-align: center;
}

.wheel-cashout-alert {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff7977 0%, #ff6268 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
}

.wheel-cashout-card h3 {
  margin: 0;
  font-size: 18px;
}

.wheel-cashout-card p {
  margin: 18px 0 18px;
  font-size: 14px;
  color: #111722;
}

.wheel-cashout-card .secondary-button {
  margin-top: 12px;
}

.wheel-history-list {
  display: grid;
  gap: 10px;
}

.wheel-history-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(28, 34, 66, 0.04);
  padding: 11px 12px;
  border: 1px solid #eef1f8;
}

.wheel-history-head,
.wheel-history-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wheel-history-head {
  margin-bottom: 8px;
}

.wheel-history-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wheel-history-title {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  color: #1f2740;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel-history-subtitle {
  display: block;
  min-width: 0;
  font-size: 10px;
  line-height: 1.1;
  color: #8c98b7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel-history-line span {
  font-size: 10px;
  color: #6a7897;
  white-space: nowrap;
}

.wheel-history-amount {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #ff6c5f;
}

.wheel-history-status {
  color: #1db56b !important;
  font-weight: 700;
}

/* Wheel rebuild overrides */
.wheel-page {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f66965 0%, #f24d41 10%, #ff9123 44%, #e84034 44%, #bf1b23 100%);
}

.wheel-page.active {
  display: block;
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 52px;
}

.wheel-header {
  margin: 0;
  padding: 10px 16px 8px;
  width: var(--mobile-frame);
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
}

.wheel-header h2 {
  font-size: 17px;
  letter-spacing: 0.2px;
}

#page-wheel-history {
  background: #f5f7ff;
  padding-top: 54px;
}

#page-wheel-history .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 30;
  margin: 0;
  padding: 8px 12px 10px;
  background: #f5f7ff;
  box-shadow: 0 1px 0 rgba(222, 228, 243, 0.92);
}

#page-wheel-history .plain-header h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-wheel-history .back-button,
#page-wheel-history .header-spacer {
  flex: 0 0 28px;
}

#page-wheel-history .wheel-history-list {
  padding: 10px 12px 18px;
}

#page-wheel-history .promo-empty-state {
  margin-top: 6px;
}

.wheel-header-tools {
  gap: 8px;
}

.wheel-tool-button {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.72);
}

.wheel-intro-screen {
  min-height: calc(100dvh - 132px);
  padding: 74px 24px 34px;
  background: #020202;
}

.wheel-intro-title {
  font-size: 20px;
}

.wheel-intro-title::before,
.wheel-intro-title::after {
  content: "✦";
  font-size: 18px;
}

.wheel-gift-grid {
  gap: 34px 42px;
  margin: 56px 20px 22px;
}

.wheel-gift-card {
  position: relative;
  gap: 10px;
  padding: 0;
}

.wheel-gift-card.active::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 104, 0.5) 0%, rgba(255, 120, 104, 0) 70%);
  transform: translateX(-50%);
  z-index: 0;
}

.wheel-gift-box {
  z-index: 1;
  width: 96px;
  height: 96px;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08), 0 16px 28px rgba(226, 25, 36, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wheel-gift-box::before {
  left: 40px;
  width: 16px;
  height: 96px;
}

.wheel-gift-box::after {
  top: 39px;
}

.wheel-gift-card.revealed .wheel-gift-box {
  transform: translateY(-2px);
}

.wheel-gift-card.active .wheel-gift-box {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 0 10px rgba(255, 117, 100, 0.14), 0 0 34px rgba(255, 119, 101, 0.45);
}

.wheel-gift-amount {
  min-width: 82px;
  min-height: 30px;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.wheel-gift-card.revealed .wheel-gift-amount {
  opacity: 1;
  transform: translateY(0);
}

.wheel-gift-card.active .wheel-gift-amount {
  background: linear-gradient(180deg, #5d0b0d 0%, #2d0104 100%);
  box-shadow: inset 0 0 0 1.5px #ffae45, 0 10px 18px rgba(255, 118, 74, 0.26);
}

.wheel-main-screen {
  width: 100%;
  min-height: calc(100dvh - 132px);
  display: block;
  padding: 0 0 16px;
  overflow: visible;
}

.wheel-balance-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 260px;
  margin: 0 auto;
  padding-top: 10px;
  flex: 0 0 auto;
}

.wheel-balance-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.wheel-balance-amount {
  margin-top: 8px;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(149, 41, 12, 0.25);
}

.wheel-cashout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 40px;
  margin: 12px auto 0;
  padding: 0 18px;
  font-size: 16px;
  box-shadow: inset 0 2px 0 rgba(255, 239, 190, 0.45), 0 10px 20px rgba(195, 57, 16, 0.2);
}

.wheel-stage {
  max-width: none;
  margin-top: 10px;
  padding-top: 16px;
  overflow: visible;
  flex: 0 0 auto;
}

.wheel-pointer {
  top: 16px;
  border-left-width: 12px;
  border-right-width: 12px;
  border-top-width: 16px;
}

.wheel-disc-button,
.wheel-disc-image {
  width: min(calc(100% - 36px), 348px);
  aspect-ratio: 1 / 1;
  height: auto;
}

.wheel-disc-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 124px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff9ed 0%, #ffead1 100%);
  box-shadow: 0 0 0 10px #ffba4b, 0 10px 18px rgba(191, 56, 18, 0.16);
  z-index: 2;
}

.wheel-disc-button:disabled {
  opacity: 1;
  cursor: default;
}

.wheel-center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  z-index: 4;
  background: linear-gradient(180deg, #fff8eb 0%, #ffe8c9 100%);
  border-radius: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  box-shadow: 0 0 0 4px rgba(255, 185, 75, 0.96);
}

.wheel-center-badge strong {
  line-height: 1;
  font-size: 22px;
}

.wheel-center-badge span {
  margin-top: 2px;
  line-height: 1.1;
  font-size: 8px;
}

.wheel-base-image {
  display: none;
}

.wheel-invite-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(72vw, 238px);
  height: 40px;
  margin-top: 8px;
  font-size: 14px;
  box-shadow: inset 0 2px 0 rgba(255, 238, 179, 0.4), 0 10px 18px rgba(205, 68, 18, 0.18);
  flex: 0 0 auto;
}

.wheel-progress-note {
  margin: 8px 20px 0;
  font-size: 11px;
  flex: 0 0 auto;
  text-align: center;
}

.wheel-record-section {
  margin-top: 12px;
  padding: 10px 14px 16px;
  background: linear-gradient(180deg, rgba(186, 25, 39, 0) 0%, rgba(186, 25, 39, 0.08) 10%, rgba(170, 17, 28, 0.18) 100%);
  overflow: visible;
}

.wheel-record-list {
  gap: 0;
}

.wheel-record-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wheel-record-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wheel-record-avatar {
  width: 36px;
  height: 36px;
}

.wheel-stage-canvas {
  position: relative;
  margin-top: 14px;
  padding-top: 18px;
  overflow: visible;
  width: min(calc(100% - 24px), 360px);
  margin-left: auto;
  margin-right: auto;
}

.wheel-stage-canvas::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(72vw, 250px);
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 214, 121, 0.48) 0%, rgba(255, 214, 121, 0.18) 48%, rgba(255, 214, 121, 0) 100%);
  filter: blur(2px);
  z-index: 0;
}

.wheel-canvas-shell {
  position: relative;
  width: min(calc(100% - 36px), 348px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  z-index: 1;
  overflow: visible;
}

.wheel-disc-rotator {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}

.wheel-disc-rotator #wheel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.wheel-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel-light {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 20px #ffd24a;
  animation: wheel-light-blink 1s infinite alternate;
}

@keyframes wheel-light-blink {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.wheel-center-button {
  border: none;
  cursor: pointer;
}

.wheel-center-button:disabled {
  cursor: default;
}

.wheel-result-card {
  padding: 22px 18px 20px;
  text-align: center;
}

.wheel-result-badge {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff7977 0%, #ff6268 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
}

.wheel-result-card h3 {
  margin: 0;
  font-size: 20px;
}

.wheel-result-card p {
  margin: 12px 0 18px;
  font-size: 28px;
  font-weight: 800;
  color: #ff8e14;
}

.wheel-coins-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
}

.wheel-record-amount {
  font-size: 15px;
}

.wheel-record-empty {
  padding: 10px 0 6px;
}

.service-icon-support {
  padding: 8px;
}

.account-detail-history {
  margin-top: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.filter-pill {
  min-height: 44px;
  border-radius: 8px;
  background: #fff;
  color: #78819b;
  box-shadow: inset 0 0 0 1px #eceff7;
}

.filter-pill.active {
  color: #ff6b69;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 105, 0.36);
  background: linear-gradient(180deg, #fffefe 0%, #fff5f4 100%);
}

.transaction-history-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.transaction-card {
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  border: 1px solid #eef1f8;
}

.transaction-card-head {
  padding: 11px 14px;
  background: linear-gradient(135deg, #ff7b78, #ff8f8d);
  color: #fff;
}

.transaction-card-head strong {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.transaction-card-body {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
  background: #fff;
}

.transaction-card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #f4f6ff;
  font-size: 12px;
  color: #73809a;
}

.transaction-card-line strong {
  font-size: 12px;
  font-weight: 500;
  color: #5f6c8f;
}

.transaction-amount.green {
  color: #18a869;
}

.transaction-amount.red {
  color: #ff5f64;
}

.transaction-card-note {
  min-height: 48px;
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f1f3fb;
  font-size: 12px;
  line-height: 1.45;
  color: #7b88a0;
  white-space: pre-wrap;
}

.transaction-card-note.is-empty {
  padding: 0;
}

#page-transaction-history {
  padding-top: 122px;
}

#page-transaction-history .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 30;
  margin: 0;
  padding: 10px 12px 12px;
  background: #f5f7ff;
  box-shadow: 0 1px 0 rgba(222, 228, 243, 0.92);
}

#page-transaction-history .plain-header h2 {
  font-size: 19px;
  font-weight: 500;
}

#page-transaction-history .filter-row {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 366px;
  z-index: 29;
  margin-top: 0;
  padding: 8px 0 10px;
  background: #f5f7ff;
}

#page-transaction-history .filter-pill {
  font-weight: 500;
}

#page-game-history {
  padding: 154px 10px 26px;
  background: #f5f7ff;
}

#page-game-history .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 30;
  margin: 0;
  padding: 10px 12px 12px;
  background: #f5f7ff;
  box-shadow: 0 1px 0 rgba(222, 228, 243, 0.92);
}

#page-game-history .plain-header h2 {
  font-size: 18px;
  font-weight: 500;
}

.bet-history-fixed-panel {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 29;
  padding: 8px 10px 12px;
  background: #f5f7ff;
  box-shadow: 0 10px 18px rgba(245, 247, 255, 0.96);
}

.bet-history-category-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bet-history-category {
  min-height: 46px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  gap: 2px;
  background: #fff;
  color: #7b86a0;
  box-shadow: inset 0 0 0 1px #eef1f8;
  font-size: 12px;
}

.bet-history-category.active {
  background: linear-gradient(135deg, #ff6468, #ff827d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 100, 104, 0.18);
}

.bet-history-category-icon {
  font-size: 18px;
  line-height: 1;
}

.bet-history-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.bet-history-filter-pill {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fff;
  color: #55617f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px #eef1f8;
  font-size: 13px;
}

.bet-history-filter-pill em {
  transform: rotate(90deg);
  font-style: normal;
  color: #8d96ad;
  font-size: 18px;
}

.bet-history-list {
  display: grid;
  gap: 12px;
}

.bet-history-card {
  position: relative;
  border-radius: 6px;
  background: #fff;
  padding: 13px 10px 12px;
  box-shadow: 0 8px 22px rgba(31, 38, 68, 0.055);
  overflow: hidden;
}

.bet-history-card::before,
.bet-history-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f7ff;
  transform: translateY(-50%);
}

.bet-history-card::before {
  left: -9px;
}

.bet-history-card::after {
  right: -9px;
}

.bet-history-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.bet-history-card-head strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.bet-history-card-head span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #71809d;
}

.bet-history-status {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.bet-history-status.win {
  color: #16b86c;
}

.bet-history-status.lose {
  color: #ff7a00;
}

.bet-history-status.pending {
  color: #6080ff;
}

.bet-history-details {
  position: relative;
  display: grid;
  gap: 5px;
  margin-top: 13px;
  padding-left: 12px;
  font-size: 11px;
}

.bet-history-details::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  bottom: 7px;
  border-left: 1px dashed #ff7d80;
}

.bet-history-details div {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.bet-history-details div::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ff6d71;
}

.bet-history-details span {
  color: #1c2540;
}

.bet-history-details strong {
  max-width: 62%;
  text-align: right;
  color: #061128;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bet-history-results {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-left: 12px;
  font-size: 12px;
  color: #101827;
}

.bet-history-results::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ff6d71;
}

.bet-history-results > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.bet-result-ball {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
}

.bet-result-ball img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bet-result-pill {
  min-width: 48px;
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.bet-result-pill.size {
  background: #ffa94d;
}

.bet-result-pill.green {
  background: #28c584;
}

.bet-result-pill.red {
  background: #ff5f64;
}

.bet-result-pill.violet {
  background: #8e6bff;
}

.bet-result-k3,
.bet-result-5d,
.motorace-result-pack {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bet-result-wait {
  color: #8994ad;
}

.bet-history-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 14px;
}

.bet-history-metrics div {
  min-height: 52px;
  border-radius: 5px;
  background: #f7f7f8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}

.bet-history-metrics strong {
  font-size: 13px;
  font-weight: 500;
  color: #65728e;
}

.bet-history-metrics strong.win {
  color: #14ae67;
}

.bet-history-metrics strong.lose {
  color: #ff565d;
}

.bet-history-metrics span {
  font-size: 10px;
  color: #65728e;
}

.bet-history-game-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
}

.bet-history-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.bet-history-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
  background: #fff;
  padding: 12px 10px max(18px, env(safe-area-inset-bottom));
}

.bet-history-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bet-history-sheet-head button {
  height: 32px;
  padding: 0 12px;
  color: #111827;
  font-size: 15px;
}

.bet-history-sheet-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bet-history-sheet-option {
  min-height: 54px;
  border-radius: 7px;
  background: #f7f8fb;
  color: #65728e;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.bet-history-sheet-option span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #ff6b6f;
  font-size: 10px;
  font-weight: 700;
}

.bet-history-sheet-option strong {
  font-size: 13px;
  font-weight: 500;
}

.bet-history-sheet-option.active {
  background: linear-gradient(135deg, #ff686c, #ff8a83);
  color: #fff;
}

.notification-page-card {
  margin-top: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.notification-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.notification-item {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 34, 66, 0.05);
  border: 1px solid #edf0f8;
}

.notification-item.unread {
  border-color: #ffd7db;
  box-shadow: 0 8px 22px rgba(255, 119, 126, 0.08);
}

.notification-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-item-badge {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff0f1;
  color: #ff6b71;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.notification-item strong {
  font-size: 15px;
  line-height: 1.25;
  color: #192235;
}

.notification-item-body {
  margin: 0;
  font-size: 14px;
}

.notification-item-body,
.notification-item small {
  color: #75809a;
  line-height: 1.5;
}

.notification-item-foot {
  padding-top: 10px;
  border-top: 1px solid #edf0f8;
}

#page-notification {
  padding-top: 88px;
}

#page-notification .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 30;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  background: #fff;
  box-shadow: none;
}

#page-notification .plain-header h2 {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

#page-notification .back-button,
#page-notification .header-spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

#page-notification .back-button {
  font-size: 32px;
}

.gift-header-image {
  width: calc(100% + 24px);
  margin: 0 -12px;
  display: block;
}

.gift-card {
  margin-top: 6px;
  padding: 18px 18px 20px;
}

.gift-greeting,
.gift-copy {
  margin: 0;
  font-size: 15px;
}

.gift-copy {
  margin-top: 10px;
}

.gift-card h3 {
  margin: 20px 0 14px;
  font-size: 17px;
}

.gift-input-wrap {
  min-height: 46px;
}

.gift-receive-button {
  width: 100%;
  margin-top: 14px;
}

.gift-history-section {
  margin-top: 18px;
}

.gift-history-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.gift-history-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.gift-history-head h3 {
  color: var(--brand-strong);
}

.gift-empty-state {
  min-height: 108px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6f7fd, #eef1f8);
}

.gift-empty-state-history {
  min-height: 164px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
}

.gift-empty-illustration {
  position: relative;
  width: 112px;
  height: 76px;
  opacity: 0.78;
}

.gift-empty-illustration::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 34px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #cfd3df, #bcc2d1);
  box-shadow: 0 8px 18px rgba(146, 153, 176, 0.16);
}

.gift-empty-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18px 54px, #cfd3df 0 4px, transparent 5px),
    radial-gradient(circle at 94px 56px, #cfd3df 0 4px, transparent 5px),
    radial-gradient(circle at 72px 62px, #d7dbe5 0 9px, transparent 10px),
    linear-gradient(180deg, #dfe3ec 0%, #d2d7e3 100%);
  clip-path: polygon(0 73%, 13% 56%, 27% 62%, 43% 34%, 59% 51%, 73% 37%, 87% 49%, 100% 69%, 100% 100%, 0 100%);
}

.gift-empty-label {
  font-size: 13px;
  color: #c2c8d8;
}

.gift-history-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 64px;
  padding: 13px 14px 12px;
  margin-top: 10px;
  border: 1px solid rgba(229, 234, 244, 0.96);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fffefb 100%);
  box-shadow: 0 8px 18px rgba(20, 27, 48, 0.032);
}

.gift-history-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #f6d98d 0%, #d6a63e 100%);
  border-radius: 2px;
}

.gift-history-copy-block {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.gift-history-success {
  display: block;
  min-width: 0;
  color: #18ad69;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: lowercase;
  letter-spacing: 0;
}

.gift-history-time {
  display: block;
  color: #8a92a6;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
}

.gift-history-amount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 98px;
  min-height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(209, 176, 95, 0.88);
  background: linear-gradient(180deg, #fffaf0 0%, #f7e4a8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 252, 239, 0.96), 0 2px 7px rgba(191, 145, 32, 0.08);
}

.gift-history-amount-pill img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}

.gift-history-amount-pill span {
  color: #8a6505;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.language-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.language-item {
  min-height: 54px;
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.language-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-flag {
  font-size: 24px;
}

.language-check {
  color: var(--brand-strong);
}

.settings-profile-card,
.settings-section,
.vip-top-card,
.vip-banner-card,
.announcement-card,
.feedback-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.settings-profile-card {
  padding: 16px;
}

.settings-avatar-row,
.settings-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-avatar-row {
  margin-bottom: 14px;
}

.settings-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
}

.settings-line {
  width: 100%;
  min-height: 46px;
  padding: 0;
  color: var(--text);
}

.settings-line-static {
  cursor: default;
}

.settings-section {
  margin-top: 16px;
  padding: 16px;
}

.settings-section h3 {
  margin: 0 0 14px;
}

#page-settings .detail-header {
  padding-top: calc(24px + var(--safe-top)) !important;
  padding-bottom: 46px;
}

#page-settings .settings-profile-card {
  margin-top: -22px;
  padding: 18px 16px 14px;
  border-radius: 18px;
}

#page-settings .settings-avatar-row {
  margin-bottom: 10px;
}

#page-settings .settings-avatar {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(255, 112, 113, 0.12);
}

#page-settings .settings-avatar-row > span {
  color: #7f88a1;
  font-size: 14px;
}

#page-settings .settings-line {
  min-height: 52px;
}

#page-settings .settings-line > span {
  color: #7a839d;
  font-size: 14px;
}

#page-settings .settings-line strong {
  color: #1b2540;
  font-size: 15px;
}

#page-settings .settings-section {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
}

#page-settings .settings-section h3 {
  position: relative;
  padding-left: 12px;
  font-size: 15px;
  color: #13203f;
}

#page-settings .settings-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: #ff6b69;
}

#page-settings .settings-menu-item {
  min-height: 58px;
}

#page-settings .settings-menu-item-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#page-settings .settings-menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff5f5 0%, #ffeaea 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 121, 120, 0.12);
}

#page-settings .settings-menu-item-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

#page-settings .settings-menu-item > span:last-child {
  color: #7d86a0;
  font-size: 14px;
}

#page-settings .settings-menu-item-static {
  cursor: default;
}

#page-beginners-guide {
  padding-top: 56px;
  padding-bottom: 26px;
}

#page-beginners-guide .plain-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 390px);
  box-sizing: border-box;
  z-index: 24;
  margin: 0;
  padding: 6px 2px 12px;
  background: #f5f7ff;
  box-shadow: 0 1px 0 rgba(224, 229, 242, 0.92);
}

#page-beginners-guide .plain-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #151d31;
}

.guide-page-body {
  display: grid;
  gap: 16px;
}

.guide-section-card,
.guide-footer-banner-frame {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
}

.guide-section-card {
  padding: 16px 14px 14px;
}

.guide-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guide-step-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7a76, #ff5d63);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(255, 98, 97, 0.18);
}

.guide-section-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #18213c;
}

.guide-section-head p {
  margin: 5px 0 0;
  color: #73809b;
  font-size: 12px;
  line-height: 1.4;
  display: none;
}

.guide-point-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: #25314d;
  font-size: 13px;
  line-height: 1.45;
}

.guide-point-list li::marker {
  color: #ff6c69;
}

.guide-image-frame {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefe, #fff8f5);
  box-shadow: inset 0 0 0 1px #f2e9e7;
}

.guide-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-image-pair {
  display: grid;
  gap: 12px;
}

.guide-break {
  display: flex;
  justify-content: center;
  padding: 2px 0 0;
}

.guide-break span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 104, 105, 0), rgba(255, 104, 105, 0.95), rgba(255, 104, 105, 0));
}

.guide-footer-banner-frame {
  padding: 8px;
}

.guide-footer-banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

#page-about-us {
  padding-top: 0;
}

.about-page-body {
  display: grid;
  gap: 0;
}

.about-hero-frame {
  margin: -12px -12px 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f8ff 0%, #eef3ff 100%);
}

.about-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.about-link-list {
  display: grid;
  gap: 10px;
}

.about-link-card {
  min-height: 60px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(245, 121, 132, 0.12);
  box-shadow: none;
}

.about-link-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #16213d;
  font-size: 15px;
  font-weight: 600;
}

.about-link-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-link-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.about-link-arrow {
  color: #8d97b2;
  font-size: 20px;
  line-height: 1;
}

.agreement-page-body {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.agreement-header {
  padding: 4px 0 12px;
}

.agreement-header h2 {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agreement-header .back-button,
.agreement-header .header-spacer {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.agreement-copy-card,
.agreement-license-frame {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.agreement-copy-card {
  padding: 16px;
  color: #20263e;
  font-size: 14px;
  line-height: 1.55;
}

.agreement-copy-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.agreement-copy-card p {
  margin: 0;
}

.agreement-copy-card p + p {
  margin-top: 12px;
}

.agreement-page-body-license {
  padding-top: 14px;
}

.agreement-license-frame {
  padding: 8px;
}

.agreement-license-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.home-controller-intro {
  margin-top: 12px;
  padding: 14px;
}

.home-controller-intro p {
  margin: 0;
  color: #66708a;
  font-size: 12px;
  line-height: 1.45;
}

.home-controller-card {
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  padding: 14px;
}

.home-controller-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-controller-head h3 {
  margin: 0;
  font-size: 15px;
}

.home-controller-head span {
  color: #8c95ac;
  font-size: 11px;
}

.home-controller-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.home-controller-item {
  display: grid;
  gap: 12px;
  border: 1px solid #eef1f8;
  border-radius: 14px;
  background: #fbfcff;
  padding: 12px;
}

.home-controller-item-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.home-controller-item-main-vertical {
  flex-direction: column;
  gap: 12px;
}

.home-controller-item-main-text {
  gap: 0;
}

.home-controller-preview-wrap {
  width: 100%;
}

.home-controller-preview-block.home-category-tab {
  width: 100%;
  min-width: 0;
  min-height: 84px;
}

.home-controller-preview-block.home-category-tab-wide {
  min-height: 94px;
}

.home-controller-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.home-controller-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.home-controller-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4f4;
  color: #ff6b6f;
  font-size: 10px;
  font-weight: 700;
}

.home-controller-item-main strong,
.home-controller-item-main span {
  display: block;
}

.home-controller-item-main strong {
  font-size: 13px;
  color: #1f2640;
}

.home-controller-item-main span {
  margin-top: 2px;
  color: #7e879c;
  font-size: 11px;
}

.home-controller-preview {
  width: 56px;
  height: 42px;
  border-radius: 10px;
  background: #edf1ff center/cover no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.home-controller-preview img {
  width: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.home-controller-banner-preview {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f3fb;
  box-shadow: inset 0 0 0 1px #edf1f8;
}

.home-controller-banner-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-controller-field {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.home-controller-field span {
  margin-top: 0;
  color: #8b93a8;
  font-size: 10px;
  font-weight: 700;
}

.home-controller-field input {
  height: 34px;
  border: 1px solid #eef1f8;
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  color: #1f2640;
}

.home-controller-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.home-controller-groups {
  display: grid;
  gap: 10px;
}

.home-controller-group-label {
  color: #8b93a8;
  font-size: 10px;
  font-weight: 700;
  margin-right: 2px;
}

.home-controller-group-card {
  border: 1px solid #eef1f8;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.home-controller-actions button {
  min-width: 36px;
  height: 30px;
  border: 1px solid #ffd0d1;
  border-radius: 999px;
  background: #fff;
  color: #ff6b6f;
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
}

.feedback-card {
  margin-top: 12px;
  padding: 16px;
  min-height: 220px;
}

.feedback-card p {
  margin: 0;
  color: #8690a8;
  line-height: 1.45;
}

.feedback-banner-block {
  margin-top: 18px;
  text-align: center;
}

.feedback-banner-block img {
  max-width: 220px;
}

.feedback-submit-button {
  margin-top: 16px;
}

.announcement-card {
  margin-top: 12px;
  overflow: hidden;
}

.announcement-card img {
  width: 100%;
  display: block;
}

.announcement-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.announcement-post-card {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  box-shadow: 0 8px 24px rgba(28, 34, 66, 0.06);
  text-align: left;
}

.announcement-post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 112, 112, 0.12);
  color: #ff6666;
  font-size: 11px;
  font-weight: 700;
}

.announcement-post-badge-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.announcement-post-badge-icon img {
  width: 12px;
  height: 12px;
  display: block;
  filter: invert(45%) sepia(94%) saturate(1902%) hue-rotate(329deg) brightness(101%) contrast(101%);
}

.announcement-post-copy {
  margin-top: 10px;
}

.announcement-post-copy h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  color: #1e2c49;
}

.announcement-post-copy p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7893;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.announcement-post-meta {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: #ff7e73;
  font-weight: 700;
}

.vip-page {
  --vip-surface: #ff787b;
  background: linear-gradient(180deg, #f7f8ff 0%, #eff2fb 100%);
  padding: 52px 0 28px;
}

.vip-header.detail-header.coral {
  background: var(--vip-surface) !important;
  color: #fff !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: 32px 1fr 32px !important;
  align-items: center !important;
  justify-items: stretch !important;
}

.vip-header.detail-header.coral h2 {
  grid-column: 2;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  position: static !important;
  transform: none !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 32px !important;
}

.vip-header.detail-header.coral .back-button {
  color: #fff !important;
  position: static !important;
  transform: none !important;
  justify-self: start;
  width: 32px !important;
  height: 32px !important;
}

.vip-header.detail-header.coral .header-spacer {
  width: 32px !important;
  height: 32px !important;
  justify-self: end;
}

.vip-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--mobile-frame);
  max-width: 100vw;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px 12px;
  justify-content: center;
  z-index: 28;
  box-shadow: none;
}

.vip-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.vip-header .back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.vip-shell {
  display: grid;
  gap: 14px;
  padding: 0;
}

.vip-block {
  position: relative;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 33, 64, 0.05);
  overflow: hidden;
}

.vip-hero-panel {
  position: relative;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: none;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, var(--vip-surface) 0 132px, #ffffff 132px 100%);
}

.vip-profile-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vip-avatar-shell {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 228, 228, 0.92));
  box-shadow: 0 8px 16px rgba(140, 31, 38, 0.16);
}

.vip-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #ffdfe0;
}

.vip-avatar-image.avatar-sprite {
  width: 100%;
  height: 100%;
}

.vip-profile-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #fff;
}

.vip-tier-chip {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: none;
}

.vip-tier-chip img {
  width: auto;
  height: 24px;
  max-width: 68px;
  display: block;
  object-fit: contain;
}

.vip-tier-chip em {
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.01em;
}

.vip-profile-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: none;
}

.vip-profile-subline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.vip-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.vip-stat-card {
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  display: grid;
  align-content: center;
  gap: 4px;
}

.vip-stat-card strong {
  color: #14213d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.vip-stat-card:first-child strong {
  color: #ff615e;
  font-size: 19px;
  font-weight: 500;
}

.vip-stat-card:last-child strong {
  color: #132347;
  font-size: 16px;
}

.vip-stat-card span {
  color: #5f6f91;
  font-size: 11px;
  font-weight: 500;
}

.vip-settle-note {
  margin-top: 16px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #d7dfef;
  background: #f5f7fc;
  display: flex;
  align-items: center;
  color: #6a7794;
  font-size: 11px;
  font-weight: 600;
}

.vip-card-slider {
  --vip-card-width: min(298px, calc(100% - 12px));
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  overscroll-behavior-x: contain;
}

.vip-card-slider::before,
.vip-card-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 3;
  pointer-events: none;
}

.vip-card-slider::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 42%, rgba(255, 255, 255, 0));
}

.vip-card-slider::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 42%, rgba(255, 255, 255, 0));
}

.vip-card-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-padding-inline: calc((100% - var(--vip-card-width)) / 2);
  padding: 0 calc((100% - var(--vip-card-width)) / 2);
  margin: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.vip-card-track::-webkit-scrollbar {
  display: none;
}

.vip-level-board {
  position: relative;
  flex: 0 0 var(--vip-card-width);
  width: var(--vip-card-width);
  scroll-snap-align: center;
  margin-top: 0;
  aspect-ratio: 266 / 140;
  padding: 13px 37px 12px 13px;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: transparent;
  background-image: url("");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 12px 22px rgba(25, 36, 71, 0.1);
  transition: transform 160ms ease, opacity 160ms ease;
}

.vip-level-board:not(.is-selected) {
  opacity: 0.88;
}

.vip-level-board.is-selected {
  transform: translateY(-1px);
}

.vip-level-board::before {
  content: none;
  pointer-events: none;
}

.vip-level-board-top,
.vip-level-board-copy {
  position: relative;
  z-index: 1;
}

.vip-level-board-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.vip-level-board-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.vip-level-board-badge img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.vip-card-status {
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.vip-card-status img {
  width: 11px;
  height: 11px;
  display: block;
  object-fit: contain;
}

.vip-card-status.is-achieved {
  color: #cbffb8;
}

.vip-card-status.is-locked {
  color: #fff5de;
}

.vip-card-status em {
  font-style: normal;
}

.vip-level-board-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  max-width: 136px;
  font-size: 11px;
  line-height: 1.18;
  color: #eef5ff;
}

.vip-level-board-copy {
  margin-top: 11px;
  display: grid;
  gap: 7px;
}

.vip-level-board-chip {
  width: fit-content;
  min-height: 16px;
  padding: 0 7px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.vip-level-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.vip-level-board-row strong {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.vip-level-board-row-small {
  align-items: start;
  color: #eef4ff;
}

.vip-level-board-row-small span {
  max-width: 132px;
  line-height: 1.24;
}

.vip-level-board.is-locked .vip-level-board-row-small {
  justify-content: space-between;
  gap: 8px;
}

.vip-level-board.is-locked .vip-level-board-row-small span {
  display: block;
  max-width: none;
  font-size: 9px;
  white-space: nowrap;
}

.vip-level-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(185, 33, 35, 0.45);
  overflow: hidden;
}

.vip-level-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd76f, #fff0aa);
}

.vip-level-board-medal {
  position: absolute;
  right: 11px;
  top: 10px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.vip-level-board-medal img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.vip-level-board-side {
  display: none;
}

.vip-level-board-progress-value {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 1;
  min-height: 14px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
}

.vip-block {
  margin: 0 12px;
  padding: 14px;
}

.vip-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #12203c;
}

.vip-section-head-diamond img {
  width: 18px;
  height: 18px;
}

.vip-section-head-crown img {
  width: 18px;
  height: 18px;
}

.vip-benefit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.vip-benefit-row {
  min-height: 74px;
  border-radius: 8px;
  border: 1px solid #edf0f8;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.vip-benefit-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9189, #ffc095);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.vip-benefit-icon-box img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.vip-benefit-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.vip-benefit-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: #1a2440;
}

.vip-benefit-copy span {
  color: #647392;
  font-size: 12px;
  line-height: 1.35;
}

.vip-benefit-values {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.vip-benefit-values-single {
  align-self: center;
}

.vip-value-pill {
  min-width: 96px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #ffb26d;
  background: #fffaf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ff9444;
  font-size: 12px;
  font-weight: 800;
}

.vip-value-pill img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.vip-value-pill em {
  font-style: normal;
}

.vip-my-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
}

.vip-my-card {
  min-height: 252px;
  height: 100%;
  border-radius: 10px;
  border: 1px solid #edf1f8;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vip-my-art {
  position: relative;
  flex: 0 0 88px;
  width: 100%;
  height: 88px;
  min-height: 88px;
  background: linear-gradient(135deg, #ff8f86 0%, #ffb085 100%);
  overflow: hidden;
}

.vip-my-art-banner {
  background: linear-gradient(180deg, #ff6a62 0%, #ff4f56 100%);
}

.vip-my-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.vip-my-art-banner img {
  object-fit: contain;
  object-position: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.vip-my-chips {
  display: flex;
  gap: 4px;
  margin: -11px 8px 0;
  position: relative;
  z-index: 2;
  min-height: 22px;
  flex-shrink: 0;
}

.vip-my-chips-single {
  justify-content: flex-start;
}

.vip-my-chips span {
  min-width: 48px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(43, 41, 45, 0.9);
  color: #ffd96b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
}

.vip-my-chips img {
  width: 10px;
  height: 10px;
  display: block;
  object-fit: contain;
}

.vip-my-chips em {
  font-style: normal;
}

.vip-my-card strong {
  margin: 10px 10px 0;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a2440;
  line-height: 1.2;
}

.vip-my-card p {
  margin: 4px 10px 0;
  min-height: 34px;
  flex: 1 1 auto;
  color: #63718d;
  font-size: 11px;
  line-height: 1.35;
}

.vip-my-action {
  width: calc(100% - 20px);
  height: 32px;
  margin: 10px;
  margin-top: auto;
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.vip-my-action-muted {
  border: 0;
  background: #c8cedd;
  color: #6e7690;
}

.vip-my-action-outline {
  border: 1px solid #ff7b73;
  background: #fff;
  color: #ff635f;
}

.vip-my-action-claim {
  border: 0;
  background: linear-gradient(180deg, #ff7d74 0%, #ff5f60 100%);
  color: #fff;
}

.vip-my-action-claim:disabled,
.vip-my-action-muted:disabled {
  opacity: 1;
}

.vip-tabs-block {
  padding-top: 12px;
}

.vip-tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  background: #f5f6fc;
}

.vip-tab-button {
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6f7c99;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.vip-tab-button.active {
  background: #fff;
  color: #ff5e61;
  font-weight: 700;
}

.vip-tab-button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 52px;
  height: 2px;
  transform: translateX(-50%);
  background: #ff6668;
  border-radius: 999px;
}

.vip-tab-panel {
  display: none;
  margin-top: 14px;
}

.vip-tab-panel.active {
  display: block;
}

.vip-history-list {
  display: grid;
  gap: 16px;
}

.vip-history-item {
  display: grid;
  gap: 4px;
}

.vip-history-item.is-hidden {
  display: none;
}

.vip-history-list .gift-empty-state-history {
  padding: 28px 0 12px;
}

.vip-history-item strong {
  color: #5f85ff;
  font-size: 15px;
  font-weight: 500;
}

.vip-history-item span {
  color: #32456d;
  font-size: 13px;
}

.vip-history-item-maintenance strong {
  color: #ff5f60;
}

.vip-history-item-maintenance span {
  color: #465575;
}

.vip-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.vip-history-meta time {
  color: #6c7791;
}

.vip-history-meta em {
  font-style: normal;
  color: #19b655;
  font-weight: 700;
  white-space: nowrap;
}

.vip-history-item-maintenance .vip-history-meta em {
  color: #76839e;
}

.vip-view-all-button {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6d6e 0%, #ff8a84 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.vip-rules-hero {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-bottom: 18px;
  text-align: center;
}

.vip-rules-hero strong {
  color: #ff5f60;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.vip-rules-hero span {
  color: #3f4f72;
  font-size: 13px;
  line-height: 1.2;
}

.vip-rule-card {
  margin-top: 18px;
  padding: 36px 16px 16px;
  border-radius: 10px;
  background: #fff;
  position: relative;
  box-shadow: inset 0 0 0 1px #eef1f8;
}

.vip-rule-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: 142px;
  max-width: calc(100% - 48px);
  height: 28px;
  padding: 0 16px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #ff716d 0%, #ff5f60 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 96, 97, 0.12);
}

.vip-rule-badge::before,
.vip-rule-badge::after {
  content: none;
}

.vip-rule-card p {
  margin: 0;
  color: #4f5e7e;
  font-size: 12px;
  line-height: 2;
}

/* Mobile app shell: keep taps visually clean without browser press flashes. */
* {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
[role="button"],
input,
select,
textarea,
.menu-item,
.quick-action,
.service-item,
.home-controlled-card,
.home-category-tab,
.game-number,
.amount-button,
.deposit-method-card,
.deposit-route-card,
.withdraw-method-card,
.bottom-nav button {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 0 !important;
  box-shadow: none;
}

button:active,
a:active,
[role="button"]:active,
.menu-item:active,
.quick-action:active,
.service-item:active,
.home-controlled-card:active,
.home-category-tab:active,
.game-number:active,
.amount-button:active,
.deposit-method-card:active,
.deposit-route-card:active,
.deposit-order-copy:active,
.deposit-balance-refresh:active,
.withdraw-method-card:active,
.bottom-nav button:active {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: inherit;
}

/* Main reliability polish: keep mobile headers/images stable across browser bars and tall phones. */
.page.active {
  min-height: 100dvh;
}

.plain-header,
.gradient-header,
.detail-header,
.activity-main-header,
.activity-bonus-page-header,
.top-sticky {
  padding-top: calc(var(--safe-top) + 10px);
}

.wallet-page .wallet-header {
  padding-top: calc(10px + var(--safe-top));
}

.activity-info-card {
  min-height: 0;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.activity-info-card img {
  height: clamp(118px, 31vw, 152px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.activity-banner-card img,
.activity-footer-only-banner img {
  height: clamp(112px, 29vw, 154px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.activity-top-cards {
  align-items: stretch;
}

.activity-info-copy {
  padding: 8px 10px 12px;
}

.activity-info-copy p {
  min-height: 0;
}

.wheel-page {
  overflow-x: hidden;
}

.wheel-stage {
  width: min(92vw, 318px);
  max-width: 318px;
}

.wheel-disc-button,
.wheel-disc-image {
  width: min(74vw, 286px);
  height: min(74vw, 286px);
}

.wheel-disc-image {
  will-change: transform;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.wheel-center-badge {
  width: clamp(68px, 22vw, 88px);
  height: clamp(68px, 22vw, 88px);
}

.wheel-base-image {
  max-width: min(92vw, 318px);
  margin-left: auto;
  margin-right: auto;
}

/* Mobile responsive cleanup pass: shared frame, activity banners, gateways, wheel. */
.boot-loader-inner,
.deposit-page .deposit-header,
#page-wheel-history .plain-header {
  width: var(--mobile-frame);
  max-width: 100%;
}

/* Canonical mobile frame: all fixed bars must match the app width on every phone. */
#page-home .white-topbar,
.home-sticky-shortcuts,
#page-promotion .agency-header,
#page-promo-history .plain-header,
#page-promo-subordinates .plain-header,
#page-promo-commission .plain-header,
#page-promo-rules .plain-header,
#page-promo-ratio .plain-header,
#page-promo-agent-support .promo-agent-header,
.withdraw-page .withdraw-header,
.withdraw-bank-header,
.withdraw-bank-list-sticky-head,
.withdraw-bank-account-page .withdraw-bank-header,
.withdraw-upi-method-page .withdraw-bank-header,
.withdraw-upi-form-page .withdraw-bank-header,
.deposit-page .deposit-header,
.activity-bonus-page-header,
.wheel-header,
#page-wheel-history .plain-header,
#page-transaction-history .plain-header,
#page-game-history .plain-header,
#page-notification .plain-header,
#page-beginners-guide .plain-header,
.vip-header,
.bottom-nav,
.deposit-submit-bar,
.withdraw-upi-add-button {
  width: var(--mobile-frame) !important;
  max-width: 100vw !important;
  left: 50%;
  transform: translateX(-50%);
}

.withdraw-sheet {
  width: var(--mobile-frame) !important;
  max-width: 100vw !important;
}

/* Canonical compact top header size. Keeps titles/actions aligned without cutting. */
#page-promotion .agency-header,
#page-promo-history .plain-header,
#page-promo-subordinates .plain-header,
#page-promo-commission .plain-header,
#page-promo-rules .plain-header,
#page-promo-ratio .plain-header,
#page-promo-agent-support .promo-agent-header,
.withdraw-page .withdraw-header,
.withdraw-bank-header,
.deposit-page .deposit-header,
.activity-bonus-page-header,
.wheel-header,
#page-wheel-history .plain-header,
#page-transaction-history .plain-header,
#page-game-history .plain-header,
#page-notification .plain-header,
#page-beginners-guide .plain-header,
.vip-header {
  min-height: calc(52px + var(--safe-top)) !important;
  padding-top: calc(8px + var(--safe-top)) !important;
  padding-bottom: 8px !important;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

#page-promotion {
  padding-top: var(--promo-header-height, calc(56px + var(--safe-top))) !important;
}

/* Activity detail pages: keep every white top header the same size and fixed above content. */
#page-activity-bonus .plain-header,
#page-activity-bonus-record .plain-header,
#page-first-deposit-bonus .plain-header,
#page-invitation-bonus .plain-header,
#page-invitation-rules .plain-header,
#page-invitation-record .plain-header,
#page-betting-rebate .plain-header,
#page-super-jackpot .plain-header,
#page-super-jackpot-rule .plain-header,
#page-attendance-bonus .plain-header,
#page-attendance-rules .plain-header,
#page-attendance-history .plain-header,
#page-member-activity .plain-header,
#page-lucky-10 .plain-header,
#page-youtube-contest .plain-header,
#page-turbo-agent .plain-header {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: var(--mobile-frame) !important;
  max-width: 100vw !important;
  min-height: calc(52px + var(--safe-top)) !important;
  margin: 0 !important;
  padding: calc(8px + var(--safe-top)) 12px 8px !important;
  box-sizing: border-box !important;
  z-index: 42 !important;
  background: #fff !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04) !important;
}

#page-activity-bonus .plain-header h2,
#page-activity-bonus-record .plain-header h2,
#page-first-deposit-bonus .plain-header h2,
#page-invitation-bonus .plain-header h2,
#page-invitation-rules .plain-header h2,
#page-invitation-record .plain-header h2,
#page-betting-rebate .plain-header h2,
#page-super-jackpot .plain-header h2,
#page-super-jackpot-rule .plain-header h2,
#page-attendance-bonus .plain-header h2,
#page-attendance-rules .plain-header h2,
#page-attendance-history .plain-header h2,
#page-member-activity .plain-header h2,
#page-lucky-10 .plain-header h2,
#page-youtube-contest .plain-header h2,
#page-turbo-agent .plain-header h2 {
  position: static !important;
  transform: none !important;
  width: auto !important;
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 32px !important;
  color: #111722 !important;
  text-align: center !important;
}

#page-activity-bonus .plain-header .back-button,
#page-activity-bonus-record .plain-header .back-button,
#page-first-deposit-bonus .plain-header .back-button,
#page-invitation-bonus .plain-header .back-button,
#page-invitation-rules .plain-header .back-button,
#page-invitation-record .plain-header .back-button,
#page-betting-rebate .plain-header .back-button,
#page-super-jackpot .plain-header .back-button,
#page-super-jackpot-rule .plain-header .back-button,
#page-attendance-bonus .plain-header .back-button,
#page-attendance-rules .plain-header .back-button,
#page-attendance-history .plain-header .back-button,
#page-member-activity .plain-header .back-button,
#page-lucky-10 .plain-header .back-button,
#page-youtube-contest .plain-header .back-button,
#page-turbo-agent .plain-header .back-button,
#page-activity-bonus .plain-header .header-spacer,
#page-activity-bonus-record .plain-header .header-spacer,
#page-first-deposit-bonus .plain-header .header-spacer,
#page-invitation-bonus .plain-header .header-spacer,
#page-invitation-rules .plain-header .header-spacer,
#page-invitation-record .plain-header .header-spacer,
#page-betting-rebate .plain-header .header-spacer,
#page-super-jackpot .plain-header .header-spacer,
#page-super-jackpot-rule .plain-header .header-spacer,
#page-attendance-bonus .plain-header .header-spacer,
#page-attendance-rules .plain-header .header-spacer,
#page-attendance-history .plain-header .header-spacer,
#page-member-activity .plain-header .header-spacer,
#page-lucky-10 .plain-header .header-spacer,
#page-youtube-contest .plain-header .header-spacer,
#page-turbo-agent .plain-header .header-spacer {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
}

#page-activity-bonus,
#page-activity-bonus-record,
#page-first-deposit-bonus,
#page-invitation-bonus,
#page-invitation-rules,
#page-invitation-record,
#page-betting-rebate,
#page-super-jackpot,
#page-super-jackpot-rule,
#page-attendance-bonus,
#page-attendance-rules,
#page-attendance-history,
#page-member-activity,
#page-lucky-10,
#page-youtube-contest,
#page-turbo-agent {
  padding-top: calc(52px + var(--safe-top)) !important;
}

#page-betting-rebate,
#page-attendance-bonus {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

#page-betting-rebate .rebate-summary-card,
#page-betting-rebate .history-section {
  margin-top: 16px !important;
}

#page-betting-rebate .rebate-tab {
  box-shadow: 0 8px 20px rgba(255, 96, 99, 0.16);
}

#page-activity-bonus .activity-bonus-banner-card,
#page-invitation-bonus .invite-bonus-hero,
#page-super-jackpot .jackpot-hero,
#page-attendance-bonus .attendance-header-card {
  margin-top: 0 !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#page-activity-bonus .activity-bonus-banner-card img,
#page-invitation-bonus .invite-bonus-hero img,
#page-super-jackpot .jackpot-hero img,
#page-attendance-bonus .attendance-header-bg {
  border-radius: 0 !important;
}

#page-attendance-bonus .attendance-day-grid {
  margin-top: 12px !important;
}

.page.active {
  min-height: 100dvh;
  padding-bottom: max(18px, var(--safe-bottom));
}

.bottom-nav {
  width: var(--mobile-frame);
  max-width: 100%;
  padding-bottom: calc(8px + var(--safe-bottom));
}

.plain-header,
.gradient-header,
.detail-header,
.top-sticky,
.deposit-page .deposit-header,
#page-wheel-history .plain-header {
  padding-top: calc(var(--safe-top) + 8px);
}

#page-activity {
  padding-left: clamp(10px, 3vw, 14px);
  padding-right: clamp(10px, 3vw, 14px);
  padding-bottom: calc(104px + var(--safe-bottom));
}

.activity-main-header {
  margin-left: calc(-1 * clamp(10px, 3vw, 14px));
  margin-right: calc(-1 * clamp(10px, 3vw, 14px));
  padding-top: calc(var(--safe-top) + 10px);
}

.activity-main-actions {
  gap: clamp(7px, 2.2vw, 12px);
}

.activity-main-media {
  width: clamp(40px, 11vw, 50px);
  height: clamp(40px, 11vw, 50px);
}

.activity-main-action {
  font-size: clamp(10px, 3vw, 12px);
}

.activity-info-card,
.activity-banner-card,
.activity-footer-only-banner {
  border-radius: 12px;
  overflow: hidden;
  contain: paint;
}

.activity-info-card img {
  width: 100%;
  height: clamp(108px, 29vw, 146px);
  object-fit: cover;
  object-position: center;
}

.activity-banner-card img,
.activity-footer-only-banner img {
  width: 100%;
  height: auto;
  min-height: clamp(104px, 26vw, 138px);
  object-fit: cover;
  object-position: center;
}

.activity-banner-card .activity-banner-name {
  min-height: 42px;
  display: flex;
  align-items: center;
}

@media (min-width: 400px) {
  .activity-info-card img {
    height: clamp(124px, 30vw, 160px);
  }

  .activity-banner-card img,
  .activity-footer-only-banner img {
    min-height: clamp(126px, 28vw, 168px);
  }
}

#page-deposit {
  padding-left: clamp(10px, 3vw, 14px);
  padding-right: clamp(10px, 3vw, 14px);
  padding-bottom: calc(var(--deposit-bar-space) + 18px + var(--safe-bottom));
}

.deposit-methods-turbo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 2.2vw, 10px);
}

.deposit-method-card {
  min-height: clamp(84px, 23vw, 98px);
  padding: clamp(9px, 2.5vw, 12px);
}

.deposit-method-icon img {
  width: clamp(30px, 9vw, 38px);
  height: clamp(30px, 9vw, 38px);
}

.deposit-method-card strong {
  font-size: clamp(10px, 3vw, 12px);
}

.deposit-method-range,
.deposit-method-card small {
  font-size: clamp(9px, 2.6vw, 11px);
}

.deposit-channel-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deposit-route-card {
  min-height: 72px;
  padding: 12px 10px;
}

.wheel-page {
  min-height: 100dvh;
  padding-bottom: var(--safe-bottom);
}

.wheel-page.active {
  padding-top: calc(48px + var(--safe-top));
}

.wheel-header {
  width: var(--mobile-frame);
  max-width: 100%;
  min-height: calc(48px + var(--safe-top));
  padding: calc(8px + var(--safe-top)) 14px 8px;
}

.wheel-header h2 {
  min-width: 0;
  font-size: clamp(16px, 4.5vw, 19px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel-main-screen {
  min-height: calc(100dvh - 48px - var(--safe-top));
  padding-bottom: calc(16px + var(--safe-bottom));
}

.wheel-stage,
.wheel-canvas-shell {
  width: min(88vw, 348px);
}

.wheel-disc-button,
.wheel-disc-image,
#wheel-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.wheel-center-badge {
  width: clamp(76px, 22vw, 96px);
  height: clamp(76px, 22vw, 96px);
}

.wheel-center-badge strong {
  font-size: clamp(17px, 5.6vw, 22px);
}

.wheel-result-card {
  width: min(calc(100vw - 28px), 340px);
}

#page-wheel-history {
  padding-top: calc(54px + var(--safe-top));
}

#page-wheel-history .plain-header {
  min-height: calc(52px + var(--safe-top));
}

/* Stability pass: only the top Gifts/Attendance cards need locked image blocks. */
.activity-info-card {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  contain: paint;
}

.activity-info-card img {
  width: 100%;
  height: clamp(116px, 30vw, 150px) !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 12px 0 0 !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

/* Unified app navigation header sizing. Matches Activity detail headers. */
.page > .plain-header,
#page-about-us .detail-header,
.deposit-page .deposit-header,
.withdraw-page .withdraw-header,
.withdraw-bank-header,
.withdraw-bank-list-page .withdraw-bank-header,
.withdraw-bank-account-page .withdraw-bank-header,
.withdraw-upi-method-page .withdraw-bank-header,
.withdraw-upi-form-page .withdraw-bank-header,
#page-promotion .agency-header,
#page-promo-agent-support .promo-agent-header,
#page-wheel-history .plain-header,
.wheel-header,
.vip-header {
  min-height: calc(52px + var(--safe-top)) !important;
  padding: calc(8px + var(--safe-top)) 12px 8px !important;
  box-sizing: border-box !important;
}

.page > .plain-header h2,
#page-about-us .detail-header h2,
.deposit-page .deposit-header h2,
.withdraw-page .withdraw-header h2,
.withdraw-bank-header h2,
.withdraw-bank-list-page .withdraw-bank-header h2,
.withdraw-bank-account-page .withdraw-bank-header h2,
.withdraw-upi-method-page .withdraw-bank-header h2,
.withdraw-upi-form-page .withdraw-bank-header h2,
#page-promotion .agency-header h2,
#page-promo-agent-support .promo-agent-header h2,
#page-wheel-history .plain-header h2,
.wheel-header h2,
.vip-header h2 {
  position: static !important;
  transform: none !important;
  width: auto !important;
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 32px !important;
  color: #111722 !important;
  text-align: center !important;
}

.page > .plain-header .back-button,
.page > .plain-header .header-spacer,
#page-about-us .detail-header .back-button,
#page-about-us .detail-header .header-spacer,
.deposit-page .deposit-header .back-button,
.deposit-page .deposit-header .header-spacer,
.withdraw-page .withdraw-header .back-button,
.withdraw-page .withdraw-header .header-spacer,
.withdraw-bank-header .back-button,
.withdraw-bank-header .header-spacer,
#page-promotion .agency-header .back-button,
#page-promotion .agency-header .agency-header-spacer,
#page-promo-agent-support .promo-agent-header .back-button,
#page-promo-agent-support .promo-agent-header .header-spacer,
#page-wheel-history .plain-header .back-button,
#page-wheel-history .plain-header .header-spacer,
.wheel-header .back-button,
.wheel-header .header-spacer,
.vip-header .back-button,
.vip-header .header-spacer {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
}

#page-home {
  --home-header-height: 48px;
  padding-top: calc(var(--home-header-height) + var(--safe-top) + var(--home-header-gap, 6px)) !important;
}

#page-home .white-topbar {
  background: #fff !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 4px 14px rgba(21, 29, 49, 0.05) !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: calc(var(--home-header-height, 48px) + var(--safe-top)) !important;
  min-height: calc(var(--home-header-height, 48px) + var(--safe-top)) !important;
  max-height: calc(var(--home-header-height, 48px) + var(--safe-top)) !important;
  padding: calc(7px + var(--safe-top)) 14px 7px !important;
  overflow: visible !important;
}

#page-home .home-brand-logo {
  width: 138px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none !important;
}

#page-deposit-history .plain-header,
#page-withdraw-history .plain-header,
#page-notification .plain-header,
#page-announcement .plain-header,
#page-about-us .detail-header {
  background: #fff !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04) !important;
}

#page-notification {
  padding-top: calc(52px + var(--safe-top) + var(--detail-header-gap, 8px)) !important;
}

#page-transaction-history {
  padding-top: calc(132px + var(--safe-top)) !important;
}

#page-transaction-history .filter-row {
  top: calc(52px + var(--safe-top)) !important;
  padding-bottom: 14px !important;
  box-shadow: 0 10px 18px rgba(245, 247, 255, 0.96) !important;
}

#page-game-history {
  padding-top: calc(132px + var(--safe-top)) !important;
}

#page-game-history .plain-header {
  width: var(--mobile-frame, min(100vw, 430px)) !important;
  max-width: 100vw !important;
  min-height: calc(52px + var(--safe-top)) !important;
  padding: calc(8px + var(--safe-top)) 12px 8px !important;
  background: #fff !important;
}

#page-game-history .bet-history-fixed-panel {
  top: calc(52px + var(--safe-top)) !important;
  width: var(--mobile-frame, min(100vw, 430px)) !important;
  max-width: 100vw !important;
  padding: 10px 10px 16px !important;
}

#page-game-history .bet-history-category-row {
  display: none !important;
}

#page-game-history .bet-history-filter-row {
  margin-top: 0 !important;
}

/* Named page fixed headers: keep these headers visible and inside the mobile frame. */
#page-announcement,
#page-withdraw-history,
#page-deposit-history,
#page-gifts,
#page-about-us {
  padding-top: calc(52px + var(--safe-top)) !important;
  overflow-x: hidden !important;
}

#page-announcement .plain-header,
#page-withdraw-history .plain-header,
#page-deposit-history .plain-header,
#page-notification .plain-header,
#page-gifts .plain-header,
#page-about-us .detail-header {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: var(--mobile-frame, min(100vw, 430px)) !important;
  max-width: 100vw !important;
  min-height: calc(52px + var(--safe-top)) !important;
  margin: 0 !important;
  padding: calc(8px + var(--safe-top)) 12px 8px !important;
  box-sizing: border-box !important;
  z-index: 42 !important;
  background: #fff !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04) !important;
}

#page-notification,
#page-withdraw-history,
#page-deposit-history {
  --detail-header-gap: 8px;
  padding-top: calc(52px + var(--safe-top) + var(--detail-header-gap)) !important;
}

#page-home .white-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: var(--mobile-frame, min(100vw, 430px)) !important;
  max-width: 100vw !important;
  height: calc(var(--home-header-height, 48px) + var(--safe-top)) !important;
  min-height: calc(var(--home-header-height, 48px) + var(--safe-top)) !important;
  max-height: calc(var(--home-header-height, 48px) + var(--safe-top)) !important;
  padding: calc(7px + var(--safe-top)) 14px 7px !important;
  box-sizing: border-box !important;
  z-index: 42 !important;
  background: #fff !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 4px 14px rgba(21, 29, 49, 0.05) !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

#page-home .home-brand-logo {
  width: 138px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none !important;
}

#page-home .home-notify-button .dot {
  top: 5px !important;
  right: 5px !important;
  width: 6px !important;
  height: 6px !important;
}

#page-home.home-shortcuts-active .white-topbar,
#page-home.home-subpage .white-topbar {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

#page-home.home-shortcuts-active .white-topbar .home-brand-single,
#page-home.home-shortcuts-active .white-topbar .home-notify-button,
#page-home.home-subpage .white-topbar .home-brand-single,
#page-home.home-subpage .white-topbar .home-notify-button {
  opacity: 0 !important;
  pointer-events: none !important;
}

#page-home.home-shortcuts-active .home-sticky-shortcuts,
#page-home.home-subpage .home-sticky-shortcuts {
  z-index: 43 !important;
}

#page-about-us .about-hero-frame {
  margin-top: 0 !important;
}

/* Invite Wheel premium UI */
.wheel-intro-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 120, 88, 0.28) 0%, rgba(255, 120, 88, 0) 42%),
    linear-gradient(180deg, #120103 0%, #050001 100%);
}

.wheel-intro-content {
  position: relative;
  z-index: 1;
}

.wheel-intro-sparkles {
  position: absolute;
  inset: -20% -10% auto;
  height: 220px;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 214, 92, 0.18) 0%, rgba(255, 214, 92, 0) 55%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 88, 0.16) 0%, rgba(255, 120, 88, 0) 52%);
  pointer-events: none;
  animation: wheel-intro-glow 3.6s ease-in-out infinite alternate;
}

@keyframes wheel-intro-glow {
  from { opacity: 0.65; transform: translateY(0); }
  to { opacity: 1; transform: translateY(8px); }
}

.wheel-intro-subtitle,
.wheel-intro-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 18px 0;
}

.wheel-gift-card {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.22s ease;
}

.wheel-gift-card:not(:disabled):hover {
  transform: translateY(-3px);
}

.wheel-gift-card:disabled {
  cursor: default;
}

.wheel-gift-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-gift-lid {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 42px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #ff8f93 0%, #e41820 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  z-index: 2;
}

.wheel-gift-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-120%);
  animation: wheel-gift-shine 2.8s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes wheel-gift-shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.wheel-gift-icon {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.wheel-gift-card.opening .wheel-gift-box {
  animation: wheel-gift-shake 0.62s ease;
}

.wheel-gift-card.revealed .wheel-gift-lid {
  transform: translateY(-54px) rotate(-8deg);
  opacity: 0.15;
}

.wheel-gift-card.revealed .wheel-gift-shine {
  animation: none;
  opacity: 0;
}

@keyframes wheel-gift-shake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-2px) rotate(-3deg); }
  40% { transform: translateY(1px) rotate(3deg); }
  60% { transform: translateY(-3px) rotate(-2deg); }
  80% { transform: translateY(1px) rotate(2deg); }
}

.wheel-gift-card .wheel-gift-amount {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
}

.wheel-gift-card.revealed .wheel-gift-amount {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wheel-gift-card.active.revealed .wheel-gift-amount {
  animation: wheel-gift-amount-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wheel-gift-amount-pop {
  0% { transform: translateY(10px) scale(0.86); }
  70% { transform: translateY(-2px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

.wheel-intro-screen.wheel-intro-exit {
  animation: wheel-intro-exit 0.42s ease forwards;
  pointer-events: none;
}

@keyframes wheel-intro-exit {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.96); }
}

.wheel-intro-screen.wheel-intro-exit .wheel-gift-card.active .wheel-gift-amount {
  animation: wheel-gift-amount-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-main-screen.wheel-main-enter {
  animation: wheel-main-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wheel-main-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wheel-stage.is-spinning .wheel-light {
  animation-duration: 0.35s;
}

.wheel-stage.is-spinning #wheel-canvas {
  box-shadow: 0 0 42px rgba(255, 215, 0, 0.42), 0 0 18px rgba(255, 120, 72, 0.28);
}

.wheel-stage.is-spinning .wheel-pointer {
  animation: wheel-pointer-tick 0.35s ease-in-out infinite alternate;
}

@keyframes wheel-pointer-tick {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(2px); }
}

.wheel-pointer-glow {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 196, 0.95) 0%, rgba(255, 244, 196, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.wheel-balance-amount.wheel-balance-pop {
  animation: wheel-balance-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wheel-balance-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.wheel-center-button:not(:disabled) {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wheel-center-button:not(:disabled):active {
  transform: translate(-50%, -50%) scale(0.96);
}

#wheel-result-modal.wheel-modal-show .wheel-modal-card {
  animation: wheel-result-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wheel-result-pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.wheel-canvas-shell::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ffd86a, #fff4c8, #ff9f4a, #ffd86a);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.wheel-canvas-shell::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255, 220, 120, 0.85),
    0 0 28px rgba(255, 196, 58, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  z-index: 0;
  pointer-events: none;
}

.wheel-canvas-shell .wheel-disc-rotator {
  z-index: 1;
}

.wheel-canvas-shell .wheel-lights {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wheel-canvas-shell .wheel-center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Invite Wheel layout polish */
.wheel-header {
  display: grid !important;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  justify-items: center;
}

.wheel-header .back-button {
  grid-column: 1;
  justify-self: start;
}

.wheel-header h2 {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  text-align: center !important;
  color: #fff !important;
}

.wheel-header-tools {
  grid-column: 3;
  justify-self: end;
}

.wheel-main-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wheel-balance-block,
.wheel-progress-note,
.wheel-record-section {
  width: min(100%, 360px);
}

#wheel-stage.wheel-stage-canvas,
.wheel-stage.wheel-stage-canvas {
  width: min(86vw, 336px) !important;
  max-width: 336px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 20px;
}

.wheel-stage.wheel-stage-canvas .wheel-canvas-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}

.wheel-stage {
  max-width: none !important;
}

.wheel-disc-rotator #wheel-canvas {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  box-shadow: none !important;
  transform: none !important;
}

.wheel-stage.is-spinning .wheel-disc-rotator {
  transition: none;
}

.wheel-light {
  animation: none;
  opacity: 0.92;
  will-change: auto;
}

.wheel-stage.is-spinning .wheel-light {
  animation: wheel-light-blink 0.55s ease-in-out infinite alternate;
  will-change: opacity;
}

.wheel-stage:not(.is-spinning) .wheel-pointer {
  animation: none;
}

.wheel-gift-grid {
  width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
  gap: 28px 32px;
  justify-items: center;
}

.wheel-gift-card {
  width: 100%;
  max-width: 132px;
}

.wheel-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wheel-intro-title {
  text-align: center;
  width: 100%;
}

.slider-captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 28, 0.62);
  backdrop-filter: blur(4px);
  padding: 18px;
}

.slider-captcha-card {
  width: 332px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  animation: sliderCaptchaPop 0.18s ease-out;
}

@keyframes sliderCaptchaPop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.slider-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2430;
}

.slider-captcha-refresh {
  border: none;
  background: #f1f3f7;
  color: #5a6172;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}

.slider-captcha-refresh:active {
  transform: rotate(-45deg);
}

.slider-captcha-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.slider-captcha-bg,
.slider-captcha-block {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.slider-captcha-block {
  cursor: pointer;
}

.slider-captcha-tip {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  text-align: center;
}

.slider-captcha-track {
  position: relative;
  margin-top: 14px;
  height: 42px;
  border-radius: 21px;
  background: #f1f3f7;
  border: 1px solid #e4e7ee;
  overflow: hidden;
  user-select: none;
}

.slider-captcha-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8bd0a4, #4caf73);
}

.slider-captcha-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #9aa1b2;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.slider-captcha-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 100%;
  border-radius: 21px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #b21f24;
  cursor: grab;
  touch-action: none;
  z-index: 2;
}

.slider-captcha-handle:active {
  cursor: grabbing;
}

.slider-captcha-handle.is-success {
  background: #4caf73;
  color: #fff;
}

.slider-captcha-handle.is-error {
  background: #e25563;
  color: #fff;
}

/* Promotion page: bounded scroll viewport (fixes stuck touch scroll). */
body.promo-page-active .app-screen.active,
body:has(#page-promotion.page.active) .app-screen.active {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: calc(78px + var(--safe-bottom));
}

body.promo-page-active .page-stack,
body:has(#page-promotion.page.active) .page-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#page-promotion {
  --promo-header-height: calc(56px + var(--safe-top));
  padding-top: var(--promo-header-height) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  padding-bottom: 12px !important;
  scroll-padding-top: var(--promo-header-height);
  overflow-x: hidden;
  background: transparent;
}

#page-promotion.page.active {
  display: block;
  height: 100%;
  min-height: 0 !important;
  max-height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

#page-promotion.page.active::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#page-promotion .agency-header {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: var(--mobile-frame) !important;
  max-width: 100vw !important;
  z-index: 42 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-height: var(--promo-header-height) !important;
  height: var(--promo-header-height) !important;
  max-height: var(--promo-header-height) !important;
  padding: calc(8px + var(--safe-top)) 12px 8px !important;
  background: #fff !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 6px 18px rgba(21, 29, 49, 0.04) !important;
}

#page-promotion .promo-summary {
  position: relative;
  z-index: 1;
}

#page-promotion .promo-referral-banner {
  margin-bottom: 0;
}
