@import url("aurix-hud.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

:root {
  --ax-navy: #1a0b2e;
  --ax-navy-2: #2a1238;
  --ax-emerald: #ff8a1f;
  --ax-emerald-deep: #c2410c;
  --ax-crystal: #e9b3ff;
  --ax-gold: #ffb020;
  --ax-gold-deep: #c2410c;
  --ax-orange: #ff6a00;
  --ax-ink: #fff4e8;
  --ax-muted: rgba(255, 244, 232, 0.88);
  --ax-surface: rgba(36, 12, 48, 0.84);
  --ax-line: rgba(255, 140, 40, 0.35);
  --ax-safe-top: env(safe-area-inset-top, 0px);
  --ax-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ax-font: "Nunito", system-ui, sans-serif;
  --ax-display: "Pixelify Sans", "Nunito", system-ui, sans-serif;
  --ax-stroke: #1a0818;
  --ax-card-border: 3px solid rgba(255, 176, 32, 0.55);
  --ax-shadow-2d: 0 5px 0 rgba(0, 0, 0, 0.45);
}

body.ax-app,
body.has-tabbar,
body.ax-home,
body.ax-tasks,
body.ax-team,
body.ax-me,
body.ax-vip,
body.ax-shop,
body.ax-detail {
  margin: 0;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ax-ink);
  font-family: var(--ax-font);
  background: #1a0b2e url("aurix/aurix-cave.jpg") center top / cover no-repeat scroll;
}

body.ax-app::before,
body.has-tabbar::before,
body.ax-home::before,
body.ax-tasks::before,
body.ax-team::before,
body.ax-me::before,
body.ax-vip::before,
body.ax-shop::before,
body.ax-detail::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 8, 24, 0.35) 0%, rgba(22, 8, 24, 0.72) 55%, rgba(22, 8, 24, 0.88) 100%);
  z-index: 0;
}

.ax,
.ax-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding:
    calc(12px + var(--ax-safe-top))
    max(14px, env(safe-area-inset-right, 0px))
    calc(28px + var(--ax-safe-bottom))
    max(14px, env(safe-area-inset-left, 0px));
  min-width: 0;
}

body.has-tabbar .ax,
body.has-tabbar .ax-wrap {
  padding-bottom: 8px;
}

.ax-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ax-brand img {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  object-fit: cover;
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.ax-brand h1,
.ax-brand strong {
  margin: 0;
  font-family: var(--ax-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 var(--ax-stroke), 0 0 12px rgba(255, 140, 40, 0.35);
}

.ax-brand span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ax-gold);
}

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

.ax-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #10200f;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold) 55%, var(--ax-gold-deep));
  box-shadow: 0 4px 0 #8a5a08;
}

.ax-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--ax-line);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}

