html body #app .rich-footer .footer-document-display {
  box-sizing: border-box;
  width: calc(100% - 14px);
  margin: 0 14px 18px 0;
  padding: 8px;
  border: 1px solid #d9aa5766;
  border-radius: 15px;
  background: linear-gradient(145deg, #51305f, #211639 60%, #312049);
  box-shadow: inset 0 1px #edc27533;
}

html body #app .footer-document-art {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 9px;
}

html body #app .footer-document-art img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

html body #app .footer-document-display figcaption {
  margin-top: 8px;
  color: #c0b8cf;
  font-size: 12px;
  text-align: center;
}

html body #app .home-page .section .section-scroll {
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #d7c5fc38 !important;
  border-radius: 9px;
  background: linear-gradient(145deg, #c8acff2e, #6a549022) !important;
  color: #f0e7ff !important;
  box-shadow: inset 0 1px #f1ddff1a;
}

html body #app .home-page .section .section-scroll img {
  display: none !important;
}

html body #app .home-page .section .section-scroll::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateX(-2px) rotate(-45deg);
}

html body #app .home-page .section .section-scroll-left::before {
  transform: translateX(2px) rotate(135deg);
}

html body #app .home-page .section .section-scroll:disabled {
  opacity: .45;
}

html body #app > .app:is(.route-recharge, .route-withdraw),
html body #app :is(.reference-recharge, .reference-withdraw) {
  box-sizing: border-box;
  width: min(100%, 100vw, 428px) !important;
  min-width: 0;
  max-width: 428px;
  margin-inline: auto;
}

html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-head, .original-withdraw-head, .original-recharge-tabs, .original-withdraw-tabs) {
  box-sizing: border-box;
  width: 100% !important;
  margin-inline: 0 !important;
}

html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-tabs, .original-withdraw-tabs) > button,
html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-tabs, .original-withdraw-tabs) > button.active {
  min-width: 0;
  background: transparent !important;
}

html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-back, .original-withdraw-back) {
  position: absolute !important;
  inset: 7px auto auto 11px;
  width: 36px;
  height: 36px;
  border: 1px solid #d3c7f34a;
  border-radius: 50%;
  background: #c8b8ff1a !important;
}

html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-back, .original-withdraw-back) > img {
  visibility: hidden;
}

html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-back, .original-withdraw-back)::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  width: 9px;
  height: 9px;
  margin: auto;
  border: solid #f2eaff;
  border-width: 0 0 2px 2px;
  transform: translateX(2px) rotate(45deg);
}

html body #app :is(.reference-recharge, .reference-withdraw)
  :is(.original-recharge-body, .original-withdraw-content) {
  box-sizing: border-box;
  width: 100% !important;
  padding-inline: 14px;
  margin-inline: auto !important;
}

html body #app .reference-withdraw
  :is(.original-withdraw-wallet, .original-withdraw-form, .original-withdraw-tips) {
  box-sizing: border-box;
  width: 100% !important;
  margin-inline: 0 !important;
}

html body #app .reference-withdraw
  :is(.withdraw-label, .withdraw-input, .original-withdraw-submit) {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
}

html body #app .reference-withdraw .withdraw-input > input {
  flex: 1 1 0;
  width: 0 !important;
  min-width: 0;
}

html body #app .reference-withdraw :is(.withdraw-all, .withdraw-select) {
  flex-shrink: 0;
  white-space: nowrap;
}

html body #app .reference-withdraw :is(.original-withdraw-submit, .original-withdraw-help) {
  height: auto;
  min-height: 24px;
}

html body #app .reference-withdraw .original-withdraw-submit {
  min-height: 46px;
  padding-block: 10px;
}

html body #app .reference-withdraw .original-withdraw-tips {
  height: auto;
}

html body #app .reference-recharge .original-okpay-card .payment-presets button {
  background: #d9c9ff1c !important;
  padding-inline: 2px;
}

html body #app .reference-recharge .original-okpay-card .payment-presets button.active {
  background: linear-gradient(105deg, #55258c, #25177b) !important;
  border-color: transparent !important;
}

html body #app .reference-recharge .original-okpay-card .payment-create {
  background: linear-gradient(180deg, #a49ac50c, #d5bdf52c) !important;
}

