:root {
  --ink: #1b120e;
  --cream: #fff6ea;
  --paper: #fffdf9;
  --hot: #e23a22;
  --hot-deep: #9d2414;
  --butter: #ffc857;
  --hide: #2b211b;
  --blush: #ffd9cc;
  --line: rgba(27, 18, 14, 0.1);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --radius: 22px;
  --shadow: 7px 7px 0 var(--ink);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-core: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, #2b211b 0 46px, transparent 47px),
    radial-gradient(circle at 92% 4%, #e23a22 0 28px, transparent 29px),
    radial-gradient(circle at 80% 96%, #ffc857 0 70px, transparent 71px),
    linear-gradient(165deg, #f6e4d4 0%, #efe0cf 48%, #e7d3c0 100%);
}

/* ---- unified app shell (base.html) ---- */
body.hc-app {
  min-height: 100dvh;
}

.hc-shell {
  width: min(440px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 0 1px rgba(27, 18, 14, 0.06);
}

/* Tabbed pages: shell = viewport height, main scrolls, nav stays visible */
body.hc-app--tabbed .hc-shell {
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.hc-main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

body.hc-app--tabbed .hc-main {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

body.hc-app--tabbed .hc-main > .hud-page,
body.hc-app--tabbed .hc-main > .ax-page,
body.hc-app--tabbed .hc-main > .me-wrap,
body.hc-app--tabbed .hc-main > .team-shell,
body.hc-app--tabbed .hc-main > .vip-shell {
  padding-bottom: 20px;
}
img { max-width: 100%; display: block; }
a { color: var(--hot); }
button, input, select { font-family: inherit; }
h1, h2, h3, .ax-title, .vip-head, .hud-bar__title, .wf-block__title {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.ax-app-root,
.page-shell,
.hc-shell,
.pz-stage {
  width: min(440px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 0 1px rgba(27, 18, 14, 0.06);
}

.hc-shell.ax-app-root,
.hc-shell.page-shell {
  display: flex;
  flex-direction: column;
}

.auth-screen {
  width: min(440px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  box-shadow: none;
}

.hud-page, .ax-page, .me-wrap, .team-shell, .vip-shell { padding: 0 16px 24px; }

/* ---- header ---- */
.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + var(--safe-t)) 0 12px;
}
.hud-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.hud-bar__brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--hot);
}
.hud-bar__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.hud-bar__title em {
  font-style: normal;
  color: var(--hot);
}
.hud-bar__pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--butter);
}

/* ---- docked bottom nav (inside hc-shell) ---- */
.tabbar {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 2px;
  padding: 10px 8px calc(10px + var(--safe-b));
  border-radius: 0;
  border-top: 2px solid rgba(255, 246, 234, 0.08);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 -8px 28px rgba(27, 18, 14, 0.18);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255, 246, 234, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tab__icons { display: grid; place-items: center; width: 28px; height: 28px; }
.tab__paw, .tab__icons svg { width: 22px; height: 22px; }
.tab.is-on { color: var(--butter); }
.tab.is-on .tab__icons { color: var(--butter); }

/* ---- home (hc-dash) ---- */
.hc-dash-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px 12px 10px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(226, 58, 34, 0.2);
}
.hc-dash-hero .ax-kicker { margin: 0 0 4px; color: var(--butter); }
.hc-dash-hero__balance {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--butter);
}
.hc-dash-hero__hint {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, 0.5);
}
.hc-dash-hero__phone {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 246, 234, 0.65);
}
.hc-dash-hero__mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--butter);
  background: var(--cream);
}
.hc-dash-stats {
  margin: 0 0 10px;
}
.hc-dash-stats .hc-stat {
  padding: 8px 10px;
}
.hc-dash-stats .hc-stat b {
  font-size: 14px;
}
.hc-dash-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.hc-dash-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(27, 18, 14, 0.08);
}
.hc-dash-quick__item img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}
.hc-dash-order {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  box-shadow: 3px 3px 0 rgba(27, 18, 14, 0.08);
}
.hc-dash-order img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}
.hc-dash-order strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}
.hc-dash-order span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(27, 18, 14, 0.55);
  line-height: 1.35;
}
.hc-dash-order__go {
  font-size: 20px;
  font-weight: 800;
  color: var(--hot);
}

.hc-dash-feed {
  margin-top: 14px;
  margin-bottom: 8px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(27, 18, 14, 0.08);
}
.hc-dash-feed__head {
  margin-bottom: 8px;
}
.hc-dash-feed__head .ax-kicker {
  margin: 0 0 2px;
}
.hc-dash-feed__title {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.hc-dash-feed__viewport {
  --feed-row-h: 46px;
  --feed-visible: 5;
  height: calc(var(--feed-row-h) * var(--feed-visible));
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.hc-dash-feed__track {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-dash-feed__track.is-animating {
  animation: hc-dash-feed-scroll 22s ease-in-out infinite;
}
@keyframes hc-dash-feed-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-dash-feed__track.is-animating { animation: none; }
}
.hc-dash-feed__row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: var(--feed-row-h);
  padding: 4px 2px;
  border-bottom: 1px dashed var(--line);
}
.hc-dash-feed__row:last-child {
  border-bottom: none;
}
.hc-dash-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 2px rgba(226, 58, 34, 0.25);
}
.hc-dash-feed__copy {
  min-width: 0;
}
.hc-dash-feed__copy strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.hc-dash-feed__copy span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(27, 18, 14, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-dash-feed__amt {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--hot);
  white-space: nowrap;
}
.hc-dash-feed__empty {
  margin: 0;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.5);
  text-align: center;
}