.ax-hero img {
  display: block;
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.ax-hero figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(22, 8, 24, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.ax > section {
  margin-bottom: 14px;
}

.ax > section h2 {
  margin: 0 0 10px;
  font-family: var(--ax-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 0 var(--ax-stroke);
}

.ax-title {
  margin: 0;
  flex: 1;
  font-family: var(--ax-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 0 var(--ax-stroke);
}

.ax-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  font-family: var(--ax-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.ax-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ax-balance strong {
  display: block;
  font-family: var(--ax-font);
  font-size: clamp(32px, 9vw, 38px);
  font-weight: 900;
  color: #fff3c4;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 0 #000,
    0 2px 0 var(--ax-stroke),
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 176, 32, 0.4);
}

.ax-balance span,
.ax-muted {
  color: var(--ax-muted);
  font-size: 12px;
  font-weight: 700;
}

.ax-wallet-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ax-stat {
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(36, 12, 48, 0.75);
  border: 2px solid rgba(255, 176, 32, 0.22);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.ax-stat b {
  display: block;
  font-family: var(--ax-font);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff3c4;
  text-shadow: 0 1px 0 #000, 0 2px 0 var(--ax-stroke), 0 0 10px rgba(255, 176, 32, 0.35);
}

.ax-stat span {
  font-size: 11px;
  font-weight: 800;
  color: var(--ax-muted);
}

.ax-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ax-tile {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(42, 18, 56, 0.92);
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 196, 81, 0.2);
  cursor: pointer;
}

.ax-tile:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.ax-tile img {
  grid-row: 1 / span 2;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.ax-tile strong {
  font-family: var(--ax-display);
  font-size: 17px;
  align-self: end;
}

.ax-tile span {
  font-size: 12px;
  color: var(--ax-muted);
  font-weight: 700;
  align-self: start;
}

.ax-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ax-feed article {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.ax-feed b { color: var(--ax-gold); }
.ax-back {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  text-decoration: none;
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: var(--ax-shadow-2d);
  flex-shrink: 0;
  touch-action: manipulation;
  cursor: pointer;
}

.ax-back:active {
  transform: scale(0.96);
}

.ax-back svg { width: 24px; height: 24px; }

.ax-illu {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 14px;
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.ax-illu--sq {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 22px;
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.ax-btn,
.wf-confirm,
.submit,
.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  color: #10200f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd7a1, var(--ax-emerald) 45%, var(--ax-emerald-deep));
  box-shadow: 0 4px 0 #9a3412;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
}

.ax-btn:active:not(:disabled),
.wf-confirm:active:not(:disabled),
.submit:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #9a3412;
}

.ax-btn:disabled,
.wf-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ax-btn--gold { background: linear-gradient(180deg, #ffe7a3, var(--ax-gold) 50%, var(--ax-orange)); box-shadow: 0 4px 0 #8a4b10; color: #2a1604; }
.ax-btn--ghost {
  background: rgba(0, 0, 0, 0.22);
  color: var(--ax-gold);
  border: 2px solid rgba(255, 176, 32, 0.4);
  box-shadow: none;
}

.alert,
#paymentAlert,
#redeemAlert,
#formNote {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 90, 70, 0.18);
  color: #ffd0c8;
  font-size: 13px;
  font-weight: 800;
}

.alert.is-ok,
#redeemAlert.is-ok { background: rgba(31, 191, 122, 0.18); color: #d8ffe9; }

.wf-block,
.panel.help,
.invite-card,
.stats-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.panel:not(.help),
.panel.help {
  background: var(--ax-surface);
  border: var(--ax-card-border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--ax-shadow-2d);
}

.invite-card,
.stats-card {
  background: var(--ax-surface);
  border: var(--ax-card-border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--ax-shadow-2d);
}

.ax-card-2d {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(36, 12, 48, 0.88);
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.ax-card-2d > h2 {
  margin: 0 0 8px;
  font-family: var(--ax-display);
  font-size: 20px;
  text-shadow: 0 2px 0 var(--ax-stroke);
}

.ax-card-2d--menu {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.ax-card-2d--menu li {
  list-style: none;
}

.me-grid.ax-card-2d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.me-menu.ax-card-2d {
  padding: 10px 10px 6px;
}

.me-menu.ax-card-2d a:last-child {
  margin-bottom: 0;
}

.me-grid.ax-card-2d .me-cell {
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 176, 32, 0.15);
}

.tasks-panel.ax-card-2d {
  background: var(--ax-surface);
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
  padding: 14px;
}

.tab {
  flex-direction: column !important;
  height: calc(72px - 8px) !important;
  font-size: 10px !important;
  gap: 4px !important;
}
.tabbar {
  height: calc(72px + var(--ax-safe-bottom)) !important;
}
.tab__icons {
  width: 38px !important;
  height: 38px !important;
}
.tab__icon {
  width: 38px !important;
  height: 38px !important;
}

.wf-block {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#walletShell,
.ax-wrap main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.wf-block__title,
.rc-history-wrap__title { margin: 0; font-size: 16px; font-weight: 900; }
.wf-block__tag,
.wf-method-lbl,
.wf-balance__lbl { color: var(--ax-muted); font-size: 12px; font-weight: 800; }
.wf-balance {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 10px;
  margin: 10px 0;
}
.wf-balance__lbl {
  flex: 1 1 auto;
  min-width: 0;
}
.wf-balance__val {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(22px, 6.5vw, 28px);
  line-height: 1.1;
  font-family: var(--ax-font);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff3c4;
  text-align: right;
  text-shadow: 0 1px 0 #000, 0 2px 0 var(--ax-stroke), 0 0 10px rgba(255, 176, 32, 0.35);
}
.wf-empty {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ax-muted);
  overflow-wrap: anywhere;
}
.wf-methods,
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.wf-method,
.filters button,
.tasks-tab,
.copy-btn {
  border: 1px solid rgba(233, 179, 255, 0.35);
  background: rgba(22, 8, 24, 0.45);
  color: var(--ax-ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  touch-action: manipulation;
  cursor: pointer;
}

.wf-method:active,
.tasks-tab:active,
.task-dl:active {
  transform: scale(0.97);
}
.wf-method.is-on,
.filters button.is-on,
.tasks-tab.is-on,
.tab.is-active {
  background: var(--ax-gold);
  color: #2a1604;
  border-color: transparent;
}
.wf-input,
.field input,
.field select,
.wf-input--box {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: white;
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}
.field { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; position: relative; }
.field span,
.field .dial { font-size: 12px; font-weight: 800; color: var(--ax-gold); width: 100%; }
.field .dial, .field .dial-bar { width: auto; }
.field input, .field select { flex: 1 1 160px; }
.rc-history li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.wf-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 8px;
  font-weight: 800;
}
.wf-row strong {
  min-width: 0;
  max-width: 100%;
  text-align: right;
}
.wf-info {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--ax-muted);
  line-height: 1.45;
}
.wf-info p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wf-info svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--ax-crystal); }
.wf-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}
.wf-limits__tile {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ax-line);
  text-align: center;
}
.wf-limits__tile--accent {
  border-color: rgba(255, 207, 77, 0.45);
  background: linear-gradient(160deg, rgba(255, 207, 77, 0.12), rgba(0, 0, 0, 0.28));
}
.wf-limits__lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ax-muted);
  margin-bottom: 4px;
}
.wf-limits__val {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--ax-gold);
  line-height: 1.1;
}
.wf-limits__tile--accent .wf-limits__val { color: #ffe082; }
.hud-page .ax-illu {
  max-height: clamp(88px, 24vw, 132px);
  margin-bottom: 10px;
}
.hud-page .wf-block__title {
  margin-bottom: 10px;
}
.wf-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  width: 100%;
}
.wf-quick__btn {
  width: 100%;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--ax-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ax-cream);
  font-family: inherit;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.wf-quick__btn:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}
