@font-face {
  font-family: DinProBold;
  src: url("../asset/fonts/DINPro-Bold-3e1f469817fb.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --demo-width: 390px;
  --gold-active: #fee3c8;
  --nav-muted: #928477;
}

/* 2026-12-02：手机（宽度 < 600px）撑满整屏，不再固定 390px 两边留黑边；电脑上仍居中 390px */
@media (max-width: 599px) {
  :root { --demo-width: 100vw; }
}

html, body { background: #000; }
body { font-family: system-ui, "Microsoft YaHei", sans-serif; }
[hidden] { display: none !important; }
button { cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: -2px;
}

.shell {
  width: min(100%, var(--demo-width));
  height: 100dvh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--color-page);
}

.shell > :is(.account-bar, .profile-header) { grid-area: 1 / 1; }
.shell > .page { grid-area: 2 / 1; }
.shell > .bottom-nav { grid-area: 3 / 1; }

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 53px;
  padding: max(4px, env(safe-area-inset-top)) 12px 4px;
  background: linear-gradient(#2c271f, #25211b);
  border-bottom: 1px solid #fff1;
}

.account, .quick-actions { display: flex; align-items: center; }
.account { gap: 8px; }
.avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #c1a3728c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 24%, #38342c, #1c1915 72%);
  color: var(--color-primary-light);
  font-size: 18px;
  font-weight: 800;
}
.avatar img { position: absolute; width: 35px; bottom: -1px; }
.account-name { font-size: 11px; font-weight: 700; }
.account-info { min-width: 0; }
.account-name [data-demo-username] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-auth-link { color: var(--color-primary-light); white-space: nowrap; }
.demo-auth-link:hover, .demo-auth-profile-link:hover { text-decoration: underline; }
.balance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 3px;
  border: 1px solid #bba17865;
  border-radius: 999px;
  font-weight: 800;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
}
.balance > [aria-hidden] {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  text-align: center;
  /* 2026.11.24 文档第 2 条：余额币图标统一换红色 ¥（文字保留给读屏，视觉隐藏） */
  background: url('../img/coin-cny-red.png') center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  flex: none;
}
#home-wallet-amount,
.wallet-amount > #wallet-amount,
#income .income-amount > [data-income-amount],
.vip-rank-requirements dd,
.vip-withdraw-limit strong {
  font-family: DinProBold, system-ui, sans-serif;
  font-weight: 700;
}
.quick-actions { gap: 7px; }
.quick-actions button {
  display: grid;
  place-items: center;
  gap: 1px;
  font-size: 9px;
  line-height: 11px;
}
.quick-actions img { width: 27px; height: 27px; object-fit: contain; }

.page {
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  padding: 11px 12px 0;
}
.page::-webkit-scrollbar, .game-strip::-webkit-scrollbar { display: none; }
.hero { border-radius: 12px; overflow: hidden; }
.hero .swiper {
  aspect-ratio: 1053 / 240;
  background: #21140f;
  touch-action: pan-y;
}
.hero .swiper-wrapper { transition: transform 380ms ease; }
.hero .swiper-slide { width: 100%; height: 100%; overflow: hidden; }
.hero .swiper-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-banner-link { display: block; width: 100%; height: 100%; }