/* legacy home blocks (other templates) */
.hc-mast {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  min-height: 0;
}
.hc-mast img { width: 100%; height: clamp(140px, 38vw, 168px); object-fit: cover; }
.hc-ticket {
  position: relative;
  margin: -28px 14px 0;
  padding: 12px 14px 10px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hc-ticket span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(27,18,14,0.55); }
.hc-ticket strong { display: block; margin-top: 2px; font-family: var(--display); font-size: 34px; line-height: 1; }
.hc-ticket em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
}
.hc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.hc-stat {
  padding: 12px 12px 10px;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--line);
}
.hc-stat span { display: block; font-size: 11px; font-weight: 700; color: rgba(27,18,14,0.5); }
.hc-stat b { display: block; margin-top: 4px; font-size: 16px; }
.hc-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hc-actions a:first-child { grid-row: 1 / span 2; }
.hc-actions a {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border-radius: 22px;
  border: 2px solid var(--ink);
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-weight: 800;
  background: var(--hide);
}
.hc-actions img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.hc-actions span {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.hc-live {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--cream);
  border-radius: 26px;
  padding: 10px;
  margin-bottom: 8px;
}
.hc-live img {
  width: 112px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--cream);
}
.hc-live strong { display: block; font-family: var(--display); font-size: 22px; color: var(--butter); }
.hc-live span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: rgba(255,246,234,0.78); }

/* legacy home bits if any remain */
.pz-chip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-chip, .pz-rail a, .pz-banner-link { border: 1.5px solid var(--ink); border-radius: 18px; background: #fff; }
.pz-home-hero { border-radius: 24px; overflow: hidden; border: 2px solid var(--ink); }
.pz-home-hero img { width: 100%; height: 180px; object-fit: cover; }
.pz-home-hero__card { display: flex; justify-content: space-between; padding: 12px; }

/* ---- subpage chrome ---- */
.vip-shell .ax-top { margin: 0 -16px 12px; }
.pz-stage__bar, .ax-top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) 16px 12px;
  background: var(--ink);
  color: var(--cream);
}
.ax-back {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--butter);
  color: var(--ink);
  text-decoration: none;
}
.ax-back svg { width: 20px; height: 20px; }
.ax-title { margin: 0; font-size: 22px; font-weight: 700; color: inherit; }
.pz-stage__scroll { padding: 16px 16px 36px; }
.ax-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
}
.ax-muted { color: rgba(27, 18, 14, 0.62); font-size: 13px; font-weight: 600; line-height: 1.45; }

.pz-stage__hero, .pz-stage__hero--wide, .ax-banner-2d {
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--ink);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.pz-stage__hero img, .pz-stage__hero--wide img, .ax-banner-2d img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.pz-stage__hero--tile {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin-bottom: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 4px 4px 0 var(--blush);
}
.pz-stage__hero--tile img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
}
.pz-stage__hero--tile,
.pz-stage__hero--tile .vip-head { color: var(--ink); }
.pz-stage__hero--tile strong, .pz-stage__hero--tile h1 { display: block; }
.pz-stage__hero--tile span, .shop-head__sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: rgba(27,18,14,0.62); }

/* ---- cards / vip / shop / hourly ---- */
.vip-head { margin: 0; font-size: 28px; }
.shop-head { margin-bottom: 8px; }
.vip-list { display: flex; flex-direction: column; gap: 14px; }
.vip-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px 28px 8px 28px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.vip-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vip-card__body { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.vip-card__thumb img { width: 96px; height: 110px; object-fit: cover; border-radius: 18px; }
.vip-stats { display: flex; flex-direction: column; gap: 4px; }
.vip-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
.vip-stat span:first-child { color: rgba(27,18,14,0.5); font-weight: 700; }
.vip-stat--green span:last-child { color: #1f7a45; }
.vip-unlock { margin-top: 10px; }
.vip-unlock__btn, .wf-confirm, .submit, .btn, .ax-btn, .hud-btn-orange, .me-logout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--hot);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--hot-deep);
}
.vip-unlock__btn strong { font-size: 15px; }
.vip-unlock__btn span { font-size: 12px; opacity: 0.9; }
.vip-unlock__btn:disabled, .wf-confirm:disabled, .submit:disabled, .btn:disabled {
  background: #cfc6be;
  color: #5c514a;
  box-shadow: none;
  cursor: not-allowed;
}
.vip-unlock__btn.is-busy { opacity: 0.7; }
.ax-btn--ghost, .btn--ghost, .vip-btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.ax-btn--gold { background: var(--butter); color: var(--ink); box-shadow: 0 4px 0 #c4922a; }
.vip-empty { text-align: center; font-weight: 700; }
.vip-empty__cta { margin-top: 12px; }
.vip-hourly-foot { margin-top: 10px; }
.vip-hourly-foot__lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(27,18,14,0.5); }
.hourly-next { font-family: var(--display); font-size: 20px; }
.vip-card__progress, .ir-bar {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--blush);
  overflow: hidden;
  border: 1px solid var(--ink);
}
.vip-card__progress-fill, .ir-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--hot), var(--butter));
}
.ir-bar__fill { width: calc(var(--ir-fill, 0) * 1%); }
.tasks-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.tasks-stats__cell {
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px dashed var(--ink);
}
.tasks-stats__cell span { display: block; font-size: 11px; font-weight: 700; color: rgba(27,18,14,0.5); }
.tasks-stats__cell strong { display: block; margin-top: 4px; font-size: 16px; }
.tasks-reset {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #e8f6ea;
  border: 1.5px solid #1f7a45;
  font-weight: 800;
}
.hc-hourly-stage {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
}
.hc-hourly-stage img { width: 120px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--cream); }
.hc-hourly-stage .ax-kicker { color: var(--butter); }
.hc-hourly-stage .vip-head, .hc-hourly-stage .ax-muted { color: var(--cream); }