.wf-quick__btn.is-on,
.wf-quick__btn:active {
  border-color: rgba(255, 207, 77, 0.55);
  background: rgba(255, 207, 77, 0.14);
  color: var(--ax-gold);
  transform: scale(0.98);
}
.wf-info strong { color: var(--ax-gold); font-weight: 900; }
.wf-link { display: inline-block; margin-top: 8px; color: var(--ax-crystal); font-weight: 800; font-size: 13px; }
.wallet-modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}
.wallet-modal.is-open,
.vip-modal.is-open { display: flex; }
.wallet-modal__box,
.vip-modal__sheet {
  width: min(340px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: #2a1238;
  border: 1px solid var(--ax-line);
  text-align: center;
}

/* Compact Halloween Telegram bulletin (dashboard) */
body.ax-tg-modal-open { overflow: hidden; }
.ax-tg-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.ax-tg-modal.is-open { display: flex; }
.ax-tg-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 106, 0, 0.22), transparent 70%),
    rgba(8, 2, 18, 0.78);
  backdrop-filter: blur(4px);
}
.ax-tg-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  max-height: min(420px, calc(100dvh - 28px));
  overflow: auto;
  padding: 14px 14px 12px;
  border-radius: 18px;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(255, 140, 40, 0.14) 0%, rgba(36, 12, 48, 0.96) 42%, rgba(18, 6, 28, 0.98) 100%);
  border: var(--ax-card-border);
  box-shadow:
    var(--ax-shadow-2d),
    0 0 28px rgba(255, 106, 0, 0.18),
    inset 0 1px 0 rgba(255, 244, 232, 0.12);
}
.ax-tg-modal__ornament {
  position: relative;
  height: 36px;
  margin-bottom: 2px;
}
.ax-tg-modal__moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 176, 32, 0.45);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.ax-tg-modal__spark {
  position: absolute;
  top: 4px;
  font-size: 10px;
  color: var(--ax-gold);
  opacity: 0.85;
  animation: ax-tg-spark 2.4s ease-in-out infinite;
}
.ax-tg-modal__spark--1 { left: 22%; animation-delay: 0.2s; }
.ax-tg-modal__spark--2 { right: 22%; animation-delay: 0.9s; }
@keyframes ax-tg-spark {
  0%, 100% { opacity: 0.35; transform: translateY(0) scale(0.9); }
  50% { opacity: 1; transform: translateY(-3px) scale(1.05); }
}
.ax-tg-modal__kicker {
  margin: 0 0 4px;
  font-family: var(--ax-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 176, 32, 0.9);
}
.ax-tg-modal__title {
  margin: 0 0 6px;
  font-family: var(--ax-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ax-gold);
  text-shadow: 0 2px 0 var(--ax-stroke);
  line-height: 1.2;
}
.ax-tg-modal__desc {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ax-muted);
}
.ax-tg-modal__stats {
  list-style: none;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 140, 40, 0.22);
  display: grid;
  gap: 6px;
}
.ax-tg-modal__stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 244, 232, 0.78);
}
.ax-tg-modal__stats strong {
  font-family: var(--ax-display);
  font-size: 12px;
  color: var(--ax-gold);
}
.ax-tg-modal__join {
  width: 100%;
  min-height: 42px;
  margin-bottom: 6px;
  font-size: 10px;
}
.ax-tg-modal__link {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 800;
  word-break: break-all;
  line-height: 1.35;
}
.ax-tg-modal__close {
  width: 100%;
  min-height: 38px;
  font-size: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .ax-tg-modal__spark { animation: none; }
}
.vip-modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}
.btn--ghost { background: transparent; color: var(--ax-gold); box-shadow: none; border: 1px solid var(--ax-gold); }
.btn--sm-row { display: flex; gap: 8px; }

