@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --pz-cream: #fff4ea;
  --pz-paper: #fffdfb;
  --pz-ink: #3a2a24;
  --pz-muted: #8a6f64;
  --pz-coral: #ff7a59;
  --pz-coral-deep: #e25a3a;
  --pz-mint: #3ecf8e;
  --pz-sky: #7ec8ff;
  --pz-butter: #ffd56a;
  --pz-line: rgba(58, 42, 36, 0.08);
  --pz-shadow: 0 14px 32px rgba(255, 140, 100, 0.16);
  --pz-font: 'Nunito', system-ui, sans-serif;
  --pz-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --tab-h: 78px;
  --tab-safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--pz-cream); }
body.ax-app,
body.auth-page,
body.hud-app {
  font-family: var(--pz-font);
  color: var(--pz-ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 213, 106, 0.55), transparent 36%),
    radial-gradient(circle at 100% 8%, rgba(126, 200, 255, 0.45), transparent 32%),
    radial-gradient(circle at 80% 100%, rgba(62, 207, 142, 0.22), transparent 40%),
    var(--pz-cream);
  -webkit-tap-highlight-color: transparent;
}
body.has-tabbar { padding-bottom: calc(var(--tab-h) + var(--tab-safe) + 18px); }

.ax-app-root,
.ax-wrap,
.ax,
.me-wrap,
.vip-shell,
.team-shell,
.td-wrap,
.hud-page {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
}
body.has-tabbar .ax-app-root,
body.has-tabbar .hud-page { padding-bottom: 12px; }

h1, h2, .ax-title, .vip-head, .hud-pixel, .hud-bar__title {
  font-family: var(--pz-display);
  letter-spacing: 0;
}

.ax-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pz-coral);
}
.ax-muted, .note { color: var(--pz-muted); font-weight: 700; line-height: 1.45; }
.ax-title, .vip-head {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--pz-ink);
}

.hud-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.hud-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.hud-bar__brand img {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--pz-shadow);
}
.hud-bar__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--pz-coral-deep);
}

.ax-top, .td-header, .shop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.shop-head { display: block; }
.shop-head__sub { margin: 4px 0 0; }
.ax-back {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--pz-coral-deep);
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(255, 122, 89, 0.18);
}
.ax-back svg { width: 20px; height: 20px; }
.ax-back:active { transform: translateY(2px); }

.ax-illu, .ax-banner-2d img, .auth-logo {
  display: block;
  width: 132px;
  height: 132px;
  margin: 4px auto 14px;
  object-fit: cover;
  border-radius: 40% 60% 50% 50%;
  border: 5px solid #fff;
  box-shadow: var(--pz-shadow);
  background: #ffe7d6;
}
.ax-banner-2d {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
}
.ax-banner-2d img {
  width: 100%;
  height: 168px;
  border-radius: 28px;
  border: 0;
}
.ax-banner-2d figcaption { display: none; }
.ax-illu--sq {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  margin: 0;
}

.panel, .wf-block, .hud-panel, .ax-card-2d, .invite-card, .stats-card, .vip-card, .td-card, .rec {
  background: var(--pz-paper);
  border: 1px solid #fff;
  border-radius: 26px;
  box-shadow: var(--pz-shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.panel.help p, .panel.help li, .wf-info {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: #5c463e;
}
.panel h2, .wf-block__title, .hud-locked__title {
  margin: 0 0 8px;
  font-family: var(--pz-display);
  font-size: 20px;
  font-weight: 650;
  color: var(--pz-ink);
}
.panel.help h2 { margin-top: 14px; }
.panel.help h2:first-child { margin-top: 0; }

.field, .wf-field { display: block; margin-bottom: 12px; }
.field span, .wf-method-lbl, .hud-field__lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pz-muted);
}
.field input, .field select, .wf-input, .submit, .btn, .wf-confirm, .ax-btn, .hud-btn-orange, .copy-btn, .vip-unlock__btn {
  font-family: var(--pz-font);
}
.field input, .field select, .wf-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #ffe0d2;
  background: #fffaf6;
  color: var(--pz-ink);
  font-size: 15px;
  font-weight: 800;
  outline: none;
}
.field input:focus, .field select:focus, .wf-input:focus { border-color: var(--pz-coral); }
.field { position: relative; }
.field:has(.eye) input {
  padding-right: 52px;
}
.field input[type="password"]::-ms-reveal,
.field input[type="password"]::-ms-clear {
  display: none;
}
.field input[type="password"]::-webkit-textfield-decoration-container,
.field input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none;
  pointer-events: none;
}
.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pz-muted);
  cursor: pointer;
}
.eye svg {
  width: 22px;
  height: 22px;
  display: block;
}
.eye .eye-on { display: block; }
.eye .eye-off { display: none; }
.eye.is-open .eye-on { display: none; }
.eye.is-open .eye-off { display: block; }
.field--phone {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  border: 2px solid #ffe0d2;
  background: #fffaf6;
}
.field--phone:focus-within { border-color: var(--pz-coral); }
.field--phone input {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0 !important;
  background: transparent !important;
  padding: 12px 0 !important;
  min-height: 46px;
  box-shadow: none;
}
.field--phone__dial {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--pz-coral-deep);
}
.field--phone__sep {
  flex-shrink: 0;
  width: 1px;
  height: 24px;
  background: #ffd0c0;
}