/* ---- shop (hc-shop layout) ---- */
.hc-shop-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}
.hc-shop-hero__title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
}
.hc-shop-hero__sub {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-shop-wallet {
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  text-align: center;
  min-width: 112px;
  box-shadow: 2px 2px 0 rgba(226, 58, 34, 0.12);
}
.hc-shop-wallet__lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.5);
}
.hc-shop-wallet__amt {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.hc-shop-wallet__topup {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--hot);
}

.hc-shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}
.hc-shop-pack {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-rows: auto auto;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fff;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(27, 18, 14, 0.1);
}
.hc-shop-pack--owned {
  opacity: 0.92;
}
.hc-shop-pack__banner {
  position: relative;
  grid-row: 1 / 3;
  height: 100%;
  min-height: 100px;
  background: var(--hide);
}
.hc-shop-pack__banner img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}
.hc-shop-pack__ribbon {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--butter);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.hc-shop-pack__main {
  padding: 8px 10px 8px;
  border-top: none;
  border-left: 2px solid var(--ink);
  grid-column: 2;
}
.hc-shop-pack__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.hc-shop-pack__tier {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pack-accent, var(--hot));
}
.hc-shop-pack__name {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}
.hc-shop-pack__cost {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--hot);
}
.hc-shop-pack__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.hc-shop-pack__metrics dt {
  margin: 0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.45);
}
.hc-shop-pack__metrics dd {
  margin: 1px 0 0;
  font-size: 12px;
  font-weight: 800;
}
.hc-shop-pack__btn {
  flex-direction: row;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--hot-deep);
  background: linear-gradient(180deg, #ff6b52 0%, var(--hot) 55%, var(--hot-deep) 100%);
}
.hc-shop-pack__btn strong { font-size: 13px; }
.hc-shop-pack__btn span { font-size: 10px; }
.hc-shop-pack--owned .hc-shop-pack__btn {
  background: #e8e4de;
  color: rgba(27, 18, 14, 0.55);
  border-color: rgba(27, 18, 14, 0.2);
  cursor: not-allowed;
}
.hc-shop-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 20px;
  border: 2px dashed var(--line);
  font-weight: 700;
  color: rgba(27, 18, 14, 0.55);
}

/* ---- order / hourly (hc-order layout) ---- */
.hc-order-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
.hc-order-hero__title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
}
.hc-order-hero__sub {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
}
.hc-order-hero__rate {
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  text-align: right;
  min-width: 108px;
}
.hc-order-hero__rate-lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, 0.55);
}
.hc-order-hero__rate-val {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--butter);
  line-height: 1.1;
}
.hc-order-summary {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 3px 3px 0 rgba(27, 18, 14, 0.08);
}
.hc-order-summary__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hc-order-summary__cell {
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--line);
}
.hc-order-summary__cell span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.5);
}
.hc-order-summary__cell b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}
.hc-order-toast {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31, 122, 69, 0.12);
  border: 1.5px solid #1f7a45;
  font-size: 12px;
  font-weight: 800;
  color: #14532d;
}
.hc-order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hc-order-card {
  border-radius: 22px;
  border: 2px solid var(--ink);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hc-order-card--done {
  opacity: 0.92;
}
.hc-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--butter);
  border-bottom: 2px solid var(--ink);
}
.hc-order-card__status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hc-order-card__cycle {
  font-size: 10px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.55);
}
.hc-order-card__banner {
  height: 120px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.hc-order-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hc-order-card__body {
  padding: 12px 12px 10px;
}
.hc-order-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.hc-order-card__name {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}
.hc-order-card__capital {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--hot);
}
.hc-order-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 0;
}
.hc-order-card__metrics div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(27, 18, 14, 0.04);
}
.hc-order-card__metrics dt {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.5);
}
.hc-order-card__metrics dd {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}
.hc-order-card__progress-lbl {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.5);
}
.hc-order-card__foot {
  padding: 10px 12px 12px;
  background: var(--ink);
  color: var(--cream);
}
.hc-order-card__timer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.hc-order-card__timer-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, 0.55);
}
.hc-order-card__timer-val {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--butter);
}
.hc-order-card__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border: 1px solid rgba(255, 246, 234, 0.2);
}
.hc-order-card__bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hot), var(--butter));
}
.hc-order-empty {
  text-align: center;
  padding: 28px 16px 24px;
  border-radius: 22px;
  border: 2px dashed var(--line);
  background: rgba(255, 255, 255, 0.65);
}
.hc-order-empty img {
  margin: 0 auto 12px;
  border-radius: 18px;
  object-fit: cover;
}
.hc-order-empty p {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(27, 18, 14, 0.58);
}
.hc-order-empty__cta {
  max-width: 220px;
  margin: 0 auto;
}
.hc-order-sub .ax-top {
  margin: 0 -16px 12px;
}
.hc-order--sub .ax-top {
  margin: 0 -16px 12px;
}

/* ---- me (hc-me layout) ---- */
.hc-me-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.hc-me-head .ax-kicker { margin: 0 0 4px; color: var(--butter); }
.hc-me-head__avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--butter);
  box-shadow: 4px 4px 0 var(--hot-deep);
}
.hc-me-head__name {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}
.hc-me-head__phone {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 246, 234, 0.62);
}
.hc-me-head .hud-badge { margin-top: 8px; }

