:root {
  color-scheme: light;
  --bg: #eef5f3;
  --surface: #ffffff;
  --surface-2: #f7fbfa;
  --ink: #132325;
  --muted: #69787a;
  --line: #dbe8e5;
  --primary: #0d8c98;
  --primary-dark: #086a76;
  --primary-soft: #dff4f5;
  --accent: #f29f3d;
  --danger: #d65452;
  --success: #249a68;
  --shadow: 0 18px 45px rgba(15, 55, 60, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(13, 140, 152, 0.12), rgba(238, 245, 243, 0) 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  position: relative;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  padding: 18px 16px calc(82px + env(safe-area-inset-bottom));
}

.screen.auth-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 159, 61, 0.18), transparent 26%),
    linear-gradient(160deg, #eaf8f7 0%, #f7fbfa 48%, #fff7eb 100%);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 14px;
}

.topbar-title {
  min-width: 0;
  flex: 1;
}

.topbar-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.topbar-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(19, 35, 37, 0.06);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--primary) 0%, #38b8b7 55%, var(--accent) 100%);
  box-shadow: 0 14px 25px rgba(13, 140, 152, 0.22);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-copy h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
}

.brand-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-panel {
  margin-top: 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 232, 229, 0.82);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(13, 71, 77, 0.12);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.input-wrap,
.select-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.input-wrap:focus-within,
.select-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 140, 152, 0.12);
}

.input-wrap svg,
.select-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: 0 0 auto;
}

.input-wrap input,
.select-wrap select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.select-wrap select {
  appearance: none;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 22px rgba(13, 140, 152, 0.22);
}