.tasks-shell { position: relative; z-index: 1; }
.tasks-reset {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 138, 61, 0.16); font-weight: 800;
}
.tasks-reset.is-hidden { display: none; }
.tasks-reset svg { width: 24px; height: 24px; }
.tasks-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tasks-stats__cell {
  padding: 12px; border-radius: 16px; background: rgba(36, 12, 48, 0.82);
}
.tasks-stats__cell span { display: block; font-size: 11px; color: var(--ax-muted); font-weight: 800; }
.tasks-stats__cell strong { font-size: 22px; color: var(--ax-gold); }
.tasks-panel { background: var(--ax-surface); border-radius: 22px; padding: 12px; }
.tasks-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.task-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.task-row__thumb img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; border: 2px solid rgba(255,176,32,0.35); }
.task-row__title { margin: 0; font-weight: 900; font-size: 14px; }
.task-row__sub { margin: 4px 0 0; font-size: 12px; color: var(--ax-muted); font-weight: 700; }
.task-row__reward { color: var(--ax-emerald); }
.task-dl {
  border: 0; border-radius: 12px; min-height: 36px; padding: 0 10px;
  font-weight: 900; background: var(--ax-gold); color: #2a1604;
}
.task-done-tag { font-size: 11px; font-weight: 900; color: var(--ax-emerald); }
.task-row__progress { margin-top: 6px; }
.task-row__progress-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.task-row__progress-fill { height: 100%; width: 0; background: var(--ax-crystal); }
.tasks-empty, .empty, .td-empty { text-align: center; color: var(--ax-muted); font-weight: 800; }
.tasks-toast, .toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(12px);
  opacity: 0; pointer-events: none; z-index: 70;
  background: #2a1238; color: white; border-radius: 999px; padding: 8px 14px; font-weight: 800;
}
.tasks-toast.is-on, .toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.vip-shell { position: relative; z-index: 1; width: min(440px, 100%); margin: 0 auto; padding: 14px; }
.shop-head { margin-bottom: 10px; }
.shop-head .vip-head { margin: 4px 0; }
.shop-balance { color: var(--ax-gold); }
.vip-head { margin: 0 0 12px; font-family: var(--ax-display); font-size: 28px; text-shadow: 0 2px 0 var(--ax-stroke); }
.vip-card { margin-bottom: 14px; padding: 14px; border-radius: 22px; background: var(--ax-surface); border: var(--ax-card-border); box-shadow: var(--ax-shadow-2d); }
.vip-card__tag { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 900; color: var(--ax-gold); }
.vip-card__body { display: grid; grid-template-columns: 108px 1fr; gap: 12px; }
.vip-card__thumb img { width: 108px; height: 108px; object-fit: cover; border-radius: 18px; border: 2px solid rgba(255,255,255,0.12); }
.vip-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; padding: 3px 0; }
.vip-stat span:last-child {
  color: #ffe082;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.vip-stat--green span:last-child { color: #9dffab; }
.vip-unlock__btn { flex-direction: column; gap: 2px; line-height: 1.15; }
.vip-unlock__btn span { font-size: 11px; }
.vip-unlock { margin-top: 12px; }
.vip-hourly-foot {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 176, 32, 0.22);
}
.vip-hourly-foot__timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.vip-hourly-foot__lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--ax-muted);
  letter-spacing: 0.03em;
}
.vip-hourly-foot .hourly-next {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #ffe082;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.shop-head__sub { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.vip-card__progress {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255, 176, 32, 0.15);
}
.vip-card__progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f57c00, #ffe082);
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.35);
  transition: width 0.35s ease;
}
.vip-empty__cta { display: block; width: fit-content; margin: 12px auto 0; text-align: center; }

