:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --text: #07122f;
  --muted: #60708f;
  --line: #e1e7f2;
  --primary: #101a67;
  --primary-2: #244eea;
  --success: #18ad5b;
  --danger: #e93f55;
  --warning: #f29b2f;
  --shadow: 0 14px 34px rgba(12, 24, 72, 0.12);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #3b3446;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  padding: 18px 14px 92px;
}

.screen.no-tabbar {
  padding-bottom: 28px;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  margin: -18px -14px 18px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(6, 18, 48, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
}

.back-btn svg,
.icon-btn svg,
.package-action svg {
  display: block;
}

.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  margin-right: 40px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 0 12px;
}

.brand-logo {
  width: 44px;
  height: 28px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 286px;
  min-height: 286px;
  box-shadow: var(--shadow);
  background: #12285f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  padding: 24px 22px;
  color: #fff;
  background: linear-gradient(135deg, #172050 0%, #215be8 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide.vip {
  background: linear-gradient(135deg, #13235d 0%, #0f8b78 100%);
}

.hero-slide.recharge {
  background: linear-gradient(135deg, #044024 0%, #145876 100%);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
}

.hero h1 {
  max-width: 58%;
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
}

.hero p {
  width: 58%;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.42;
  font-size: 15px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 48px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.hero-card {
  position: absolute;
  right: 20px;
  top: 48px;
  width: 150px;
  min-height: 112px;
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  padding: 18px;
  box-shadow: 18px 18px 0 rgba(255, 255, 255, 0.92);
}

.hero-card strong {
  display: block;
  font-size: 21px;
  margin-top: 6px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 22px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  font-size: 24px;
  font-weight: 850;
}

.section-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa2ff;
  flex: 0 0 auto;
}

.task-card,
.panel {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f0f1f5;
}

.platform-tab {
  min-height: 54px;
  background: transparent;
  color: #000;
  font-size: 16px;
  border-bottom: 3px solid transparent;
}

.platform-tab.active {
  color: var(--primary);
  font-weight: 800;
  border-color: var(--primary);
  background: #fff;
}

.package-list {
  background: #fff;
}

.package-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.package-row:last-child {
  border-bottom: 0;
}

.platform-logo {
  width: 58px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  object-fit: contain;
}

.platform-cell {
  display: flex;
  align-items: center;
  min-height: 46px;
}

.platform-logo-tiktok {
  color: #0b1020;
  background: transparent;
  justify-content: flex-start;
}

.platform-logo-youtube {
  color: #ff1d1d;
  background: transparent;
  justify-content: flex-start;
}

.platform-logo-instagram {
  color: #c13584;
  background: transparent;
  justify-content: flex-start;
}

.platform-logo-facebook {
  width: 34px;
  color: #ffffff;
  background: #1877f2;
  border-radius: 50%;
  font-size: 22px;
  font-family: Arial, Helvetica, sans-serif;
}

.package-meta {
  min-width: 0;
}

.task-id {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 3px;
}

.package-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.package-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.package-action {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid currentColor;
}

.package-action.open {
  color: var(--success);
}

.package-action.locked {
  color: var(--danger);
}

.package-action.vip {
  color: var(--warning);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.quick-item {
  min-width: 0;
  text-align: center;
  color: #000;
  background: transparent;
}

.quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.quick-item:nth-child(1) .quick-icon {
  background: #53d0b2;
}

.quick-item:nth-child(2) .quick-icon {
  background: #ff766d;
}

.quick-item:nth-child(3) .quick-icon {
  background: #ff9544;
}

.quick-item:nth-child(4) .quick-icon {
  background: #5d8df8;
}

.quick-label {
  font-size: 14px;
  line-height: 1.18;
}

.partner-wall {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 10px 0 22px;
}

.member-marquee {
  width: calc(100% + 28px);
  margin: 22px -14px 8px;
  overflow: hidden;
  padding: 2px 0 10px 14px;
}

.member-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: none;
  transform: translateX(0);
  will-change: transform;
}

.member-card {
  flex: 0 0 164px;
  min-height: 132px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  text-align: center;
}

.member-card strong {
  font-size: 16px;
}

.member-card span {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.3;
}

@keyframes member-roll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-track {
    animation: none;
  }
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  z-index: 60;
}

.tabbar button {
  background: transparent;
  color: #6d7588;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
}

.tabbar button.active {
  color: var(--primary);
  font-weight: 800;
}

.tabbar svg {
  width: 26px;
  height: 26px;
}

.auth-card {
  padding: 26px 18px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-logo {
  width: 84px;
  display: block;
  margin: 32px auto 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row select {
  width: 88px;
}

.input,
select {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.secondary-btn {
  background: #edf1ff;
  color: var(--primary);
}

.danger-btn {
  background: #ffecef;
  color: var(--danger);
}

.link-btn {
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  padding: 12px 6px;
}

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

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

.account-head,
.form-panel {
  padding: 18px;
}

.menu-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.menu-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: left;
}

.menu-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf1ff;
  color: var(--primary);
  font-weight: 850;
}

.menu-item strong,
.menu-item small {
  display: block;
}

.menu-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.menu-item b {
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}

.stat-card {
  padding: 16px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 24px;
}

.wallet-big {
  min-height: 142px;
}

.wallet-big p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.total-card {
  margin-top: 12px;
}

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

.action-grid .secondary-btn {
  min-height: 50px;
  border-radius: 8px;
}

.filter-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
}

.filter-tabs button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}

.filter-tabs button.active {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

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

.record-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.record-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.record-card span,
.record-card small {
  color: var(--muted);
}

.positive {
  color: var(--success);
  font-weight: 850;
}

.negative {
  color: var(--danger);
  font-weight: 850;
}

.inline-btn {
  width: auto;
  min-width: 96px;
  min-height: 54px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7faff;
  border: 1px solid var(--line);
}

.account-old {
  padding: 0 0 92px;
  background: #f3f3f3;
}

.account-old-top {
  padding: 22px 18px 30px;
  background: #f4faf7;
}

.old-user-row {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 38px;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.old-avatar-wrap {
  position: relative;
  width: 74px;
  height: 74px;
}

.old-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: #e4eceb;
}

.old-level {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  min-width: 58px;
  height: 22px;
  padding: 0 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #855c29;
  background: linear-gradient(180deg, #fff5d7, #e3b561);
  box-shadow: 0 3px 8px rgba(133, 92, 41, 0.16);
  white-space: nowrap;
}

.old-user-meta {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.old-user-meta strong {
  font-size: 17px;
  color: #000;
  word-break: break-all;
}

.old-user-meta span {
  color: #757575;
  font-size: 13px;
  word-break: break-all;
}

.old-user-meta em {
  color: #885f2c;
  font-size: 12px;
  font-style: normal;
  word-break: break-word;
}

.old-quit {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}

.old-quit img {
  width: 24px;
  height: 24px;
}

.old-balance-card {
  width: 100%;
  min-height: 112px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 22px 28px;
  color: #fff;
  background: #101a67 url("/static/images/my/balance-bg.png") center / cover no-repeat;
  text-align: left;
  box-shadow: 0 12px 28px rgba(16, 26, 103, 0.24);
}

.old-balance-card span {
  font-size: 15px;
  margin-bottom: 9px;
}

.old-balance-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.old-main {
  padding: 0 14px 24px;
}

.old-often-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 8px;
  padding: 24px 0 28px;
}

.old-action {
  min-width: 0;
  background: transparent;
  color: #000;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.old-action img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.old-action.small img {
  width: 36px;
  height: 36px;
}

.old-action span {
  max-width: 100%;
  min-height: 34px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.old-divider {
  height: 1px;
  background: #e0e0e0;
}

.old-section-title {
  position: relative;
  margin: 26px 0 14px;
  padding-left: 14px;
  font-size: 20px;
  font-weight: 850;
  color: #000;
}

.old-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #9999ff;
}

.old-function-card,
.old-income-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 8px;
  padding: 22px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.old-lottery {
  width: 100%;
  min-height: 150px;
  margin: 22px 0 0;
  border: 0;
  border-radius: 8px;
  padding: 28px 18px 20px 40%;
  display: grid;
  gap: 8px;
  align-content: center;
  color: #fff;
  background: #12205f url("/static/images/my/lottery-bg.png") center / cover no-repeat;
  text-align: left;
  overflow: hidden;
}

.old-lottery strong {
  font-size: 20px;
}

.old-lottery span,
.old-lottery small {
  line-height: 1.25;
}

.old-lottery small {
  color: rgba(255, 255, 255, 0.8);
}

.old-income-card div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.old-income-card strong {
  max-width: 100%;
  font-size: 16px;
  color: #000;
  word-break: break-word;
}

.old-income-card span {
  color: #545454;
  font-size: 13px;
  line-height: 1.2;
  word-break: break-word;
}

.vip-header {
  margin: -18px -14px 18px;
  padding: 36px 22px;
  background: linear-gradient(135deg, #101a67, #173681);
  color: #fff;
}

.vip-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-logo {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.vip-info small {
  display: block;
  max-width: 210px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.25;
}

.vip-header span {
  opacity: 0.84;
}

.vip-header h1 {
  margin: 6px 0 14px;
  font-size: 38px;
}

.vip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.vip-card h3 {
  margin: 0 0 7px;
  font-size: 22px;
}

.vip-card p {
  margin: 0;
  color: var(--muted);
}

.vip-price {
  font-size: 20px;
  font-weight: 850;
  color: var(--primary);
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.channel-card.active {
  outline: 2px solid #9db5ff;
}

.payment-notice {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #dce6f6;
}

.payment-notice strong {
  font-size: 18px;
}

.payment-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-all;
}

.payment-notice .primary-btn {
  min-height: 48px;
  border-radius: 8px;
}

.page-note {
  color: var(--muted);
  line-height: 1.45;
  margin: 12px 0;
}

.task-progress {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}

.task-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.task-progress-row span {
  color: var(--muted);
}

.task-progress-row strong {
  font-weight: 850;
}

.player-card {
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 850;
}

.player-frame {
  background: #0b1020;
  aspect-ratio: 9 / 13;
  max-height: 620px;
  display: grid;
  place-items: center;
  color: #fff;
}

.player-frame video,
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.player-empty {
  padding: 28px;
  text-align: center;
  line-height: 1.42;
}

.player-caption {
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.35;
}

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

.category-btn {
  min-height: 52px;
  border: 1px solid #d6dfed;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
  font-weight: 800;
}

.category-btn:active {
  transform: translateY(1px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 430px;
  min-height: 48px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(7, 18, 47, 0.92);
  color: #fff;
  z-index: 100;
  text-align: center;
}

.toast.show {
  display: flex;
}

.loading {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
}

.empty {
  padding: 24px 18px;
  color: var(--muted);
  text-align: center;
}

.floating-service {
  position: fixed;
  right: calc(50% - 226px);
  bottom: 142px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  z-index: 50;
}

.floating-service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.plain-list .panel {
  padding: 16px;
}

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

.cms-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 21, 55, 0.08);
}

.cms-card h2 {
  margin: 0 0 8px;
  color: #07133a;
  font-size: 20px;
}

.cms-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.cms-card p {
  margin: 0;
  color: #445474;
  line-height: 1.55;
}

.tutorial-video {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.tutorial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.service-link {
  width: auto;
  min-width: 130px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 20px;
}

@media (max-width: 420px) {
  .hero {
    height: 304px;
    min-height: 304px;
  }

  .hero-card {
    opacity: 0.42;
  }

  .hero p {
    width: 84%;
  }

  .package-row {
    grid-template-columns: 58px minmax(0, 1fr) 54px;
  }

  .platform-tab {
    font-size: 14px;
  }

  .quick-label {
    font-size: 12px;
  }
}

/* MongoDB-inspired visual system */
:root {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --text: #001e2b;
  --muted: #4f6469;
  --line: #d9e6df;
  --primary: #00684a;
  --primary-2: #00ed64;
  --success: #00a35c;
  --danger: #cf3f4c;
  --warning: #f2b824;
  --shadow: 0 12px 30px rgba(0, 30, 43, 0.08);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 237, 100, 0.18), transparent 26%),
    radial-gradient(circle at 90% 0%, rgba(255, 213, 128, 0.16), transparent 24%),
    #001e2b;
}

.app {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0, rgba(247, 245, 239, 0.96) 180px),
    var(--bg);
}

.screen {
  padding: 18px 16px 96px;
}

.screen.no-tabbar {
  padding-bottom: 32px;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 104, 74, 0.12);
  backdrop-filter: blur(14px);
}

.back-btn {
  color: var(--primary);
}

.topbar-title {
  color: var(--text);
}

.brand-row {
  padding: 4px 0 14px;
}

.brand-logo {
  width: 52px;
  height: 34px;
}

.brand-name {
  color: var(--text);
  font-size: 20px;
}

.hero {
  height: 286px;
  min-height: 286px;
  border: 1px solid rgba(0, 104, 74, 0.24);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(0, 30, 43, 0.14);
  background: #001e2b;
}

.hero-slide {
  padding: 24px 22px;
  background:
    radial-gradient(circle at 72% 20%, rgba(0, 237, 100, 0.22), transparent 24%),
    linear-gradient(135deg, #001e2b 0%, #064537 58%, #00684a 100%);
}

.hero-slide.vip {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 210, 92, 0.18), transparent 26%),
    linear-gradient(135deg, #001e2b 0%, #0a3b4a 50%, #00684a 100%);
}

.hero-slide.recharge {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 237, 100, 0.2), transparent 24%),
    linear-gradient(135deg, #001e2b 0%, #083f33 54%, #11545d 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%);
}