html body #app .reference-recharge .manual-recharge-instructions {
  margin-inline: 15px;
}

html body #app .reference-recharge .manual-recharge-instructions label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

html body #app .reference-recharge .manual-recharge-instructions input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
}

html body {
  --income-page: radial-gradient(ellipse at 100% 0, #59216173, transparent 54%),
    radial-gradient(ellipse at 0 35%, #204b7573, transparent 48%),
    linear-gradient(155deg, #121137, #191527 78%);
  --income-panel: linear-gradient(145deg, #72639a3d, #6446772b);
  --income-row: #a38bdb12;
  --income-line: #cbb6ec3d;
  --income-text: #f7f2ff;
  --income-muted: #c9bfdc;
  --income-accent: #d5b9ff;
  --income-active: linear-gradient(110deg, #64388b, #383075);
  --form-field: #15152dba;
  --form-dialog: linear-gradient(150deg, #302747, #211b34 75%);
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates),
html body #app .app:is(.route-recharge, .route-withdraw, .route-income, .route-income-team, .route-depositRecords,
  .route-profit, .route-transactions, .route-bets, .route-drawRecords, .route-tasks, .route-security, .route-setAccount,
  .route-setMail, .route-editMail, .route-editLoginPsd, .route-editReflectPsd, .route-walletAddresses,
  .route-forgetLoginpwd, .route-forgetWithdrawpwd, .route-codepacket, .route-redpacket, .route-agent,
  .route-agentDetail, .route-reportAgent, .route-agentIntro, .route-agency, .route-wallet, .route-margin, .route-coins, .route-vpn) {
  background: var(--income-page) !important;
  color: var(--income-text) !important;
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates)
  :is(.original-income-records, .original-vip-detail, .original-invite, .original-commission-rates, .sub-page) {
  background: transparent !important;
  color: var(--income-text) !important;
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates)
  :is(.original-subpage-head, .original-invite-head, .sub-header, .vip-original-top, .vip-detail-body,
  .original-income-records main, .record-empty, .commission-category-tabs, .commission-provider-tabs) {
  background: transparent !important;
  color: var(--income-text) !important;
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates)
  :is(.income-record-head, .income-record-page .data-head, .commission-rate-head, .commission-rate-list,
  .vip-rebate-table, .vip-info-cards article, .original-invite-share > button, .original-invite-stats) {
  background: var(--income-panel) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates)
  :is(.income-record-row, .income-record-page .data-row, .commission-rate-row, .vip-rebate-row.shade, .vip-rebate-row:nth-child(even)) {
  background: var(--income-row) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates)
  :is(.income-record-head > span, .vip-rebate-head, .vip-card-progress p, .original-invite-stats span, .commission-rate-head > span) {
  color: var(--income-muted) !important;
}

html body #app .app:is(.route-rebate-records, .route-commission-records, .route-vip-details, .route-commission-rates)
  :is(.income-record-row > b, .commission-rate-row b, .vip-rebate-row b, .vip-card-progress p b, .original-invite h1 span, .vip-level-point.current span, .vip-rebate-title span) {
  color: var(--income-accent) !important;
}

html body #app .app.route-commission-rates .commission-provider-tabs button {
  background: var(--income-row) !important;
  border-color: var(--income-line) !important;
  color: var(--income-muted) !important;
}

html body #app .app.route-commission-rates .commission-provider-tabs button.active,
html body #app .app.route-vip-details .vip-recharge-btn {
  background: var(--income-active) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app.route-commission-rates .commission-category-tabs button.active::after,
html body #app .app.route-vip-details .vip-card-progress > i span,
html body #app .app.route-vip-details .vip-rebate-title::before,
html body #app .app.route-vip-details .vip-rebate-title::after {
  background: linear-gradient(90deg, #ae73f6, #8271f1) !important;
}

html body #app .app.route-vip-details .vip-card-progress > i {
  background: #b9a1ec42 !important;
}

html body #app .app :is(.original-recharge, .original-withdraw, .original-income, .original-income-team,
  .original-record-list-page, .original-record-title, .original-record-content, .original-record-table, .original-record-body,
  .original-record-empty, .original-record-switch-loading, .profit-page, .transaction-page, .bets-page, .bet-detail-page,
  .original-tasks, .safe-center, .safe-title-line, .user-tools1, .original-set-account, .original-set-mail, .original-forgot,
  .withdraw-password-page, .wallet-add-address-page, .wallet-address-container, .wallet-address-box,
  .software-download-page, .software-download-head, .software-download-content, .buybit-page, .redbag-title-line),
html body #app .app:not(:is(.route-home, .route-user, .route-activity, .route-activityDetail)) > .sub-page {
  background: transparent !important;
  color: var(--income-text) !important;
}

html body #app .app .safe-center .title-span {
  background-color: #201939 !important;
  background-blend-mode: luminosity;
}