.btn, .submit, .wf-confirm, .ax-btn, .ax-btn--gold, .hud-btn-orange, .vip-unlock__btn, .vip-modal__confirm {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff9a7a 0%, var(--pz-coral) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #d45436;
}
.btn:active, .submit:active, .wf-confirm:active, .ax-btn:active, .hud-btn-orange:active { transform: translateY(2px); box-shadow: 0 3px 0 #d45436; }
.btn:disabled, .wf-confirm:disabled, .vip-unlock__btn:disabled, .submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.ax-btn--ghost, .btn--ghost, .wallet-modal__close {
  background: #fff;
  color: var(--pz-coral-deep);
  box-shadow: none;
  border: 2px solid #ffd0c2;
}
.btn--sm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf-link {
  display: inline-block;
  margin-top: 10px;
  color: #2f9d6a;
  font-weight: 900;
  text-decoration: none;
}
.switch { text-align: center; font-weight: 800; color: var(--pz-muted); }
.switch a { color: var(--pz-coral-deep); font-weight: 900; }

.alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffe8e2;
  color: #9a3412;
  font-weight: 800;
}
.alert.is-ok { background: #e5f8ee; color: #166534; }

.auth-page { min-height: 100dvh; }
.auth-screen { max-width: 440px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 18px 32px; }
.auth-sheet {
  background: rgba(255, 253, 251, 0.92);
  border-radius: 32px;
  padding: 22px 18px 18px;
  box-shadow: var(--pz-shadow);
}
.auth-sheet h1 { margin: 0 0 6px; text-align: center; font-family: var(--pz-display); font-size: 36px; color: var(--pz-coral-deep); }
.auth-sheet .ax-muted { text-align: center; margin: 0 0 16px; }
.auth-sheet .ax-kicker { text-align: center; }

.pz-home-hero {
  position: relative;
  margin-bottom: 16px;
  border-radius: 30px;
  overflow: hidden;
  min-height: 190px;
  box-shadow: var(--pz-shadow);
}
.pz-home-hero img { width: 100%; height: 210px; object-fit: cover; display: block; }
.pz-home-hero__card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 253, 251, 0.92);
}
.pz-home-hero__card span { display: block; font-size: 12px; font-weight: 800; color: var(--pz-muted); }
.pz-home-hero__card strong {
  font-family: var(--pz-display);
  font-size: 28px;
  color: var(--pz-ink);
}
.pz-chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.pz-chip {
  background: #fff;
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(255, 140, 100, 0.1);
}
.pz-chip span { display: block; font-size: 11px; font-weight: 800; color: var(--pz-muted); }
.pz-chip b { font-family: var(--pz-display); font-size: 16px; }
.pz-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pz-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--pz-ink);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.pz-rail img {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--pz-shadow);
}
.pz-banner-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 26px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #fff 0%, #e9fff4 100%);
  box-shadow: var(--pz-shadow);
}
.pz-banner-link img { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; }
.pz-banner-link strong { display: block; font-family: var(--pz-display); font-size: 18px; }
.pz-banner-link span { font-size: 12px; font-weight: 800; color: var(--pz-muted); }