.hc-me-wallet {
  margin-bottom: 10px;
  padding: 12px 12px 10px;
  border-radius: 22px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(226, 58, 34, 0.15);
}
.hc-me-wallet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.hc-me-wallet__lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.5);
}
.hc-me-wallet__tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
}
.hc-me-wallet__amt {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 40px);
  font-weight: 700;
  line-height: 1;
}
.hc-me-wallet__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hc-me-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 2px dashed rgba(27, 18, 14, 0.22);
  background: #fff;
}
.hc-me-invite__lbl {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(27, 18, 14, 0.45);
  margin-bottom: 2px;
}
.hc-me-invite__code {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.12em;
}
.hc-me-invite__btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.hc-me-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.hc-me-action--hot {
  background: var(--hot);
  color: #fff;
}
.hc-me-action--sm {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}
.hc-me-action--ghost {
  background: var(--butter);
}

.hc-me-section-head {
  margin-bottom: 10px;
}
.hc-me-section-title {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.hc-me-stats {
  margin-bottom: 10px;
}
.hc-me-team-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--butter) 0%, #ffe8a8 100%);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(27, 18, 14, 0.12);
}
.hc-me-team-tile__lbl {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hc-me-team-tile__val {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}
.hc-me-team-tile__go {
  font-size: 11px;
  font-weight: 800;
  color: var(--hot);
  white-space: nowrap;
}

.hc-me-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.hc-me-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 8px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 3px 3px 0 rgba(27, 18, 14, 0.06);
  min-height: 82px;
}
.hc-me-tile:active { transform: translateY(1px); }
.hc-me-tile--highlight {
  background: linear-gradient(160deg, #fff 55%, rgba(255, 224, 130, 0.45) 100%);
  border-color: rgba(226, 58, 34, 0.4);
}
.hc-me-tile--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  gap: 12px;
}
.hc-me-tile--wide .hc-me-tile__sub { margin-left: auto; }
.hc-me-tile__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blush);
  color: var(--hot);
}
.hc-me-tile__icon--img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.hc-me-tile__icon--img img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}
.hc-me-tile__icon svg { width: 20px; height: 20px; }
.hc-me-tile__lbl {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.hc-me-tile__sub {
  font-size: 10px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.5);
}

.hc-me-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 4px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--butter);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* legacy me (other templates) */
.me-hero {
  text-align: left;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0 14px;
}
.me-hero img { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; border: 2px solid var(--ink); }
.me-hero h1 { margin: 0; font-family: var(--display); font-size: 26px; }
.me-hero p { margin: 2px 0 0; font-weight: 700; color: rgba(27,18,14,0.55); }
.hud-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--hot);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
}
.hud-panel, .panel, .wf-block, .invite-card, .stats-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 4px 4px 0 rgba(226, 58, 34, 0.18);
}
.hud-field__lbl, .hud-locked__title, .wf-block__title { margin: 0 0 8px; font-size: 18px; }
.me-wallet__amt { margin: 0; font-family: var(--display); font-size: 36px; line-height: 1; }
.hud-btn-row, .btn--sm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hud-pixel, .ir-code, .invite-code {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.12em;
  margin: 0;
}
.me-earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.me-pill { padding: 10px; border-radius: 14px; background: var(--cream); }
.me-pill--accent { background: var(--butter); }
.me-pill__lbl { display: block; font-size: 11px; font-weight: 800; color: rgba(27,18,14,0.5); }
.me-pill__val { font-size: 15px; }
.pz-menu { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pz-menu a, .cs-line, .lvl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--line);
}
.pz-menu__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--blush); color: var(--hot); }
.pz-menu__icon svg { width: 18px; height: 18px; }
.pz-menu__text { flex: 1; font-weight: 800; font-size: 14px; }
.me-logout { margin-top: 8px; background: var(--ink); box-shadow: none; }

/* ---- team (hc-team layout) ---- */
.hc-team .ax-kicker { margin: 0 0 4px; }

.hc-team-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px 12px 10px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.hc-team-hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}
.hc-team-hero__commission {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--butter);
}
.hc-team-hero__hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 246, 234, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hc-team-hero .ax-kicker { color: var(--hot); }
.hc-team-hero__photo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--butter);
  box-shadow: 4px 4px 0 var(--hot-deep);
}

.hc-team-ticket {
  margin-bottom: 14px;
  padding: 16px 14px 14px;
  border-radius: 22px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(226, 58, 34, 0.15);
}
.hc-team-ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.55);
}
.hc-team-ticket__head em {
  font-style: normal;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  font-size: 10px;
  color: var(--ink);
}
.hc-team-invite__code {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 8vw, 36px);
  letter-spacing: 0.14em;
}
.hc-team-ticket__sub {
  margin: 8px 0 12px;
  text-align: center;
  font-size: 12px;
}
.hc-team-ticket__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.hc-team-btn {
  border: 2px solid var(--ink);
  background: var(--hot);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  font-size: 12px;
  padding: 11px 10px;
  cursor: pointer;
}
.hc-team-btn--ghost {
  background: #fff;
  color: var(--ink);
}
.hc-team-link {
  margin: 0;
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px dashed rgba(27, 18, 14, 0.2);
}

.hc-team-metrics {
  margin-bottom: 18px;
}