html body #app .app :is(.original-record-head, .profit-summary, .profit-head, .data-head, .prize-head,
  .income-team-table-head, .bet-detail-card, .bet-detail-order, .safe-cell, .set-account-box, .set-mail-box,
  .withdraw-password-box, .list-card.form-card, .software-download-row, .buybit-item, .agent-summary,
  .agent-team, .agent-dividend, .original-task-card, .original-recharge-box, .original-usdt-card,
  .original-okpay-card, .original-withdraw-wallet, .original-withdraw-form, .original-income-card) {
  background: var(--income-panel) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app :is(.original-record-row, .profit-row, .data-row, .income-team-row, .prize-row) {
  background: var(--income-row) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app :is(.trans-date, .bet-filters button, .income-team-filter, .original-income-link,
  .set-account-field, .set-mail-field, .forgot-field, .withdraw-password-field, .wallet-address-field,
  .wallet-address-protocol, .original-okpay-input, .withdraw-input, .provider-search-input,
  .redbag-segmented, .code-redbag-gold-input) {
  background: var(--form-field) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app :is(.form-card, .guest-dialog, .password-field, .redbag-text-field)
  :is(input:not([type=checkbox], [type=radio], [type=range]), textarea, select) {
  background: var(--form-field) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app :is(.form-card, .guest-dialog, .set-account-field, .set-mail-field, .forgot-field,
  .withdraw-password-field, .wallet-address-field, .original-recharge-body, .original-withdraw-form, .redbag-drawer)
  :is(input, textarea)::placeholder {
  color: var(--income-muted) !important;
}

html body #app .app :is(.set-account-submit, .set-mail-submit, .forgot-submit, .withdraw-password-submit,
  .wallet-address-confirm, .original-withdraw-submit, .original-usdt-copy, .agent-dividend button,
  .buybit-item button, .software-download-action, .redbag-confirm, .code-redbag-gold-claim,
  .bet-detail-home, .dialog-actions .primary, .guest-submit, .withdraw-security-action,
  .filter-sheet button.active, .redbag-segmented button.active, .task-claim-button.is-claimable) {
  background: var(--income-active) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body #app .app :is(.original-record-tabs, .transaction-tabs, .prize-tabs, .pill-tabs) {
  border-color: var(--income-line) !important;
}

html body #app .app :is(.original-record-tabs, .transaction-tabs, .prize-tabs, .pill-tabs) button {
  color: var(--income-muted) !important;
}

html body #app .app :is(.original-record-tabs, .transaction-tabs, .prize-tabs, .pill-tabs) button.active {
  color: var(--income-text) !important;
}

html body #app .app :is(.original-record-tabs, .transaction-tabs, .prize-tabs) button.active::after {
  background: linear-gradient(90deg, transparent, #c9a5ff, transparent) !important;
}

html body #app .app .pill-tabs button.active {
  background: var(--income-active) !important;
}

html body #app .app :is(.dialog, .guest-dialog, .address-sheet, .wallet-address-sheet, .quick-deposit-sheet,
  .bet-filter-sheet, .filter-sheet, .task-rule-sheet, .language-sheet, .withdraw-security-dialog, .income-team-options),
html body > .finance-record-overlay .finance-record-detail.original-finance-detail {
  background: var(--form-dialog) !important;
  border-color: var(--income-line) !important;
  color: var(--income-text) !important;
}

html body > .finance-record-overlay .original-finance-card {
  background: var(--income-panel) !important;
  border-color: var(--income-line) !important;
}