.me-hero {
  text-align: center;
  margin: 6px 0 14px;
}
.me-hero img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: var(--pz-shadow);
}
.me-hero h1 { margin: 8px 0 0; font-size: 22px; }
.me-hero p { margin: 2px 0 0; color: var(--pz-muted); font-weight: 800; }
.hud-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f9ef;
  color: #15803d;
  font-size: 11px;
  font-weight: 900;
}
.me-wallet__amt, .pz-balance {
  margin: 0;
  font-family: var(--pz-display);
  font-size: 32px;
  color: var(--pz-coral-deep);
}
.hud-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hud-btn-row .hud-btn-orange { margin-top: 0; }
.me-scroll__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.me-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.me-earn-grid .me-pill {
  flex: none;
  width: auto;
  min-width: 0;
  padding: 10px 6px;
  text-align: center;
}
.me-earn-grid .me-pill__val {
  font-size: 13px;
  word-break: break-word;
}
.me-pill {
  flex: 0 0 120px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7f2;
}
.me-pill__lbl { display: block; font-size: 11px; font-weight: 800; color: var(--pz-muted); }
.me-pill__val { font-family: var(--pz-display); font-size: 16px; }
.me-pill--accent { background: #e9fff4; }
.pz-menu { display: flex; flex-direction: column; gap: 8px; }
.pz-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--pz-ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(255, 140, 100, 0.08);
}
.pz-menu__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff1ea 0%, #ffe8dc 100%);
  color: var(--pz-coral-deep);
}
.pz-menu__icon svg {
  width: 20px;
  height: 20px;
}
.pz-menu__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}
.pz-menu a::after { content: '›'; color: var(--pz-coral); font-size: 22px; line-height: 1; flex-shrink: 0; }
.me-logout { background: #fff !important; color: #c2410c !important; box-shadow: none !important; border: 2px solid #ffd0c2; }
.hud-field__val { margin: 0; font-weight: 900; }
#inviteCode, .ir-code, .invite-code {
  font-family: var(--pz-display);
  letter-spacing: 0.12em;
  font-size: 22px;
  color: var(--pz-coral-deep);
}