.hc-team-levels-head {
  margin-bottom: 10px;
}
.hc-team-levels-title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.hc-team-levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.hc-team-level {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 14px 12px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(27, 18, 14, 0.08);
  transition: transform 0.12s ease;
}
.hc-team-level:active { transform: translateY(2px); }
.hc-team-level--a { border-left-width: 6px; border-left-color: var(--hot); }
.hc-team-level--b { border-left-width: 6px; border-left-color: #17c3b2; }
.hc-team-level--c { border-left-width: 6px; border-left-color: var(--butter); }
.hc-team-level__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.5);
}
.hc-team-level__rate {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}
.hc-team-level__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 10px;
  padding-top: 10px;
  border-top: 1.5px solid var(--line);
}
.hc-team-level__lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(27, 18, 14, 0.45);
  margin-bottom: 2px;
}
.hc-team-level__grid strong {
  font-size: 15px;
  font-weight: 800;
}
.hc-team-level__cta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--hot);
}
.hc-team-empty {
  text-align: center;
  padding: 20px 12px;
  border-radius: 18px;
  border: 1.5px dashed var(--line);
}

/* legacy team bits (other pages) */
.levels { display: flex; flex-direction: column; gap: 8px; }
.lvl { align-items: center; }
.lvl img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.lvl h2 { margin: 0; font-size: 16px; }
.lvl p { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: rgba(27,18,14,0.6); }
.lvl__details a {
  font-weight: 800;
  text-decoration: none;
  background: var(--ink);
  color: var(--butter);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}
.invite-row, .link-row, .stats-row { display: flex; align-items: center; gap: 8px; }
.stats-row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat__lbl { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; color: rgba(27,18,14,0.5); }
.stat__val { display: block; margin-top: 4px; font-weight: 800; }
.link-box {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  background: var(--cream);
}
.copy-btn {
  border: 2px solid var(--ink);
  background: var(--butter);
  border-radius: 12px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-core) + var(--safe-b) + 16px);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--butter);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.td-list { display: flex; flex-direction: column; gap: 10px; }
.td-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 12px 14px;
}
.td-card h2 { margin: 0 0 4px; font-size: 16px; }
.td-card p { margin: 2px 0; font-size: 13px; font-weight: 700; }
.td-empty, .rc-history__empty { text-align: center; padding: 20px 8px; }
.td-empty img, .rc-history__empty img { width: 120px; height: 120px; object-fit: cover; border-radius: 24px; margin: 0 auto 10px; border: 2px solid var(--ink); }
.money { font-weight: 800; color: var(--hot); }

/* ---- forms ---- */
.alert {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffe8e4;
  border: 1.5px solid var(--hot);
  font-weight: 800;
  font-size: 13px;
}
.alert.is-ok { background: #e7f6ea; border-color: #1f7a45; }
.field, .wf-field { display: block; margin-bottom: 10px; }
.field span, .wf-method-lbl { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.field input, .field select, .wf-input, .link-box {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.field:has(.eye) input {
  padding-right: 48px;
}
.field input[type="password"]::-ms-reveal,
.field input[type="password"]::-ms-clear {
  display: none;
}
.field { position: relative; }
.field--phone { display: flex; align-items: center; }
.field--phone__dial {
  position: absolute;
  left: 14px;
  font-weight: 800;
  z-index: 1;
}
.field--phone input { padding-left: 52px; }
.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.eye svg,
.eye-icon { width: 20px; height: 20px; }
.eye.is-open { opacity: 0.65; }
.switch { text-align: center; font-weight: 700; }
.wf-methods, .wf-quick, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.wf-method, .wf-quick__btn, .filters button {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.wf-method.is-on, .wf-quick__btn.is-on, .filters button.is-on {
  background: var(--ink);
  color: var(--butter);
}
.wf-row { display: flex; justify-content: space-between; font-weight: 800; margin: 6px 0; }
.wf-link { display: inline-block; margin-top: 10px; font-weight: 800; }
.pz-wallet-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: var(--hot);
  color: #fff;
}
.pz-wallet-hero span { display: block; font-size: 12px; font-weight: 700; opacity: 0.85; }
.pz-wallet-hero strong { font-family: var(--display); font-size: 32px; }
.pz-wallet-hero img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }

/* ---- recharge / withdraw wallet pages ---- */
.pz-page--recharge .pz-stage__scroll,
.pz-page--withdraw .pz-stage__scroll {
  padding-top: 10px;
}

.hc-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-pay-policy {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(27, 18, 14, 0.58);
}

.hc-pay-sheet {
  padding: 16px;
  border-radius: 22px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.hc-pay-sheet .wf-block__title {
  color: rgba(255, 246, 234, 0.55);
}

.hc-pay-sheet .wf-method-lbl {
  color: rgba(255, 246, 234, 0.62);
}

.hc-pay-sheet .wf-method {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  border-color: rgba(255, 246, 234, 0.28);
}

.hc-pay-sheet .wf-method.is-on {
  background: var(--butter);
  color: var(--ink);
  border-color: var(--ink);
}

.hc-pay-sheet .wf-link {
  color: var(--butter);
}

.hc-pay-sheet .wf-summary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 246, 234, 0.2);
}

.hc-pay-sheet .wf-row span:first-child {
  color: rgba(255, 246, 234, 0.65);
}

.hc-pay-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.hc-pay-chips .wf-quick__btn,
.hc-pay-chips .hc-pay-chip {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid rgba(255, 246, 234, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  cursor: pointer;
}

.hc-pay-chips .wf-quick__btn.is-on,
.hc-pay-chips .hc-pay-chip.is-on {
  background: var(--butter);
  color: var(--ink);
  border-color: var(--ink);
}

.hc-pay-custom {
  margin-top: 4px;
}

.hc-pay-custom span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, 0.55);
}

