/*
 * PeerMusic unified light-blue glass theme
 * Loaded last: visual overrides only, without changing layout or interaction.
 */

:root {
  --pm-unified-bg: #f7fbff;
  --pm-unified-bg-blue: #eefaff;
  --pm-unified-card: rgba(255, 255, 255, 0.72);
  --pm-unified-pink: #ffd7f2;
  --pm-unified-pink-deep: #f7c8e9;
  --pm-unified-fusion: #f3f7ff;
  --pm-unified-blue: #d8f6ff;
  --pm-unified-blue-deep: #bceeff;
  --pm-unified-blue-action: #a9e5f6;
  --pm-unified-ink: #243246;
  --pm-unified-text: #52647a;
  --pm-unified-muted: #8796a8;
  --pm-unified-line: linear-gradient(
    90deg,
    rgba(247, 200, 233, 0.82) 0%,
    rgba(255, 255, 255, 0.96) 24%,
    rgba(243, 247, 255, 0.94) 52%,
    rgba(188, 238, 255, 0.9) 100%
  );
  --pm-unified-shadow: 0 8px 25px rgba(160, 180, 255, 0.12);
  --pm-unified-radius: 20px;

  /* Soften legacy accent variables without changing their consumers. */
  --red: #8fd8ee;
  --coral: #b6e7f4;
  --cyan: #80d8ef;
  --gold: #dceaf4;
  --green: #b6e6df;
  --pink: #f4cde7;
  --purple: #cbd8ee;
  --blue: #9ddff2;
}

html,
body {
  color: var(--pm-unified-ink) !important;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at 92% 15%, rgba(216, 246, 255, 0.72), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(255, 215, 242, 0.12), transparent 28%),
    linear-gradient(145deg, #fbfdff 0%, var(--pm-unified-bg) 46%, var(--pm-unified-bg-blue) 100%) !important;
}

/* Main five-screen shell */
.phone-shell {
  border: 1px solid rgba(255, 255, 255, 0.96) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 246, 255, 0.66), transparent 34%),
    radial-gradient(circle at 4% 68%, rgba(255, 215, 242, 0.1), transparent 28%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(244, 251, 255, 0.9)) !important;
  box-shadow:
    0 22px 58px rgba(120, 150, 184, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.phone-shell::before {
  opacity: 0.28 !important;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 46px,
      rgba(255, 255, 255, 0.52) 48px,
      transparent 51px
    ),
    linear-gradient(rgba(157, 209, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 209, 230, 0.025) 1px, transparent 1px) !important;
  background-size: auto, 56px 56px, 56px 56px !important;
}

.phone-shell::after {
  opacity: 0.36 !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.7), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(188, 238, 255, 0.22), transparent 36%),
    radial-gradient(circle at 12% 90%, rgba(255, 215, 242, 0.08), transparent 28%) !important;
}

.ambient-a {
  background: rgba(255, 215, 242, 0.12) !important;
  opacity: 0.45 !important;
}

.ambient-b {
  background: rgba(188, 238, 255, 0.28) !important;
  opacity: 0.62 !important;
}

.music-field {
  color: rgba(105, 194, 224, 0.09) !important;
}