/* 2026-11-08: scoped selection sheets; player game cards are outside these selectors. */
html body #app .app .bet-filter-overlay .bet-filter-sheet {
  background: linear-gradient(155deg, rgba(43,34,65,.94), rgba(26,23,43,.94)) !important;
  border: 1px solid rgba(202,182,235,.18) !important;
  border-bottom: 0 !important;
  box-shadow: 0 -12px 42px rgba(8,5,20,.3) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
  color: #ede6f8 !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet > h3 {
  color: #f1ebfc !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet > button:not(.filter-close) {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 48px 0 14px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(207,190,235,.09) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #dcd4ec !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet > button:not(.filter-close).active {
  background: rgba(165,125,225,.14) !important;
  background-image: none !important;
  border-bottom-color: transparent !important;
  border-radius: 9px !important;
  color: #f0e6ff !important;
  font-weight: 500 !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet > button:not(.filter-close)::after {
  width: 18px !important;
  height: 18px !important;
  right: 15px !important;
  border: 1.5px solid rgba(193,171,226,.45) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet > button:not(.filter-close).active::after {
  border-color: #c6a4f5 !important;
  background: radial-gradient(circle at center, #d7b9ff 0 4px, transparent 4.5px) !important;
  box-shadow: 0 0 0 3px rgba(164,119,222,.09) !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet .filter-close {
  width: 32px !important;
  height: 32px !important;
  top: 16px !important;
  right: 18px !important;
  background: rgba(201,180,233,.08) !important;
  border: 1px solid rgba(211,192,241,.12) !important;
  border-radius: 9px !important;
  color: #d7c7eb !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet .filter-close::before,
html body #app .app .bet-filter-overlay .bet-filter-sheet .filter-close::after {
  content: "" !important;
  left: 8px !important;
  top: 14px !important;
  width: 14px !important;
  height: 1.5px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #d7c7eb !important;
  box-shadow: none !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet .filter-close::before { transform: rotate(45deg) !important; }
html body #app .app .bet-filter-overlay .bet-filter-sheet .filter-close::after { transform: rotate(-45deg) !important; }
html body #app .app :is(.profit-page,.transaction-page) .date-menu.refined-date-menu,
html body #app .app :is(.income-team-options,.withdraw-address-menu) {
  background: rgba(40,31,61,.94) !important;
  border: 1px solid rgba(202,182,235,.18) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(10,6,25,.24) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}
html body #app .app :is(.profit-page,.transaction-page) .date-menu.refined-date-menu > button,
html body #app .app :is(.income-team-options,.withdraw-address-menu) > button,
html body #app .app .language-sheet > .language-row {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(207,190,235,.09) !important;
  border-radius: 0 !important;
  color: #dcd4ec !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}
html body #app .app :is(.profit-page,.transaction-page) .date-menu.refined-date-menu > button > span {
  color: inherit !important;
}
html body #app .app :is(.profit-page,.transaction-page) .date-menu.refined-date-menu > button.active,
html body #app .app .language-sheet > .language-row.selected {
  background: rgba(165,125,225,.14) !important;
  background-image: none !important;
  color: #f0e6ff !important;
}
html body #app .app .language-sheet > .language-row > b { color: #c9a9fa !important; }
html body #app .app .withdraw-address-menu > button {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.5 !important;
}
html body #app .app .bet-filter-overlay .bet-filter-sheet > button:focus-visible,
html body #app .app :is(.profit-page,.transaction-page) .date-menu.refined-date-menu > button:focus-visible,
html body #app .app :is(.income-team-options,.withdraw-address-menu) > button:focus-visible,
html body #app .app .language-sheet > .language-row:focus-visible {
  outline: 2px solid rgba(196,157,249,.7) !important;
  outline-offset: -3px !important;
}


/* 2026-11-09: service list grows with configured entries; game cards remain outside this scope. */
html body #app .app .service-original .customer-service-pop {
  height: auto !important;
  max-height: calc(100dvh - 116px) !important;
  overflow: visible !important;
}
html body #app .app .service-original .customer-service-pop > .list {
  height: auto !important;
  max-height: calc(100dvh - 236px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
}
html body #app .app .service-original .customer-service-pop > .list > .item:last-child {
  margin-bottom: 0 !important;
}