.activity-card-art {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 102px;
  padding: 18px 24px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(125deg, #13091e, #532066);
  color: #f1d8a6;
  font-size: 23px;
  font-style: italic;
}
.activity-card-art.parlay { background: linear-gradient(125deg, #060e24, #215688); }
.activity-card-art.chess { background: linear-gradient(125deg, #1d0808, #8e2016); }
.activity-card-art.slots { background: linear-gradient(125deg, #120a2f, #8b183f); }
.activity-card .activity-card-art img { position: absolute; z-index: -1; inset: 0 4px 0 auto; width: 42%; height: 100%; object-fit: contain; }

.home-partners { width: 100%; text-align: start; }
.home-partners-strip { display: flex; justify-content: space-evenly; gap: 10px; min-height: 42px; padding: 7px 10px; border-radius: 8px; background: #211e1b; }
.site-footer .home-partners-strip img { width: 42px; height: 27px; object-fit: contain; }
.home-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; color: var(--color-mid); font-size: 12px; }
.hero .swiper-pagination {
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hero .swiper-pagination-bullet { position: relative; flex-shrink: 0; }
.hero .swiper-pagination-bullet::after { content: ""; position: absolute; inset: -8px -3px; }
.announcement {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 12px 4px 8px;
  background: var(--color-surface-2);
  color: var(--color-hi);
  text-align: left;
  font-size: 11px;
}
/* 2026.11.22 文档第 8 条：小喇叭换成原版那种圆形喇叭图标 */
.announcement-icon {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.announcement-icon img { display: block; width: 100%; height: 100%; }
.announcement .chevron { margin-left: auto; }
.chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.categories {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.category {
  position: relative;
  isolation: isolate;
  height: 96px;
  grid-column: span 3;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-card-from), var(--color-card-to)) padding-box,
              linear-gradient(145deg, #57483a, #29221d 50%, #27211b) border-box;
  text-align: left;
}
.category:hover { border-color: #967758; }
.category-compact { grid-column: span 2; }
.category img {
  position: absolute;
  z-index: -1;
  bottom: 0;
  right: 0;
  width: 54%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.category-compact img { top: 0; bottom: auto; right: 50%; transform: translateX(50%); width: 75%; height: 76%; object-position: center bottom; }
.category-copy { position: absolute; inset: 7px 6px auto 10px; }
.category-compact .category-copy { inset: auto 4px 6px; text-align: center; }
.category-title { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; line-height: 1.25; }
.category-title strong {
  font-size: clamp(14px, 4.4vw, 20px);
  font-weight: 900;
  color: var(--color-hi);
  background: linear-gradient(var(--color-gold-text-from), var(--color-gold-text-to));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.category-title span { font: 800 clamp(10px, 3.9vw, 17px)/1 Akrobat, system-ui, sans-serif; color: #8b786e; text-transform: uppercase; }
.category-compact .category-title { justify-content: center; }
.category-compact .category-title strong { font-size: 14px; }
.category-compact .category-title span { font-size: 11px; }
.category-copy small { display: block; max-width: 63%; margin-top: 1px; font-size: 9px; line-height: 11px; color: #c2b5a5; white-space: pre-line; }

.game-section, .tools { margin-top: 17px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 7px;
}
.section-heading h2 { font-size: 15px; font-weight: 800; }
.more { color: #ada497; font-size: 12px; padding: 3px 5px 3px 9px; }
.more .chevron { margin-left: 4px; }
.game-strip {
  display: flex;
  gap: 8px;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.game-tile {
  position: relative;
  flex: 0 0 80px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #141414;
  scroll-snap-align: start;
  color: white;
}
.game-tile img { width: 100%; height: 100%; object-fit: cover; }
.game-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #000b); pointer-events: none; }
.game-tile span { position: absolute; z-index: 1; left: 4px; right: 4px; bottom: 4px; font-size: 9px; font-weight: 700; text-shadow: 0 1px 2px black; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tools-grid button { display: flex; align-items: center; justify-content: space-between; gap: 3px; min-height: 54px; padding: 6px; border-radius: 9px; background: var(--color-surface); border: 1px solid var(--color-hairline); text-align: left; font-size: 11px; }
.tools-grid img { width: 41%; max-height: 44px; object-fit: contain; }
/* 第 4 条：滚动的合作单位条很宽，把网格列撑到 470px，下面的链接和版权跟着偏右 → 列宽锁成容器宽度 */
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 24px 0 20px; color: var(--color-dim); }
.site-footer > .home-partners { justify-self: stretch; min-width: 0; overflow: hidden; }
.site-footer img { width: min(145px, 60%); }

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px 9px max(5px, env(safe-area-inset-bottom));
  background: linear-gradient(#2b2623, #191714);
  border-top: 1px solid #76605036;
}
.bottom-nav button {
  min-height: 49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--nav-muted);
  font-size: 11px;
  line-height: 14px;
}
.bottom-nav button[aria-current] { color: var(--gold-active); font-weight: 700; }
.nav-icon { display: block; position: relative; width: 22px; height: 22px; color: #81756a; }
[aria-current] .nav-icon { color: #bf956d; }
.nav-home::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; clip-path: polygon(50% 5%, 96% 43%, 96% 94%, 61% 94%, 61% 66%, 39% 66%, 39% 94%, 4% 94%, 4% 43%); }
.nav-gift::before { content: ""; position: absolute; inset: 7px 2px 1px; border-radius: 2px; background: linear-gradient(transparent 4px, #28231f 4px 6px, transparent 6px), linear-gradient(90deg, currentColor 43%, #28231f 43% 55%, currentColor 55%); }
.nav-gift::after { content: ""; position: absolute; width: 14px; height: 7px; left: 4px; top: 1px; border: 2px solid currentColor; border-radius: 8px 8px 3px 3px; }
.nav-brand { width: auto; font: italic 900 22px/22px system-ui, sans-serif; letter-spacing: -2px; transform: skew(-10deg); }
.nav-coins::before { content: ""; position: absolute; inset: 2px 2px auto; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 4px #27211c, 0 6px currentColor, 0 9px #27211c, 0 11px currentColor; }
.nav-person::before, .nav-person::after { content: ""; position: absolute; background: currentColor; }
.nav-person::before { width: 9px; height: 9px; top: 1px; left: 6.5px; border-radius: 50%; }
.nav-person::after { inset: 11px 2px 1px; border-radius: 12px 12px 3px 3px; }

/* 底部导航图标（设计稿 _ref/UI按钮：off = 未选中 A，on = 选中 B） */
.nav-pic { display: flex; align-items: center; justify-content: center; height: 22px; }
.nav-pic img { display: block; height: 22px; width: auto; }
.nav-pic-wide img { height: 21px; }
.nav-pic .nav-on, [aria-current] .nav-pic .nav-off { display: none; }
[aria-current] .nav-pic .nav-on { display: block; }

.preview-copy { color: #c3b4a1; font-size: 13px; }
.activity-page { padding: 0 4px 32px; }
.activity-filters { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 16px; }
.activity-filters button {
  min-height: 28px;
  padding: 3px 12px;
  border: 1px solid #393939;
  border-radius: 999px;
  background: var(--color-card-from);
  color: #a3998b;
  font-size: 14px;
}
.activity-filters [aria-pressed="true"] {
  border-color: #ccb37a;
  background: linear-gradient(var(--color-card-from), var(--color-card-to));
  color: #ccb37a;
}
.activity-list { display: grid; gap: 8px; }
.activity-card {
  display: grid;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface-2);
  text-align: left;
}
.activity-card:hover { box-shadow: 0 0 0 1px #ccb37a80; }
.activity-card img, .activity-preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 1053 / 240;
  object-fit: cover;
}
.activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  color: #aaa098;
  font-size: 11px;
  line-height: 14px;
}
.activity-status {
  padding: 2px 8px;
  border-radius: 999px;
  background: #3dbb7633;
  color: #59cb8e;
  white-space: nowrap;
}
.activity-preview-image { margin-bottom: 12px; border-radius: 8px; }
.preview {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(330px, calc(100% - 30px));
  padding: 20px;
  border: 1px solid #796043;
  border-radius: 15px;
  background: var(--color-surface);
  color: var(--color-hi);
  box-shadow: 0 15px 70px #0009;
}
.preview::backdrop { background: #000a; }
/* 官方频道「展示图」（银河国际集团企业简介）：弹窗加宽，长图可上下滚动 */
.preview.preview--poster { width: min(440px, calc(100% - 24px)); max-height: calc(100% - 40px); padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
.preview--poster h2 { margin-bottom: 10px; }
.preview-poster { display: block; width: 100%; height: auto; border-radius: 10px; }
.preview h2 { margin: 0 30px 10px 0; font-size: 17px; }
.preview .close { position: absolute; top: 9px; right: 10px; width: 32px; height: 32px; font-size: 24px; color: var(--color-primary-light); }

.profile-header {
  display: flex;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top)) 12px 8px;
  min-height: 41px;
  background: var(--color-page);
}
.profile-header img { width: 100px; }
.page:has(.profile:not([hidden])) { padding: 0; }
.profile {
  min-height: 100%;
  padding: 15px 12px 20px;
  background: radial-gradient(ellipse 90% 380px at 77% 84px, #332511 0%, transparent 77%);
}
.profile-intro { padding-inline: 4px; }
.profile-identity { position: relative; isolation: isolate; display: grid; justify-items: center; }
.profile-utilities { position: absolute; top: 0; right: 0; display: flex; gap: 7px; }
.profile-utilities button { position: relative; width: 30px; height: 30px; color: var(--gold-active); font-size: 22px; line-height: 1; }
.profile-avatar {
  width: 100px;
  height: 100px;
  border: 3px solid transparent;
  background: radial-gradient(circle at 45% 25%, #3c3530, #24201e 73%) padding-box,
              linear-gradient(145deg, #e8cc9d, #6f583d 50%, #ac855b) border-box;
  font-size: 32px;
}
.profile-badge { z-index: 1; width: 59px; margin-top: -13px; }
.vip-watermark {
  position: absolute;
  top: 85px;
  z-index: -1;
  color: #ca9d66;
  opacity: .13;
  font: 900 88px/.9 system-ui, sans-serif;
  letter-spacing: -5px;
  pointer-events: none;
}
.profile-name { margin-top: 4px; font-size: 18px; line-height: 24px; font-weight: 650; }
.profile-id { display: flex; align-items: center; color: var(--color-dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.copy-id { position: relative; width: 26px; height: 24px; color: #d3bc9f; }
.copy-id::before, .copy-id::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 1.5px; }
.copy-id::before { left: 8px; top: 7px; }
.copy-id::after { left: 11px; top: 10px; background: #2d2217; }

.vip-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 20px 12px;
  border: 1px solid #6a4f325e;
  border-radius: 12px;
  background: linear-gradient(115deg, #2c241b, #211c17 75%);
}
.vip-stats { display: grid; grid-template-columns: 1fr 1fr; }
.vip-stats > span { display: grid; gap: 2px; font-size: 13px; }
.vip-stats > span + span { border-left: 1px solid #fff2; }
.vip-stats strong { color: #f5d8ae; font-size: 16px; line-height: 20px; font-variant-numeric: tabular-nums; }
.vip-next { color: var(--color-primary); font-size: 11px; }
.vip-next strong { color: var(--color-hi); }
.vip-next .chevron { margin-left: 3px; }

.profile-wallet {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  margin: 22px 8px 0;
  padding: 14px 15px;
  border: 1px solid #70553b;
  border-radius: 12px;
  background: linear-gradient(120deg, #332415, #241c15 62%, #201811);
}
.wallet-coins { position: absolute; z-index: -1; width: 104px; height: 69px; object-fit: contain; pointer-events: none; }
.wallet-coins-a { left: 37%; bottom: -17px; }
.wallet-coins-b { left: 54%; top: -19px; }
.wallet-content { min-width: 0; display: grid; gap: 6px; }
.wallet-label, .wallet-amount { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.wallet-label { color: var(--color-primary); font-size: 13px; }
.wallet-eye { position: relative; flex: none; width: 22px; height: 25px; }
.wallet-eye::before {
  content: "";
  display: block;
  width: 13px;
  height: 8px;
  margin: auto;
  border: 1px solid currentColor;
  border-radius: 70%;
  background: radial-gradient(circle, currentColor 1.5px, transparent 2px);
}
.wallet-eye[aria-label="显示余额"]::after { content: ""; position: absolute; left: 4px; top: 12px; width: 15px; height: 1px; background: currentColor; transform: rotate(40deg); }
.wallet-recycle, .wallet-actions button:first-child { border: 1px solid #8b613c; background: linear-gradient(#694b33, #403021); }
.wallet-recycle { padding: 3px 5px; border-radius: 7px; color: var(--color-hi); font-size: 11px; }
.wallet-amount { color: #ffe2c5; line-height: 30px; font-size: 30px; font-variant-numeric: tabular-nums; }
/* 第 6 条：原来用文字「$」画在圆里，行高大于圆，$ 会偏 → 统一用 coin-usd.svg（文字保留给读屏，视觉隐藏） */
.wallet-currency { flex: none; display: block; width: 25px; height: 25px; border-radius: 50%; background: url('../img/coin-cny-red.png') center / 100% 100% no-repeat; color: transparent; font-size: 0; line-height: 0; overflow: hidden; }
.wallet-actions { flex: none; display: grid; gap: 5px; }
.wallet-actions button { display: flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #554335; border-radius: 7px; background: var(--color-page); font-size: 12px; }
.wallet-actions img { width: 18px; height: 18px; object-fit: contain; }

.profile-menu {
  margin-top: 10px;
  padding: 14px 12px 13px;
  border: 1px solid #47382d;
  border-radius: 12px;
  background: linear-gradient(#29211c, #211b17 85%);
}
.profile-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 4px; max-width: 304px; margin-inline: auto; }
.profile-shortcuts button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 51px; white-space: nowrap; font-size: 12px; }
.profile-shortcuts img { width: 36px; height: 36px; object-fit: contain; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #fff2; }
.profile-links :is(button, a) { display: flex; align-items: center; gap: 4px; min-height: 28px; white-space: nowrap; font-size: 12px; }
.profile-links :is(.demo-auth-profile-link, #demo-logout) { color: var(--color-primary-light); }
.profile-link-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: linear-gradient(#eedcc5, #a38362); color: #34251b; font-size: 12px; font-weight: 800; }
.language-icon { border-radius: 4px; }
.profile-status { margin-top: 7px; text-align: center; color: var(--color-primary-light); font-size: 11px; }

@media (max-width: 350px) {
  .profile-wallet { margin-inline: 0; padding-inline: 9px; }
  .wallet-label { font-size: 12px; gap: 3px; }
  .profile-links button { font-size: 11px; }
}

@media (max-width: 350px) {
  .category-compact .category-title span { font-size: 9px; }
  .quick-actions { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .swiper-wrapper, .hero .swiper-pagination-bullet { transition: none; }
}

.hero-banner-link > .activity-card-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px 20px 17px;
  text-align: start;
  line-height: 1.1;
}
.hero-banner-link > .activity-card-art img {
  position: absolute;
  z-index: -1;
  inset: 0 12px 0 auto;
  width: 42%;
  object-fit: contain;
}
.activity-card-art strong, .activity-card-art small { display: block; }
.activity-card-art small { margin-top: 4px; color: #fff0d9; font-size: 12px; font-style: normal; }
.hero .swiper-pagination-bullet { width: 7px; height: 7px; margin: 0; }

#home .home-partners-strip {
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
#home .home-partners-strip img {
  width: calc((100% - 40px) / 5);
  height: 31px;
  flex: none;
}
#home .game-tile-provider {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  padding: 3px 6px;
  border-radius: 0 0 8px;
  background: #171410b8;
  color: #e4c17a;
  font-size: 9px;
  line-height: 1.1;
}
#home .game-tile > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#home .game-tile-reference img {
  height: 78%;
  object-position: top center;
  mask-image: linear-gradient(#000 67%, transparent);
}
.home-scroll-top {
  position: fixed;
  z-index: 2;
  right: max(14px, calc((100vw - var(--demo-width)) / 2 + 14px));
  bottom: calc(68px + env(safe-area-inset-bottom));
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #fff4;
  border-radius: 50%;
  background: #484643e6;
  color: #fff4e6;
}
.home-scroll-top svg { width: 22px; height: 22px; }

.profile-header.centered-brand {
  justify-content: center;
}

.page:has(.official-page:not([hidden])) {
  padding: 0;
}

.official-page {
  display: grid;
  gap: 16px;
  padding: 12px 16px 28px;
}

.official-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  min-height: 200px;
  overflow: hidden;
  padding: 20px 16px 20px 20px;
  border: 1px solid #634726;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 82% 41%, #c1854275, transparent 52%),
    radial-gradient(ellipse at 85% 94%, #93603659, transparent 60%),
    linear-gradient(120deg, #160e09, #332015 66%, #20120a);
  box-shadow: inset 0 1px #e9bb7029;
}

.official-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(112deg, transparent 0 28px, #e5b35d0c 30px, transparent 33px 54px);
  content: "";
  pointer-events: none;
}

.official-wordmark {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: start;
  color: #f8e8d1;
}

.official-wordmark img {
  display: block;
  width: min(100%, 195px);
}

.official-hero-art {
  position: relative;
  align-self: stretch;
}

.official-hero-art img {
  position: absolute;
  right: -13px;
  bottom: 50%;
  width: 138%;
  max-width: none;
  transform: translateY(58%);
  filter: drop-shadow(0 10px 12px #130b05c2);
}

.official-hero-art img:nth-child(2) {
  right: 27%;
  bottom: 18%;
  width: 76%;
  transform: translateY(35%);
}

.official-list {
  overflow: hidden;
  border: 1px solid #8e6c4b57;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 10% 0, #92745525, transparent 55%),
    linear-gradient(180deg, #3b342d, #150f07);
  box-shadow: 0 6px 18px #0004, inset 0 1px #ffe1a81a;
}

.official-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 8px 10px;
}

.official-row + .official-row::before {
  position: absolute;
  inset: 0 10px auto;
  height: 1px;
  background: #ecbc841f;
  content: "";
}

.official-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
}

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

.official-copy h2 {
  color: #f8e8d1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.official-copy p {
  margin-top: 3px;
  color: #f5eee1;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.official-action {
  min-height: 31px;
  min-width: 64px;
  padding: 4px 9px;
  border: 1px solid #8a7059;
  border-radius: 8px;
  background: linear-gradient(180deg, #7a6360, #322b25);
  box-shadow: inset 0 1px #f2d9b32b;
  color: #fff1df;
  font-size: 12px;
  white-space: nowrap;
}

.official-action:hover {
  background: linear-gradient(180deg, #886f67, #47372c);
}

@media (max-width: 350px) {
  .official-page { padding-inline: 12px; }
  .official-hero { min-height: 175px; padding-inline: 14px; }
  .official-row { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 7px; padding-inline: 8px; }
  .official-icon { width: 42px; height: 42px; }
  .official-action { min-width: 56px; padding-inline: 6px; }
}

.income-page {
  display: grid;
  gap: 24px;
  padding: 5px 0 24px;
}

.income-card,
.income-agency {
  overflow: hidden;
  border: 1px solid #71513a80;
  border-radius: 12px;
  box-shadow: 0 9px 24px #0005;
}

.income-overview {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  padding: 16px 16px 14px;
  background: linear-gradient(90deg, #634c3a 0%, #3f3024 17%, #150f07 81%);
}

.income-art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 4px;
  width: 145px;
  opacity: .28;
  pointer-events: none;
}

.income-head,
.income-settlement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.income-head h2 {
  color: #f8e6cf;
  font-size: 15px;
  line-height: 20px;
}

.income-amount {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffe2c5;
  font-size: 28px;
  font-weight: 800;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
}

.income-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 29px;
  padding: 4px 11px;
  border: 1px solid #8c7057;
  border-radius: 8px;
  color: #fff3e4;
  font-size: 12px;
  white-space: nowrap;
}

.income-action img { width: 20px; height: 20px; object-fit: contain; }
.income-head .income-action { min-width: 74px; min-height: 34px; }

.income-claim {
  background: linear-gradient(130deg, #836a56, #413227);
  box-shadow: inset 0 1px #ffe0b626;
}

.income-claim:hover { background: linear-gradient(130deg, #99785b, #503c2f); }

.income-today,
.income-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.income-today dt,
.income-totals dt {
  color: #ddc9b2;
  font-size: 11px;
  line-height: 17px;
}

.income-today dd,
.income-totals dd {
  margin: 1px 0 0;
  color: #f8e6d0;
  font-size: 17px;
  font-weight: 750;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.income-settlement {
  display: grid;
  gap: 12px;
  padding: 12px 16px 15px;
  border-top: 1px solid #ae875136;
  background: linear-gradient(105deg, #241f19, #1a1814);
}

.income-settlement-head h3 { color: #f1dec9; font-size: 14px; line-height: 20px; }
.income-records { min-height: 27px; border-color: #6f5540; background: #271f19; color: #e3c9aa; }
.income-records:hover { background: #3d2c20; }

.income-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.income-totals > div { min-width: 0; padding-inline: 7px; text-align: center; }
.income-totals > div + div { border-left: 1px solid #e6bd8a26; }

.income-agency {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 13px 16px;
  background: radial-gradient(ellipse at 85% 50%, #79523651, transparent 58%),
    linear-gradient(100deg, #261f16, #1e0f0c);
}

.income-agency-art {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -15px;
  width: min(42%, 144px);
  opacity: .65;
  pointer-events: none;
}

.income-agency p { color: #c4a994; font-size: 11px; line-height: 16px; }
.income-agency h2 { margin-top: 2px; color: #f8dec1; font-size: 16px; line-height: 23px; }
.income-agency .income-action { margin-top: 6px; }
.income-note { color: var(--color-dim); text-align: center; font-size: 11px; }

@media (max-width: 350px) {
  .income-overview,
  .income-settlement { padding-inline: 12px; }
  .income-totals > div { padding-inline: 3px; }
  .income-agency { padding-inline: 12px; }
}

.page:has(.income-subpage:not([hidden])) {
  padding: 0;
}

.income-subpage {
  min-height: 100%;
  background: var(--color-page);
}

.income-records-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: grid;
  min-height: 44px;
  padding-inline: 44px;
  place-items: center;
  background: var(--color-page);
}

.income-records-header h1 {
  color: var(--color-hi);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.income-records-back {
  position: absolute;
  inset: 0 auto 0 0;
  display: grid;
  width: 44px;
  place-items: center;
  color: var(--color-hi);
}

.income-records-back .chevron {
  width: 9px;
  height: 9px;
  transform: rotate(225deg);
}

.profile-header:has(#income-subpage-back:not([hidden])) {
  position: relative;
  min-height: 44px;
}

.income-records-content {
  display: grid;
  gap: 12px;
  padding: 12px 12px max(20px, env(safe-area-inset-bottom));
}

.income-records-note {
  color: var(--color-dim);
  font-size: 11px;
}

.income-records-list {
  display: grid;
  gap: 12px;
}

.income-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #493a2d;
  border-radius: 12px;
  background: linear-gradient(180deg, #241f19, #1a1814);
}

.income-record-item h2 {
  color: var(--color-hi);
  font-size: 14px;
  font-weight: 600;
}

.income-record-item time {
  display: block;
  margin-top: 4px;
  color: #b4a492;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.income-record-value {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.income-record-value strong {
  color: #f5d8ae;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.income-record-value span {
  color: #59cb8e;
  font-size: 11px;
}

.agency-promo {
  display: grid;
  gap: 24px;
  padding: 16px 16px max(24px, env(safe-area-inset-bottom));
}

.agency-promo-banner {
  overflow: hidden;
  border-radius: 12px;
}

.agency-promo-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 351 / 80;
  object-fit: cover;
}

.agency-promo-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.agency-promo-body h1 {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.agency-promo-body h2 {
  margin-top: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.agency-promo-body p,
.agency-promo-body ul {
  color: #dfc89d;
  font-size: 14px;
  line-height: 1.55;
}

.agency-promo-body ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  list-style: disc;
}

.agency-promo-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #7a6360;
  border-radius: 8px;
}

.agency-promo-table table {
  width: 100%;
  min-width: 270px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.agency-promo-table th,
.agency-promo-table td {
  padding: 4px;
  font-variant-numeric: tabular-nums;
}

.agency-promo-table thead th {
  height: 30px;
  background: #352f26;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.agency-promo-table tbody tr {
  height: 28px;
  background: #171410;
  color: #fff;
  white-space: nowrap;
}

.agency-promo-table tbody tr:nth-child(even) { background: #1e1d1b; }
.agency-promo-table tr > :first-child { color: #dfc89d; }
.agency-promo-table tbody th { font-weight: 400; }
.agency-promo-table tr > :nth-child(2) { padding-right: 8px; text-align: right; }

.agency-promo-terms h3 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.agency-promo-terms p {
  color: #a99a88;
  font-size: 11px;
  line-height: 1.55;
}

.agency-promo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agency-promo-actions button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid #7a6360;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.agency-promo-secondary {
  border-color: #393939;
  background: #2229;
  color: #ccb37a;
}

.agency-promo-primary {
  background: linear-gradient(159deg, #7a6360, #322b25);
  color: #fff;
}

.agency-promo-secondary:hover { background: #3c2e25; }
.agency-promo-primary:hover { background: linear-gradient(159deg, #8c706b, #3b3029); }
/* 2026.11.22 文档第 2 条：做成链接的「联系客服」等按钮原来只有底色、贴着字 → 补上按钮的内边距、圆角和边框 */
a.agency-promo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 16px;
  border: 1px solid #8a7059;
  border-radius: 8px;
  color: #fff1df;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px #ffffff1f;
}
.profile-faq-support-link { margin-top: 8px; }

@media (max-width: 350px) {
  .agency-promo-table thead th { font-size: 12px; }
  .agency-promo-table th,
  .agency-promo-table td { padding-inline: 3px; }
  .agency-promo-table tr > :nth-child(2) { padding-right: 4px; }
}

.promotion-page {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 8px 12px max(24px, env(safe-area-inset-bottom));
}

.promotion-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #393939;
  border-radius: 999px;
  background: var(--color-card-from);
}

.promotion-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f8e8d1;
  font-size: 14px;
}

.promotion-tabs button[aria-pressed="true"] {
  border-color: #b69366;
  background: linear-gradient(var(--color-card-from), var(--color-card-to));
  color: #ccb37a;
}

.promotion-content {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.promotion-summary {
  background: linear-gradient(#24201b, #1b1814);
}

.promotion-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  text-align: center;
}

.promotion-stats > div {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 4px;
  padding: 2px 3px;
}

.promotion-summary .promotion-stats > div + div,
.promotion-team-counts > div + div {
  border-left: 1px solid #e5bf8b28;
}

.promotion-summary .promotion-stats {
  padding-block: 8px;
  border-radius: 11px;
  background: linear-gradient(90deg, #634c3a, #3f3024 17%, #150f07 82%);
}

.promotion-stats dt {
  color: #dfc8a0;
  font-size: 12px;
  line-height: 1.3;
}

.promotion-stats dd {
  color: #f7e3c3;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.promotion-reward {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  padding: 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.promotion-reward img {
  position: absolute;
  z-index: -1;
  right: 8px;
  bottom: 2px;
  width: 94px;
  object-fit: contain;
  opacity: .42;
}

.promotion-reward strong {
  color: #f8e8d1;
  font-size: 22px;
}

.promotion-muted,
.promotion-status {
  color: #beac94;
  font-size: 11px;
  line-height: 1.45;
}

.promotion-link-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #4b4136;
  border-radius: 12px;
  background: linear-gradient(155deg, #3d362f, #1d1b18);
}

.promotion-link-card h2,
.promotion-team-head h2 {
  color: #fff4e6;
  font-size: 16px;
  font-weight: 650;
}

.promotion-link-card h2 { text-align: center; }

.promotion-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #7a6650;
  border-radius: 8px;
  background: #17141099;
  color: #e9d2ad;
  font-size: 13px;
  text-align: start;
}

.promotion-copy > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-copy > :last-child {
  color: #d7ac73;
  text-align: center;
}

.promotion-copy:hover { background: #2b221a; }
.promotion-link-entry {
  display: grid;
  gap: 10px;
  width: 100%;
  color: #fff4e6;
  font-size: 16px;
  font-weight: 650;
}

.promotion-link-entry .promotion-copy {
  color: #e9d2ad;
  font-weight: 400;
}

.promotion-link-entry:hover .promotion-copy { background: #2b221a; }
.promotion-link-entry .chevron { justify-self: center; }
.promotion-link-detail-copy { grid-template-columns: minmax(0, 1fr) auto; }
.promotion-link-detail-copy > :first-child { white-space: normal; overflow-wrap: anywhere; }
.promotion-status:empty { display: none; }
.promotion-status { overflow-wrap: anywhere; }
.promotion-note { color: var(--color-dim); text-align: center; font-size: 11px; }
.promotion-copy-icon { position: relative; height: 18px; }
.promotion-copy-icon::before,
.promotion-copy-icon::after {
  position: absolute;
  width: 10px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}
.promotion-copy-icon::before { top: 2px; left: 3px; }
.promotion-copy-icon::after { top: 5px; left: 6px; background: #211b15; }

.promotion-team-overview {
  position: relative;
  isolation: isolate;
  padding: 14px 14px 12px;
  background: linear-gradient(100deg, #634c3a, #3f3024 35%, #150f07 85%);
}

.promotion-team-overview > img {
  position: absolute;
  z-index: -1;
  top: 8px;
  right: 0;
  width: min(42%, 145px);
  opacity: .3;
  pointer-events: none;
}

.promotion-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.promotion-team-head select {
  min-height: 32px;
  padding: 3px 6px;
  border: 1px solid #755c42;
  border-radius: 8px;
  background: #211911;
  color: #f1d9b6;
  font-size: 13px;
}

.promotion-team-overview > strong {
  display: block;
  margin: 4px 0 10px;
  color: #f7dfba;
  font-size: 28px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.promotion-team-counts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promotion-team-finances {
  gap: 8px 0;
  padding: 12px;
  background: linear-gradient(#28231e, #171512);
}

.promotion-members {
  padding: 12px;
  border: 1px solid #4b4136;
  border-radius: 12px;
  background: linear-gradient(#2e2922, #1b1814);
}

.promotion-members summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  color: #fff4e6;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.promotion-members summary > :nth-child(2) {
  min-width: 23px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #43392d;
  color: #d8b781;
  font-size: 12px;
  text-align: center;
}

.promotion-members summary::after {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1px solid #d8b781;
  border-bottom: 1px solid #d8b781;
  content: "";
  transform: rotate(45deg);
}

.promotion-members[open] summary::after { transform: rotate(225deg); }

.promotion-members ul {
  display: grid;
  gap: 1px;
  margin-top: 6px;
}

.promotion-members li {
  border-top: 1px solid #e5bf8b1f;
}

.promotion-members li img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.promotion-members li small { color: #beac94; }

@media (max-width: 350px) {
  .promotion-link-card { padding-inline: 12px; }
  .promotion-team-overview { padding-inline: 10px; }
  .promotion-stats dt { font-size: 11px; }
}

.agency-consultation {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 16px 16px max(24px, env(safe-area-inset-bottom));
}

.consult-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #71513a80;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b342d, #211911 56%, #191612);
  box-shadow: 0 8px 20px #0004;
}

.consult-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  border-bottom: 1px solid #e5bf8b26;
}

.consult-card > header img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.consult-card h1 {
  color: #f8e8d1;
  font-size: 18px;
  line-height: 1.35;
}

.consult-card > header p {
  margin-top: 3px;
  color: #cdb79b;
  font-size: 11px;
  line-height: 1.45;
}

.consult-indicator {
  align-self: start;
  padding: 4px 7px;
  border: 1px solid #9e7d535c;
  border-radius: 999px;
  color: #e4c79d;
  font-size: 11px;
  white-space: nowrap;
}

.consult-conversation {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100px;
  max-height: 260px;
  overflow: auto;
  padding: 14px 12px;
}

.consult-message {
  justify-self: start;
  width: fit-content;
  max-width: 93%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #a2825f42;
  border-radius: 4px 10px 10px;
  background: #322920;
  color: #f4e3cf;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.consult-message-user {
  justify-self: end;
  border-radius: 10px 4px 10px 10px;
  background: #4c3926;
  color: #fff0dc;
}

.consult-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5bf8b26;
}

.consult-form label {
  color: #dfc89d;
  font-size: 12px;
}

.consult-form textarea {
  width: 100%;
  min-height: 66px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid #7a636075;
  border-radius: 8px;
  background: #171410;
  color: #f8e8d1;
  font-size: 16px;
  line-height: 1.45;
}

.consult-form textarea::placeholder { color: #b1a18d; }

.consult-form .agency-promo-primary {
  justify-self: end;
  min-width: 88px;
  min-height: 40px;
  padding-inline: 12px;
  border: 1px solid #7a6360;
  border-radius: 10px;
  font-size: 14px;
}

.consult-note {
  color: var(--color-dim);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 350px) {
  .consult-card > header { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .consult-card > header img { width: 36px; height: 36px; }
}

.member-detail-content {
  padding: 0 14px max(24px, env(safe-area-inset-bottom));
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 15px;
  border: 1px solid #9a795d66;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--color-card-from), var(--color-card-to));
}

.member-profile > img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: #29231c;
  object-fit: contain;
}

.member-profile > div {
  flex: 1;
  min-width: 0;
}

.member-profile h2 {
  color: var(--color-hi);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.member-profile p {
  margin-top: 2px;
  color: #b4a492;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.member-vip {
  flex: none;
  padding: 3px 7px;
  border: 1px solid #a9875f66;
  border-radius: 999px;
  background: #33291f;
  color: #e0bf88;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.member-metrics {
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 8px;
  background: #221e1a;
}

.member-metric-group {
  padding-block: 11px;
}

.member-metric-group + .member-metric-group {
  border-top: 1px solid #f3d5b319;
}

.member-metric-group h2 {
  margin-bottom: 6px;
  color: #dfc89d;
  font-size: 13px;
  font-weight: 650;
}

.member-metric-group dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.member-metric-group dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 23px;
}

.member-metric-group dt {
  color: #b4a492;
  font-size: 13px;
}

.member-metric-group dd {
  margin: 0;
  color: var(--color-hi);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.member-metric-group .member-negative {
  color: #ec8189;
}

.member-note {
  margin-top: 12px;
  color: var(--color-dim);
  font-size: 11px;
  text-align: center;
}

.promotion-members .member-detail-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 7px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 3px;
  border-radius: 6px;
  color: #eee0ce;
  font-size: 13px;
  text-align: left;
}

.promotion-members .member-detail-link:hover {
  background: #e5bf8b12;
}

.member-detail-link > span:first-of-type {
  overflow-wrap: anywhere;
}

.member-detail-link .chevron {
  width: 6px;
  height: 6px;
  color: #c9a877;
}

@media (max-width: 350px) {
  .member-profile { gap: 8px; padding-inline: 10px; }
  .member-profile p { font-size: 11px; }
}

.promotion-share-content {
  display: grid;
  gap: 16px;
  padding: 8px 12px max(24px, env(safe-area-inset-bottom));
}

.promotion-share-preview {
  gap: 8px;
  text-align: center;
}

.promotion-share-art {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 102px;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #7a636066;
  border-radius: 10px;
  background: radial-gradient(ellipse at 82% 72%, #9a674453, transparent 52%),
    linear-gradient(115deg, #4c392b, #211912 70%);
}

.promotion-share-logo {
  width: min(61%, 160px);
}

.promotion-share-coins {
  position: absolute;
  z-index: -1;
  right: 4px;
  bottom: -10px;
  width: min(42%, 132px);
  opacity: .44;
}

.promotion-share-preview h2 {
  margin-top: 4px;
}

.promotion-share-preview p {
  color: #c8b7a0;
  font-size: 12px;
  line-height: 1.45;
}

.promotion-story-preview {
  display: grid;
  min-width: 0;
  justify-items: center;
}

.promotion-story-art {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(100%, 248px);
  aspect-ratio: 9 / 16;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  overflow: hidden;
  padding: 24px 14px;
  border: 1px solid #8c6f4b;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 55% 35%, #c98d4950, transparent 50%),
    radial-gradient(ellipse at 5% 60%, #69503240, transparent 45%),
    linear-gradient(150deg, #120f0d 0%, #3d2b1c 44%, #171210 82%);
  box-shadow: 0 12px 24px #0005, inset 0 1px #f2c89035;
  text-align: center;
}

.promotion-story-art::before {
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid #e3bb7f3b;
  border-radius: 11px;
  content: "";
  pointer-events: none;
}

.promotion-story-logo {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 66%;
  transform: translateX(-50%);
}

.promotion-story-coins {
  position: absolute;
  z-index: -1;
  top: 20%;
  left: 50%;
  width: 90%;
  height: 47%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px #170e09a3);
  transform: translateX(-50%);
}

.promotion-story-caption {
  display: grid;
  gap: 3px;
  max-width: 100%;
}

.promotion-story-caption h2 {
  color: #fff0d7;
  font-size: clamp(21px, 7vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.promotion-story-caption p {
  color: #e7cc9f;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}


.income-claim-content {
  display: grid;
  gap: 16px;
  padding: 8px 12px max(20px, env(safe-area-inset-bottom));
}

.income-claim-card .income-overview {
  min-height: 86px;
  padding-block: 14px;
}

.income-claim-card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.income-claim-vip {
  width: 43px;
  height: auto;
  object-fit: contain;
}

.income-claim-card .income-claim-button {
  min-width: 98px;
  min-height: 34px;
}

.income-claim-button:disabled {
  opacity: .56;
  cursor: default;
}

.income-claim-status {
  color: var(--color-primary);
  font-size: 12px;
  line-height: 1.45;
}

.income-claim-status:empty { display: none; }

.rebate-rates {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.rebate-category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px;
  scrollbar-width: none;
}

.rebate-category-list button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 30px;
  padding-inline: 12px;
  border: 1px solid #393939;
  border-radius: 999px;
  background: #241f19;
  color: var(--color-mid);
  font-size: 12px;
  white-space: nowrap;
}

.rebate-category-list button[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #393029, #211b15);
  color: var(--color-primary);
}

.rebate-rate-table {
  width: 100%;
  border: 1px solid #71513a56;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #241f19, #1a1814);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rebate-rate-table thead th {
  height: 34px;
  border-bottom: 1px solid #5d4b3b;
  color: var(--color-hi);
  font-size: 14px;
  font-weight: 600;
}

.rebate-rate-table tbody th,
.rebate-rate-table tbody td {
  height: 27px;
  padding-inline: 8px;
  color: #dfc89d;
  font-size: 12px;
  font-weight: 400;
}

.rebate-rate-table tr > :first-child { padding-left: 16px; text-align: left; }
.rebate-rate-table tr > :last-child { padding-right: 16px; text-align: right; }

.deposit-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 8px 12px max(20px, env(safe-area-inset-bottom));
}

.deposit-tabs button {
  min-width: 0;
}

.deposit-card,
.deposit-note {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #241f19, #1a1814);
}

.deposit-card {
  display: grid;
  gap: 16px;
}

.deposit-method-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.deposit-method-title img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.deposit-method-title h2 {
  color: var(--color-hi);
  font-size: 15px;
  line-height: 1.3;
}

.deposit-demo-code {
  display: grid;
  width: min(100%, 154px);
  justify-items: center;
  gap: 4px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid #76604566;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 25%, #6b4e302b, transparent 70%), #1a1713;
  color: #cbb494;
  font-size: 11px;
  text-align: center;
}

.deposit-demo-code img {
  display: block;
  width: 88px;
  height: 72px;
  object-fit: contain;
}

.deposit-form {
  display: grid;
  gap: 10px;
}

.deposit-form label {
  color: var(--color-hi);
  font-size: 14px;
  font-weight: 600;
}

.deposit-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.deposit-amounts button {
  min-height: 36px;
  padding: 5px 6px;
  border: 1px solid #42392f;
  border-radius: 8px;
  background: #211c17;
  color: #dfc89d;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.deposit-amounts button:hover,
.deposit-amounts button[aria-pressed="true"] {
  border-color: #aa8c5c;
  background: linear-gradient(180deg, #3a3022, #241b14);
  color: #f4dfb3;
}

.deposit-input {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid #514439;
  border-radius: 8px;
  background: #1b1714;
}

.deposit-input:focus-within {
  border-color: var(--color-primary);
}

.deposit-input input {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  padding-right: 8px;
  border: 0;
  background: transparent;
  color: var(--color-hi);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.deposit-input input:focus {
  outline: none;
}

.deposit-input input::placeholder {
  color: #a3927d;
}

.deposit-input span {
  color: #dfc89d;
  font-size: 12px;
}

.deposit-submit {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #7a6360;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.deposit-status {
  color: #dfc89d;
  font-size: 12px;
  line-height: 1.5;
}

.deposit-status:empty {
  display: none;
}

.deposit-note {
  color: #c8b7a1;
  font-size: 12px;
  line-height: 1.55;
}

.deposit-header-records {
  position: absolute;
  inset: 0 4px 0 auto;
  display: grid;
  width: 44px;
  place-items: center;
}

.deposit-header-records img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

@media (max-width: 350px) {
  .deposit-card, .deposit-note { padding-inline: 12px; }
}

.withdraw-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 12px max(20px, env(safe-area-inset-bottom));
}

.withdraw-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #6b554066;
  border-radius: 8px;
  background: linear-gradient(90deg, #634c3a, #3f3024 17%, #150f07 81%);
  color: var(--color-hi);
  font-size: 13px;
}

.withdraw-wallet img {
  flex: none;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.withdraw-wallet p { flex: 1; }
.withdraw-wallet span { color: #dfc89d; font-size: 11px; }
.withdraw-wallet strong { font-variant-numeric: tabular-nums; }

.withdraw-form {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff0d;
}

.withdraw-form label {
  color: var(--color-hi);
  font-size: 14px;
  font-weight: 600;
}

.withdraw-destination {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #514439;
  border-radius: 8px;
  background: #1b1714;
  color: var(--color-hi);
  font-size: 13px;
}

.withdraw-destination img { width: 25px; height: 25px; object-fit: contain; }
.withdraw-destination p { overflow-wrap: anywhere; }
.withdraw-destination span { color: #dfc89d; font-size: 11px; }

.withdraw-input button {
  flex: none;
  min-height: 34px;
  padding-inline: 4px;
  color: var(--color-primary-light);
  font-size: 13px;
}

.withdraw-status {
  color: #dfc89d;
  font-size: 12px;
  line-height: 1.5;
}

.withdraw-status:empty { display: none; }

@media (max-width: 350px) {
  .withdraw-form { padding-inline: 12px; }
}

.finance-records-content {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px 12px max(40px, env(safe-area-inset-bottom));
}

.finance-records-content:has(.finance-records-empty:not([hidden])) {
  align-content: stretch;
  min-height: calc(100dvh - 100px);
}

.finance-records-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
  color: var(--color-hi);
  font-size: 14px;
  text-align: center;
}

.finance-records-empty img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.finance-records-list {
  display: grid;
  gap: 8px;
}

.finance-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
}

.finance-record-details {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.finance-record-details h2 {
  color: #f0d7af;
  font-size: 14px;
  font-weight: 600;
}

.finance-record-details time,
.finance-record-details span,
.finance-record-end {
  color: var(--color-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.finance-record-details span {
  overflow-wrap: anywhere;
}

.finance-record-amount {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #dfc89d;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.finance-record-amount strong {
  font-size: 16px;
  font-weight: 700;
}

.finance-record-amount span {
  font-size: 13px;
}

.finance-record-end {
  margin-top: 4px;
  text-align: center;
}

.transaction-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 8px 14px max(24px, env(safe-area-inset-bottom));
}

.transaction-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.transaction-types {
  display: flex;
  gap: 8px;
}

.transaction-types button,
.transaction-date select {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #3e352c;
  border-radius: 999px;
  background: #241f19;
  color: var(--color-hi);
  font-size: 12px;
  white-space: nowrap;
}

.transaction-types button[aria-pressed="true"] {
  border-color: #9e814d;
  background: linear-gradient(#3f3525, #30271a);
  color: #f0d6a6;
}

.transaction-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-dim);
  font-size: 11px;
  white-space: nowrap;
}

.transaction-date select {
  padding-right: 8px;
  border-radius: 8px;
}

.transaction-results {
  min-width: 0;
}

.transaction-results > .finance-records-empty {
  min-height: max(200px, calc(100dvh - 180px));
}

.transaction-row {
  display: grid;
  min-height: 70px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
}

.transaction-row img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.transaction-details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.transaction-details span,
.transaction-details time {
  color: var(--color-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.transaction-details .transaction-type-label {
  color: #f0d7af;
  font-size: 14px;
  font-weight: 600;
}

.transaction-amount {
  color: #dfc89d;
  font-size: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 350px) {
  .transaction-filters,
  .transaction-types {
    gap: 6px;
  }

  .transaction-types button,
  .transaction-date select {
    padding-inline: 8px;
  }

  .transaction-row {
    padding-inline: 8px;
  }
}

.transaction-detail-content {
  display: grid;
  gap: 16px;
  padding: 8px 14px max(24px, env(safe-area-inset-bottom));
}

.transaction-detail-data {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.transaction-detail-summary {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 8px 0;
  text-align: center;
}

.transaction-detail-summary img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.transaction-detail-summary span {
  color: #3dbb76;
  font-size: 14px;
  font-weight: 600;
}

.transaction-detail-summary strong {
  max-width: 100%;
  color: #f8e8d1;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.transaction-detail-fields {
  margin: 0;
  padding: 2px 14px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
}

.transaction-detail-fields > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 0;
}

.transaction-detail-fields > div + div {
  border-top: 1px solid #e9ca9e21;
}

.transaction-detail-fields dt {
  color: #dfc89d;
  font-size: 13px;
}

.transaction-detail-fields dd {
  margin: 0;
  color: var(--color-hi);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.transaction-detail-content > .finance-records-empty {
  min-height: max(220px, calc(100dvh - 136px));
}

.transaction-row {
  width: 100%;
  grid-template-columns: 32px minmax(0, 1fr) auto 8px;
  text-align: left;
}

.transaction-row:hover {
  background: linear-gradient(#31271d, #241f19);
}

.transaction-detail-arrow {
  justify-self: center;
  width: 6px;
  height: 6px;
  border-right: 1px solid #a68a64;
  border-top: 1px solid #a68a64;
  transform: rotate(45deg);
}

.bet-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.bet-filters .bet-category-list {
  min-width: 0;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: thin;
  scrollbar-color: #6b573d transparent;
}

.bet-category-list button {
  flex: 0 0 auto;
}

.bet-records-content .finance-records-empty {
  min-height: max(200px, calc(100dvh - 180px));
}

.bet-record-row {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 32px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
  text-align: left;
}

.bet-record-row:hover { background: linear-gradient(#31271d, #241f19); }
.bet-detail-arrow { justify-self: center; color: #a68a64; }

.bet-record-row > img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.bet-record-info,
.bet-record-values {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.bet-record-category,
.bet-record-info time,
.bet-record-values > span {
  color: var(--color-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bet-record-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 5px;
}

.bet-record-heading .bet-record-game {
  min-width: 0;
  color: #f8e8d1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bet-record-status {
  padding: 1px 6px;
  border-radius: 999px;
  background: #413628;
  color: #e9cfa6;
  font-size: 10px;
  line-height: 1.45;
  white-space: nowrap;
}

.bet-record-values {
  max-width: 110px;
  text-align: right;
}

.bet-record-values strong {
  color: #f8e8d1;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bet-record-row .is-win,
.bet-detail-summary .is-win {
  color: #69d396;
}

.bet-record-row .is-loss,
.bet-detail-summary .is-loss {
  color: #f0978b;
}

.bet-record-row .is-pending,
.bet-detail-summary .is-pending {
  color: #dfbf87;
}

.bet-record-status.is-win {
  background: #213c2c;
}

.bet-record-status.is-loss {
  background: #432c27;
}

.bet-detail-summary img { border-radius: 16px; }
.bet-detail-summary .bet-record-status {
  color: #e9cfa6;
  font-size: 11px;
}
.bet-detail-summary .bet-record-status:not(.is-pending) {
  background: #213c2c;
  color: #89d6a7;
}

@media (max-width: 350px) {
  .bet-filters {
    gap: 6px;
  }

  .bet-record-row {
    gap: 6px;
    padding-inline: 8px;
  }

  .bet-record-values {
    max-width: 92px;
  }
}

.daily-profit-content {
  display: grid;
  gap: 16px;
  padding: 20px 12px max(40px, env(safe-area-inset-bottom));
}

.daily-profit-summary {
  position: relative;
  isolation: isolate;
  min-height: 108px;
  padding: 12px 14px 16px;
  overflow: hidden;
  border: 1px solid #8b7053;
  border-radius: 12px;
  background: linear-gradient(100deg, #614936, #372a20 56%, #1c1610);
}

.daily-profit-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.daily-profit-summary-head h2,
.daily-profit-bets h2 {
  color: var(--color-hi);
  font-size: 15px;
  font-weight: 650;
}

.daily-profit-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.daily-profit-amount strong {
  color: #f8e8d1;
  font-size: clamp(24px, 8vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.daily-profit-art {
  position: absolute;
  z-index: -1;
  right: 4px;
  bottom: -36px;
  width: 146px;
  height: 146px;
  object-fit: contain;
  opacity: .35;
  pointer-events: none;
}

.daily-profit-details {
  display: grid;
  gap: 14px;
  padding: 16px 12px;
  border: 1px solid #493c30;
  border-radius: 12px;
  background: linear-gradient(#37312a, #1d1b18);
}

.daily-profit-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f8e8d1;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.daily-profit-section-title::before,
.daily-profit-section-title::after {
  width: 48px;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, #a1845b);
}

.daily-profit-section-title::after { transform: scaleX(-1); }

.daily-profit-metrics {
  display: grid;
  gap: 8px;
}

.daily-profit-metric-group {
  display: grid;
  gap: 8px;
  margin: 0;
}

.daily-profit-metric-group.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-profit-metric-group.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-profit-metric-group > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid #806a4d40;
  border-radius: 8px;
  background: #17141080;
  text-align: center;
}

.daily-profit-metric-group dt {
  color: #ccb79b;
  font-size: 11px;
}

.daily-profit-metric-group dd {
  margin: 0;
  color: #f8e8d1;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.daily-profit-content .is-win { color: #69d396; }
.daily-profit-content .is-loss { color: #f0978b; }

.daily-profit-bets {
  display: grid;
  gap: 8px;
}

.daily-profit-bets .finance-records-empty {
  min-height: 140px;
}

@media (max-width: 350px) {
  .daily-profit-details { padding-inline: 8px; }
  .daily-profit-metric-group { gap: 5px; }
  .daily-profit-metric-group dd { font-size: 13px; }
}

.account-management-content {
  display: grid;
  gap: 20px;
  padding: 20px 12px max(40px, env(safe-area-inset-bottom));
}

.account-management-tabs button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(var(--color-card-from), var(--color-card-to)) padding-box,
    linear-gradient(104deg, #ccb37a, #322b25) border-box;
}

.bound-account-list {
  display: grid;
  gap: 8px;
}

.bound-account-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
  color: #f8e8d1;
}

.bound-account-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bound-account-tg-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #8d7548;
  border-radius: 50%;
  background: #3a3024;
  color: #f8e8d1;
}

.bound-account-info { display: grid; gap: 2px; }

.bound-account-kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--color-mid);
  font-size: 12px;
  line-height: 16px;
}

.bound-account-kind span { color: var(--color-primary-light); }
.bound-account-name { font-size: 18px; font-weight: 500; line-height: 24px; }
.bound-account-id { font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }

/* 没有底部导航的页面统一在顶部放返回按钮：代理合营、我的推广原来只有页面最底部的「返回」。
   这两个页面自带左右内边距，表头用负外边距铺满整行。 */
.subpage-top-header {
  margin-inline: -16px;
  margin-top: -16px;
}
#promotion > .subpage-top-header {
  margin-inline: -12px;
  margin-top: -6px;
}
.subpage-top-title {
  color: var(--color-hi);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

/* 充值页：收款账户信息 */
.deposit-account { display: grid; gap: 8px; padding: 12px; border: 1px solid #393939; border-radius: 12px; background: #191817; }
.deposit-account-title { color: var(--color-hi); font-size: 14px; font-weight: 600; }
.deposit-account-list { display: grid; gap: 6px; margin: 0; }
.deposit-account-list > div { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.deposit-account-list dt { color: #9a948a; }
.deposit-account-list dd { margin: 0; color: var(--color-hi); word-break: break-all; }
.deposit-account-list button { padding: 2px 8px; border: 1px solid #5a5040; border-radius: 999px; color: #ddbb78; font-size: 12px; }
.deposit-account-qr { width: 160px; height: 160px; justify-self: center; border-radius: 8px; background: #fff; object-fit: contain; }
.deposit-account-hint { color: #9a948a; font-size: 12px; }
.deposit-form > select { width: 100%; }

/* 首页分类：没有游戏的分类隐藏（display 规则会盖过 hidden 属性） */
#categories [hidden] { display: none !important; }

/* 底部导航「官方」：银河国际 GI 图标（替换原 SD 字样）；未选中时压暗，选中时原色 */
.nav-brand-img { width: 40px; height: 22px; object-fit: contain; filter: grayscale(.55) brightness(.75); }
[aria-current] .nav-brand-img { filter: none; }

/* 当日盈亏：统计日期选择 + 已结算 / 钱包变动两组 */
.daily-profit-date-label { display: flex; align-items: center; gap: 8px; color: #cdb9a3; font-size: 12px; white-space: nowrap; }
.daily-profit-date-label input {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #d8c3ae44;
  border-radius: 6px;
  background: #00000040;
  color: #f8e8d1;
  font: inherit;
  font-size: 13px;
  color-scheme: dark;
}
.daily-profit-note { margin: 0; color: #b8a794; font-size: 12px; line-height: 1.6; }
.daily-profit-count { margin: -4px 0 0; color: #cdb9a3; font-size: 12px; }
.daily-profit-group-title { margin: 6px 0 -2px; color: #dfc89d; font-size: 14px; font-weight: 500; }
.daily-profit-content .daily-profit-metric-group dd.is-loss { color: #f0978b; }

/* 头像（含下方 VIP 标）点击进入「VIP详情」 */
.account-bar #open-vip-detail { cursor: pointer; }
.profile-badge { cursor: pointer; }
.vip-detail-content { display: grid; gap: 18px; padding: 8px 12px max(40px, env(safe-area-inset-bottom)); }
.vip-detail-content h2 { margin: 6px 0 10px; color: var(--color-hi); font-size: 18px; font-weight: 700; }
.vip-detail-scroll { overflow-x: auto; scrollbar-width: none; }
.vip-detail-scroll::-webkit-scrollbar { display: none; }
.vip-detail-table { min-width: 100%; white-space: nowrap; }
.vip-detail-table th, .vip-detail-table td { padding: 10px 10px; text-align: center; }
.vip-detail-table tbody th { color: #e8cc9d; font-weight: 500; }
.vip-detail-table tbody tr:nth-child(odd) { background: #ffffff08; }
.vip-detail-table td:nth-child(n+2):not(:last-child) { font-variant-numeric: tabular-nums; }
.vip-detail-note { margin: 10px 0 0; color: #9d9183; font-size: 12px; line-height: 1.7; }
.vip-detail-banner { padding: 16px 12px; border: 1px solid #8d6f6a; border-radius: 12px; background: linear-gradient(#8a6966, #5d4644); text-align: center; }
.vip-detail-banner h2 { margin: 0 0 6px; color: #f7e3cf; font-size: 20px; }
.vip-detail-banner p { margin: 0; color: #f3e1d0; font-size: 13px; line-height: 1.6; }

/* 收入页：照原版的结算三格（昨日 / 今日 / 历史） */
.income-settle-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 0;
}
.income-settle-stats > div { display: grid; gap: 4px; text-align: center; }
.income-settle-stats > div + div { border-left: 1px solid #ffffff1a; }
.income-settle-stats dt { color: #a89a8a; font-size: 12px; }
.income-settle-stats dd { margin: 0; color: #f2e6d8; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vip-detail-page .vip-detail-table { width: max-content; min-width: 100%; table-layout: auto; }
.vip-detail-page .vip-detail-table th, .vip-detail-page .vip-detail-table td { min-width: 62px; padding: 10px 8px; white-space: nowrap; }
.vip-detail-page .vip-detail-table tbody th { position: sticky; left: 0; z-index: 1; background: #26221d; }
.vip-detail-content > section { min-width: 0; }
.vip-detail-page .vip-detail-scroll { max-width: 100%; }

/* 人民币（银行卡）充值、提现的换算提示 */
.deposit-cny-note { margin: -4px 0 4px; color: #d8b88a; font-size: 12px; line-height: 1.5; }
/* 第 7 条：提现页的提示紧贴输入框、和标签不齐 → 与输入框留出间距，左边对齐输入框内文字 */
.withdraw-form .deposit-cny-note { margin: 8px 0 0; padding-left: 2px; }
.deposit-bank-fields { display: grid; gap: 8px; }
.deposit-bank-fields[hidden], [data-kind-field][hidden], [data-kind-note][hidden] { display: none; }

/* 充值页：原版的标签、线下充值、底部规则 */
.deposit-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.deposit-tabs button { flex: 1; min-height: 32px; }
.deposit-online[hidden], .deposit-offline[hidden] { display: none; }
.deposit-offline { display: grid; justify-items: center; gap: 10px; padding: 20px 0 8px; text-align: center; }
.deposit-offline h3 { margin: 0; color: #f2e6d8; font-size: 16px; }
.deposit-offline img { width: 96px; height: 96px; object-fit: contain; }
.deposit-offline p { margin: 0; color: #a99886; font-size: 13px; }
.deposit-offline-link { display: grid; place-items: center; width: 100%; text-decoration: none; }
.deposit-rules { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #ffffff0a; color: #a99886; font-size: 12px; line-height: 1.6; }
.deposit-rules p { margin: 0; }
.deposit-rules p::before { content: "ⓘ "; color: #d8b88a; }
.deposit-cny-note.is-warning { color: #f0978b; }
