:root {
  color-scheme: dark;
  --bg: #0b0e1c;
  --panel: #171332;
  --panel-2: #21153f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f3ff;
  --muted: #9ea6c7;
  --accent: #8f59ff;
  --accent-2: #00e0ff;
  --gold: #ffd56a;
  --danger: #ff4b80;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #0a0d18;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  isolation: isolate;
  background-color: #0a0d18;
  background-image: url("bg/home-bg.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(0, 0, 0, 0.45);
  overflow-x: visible;
  overflow-y: visible;
}

.phone-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%, transparent 72%, rgba(0, 0, 0, 0.35) 100%);
}

.phone-shell > .screen {
  position: relative;
  z-index: 1;
}

.screen {
  position: relative;
  min-height: 100vh;
  padding: 14px 16px 78px;
  overflow: visible;
}

.topbar,
.brand,
.wallet,
.section-title,
.profile-card {
  display: flex;
  align-items: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  justify-content: space-between;
  gap: 10px;
  margin: -14px -16px 14px;
  padding: 12px 16px 10px;
  background:
    linear-gradient(180deg, rgba(28, 20, 48, 0.88), rgba(16, 14, 32, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(min(6.667vw, 28.533px));
  -webkit-backdrop-filter: blur(min(6.667vw, 28.533px));
}

.brand {
  gap: 9px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 9px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -1px;
  overflow: hidden;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.brand span,
.profile-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-login {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.auth-register {
  background: linear-gradient(135deg, #ff7b4d, #ff3b8d);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 59, 141, 0.35);
}

.guest-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(143, 89, 255, 0.22), rgba(0, 224, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 34px rgba(60, 17, 118, 0.22);
}

.guest-copy strong {
  display: block;
  font-size: 17px;
}

.guest-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guest-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guest-btns .auth-btn {
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
}

.wallet {
  gap: 7px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.coin {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #144d58, #22ffe6);
  color: #06232b;
  font-size: 13px;
  font-weight: 900;
}

.icon-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pill-button,
.primary-button {
  border-radius: 999px;
  background: linear-gradient(135deg, #9258ff, #ff51b6);
  color: #fff;
  font-weight: 700;
}

.pill-button {
  padding: 6px 12px;
  font-size: 12px;
}

.avatar-btn {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b2a6b, #1e1638);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
}

.avatar-face {
  font-size: 14px;
  line-height: 1;
}

.avatar-plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1.5px #1a1230;
}

.merchant-strip {
  display: flex;
  gap: 0;
  margin: 10px 0 4px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(40, 28, 72, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.merchant-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  color: #ffb86c;
  font-size: 12px;
}

.merchant-item em {
  flex: 0 0 auto;
  font-style: normal;
  color: rgba(255, 200, 140, 0.85);
}

.merchant-item strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev-btn {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chev-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 158px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 13, 38, 0.96) 0%, rgba(30, 17, 64, 0.72) 48%, rgba(97, 38, 139, 0.45) 100%),
    radial-gradient(circle at 82% 36%, rgba(45, 233, 255, 0.58), transparent 5rem);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(60, 17, 118, 0.35);
}

.hero-card::after {
  position: absolute;
  inset: auto 22px 15px 72px;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 20px, transparent 20px 32px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 800;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.hero-card em {
  color: #40e4ff;
  font-style: normal;
}

.hero-card p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift {
  position: relative;
  width: 106px;
  transform: rotate(-12deg);
}

.gift span,
.gift i {
  position: absolute;
  display: block;
  border-radius: 18px;
  background: linear-gradient(135deg, #42f8ff, #8055ff 62%, #ff61bd);
  box-shadow: 0 0 28px rgba(67, 244, 255, 0.55);
}

.gift span {
  right: 6px;
  top: 36px;
  width: 82px;
  height: 70px;
}

.gift i {
  right: 18px;
  top: 17px;
  width: 58px;
  height: 26px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 14px 0 12px;
}

.qa-btn {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.qa {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 7px;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.qa img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.qa-deposit,
.qa-withdraw,
.qa-task,
.qa-income,
.qa-invite {
  background: transparent;
  box-shadow: none;
}

.tabs {
  position: sticky;
  top: var(--sticky-topbar-h, 58px);
  z-index: 39;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 2px -4px 12px;
  padding: 4px;
  border-radius: min(7.467vw, 31.957px);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(64, 47, 71, 0.22), rgba(28, 4, 40, 0.28));
  border: 0;
  box-shadow: inset 0 0 0 min(0.267vw, 1.141px) hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(min(6.667vw, 28.533px));
  -webkit-backdrop-filter: blur(min(6.667vw, 28.533px));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs .tab {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  width: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #909399;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.tabs .tab i {
  display: grid;
  place-items: center;
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  filter: none;
  opacity: 0.85;
}

.tabs .tab .tab-svg {
  width: 15px;
  height: 15px;
  display: block;
}

.tabs .tab .tab-svg-home {
  fill: currentColor;
}

.tabs .tab span {
  font-size: 12px;
  font-weight: 500;
}

.tabs .tab.active {
  background: rgba(120, 110, 255, 0.22);
  color: #fff;
  box-shadow: none;
  transform: none;
  font-weight: 700;
}

.tabs .tab.active i {
  filter: none;
  opacity: 1;
}

.tabs .tab.active .tab-svg-home {
  fill: url(#tabHomeGrad);
}

/* 轮播 Banner */
.banner {
  position: relative;
  margin-bottom: 12px;
}

.banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  border-radius: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  position: relative;
  display: flex;
  align-items: center;
  height: 150px;
  overflow: hidden;
  border-radius: 20px;
  scroll-snap-align: center;
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.3);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .banner-copy {
  z-index: 2;
  padding: 0 22px;
}

.banner-slide .banner-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.banner-slide strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.banner-slide p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.banner-glow {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  filter: blur(6px);
}

.banner-slide.theme-b1 { background: linear-gradient(120deg, #3a1d7a, #7b2ff7 55%, #ff2f95); }
.banner-slide.theme-b2 { background: linear-gradient(120deg, #10243f, #1f6feb 55%, #12d6df); }
.banner-slide.theme-b3 { background: linear-gradient(120deg, #14361f, #16a34a 55%, #a3e635); }
.banner-slide.theme-b4 { background: linear-gradient(120deg, #4a1030, #db2777 55%, #ffb347); }

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.banner-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s ease, background 0.25s ease;
}

.banner-dots i.on {
  width: 18px;
  background: #fff;
}

/* 公告跑马灯 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.notice-ico {
  flex: 0 0 auto;
  font-size: 14px;
}

.notice-viewport {
  flex: 1;
  overflow: hidden;
}

.notice-viewport p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.notice-viewport p.scroll {
  display: inline-block;
  padding-left: 100%;
  animation: notice-marquee 18s linear infinite;
}

@keyframes notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sec-title-link {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sec-title-link h2 {
  margin: 0;
}

/* 参考站 icon-右箭头：标题旁始终显示灰色小箭头 */
.sec-title-link::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-left: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpolyline points='6 4.5 10 8 6 11.5' stroke='%23C1C9E6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.sec-title-chev {
  display: none;
}

.section-title h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 18px;
}

.section-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.sec-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: opacity 0.15s ease;
}

.sec-arrow img {
  display: block;
  width: 14px;
  height: 14px;
}

.sec-arrow:disabled,
.sec-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.section-title h2::before {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  content: "";
  border-radius: 6px;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.section-title h2.cat-hot::before {
  background-image: none;
  background: linear-gradient(180deg, #ff9a3c, #ff4b80);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  content: "🔥";
}
.section-title h2.cat-concise::before { background-image: url("./cat-icons/concise.webp"); }
.section-title h2.cat-realbet::before { background-image: url("./cat-icons/realbet.webp"); }
.section-title h2.cat-sport::before { background-image: url("./cat-icons/sport.webp"); }
.section-title h2.cat-joker::before { background-image: url("./cat-icons/joker.webp"); }
.section-title h2.cat-gaming::before { background-image: url("./cat-icons/gaming.webp"); }
.section-title h2.cat-fishing::before { background-image: url("./cat-icons/fishing.webp"); }
.section-title h2.cat-lottery::before { background-image: url("./cat-icons/lottery.webp"); }

.game-sections {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.game-block {
  scroll-margin-top: 10px;
  width: 100%;
  min-width: 0;
}

.game-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}

.game-row .game-item {
  flex: 0 0 110px;
  width: 110px;
  scroll-snap-align: start;
}

/* 热门：竖版封面 */
.game-row-hot .game-item {
  flex: 0 0 86px;
  width: 86px;
}

.game-row-hot .game-card {
  height: 114px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.game-row-hot .game-card img {
  object-fit: cover;
  object-position: center center;
}

.game-row-hot .fallback-art {
  font-size: 28px;
}

.game-row::-webkit-scrollbar {
  display: none;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 110px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.game-card {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 108px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.game-card-name {
  display: block;
  width: 100%;
  padding: 0 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  pointer-events: none;
}

.game-card .fallback-art {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: radial-gradient(circle at 70% 25%, rgba(0, 224, 255, 0.6), transparent 3rem), linear-gradient(135deg, #4425a4, #df3e91);
  font-weight: 900;
  font-size: 24px;
}

.game-item:active .game-card {
  transform: scale(0.97);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  justify-content: space-between;
  gap: 12px 0;
  width: 100%;
}

.game-grid .game-item {
  width: 110px;
}

.game-grid .game-card {
  width: 100%;
  height: 108px;
}

.hot-flag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4b80, #ff9a3c);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.panel.hidden,
.hidden,
.banner.hidden,
.notice-bar.hidden,
.merchant-strip.hidden,
.quick-actions.hidden,
.tabs.hidden {
  display: none !important;
}

.glass-card,
.profile-card,
.activity-item {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.glass-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.activity-list {
  display: grid;
  gap: 14px;
  margin: 0 -2px;
}

.activity-page-head {
  display: block;
  margin-bottom: 14px;
}

.activity-page-head h2 {
  margin: 0;
  font-size: 22px;
}

.activity-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.activity-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
}

.activity-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.activity-overlay strong {
  display: block;
  font-size: 16px;
}

.activity-overlay span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.activity-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 154, 60, 0.18);
  color: #ffcc80;
  font-size: 11px;
}

.activity-tag.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.activity-detail-banner {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 14px;
}

.activity-detail-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.activity-detail-head p {
  margin: 0 0 14px;
  color: var(--muted);
}

.activity-detail-content,
.activity-detail-rules {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.activity-detail-rules h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
}

.transfer-auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.transfer-auto-row strong {
  display: block;
  font-size: 14px;
}

.transfer-auto-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.toggle-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle-switch input:checked + i {
  background: linear-gradient(135deg, #8f59ff, #00e0ff);
}

.toggle-switch input:checked + i::after {
  transform: translateX(20px);
}

.transfer-dialog {
  width: min(94vw, 390px);
  padding: 0;
  border: 0;
  background: transparent;
}

.transfer-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.transfer-modal-card {
  position: relative;
  padding: 20px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1a2238, #121a2e);
  box-shadow: inset 0 0 0 1px var(--line);
}

.transfer-modal-card h3 {
  margin: 0 0 4px;
  text-align: center;
}

.transfer-modal-sub {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.transfer-modal-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.transfer-modal-balances > div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}

.transfer-modal-balances span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.transfer-modal-balances strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: #ffd56a;
}

.transfer-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.transfer-platform-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

#activityPanel.content.panel,
#activityDetailPanel.content.panel {
  padding-top: 4px;
}

.activity-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.activity-banner img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
}

.activity-fallback {
  min-height: 130px;
  padding: 22px;
  background: linear-gradient(135deg, #3a1d7a, #7b2ff7 55%, #ff2f95);
}

.activity-fallback strong {
  display: block;
  font-size: 20px;
}

.activity-fallback span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.activity-apply {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
}

/* 客服弹窗 */
.service-dialog {
  width: min(92vw, 380px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.service-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.service-card {
  position: relative;
  padding: 18px 16px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(36, 25, 74, 0.96), rgba(19, 25, 50, 0.98));
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.service-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.service-hero strong {
  display: block;
  font-size: 20px;
}

.service-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.service-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f59ff, #00e0ff);
  font-size: 28px;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.service-ico {
  font-size: 22px;
}

.service-btn {
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9258ff, #ff51b6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.service-close {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 16px auto 0;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
}

/* 我的页面 - 用户名/VIP/铃铛 */
.profile-header {
  margin-bottom: 14px;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.profile-user-row > strong {
  flex: 0 1 auto;
  max-width: 42%;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3c, #e86a2d);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.vip-badge.hidden {
  display: none !important;
}

.vip-shield {
  font-style: normal;
  font-size: 12px;
}

.vip-badge em {
  font-style: normal;
}

.msg-bell {
  position: relative;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c5cbe4;
}

.bell-ico {
  font-size: 18px;
}

.msg-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 0 2px #171332;
}

.profile-guest {
  display: grid;
  gap: 12px;
  place-items: center;
  margin-bottom: 16px;
  padding: 28px 18px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(143, 89, 255, 0.28), transparent 12rem),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.profile-guest-art {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f59ff, #00e0ff);
  box-shadow: 0 12px 30px rgba(143, 89, 255, 0.35);
}

.profile-guest strong {
  font-size: 18px;
}

.profile-guest p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.profile-guest .guest-btns {
  width: 100%;
}

.account-bar {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.account-balance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.account-balance strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.account-actions button {
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 12px;
}

.account-actions button i {
  font-style: normal;
  font-size: 20px;
}

#profileMenu.menu-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.menu-cell {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #fff;
}

.menu-cell i {
  font-size: 24px;
  font-style: normal;
}

.menu-cell span {
  font-size: 12px;
}

.menu-cell.gold {
  color: #ffd56a;
}

.menu-cell.red {
  color: #ff6b8a;
}

/* 悬浮抢红包 - 右下角 */
.redbag-float {
  position: fixed;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 12;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8a8a, #e11d48 70%);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
  animation: redbag-bounce 2.2s ease-in-out infinite;
}

.redbag-body {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffd56a;
  font-size: 22px;
  font-weight: 900;
}

.redbag-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ffd56a;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 900;
}

@keyframes redbag-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 底部导航 — 对齐参考站 .tabbarNew 尺寸与毛玻璃 */
.bottom-nav {
  --tabbar-h: min(14.933vw, 63.915px);
  --tabbar-r: min(7.467vw, 31.957px);
  --tabbar-blur: min(6.667vw, 28.533px);
  --tabbar-line: min(0.267vw, 1.141px);
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-sizing: content-box;
  width: min(calc(100vw - 25px), 405px);
  height: var(--tabbar-h);
  padding: 0;
  border: 0;
  border-radius: var(--tabbar-r);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(64, 47, 71, 0.12), rgba(28, 4, 40, 0.12));
  box-shadow: inset 0 0 0 var(--tabbar-line) hsla(0, 0%, 100%, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(var(--tabbar-blur));
  -webkit-backdrop-filter: blur(var(--tabbar-blur));
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 100%;
  padding: 0;
  background: transparent;
  color: rgba(193, 201, 230, 0.55);
  font-size: 18px;
  transition: color 0.25s ease;
}

.bottom-nav span {
  font-size: min(2.667vw, 11.4px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav-ico {
  display: grid;
  width: min(8.533vw, 36.5px);
  height: min(8.533vw, 36.5px);
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav-svg {
  width: min(5.333vw, 22.8px);
  height: min(5.333vw, 22.8px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease, filter 0.25s ease, fill 0.25s ease;
}

.bottom-nav button.active {
  color: #fff;
  transform: none;
}

.bottom-nav button.active .nav-ico {
  background: rgba(120, 100, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bottom-nav button.active span {
  color: #fff;
  font-weight: 600;
}

.bottom-nav button.active[data-nav="home"] .nav-svg {
  stroke: url(#navHomeGrad);
  fill: url(#navHomeGrad);
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.55));
}

.bottom-nav button.active[data-nav="home"] .nav-ico {
  background: rgba(168, 85, 247, 0.22);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35), inset 0 0 0 1px rgba(196, 181, 253, 0.25);
}

.bottom-nav button.active[data-nav="activity"] .nav-svg {
  stroke: url(#navGradActivity);
  fill: url(#navGradActivity);
  filter: drop-shadow(0 0 8px rgba(255, 120, 80, 0.45));
}

.bottom-nav button.active[data-nav="service"] .nav-svg {
  stroke: #7ee8c8;
  filter: drop-shadow(0 0 6px rgba(100, 230, 190, 0.45));
}

.bottom-nav button.active[data-nav="download"] .nav-svg {
  stroke: #c4b5fd;
  filter: drop-shadow(0 0 6px rgba(160, 140, 255, 0.4));
}

.bottom-nav button.active[data-nav="profile"] .nav-svg {
  stroke: #ffb4d0;
  filter: drop-shadow(0 0 6px rgba(255, 150, 190, 0.45));
}

/* 首页底部（购买虚拟币 / 游戏事业 / 合法牌照） */
.home-footer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 24px;
  padding: 0 0 16px;
  box-sizing: border-box;
}

.footer-sec {
  width: 100%;
  box-sizing: border-box;
}

.footer-title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.coin-row {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.coin-card {
  display: flex !important;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 16px 6px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.coin-card img {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.coin-card span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.coin-card i {
  display: none !important;
}

.provider-marquee {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.provider-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: provider-marquee 28s linear infinite;
  will-change: transform;
}

.provider-marquee:hover .provider-track {
  animation-play-state: paused;
}

@keyframes provider-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.provider-card {
  display: flex;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.provider-card img {
  display: block;
  width: 100%;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.provider-card span {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* 合规牌照：整图水平垂直居中 */
.license-card {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.license-banner {
  display: block;
  width: auto;
  max-width: 100%;
  height: 52px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* 站内消息 */
.message-dialog {
  width: min(92vw, 380px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.message-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.message-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #24194a, #131932);
  box-shadow: inset 0 0 0 1px var(--line);
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.message-list {
  display: grid;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

.message-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
}

.message-item span {
  color: var(--muted);
  font-size: 12px;
}

.message-item.unread {
  box-shadow: inset 0 0 0 1px rgba(255, 75, 128, 0.35);
}

.msg-new {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ff3b5c;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.msg-detail {
  color: var(--muted);
  line-height: 1.7;
  word-break: break-word;
}

/* 子页面：存款 / 返水 / 签到 */
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-head h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.back-link {
  padding: 0;
  background: transparent;
  color: #ff9a3c;
  font-size: 14px;
}

.panel-sub {
  margin: 0 0 10px;
  font-size: 14px;
}

.pay-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 60, 0.25);
}

.pay-method-card.active {
  background: linear-gradient(135deg, rgba(255, 154, 60, 0.15), rgba(143, 89, 255, 0.12));
}

.pay-method-ico {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-size: 22px;
  font-weight: 900;
}

.pay-method-card strong {
  display: block;
}

.pay-method-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.amount-chip {
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
}

.amount-chip.active {
  background: linear-gradient(135deg, #8f59ff, #00e0ff);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.field-input {
  width: 100%;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.deposit-submit {
  margin-top: 4px;
}

.rebate-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.rebate-summary > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.rebate-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.rebate-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  color: #ffd56a;
}

.rebate-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rebate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.rebate-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.rebate-item em {
  font-style: normal;
  color: #ff9a3c;
  font-weight: 700;
}

.rebate-item.done em {
  color: var(--muted);
}

.sign-card {
  padding: 24px 18px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(143, 89, 255, 0.25), rgba(0, 224, 255, 0.12));
  box-shadow: inset 0 0 0 1px var(--line);
}

.sign-reward span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.sign-reward strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 32px;
  color: #ffd56a;
}

.sign-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.sign-stats > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.sign-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* USDT 支付弹窗 */
.usdt-dialog {
  width: min(94vw, 390px);
  padding: 0;
  border: 0;
  background: transparent;
}

.usdt-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.usdt-card {
  position: relative;
  padding: 20px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a2238, #121a2e);
  box-shadow: inset 0 0 0 1px var(--line);
}

.usdt-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.usdt-tip {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.usdt-amount-box {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  text-align: center;
}

.usdt-amount-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.usdt-amount-box strong {
  display: block;
  margin: 6px 0;
  color: #4ade80;
  font-size: 28px;
}

.usdt-amount-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.usdt-qr-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.usdt-qr-wrap img {
  width: 200px;
  height: 200px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.usdt-addr code {
  display: block;
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #dbe4ff;
  font-size: 11px;
  word-break: break-all;
}

.copy-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 700;
}

.copy-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.usdt-timer {
  margin: 12px 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.usdt-timer strong {
  color: #ff9a3c;
}

.usdt-status {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 154, 60, 0.12);
  color: #ffcc80;
  font-size: 13px;
  text-align: center;
}

.usdt-warn {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 59, 92, 0.1);
  color: #ffb4c7;
  font-size: 11px;
  line-height: 1.5;
}

.brand-mark.has-img,
.auth-logo.has-img {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-mark img,
.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.notice-bar {
  cursor: pointer;
}

.notice-dialog {
  width: min(94vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
}

.notice-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.notice-popup-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1a2238, #121a2e);
  box-shadow: inset 0 0 0 1px var(--line);
}

.notice-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.notice-popup-body {
  max-height: 50vh;
  overflow: auto;
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.notice-list {
  display: grid;
  gap: 8px;
  max-height: 55vh;
  overflow: auto;
}

.notice-list-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.notice-list-item strong {
  display: block;
}

.notice-list-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.filter-row,
.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe4ff;
  font-size: 12px;
}

.filter-chip.active {
  background: linear-gradient(135deg, #8f59ff, #00e0ff);
  color: #fff;
}

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

.record-item,
.flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.record-item span,
.flow-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.record-item em,
.flow-item em {
  color: #ffd56a;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.flow-item img,
.flow-item i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.withdraw-balance {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.withdraw-balance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.withdraw-balance strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: #ffd56a;
}

.card-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.withdraw-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  box-shadow: inset 0 0 0 1px transparent;
}

.withdraw-card.active {
  box-shadow: inset 0 0 0 1px rgba(255, 154, 60, 0.5);
  background: rgba(255, 154, 60, 0.08);
}

.withdraw-card-main {
  flex: 1;
  min-width: 0;
  background: transparent;
  text-align: left;
  color: #fff;
}

.withdraw-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  word-break: break-all;
}

.withdraw-card-ops {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.card-op {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cdd3f0;
}

.card-op.del {
  background: rgba(255, 90, 110, 0.14);
  color: #ff9aa8;
}

.withdraw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 8px;
}

.withdraw-card-head strong {
  font-size: 14px;
}

.bind-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.bind-card-actions .text-button {
  flex-shrink: 0;
}

.bind-card-form,
.withdraw-form {
  margin-top: 14px;
}

.field-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.security-block {
  margin-bottom: 18px;
}

.security-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.vip-current {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.18), rgba(255, 154, 60, 0.1));
}

.vip-current span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.vip-current strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  color: #ffd56a;
}

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

.vip-tier {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.vip-tier span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

/* 贵宾会 */
.vip-page {
  padding-bottom: 12px;
}

.vip-head {
  align-items: flex-start;
}

.vip-head h2 {
  margin: 0;
  font-size: 22px;
  text-align: left;
}

.vip-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.vip-hero-card {
  margin-bottom: 12px;
  padding: 22px 18px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 45%, #2563eb 100%);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.vip-hero-level {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}

.vip-hero-tip {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.vip-week-card,
.vip-progress-card,
.vip-detail-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.vip-week-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.vip-week-num {
  display: block;
  margin: 10px 0 6px;
  font-size: 30px;
  color: #fff;
}

.vip-week-req {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.vip-tier-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.vip-tier-tabs::-webkit-scrollbar {
  display: none;
}

.vip-tier-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
}

.vip-tier-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -3px 0 #8f59ff;
}

.vip-block-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.vip-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.prog-wrap {
  margin-top: 4px;
}

.prog-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.prog-label em {
  color: #ff9a3c;
  font-style: normal;
}

.prog-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.prog-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f59ff, #00e0ff);
}

.vip-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.vip-req-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.vip-req-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.vip-req-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.vip-gift-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.vip-gift-card {
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
}

.vip-gift-card i {
  display: block;
  font-style: normal;
  font-size: 18px;
}

.vip-gift-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.vip-gift-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
}

.vip-gift-card.green i { color: #4ade80; }
.vip-gift-card.blue i { color: #60a5fa; }
.vip-gift-card.orange i { color: #fb923c; }

.vip-rebate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.vip-rebate-card {
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
}

.vip-rebate-card i {
  display: block;
  font-style: normal;
  font-size: 16px;
}

.vip-rebate-card strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.vip-rebate-card em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

/* 投注流水 */
.flow-hero {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(143, 89, 255, 0.22), rgba(0, 224, 255, 0.1));
  box-shadow: inset 0 0 0 1px var(--line);
}

.flow-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.flow-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: #ffd56a;
}

.flow-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.flow-stat-row > div {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.flow-stat-row em {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.flow-stat-row strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

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

.flow-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.flow-section-head span {
  color: var(--muted);
  font-size: 11px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.flow-card {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px transparent;
  text-align: center;
}

.flow-card.has-balance {
  background: linear-gradient(180deg, rgba(255, 154, 60, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 154, 60, 0.25);
}

.flow-card img,
.flow-card i {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-weight: 700;
}

.flow-card strong {
  display: block;
  font-size: 13px;
}

.flow-card em {
  display: block;
  margin-top: 4px;
  color: #ffd56a;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.flow-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

/* 投注流水页 */
.flow-filter-card,
.flow-summary-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.flow-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.flow-link-btn {
  padding: 0;
  background: transparent;
  color: #ff9a3c;
  font-size: 12px;
}

.flow-date-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.flow-date-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.flow-date {
  margin: 0;
  padding: 10px 8px;
  font-size: 12px;
}

.flow-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flow-quick {
  margin: 0;
  flex: 1;
}

.flow-search-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #111827;
  font-weight: 800;
  font-size: 13px;
}

.flow-summary-main {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.flow-summary-main span,
.flow-summary-sub span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.flow-summary-main strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  color: #ff9a3c;
}

.flow-summary-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.flow-summary-sub strong {
  font-size: 16px;
}

/* 游戏转账页 */
.transfer-wallet-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.transfer-wallet-card > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.transfer-wallet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.transfer-wallet-row strong {
  font-size: 30px;
  color: #fff;
}

.transfer-all-btn {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.transfer-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.transfer-section-head i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 154, 60, 0.15);
  color: #ff9a3c;
  font-style: normal;
}

.transfer-platform-list {
  display: grid;
  gap: 8px;
}

.transfer-platform-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.transfer-platform-item img,
.transfer-platform-item > i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 154, 60, 0.25), rgba(255, 107, 0, 0.15));
  font-style: normal;
}

.transfer-platform-meta {
  flex: 1;
  min-width: 0;
}

.transfer-platform-meta strong {
  display: block;
  font-size: 14px;
}

.transfer-platform-meta span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.transfer-platform-item em {
  color: #ff9a3c;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.record-item {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  align-items: flex-start;
}

.record-item em {
  color: #7dd3fc;
}

.record-main {
  flex: 1;
  min-width: 0;
}

.record-state {
  font-style: normal;
  color: var(--muted);
}

.record-state.refused {
  color: #ff8a9a;
}

.record-reason {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 90, 110, 0.12);
  color: #ffb4bd;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.record-amount {
  white-space: nowrap;
}

.primary-button {
  width: 100%;
  padding: 13px 16px;
}

.text-button {
  background: transparent;
  color: #b9c0e2;
}

.profile-card {
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #7a5cff, #1ee8ff);
  font-weight: 900;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.menu-grid button {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.bottom-nav {
  /* merged into primary bottom-nav block above */
}

.bottom-nav button {
  /* merged */
}

.bottom-nav span {
  /* merged */
}

.bottom-nav button.active {
  /* merged */
}

/* 工单 */
.wo-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.wo-create-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wo-textarea {
  min-height: 96px;
  resize: vertical;
}

.wo-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wo-filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.wo-filter-btn.active {
  background: rgba(255, 120, 160, 0.2);
  color: #ffb4d0;
}

.wo-list {
  display: grid;
  gap: 10px;
}

.wo-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #fff;
}

.wo-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wo-item-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wo-item-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.wo-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.wo-status-pending { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.wo-status-processing { background: rgba(96, 165, 250, 0.2); color: #93c5fd; }
.wo-status-replied { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.wo-status-closed { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.wo-thread {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.wo-msg {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.wo-msg-admin {
  background: rgba(120, 180, 255, 0.1);
  border: 1px solid rgba(120, 180, 255, 0.15);
}

.wo-msg-user {
  background: rgba(255, 120, 160, 0.08);
  border: 1px solid rgba(255, 120, 160, 0.12);
}

.wo-msg-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.wo-msg p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.wo-reply-box {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.wo-reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wo-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wo-meta-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.wo-empty {
  text-align: center;
}

.agent-hero {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-bottom: 18px;
  padding: 22px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.agent-hero-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 180, 80, 0.12);
  font-size: 30px;
}

.agent-hero h3 {
  margin: 0;
  font-size: 20px;
}

.agent-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.agent-textarea {
  min-height: 96px;
  resize: vertical;
}

.agent-submit {
  margin-top: 6px;
}

.auth-dialog {
  width: min(92vw, 360px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #24194a, #131932);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.auth-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-weight: 900;
}

.auth-brand strong {
  display: block;
  font-size: 16px;
}

.auth-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.auth-card h2 {
  margin: 0;
  font-size: 22px;
}

.auth-card p {
  margin: 0;
}

.auth-card .primary-button {
  margin-top: 4px;
  box-shadow: 0 10px 28px rgba(146, 88, 255, 0.35);
}

.auth-card h2,
.auth-card p {
  margin: 0;
}

.auth-card p,
.form-message {
  color: var(--muted);
  font-size: 13px;
}

.auth-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.slide-captcha {
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slide-captcha-track {
  position: relative;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.slide-captcha-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(143, 89, 255, 0.35), rgba(0, 224, 255, 0.28));
  pointer-events: none;
}

.slide-captcha-tip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 36px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.slide-captcha-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #9b6bff, #5b8cff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  cursor: grab;
  touch-action: none;
}

.slide-captcha-knob::after {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
  content: "››";
}

.slide-captcha-knob:active {
  cursor: grabbing;
}

.slide-captcha.is-ok .slide-captcha-track {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.45);
}

.slide-captcha.is-ok .slide-captcha-progress {
  width: 100% !important;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.45), rgba(74, 222, 128, 0.35));
}

.slide-captcha.is-ok .slide-captcha-tip {
  color: #86efac;
  opacity: 1;
}

.slide-captcha.is-ok .slide-captcha-knob {
  left: auto !important;
  right: 3px;
  background: linear-gradient(145deg, #22c55e, #16a34a);
}

.slide-captcha.is-ok .slide-captcha-knob::after {
  content: "✓";
}

.slide-captcha.is-loading .slide-captcha-tip {
  opacity: 0.55;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 20;
  max-width: min(86vw, 340px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  transform: translateX(-50%);
}

/* 任务中心 */
.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(48, 42, 92, 0.92), rgba(22, 28, 52, 0.96) 55%, rgba(18, 22, 40, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.task-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.task-ico {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, rgba(180, 140, 255, 0.45), rgba(80, 60, 180, 0.25));
  font-size: 24px;
}

.task-card-copy {
  min-width: 0;
  flex: 1;
}

.task-card-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.task-card-copy p {
  margin: 4px 0 0;
  color: rgba(180, 188, 210, 0.9);
  font-size: 12px;
  line-height: 1.35;
}

.task-info-btn {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(160, 168, 190, 0.55);
  background: transparent;
  color: rgba(160, 168, 190, 0.9);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.task-require {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 14px;
  color: rgba(150, 160, 185, 0.95);
  font-size: 13px;
}

.task-check {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 150, 175, 0.65);
  color: rgba(140, 150, 175, 0.85);
  font-size: 10px;
  font-weight: 700;
}

.task-require-text {
  font-style: normal;
  font-weight: 500;
}

.task-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.task-step-nav {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(40, 46, 68, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 225, 240, 0.9);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.task-step-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.task-steps-track {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0 2px 10px;
}

.task-steps-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 11px;
  height: 4px;
  border-radius: 999px;
  background: #6b4dff;
  pointer-events: none;
}

.task-steps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  overflow: visible;
}

.task-step {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #6b4dff;
  color: #1a1230;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.task-step span {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.task-step-pointer {
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 0;
  height: 0;
  margin: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #ffd24a;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.task-step.on {
  background: #fff;
  color: #1a1230;
  box-shadow: none;
}

.task-step.on .task-step-pointer {
  opacity: 1;
}

.task-step.done:not(.on) {
  background: #5a3fd4;
  color: rgba(255, 255, 255, 0.85);
}

.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-reward {
  color: #ffb020;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.task-claim-btn {
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #3a3f52;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.task-claim-btn.can {
  background: linear-gradient(135deg, #9258ff, #ff51b6);
  color: #fff;
}

.task-claim-btn:disabled {
  opacity: 1;
  cursor: default;
}

@media (min-width: 768px) {
  .phone-shell {
    min-height: 100vh;
  }

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