.hc-pay-custom input {
  width: 100%;
  min-height: 52px;
  padding: 8px 4px 10px;
  border: none;
  border-bottom: 2px solid var(--butter);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.hc-pay-custom input::placeholder {
  color: rgba(255, 246, 234, 0.35);
}

.hc-pay-custom input:focus {
  outline: none;
  border-bottom-color: var(--hot);
}

.hc-pay-sheet .wf-confirm {
  margin-top: 14px;
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 4px 0 #c4922a;
}

.hc-pay-sheet .wf-empty {
  color: rgba(255, 246, 234, 0.75);
}

/* ---- recharge / withdraw — step flow (hc-wf) ---- */
.hc-wf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-wf-balance {
  padding: 14px 16px;
  border-radius: 20px;
  border: 2px dashed rgba(27, 18, 14, 0.22);
  background: linear-gradient(135deg, #fff9f0 0%, #fff 55%, #ffe8d4 100%);
  box-shadow: 3px 3px 0 rgba(226, 58, 34, 0.12);
}

.hc-wf-balance__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.hc-wf-balance__lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.5);
}

.hc-wf-balance__pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
}

.hc-wf-balance__amt {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hc-wf-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-wf-card {
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--butter);
}

.hc-wf-card--empty {
  text-align: center;
}

.hc-wf-card--empty .wf-empty {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(27, 18, 14, 0.65);
}

.hc-wf-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.hc-wf-card__step {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--ink);
  color: var(--butter);
}

.hc-wf-card__title {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.hc-wf-card__sub {
  margin: 0 0 12px;
  padding-left: 38px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(27, 18, 14, 0.55);
}

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

.hc-wf-tile.wf-method {
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 12px;
}

.hc-wf-tile.wf-method.is-on {
  color: var(--ink);
  background: var(--butter);
  border-color: var(--ink);
}

.hc-wf-tile__label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  color: inherit;
}

.hc-wf-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid rgba(27, 18, 14, 0.15);
  background: #faf6ef;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.hc-wf-tile__radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(27, 18, 14, 0.35);
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.hc-wf-tile.is-on {
  border-color: var(--ink);
  background: var(--butter);
  box-shadow: 3px 3px 0 rgba(27, 18, 14, 0.15);
}

.hc-wf-tile.is-on .hc-wf-tile__radio {
  border-color: var(--ink);
  background: var(--hot);
  box-shadow: inset 0 0 0 3px var(--butter);
}

.hc-wf-inline-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hot);
  text-decoration: none;
}

.hc-wf-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hc-wf-scroll::-webkit-scrollbar {
  display: none;
}

.hc-wf-chip {
  flex-shrink: 0;
  min-width: 72px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(27, 18, 14, 0.18);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.hc-wf-chip.is-on {
  border-color: var(--ink);
  background: var(--hot);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.hc-wf-amount {
  display: block;
  margin-top: 6px;
}

.hc-wf-amount__lbl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(27, 18, 14, 0.55);
}

.hc-wf-amount__min {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(226, 58, 34, 0.12);
  color: var(--hot-deep);
}

.hc-wf-amount__box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fffdf8;
}

.hc-wf-amount__sign {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--hot);
}

.hc-wf-amount__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--display);
  font-size: clamp(24px, 6.5vw, 30px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hc-wf-amount__input::placeholder {
  color: rgba(27, 18, 14, 0.28);
}

.hc-wf-amount__input:focus {
  outline: none;
}

.hc-wf-amount__box:focus-within {
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(226, 58, 34, 0.18);
}

.hc-wf-amount__hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(27, 18, 14, 0.58);
}

.hc-wf-amount__hint strong {
  font-weight: 800;
  color: var(--hot-deep);
}

.hc-wf-receipt {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf6ef 0%, #f3ebe0 100%);
  border: 1.5px dashed rgba(27, 18, 14, 0.2);
}

.hc-wf-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(27, 18, 14, 0.65);
}

.hc-wf-receipt__row strong {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
}

.hc-wf-receipt__row--total strong {
  font-size: 18px;
  color: var(--hot-deep);
}

.hc-wf-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #ff6b52 0%, var(--hot) 55%, var(--hot-deep) 100%);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.1s ease;
}

.hc-wf-submit:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.hc-wf-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--line);
}
.rec__kind, .rc-history__code { margin: 0; font-weight: 800; }
.rec__meta, .rc-history__meta { margin: 4px 0 0; font-size: 12px; color: rgba(27,18,14,0.55); font-weight: 700; }
.rec__top { display: flex; justify-content: space-between; gap: 8px; }
.rec__amt { margin: 0; font-weight: 800; }