.secondary-btn {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.ghost-btn {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

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

.primary-btn svg,
.secondary-btn svg,
.ghost-btn svg,
.danger-btn svg {
  width: 18px;
  height: 18px;
}

.switch-line {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.switch-line button {
  padding: 4px 6px;
  color: var(--primary-dark);
  background: transparent;
  font-weight: 700;
}

.legal-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hero-band {
  padding: 16px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #096c78 0%, #0d8c98 54%, #e69a3f 100%);
  box-shadow: 0 14px 26px rgba(13, 140, 152, 0.22);
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-head span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.hero-head strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.balance {
  margin-top: 18px;
}

.balance span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.balance strong {
  display: block;
  margin-top: 2px;
  font-size: 32px;
  line-height: 1.05;
}

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

.hero-actions button,
.hero-actions a {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0d555d;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  font-weight: 800;
}

.hero-actions svg {
  width: 17px;
  height: 17px;
}

.hero-actions button:disabled {
  opacity: 0.72;
  cursor: default;
}

.vip-stage {
  margin: 0 -16px;
  padding: 16px 16px 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 34%, rgba(255, 223, 124, 0.52), transparent 18%),
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, 0.32), transparent 20%),
    linear-gradient(160deg, #ff8127 0%, #ff9b31 48%, #f05e22 100%);
}

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

.vip-stage-head span {
  font-size: 16px;
  font-weight: 900;
}

.vip-stage-head strong {
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.vip-feature-card {
  position: relative;
  min-height: 152px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(135deg, #ffcf5c 0%, #ff8931 46%, #e74727 100%);
  border: 4px solid rgba(244, 44, 39, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(115, 49, 22, 0.24);
}

.vip-feature-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -70px 18%;
  height: 110px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.vip-feature-main,
.vip-feature-badge,
.vip-feature-price {
  position: relative;
  z-index: 1;
}

.vip-feature-main {
  display: grid;
  align-content: start;
  gap: 8px;
}

.vip-feature-main span {
  font-size: 42px;
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 5px 16px rgba(136, 29, 12, 0.2);
}

.vip-feature-main strong,
.vip-feature-main em {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.vip-feature-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  align-self: center;
  color: #fff;
  background: linear-gradient(145deg, #d94717, #ff7b22);
  border: 3px solid rgba(255, 230, 155, 0.95);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(113, 28, 9, 0.24);
}

.vip-feature-badge svg {
  width: 36px;
  height: 36px;
}

.vip-rank-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--rank-fg, #fff);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(145deg, var(--rank-a, #8b5a2b), var(--rank-b, #d6a15d));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(42, 22, 10, 0.18);
}

.vip-rank-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.vip-feature-badge .vip-rank-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.vip-feature-badge .vip-rank-icon svg {
  width: 34px;
  height: 34px;
}

.vip-rank-1 { --rank-a: #6f4328; --rank-b: #c28b55; --rank-fg: #fff9ec; }
.vip-rank-2 { --rank-a: #111827; --rank-b: #596170; --rank-fg: #f8fafc; }
.vip-rank-3 { --rank-a: #8b4513; --rank-b: #cd7f32; --rank-fg: #fff7ed; }
.vip-rank-4 { --rank-a: #d7dde8; --rank-b: #f8fafc; --rank-fg: #334155; }
.vip-rank-5 { --rank-a: #f59e0b; --rank-b: #fde68a; --rank-fg: #713f12; }
.vip-rank-6 { --rank-a: #a5b4fc; --rank-b: #e5e7eb; --rank-fg: #312e81; }
.vip-rank-7 { --rank-a: #22d3ee; --rank-b: #2563eb; --rank-fg: #f0f9ff; }
.vip-rank-8 { --rank-a: #b91c1c; --rank-b: #fb7185; --rank-fg: #fff1f2; }
.vip-rank-9 { --rank-a: #1d4ed8; --rank-b: #60a5fa; --rank-fg: #eff6ff; }
.vip-rank-trial { --rank-a: #0d8c98; --rank-b: #8ee6de; --rank-fg: #ecfeff; }

.vip-feature-price {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 210px;
  margin-top: 2px;
  padding: 10px 22px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, #ff9e83, #ec5b3d);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 9px 18px rgba(117, 43, 27, 0.2);
  font-size: 18px;
  font-weight: 950;
}

.vip-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.vip-pager a,
.vip-pager span {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.vip-pager a {
  color: #7b250e;
  background: rgba(255, 248, 220, 0.96);
  box-shadow: 0 8px 16px rgba(89, 34, 14, 0.14);
}

.vip-pager span {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(117, 44, 18, 0.22);
  white-space: nowrap;
}

.vip-pager svg {
  width: 15px;
  height: 15px;
}

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

.vip-level-card {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(117, 44, 18, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
}

.vip-level-card.active {
  color: #7b250e;
  background: #fff8dc;
  border-color: #fff;
  box-shadow: 0 10px 20px rgba(89, 34, 14, 0.18);
}

.vip-level-card.no-access {
  cursor: not-allowed;
  opacity: 0.64;
}

.vip-level-card span,
.vip-level-card strong,
.vip-level-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vip-level-card span {
  font-size: 13px;
  font-weight: 950;
}

.vip-level-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vip-level-title .vip-rank-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.vip-level-title .vip-rank-icon svg {
  width: 15px;
  height: 15px;
}

.vip-level-title b {
  min-width: 0;
  font: inherit;
}

.vip-level-card strong {
  font-size: 13px;
  line-height: 1.15;
}

.vip-level-card em {
  color: currentColor;
  opacity: 0.78;
  font-size: 10px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
}

.vip-detail-section {
  display: grid;
  gap: 10px;
}

.vip-income-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vip-income-grid div,
.vip-info-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vip-income-grid div {
  padding: 12px;
}

.vip-income-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.vip-income-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.vip-intro-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  color: #40251a;
  background: linear-gradient(180deg, #fff7e8, #fffdf8);
  border: 1px solid #f2c690;
  border-radius: 8px;
}

.vip-intro-card h3,
.vip-intro-card p {
  margin: 0;
}

.vip-intro-card h3 {
  color: #85330f;
  font-size: 15px;
}

.vip-intro-card p {
  color: #5e463a;
  font-size: 13px;
  line-height: 1.55;
}

.vip-intro-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vip-intro-list span {
  min-width: 0;
  padding: 9px;
  color: #6f4d12;
  background: #fff;
  border: 1px solid #f3d8a7;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vip-info-card {
  overflow: hidden;
}

.vip-info-card h3 {
  margin: 0;
  padding: 11px 12px;
  color: #85330f;
  background: #fff2dc;
  border-bottom: 1px solid #f2c690;
  font-size: 14px;
}

.vip-table {
  display: grid;
}

.vip-table-head,
.vip-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.vip-table.three-cols .vip-table-head,
.vip-table.three-cols .vip-table-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-table-head {
  color: #fff;
  background: #f07a23;
  font-size: 11px;
  font-weight: 900;
}

.vip-table-row {
  min-height: 38px;
  color: #40251a;
  background: #fffaf2;
  border-top: 1px solid #f2c690;
  font-size: 12px;
  font-weight: 800;
}

.vip-table-row:nth-child(odd) {
  background: #ffe5c2;
}

.vip-table-head span,
.vip-table-row span {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 8px 5px;
  text-align: center;
  border-right: 1px solid rgba(157, 81, 25, 0.28);
  overflow-wrap: anywhere;
}

.vip-table-head span:last-child,
.vip-table-row span:last-child {
  border-right: 0;
}

.vip-card-note {
  margin: 0;
  padding: 10px 12px 12px;
  color: #6f4d12;
  background: #fffaf2;
  border-top: 1px solid #f2c690;
  font-size: 12px;
  line-height: 1.5;
}

.activity-config-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, #0d8c98, #f29f3d);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(13, 140, 152, 0.16);
}

.activity-config-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.activity-config-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #0d555d;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
}

.activity-config-icon svg {
  width: 24px;
  height: 24px;
}

.activity-config-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.activity-config-card h2 {
  font-size: 22px;
  line-height: 1.15;
}

.activity-config-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.activity-page-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.activity-page-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0d555d;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.activity-page-actions button:last-child {
  color: #fff;
  background: rgba(6, 37, 43, 0.42);
}

.activity-page-actions svg {
  width: 16px;
  height: 16px;
}

.lucky-section {
  display: grid;
  place-items: center;
  gap: 14px;
}

.lucky-wheel-wrap {
  position: relative;
  width: min(82vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 4px auto 2px;
}

.lucky-wheel-pointer {
  position: absolute;
  top: -3px;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 28px solid #0b5962;
  filter: drop-shadow(0 5px 8px rgba(19, 35, 37, 0.24));
}

.lucky-wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border: 9px solid #fff;
  border-radius: 50%;
  background: var(--wheel-bg);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 20px 38px rgba(15, 55, 60, 0.18);
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform 3.1s cubic-bezier(0.12, 0.74, 0.12, 1);
}

.lucky-wheel-disc::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.lucky-wheel-label {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-width: 44px;
  max-width: 70px;
  padding: 4px 5px;
  color: #fff;
  background: rgba(17, 24, 39, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  overflow-wrap: anywhere;
}

.lucky-wheel-center {
  position: absolute;
  z-index: 5;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: #0b5962;
  background: linear-gradient(180deg, #fff 0%, #f7fbfa 100%);
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(19, 35, 37, 0.2);
  cursor: pointer;
  font-size: 25px;
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.lucky-wheel-center:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 15px 28px rgba(19, 35, 37, 0.24);
}

.lucky-wheel-center:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.lucky-result {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 55, 60, 0.08);
}

.invite-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  color: #0d555d;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.invite-strip button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.invite-strip svg {
  width: 15px;
  height: 15px;
}

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

.user-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.stat {
  min-width: 0;
  padding: 12px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.stat strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.stat-button {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stat-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.stat-button.active span,
.stat-button.active strong {
  color: #ffffff;
}

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

.quick-link {
  min-width: 0;
  height: 78px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px 4px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
}

.quick-link svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.support-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.support-contact-card {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 55, 60, 0.05);
}

.support-contact-card.is-disabled {
  opacity: 0.62;
}

.support-contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d8c98, #14b88f);
  border-radius: 8px;
  overflow: hidden;
}

.support-contact-icon svg {
  width: 22px;
  height: 22px;
}

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

.support-contact-main {
  min-width: 0;
}

.support-contact-main strong,
.support-contact-main small {
  display: block;
  overflow-wrap: anywhere;
}

.support-contact-main strong {
  font-size: 14px;
}

.support-contact-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.support-contact-action {
  color: var(--primary);
}

.support-contact-action svg {
  width: 17px;
  height: 17px;
}

.user-dashboard-screen {
  position: relative;
  padding: 12px 14px calc(86px + env(safe-area-inset-bottom));
  color: #061922;
  background:
    linear-gradient(158deg, rgba(237, 255, 224, 0.9) 0%, rgba(145, 226, 244, 0.82) 38%, rgba(186, 199, 255, 0.86) 68%, rgba(255, 197, 237, 0.88) 100%),
    #d9f4fb;
}

.user-dashboard-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 38%, rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px);
}

.user-dashboard-screen > * {
  position: relative;
  z-index: 1;
}

.user-wallet-link {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  color: #0f5af0;
  font-size: 13px;
  font-weight: 800;
}

.user-profile-head {
  min-height: 102px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding-top: 12px;
  text-align: center;
}

.user-profile-head strong {
  margin-top: 2px;
  color: #020f16;
  font-size: 18px;
  line-height: 1.1;
}

.user-profile-head span {
  color: rgba(6, 25, 34, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.user-avatar {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0c9a7b, #16b8d0);
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(39, 112, 130, 0.18);
}

.user-avatar svg {
  width: 23px;
  height: 23px;
}

.user-balance-block {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-height: 110px;
  padding: 2px 4px 20px;
}

.user-balance-block span {
  color: #020f16;
  font-size: 14px;
  font-weight: 800;
}

.user-balance-block strong {
  color: #3f7dff;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
}

.user-balance-block button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0 10px;
  color: #075d69;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(72, 119, 145, 0.1);
}

.user-balance-block button svg {
  width: 14px;
  height: 14px;
}

.credit-score-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  margin: -8px 0 14px;
  padding: 13px 14px;
  color: #06343b;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(68, 95, 124, 0.1);
  backdrop-filter: blur(10px);
}

.credit-score-card::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(6, 25, 34, 0.42);
  border-right: 2px solid rgba(6, 25, 34, 0.42);
  transform: rotate(45deg);
}

.credit-score-card span {
  font-size: 14px;
  font-weight: 900;
}

.credit-score-card strong {
  color: #0f8c7d;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.credit-score-card em {
  color: rgba(6, 25, 34, 0.62);
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 700;
}

.credit-score-detail {
  display: grid;
  gap: 16px;
  padding: 18px 0 8px;
}

.credit-gauge {
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.credit-gauge-ring {
  position: relative;
  width: min(84vw, 270px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f4f6f8 0 55%, transparent 56%),
    conic-gradient(from 210deg, #48c7a3 0deg 112deg, #ffd24a 112deg 192deg, #f14970 192deg 240deg, transparent 240deg 360deg);
}

.credit-gauge-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px rgba(18, 35, 37, 0.04);
}

.credit-gauge-ring b {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  color: #f7c83d;
  font-size: 29px;
  line-height: 1;
}

.credit-gauge-needle {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  width: 9px;
  height: 80px;
  background: linear-gradient(180deg, #f3bd38, #ffd45a);
  border-radius: 999px 999px 6px 6px;
  transform: translate(-50%, -100%) rotate(var(--score-angle));
  transform-origin: 50% 100%;
  box-shadow: 0 3px 8px rgba(193, 132, 12, 0.26);
}

.credit-gauge-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 17px;
  height: 17px;
  background: #f7c83d;
  border-radius: 50%;
  transform: translateX(-50%);
}

.credit-gauge-ring .tick {
  position: absolute;
  z-index: 1;
  color: #788487;
  font-size: 12px;
  font-weight: 800;
}

.tick-0 { left: 52px; bottom: 63px; }
.tick-10 { left: 35px; bottom: 104px; }
.tick-20 { left: 39px; top: 98px; }
.tick-30 { left: 63px; top: 62px; }
.tick-40 { left: 102px; top: 40px; }
.tick-50 { left: 50%; top: 32px; transform: translateX(-50%); }
.tick-60 { right: 102px; top: 40px; }
.tick-70 { right: 63px; top: 62px; }
.tick-80 { right: 39px; top: 98px; }
.tick-90 { right: 35px; bottom: 104px; }
.tick-100 { right: 42px; bottom: 63px; }

.credit-rules {
  display: grid;
  gap: 4px;
  color: #324245;
  font-size: 14px;
  line-height: 1.58;
}

.credit-rules p {
  margin: 0;
}

.user-dashboard-stats {
  display: grid;
  gap: 10px;
}

.user-dashboard-stats.primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-dashboard-stats.secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.user-stat-tile {
  min-width: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 10px 7px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(54, 82, 92, 0.44), rgba(72, 82, 125, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 22px rgba(68, 95, 124, 0.12);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-stat-tile:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 13px 25px rgba(68, 95, 124, 0.16);
}

.user-stat-tile span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.user-stat-tile strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: #fff;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.user-dashboard-stats.secondary .user-stat-tile {
  min-height: 64px;
}

.user-dashboard-stats.secondary .user-stat-tile span {
  font-size: 13px;
}

.user-dashboard-stats.secondary .user-stat-tile strong {
  font-size: 17px;
}

.income-detail-hero .balance strong {
  font-size: 22px;
}

.income-detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.income-detail-row strong,
.income-detail-row span,
.income-detail-row em {
  display: block;
}

.income-detail-row strong {
  color: var(--ink);
  font-size: 14px;
}

.income-detail-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.income-detail-row em {
  margin-top: 5px;
  color: #8a999b;
  font-size: 11px;
  font-style: normal;
}

.income-detail-row b {
  color: var(--success);
  white-space: nowrap;
  font-size: 15px;
}

.user-asset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 9px;
  color: #0a3a42;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
}

.user-asset-strip div {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: center;
}

.user-asset-strip span {
  color: rgba(6, 25, 34, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.user-asset-strip strong {
  min-width: 0;
  color: #06232b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.user-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 18px;
  margin-top: 26px;
}

.user-menu-tile {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  color: #061922;
  text-align: center;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
}

.user-menu-tile > span:last-child {
  min-height: 32px;
  display: grid;
  align-items: start;
  overflow-wrap: anywhere;
}

.user-menu-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #676ee8;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(174, 186, 197, 0.68);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 20px rgba(89, 104, 150, 0.16);
}

.user-menu-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.15;
}

.user-menu-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-tile:nth-child(3n + 1) .user-menu-icon {
  color: #a453d4;
}

.user-menu-tile:nth-child(3n + 2) .user-menu-icon {
  color: #3985e8;
}

.user-menu-tile:nth-child(3n) .user-menu-icon {
  color: #0f9a94;
}

.section {
  margin-top: 16px;
}

.section.first-section {
  margin-top: 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.section-title a,
.section-title button {
  color: var(--primary-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 9px;
}

.helpbook-list {
  display: grid;
  gap: 0;
  padding: 8px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.helpbook-row {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  color: var(--ink);
  border-bottom: 1px solid rgba(209, 224, 222, 0.72);
}

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

.helpbook-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.helpbook-row span {
  flex: 0 0 auto;
  color: var(--muted);
}

.helpbook-row svg {
  width: 18px;
  height: 18px;
}

.help-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-detail-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.help-detail-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.help-detail-title svg {
  width: 19px;
  height: 19px;
}

.help-detail-title img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.help-detail h2 {
  margin: 0;
  font-size: 19px;
}

.help-detail-intro {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.help-guide-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.help-detail-sections {
  display: grid;
  gap: 12px;
}

.help-detail-section {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
}

.help-detail-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.help-detail-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.help-detail-body {
  display: grid;
  gap: 10px;
}

.help-detail-body p {
  margin: 0;
  padding-left: 14px;
  color: var(--muted);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  line-height: 1.62;
}

.row,
.record,
.tier,
.task,
.member,
.message,
.help-item {
  min-width: 0;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.row-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.row-button.is-selected {
  border-color: rgba(13, 140, 152, 0.45);
  background: linear-gradient(135deg, rgba(222, 247, 248, 0.98), #ffffff);
}

.row-button.is-selected .row-icon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.static-row {
  cursor: default;
}

.row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.row-icon svg {
  width: 19px;
  height: 19px;
}

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

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

.row-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.row-action {
  color: var(--muted);
}

.row-action svg {
  width: 17px;
  height: 17px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  color: #6f4d12;
  background: #fff3d9;
  border: 1px solid #f3d697;
  border-radius: 8px;
  font-size: 12px;
}

.notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.tabbar {
  display: flex;
  gap: 7px;
  padding: 4px;
  margin-bottom: 12px;
  background: #e5efed;
  border-radius: 8px;
}

.tabbar button {
  min-width: 0;
  flex: 1;
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.tabbar button.active {
  color: var(--primary-dark);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(19, 35, 37, 0.06);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.amount-chip {
  min-height: 48px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.amount-chip.active {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.form-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-guide-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #23464a;
  background: #f1fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-guide-card h3,
.invite-guide-card p {
  margin: 0;
}

.invite-guide-card h3 {
  color: var(--ink);
  font-size: 16px;
}

.invite-guide-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.identity-upload-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.identity-upload-card input {
  width: 100%;
  min-height: 38px;
  font-size: 12px;
}

.identity-upload-card img,
.identity-upload-card em {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f7;
  object-fit: cover;
  overflow: hidden;
}

.identity-upload-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.record {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-ticker {
  --record-row-height: 64px;
  --record-gap: 9px;
  height: var(--record-row-height);
  overflow: hidden;
  border-radius: 8px;
}

.record-ticker-track {
  display: grid;
  gap: var(--record-gap);
}

.record-ticker.is-rolling .record-ticker-track {
  animation: recordTicker var(--ticker-duration, 12s) cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.record-ticker:hover .record-ticker-track {
  animation-play-state: paused;
}

.record-ticker .record {
  height: var(--record-row-height);
  align-items: center;
}

.record-ticker .record > div {
  min-width: 0;
}

.record-ticker .record strong,
.record-ticker .record span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes recordTicker {
  0%,
  16% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-1 * var(--record-count) * (var(--record-row-height) + var(--record-gap))));
  }
}

.record strong {
  display: block;
  font-size: 14px;
}

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

.record b {
  white-space: nowrap;
  font-size: 14px;
}

.record .income {
  color: var(--success);
}

.record .outcome {
  color: var(--danger);
}

.tier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.tier h3,
.task h3,
.message h3,
.help-item h3 {
  margin: 0;
  font-size: 15px;
}

.tier p,
.task p,
.message p,
.help-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.order-task {
  align-items: stretch;
}

.task-actions {
  display: grid;
  align-content: center;
  gap: 7px;
}

.app-task-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary-soft), #fff7e8);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.app-task-icon svg {
  width: 22px;
  height: 22px;
}

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

.task button,
.tier button {
  min-width: 78px;
  min-height: 36px;
  padding: 0 10px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.task-actions button {
  min-width: 72px;
}

.task button:disabled,
.tier button:disabled {
  color: var(--muted);
  background: #e9efee;
  cursor: default;
}

.progress-track {
  height: 7px;
  margin: 9px 0 8px;
  overflow: hidden;
  background: #e8f0ef;
  border-radius: 999px;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.16s ease;
}

.member {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.team-level-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.team-level-tabs button {
  min-width: 0;
  padding: 10px 6px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.team-level-tabs button strong,
.team-level-tabs button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-level-tabs button strong {
  color: var(--ink);
  font-size: 12px;
}

.team-level-tabs button span {
  margin-top: 3px;
  font-size: 11px;
}

.team-level-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.team-level-tabs button.active strong,
.team-level-tabs button.active span {
  color: #ffffff;
}

.team-member-card {
  align-items: start;
}

.team-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.team-money-grid div {
  min-width: 0;
  padding: 8px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-money-grid span,
.team-money-grid em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.team-money-grid b {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-detail-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.team-detail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  font-weight: 900;
}

.copy-box {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: 8px;
}

.copy-box.compact {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.copy-box code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  font-weight: 800;
}

.copy-box button {
  width: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
}

.copy-box svg {
  width: 17px;
  height: 17px;
}

.chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 13px 10px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar {
  min-width: 0;
  flex: 1;
  display: grid;
  align-items: end;
  gap: 6px;
  height: 100%;
}

.bar i {
  display: block;
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary), #6fc9c5);
}

.bar span {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.income-level-card {
  display: grid;
  gap: 10px;
}

.income-level-hero {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(127, 100, 232, 0.95), rgba(120, 211, 236, 0.75) 58%, rgba(255, 181, 199, 0.9)),
    #8f92ff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: inset 0 -22px 48px rgba(255, 255, 255, 0.22);
}

.income-level-hero span {
  color: #e0f24c;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8), 0 5px 12px rgba(4, 72, 113, 0.18);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.income-level-hero h3 {
  margin: 8px 0 0;
  color: #fff;
  text-shadow: 0 3px 0 rgba(24, 121, 185, 0.45), 0 7px 16px rgba(45, 35, 90, 0.24);
  font-size: 27px;
  line-height: 1.08;
}

.daily-income-panel {
  padding: 10px 8px 8px;
  background: #fff;
  border: 2px solid #84db78;
  border-radius: 8px;
}

.daily-income-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.daily-income-legend i {
  width: 11px;
  height: 11px;
  background: #3e9634;
  border-radius: 50%;
}

.daily-income-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin-top: 8px;
  padding: 14px 4px 0;
  background: repeating-linear-gradient(to top, transparent 0 33px, #dde4e1 34px);
  border-bottom: 1px solid #cfd9d6;
}

.income-bar {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

.income-bar b {
  min-width: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.income-bar i {
  display: block;
  width: min(72%, 34px);
  min-height: 5px;
  background: #439736;
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.income-bar span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.task-income-title {
  justify-self: center;
  min-width: 220px;
  margin-top: 2px;
  padding: 7px 20px;
  color: #fff;
  text-align: center;
  background: #087f59;
  border: 2px solid #f2ead4;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(115, 77, 43, 0.35);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.task-income-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-income-table {
  min-width: 720px;
}

.task-income-head,
.task-income-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.1fr 0.9fr 1fr 1.15fr 1.25fr;
  align-items: center;
}

.task-income-head {
  color: #fff;
  background: #2d8d3f;
  font-size: 11px;
  font-weight: 900;
}

.task-income-row {
  min-height: 37px;
  color: #4a2b15;
  background: #fffaf0;
  border-top: 1px solid rgba(37, 43, 43, 0.65);
  font-size: 12px;
  font-weight: 800;
}

.task-income-row:nth-child(odd) {
  background: #97db8d;
}

.task-income-head span,
.task-income-row span,
.task-income-row strong {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  text-align: center;
  border-right: 1px solid rgba(37, 43, 43, 0.65);
  overflow-wrap: anywhere;
}

.task-income-head span:last-child,
.task-income-row span:last-child {
  border-right: 0;
}

.reward-banner {
  padding: 10px 12px;
  color: #fff;
  text-align: center;
  background: #b99272;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.reward-table {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.reward-table-head,
.reward-table-row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.reward-table-head {
  min-height: 38px;
  color: #fff;
  background: #2d8d3f;
  font-size: 11px;
  font-weight: 800;
}

.reward-table-row {
  min-height: 42px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.reward-table-row:nth-child(odd) {
  background: #9cdd9a;
}

.reward-table-head span,
.reward-table-row span,
.reward-table-row strong {
  min-width: 0;
  padding: 9px 4px;
  text-align: center;
  overflow-wrap: anywhere;
}

.reward-table-row strong {
  color: var(--primary-dark);
}

.reward-help {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reward-help h3 {
  justify-self: center;
  margin: 0 0 2px;
  padding: 5px 22px;
  color: var(--ink);
  background: #ececef;
  border-radius: 999px;
  font-size: 15px;
}

.reward-help p {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.reward-help p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.reward-help .reward-help-note {
  margin-top: 4px;
  color: #6f4d12;
}

.reward-help .reward-help-note::before {
  background: var(--accent);
}

.wealth-card {
  margin-top: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wealth-card h3 {
  margin: 0;
  padding: 10px 12px;
  color: #fff;
  text-align: center;
  background: #0d7f57;
  font-size: 18px;
}

.wealth-card p {
  margin: 0;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.wealth-table-wrap {
  overflow-x: auto;
}

.wealth-table {
  min-width: 680px;
}

.wealth-table-head,
.wealth-table-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
}

.wealth-table-head {
  color: #08251e;
  background: #0d9a8f;
  font-size: 11px;
  font-weight: 900;
}

.wealth-table-row {
  color: #fff;
  background: #16a86e;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 800;
}

.wealth-table-head span,
.wealth-table-row span {
  min-width: 0;
  padding: 9px 6px;
  text-align: center;
  overflow-wrap: anywhere;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 460px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(19, 35, 37, 0.08);
}

.bottom-nav a {
  min-width: 0;
  height: 52px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 11px;
}

.bottom-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 20;
  max-width: min(360px, calc(100% - 36px));
  transform: translate(-50%, 16px);
  padding: 11px 14px;
  color: #fff;
  background: rgba(19, 35, 37, 0.92);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.activity-popup-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 18, 22, 0.48);
  backdrop-filter: blur(8px);
}

.activity-popup-card {
  position: relative;
  width: min(100%, 380px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 18px 18px;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 159, 61, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff, #f7fbfa);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(2, 24, 30, 0.24);
}

.activity-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eef5f4;
  border-radius: 8px;
}

.activity-popup-close svg {
  width: 17px;
  height: 17px;
}

.activity-popup-image {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.activity-popup-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  box-shadow: 0 14px 26px rgba(13, 140, 152, 0.22);
}

.activity-popup-mark svg {
  width: 28px;
  height: 28px;
}

.activity-popup-card span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.activity-popup-card h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.activity-popup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.activity-popup-primary {
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  font-weight: 900;
}

.activity-popup-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 8px;
}

.activity-popup-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.activity-popup-secondary svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 760px) {
  body {
    padding: 22px 0;
  }

  .app-shell {
    min-height: calc(100vh - 44px);
    border-radius: 14px;
    overflow: hidden;
  }

  .screen {
    min-height: calc(100vh - 44px);
  }

  .bottom-nav {
    bottom: 22px;
    border-radius: 0 0 14px 14px;
  }
}

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

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

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-copy h1 {
    font-size: 24px;
  }
}