.team-shell { position: relative; z-index: 1; width: min(440px, 100%); margin: 0 auto; padding: 14px; }
.invite-row, .link-row { display: flex; gap: 8px; align-items: center; }
.invite-code, .link-box {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 12px;
  background: rgba(0,0,0,0.28); font-weight: 800; word-break: break-all; font-size: 13px;
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(233, 179, 255, 0.15); color: white;
  border: 2px solid rgba(233, 179, 255, 0.35);
}
.share-btn svg { width: 22px; height: 22px; }
.stats-row { display: grid; gap: 8px; margin-bottom: 8px; }
.stats-row--2 { grid-template-columns: 1fr 1fr; }
.stats-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.stat__lbl { display: block; font-size: 10px; color: var(--ax-muted); font-weight: 800; }
.stat__val {
  font-family: var(--ax-font);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff3c4;
  text-shadow: 0 1px 0 #000, 0 2px 0 var(--ax-stroke);
}
.levels { display: flex; flex-direction: column; gap: 10px; }
.lvl {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center;
  padding: 14px; border-radius: 20px; background: rgba(36, 12, 48, 0.82);
  border: 2px solid rgba(255, 176, 32, 0.2);
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.lvl img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.lvl h2 { margin: 0; font-family: var(--ax-display); font-size: 16px; }
.lvl p { margin: 0; font-size: 11px; color: var(--ax-muted); font-weight: 700; }
.pct, .income { font-weight: 900; color: var(--ax-emerald); text-align: right; }
.lvl__details a { color: var(--ax-gold); font-weight: 900; font-size: 12px; }

.td-wrap { position: relative; z-index: 1; width: min(440px, 100%); margin: 0 auto; padding: 14px; }
.td-header, .me-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.td-card, .rec {
  padding: 12px; border-radius: 16px; margin-bottom: 8px;
  background: rgba(36, 12, 48, 0.82); border: 1px solid rgba(255,255,255,0.06);
}
.td-card h2, .rec__kind { margin: 0; font-size: 14px; }
.td-card p, .rec__meta { margin: 4px 0 0; font-size: 12px; color: var(--ax-muted); font-weight: 700; }
.money, .rec__amt { color: var(--ax-gold); font-weight: 900; }
.rec__top { display: flex; justify-content: space-between; gap: 8px; }
.td-empty img { width: 160px; height: 160px; object-fit: cover; border-radius: 20px; }

.me-wrap { position: relative; z-index: 1; width: min(440px, 100%); margin: 0 auto; padding: 14px; }
.me-profile { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.me-avatar { width: 88px; height: 88px; border-radius: 24px; object-fit: cover; border: var(--ax-card-border); box-shadow: var(--ax-shadow-2d); }
.me-name { margin: 0; font-family: var(--ax-display); font-size: 20px; text-shadow: 0 2px 0 var(--ax-stroke); }
.me-code { margin: 4px 0 0; font-size: 12px; color: var(--ax-muted); font-weight: 800; }
.me-copy {
  border: 0; border-radius: 999px; padding: 4px 8px; font-weight: 900;
  background: var(--ax-gold); color: #2a1604;
}
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.me-cell { padding: 10px; border-radius: 16px; background: rgba(36, 12, 48, 0.82); }
.me-cell__val { margin: 0; font-weight: 900; color: var(--ax-gold); }
.me-cell__lbl { margin: 2px 0 0; font-size: 11px; color: var(--ax-muted); font-weight: 800; }
.me-menu { list-style: none; margin: 0; padding: 0; }
.me-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; margin-bottom: 10px; border-radius: 18px;
  text-decoration: none; color: inherit; font-weight: 800; font-size: 15px;
  background: rgba(36, 12, 48, 0.82);
  border: 2px solid rgba(255, 176, 32, 0.18);
  box-shadow: 0 3px 0 rgba(0,0,0,0.32);
  touch-action: manipulation;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.me-menu a:active {
  transform: scale(0.99);
  opacity: 0.92;
}
.me-menu__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  border: 2px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.me-menu__icon svg { width: 22px; height: 22px; }
.me-menu__chev { width: 20px; height: 20px; }

.auth-screen {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  background: #160818 center top / cover no-repeat;
}
.auth-screen--login {
  background-image: linear-gradient(180deg, rgba(22, 8, 24, 0.2), rgba(22, 8, 24, 0.92)), url("aurix/aurix-login.jpg");
}
.auth-screen--register {
  background-image: linear-gradient(180deg, rgba(22, 8, 24, 0.15), rgba(22, 8, 24, 0.92)), url("aurix/aurix-register.jpg");
}
body.auth-page {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ax-ink);
  font-family: var(--ax-font);
}
.auth-sheet {
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  padding:
    calc(20px + var(--ax-safe-top))
    max(18px, env(safe-area-inset-right, 0px))
    calc(24px + var(--ax-safe-bottom))
    max(18px, env(safe-area-inset-left, 0px));
  border-radius: 0;
  background: rgba(22, 8, 24, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-logo { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; margin-bottom: 8px; border: var(--ax-card-border); box-shadow: var(--ax-shadow-2d); }
.auth-sheet h1 {
  margin: 6px 0 8px;
  font-family: var(--ax-display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  text-shadow: 0 3px 0 var(--ax-stroke);
}
.auth-sheet .field { max-width: 440px; width: 100%; margin-left: auto; margin-right: auto; }
.auth-sheet form,
.auth-sheet .switch,
.auth-sheet .alert { max-width: 440px; width: 100%; margin-left: auto; margin-right: auto; }
.eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: white; width: 36px; height: 36px;
}
.eye svg { width: 18px; height: 18px; display: block; }
.eye .eye-off { display: none; }
.eye.is-open .eye-on { display: none; }
.eye.is-open .eye-off { display: block; }
.switch { text-align: center; font-weight: 800; }
.switch a { color: var(--ax-gold); }
.dial-bar { margin: 0 6px; opacity: 0.4; }

/* Login / register — +63 inside one phone field (not a separate row) */
.auth-sheet .field--phone {
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 0 12px 0 10px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 196, 77, 0.42);
  background: rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
}
.auth-sheet .field--phone__dial {
  flex-shrink: 0;
  align-self: center;
  width: auto !important;
  font-size: 14px;
  font-weight: 800;
  color: var(--ax-gold);
  letter-spacing: 0.02em;
}
.auth-sheet .field--phone__sep {
  flex-shrink: 0;
  align-self: center;
  width: 1px;
  height: 22px;
  margin: 0 10px;
  background: rgba(255, 140, 40, 0.55);
  opacity: 1;
}
.auth-sheet .field--phone input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 46px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-sheet .field--phone input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 700;
}
.auth-sheet .field--phone:focus-within {
  border-color: rgba(255, 212, 120, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 196, 77, 0.15);
}
.auth-sheet .field--phone input:focus {
  outline: none;
}
.help p, .panel.help p { font-size: 13px; line-height: 1.5; font-weight: 700; }
.help h2, .panel.help h2 { margin: 14px 0 4px; font-size: 15px; color: var(--ax-gold); }
.cs-list { display: flex; flex-direction: column; gap: 8px; }
.cs-line {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 12px; border-radius: 16px; text-decoration: none; color: inherit;
  background: rgba(0,0,0,0.25);
}
.cs-line strong { display: block; }
.cs-line span { font-size: 12px; color: var(--ax-muted); font-weight: 800; }
.note a { color: var(--ax-crystal); }

.tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: rgba(12, 4, 24, 0.97) !important;
  border: none !important;
  border-top: 2px solid rgba(255, 184, 0, 0.35) !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45) !important;
}
.tab {
  flex-direction: column !important;
  height: calc(72px - 8px) !important;
  font-size: 9px !important;
  color: rgba(247, 243, 232, 0.9) !important;
  gap: 4px !important;
  background: transparent !important;
  font-family: "Pixelify Sans", "Nunito", system-ui, sans-serif !important;
  text-decoration: none !important;
}
.tab.is-on {
  flex: 1 !important;
  width: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ax-gold) !important;
}
.tab.is-on .tab__icon--active { opacity: 1 !important; }
.tab.is-on .tab__icon--idle { opacity: 0 !important; }
.tab span { line-height: 1.05; text-align: center; }
.tab__label { line-height: 1.05; white-space: nowrap; letter-spacing: 0.02em; text-decoration: none !important; }
@media (hover: hover) {
  .tab:hover { background: transparent !important; }
}