/* ---- calendar / help / accord ---- */
.ax-cal-head, .ax-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.ax-cal-head { font-size: 11px; font-weight: 800; color: rgba(27,18,14,0.45); margin-bottom: 6px; }
.ax-day, .ax-blank {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  background: #fff;
}
.ax-day.is-today { outline: 2px solid var(--hot); }
.ax-day.is-claimed { background: var(--butter); }
.ax-day.is-future { opacity: 0.35; }
.pz-accord details {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.pz-accord summary { font-weight: 800; cursor: pointer; }
.pz-accord p, .wf-info, .panel.help p, .pz-company-strip div {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.55;
}
.pz-company-strip { display: flex; flex-direction: column; gap: 8px; }
.pz-company-strip div {
  padding: 12px;
  background: #fff;
  border-left: 5px solid var(--hot);
  border-radius: 12px;
}
.pz-cs-grid { display: flex; flex-direction: column; gap: 8px; }
.note { font-weight: 700; }

/* ---- invite table ---- */
.ir-summary__stat { display: flex; justify-content: space-between; font-weight: 800; margin: 6px 0; }
.ir-table-wrap { overflow-x: auto; }
.ir-table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 700; }
.ir-table th, .ir-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ir-row.is-ready { background: #fff6d8; }
.ir-row.is-claimed { opacity: 0.55; }
.ir-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--cream); }
.ir-tag--ready { background: var(--butter); }
.ir-tag--done { background: #d9f5e2; }
.ir-tag--active { background: var(--blush); }
.ir-earn { color: var(--hot); font-weight: 800; }

/* ---- wheel / lucky slot machine ---- */
.pz-page--wheel {
  background:
    linear-gradient(180deg, rgba(45, 28, 14, 0.35) 0%, rgba(20, 12, 8, 0.55) 100%),
    repeating-linear-gradient(
      90deg,
      #c4a574 0,
      #c4a574 6px,
      #b8925c 6px,
      #b8925c 12px,
      #d4bc8a 12px,
      #d4bc8a 18px
    );
}
.pz-page--wheel .pz-stage__scroll { padding-top: 8px; }
.wf-block--slot {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.ax-slot__meta {
  margin: 0 0 14px;
  text-align: center;
  color: #fff7e0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.ax-slot-arena {
  position: relative;
  width: min(320px, 92vw);
  margin: 0 auto 16px;
  padding-right: 36px;
}
.ax-slot {
  position: relative;
  border-radius: 18px;
  padding: 10px 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.12) 100%),
    repeating-linear-gradient(
      90deg,
      #c9a56a 0,
      #c9a56a 5px,
      #b08848 5px,
      #b08848 10px,
      #dcc498 10px,
      #dcc498 14px
    );
  border: 3px solid #5a3200;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.ax-slot__header {
  position: relative;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #c98912;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.ax-slot__burst {
  position: absolute;
  inset: -20%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #ff8a3d 0deg 10deg,
      #ffd54f 10deg 20deg
    );
  opacity: 0.85;
  animation: ax-slot-burst 24s linear infinite;
}
@keyframes ax-slot-burst {
  to { transform: rotate(360deg); }
}
.ax-slot__star {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ax-slot__star svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.ax-slot__frame {
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe082 0%, #c98912 45%, #8a5a08 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.ax-slot__glass {
  border-radius: 10px;
  padding: 8px 6px;
  background: linear-gradient(180deg, #fffef8 0%, #e8dfd0 100%);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.18);
}
.ax-slot__reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ax-slot__reel {
  height: 76px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 2px solid #3d2810;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ax-slot__strip {
  will-change: transform;
}
.ax-slot__cell {
  height: 76px;
  display: grid;
  place-items: center;
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}
.ax-slot__cell--seven span {
  font-size: 42px;
  color: #c62828;
  text-shadow:
    0 2px 0 #5a0000,
    0 0 12px rgba(255, 80, 80, 0.35);
}
.ax-slot__cell--prize span {
  font-size: 17px;
  color: #2a1808;
  letter-spacing: -0.02em;
}
.ax-slot__shelf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd54f 0%, #c98912 100%);
  border: 2px solid #5a3200;
}
.ax-slot__pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
  cursor: default;
  padding: 0;
}
.ax-slot__pill--red { background: radial-gradient(circle at 30% 28%, #ff8a80, #d50000 65%); }
.ax-slot__pill--blue { background: radial-gradient(circle at 30% 28%, #82b1ff, #1565c0 65%); }
.ax-slot__pill--green {
  background: radial-gradient(circle at 30% 28%, #b9f6ca, #2e7d32 65%);
  cursor: pointer;
}
.ax-slot__pill--green:disabled { opacity: 0.45; cursor: not-allowed; }
.ax-slot__coin-slot {
  flex: 1;
  height: 10px;
  max-width: 72px;
  margin-left: auto;
  border-radius: 4px;
  background: #1a1208;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.65);
}
.ax-slot__mesh {
  margin-top: 10px;
  height: 88px;
  border-radius: 12px;
  border: 3px solid #c98912;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(225deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(315deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%) 0 0 / 12px 12px,
    #1a1208;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.55);
}
.ax-slot__tray {
  margin-top: 8px;
  height: 22px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #ffe082 0%, #c98912 100%);
  border: 2px solid #5a3200;
  border-top: none;
}
.ax-slot__lever {
  position: absolute;
  right: 0;
  top: 38%;
  width: 44px;
  height: 140px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform-origin: 50% 85%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ax-slot__lever:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ax-slot__lever.is-pulled {
  transform: rotate(28deg);
}
.ax-slot__lever-knob {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff8a80, #c62828 55%, #7f0000 100%);
  border: 2px solid #5a0000;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}
.ax-slot__lever-arm {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a5a08, #ffd54f 45%, #8a5a08);
  border: 1px solid #5a3200;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
}
.pz-page--wheel .wf-link {
  display: block;
  text-align: center;
  color: #ffe082;
  font-weight: 800;
}
.pz-page--wheel .panel.help {
  background: rgba(255, 255, 255, 0.92);
}

/* legacy wheel (unused on lucky wheel page) */
.ax-wheel-wrap {
  --slice: 45deg;
  position: relative;
  width: min(300px, 86vw);
  height: min(300px, 86vw);
  margin: 8px auto 16px;
}
.ax-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 4.6s cubic-bezier(0.12, 0.7, 0.08, 1);
}
.ax-wheel.is-instant { transition: none; }
.ax-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--hot);
}
.ax-wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  transform-origin: 0 0;
  transform: rotate(calc(var(--i) * var(--slice) + var(--slice) / 2)) translate(18px, -8px);
  font-size: 12px;
  font-weight: 800;
}
.ax-wheel-hub {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--butter);
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ax-wheel-hub:disabled { opacity: 0.55; cursor: not-allowed; }
.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(--line); font-weight: 800; font-size: 13px; }

/* ---- modals (shared hc-modal) ---- */
.ax-tg-modal,
.vip-modal,
.wallet-modal,
.hc-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: calc(12px + var(--safe-b));
}
.ax-tg-modal.is-open,
.vip-modal.is-open,
.wallet-modal.is-open,
.hc-modal.is-open { display: flex; }
.hc-modal__backdrop,
.ax-tg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 18, 14, 0.55);
  backdrop-filter: blur(2px);
}
.ax-tg-modal__sheet,
.vip-modal__sheet,
.wallet-modal__box,
.hc-modal__sheet {
  position: relative;
  width: min(400px, 100%);
  max-height: min(78vh, 520px);
  overflow-y: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px 22px 16px 16px;
  padding: 14px 14px 12px;
  box-shadow: 6px 6px 0 rgba(27, 18, 14, 0.25);
}
.hc-modal__sheet--compact {
  padding: 16px 14px 14px;
  text-align: center;
}
.hc-modal__head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.hc-modal__thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--ink);
}
.hc-modal__kicker,
.ax-tg-modal__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hot);
  text-align: left;
}
.hc-modal__head .hc-modal__title,
.ax-tg-modal__title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}
.hc-modal__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.hc-modal__sheet:not(.hc-modal__sheet--compact) .hc-modal__title {
  text-align: left;
}
.hc-modal__desc,
.ax-tg-modal__desc {
  margin: 0 0 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(27, 18, 14, 0.62);
}
.hc-modal__stats,
.ax-tg-modal__stats {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hc-modal__stats li,
.ax-tg-modal__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 11px;
}
.hc-modal__stats li span,
.ax-tg-modal__stats li span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(27, 18, 14, 0.45);
}
.hc-modal__stats li strong,
.ax-tg-modal__stats li strong {
  font-size: 14px;
}
.hc-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hc-modal__btn {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
}
.hc-modal__btn--primary { margin-top: 0; }
.hc-modal__btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.hc-modal__link,
.ax-tg-modal__link {
  margin: 8px 0 0;
  text-align: center;
  word-break: break-all;
  font-size: 10px;
  line-height: 1.4;
}
.hc-modal__text,
.vip-modal__text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.wallet-modal__box h2,
.wallet-modal__box p {
  margin: 0 0 8px;
}
.wallet-modal__box .wf-confirm,
.wallet-modal__box .wallet-modal__close {
  margin-top: 4px;
}
body.ax-tg-modal-open,
body.hc-modal-open { overflow: hidden; }
.pz-peso::before { content: "₱"; }