.vip-list { display: flex; flex-direction: column; gap: 12px; }
.vip-card { padding: 12px; }
.vip-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1c9;
  color: #9a6700;
  font-size: 11px;
  font-weight: 900;
}
.vip-card__body { display: flex; flex-direction: row-reverse; gap: 10px; align-items: center; }
.vip-card__thumb img {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}
.vip-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vip-stat {
  background: #fff7f2;
  border-radius: 14px;
  padding: 6px 8px;
}
.vip-stat span { display: block; }
.vip-stat span:first-child { font-size: 10px; font-weight: 800; color: var(--pz-muted); }
.vip-stat span:last-child { font-size: 13px; font-weight: 900; }
.vip-stat--green span:last-child { color: #15803d; }
.vip-unlock__btn { flex-direction: column; gap: 0; line-height: 1.15; }
.vip-unlock__btn strong { font-size: 16px; }
.vip-unlock__btn span { font-size: 11px; font-weight: 800; }
.vip-empty { text-align: center; font-weight: 800; color: var(--pz-muted); }
.vip-empty__cta { margin-top: 10px; }
.vip-hourly-foot { margin-top: 10px; }
.vip-hourly-foot__lbl { display: block; font-size: 11px; font-weight: 800; color: var(--pz-muted); }
.hourly-next { font-family: var(--pz-display); }
.vip-card__progress { height: 8px; border-radius: 999px; background: #ffe4d8; overflow: hidden; margin-top: 6px; }
.vip-card__progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ffd56a, #3ecf8e); }

.tasks-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.tasks-stats__cell {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 16px rgba(255, 140, 100, 0.1);
}
.tasks-stats__cell span { display: block; font-size: 11px; font-weight: 800; color: var(--pz-muted); }
.tasks-stats__cell strong { font-family: var(--pz-display); font-size: 18px; }
.tasks-reset {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #e7f9ef;
  color: #166534;
  font-weight: 800;
}

.invite-row, .link-row, .wf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.copy-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: var(--pz-mint);
  color: #083322;
  font-weight: 900;
  cursor: pointer;
}
.link-box {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7f2;
  font-size: 12px;
  font-weight: 800;
  word-break: break-all;
}
.stats-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.stats-row--3 { grid-template-columns: repeat(3, 1fr); }
.stat__lbl { display: block; font-size: 10px; font-weight: 800; color: var(--pz-muted); }
.stat__val { font-family: var(--pz-display); font-size: 16px; }
.lvl {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: var(--pz-shadow);
}
.lvl img { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; }
.lvl h2 { margin: 0; font-size: 16px; }
.lvl p { margin: 2px 0 0; font-size: 12px; font-weight: 800; color: var(--pz-muted); }
.lvl__details a { color: var(--pz-coral-deep); font-weight: 900; text-decoration: none; }
.td-card h2 { margin: 0 0 4px; font-size: 16px; }
.td-card p { margin: 2px 0; font-size: 13px; font-weight: 800; color: var(--pz-muted); }
.money { color: #15803d; font-weight: 900; }
.td-empty { text-align: center; padding: 24px 8px; }
.td-empty img { width: 140px; height: 140px; object-fit: cover; border-radius: 36px; }
.td-trunc { text-align: center; font-weight: 800; color: var(--pz-muted); }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 16px);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  background: var(--pz-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
}
.filters button {
  border: 0;
  background: #fff;
  color: var(--pz-muted);
  font-weight: 900;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.filters button.is-on { background: var(--pz-coral); color: #fff; }
.rec__top { display: flex; justify-content: space-between; gap: 8px; }
.rec__kind, .rec__amt { margin: 0; font-weight: 900; }
.rec__amt { color: var(--pz-coral-deep); }
.rec__meta, .empty { margin: 4px 0 0; font-size: 12px; font-weight: 800; color: var(--pz-muted); }
.cs-list { display: flex; flex-direction: column; gap: 8px; }
.cs-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7f2;
  text-decoration: none;
  color: inherit;
}
.cs-line strong, .cs-line span { display: block; }
.cs-line > span { color: var(--pz-coral-deep); font-weight: 900; }

.wf-methods, .wf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wf-method, .wf-quick__btn {
  border: 2px solid #ffe0d2;
  background: #fff;
  color: var(--pz-ink);
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.wf-method.is-on, .wf-quick__btn.is-on { background: #fff1ea; border-color: var(--pz-coral); color: var(--pz-coral-deep); }
.wf-empty { font-weight: 800; color: var(--pz-muted); }

.ax-cal-head, .ax-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.ax-cal-head { margin-bottom: 6px; font-size: 11px; font-weight: 900; color: var(--pz-muted); }
.ax-day, .ax-blank {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
  background: #fff7f2;
}
.ax-blank { background: transparent; }
.ax-day.is-claimed { background: #d9fbe8; color: #166534; }
.ax-day.is-today { outline: 2px solid var(--pz-coral); }
.ax-day.is-future { opacity: 0.4; }
.ax-countdown { font-weight: 900; color: var(--pz-coral-deep); }

.ax-wheel-wrap {
  --slice: 45deg;
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 8px auto 8px;
}
.ax-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: var(--pz-shadow);
  transition: transform 4.6s cubic-bezier(0.12, 0.7, 0.08, 1);
  position: relative;
}
.ax-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -4px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--pz-coral);
}
.ax-wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  margin-left: -32px;
  margin-top: -10px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  transform-origin: 32px 10px;
  transform: rotate(calc(var(--i) * var(--slice) + (var(--slice) / 2))) translateY(-108px);
}
.ax-wheel-hub {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--pz-coral);
  color: #fff;
  font-family: var(--pz-display);
  font-weight: 700;
  cursor: pointer;
}
.ax-wheel-hub:disabled { opacity: 0.55; }
.ax-spin-log { list-style: none; margin: 0; padding: 0; }
.ax-spin-log li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pz-line);
  font-weight: 800;
}