.hero-kicker {
  position: relative;
  z-index: 1;
  gap: 6px;
  margin-bottom: 14px;
}

.hero-chip {
  height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 237, 100, 0.35);
  background: rgba(0, 30, 43, 0.45);
  color: #e9fff2;
  font-size: 12px;
}

.hero h1,
.hero p,
.hero-action {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 60%;
  font-size: 32px;
  line-height: 1.04;
  color: #ffffff;
}

.hero p {
  width: 58%;
  color: #d7f7e3;
}

.hero-action {
  min-width: 142px;
  height: 46px;
  border-radius: 999px;
  background: #00ed64;
  color: #001e2b;
  box-shadow: 0 8px 18px rgba(0, 237, 100, 0.2);
}

.hero-card {
  top: 50px;
  right: 22px;
  width: 156px;
  min-height: 122px;
  border: 1px solid rgba(0, 104, 74, 0.18);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 14px 14px 0 rgba(198, 244, 213, 0.78);
}

.hero-card span,
.hero-card small {
  color: #486168;
  font-size: 11px;
}

.hero-card strong {
  color: var(--text);
  font-size: 22px;
}

.hero-progress {
  height: 7px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: #d9e6df;
  overflow: hidden;
}

.hero-progress i {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: #00ed64;
}

.hero-dots {
  bottom: 16px;
}