@media (max-width: 480px) {
  body.ax-app,
  body.has-tabbar,
  body.ax-home,
  body.ax-tasks,
  body.ax-team,
  body.ax-me,
  body.ax-vip,
  body.ax-shop,
  body.ax-detail {
    background-attachment: scroll;
  }

  .panel.help {
    padding: 12px;
  }
}

@media (min-width: 900px) {
  body.ax-app, body.has-tabbar {
    background-attachment: scroll;
  }
  .ax, .ax-wrap, .vip-shell, .team-shell, .me-wrap, .td-wrap { padding-top: 28px; }
}

.ax-banner-2d {
  position: relative;
  margin: 0 0 14px;
  border-radius: 22px;
  overflow: hidden;
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.ax-banner-2d img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ax-banner-2d figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--ax-display);
  font-size: 13px;
  font-weight: 600;
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  border: 2px solid rgba(0, 0, 0, 0.2);
}


.ax-shortcuts-head {
  padding-bottom: 10px;
}

.ax-shortcuts-head .ax-muted {
  margin: 0;
}

.ax-wallet-card .ax-balance {
  align-items: flex-start;
}

.td-empty img { width: 180px; height: 180px; object-fit: cover; border-radius: 22px; border: var(--ax-card-border); }

.eye {
  width: 44px;
  height: 44px;
}
.eye svg { width: 22px; height: 22px; }