.ir-summary__stat { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.ir-bar { height: 10px; border-radius: 999px; background: #ffe4d8; overflow: hidden; margin-top: 8px; }
.ir-bar__fill { height: 100%; background: linear-gradient(90deg, #ffd56a, #3ecf8e); width: calc(var(--ir-fill, 0) * 1%); max-width: 100%; }
.ir-table { width: 100%; border-collapse: collapse; font-size: 12px; font-weight: 800; }
.ir-table th { text-align: left; padding: 8px 4px; color: var(--pz-muted); font-size: 10px; }
.ir-table td { padding: 10px 4px; border-top: 1px solid var(--pz-line); }
.ir-table tr.is-ready td { background: #fff8e8; }
.ir-table tr.is-claimed td { opacity: 0.6; }
.ir-earn { color: #15803d; white-space: nowrap; }
.ir-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.ir-tag--active { background: #e7f9ef; color: #166534; }
.ir-tag--ready { background: #fff1c9; color: #9a6700; }
.ir-tag--done, .ir-tag--lock { background: #f4eee9; color: var(--pz-muted); }
.ir-claim-btn { display: block; width: 100%; margin-top: 12px; }
.ir-claim-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ir-claim-btn.is-busy { opacity: 0.75; pointer-events: none; }
.rc-history { list-style: none; padding: 0; margin: 8px 0 0; }
.rc-history .rec { display: flex; justify-content: space-between; align-items: center; }
.rc-history__empty { text-align: center; }
.rc-history__empty img { width: 120px; height: 120px; object-fit: cover; border-radius: 28px; }

.wallet-modal, .vip-modal, .ax-tg-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(58, 42, 36, 0.35);
}
.wallet-modal.is-open, .vip-modal.is-open, .ax-tg-modal.is-open { display: flex; }
.wallet-modal__box, .vip-modal__sheet, .ax-tg-modal__sheet {
  width: min(400px, 100%);
  background: #fffdfb;
  border-radius: 28px 28px 22px 22px;
  padding: 20px 18px 16px;
  box-shadow: var(--pz-shadow);
}
.ax-tg-modal__backdrop { position: absolute; inset: 0; }
.ax-tg-modal__sheet { position: relative; z-index: 1; }
.ax-tg-modal__kicker { margin: 0; font-weight: 900; color: var(--pz-coral); letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.ax-tg-modal__title { margin: 4px 0 8px; font-family: var(--pz-display); font-size: 26px; }
.ax-tg-modal__desc { margin: 0 0 12px; font-weight: 700; color: #5c463e; }
.ax-tg-modal__stats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ax-tg-modal__stats li { display: flex; justify-content: space-between; background: #fff7f2; border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.ax-tg-modal__ornament, .ax-tg-modal__moon, .ax-tg-modal__spark { display: none; }
.ax-tg-modal__link { word-break: break-all; font-size: 12px; }
body.ax-tg-modal-open { overflow: hidden; }
.vip-modal__text { font-weight: 800; line-height: 1.45; }

.tabbar {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: calc(8px + var(--tab-safe));
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.96);
  border: 1px solid #fff;
  box-shadow: 0 12px 30px rgba(58, 42, 36, 0.12);
}
.tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--pz-muted);
  font-family: var(--pz-display);
  font-size: 10px;
  font-weight: 600;
}
.tab__icons { width: 28px; height: 28px; display: grid; place-items: center; }
.tab__icon { display: none; }
.tab__paw {
  width: 26px;
  height: 26px;
  display: block;
}
.tab.is-on { background: #fff1ea; color: var(--pz-coral-deep); }
.tab__label { font-size: 10px; font-weight: 650; text-align: center; }

.miss {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.err__code { margin: 0; font-family: var(--pz-display); font-size: 42px; color: var(--pz-coral); }
.miss h1 { margin: 0; font-family: var(--pz-display); }
.miss .btn { width: auto; padding: 0 22px; }

@media (max-width: 360px) {
  .stats-row--3 { grid-template-columns: 1fr; }
  .pz-rail img { width: 56px; height: 56px; }
  .vip-stats { grid-template-columns: 1fr; }
}

/* ===== Full-screen mobile + unique page layouts (same cream bg) ===== */

.ax-app-root,
.ax-wrap,
.ax,
.me-wrap,
.vip-shell,
.team-shell,
.td-wrap,
.hud-page,
.auth-screen {
  max-width: min(100%, 480px);
}

@media (max-width: 520px) {
  .ax-app-root,
  .ax-wrap,
  .ax,
  .me-wrap,
  .vip-shell,
  .team-shell,
  .td-wrap,
  .hud-page,
  .auth-screen,
  .pz-stage {
    max-width: none;
    width: 100%;
  }
  body.has-tabbar .ax-app-root {
    min-height: 100dvh;
  }
}

body.ax-app.pz-page {
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
  overscroll-behavior: none;
}

html:has(body.ax-app.pz-page) {
  overflow: hidden;
  height: 100%;
}

.pz-stage {
  width: 100%;
  max-width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pz-stage__bar {
  position: relative;
  flex-shrink: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
  background: rgba(255, 244, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 122, 89, 0.12);
}

.pz-stage__bar .ax-title {
  flex: 1;
  font-size: 22px;
  margin: 0;
}

.pz-stage__scroll {
  flex: 1;
  min-height: 0;
  padding: 0 14px calc(16px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.pz-stage__hero {
  margin: 0 -14px 14px;
  padding: 0 14px;
}

.pz-stage__hero img,
.pz-stage__hero--wide img {
  width: 100%;
  height: clamp(140px, 38vw, 200px);
  object-fit: cover;
  border-radius: 0 0 28px 28px;
  display: block;
  box-shadow: var(--pz-shadow);
}

.pz-stage__hero--tile {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.pz-stage__hero--tile img {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  object-fit: cover;
  margin: 0;
  box-shadow: var(--pz-shadow);
}

.pz-stage__hero--tile div strong {
  display: block;
  font-family: var(--pz-display);
  font-size: 20px;
  margin-bottom: 4px;
}

.pz-stage__hero--tile div span {
  font-size: 12px;
  font-weight: 800;
  color: var(--pz-muted);
  line-height: 1.45;
}

.pz-panel--flush {
  margin-left: -2px;
  margin-right: -2px;
  border-radius: 22px;
}

.pz-stack { display: flex; flex-direction: column; gap: 10px; }

.pz-accord details {
  background: var(--pz-paper);
  border-radius: 18px;
  border: 1px solid #fff;
  box-shadow: 0 8px 20px rgba(255, 140, 100, 0.08);
  margin-bottom: 8px;
  overflow: hidden;
}

.pz-accord summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--pz-display);
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pz-accord summary::-webkit-details-marker { display: none; }

.pz-accord summary::after {
  content: '+';
  color: var(--pz-coral);
  font-size: 22px;
  font-weight: 700;
}

.pz-accord details[open] summary::after { content: '−'; }

.pz-accord details p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: #5c463e;
}

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

@media (min-width: 400px) {
  .pz-split-form--bank {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.pz-rail-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 0 -4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pz-rail-cards::-webkit-scrollbar { display: none; }

.pz-rail-card {
  flex: 0 0 132px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff 0%, #fff7f2 100%);
  box-shadow: var(--pz-shadow);
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.pz-rail-card img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 8px;
  display: block;
}

.pz-rail-card span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--pz-muted);
}

.pz-rail-card b {
  font-family: var(--pz-display);
  font-size: 15px;
}

.pz-checkin-claim {
  text-align: center;
  padding: 18px 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #e9fff4 55%, #fff7f2 100%);
  box-shadow: var(--pz-shadow);
  margin-bottom: 12px;
}

.pz-checkin-claim .wf-confirm { max-width: 280px; margin-left: auto; margin-right: auto; }

.pz-cal-panel {
  padding: 14px;
  border-radius: 22px;
  background: var(--pz-paper);
  box-shadow: var(--pz-shadow);
}

.pz-cs-grid {
  display: grid;
  gap: 10px;
}

.pz-cs-grid .cs-line {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(255, 140, 100, 0.1);
}

.pz-record-head {
  position: sticky;
  top: calc(52px + env(safe-area-inset-top));
  z-index: 15;
  margin: 0 -14px 12px;
  padding: 8px 14px 10px;
  background: rgba(255, 244, 234, 0.92);
  backdrop-filter: blur(8px);
}

.pz-wallet-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.12) 0%, #fff 45%, rgba(62, 207, 142, 0.1) 100%);
  box-shadow: var(--pz-shadow);
}

.pz-wallet-hero span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--pz-muted);
}

.pz-wallet-hero strong {
  font-family: var(--pz-display);
  font-size: 26px;
  color: var(--pz-coral-deep);
}

.pz-wallet-hero img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
}

/* Auth — full viewport, docked sheet */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-screen--full {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

.auth-top-band {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(200px, 42vh, 320px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 20px 36px;
  overflow: hidden;
}

.auth-page--login .auth-top-band {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 213, 106, 0.65), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(126, 200, 255, 0.5), transparent 40%),
    var(--pz-cream);
}

.auth-page--register .auth-top-band {
  background:
    radial-gradient(circle at 80% 25%, rgba(62, 207, 142, 0.45), transparent 42%),
    radial-gradient(circle at 10% 40%, rgba(255, 122, 89, 0.35), transparent 38%),
    var(--pz-cream);
}

.auth-top-band__ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 122, 89, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  pointer-events: none;
}

.auth-logo--hero {
  position: relative;
  z-index: 1;
  width: clamp(100px, 28vw, 132px);
  height: clamp(100px, 28vw, 132px);
  margin: 0;
  border-radius: 32px;
}

.auth-sheet--dock {
  flex: 1;
  margin-top: -28px;
  border-radius: 32px 32px 0 0;
  padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 251, 0.97);
  box-shadow: 0 -8px 40px rgba(58, 42, 36, 0.08);
}

.auth-sheet--dock h1 {
  font-size: clamp(28px, 8vw, 38px);
}

.auth-sheet--dock .field:not(.field--phone) input,
.auth-sheet--dock .field select {
  min-height: 52px;
  border-radius: 18px;
}

.auth-sheet--dock .field--phone {
  min-height: 52px;
  border-radius: 18px;
}

.auth-sheet--dock .field--phone input {
  min-height: 48px;
  font-size: 15px;
}

.auth-sheet--dock .submit {
  min-height: 54px;
  border-radius: 20px;
  margin-top: 14px;
}

/* Tab app — full bleed home / me / shop variants */
body.ax-home .ax-page {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

body.ax-home .pz-home-hero {
  margin-left: -4px;
  margin-right: -4px;
  border-radius: 0 0 32px 32px;
}

body.ax-home .pz-home-hero img {
  height: clamp(180px, 48vw, 240px);
}

body.ax-me .me-wrap {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

body.ax-me .me-hero {
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.7);
  box-shadow: var(--pz-shadow);
}

body.ax-me .pz-menu a {
  border-radius: 22px;
  padding: 14px 16px;
}

body.ax-shop .vip-list {
  gap: 14px;
}

body.ax-shop .vip-card {
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff9f5 100%);
}

body.ax-shop .vip-card:nth-child(even) .vip-card__body {
  flex-direction: row;
}

body.ax-team .team-shell .ax-illu {
  width: 100%;
  max-width: none;
  height: clamp(120px, 32vw, 160px);
  border-radius: 24px;
  margin-bottom: 12px;
}

body.ax-team .invite-card {
  border-radius: 28px;
  background: linear-gradient(160deg, #fff 0%, #fff1ea 100%);
}

body.ax-team .lvl {
  border-radius: 24px;
}

body.ax-vip.ax-hourly .tasks-stats {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.ax-vip.ax-hourly .vip-card {
  border-left: 4px solid var(--pz-mint);
}

.pz-page--recharge .wf-block,
.pz-page--withdraw .wf-block {
  border-radius: 28px;
  padding: 18px;
}

.pz-page--recharge .pz-stage__hero--wide,
.pz-page--withdraw .pz-stage__scroll > .pz-wallet-hero:first-child {
  margin-top: 0;
}

.pz-page--recharge .pz-stage__hero--wide img {
  border-radius: 0 0 28px 28px;
}

.pz-company-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pz-company-strip div {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7f2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.pz-invite-hero {
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff1ea, #e9fff4);
  margin-bottom: 12px;
  text-align: center;
}

.pz-wheel-stage {
  padding: 8px 0 16px;
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.85);
  box-shadow: var(--pz-shadow);
  margin-bottom: 12px;
}

body.ax-app .ax-app-root {
  min-height: 100dvh;
  width: 100%;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.shop-head--stack .vip-head {
  font-size: 24px;
}

.tabbar {
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
}