.hero-dot {
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
  background: #00ed64;
}

.section-title {
  color: var(--text);
  font-size: 25px;
  margin-top: 26px;
}

.section-title::before,
.old-section-title::before {
  width: 8px;
  height: 8px;
  background: #00ed64;
  box-shadow: 0 0 0 5px rgba(0, 237, 100, 0.14);
}

.task-card,
.panel,
.auth-card,
.record-card,
.cms-card,
.player-card,
.vip-card,
.stat-card,
.copy-box,
.payment-notice,
.old-function-card,
.old-income-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.platform-tabs {
  gap: 6px;
  padding: 6px;
  background: #eff5f1;
  border-bottom: 1px solid var(--line);
}

.platform-tab {
  min-height: 48px;
  border-radius: 6px;
  border-bottom: 0;
  color: #34545b;
}

.platform-tab.active {
  color: #001e2b;
  border-color: transparent;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 #00ed64;
}

.package-row {
  grid-template-columns: 72px minmax(0, 1fr) 56px;
  background: #fffefa;
  border-bottom: 1px solid var(--line);
}

.task-id,
.package-sub,
.page-note,
.record-card span,
.record-card small,
.cms-card small,
.vip-card p,
.vip-info small {
  color: var(--muted);
}

.package-name {
  color: #001e2b;
}