/* ---- auth ---- */
body.auth-page {
  background:
    radial-gradient(circle at 8% 12%, #2b211b 0 46px, transparent 47px),
    radial-gradient(circle at 92% 4%, #e23a22 0 28px, transparent 29px),
    radial-gradient(circle at 80% 96%, #ffc857 0 70px, transparent 71px),
    linear-gradient(165deg, #f6e4d4 0%, #efe0cf 48%, #e7d3c0 100%);
}
.auth-screen {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(27, 18, 14, 0.12);
}
.auth-top-band {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: calc(24px + var(--safe-t)) 20px 28px;
  color: var(--cream);
  background:
    radial-gradient(circle at 80% 20%, var(--hot) 0 40px, transparent 41px),
    var(--ink);
}
.auth-top-band__ring { display: none; }
.auth-logo { width: 88px; height: 88px; border-radius: 28px; object-fit: cover; border: 2px solid var(--butter); }
.auth-word {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: -0.04em;
  color: var(--cream);
}
.auth-word em { font-style: normal; color: var(--hot); }
.auth-sheet {
  flex: 1;
  margin-top: 0;
  background: transparent;
  border-radius: 0;
  padding: 8px 20px calc(32px + var(--safe-b));
  color: var(--cream);
}
.auth-sheet h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 32px;
  color: var(--cream);
}
body.auth-page .auth-sheet .ax-kicker { color: var(--butter); }
body.auth-page .auth-sheet .ax-muted { color: rgba(255, 246, 234, 0.72); }
body.auth-page .switch {
  color: rgba(255, 246, 234, 0.85);
  font-weight: 700;
}
body.auth-page .switch a { color: var(--butter); }
body.auth-page .field span { color: rgba(255, 246, 234, 0.65); }
body.auth-page .field--phone__dial { color: var(--cream); }
body.auth-page .field input {
  background: rgba(255, 246, 234, 0.08);
  border-color: rgba(255, 246, 234, 0.22);
  color: var(--cream);
  padding-right: 48px;
}
body.auth-page .field:not(:has(.eye)) input {
  padding-right: 14px;
}
body.auth-page .field input::placeholder { color: rgba(255, 246, 234, 0.4); }
body.auth-page .eye { color: var(--cream); }
body.auth-page .alert {
  background: rgba(226, 58, 34, 0.22);
  border-color: rgba(255, 200, 87, 0.45);
  color: var(--cream);
}

.miss, .err-standalone {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 40px 20px 80px;
}
.err__code {
  margin: 0;
  font-family: var(--display);
  font-size: 76px;
  line-height: 0.9;
  color: var(--hot);
}
.miss .btn, .err-standalone .btn { width: auto; min-width: 180px; margin-top: 8px; }

@media (min-width: 900px) {
  body { padding: 24px 0; }
  .tabbar { bottom: 28px; }
}