/* One card material for every main screen. */
.phone-shell :is(
  .glass-panel,
  .glass-card,
  .shortcut-reference-art,
  .daily-task-panel,
  .daily-task-card,
  .task-progress-card,
  .reward-group,
  .reward-card,
  .music-worker-card,
  .video-card,
  .income-card,
  .summary-pill,
  .manage-card,
  .explain,
  .calc-list,
  .formula-card,
  .account-hero,
  .quick,
  .metric
) {
  border: 1px solid transparent !important;
  border-radius: var(--pm-unified-radius) !important;
  background:
    linear-gradient(var(--pm-unified-card), var(--pm-unified-card)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    var(--pm-unified-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.02) !important;
  backdrop-filter: blur(18px) saturate(1.02) !important;
}

.phone-shell :is(.glass-panel, .glass-card, .shortcut-reference-art, .music-worker-card)::before {
  background: linear-gradient(
    90deg,
    rgba(247, 200, 233, 0.46),
    rgba(255, 255, 255, 0.82) 38%,
    rgba(188, 238, 255, 0.54)
  ) !important;
  opacity: 0.55 !important;
}

.screen :is(h1, h2, h3) {
  color: var(--pm-unified-ink);
}

.screen :is(p, small, .muted) {
  color: var(--pm-unified-muted);
}

.section-head h2,
.topbar h1,
.daily-task-title h2,
.task-progress-card h2,
.reward-group-head h3,
.music-worker-copy h2 {
  color: var(--pm-unified-ink) !important;
}

/* Small chips retain the only noticeable pink-to-blue fusion. */
.member-chip,
.account-role,
.secondary-page-badge,
.task-progress-percent,
.share-invite-count,
.music-worker-card.current .music-worker-level {
  border: 1px solid transparent !important;
  color: #557b98 !important;
  background:
    linear-gradient(100deg, rgba(255, 244, 250, 0.9), rgba(234, 249, 255, 0.92)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow: 0 5px 14px rgba(150, 180, 210, 0.09) !important;
}

.task-progress-track,
.secondary-page-progress {
  background: rgba(222, 240, 249, 0.68) !important;
}

.task-progress-track > span,
.secondary-page-progress > span {
  background: linear-gradient(
    90deg,
    rgba(247, 200, 233, 0.78) 0 8%,
    #c8edf8 30%,
    #9edff1 100%
  ) !important;
  box-shadow: 0 0 12px rgba(137, 205, 231, 0.2) !important;
}

/* Main controls: pale blue first, pink only in the far-edge blend. */
.phone-shell :is(
  .primary,
  .secondary,
  .tiny-action,
  .daily-gradient-button,
  .reward-action,
  .music-worker-side button,
  .text-link,
  .action-row button,
  .signout
) {
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  color: #3f718d !important;
  background:
    linear-gradient(
      105deg,
      rgba(188, 238, 255, 0.94) 0%,
      rgba(216, 246, 255, 0.95) 72%,
      rgba(238, 250, 255, 0.9) 100%
    ) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    0 6px 18px rgba(132, 183, 213, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.phone-shell :is(.play, .player-orbit, .share-orbit, .mini-actions button) {
  border: 1px solid transparent !important;
  color: #5a9ab9 !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(237, 250, 255, 0.9)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    0 7px 18px rgba(125, 171, 203, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

.earn-strip,
.song-title {
  border-color: transparent !important;
  color: var(--pm-unified-ink) !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(241, 251, 255, 0.88)) padding-box,
    var(--pm-unified-line) border-box !important;
}

.daily-calendar,
.button-system-icon {
  color: #5fa8ca !important;
  background: linear-gradient(135deg, rgba(216, 246, 255, 0.96), rgba(243, 247, 255, 0.9)) !important;
}

.bottom-nav {
  border: 1px solid transparent !important;
  border-radius: var(--pm-unified-radius) !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(250, 253, 255, 0.88)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    var(--pm-unified-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.nav-item {
  color: #8a9aaa !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-item.active {
  color: #5da3c4 !important;
  background: linear-gradient(
    105deg,
    rgba(216, 246, 255, 0.82),
    rgba(239, 250, 255, 0.76) 78%,
    rgba(247, 252, 255, 0.82)
  ) !important;
}

.nav-item.active b {
  color: #4f819a !important;
}

/* Secondary-page system */
.secondary-page-layer {
  --secondary-page-pink: #fbe8f4 !important;
  --secondary-page-pink-deep: #f7d3e9 !important;
  --secondary-page-blue: var(--pm-unified-blue) !important;
  --secondary-page-blue-deep: var(--pm-unified-blue-deep) !important;
  --secondary-page-fusion: var(--pm-unified-fusion) !important;
  --secondary-page-glass: var(--pm-unified-card) !important;
  --secondary-page-shadow: var(--pm-unified-shadow) !important;
  --secondary-page-radius: var(--pm-unified-radius) !important;
  --secondary-page-line: var(--pm-unified-line) !important;
  color: var(--pm-unified-text) !important;
  background:
    radial-gradient(circle at 96% 10%, rgba(216, 246, 255, 0.7), transparent 34%),
    radial-gradient(circle at 3% 82%, rgba(255, 215, 242, 0.1), transparent 26%),
    linear-gradient(145deg, #fbfdff, #f3fbff) !important;
}

.secondary-page-header {
  border-bottom-color: rgba(188, 225, 240, 0.46) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 7px 22px rgba(160, 180, 255, 0.09) !important;
}

.secondary-page-title,
.secondary-page-view :is(h2, h3) {
  color: var(--pm-unified-ink) !important;
}

.secondary-page-subtitle,
.secondary-page-muted,
.secondary-page-view p {
  color: var(--pm-unified-muted) !important;
}

.secondary-page-layer :is(
  .secondary-page-hero,
  .secondary-page-card,
  .secondary-page-list-item,
  .secondary-page-stat,
  .secondary-page-product,
  .secondary-page-feedback,
  .secondary-page-faq,
  .secondary-page-task,
  .secondary-page-balance,
  .secondary-page-empty
) {
  border: 1px solid transparent !important;
  border-radius: var(--pm-unified-radius) !important;
  background:
    linear-gradient(var(--pm-unified-card), var(--pm-unified-card)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    var(--pm-unified-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

.secondary-page-input,
.secondary-page-select,
.secondary-page-textarea,
.secondary-page-input-shell,
.secondary-page-choice-grid > label {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(248, 253, 255, 0.9)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow: 0 5px 15px rgba(160, 180, 255, 0.08) !important;
}

.secondary-page-input:focus,
.secondary-page-select:focus,
.secondary-page-textarea:focus {
  outline: 2px solid rgba(142, 217, 241, 0.35) !important;
  box-shadow: 0 7px 18px rgba(127, 195, 224, 0.13) !important;
}

.secondary-page-button,
.secondary-page-wheel-button,
.secondary-page-segmented button {
  border: 1px solid transparent !important;
  color: #44758f !important;
  background:
    linear-gradient(
      105deg,
      rgba(188, 238, 255, 0.94),
      rgba(216, 246, 255, 0.96) 76%,
      rgba(239, 250, 255, 0.88)
    ) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    0 6px 18px rgba(132, 183, 213, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

.secondary-page-button.is-secondary {
  color: #5e7890 !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(240, 251, 255, 0.9)) padding-box,
    var(--pm-unified-line) border-box !important;
}

.secondary-page-segmented {
  background: rgba(230, 246, 252, 0.68) !important;
}

.secondary-page-segmented button:not(.is-active) {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.secondary-page-badge {
  color: #5e849a !important;
}

.secondary-page-wheel {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.97) 0 20%, transparent 21%),
    conic-gradient(
      from -22.5deg,
      #e0f5fb 0 45deg,
      #f5eaf2 45deg 90deg,
      #d6f0f8 90deg 135deg,
      #e7f7fb 135deg 180deg,
      #d7edf8 180deg 225deg,
      #e4f5fa 225deg 270deg,
      #d8f3fa 270deg 315deg,
      #e8f7fb 315deg 360deg
    ) !important;
}

.secondary-page-toast {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(244, 252, 255, 0.92)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow: var(--pm-unified-shadow) !important;
}

/* Startup, login and registration */
.login-page {
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 246, 255, 0.68), transparent 34%),
    radial-gradient(circle at 5% 86%, rgba(255, 215, 242, 0.1), transparent 28%),
    linear-gradient(145deg, #fbfdff, #f2fbff) !important;
}

.login-page::before {
  opacity: 0.16 !important;
  background-image: radial-gradient(rgba(116, 190, 219, 0.24) 0.65px, transparent 0.65px) !important;
}

.login-page .ambient.pink {
  background: #f8ddec !important;
  opacity: 0.16 !important;
}

.login-page .ambient.purple {
  background: #e5f2fb !important;
  opacity: 0.2 !important;
}

.login-page .ambient.blue {
  background: #c8effa !important;
  opacity: 0.28 !important;
}

.login-shell {
  border: 1px solid transparent !important;
  border-radius: var(--pm-unified-radius) !important;
  background:
    linear-gradient(var(--pm-unified-card), var(--pm-unified-card)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    var(--pm-unified-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.02) !important;
  backdrop-filter: blur(24px) saturate(1.02) !important;
}

.login-shell::before {
  opacity: 0.26 !important;
  background: var(--pm-unified-line) !important;
}

.brand-panel,
.form-shell .form-wrap {
  background:
    radial-gradient(circle at 84% 12%, rgba(216, 246, 255, 0.62), transparent 36%),
    radial-gradient(circle at 5% 82%, rgba(255, 215, 242, 0.08), transparent 26%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(242, 251, 255, 0.88)) !important;
}

.brand-copy h1 {
  background: linear-gradient(110deg, #86cfe8 0%, #779fc5 68%, #e8b9d8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 7px 15px rgba(123, 177, 207, 0.11)) !important;
}

.brand-copy small,
.login-card header small {
  color: #7e9eb1 !important;
}

.brand-copy p,
.login-card header p {
  color: var(--pm-unified-muted) !important;
}

.record {
  background:
    repeating-radial-gradient(circle, transparent 0 9px, rgba(112, 178, 207, 0.1) 10px 11px),
    linear-gradient(145deg, #fff, #e9f8fd) !important;
  box-shadow:
    0 14px 30px rgba(124, 174, 204, 0.13),
    inset 0 1px 2px #fff !important;
}

.record::before {
  background: linear-gradient(145deg, #b9ebf7, #91d8ec 72%, #f3cfe5) !important;
}

.record b {
  color: #75c4e0 !important;
}

.wave i {
  background: linear-gradient(#b6e8f6, #83d4eb 82%, #f0c9e2) !important;
}

.back-link span,
.input-shell,
.social-button {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(245, 252, 255, 0.9)) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    0 6px 18px rgba(160, 180, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.input-shell:focus-within {
  border-color: transparent !important;
  box-shadow:
    0 0 0 3px rgba(188, 238, 255, 0.38),
    0 8px 22px rgba(127, 186, 214, 0.1) !important;
}

.field-icon,
.forgot-password,
.form-options a,
.register a {
  color: #639fba !important;
}

.remember input:checked + .custom-check {
  background: linear-gradient(135deg, #a9e4f5, #8ed7ec 82%, #efd0e4) !important;
}

.login-button {
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  color: #356b87 !important;
  background:
    linear-gradient(105deg, #bceeff 0%, #d8f6ff 78%, #eefaff 100%) padding-box,
    var(--pm-unified-line) border-box !important;
  box-shadow:
    0 8px 24px rgba(123, 187, 218, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.login-button:hover {
  filter: brightness(1.015) !important;
  box-shadow:
    0 11px 28px rgba(123, 187, 218, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

.form-message {
  color: #5e94af !important;
}

@media (max-width: 430px) {
  .login-page {
    padding-inline: 12px !important;
  }

  .login-shell {
    width: min(390px, 100%) !important;
    border-radius: var(--pm-unified-radius) !important;
  }

  .phone-shell {
    max-width: 390px;
  }

  .secondary-page-header {
    min-height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-page-layer,
  .login-button,
  .phone-shell button {
    transition-duration: 0.01ms !important;
  }
}

/* Music dividend summary: one rhythm and one baseline across all three cards. */
.music-dividend-metrics {
  gap: 10px !important;
}

.music-dividend-metric {
  grid-template-columns: 32px minmax(0, 1fr) !important;
  grid-template-rows: 22px 36px 14px !important;
  align-content: center !important;
  align-items: center !important;
  gap: 4px 8px !important;
  min-height: 108px !important;
  padding: 12px 9px !important;
  text-align: left !important;
}

.music-dividend-metric > div {
  display: contents !important;
}

.music-dividend-metric-icon {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 32px !important;
  height: 32px !important;
  box-shadow:
    0 7px 16px rgba(126, 159, 204, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.music-dividend-metric > div > span {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: 0 !important;
  color: #718097 !important;
  font-size: 9px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.music-dividend-metric > div > strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: center !important;
  margin: 0 !important;
  overflow: hidden;
  font-size: clamp(17px, 4.5vw, 21px) !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
  text-overflow: clip;
  white-space: nowrap;
}

.music-dividend-metric > div > small {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: 0 !important;
  color: #8294aa !important;
  font-size: 7px !important;
  line-height: 1 !important;
  text-align: center !important;
}

@media (max-width: 360px) {
  .music-dividend-metric {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-rows: 20px 32px 12px !important;
    gap: 4px 6px !important;
    padding-inline: 6px !important;
  }

  .music-dividend-metric-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .music-dividend-metric > div > strong {
    font-size: clamp(15px, 4.4vw, 18px) !important;
  }
}

/* Points mall: compact two-column catalog matching the reference proportions. */
.secondary-page-view[data-secondary-view="points-mall"] {
  gap: 12px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero {
  min-height: 120px !important;
  padding: 17px 18px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > div:first-child {
  align-self: center !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > div > strong {
  font-size: 32px !important;
  font-variant-numeric: tabular-nums;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > div > small {
  margin-top: 6px !important;
  color: #7292bb !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > i {
  right: 22px !important;
  width: 70px !important;
  height: 70px !important;
  border-color: rgba(255, 255, 255, 0.96) !important;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.98), transparent 29%),
    linear-gradient(145deg, rgba(255, 229, 188, 0.88), rgba(255, 195, 218, 0.74) 48%, rgba(194, 239, 255, 0.88)) !important;
  box-shadow:
    0 13px 26px rgba(135, 155, 192, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > i > b {
  font-size: 31px !important;
  background: linear-gradient(145deg, #ef9ebf, #e6ae6f 48%, #69bbd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > i > em {
  right: -7px !important;
  top: -6px !important;
  width: 24px !important;
  height: 24px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .points-mall-hero > i > span {
  left: -8px !important;
  bottom: -1px !important;
  width: 20px !important;
  height: 20px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-grid.is-products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product {
  display: grid !important;
  grid-template-rows: 72px auto 14px auto !important;
  align-content: start !important;
  min-height: 168px !important;
  padding: 9px !important;
  border-radius: 18px !important;
  text-align: center !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-media {
  width: 100% !important;
  height: 72px !important;
  aspect-ratio: auto !important;
  border-radius: 13px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-media img {
  width: 62% !important;
  height: 62% !important;
  filter: saturate(0.82) brightness(1.04);
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-icon {
  transform: scale(0.82) !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-title {
  margin: 7px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-copy {
  min-height: 0 !important;
  margin: 3px 0 0 !important;
  overflow: hidden;
  font-size: 7px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-price {
  display: grid !important;
  justify-items: center !important;
  gap: 4px !important;
  margin-top: 6px !important;
  font-size: 8px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-price > span {
  color: #7f8fa6 !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-price > span > b {
  color: #dd72af !important;
  font-size: 13px !important;
}

.secondary-page-view[data-secondary-view="points-mall"] .secondary-page-product-price .secondary-page-button {
  min-width: 56px !important;
  min-height: 25px !important;
  padding: 3px 12px !important;
  border-radius: 10px !important;
  font-size: 9px !important;
}

/* Team rewards: replace the oversized blank hero with a compact member summary. */
.secondary-page-view[data-secondary-view="team-rewards"] {
  grid-template-rows: auto auto !important;
}

.secondary-page-view[data-secondary-view="team-rewards"] .team-weekly-overview {
  align-content: start !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 16px !important;
}

.team-reward-summary-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--pm-unified-ink);
}

.team-reward-summary-title > span,
.team-reward-summary-title > i {
  color: #6fb7db;
  font-size: 12px;
  font-style: normal;
}

.team-reward-summary-title > span {
  color: #ee9bcb;
}

.team-reward-summary-title h2 {
  margin: 0;
  font-size: 16px !important;
  font-weight: 860;
}

.team-member-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(249, 253, 255, 0.8)) padding-box,
    var(--pm-unified-line) border-box;
  box-shadow:
    0 8px 22px rgba(145, 171, 206, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.team-member-avatars {
  position: relative;
  height: 62px;
}

.team-member-avatars > span {
  position: absolute;
  top: 13px;
  width: 43px;
  height: 43px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 20%, transparent 22%),
    radial-gradient(ellipse at 50% 88%, #fff 0 34%, transparent 36%),
    linear-gradient(145deg, #afeaff, #70bde5);
  box-shadow: 0 7px 15px rgba(112, 160, 204, 0.16);
}

.team-member-avatars > span:nth-child(1) {
  left: 0;
}

.team-member-avatars > span:nth-child(2) {
  z-index: 2;
  left: 31px;
  top: 3px;
  width: 57px;
  height: 57px;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 20%, transparent 22%),
    radial-gradient(ellipse at 50% 88%, #fff 0 34%, transparent 36%),
    linear-gradient(145deg, #ffc8e7, #ec86c5);
  box-shadow: 0 9px 20px rgba(211, 124, 181, 0.2);
}

.team-member-avatars > span:nth-child(3) {
  right: 0;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 20%, transparent 22%),
    radial-gradient(ellipse at 50% 88%, #fff 0 34%, transparent 36%),
    linear-gradient(145deg, #ddd1ff, #a78be8);
}

.team-member-summary small {
  display: block;
  color: #738197;
  font-size: 9px;
  font-weight: 730;
}

.team-member-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--pm-unified-ink);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.team-member-summary strong em {
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

/* Wallet — compact overview, matching the account-page visual language. */
.secondary-page-view[data-secondary-view="wallet"] {
  gap: 12px;
  padding-top: 4px;
}

.wallet-overview-card {
  display: grid;
  gap: 6px;
  min-height: 142px;
  padding: 18px 16px 14px;
  overflow: hidden;
}

.wallet-overview-card::after {
  content: "";
  position: absolute;
  top: -54px;
  right: -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 238, 255, 0.44), rgba(255, 215, 242, 0.14) 52%, transparent 70%);
  pointer-events: none;
}

.wallet-overview-card > span,
.wallet-overview-card > strong,
.wallet-overview-actions {
  position: relative;
  z-index: 1;
}

.wallet-overview-card > span {
  color: #718098;
  font-size: 10px;
  font-weight: 760;
}

.wallet-overview-card > strong {
  color: var(--pm-unified-ink);
  font-size: 34px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wallet-overview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}

.wallet-overview-actions .secondary-page-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: linear-gradient(105deg, rgba(188, 238, 255, 0.78), rgba(247, 185, 232, 0.68));
  color: #fff;
  box-shadow: 0 7px 17px rgba(151, 177, 219, 0.16);
}

.wallet-overview-actions .secondary-page-button.is-secondary {
  background: linear-gradient(105deg, rgba(216, 246, 255, 0.9), rgba(247, 185, 232, 0.7));
}

.wallet-overview-actions i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.wallet-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(188, 238, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 25px rgba(160, 180, 255, 0.12);
  backdrop-filter: blur(15px);
}

.wallet-balance-item {
  display: grid;
  min-width: 0;
  min-height: 92px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 10px 5px;
  text-align: center;
}

.wallet-balance-item + .wallet-balance-item {
  border-left: 1px solid rgba(218, 226, 242, 0.72);
}

.wallet-balance-item i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 215, 242, 0.72), rgba(216, 246, 255, 0.9));
  color: #69bfe9;
  font-size: 12px;
  font-style: normal;
}

.wallet-balance-item:nth-child(2) i {
  color: #e292c7;
}

.wallet-balance-item span {
  color: #7a8799;
  font-size: 9px;
  font-weight: 720;
}

.wallet-balance-item strong {
  color: var(--pm-unified-ink);
  font-size: 15px;
  font-weight: 880;
}

.secondary-page-view[data-secondary-view="wallet"] .secondary-page-segmented {
  width: min(220px, 72%);
  min-height: 34px;
  margin: 0 auto;
  padding: 3px;
}

.wallet-bills-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}

.wallet-bills-heading h2 {
  margin: 0;
  color: var(--pm-unified-ink);
  font-size: 15px;
  font-weight: 880;
}

.wallet-bills-heading span {
  color: #8b98aa;
  font-size: 9px;
  font-weight: 720;
}

.wallet-bills-list {
  gap: 0;
  padding: 6px 12px;
}

.wallet-bills-list .secondary-page-list-item {
  min-height: 54px;
  padding: 9px 2px 9px 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-bills-list .secondary-page-list-item + .secondary-page-list-item {
  border-top: 1px solid rgba(221, 229, 242, 0.7);
}

.wallet-bills-list .secondary-page-list-item::before {
  content: "♫";
  position: absolute;
  left: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 215, 242, 0.62), rgba(216, 246, 255, 0.88));
  color: #69c6ed;
  font-size: 13px;
}

.wallet-bills-list .secondary-page-list-item > strong {
  color: #54b6df;
  font-size: 10px;
}

.wallet-bills-list .secondary-page-list-item[data-wallet-type="expense"] > strong {
  color: #df79b8;
}

.secondary-page-view[data-secondary-view="wallet"] .wallet-split-rules {
  min-height: 58px;
  padding-block: 10px;
}

/* Reference-series secondary pages: recharge, withdraw, dividend and lucky draw. */
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]),
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]),
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]),
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) {
  background:
    radial-gradient(circle at 5% 8%, rgba(255, 215, 242, 0.52), transparent 30%),
    radial-gradient(circle at 96% 12%, rgba(216, 246, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #fff9fd 0%, #f3f7ff 48%, #ecfaff 100%);
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-header,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-header,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-header,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-header {
  min-height: 104px;
  padding: 16px 20px 12px;
  border-bottom: 0;
  background: transparent;
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-header-copy,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-header-copy,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-header-copy,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-header-copy {
  gap: 4px;
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-header-copy::before,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-header-copy::before,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-header-copy::before,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-header-copy::before {
  content: "♫  PeerMusic";
  display: block;
  margin-bottom: 3px;
  color: #24334b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #ee91ce, #8e9ee6 54%, #65c8e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-title,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-title,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-title,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-title {
  font-size: 22px;
  font-weight: 950;
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-subtitle,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-subtitle,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-subtitle,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-subtitle,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-header-icon,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-header-icon,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-header-icon,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-header-icon {
  display: none;
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-back,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-back,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-back,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-back {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, #ffd7f2, #bceeff) border-box;
  box-shadow:
    0 7px 18px rgba(145, 165, 204, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.secondary-page-shell:has(.secondary-page-view[data-secondary-view="recharge"]) .secondary-page-body,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="withdraw"]) .secondary-page-body,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="music-dividend"]) .secondary-page-body,
.secondary-page-shell:has(.secondary-page-view[data-secondary-view="lucky-draw"]) .secondary-page-body {
  padding: 6px 14px 34px;
}

.secondary-page-view[data-secondary-view="recharge"],
.secondary-page-view[data-secondary-view="withdraw"],
.secondary-page-view[data-secondary-view="music-dividend"],
.secondary-page-view[data-secondary-view="lucky-draw"] {
  gap: 12px;
}

.secondary-page-view[data-secondary-view="recharge"] .secondary-page-card,
.secondary-page-view[data-secondary-view="withdraw"] .secondary-page-card,
.secondary-page-view[data-secondary-view="music-dividend"] .secondary-page-card,
.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-card {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(100deg, rgba(247, 185, 232, 0.88), rgba(243, 247, 255, 0.82) 50%, rgba(188, 238, 255, 0.92)) border-box;
  box-shadow:
    0 8px 25px rgba(160, 180, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pm-ref-form {
  display: grid;
  gap: 12px;
}

.pm-ref-balance-card,
.pm-ref-withdraw-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px 22px;
  border-radius: 24px !important;
}

.pm-ref-balance-card small,
.pm-ref-withdraw-hero small {
  display: block;
  color: #7b8ba3;
  font-size: 12px;
  font-weight: 700;
}

.pm-ref-balance-card strong,
.pm-ref-withdraw-hero strong {
  display: block;
  margin-top: 4px;
  color: #102443;
  font-size: 35px;
  font-weight: 950;
  line-height: 1;
}

.pm-ref-balance-card strong em,
.pm-ref-withdraw-hero strong em {
  color: #7d8ba3;
  font-size: 14px;
  font-style: normal;
  font-weight: 760;
}

.pm-ref-orb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(145deg, #f4a6d5, #8faae9 55%, #75cce8);
  box-shadow:
    0 9px 20px rgba(143, 164, 211, 0.2),
    inset 0 3px 8px rgba(255, 255, 255, 0.62);
}

.pm-ref-section {
  padding: 18px;
  border-radius: 22px !important;
}

.pm-ref-section h2,
.pm-ref-section-heading h2 {
  margin: 0 0 14px;
  color: #142741;
  font-size: 17px;
  font-weight: 900;
}

.pm-ref-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pm-ref-section-heading > button,
.pm-ref-address-copy button,
.pm-ref-withdraw-address > button {
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #6683de;
  font-size: 11px;
  font-weight: 800;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(90deg, #f7b9e8, #bceeff) border-box;
}

.pm-ref-amount-input {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(203, 219, 240, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.pm-ref-amount-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #172a47;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  background: transparent;
}

.pm-ref-amount-input input::placeholder {
  color: #b4bfd1;
}

.pm-ref-amount-input span {
  color: #6f7f99;
  font-size: 13px;
  font-weight: 800;
}

.pm-ref-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.pm-ref-amount-grid button {
  min-width: 0;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #152946;
  font-size: 18px;
  font-weight: 900;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(250, 252, 255, 0.8)) padding-box,
    linear-gradient(120deg, rgba(247, 185, 232, 0.9), rgba(188, 238, 255, 0.95)) border-box;
  box-shadow: 0 6px 16px rgba(139, 160, 200, 0.1);
}

.pm-ref-amount-grid button:active {
  transform: translateY(1px) scale(0.98);
}

.pm-ref-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-ref-network-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(205, 220, 239, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.pm-ref-network-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pm-ref-network-grid label > span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid rgba(209, 220, 239, 0.6);
  border-radius: 16px;
  color: #8c97aa;
  font-size: 14px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.66);
  transition: 180ms ease;
}

.pm-ref-network-grid.is-three label > span {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
}

.pm-ref-network-grid label > span i {
  position: absolute;
  right: 9px;
  top: 9px;
  display: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  background: linear-gradient(145deg, #ed80c6, #69c5eb);
}

.pm-ref-network-grid input:checked + span {
  border-color: transparent;
  color: #5075d8;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(90deg, #f7b9e8, #83baf0) border-box;
  box-shadow: 0 7px 16px rgba(138, 164, 209, 0.12);
}

.pm-ref-network-grid input:checked + span i {
  display: grid;
}

.pm-ref-address-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.pm-ref-qr {
  width: 92px;
  height: 92px;
  border: 6px solid #fff;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #152946 10px, transparent 10px) 0 0 / 22px 22px,
    linear-gradient(#152946 10px, transparent 10px) 0 0 / 22px 22px,
    linear-gradient(90deg, transparent 11px, #152946 11px 16px, transparent 16px) 0 0 / 22px 22px,
    linear-gradient(transparent 11px, #152946 11px 16px, transparent 16px) 0 0 / 22px 22px,
    #fff;
  box-shadow: 0 7px 18px rgba(118, 144, 183, 0.14);
}

.pm-ref-address-copy {
  min-width: 0;
}

.pm-ref-address-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-ref-address-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #243550;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-ref-address-copy p {
  margin: 13px 0 0;
  color: #8795a9;
  font-size: 10px;
  line-height: 1.5;
}

.pm-ref-inline-note {
  margin: 0;
  color: #8492a7;
  font-size: 10px;
  text-align: center;
}

.pm-ref-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.02em;
  background:
    linear-gradient(90deg, rgba(244, 145, 207, 0.86), rgba(157, 154, 232, 0.84) 50%, rgba(100, 200, 233, 0.86)) padding-box,
    linear-gradient(90deg, #ffd7f2, #bceeff) border-box;
  box-shadow:
    0 12px 25px rgba(130, 154, 210, 0.2),
    inset 0 2px 3px rgba(255, 255, 255, 0.46);
}

.pm-ref-primary-button i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 17px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.64);
}

.pm-ref-withdraw-hero {
  position: relative;
  justify-content: space-between;
  min-height: 132px;
  overflow: hidden;
}

.pm-ref-withdraw-hero::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 246, 255, 0.72), transparent 68%);
}

.pm-ref-withdraw-hero > div,
.pm-ref-wallet-stack {
  position: relative;
  z-index: 2;
}

.pm-ref-wallet-stack {
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  background: linear-gradient(145deg, #f5a7d6, #8fa5ea 55%, #6bc6e8);
  box-shadow:
    -8px 8px 0 rgba(226, 185, 229, 0.24),
    -15px 15px 0 rgba(190, 225, 246, 0.2),
    0 16px 28px rgba(128, 154, 203, 0.18);
}

.pm-ref-withdraw-address {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 22px !important;
}

.pm-ref-location-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #8a89e7;
  font-size: 25px;
  background: linear-gradient(145deg, rgba(255, 220, 242, 0.82), rgba(217, 245, 255, 0.86));
}

.pm-ref-withdraw-address label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pm-ref-withdraw-address b {
  color: #172a47;
  font-size: 15px;
}

.pm-ref-withdraw-address input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #8390a5;
  font: inherit;
  font-size: 13px;
  background: transparent;
}

.pm-ref-split-note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: #8491a6;
  font-size: 9px;
}

.pm-ref-split-note b {
  color: #6486e5;
}

.pm-ref-fee-card {
  display: grid;
  gap: 0;
  padding: 13px 18px;
  border-radius: 22px !important;
}

.pm-ref-fee-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 11px 0;
  color: #34445f;
  font-size: 13px;
}

.pm-ref-fee-card p + p {
  border-top: 1px solid rgba(207, 218, 236, 0.5);
}

.pm-ref-fee-card strong {
  color: #152846;
}

.pm-ref-fee-card p:last-child strong {
  color: #6285e5;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-hero {
  min-height: 164px;
  padding: 22px 20px;
  border-radius: 24px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-hero-copy h2 {
  font-size: 24px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-hero-art {
  right: 12px;
  width: 48%;
  height: 128px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-note {
  font-size: 82px;
  text-shadow:
    0 9px 20px rgba(161, 137, 210, 0.22),
    0 1px 0 #fff;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-metrics {
  gap: 8px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-metric {
  min-height: 86px;
  padding: 12px 10px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-chart-card {
  padding: 16px 14px 12px;
  border-radius: 22px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-chart {
  height: 170px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-chart::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 14px 4px 26px;
  background: linear-gradient(90deg, #f28dcb, #c091e2 58%, #649fe9);
  clip-path: polygon(0 80%, 16.7% 67%, 33.3% 50%, 50% 42%, 66.7% 34%, 83.3% 19%, 100% 49%, 100% 51%, 83.3% 22%, 66.7% 37%, 50% 45%, 33.3% 53%, 16.7% 70%, 0 83%);
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-chart-point::after {
  display: none;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-chart-point > i {
  bottom: calc(22px + var(--point-height));
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-chart-point > b {
  bottom: calc(35px + var(--point-height));
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-section-title {
  padding-inline: 3px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-product-list {
  gap: 9px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-product-card {
  min-height: 86px;
  padding: 12px 14px;
  border-radius: 20px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-product-art {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-product-card:nth-child(1) .music-dividend-product-art {
  background: linear-gradient(145deg, rgba(255, 207, 235, 0.9), rgba(151, 169, 239, 0.86));
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-product-card:nth-child(2) .music-dividend-product-art {
  background: linear-gradient(145deg, rgba(216, 246, 255, 0.94), rgba(130, 197, 232, 0.88));
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-product-card:nth-child(3) .music-dividend-product-art {
  background: linear-gradient(145deg, rgba(230, 215, 255, 0.94), rgba(151, 142, 229, 0.86));
}

.secondary-page-view[data-secondary-view="music-dividend"] .music-dividend-join {
  min-height: 54px;
  font-size: 18px;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel-card {
  padding: 14px 12px 18px;
  border-radius: 26px;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel-wrap {
  min-height: 286px;
  padding-top: 12px;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel {
  width: min(74vw, 266px);
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel > span {
  display: grid;
  gap: 1px;
  place-items: center;
  width: 52px;
  font-size: 10px;
  line-height: 1.05;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel > span b {
  color: #526789;
  font-size: 15px;
  font-weight: 950;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel > span small {
  color: #7d8ca4;
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-wheel-button {
  width: 76px;
  height: 76px;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  background: linear-gradient(145deg, #f2a0d2, #9995e2 55%, #6dc3e7);
}

.pm-lucky-remaining {
  position: relative;
  z-index: 3;
  margin: 3px 0 10px;
  color: #566783;
  font-size: 13px;
  text-align: center;
}

.pm-lucky-remaining strong {
  color: #e276bb;
  font-size: 19px;
}

.pm-lucky-spin {
  position: relative;
  z-index: 3;
  width: min(88%, 310px);
  min-height: 52px;
  margin: 0 auto;
  font-size: 18px;
}

.pm-lucky-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-prize-card,
.secondary-page-view[data-secondary-view="lucky-draw"] .pm-lucky-history {
  min-width: 0;
  padding: 14px 11px;
  border-radius: 22px;
}

.pm-lucky-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 12px;
}

.pm-lucky-card-title h2 {
  margin: 0;
  color: #192c48;
  font-size: 13px;
  font-weight: 900;
}

.pm-lucky-card-title span {
  color: #8b97a9;
  font-size: 8px;
  white-space: nowrap;
}

.pm-lucky-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.pm-lucky-prize-grid > div {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 9px 2px 7px;
  border: 1px solid rgba(230, 200, 226, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.pm-lucky-prize-grid strong {
  color: #516382;
  font-size: 13px;
}

.pm-lucky-prize-grid span,
.pm-lucky-prize-grid small {
  color: #7d8b9e;
  font-size: 7px;
  white-space: nowrap;
}

.secondary-page-view[data-secondary-view="lucky-draw"] .secondary-page-prize-card > p {
  margin: 10px 0 0;
  color: #8e99aa;
  font-size: 8px;
  text-align: center;
}

.pm-lucky-history > div:not(.pm-lucky-card-title) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 36px;
  padding: 7px 6px;
  border-radius: 10px;
  color: #8995a7;
  font-size: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.pm-lucky-history > div + div {
  margin-top: 5px;
}

.pm-lucky-history b {
  color: #db70b2;
  font-size: 8px;
}

.pm-lucky-rules {
  min-height: 38px;
  border: 0;
  color: #6980aa;
  font-size: 11px;
  font-weight: 800;
  background: transparent;
}

@media (max-width: 360px) {
  .pm-ref-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-ref-address-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .pm-ref-qr {
    width: 78px;
    height: 78px;
  }

  .pm-lucky-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Slow, low-saturation full-spectrum ambient background flow. */
html,
body {
  background:
    radial-gradient(circle at 12% 12%, rgba(159, 218, 255, .32), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(175, 239, 221, .27), transparent 37%),
    radial-gradient(circle at 16% 88%, rgba(209, 198, 255, .24), transparent 40%),
    radial-gradient(circle at 86% 82%, rgba(255, 220, 239, .16), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #f5f9ff 46%, #f6fcfb 100%) !important;
  background-size:
    155% 155%,
    160% 160%,
    165% 165%,
    170% 170%,
    100% 100% !important;
  animation: pm-page-gradient-flow 3s ease-in-out infinite alternate;
}

.phone-shell {
  background:
    radial-gradient(circle at 10% 14%, rgba(156, 216, 255, .28), transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(170, 239, 219, .23), transparent 36%),
    radial-gradient(circle at 14% 88%, rgba(207, 195, 255, .21), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(255, 218, 237, .13), transparent 34%),
    linear-gradient(
      135deg,
      rgba(249, 252, 255, .96) 0%,
      rgba(244, 249, 255, .94) 48%,
      rgba(246, 253, 251, .95) 100%
    ) !important;
  background-size:
    160% 160%,
    165% 165%,
    170% 170%,
    175% 175%,
    100% 100% !important;
  animation: pm-shell-gradient-flow 3s ease-in-out infinite alternate;
  will-change: background-position;
}

@keyframes pm-page-gradient-flow {
  0% {
    background-position:
      -22% -16%,
      122% -12%,
      -14% 116%,
      116% 112%,
      0 0;
  }
  50% {
    background-position:
      48% 32%,
      56% 48%,
      38% 54%,
      64% 60%,
      0 0;
  }
  100% {
    background-position:
      116% 108%,
      -18% 112%,
      112% -12%,
      -14% -10%,
      0 0;
  }
}

@keyframes pm-shell-gradient-flow {
  0% {
    background-position:
      -18% -10%,
      118% -8%,
      -12% 114%,
      114% 108%,
      0 0;
  }
  50% {
    background-position:
      44% 32%,
      58% 44%,
      40% 58%,
      62% 60%,
      0 0;
  }
  100% {
    background-position:
      112% 106%,
      -16% 110%,
      110% -10%,
      -12% -8%,
      0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .phone-shell {
    animation: none !important;
  }
}

/* Randomized white music notes, fine light streaks and staggered sparkles. */
.phone-shell > .pm-ambient-music,
.secondary-page-shell > .pm-ambient-music {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  isolation: isolate;
}

.phone-shell > .app,
.secondary-page-shell > .secondary-page-header,
.secondary-page-shell > .secondary-page-body {
  position: relative;
  z-index: 2;
}

.pm-music-particle {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  color: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform:
    translate3d(var(--pm-x0), var(--pm-y0), 0)
    scale(var(--pm-s0))
    rotate(var(--pm-r0));
  transform-origin: center;
  will-change: transform, opacity, filter;
  animation:
    pm-ambient-particle var(--pm-duration) ease-in-out var(--pm-delay) infinite;
}

.pm-music-particle.is-note {
  width: 28px;
  height: 28px;
  font-size: var(--pm-size);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(176, 226, 255, 0.56);
}

.pm-music-particle.is-streak {
  width: var(--pm-length);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2) 18%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.18) 82%,
    transparent
  );
  box-shadow: 0 0 8px rgba(188, 232, 255, 0.52);
}

.pm-music-particle.is-spark {
  width: var(--pm-size);
  height: var(--pm-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.98),
    0 0 13px rgba(186, 228, 255, 0.72);
}

@keyframes pm-ambient-particle {
  0%,
  100% {
    opacity: 0;
    filter: blur(0.5px) brightness(0.9);
    transform:
      translate3d(var(--pm-x0), var(--pm-y0), 0)
      scale(var(--pm-s0))
      rotate(var(--pm-r0));
  }
  22% {
    opacity: calc(var(--pm-peak) * 0.55);
  }
  46% {
    opacity: var(--pm-peak);
    filter: blur(0) brightness(1.28);
  }
  70% {
    opacity: calc(var(--pm-peak) * 0.68);
  }
  100% {
    opacity: 0;
    filter: blur(0.4px) brightness(1);
    transform:
      translate3d(var(--pm-x1), var(--pm-y1), 0)
      scale(var(--pm-s1))
      rotate(var(--pm-r1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-music-particle {
    animation: none !important;
    opacity: 0.08 !important;
  }
}

/* Page-aware PeerMusic logo proportions. */
#home .peer-brand-fixed > .peer-brand-lockup-image {
  width: min(100%, 238px) !important;
  max-height: 82px !important;
  margin-inline: auto;
  object-fit: contain !important;
}

#tasks .page-brand-lockup .page-brand-full-logo {
  width: min(100%, 158px) !important;
  max-height: 55px !important;
  flex: 0 1 158px !important;
  object-fit: contain !important;
}

#vip .page-brand-lockup .page-brand-full-logo {
  width: min(100%, 168px) !important;
  max-height: 58px !important;
  flex: 0 1 168px !important;
  object-fit: contain !important;
}

#income .income-hero > .brand-full-logo {
  width: min(100%, 190px) !important;
  max-height: 66px !important;
  align-self: center;
  object-fit: contain !important;
}

#account .profile-row > .brand-full-logo {
  width: 148px !important;
  max-width: 46% !important;
  max-height: 52px !important;
  object-fit: contain !important;
}

@media (max-width: 420px) {
  #home .peer-brand-fixed > .peer-brand-lockup-image {
    width: min(72vw, 226px) !important;
    max-height: 78px !important;
  }

  #tasks .page-brand-lockup .page-brand-full-logo {
    width: min(42vw, 152px) !important;
    flex-basis: 152px !important;
  }

  #vip .page-brand-lockup .page-brand-full-logo {
    width: min(44vw, 162px) !important;
    flex-basis: 162px !important;
  }

  #income .income-hero > .brand-full-logo {
    width: min(56vw, 184px) !important;
  }

  #account .profile-row > .brand-full-logo {
    width: min(42vw, 142px) !important;
  }
}