.package-action {
  border-radius: 8px;
  background: #f7f5ef;
  border: 1px solid currentColor;
}

.package-action.open {
  color: #00684a;
  background: #e7faef;
}

.package-action.locked {
  color: var(--danger);
  background: #fff1f2;
}

.package-action.vip {
  color: #8d6a00;
  background: #fff7dc;
}

.quick-grid {
  gap: 12px;
  margin: 22px 0;
}

.quick-item {
  min-height: 92px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 30, 43, 0.06);
}

.quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #001e2b;
  background: #00ed64 !important;
}

.quick-icon svg {
  width: 23px;
  height: 23px;
}

.quick-label {
  color: #263f45;
  font-weight: 700;
}

.partner-panel {
  width: 100%;
  min-height: 166px;
  aspect-ratio: 16 / 5.8;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 12px 0 24px;
  border: 1px solid rgba(0, 104, 74, 0.22);
  border-radius: 8px;
  background: #001e2b;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 30, 43, 0.12);
}

.partner-wall {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.partner-panel-live {
  min-height: 210px;
  aspect-ratio: auto;
  display: block;
  padding: 20px;
  color: #ffffff;
}

.partner-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.partner-head img {
  width: 118px;
  height: auto;
  display: block;
}

.partner-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.partner-head span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.3;
}

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