.help h2, .panel.help h2 {
  font-family: var(--ax-display);
  font-size: 17px;
  text-shadow: 0 1px 0 var(--ax-stroke);
}

/* ---- Me page (redesigned layout) ---- */
.me-page {
  padding:
    calc(8px + var(--ax-safe-top))
    max(12px, env(safe-area-inset-right, 0px))
    calc(12px + var(--ax-safe-bottom))
    max(12px, env(safe-area-inset-left, 0px));
}

.me-id {
  margin-bottom: 14px;
}

.me-id__card {
  text-align: center;
  padding: 18px 16px 16px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 140, 40, 0.22), transparent 55%),
    rgba(28, 8, 36, 0.92);
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.me-id__avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 10px;
}

.me-id__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 176, 32, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.me-id__rank {
  position: absolute;
  right: -4px;
  bottom: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--ax-display);
  font-size: 11px;
  font-weight: 600;
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  border: 2px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.me-id__name {
  margin: 0 0 4px;
  font-family: var(--ax-display);
  font-size: clamp(22px, 6vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 0 var(--ax-stroke);
  word-break: break-word;
}

.me-id__tag {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ax-crystal);
}

.me-id__invite {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.32);
  border: 2px dashed rgba(255, 176, 32, 0.45);
  text-align: left;
}

.me-id__invite-lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

.me-id__invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.me-id__invite-row strong {
  font-family: var(--ax-display);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--ax-gold);
  text-shadow: 0 2px 0 var(--ax-stroke);
}

.me-id__copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: var(--ax-display);
  font-size: 13px;
  font-weight: 600;
  color: #2a1604;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.me-id__copy:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.me-wallet {
  margin-bottom: 16px;
}

.me-wallet__inner {
  padding: 18px 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.35) 0%, rgba(42, 18, 56, 0.95) 48%, rgba(22, 8, 24, 0.98) 100%);
  border: var(--ax-card-border);
  box-shadow: var(--ax-shadow-2d);
}

.me-wallet__lbl {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 244, 232, 0.75);
}