.partner-pill {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #001e2b;
  background: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.partner-youtube { color: #ff1d1d; }
.partner-tiktok { color: #111827; }
.partner-netflix { color: #e50914; }
.partner-tencent,
.partner-meta,
.partner-google { color: #2563eb; }

.member-marquee {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(0, 104, 74, 0.08), rgba(0, 104, 74, 0));
  border-top: 1px solid rgba(0, 104, 74, 0.12);
  border-bottom: 1px solid rgba(0, 104, 74, 0.08);
}

.member-card {
  border: 1px solid var(--line);
  background: #fffefa;
  box-shadow: 0 10px 24px rgba(0, 30, 43, 0.07);
}

.member-card strong {
  color: var(--text);
}

.tabbar {
  height: 78px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 104, 74, 0.16);
  backdrop-filter: blur(18px);
}

.tabbar button {
  color: #63777b;
}

.tabbar button.active {
  color: var(--primary);
}

.tabbar button.active svg {
  filter: drop-shadow(0 6px 10px rgba(0, 104, 74, 0.16));
}

.input,
select {
  border-color: var(--line);
  background: #fffefa;
}

.input:focus,
select:focus {
  border-color: #00ed64;
  box-shadow: 0 0 0 3px rgba(0, 237, 100, 0.16);
}

.primary-btn {
  background: #001e2b;
  color: #ffffff;
}

.secondary-btn {
  background: #e7faef;
  color: #00684a;
}

.danger-btn {
  background: #fff1f2;
}

.link-btn {
  color: #00684a;
}

.menu-item {
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 30, 43, 0.06);
}

.menu-dot {
  border-radius: 8px;
  background: #e7faef;
  color: #00684a;
}

.old-balance-card {
  background:
    radial-gradient(circle at 82% 15%, rgba(0, 237, 100, 0.24), transparent 28%),
    linear-gradient(135deg, #001e2b 0%, #00684a 100%);
  box-shadow: 0 16px 34px rgba(0, 30, 43, 0.18);
}

.old-lottery {
  background:
    linear-gradient(135deg, rgba(0, 30, 43, 0.88), rgba(0, 104, 74, 0.86)),
    url("/static/images/my/lottery-bg.png") center / cover no-repeat;
}

.account-old {
  background: var(--bg);
}

.account-old-top {
  background: linear-gradient(180deg, #fffdf6 0%, #eef8f2 100%);
  border-bottom: 1px solid var(--line);
}

.old-level {
  color: #001e2b;
  background: linear-gradient(180deg, #e9fff2, #00ed64);
}

.vip-header {
  background:
    radial-gradient(circle at 84% 10%, rgba(0, 237, 100, 0.24), transparent 30%),
    linear-gradient(135deg, #001e2b, #00684a);
}

.vip-card {
  background: #fffefa;
}

.vip-price {
  color: #00684a;
}

.channel-card {
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 30, 43, 0.06);
}

.channel-card.active {
  outline: 2px solid rgba(0, 237, 100, 0.72);
}

.filter-tabs button {
  border: 1px solid var(--line);
  background: #fffefa;
}

.filter-tabs button.active {
  background: #001e2b;
}

.player-frame {
  background: #001e2b;
}

.category-btn {
  border-color: var(--line);
  background: #fffefa;
}

.category-btn:active {
  background: #e7faef;
}

.toast {
  background: rgba(0, 30, 43, 0.94);
}

.floating-service {
  border-color: #00ed64;
  box-shadow: 0 16px 30px rgba(0, 30, 43, 0.18);
}

@media (max-width: 420px) {
  .screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    height: 318px;
    min-height: 318px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 29px;
  }

  .hero p {
    width: 86%;
    font-size: 14px;
  }

  .hero-card {
    top: auto;
    right: 18px;
    bottom: 52px;
    width: 138px;
    min-height: 102px;
    padding: 14px;
    opacity: 0.96;
    box-shadow: 10px 10px 0 rgba(198, 244, 213, 0.7);
  }

  .hero-card strong {
    font-size: 18px;
  }

  .quick-grid {
    gap: 8px;
  }

  .quick-item {
    min-height: 88px;
    padding: 10px 6px;
  }

  .quick-icon {
    width: 38px;
    height: 38px;
  }

  .partner-panel {
    min-height: 146px;
    aspect-ratio: 16 / 6.2;
  }
}

/* Dark grid shell, closer to the MongoDB visual background */
body {
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 237, 100, 0.2), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(0, 104, 74, 0.28), transparent 26%),
    #001e2b;
}

.app {
  background-color: #001e2b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.095) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.095) 1px, transparent 1px),
    radial-gradient(circle at 24% 0%, rgba(0, 237, 100, 0.12), transparent 34%),
    linear-gradient(180deg, #001e2b 0%, #001e2b 42%, #062d28 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  background-position: -1px -1px, -1px -1px, center top, center;
}

.brand-name,
.section-title,
.old-section-title {
  color: #ffffff;
}

.brand-row .package-sub {
  color: #b8d4cf;
}

.hero {
  border-color: rgba(0, 237, 100, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero-mesh {
  opacity: 0.4;
  background-size: 72px 72px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  mask-image: none;
}

.task-card,
.quick-item,
.member-card,
.panel,
.auth-card,
.record-card,
.cms-card,
.player-card,
.vip-card,
.stat-card,
.copy-box,
.payment-notice,
.channel-card,
.old-function-card,
.old-income-card {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.task-card,
.quick-item,
.platform-tabs,
.package-list,
.package-row,
.partner-panel,
.member-card {
  border-color: rgba(0, 237, 100, 0.18);
}

.quick-label {
  color: #001e2b;
}

.member-marquee {
  background: rgba(0, 30, 43, 0.18);
  border-top-color: rgba(0, 237, 100, 0.16);
  border-bottom-color: rgba(0, 237, 100, 0.1);
}

.account-old {
  background: transparent;
}

.account-old-top {
  background: rgba(255, 253, 246, 0.96);
}

.old-main {
  background: transparent;
}

/* Force every page canvas to use the dark large-grid background */
.app,
.screen,
.screen.no-tabbar,
.account-old,
.old-main {
  background-color: #001e2b !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(0, 237, 100, 0.14), transparent 32%),
    linear-gradient(180deg, #001e2b 0%, #002a2e 52%, #001e2b 100%) !important;
  background-size: 72px 72px, 72px 72px, auto, auto !important;
  background-position: -1px -1px, -1px -1px, center top, center !important;
}

.topbar {
  color: #ffffff;
  background: rgba(0, 30, 43, 0.92);
  border-bottom-color: rgba(0, 237, 100, 0.2);
}

.topbar-title,
.back-btn {
  color: #ffffff;
}

.screen > .field label,
.screen > form > .field label,
.task-progress-row strong,
.task-progress-row span {
  color: #ffffff;
}

.screen > .page-note,
.screen > form > .page-note,
.task-progress {
  color: #c7ded9;
}

.auth-card .field label,
.form-panel .field label,
.panel .field label {
  color: #001e2b;
}

.account-old-top {
  color: #ffffff;
  background: transparent;
  border-bottom-color: rgba(0, 237, 100, 0.16);
}

.old-user-meta strong {
  color: #ffffff;
}

.old-user-meta span,
.old-user-meta em {
  color: #c7ded9;
}

.old-often-actions {
  margin: 18px 0 24px;
  padding: 22px 14px;
  border: 1px solid rgba(0, 237, 100, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.old-divider {
  background: rgba(0, 237, 100, 0.16);
}

/* Final site-wide page background: deep ink green with soft glow */
:root {
  --grid-bg: #021d18;
  --grid-bg-2: #032821;
  --grid-glow: rgba(18, 118, 84, 0.28);
  --grid-line: rgba(132, 177, 160, 0.15);
  --grid-line-soft: rgba(132, 177, 160, 0.07);
  --panel-grad-a: #05312b;
  --panel-grad-b: #024c3f;
  --panel-grad-c: #046651;
}

html,
body,
#app,
.app,
.screen,
.screen.no-tabbar,
.account-old,
.account-old-top,
.old-main {
  background-color: var(--grid-bg) !important;
  background-image:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 84% 14%, var(--grid-glow), transparent 28%),
    radial-gradient(circle at 8% 72%, rgba(5, 96, 72, 0.14), transparent 24%),
    linear-gradient(180deg, var(--grid-bg) 0%, var(--grid-bg-2) 48%, var(--grid-bg) 100%) !important;
  background-size: 40px 40px, 40px 40px, 120px 120px, 120px 120px, auto, auto, auto !important;
  background-position: 0 0, 0 0, 0 0, 0 0, center, center, center !important;
}

body {
  background-attachment: fixed;
}

.topbar,
.tabbar {
  background-color: rgba(2, 29, 24, 0.94);
  background-image:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}

.tabbar {
  border-top-color: rgba(132, 177, 160, 0.24);
}

.tabbar button {
  color: #9ab0b7;
}

.tabbar button.active {
  color: #00ed64;
}

.hero,
.hero-slide,
.vip-header,
.old-balance-card,
.partner-panel,
.old-lottery {
  background-color: var(--grid-bg) !important;
  background-image:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 88% 16%, rgba(31, 152, 107, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(5, 49, 43, 0.96) 0%, rgba(2, 76, 63, 0.94) 58%, rgba(4, 102, 81, 0.9) 100%) !important;
  background-size: 40px 40px, 40px 40px, 120px 120px, 120px 120px, auto, auto !important;
  background-position: 0 0, 0 0, 0 0, 0 0, center, center !important;
}

.old-balance-card,
.old-lottery,
.vip-header,
.partner-panel,
.hero {
  border: 1px solid rgba(132, 177, 160, 0.22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

.old-lottery small,
.old-lottery span {
  color: rgba(255, 255, 255, 0.9);
}

.old-lottery strong,
.old-balance-card strong,
.old-balance-card span {
  color: #ffffff;
}

/* MongoDB logo sizing */
.mongo-brand {
  margin: -8px -14px 16px;
  padding: 8px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
}

.brand-logo.mongo-wordmark {
  width: min(186px, 51vw);
  height: auto;
  aspect-ratio: 3598 / 951;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.auth-logo.mongo-auth-logo {
  width: min(260px, 72vw);
  height: auto;
  aspect-ratio: 4000 / 1079;
  object-fit: contain;
  margin: 28px auto 20px;
  border-radius: 0;
}