.me-wallet__amt {
  margin: 0 0 14px;
  font-family: var(--ax-font);
  font-size: clamp(34px, 10vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #fff3c4;
  text-shadow:
    0 1px 0 #000,
    0 2px 0 var(--ax-stroke),
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 176, 32, 0.45);
}

.me-wallet__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.me-wallet__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--ax-display);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.me-wallet__btn--out {
  color: #fff4e8;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.me-wallet__btn--in {
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold) 55%, var(--ax-orange));
}

.me-wallet__btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.me-scroll {
  margin-bottom: 18px;
}

.me-scroll__title {
  margin: 0 0 10px;
  font-family: var(--ax-display);
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 0 var(--ax-stroke);
}

.me-scroll__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 0 4px;
  margin: 0;
}

.me-pill {
  min-width: 0;
  width: 100%;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(36, 12, 48, 0.88);
  border: 2px solid rgba(255, 176, 32, 0.22);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.me-pill--accent {
  border-color: rgba(233, 179, 255, 0.45);
  background: linear-gradient(160deg, rgba(233, 179, 255, 0.15), rgba(36, 12, 48, 0.92));
}

.me-pill__lbl {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ax-muted);
}

.me-pill__val {
  display: block;
  font-family: var(--ax-font);
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff3c4;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 0 #000, 0 2px 0 var(--ax-stroke), 0 0 10px rgba(255, 176, 32, 0.35);
}

.me-hub__head {
  margin: 0 0 12px;
  font-family: var(--ax-display);
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 0 var(--ax-stroke);
}

.me-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.me-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 8px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(36, 12, 48, 0.9);
  border: 2px solid rgba(255, 176, 32, 0.25);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.32);
  touch-action: manipulation;
}

.me-tile:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.32);
}

.me-tile__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #2a1604;
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.me-tile__icon svg {
  width: 26px;
  height: 26px;
}

.me-tile__lbl {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: var(--ax-ink);
}

.me-tile--ghost {
  border-style: dashed;
  opacity: 0.92;
}

.me-foot {
  padding-bottom: 8px;
}

.me-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--ax-display);
  font-size: 15px;
  font-weight: 600;
  color: #ffb4a8;
  background: rgba(255, 80, 60, 0.12);
  border: 2px solid rgba(255, 120, 90, 0.45);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

.me-logout:active {
  transform: translateY(2px);
}

/* ---- Check-in calendar & lucky wheel (HUD pages) ---- */
.ax-cal-head,
.ax-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.ax-cal-head span {
  font-size: 10px;
  font-weight: 800;
  color: var(--ax-muted);
}

.ax-day,
.ax-blank {
  aspect-ratio: 1;
  border-radius: 10px;
}

.ax-day {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.ax-day.is-claimed {
  background: linear-gradient(180deg, #ffe7a3, var(--ax-gold));
  color: #2a1604;
}

.ax-day.is-today {
  outline: 2px solid var(--ax-gold);
}

.ax-day.is-future {
  opacity: 0.35;
}

.ax-wheel-wrap {
  position: relative;
  width: min(300px, 88vw);
  height: min(300px, 88vw);
  margin: 12px auto 8px;
}

.ax-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid var(--ax-gold);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

.ax-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #2a1238;
  box-shadow:
    0 0 0 4px rgba(255, 176, 32, 0.55),
    var(--ax-shadow-2d),
    inset 0 0 20px rgba(0, 0, 0, 0.28);
  transition: transform 4.6s cubic-bezier(0.12, 0.72, 0.08, 1);
}

.ax-wheel.is-instant {
  transition: none;
}

.ax-wheel-label {
  position: absolute;
  left: 50%;
  top: 0;
  width: 58px;
  height: 50%;
  margin-left: -29px;
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--i) * var(--slice)));
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.ax-wheel-label b {
  display: inline-block;
  font-weight: 900;
  transform: rotate(calc(var(--i) * var(--slice) * -1));
}

.ax-wheel-hub {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 0;
  border-radius: 50%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #2a1604;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ax-gold) 42%, #c2410c);
  box-shadow: 0 5px 0 #8a4b10, inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.ax-wheel-hub:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ax-spin-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ax-spin-log li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.ax-spin-log time {
  color: var(--ax-muted);
  font-weight: 700;
}

.ax-countdown {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ax-gold);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .ax-wheel {
    transition-duration: 0.01s;
  }
}

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

  .me-tile {
    min-height: 88px;
  }
}
