/* CANDYAIFIESTA · Fiesta carnival UI */

html {
  width: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: #5b21b6;
}

body.ai-bot.has-tabbar {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
}

body.ai-bot.has-tabbar > .ax-app-root {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

body.ai-bot,
body.aitvou {
  --fv-purple: #5b21b6;
  --fv-purple-deep: #3b0764;
  --fv-purple-mid: #6d28d9;
  --fv-ink: #2d1b4d;
  --fv-yellow: #ffd54f;
  --fv-yellow-hot: #ffb300;
  --fv-pink: #ff6b9d;
  --fv-orange: #ff8f3c;
  --fv-green: #22c55e;
  --fv-green-deep: #15803d;
  --fv-cream: #fffef5;
  --fv-muted: rgba(255, 255, 255, 0.72);
  --fv-line: rgba(45, 27, 77, 0.35);
  --fv-outline: 3px solid var(--fv-ink);
  --fv-shadow: 0 6px 0 var(--fv-ink);
  --fv-font: system-ui, "Segoe UI", sans-serif;
  --fv-display: system-ui, "Segoe UI", sans-serif;
  --fv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  color: var(--fv-cream);
  font-family: var(--fv-font);
  font-weight: 700;
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 46%, #3b0764 100%);
}

body.ai-bot::before,
body.aitvou::before {
  content: none;
  display: none;
}

body.ai-bot .ax-app-root,
body.ai-bot .stage,
body.ai-bot .home-dash,
body.ai-bot .me-page,
body.ai-bot .hourly-page,
body.ai-bot .shop-page,
body.ai-bot .team-page,
body.ai-bot .fv-page,
body.ai-bot #vipPage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding:
    calc(8px + env(safe-area-inset-top))
    12px
    calc(16px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

body.ai-bot.has-tabbar .ax-app-root,
body.ai-bot.has-tabbar .home-dash,
body.ai-bot.has-tabbar .me-page,
body.ai-bot.has-tabbar .hourly-page,
body.ai-bot.has-tabbar .shop-page,
body.ai-bot.has-tabbar .team-page,
body.ai-bot.has-tabbar .fv-page,
body.ai-bot.has-tabbar #vipPage {
  padding-bottom: calc(var(--tabbar-space, 118px) + env(safe-area-inset-bottom, 0px));
}

body.ai-bot .ax-app-root > .home-dash,
body.ai-bot .ax-app-root > .me-page,
body.ai-bot .ax-app-root > .hourly-page,
body.ai-bot .ax-app-root > .shop-page,
body.ai-bot .ax-app-root > .team-page,
body.ai-bot .ax-app-root > .fv-page,
body.ai-bot .ax-app-root > #vipPage {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ---- Bunting ---- */
.fv-bunting {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0 -4px 10px;
  padding: 0 4px;
  overflow: hidden;
}

.fv-bunting span {
  flex: 0 0 16px;
  width: 0;
  height: 0;
  max-width: none;
  background: transparent;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid #ff6b6b;
}

.fv-bunting span:nth-child(5n + 1) { border-top-color: #ff6b6b; }
.fv-bunting span:nth-child(5n + 2) { border-top-color: #ffd54f; }
.fv-bunting span:nth-child(5n + 3) { border-top-color: #69f0ae; }
.fv-bunting span:nth-child(5n + 4) { border-top-color: #40c4ff; }
.fv-bunting span:nth-child(5n + 5) { border-top-color: #ff80ab; }

/* ---- Logo ---- */
.fv-logo {
  font-family: var(--fv-display);
  font-size: clamp(22px, 6.8vw, 34px);
  font-weight: 700;
  text-align: center;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 0 var(--fv-ink);
  margin: 4px 0 12px;
}

.fv-logo em {
  font-style: normal;
  color: var(--fv-yellow);
}

.fv-logo--img {
  margin: 6px 0 10px;
  line-height: 0;
}

/* Circular logo frame (candy-ai-fiesta-logo.png) */
.fv-logo--ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--fv-yellow);
  box-shadow:
    0 0 0 2px var(--fv-ink),
    0 6px 14px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  background: linear-gradient(165deg, #fffef5 0%, #ffe082 100%);
  padding: 4px;
  box-sizing: border-box;
}

.fv-logo--ring-lg {
  width: 96px;
  height: 96px;
  border-width: 3.5px;
  padding: 5px;
}

.fv-logo__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(45, 27, 77, 0.2);
  filter: none;
}

.fv-logo__img--sub {
  /* size comes from .fv-logo--ring */
}

.fv-subhead__brand .fv-logo--ring {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-width: 2.5px;
  padding: 3px;
}

.fv-card--hero .fv-logo--ring-lg {
  width: 104px;
  height: 104px;
}

.fv-wlt-page > .fv-subhead__brand .fv-logo--ring,
.fv-page > .fv-subhead__brand .fv-logo--ring {
  width: 84px;
  height: 84px;
}

.fv-logo--text {
  display: block;
  font-size: clamp(15px, 4.6vw, 21px);
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(45, 27, 77, 0.35);
  border: 2px solid rgba(255, 213, 79, 0.35);
  max-width: 100%;
}

.fv-subhead__brand .fv-logo--text {
  font-size: clamp(13px, 4vw, 17px);
  padding: 5px 10px;
  border-radius: 12px;
}

.fv-subhead__brand .fv-logo--img {
  margin: 0;
}

body.ai-bot.auth-page .hero .fv-logo--text {
  font-size: clamp(17px, 5.2vw, 24px);
  padding: 8px 14px;
  border-radius: 16px;
}

body.ai-bot .help details {
  border-radius: 18px;
  overflow: hidden;
}

body.ai-bot .help details summary {
  cursor: pointer;
  font-family: var(--fv-display);
  color: var(--fv-yellow);
  list-style: none;
}

body.ai-bot .help details summary::-webkit-details-marker {
  display: none;
}

body.ai-bot .help details p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fv-muted);
}

body.ai-bot .help details p a {
  color: var(--fv-yellow);
  font-weight: 800;
  text-decoration: none;
}

body.ai-bot .help-contact {
  margin-bottom: 14px;
}

/* Help hub — two Telegram cards only */
body.ai-bot.ax-help .help-hub {
  padding: 4px 0 20px;
}

body.ai-bot.ax-help .help-hub__lead {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(45, 27, 77, 0.55);
  border: 2px solid rgba(255, 213, 79, 0.35);
  border-radius: 16px;
  box-shadow: 0 3px 0 rgba(26, 10, 48, 0.85);
}

body.ai-bot.ax-help .help-hub__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.ai-bot.ax-help .help-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px 18px 18px;
  border-radius: 22px;
  border: 3px solid #2a1248;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 5px 0 #1a0a30, 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
}

body.ai-bot.ax-help .help-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #1a0a30;
}

body.ai-bot.ax-help .help-card--channel {
  background: linear-gradient(165deg, #38bdf8 0%, #2563eb 55%, #1d4ed8 100%);
}

body.ai-bot.ax-help .help-card--cs {
  background: linear-gradient(165deg, #f472b6 0%, #db2777 55%, #be185d 100%);
}

body.ai-bot.ax-help .help-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

body.ai-bot.ax-help .help-card__icon svg {
  width: 28px;
  height: 28px;
}

body.ai-bot.ax-help .help-card__tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

body.ai-bot.ax-help .help-card__title {
  font-family: var(--fv-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.ai-bot.ax-help .help-card__sub {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 260px;
}

body.ai-bot.ax-help .help-card__cta {
  margin-top: 10px;
  min-width: 148px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--fv-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a1248;
  background: linear-gradient(180deg, #fff176 0%, #ffd54f 50%, #ffb300 100%);
  border: 2px solid #2a1248;
  box-shadow: 0 3px 0 #1a0a30, inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Customer service list rows */
body.ai-bot .menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

body.ai-bot .cs-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #fff;
}

body.ai-bot .cs-line div {
  min-width: 0;
  text-align: left;
}

body.ai-bot .cs-line strong {
  display: block;
  font-family: var(--fv-display);
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

body.ai-bot .cs-line span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

body.ai-bot .cs-line > span:last-child {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--fv-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a1248;
  background: linear-gradient(180deg, #fff176, #ffb300);
  border: 2px solid #2a1248;
}

.fiesta-claim__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}

.fiesta-claim__badge::before {
  content: "CF";
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: var(--fv-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--fv-ink);
  background: linear-gradient(180deg, #ffe082, #ffd54f);
  border: 2px solid var(--fv-ink);
  box-shadow: 0 2px 0 var(--fv-ink);
}

.fiesta-claim__badge-logo {
  display: none;
}

/* ---- Cards ---- */
.fv-card {
  border-radius: 28px;
  border: var(--fv-outline);
  box-shadow: var(--fv-shadow);
  overflow: hidden;
}

.fv-card--hero {
  background: linear-gradient(165deg, #7c3aed 0%, #5b21b6 45%, #4c1d95 100%);
  padding: 14px 14px 16px;
  margin-bottom: 12px;
}

.fv-card--cash {
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 213, 79, 0.65), transparent 42%),
    linear-gradient(145deg, #ff6b9d 0%, #ff8f3c 42%, #ffd54f 100%);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  color: var(--fv-ink);
}

.fv-card--inner {
  background: rgba(45, 27, 77, 0.55);
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  margin-top: 10px;
}

/* Voucher strip */
.fv-voucher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffe082 0%, #ffd54f 50%, #ffb300 100%);
  border: var(--fv-outline);
  box-shadow: 0 4px 0 var(--fv-ink);
  color: var(--fv-ink);
}

.fv-voucher__title {
  margin: 0;
  font-family: var(--fv-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.fv-voucher__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.fv-voucher__pills span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 27, 77, 0.12);
  border: 2px solid var(--fv-ink);
}

/* Profile row */
.fv-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.fv-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--fv-display);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  color: var(--fv-ink);
  background: linear-gradient(180deg, #ffe082, #ffd54f);
  border: var(--fv-outline);
  box-shadow: 0 3px 0 var(--fv-ink);
}

.fv-profile__name {
  margin: 0;
  font-family: var(--fv-display);
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.fv-profile__meta {
  margin: 2px 0 8px;
  font-size: 11px;
  color: var(--fv-muted);
}

.fv-profile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  border: var(--fv-outline);
  font-family: var(--fv-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s var(--fv-ease);
  box-shadow: 0 4px 0 var(--fv-ink);
}

.fv-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--fv-ink);
}

.fv-btn--gold {
  color: var(--fv-ink);
  background: linear-gradient(180deg, #ffe082 0%, #ffd54f 45%, #ffb300 100%);
}

.fv-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.fv-btn--green {
  color: #fff;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #15803d 100%);
}

.fv-btn--pink {
  color: var(--fv-ink);
  background: linear-gradient(180deg, #fff 0%, #ffe082 100%);
}

/* Cash card */
.fv-cash__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fv-cash__label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.fv-cash__badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fv-green);
  color: #fff;
  border: 2px solid var(--fv-ink);
}

.fv-cash__amount {
  margin: 0 0 12px;
  font-family: var(--fv-display);
  font-size: clamp(40px, 12vw, 52px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 0 rgba(45, 27, 77, 0.35);
}

.fv-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.fv-stat-pill {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid var(--fv-ink);
}

.fv-stat-pill span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.fv-stat-pill b {
  font-family: var(--fv-display);
  font-size: 16px;
}

.fv-stats-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.fv-cash__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Home extras */
.fv-section-title {
  margin: 14px 0 8px;
  font-family: var(--fv-display);
  font-size: 14px;
  color: var(--fv-yellow);
  text-shadow: 0 2px 0 var(--fv-ink);
}

.fv-ticker {
  border-radius: 20px;
  border: var(--fv-outline);
  background: rgba(45, 27, 77, 0.65);
  box-shadow: 0 4px 0 var(--fv-ink);
  overflow: hidden;
  max-height: 160px;
}

.fv-ticker__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.fv-ticker__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fv-yellow);
  border: 2px solid var(--fv-ink);
  flex-shrink: 0;
}

.fv-ticker__track {
  animation: fv-scroll 24s linear infinite;
}

@keyframes fv-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

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

.fv-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

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

.fv-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin: 10px 0;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(120deg, rgba(255, 213, 79, 0.25), rgba(255, 107, 157, 0.2));
  border: var(--fv-outline);
  box-shadow: 0 4px 0 var(--fv-ink);
}

.fv-promo__tag {
  font-family: var(--fv-display);
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--fv-pink);
  border: 2px solid var(--fv-ink);
  color: #fff;
}

.fv-promo p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--fv-muted);
}

/* Subpage header */
.fv-subhead {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fv-subhead__brand {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 4px;
}

.fv-subhead__brand .fv-logo {
  font-size: clamp(17px, 5vw, 24px);
  margin: 0;
}

.fv-subhead__title {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  font-family: var(--fv-display);
  font-size: 15px;
  color: var(--fv-yellow);
}

.fv-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--fv-ink);
  text-decoration: none;
  background: linear-gradient(180deg, #ffe082, #ffd54f);
  border: var(--fv-outline);
  box-shadow: 0 3px 0 var(--fv-ink);
}

.fv-back svg {
  width: 22px;
  height: 22px;
}

/* Tab bar — pinned to viewport bottom (iOS-friendly) */
body.ai-bot {
  --tabbar-space: 118px;
}

body.ai-bot .tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 0 max(8px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 55%, #4c1d95 100%);
  border-top: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  overflow: visible;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body.ai-bot .tabbar__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  padding: 0 2px;
  min-height: 56px;
}

body.ai-bot .tabbar__flags {
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 12px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #ff5a5a 0 18px,
    #ffd54f 18px 36px,
    #69f0ae 36px 54px,
    #40c4ff 54px 72px,
    #ff80ab 72px 90px
  );
}

body.ai-bot .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 4px 2px 2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  -webkit-tap-highlight-color: transparent;
}

body.ai-bot .tab__label {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.ai-bot .tab svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

body.ai-bot .tabbar__tabs > .tab:nth-child(1) svg { color: #ff8f3c; }
body.ai-bot .tabbar__tabs > .tab:nth-child(2) svg { color: #40c4ff; }
body.ai-bot .tabbar__tabs > .tab:nth-child(4) svg { color: #4ade80; }
body.ai-bot .tabbar__tabs > .tab:nth-child(5) svg { color: #ff6b9d; }

body.ai-bot .tab.is-on {
  color: #fff;
}

body.ai-bot .tab--fab {
  justify-content: flex-end;
  padding-top: 0;
}

body.ai-bot .tab--fab .tab__fab {
  width: 56px;
  height: 56px;
  margin-top: -18px;
  margin-bottom: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 45%, #c084fc 0 58%, #7c3aed 59% 100%);
  border: 4px solid #ffd54f;
  box-shadow: 0 0 0 3px #5b21b6, 0 5px 0 #2d1b4d;
  color: #fff;
}

body.ai-bot .tab--fab .tab__fab svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 380px) {
  body.ai-bot {
    --tabbar-space: 112px;
  }

  body.ai-bot .tab svg {
    width: 24px;
    height: 24px;
  }

  body.ai-bot .tab__label {
    font-size: 8px;
  }

  body.ai-bot .tab--fab .tab__fab {
    width: 50px;
    height: 50px;
    margin-top: -14px;
  }
}

/* Legacy class mapping (forms, panels, pages) */
body.ai-bot h1,
body.ai-bot h2,
body.ai-bot .title {
  font-family: var(--fv-display);
  letter-spacing: 0.06em;
  margin: 0;
}

body.ai-bot a {
  color: var(--fv-yellow);
}

body.ai-bot a.fv-btn,
body.ai-bot button.fv-btn,
body.ai-bot .fv-btn {
  color: var(--fv-ink);
}

body.ai-bot a.fv-btn--ghost,
body.ai-bot .fv-btn--ghost {
  color: #fff;
}

body.ai-bot a.fv-btn--green,
body.ai-bot .fv-btn--green {
  color: #fff;
}

body.ai-bot a.fv-btn--gold,
body.ai-bot .fv-btn--gold,
body.ai-bot button.fv-btn--gold {
  color: var(--fv-ink);
  -webkit-text-fill-color: var(--fv-ink);
}

body.ai-bot .panel,
body.ai-bot .home-bento__hero,
body.ai-bot .home-bento__tile,
body.ai-bot .home-promo,
body.ai-bot .me-wallet,
body.ai-bot .me-invite,
body.ai-bot .hourly-slot,
body.ai-bot .shop-row,
body.ai-bot .pack,
body.ai-bot .team-ticket,
body.ai-bot .team-tier,
body.ai-bot .td-card,
body.ai-bot .story,
body.ai-bot .cs-line,
body.ai-bot .receipt,
body.ai-bot details {
  background: rgba(45, 27, 77, 0.72);
  border: var(--fv-outline);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--fv-ink);
}

body.ai-bot .panel,
body.ai-bot .story,
body.ai-bot details,
body.ai-bot .td-card,
body.ai-bot .receipt {
  padding: 16px;
  margin-bottom: 12px;
}

body.ai-bot .panel h2,
body.ai-bot .home-section-label,
body.ai-bot .team-levels__title,
body.ai-bot .me-earn__label,
body.ai-bot .fv-section-title {
  font-family: var(--fv-display);
  font-size: 14px;
  color: var(--fv-yellow);
  margin: 0 0 8px;
}

body.ai-bot .btn,
body.ai-bot .submit,
body.ai-bot .wf-confirm,
body.ai-bot .shop-row__buy,
body.ai-bot .vip-unlock__btn,
body.ai-bot .me-wallet__btn,
body.ai-bot .team-ticket__btn,
body.ai-bot .me-logout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  border: var(--fv-outline);
  border-radius: 16px;
  font-family: var(--fv-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fv-ink);
  cursor: pointer;
  background: linear-gradient(180deg, #ffe082, #ffd54f 50%, #ffb300);
  box-shadow: 0 4px 0 var(--fv-ink);
}

body.ai-bot .btn--red,
body.ai-bot .me-wallet__btn--out,
body.ai-bot .team-ticket__btn--ghost,
body.ai-bot .btn--ghost,
body.ai-bot .me-logout {
  color: #fff;
  background: linear-gradient(180deg, #4ade80, #22c55e 50%, #15803d);
}

body.ai-bot input,
body.ai-bot select,
body.ai-bot .wf-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: var(--fv-outline);
  background: rgba(255, 255, 255, 0.95);
  color: var(--fv-ink);
  font-size: 16px;
  font-weight: 800;
}

body.ai-bot .wf-method-lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--fv-muted);
}

body.ai-bot .alert {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 107, 157, 0.25);
  border: 2px solid #ff6b9d;
  color: #fff;
  font-weight: 800;
}

body.ai-bot .alert.is-ok {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
}

body.ai-bot .wallet-pill,
body.ai-bot .home-top__wallet,
body.ai-bot .shop-head__bal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 213, 79, 0.2);
  border: var(--fv-outline);
  color: #fff;
}

body.ai-bot .wallet-pill strong,
body.ai-bot .home-top__wallet strong {
  font-family: var(--fv-display);
  font-size: 18px;
  color: var(--fv-yellow);
}

body.ai-bot .ai-mast,
body.ai-bot .hero,
body.ai-bot .home-top,
body.ai-bot .shop-head,
body.ai-bot .team-head,
body.ai-bot .me-id,
body.ai-bot .hourly-head {
  text-align: center;
  margin-bottom: 12px;
}

body.ai-bot .ai-orb {
  display: none;
}

body.ai-bot .kicker,
body.ai-bot .home-top__eyebrow,
body.ai-bot .shop-head__eyebrow,
body.ai-bot .team-head__eyebrow,
body.ai-bot .me-id__role {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fv-yellow);
}

body.ai-bot .title,
body.ai-bot .home-top__name {
  font-size: 32px;
  color: #fff;
  text-shadow: 0 3px 0 var(--fv-ink);
}

body.ai-bot .sub,
body.ai-bot .panel__hint,
body.ai-bot .shop-lead,
body.ai-bot .team-head__sub,
body.ai-bot .me-id__phone,
body.ai-bot .empty {
  color: var(--fv-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.ai-bot .back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--fv-ink);
  text-decoration: none;
  background: linear-gradient(180deg, #ffe082, #ffd54f);
  border: var(--fv-outline);
  box-shadow: 0 3px 0 var(--fv-ink);
}

body.ai-bot .home-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.ai-bot .home-bento__hero {
  grid-column: 1 / -1;
  padding: 14px;
}

body.ai-bot .home-bento__tile {
  padding: 12px;
}

body.ai-bot .home-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.ai-bot .home-quick__tile {
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  border: var(--fv-outline);
  background: rgba(45, 27, 77, 0.55);
  box-shadow: 0 3px 0 var(--fv-ink);
}

body.ai-bot .me-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.ai-bot .me-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 12px 6px 10px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  border: var(--fv-outline);
  background: rgba(45, 27, 77, 0.55);
  box-shadow: 0 4px 0 var(--fv-ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s var(--fv-ease);
}

body.ai-bot .me-grid__item:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot .me-grid__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.ai-bot .me-grid__ico svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

body.ai-bot .me-grid__item:nth-child(1) .me-grid__ico svg { color: #ffd54f; }
body.ai-bot .me-grid__item:nth-child(2) .me-grid__ico svg { color: #40c4ff; }
body.ai-bot .me-grid__item:nth-child(3) .me-grid__ico svg { color: #4ade80; }
body.ai-bot .me-grid__item:nth-child(4) .me-grid__ico svg { color: #ff6b9d; }
body.ai-bot .me-grid__item:nth-child(5) .me-grid__ico svg { color: #ff8f3c; }
body.ai-bot .me-grid__item:nth-child(6) .me-grid__ico svg { color: #c084fc; }

body.ai-bot .me-grid__label {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 0 rgba(45, 27, 77, 0.35);
}

body.ai-bot .me-earn__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.ai-bot .me-earn__scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.ai-bot .me-earn__pill {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

body.ai-bot .me-earn__pill span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-bottom: 4px;
}

body.ai-bot .me-earn__pill b {
  display: block;
  font-family: var(--fv-display);
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.15;
  word-break: break-word;
}

body.ai-bot .shop-shelf {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.ai-bot .shop-row__tier {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fv-yellow);
  color: var(--fv-ink);
  font-family: var(--fv-display);
  font-size: 11px;
  border: 2px solid var(--fv-ink);
}

body.ai-bot .team-ticket {
  text-align: center;
  padding: 18px;
}

body.ai-bot .team-ticket__code {
  font-family: var(--fv-display);
  font-size: 28px;
  letter-spacing: 0.15em;
  color: var(--fv-yellow);
}

body.ai-bot .team-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.ai-bot .team-metrics__item {
  padding: 10px 6px;
  text-align: center;
  border-radius: 16px;
  border: var(--fv-outline);
  background: rgba(45, 27, 77, 0.55);
}

body.ai-bot .hourly-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.ai-bot .wf-quick__btn,
body.ai-bot .wf-method,
body.ai-bot .filter-rail button {
  border: var(--fv-outline);
  background: rgba(45, 27, 77, 0.65);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}

body.ai-bot .wf-quick__btn.is-on,
body.ai-bot .wf-method.is-on {
  background: var(--fv-yellow);
  color: var(--fv-ink);
}

body.ai-bot .wallet-modal,
body.ai-bot .vip-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(45, 27, 77, 0.75);
}

body.ai-bot .wallet-modal.is-open,
body.ai-bot .vip-modal.is-open {
  display: flex;
}

body.ai-bot .wallet-modal__box,
body.ai-bot .vip-modal__sheet {
  width: min(340px, 100%);
  padding: 20px;
  border-radius: 24px;
  border: var(--fv-outline);
  background: linear-gradient(165deg, #7c3aed, #4c1d95);
  box-shadow: 0 8px 0 var(--fv-ink);
  text-align: center;
}

body.ai-bot .toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fv-yellow);
  color: var(--fv-ink);
  border: var(--fv-outline);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  font-weight: 900;
}

body.ai-bot .toast.is-on {
  opacity: 1;
}

body.ai-bot.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.ai-bot.auth-page .auth-screen {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: calc(16px + env(safe-area-inset-top)) 14px 24px;
}

body.ai-bot.auth-page .hero {
  margin-bottom: 16px;
}

body.ai-bot.auth-page .panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(165deg, #ff9ec4 0%, #e879f9 42%, #7c3aed 100%);
  border: 4px solid #2a1248;
  box-shadow: 0 8px 0 #1a0a30;
}

body.ai-bot.auth-page .panel::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 70%;
  background: repeating-conic-gradient(
    from 0deg at 50% 0%,
    rgba(255, 255, 255, 0.22) 0deg 8deg,
    transparent 8deg 16deg
  );
  pointer-events: none;
}

body.ai-bot.auth-page .panel > * {
  position: relative;
  z-index: 1;
}

body.ai-bot .field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 16px;
  border: 3px solid #2a1248;
  background: #fffef8;
  box-shadow: 0 3px 0 #2a1248;
}

body.ai-bot .field__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #7c3aed;
}

body.ai-bot .field__icon svg {
  width: 22px;
  height: 22px;
}

body.ai-bot .field--phone__dial {
  flex-shrink: 0;
  font-weight: 900;
  color: #2a1248;
  font-size: 14px;
}

body.ai-bot .field--phone__sep {
  width: 1px;
  height: 22px;
  background: rgba(42, 18, 72, 0.2);
  flex-shrink: 0;
}

body.ai-bot .field input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2a1248;
}

body.ai-bot .field--password {
  padding-right: 4px;
}

body.ai-bot .field__pw-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #7c3aed;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.ai-bot .field__pw-toggle:active {
  background: rgba(124, 58, 237, 0.12);
}

body.ai-bot .field__pw-toggle svg {
  width: 22px;
  height: 22px;
}

body.ai-bot .field__pw-toggle .field__pw-eye--off {
  display: none;
}

body.ai-bot .field__pw-toggle.is-visible .field__pw-eye--open {
  display: none;
}

body.ai-bot .field__pw-toggle.is-visible .field__pw-eye--off {
  display: block;
}

/* ---- Wallet fiesta (reference UI) ---- */
.fv-wlt-page {
  padding-bottom: 8px;
}

.fv-wlt-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.fv-wlt-mini {
  padding: 12px 10px;
  border-radius: 20px;
  border: var(--fv-outline);
  box-shadow: 0 4px 0 var(--fv-ink);
  color: #fff;
}

.fv-wlt-mini--main {
  background: linear-gradient(145deg, #ff8f3c, #ff6b9d 55%, #ffd54f);
  color: var(--fv-ink);
}

.fv-wlt-mini--ref {
  background: linear-gradient(145deg, #6d28d9, #4c1d95);
}

.fv-wlt-mini span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.fv-wlt-mini b {
  font-family: var(--fv-display);
  font-size: 18px;
}

.fv-wlt-hero {
  position: relative;
  padding: 16px 14px 14px;
  margin-bottom: 10px;
  border-radius: 26px;
  border: var(--fv-outline);
  box-shadow: 0 5px 0 var(--fv-ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 213, 79, 0.75), transparent 38%),
    linear-gradient(160deg, #ff6b9d 0%, #ff8f3c 45%, #ffd54f 100%);
  color: var(--fv-ink);
  overflow: hidden;
}

.fv-wlt-hero__sun {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff9c4, #ffb300);
  border: 2px solid var(--fv-ink);
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.6);
}

.fv-wlt-hero__lbl {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fv-wlt-hero__amt {
  margin: 4px 0 10px;
  font-family: var(--fv-display);
  font-size: clamp(36px, 11vw, 46px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 0 rgba(45, 27, 77, 0.35);
}

.fv-wlt-hero__gcash {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid var(--fv-ink);
}

.fv-wlt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid var(--fv-ink);
  font-size: 11px;
  font-weight: 800;
}

.fv-wlt-row__ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(45, 27, 77, 0.15);
  border: 2px solid var(--fv-ink);
  flex-shrink: 0;
}

.fv-wlt-row b {
  margin-left: auto;
  font-family: var(--fv-display);
  font-size: 14px;
}

.fv-wlt-action-card {
  padding: 12px 12px 14px;
  margin-bottom: 12px;
  border-radius: 24px;
  border: var(--fv-outline);
  box-shadow: 0 5px 0 var(--fv-ink);
  background: linear-gradient(180deg, #ff6b9d, #e91e63 40%, #c2185b 100%);
}

.fv-wlt-action-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.fv-wlt-chip {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(45, 27, 77, 0.45);
  border: 2px solid rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fv-wlt-chip b {
  display: block;
  margin-top: 2px;
  font-family: var(--fv-display);
  font-size: 13px;
  color: var(--fv-yellow);
}

.fv-wlt-action-card__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fv-wlt-btn-withdraw {
  background: linear-gradient(180deg, #86efac, #22c55e 50%, #15803d) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 var(--fv-ink) !important;
  margin-top: 0 !important;
}

.fv-wlt-btn-pack {
  background: linear-gradient(180deg, #ffe082, #ffd54f 50%, #ffb300) !important;
  color: var(--fv-ink) !important;
  margin-top: 0 !important;
}

.fv-wlt-rainbow {
  height: 6px;
  margin: 10px -12px -14px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7);
}

.fv-wlt-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 22px;
  border: var(--fv-outline);
  box-shadow: 0 4px 0 var(--fv-ink);
  background: linear-gradient(120deg, #5eead4, #2dd4bf 45%, #14b8a6);
  color: var(--fv-ink);
}

.fv-wlt-promo strong {
  display: block;
  font-family: var(--fv-display);
  font-size: 16px;
}

.fv-wlt-promo p {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.fv-wlt-promo__bolt {
  font-size: 28px;
  flex-shrink: 0;
}

.fv-wlt-fee {
  padding: 14px 12px;
  margin-bottom: 12px;
  border-radius: 22px;
  border: var(--fv-outline);
  box-shadow: 0 4px 0 var(--fv-ink);
  background: linear-gradient(165deg, rgba(147, 197, 253, 0.45), rgba(59, 130, 246, 0.35));
  color: #fff;
}

.fv-wlt-fee__title {
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--fv-display);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.fv-wlt-fee__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fv-wlt-fee__cell {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(30, 27, 75, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.fv-wlt-fee__cell b {
  display: block;
  margin-top: 4px;
  font-family: var(--fv-display);
  font-size: 13px;
  color: var(--fv-yellow);
}

.fv-wlt-fee__hours {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(30, 27, 75, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fv-wlt-records {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 22px;
  border: var(--fv-outline);
  box-shadow: 0 4px 0 var(--fv-ink);
  background: linear-gradient(165deg, #7c3aed, #5b21b6);
}

.fv-wlt-records__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.fv-wlt-records__head span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fv-wlt-records__total {
  font-family: var(--fv-display);
  font-size: 22px;
  color: var(--fv-yellow);
}

.fv-wlt-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.fv-wlt-filter button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: var(--fv-outline);
  background: rgba(45, 27, 77, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.fv-wlt-filter button.is-on {
  background: var(--fv-yellow);
  color: var(--fv-ink);
}

.fv-wlt-history-empty {
  padding: 24px 12px;
  text-align: center;
  border-radius: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  color: var(--fv-muted);
  font-size: 12px;
  font-weight: 800;
}

.fv-wlt-payout {
  margin-bottom: 14px;
}

.fv-wlt-payout__title {
  margin: 0 0 10px;
  font-family: var(--fv-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.fv-wlt-bind {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: rgba(45, 27, 77, 0.55);
  box-shadow: 0 3px 0 var(--fv-ink);
}

.fv-wlt-bind__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  border: var(--fv-outline);
  background: #fff;
  color: var(--fv-ink);
  flex-shrink: 0;
}

.fv-wlt-bind__body {
  flex: 1;
  min-width: 0;
}

.fv-wlt-bind__body strong {
  display: block;
  font-size: 13px;
}

.fv-wlt-bind__body span {
  font-size: 11px;
  color: var(--fv-muted);
}

.fv-wlt-bind__btn {
  flex-shrink: 0;
  min-height: 36px !important;
  width: auto !important;
  padding: 8px 14px !important;
  margin-top: 0 !important;
  font-size: 10px !important;
  background: linear-gradient(180deg, #86efac, #22c55e) !important;
  color: var(--fv-ink) !important;
}

.fv-wlt-footnote {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fv-muted);
  text-align: center;
}

.fv-wlt-topup {
  scroll-margin-top: 12px;
}

/* ---- Fiesta pack buy sheet (Shop BUY NOW) ---- */
.topup-sheet__limits {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 800;
  color: rgba(42, 18, 72, 0.65);
}

.topup-sheet__alert {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #2a1248;
  background: rgba(255, 90, 90, 0.12);
  font-size: 11px;
  font-weight: 800;
  color: #7f1d1d;
}

.topup-sheet__alert[hidden] {
  display: none !important;
}

.topup-sheet__panel .wf-method-lbl {
  color: #2a1248;
}

.topup-sheet__submit {
  margin-top: 12px;
}

.fv-wlt-action-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fv-wlt-action-card__btns .fv-btn {
  flex: 1 1 calc(33% - 8px);
  min-width: 0;
}

body.fiesta-sheet-open {
  overflow: hidden;
}

.fiesta-sheet {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--fv-ease), visibility 0.28s var(--fv-ease);
}

body.ai-bot.has-tabbar .fiesta-sheet {
  padding-bottom: calc(var(--tabbar-space, 118px) + env(safe-area-inset-bottom, 0px) + 6px);
}

.fiesta-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.fiesta-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 48, 0.55);
}

.fiesta-sheet__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: min(78vh, 680px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 18px;
  border-radius: 28px 28px 22px 22px;
  border: 4px solid #2a1248;
  background: linear-gradient(180deg, #fff9e8 0%, #fff4d6 100%);
  color: #2a1248;
  box-shadow: 0 12px 40px rgba(26, 10, 48, 0.45);
  transform: translateY(110%);
  transition: transform 0.32s var(--fv-ease);
  margin: 0 auto;
}

.fiesta-sheet.is-open .fiesta-sheet__panel {
  transform: translateY(0);
}

.fiesta-sheet__title {
  margin: 0;
  font-family: var(--fv-display);
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fiesta-sheet__sub {
  margin: 6px 0 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  color: #5b21b6;
}

.fiesta-claim {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 3px solid #2a1248;
  background: linear-gradient(165deg, #ffe082 0%, #ffd54f 55%, #ffb300 100%);
  box-shadow: 0 4px 0 #9a6508;
}

.fiesta-claim__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fiesta-claim__badge {
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 12px;
  border: 2px solid #2a1248;
  background: #fff;
  font-family: var(--fv-display);
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.fiesta-claim__badge em {
  font-style: normal;
  color: #5b21b6;
  font-weight: 700;
}

.fiesta-claim__lbl {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fiesta-claim__codes {
  margin-left: auto;
  font-family: var(--fv-display);
  font-size: 14px;
}

.fiesta-claim__rows {
  margin: 0;
  display: grid;
  gap: 6px;
}

.fiesta-claim__rows div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.fiesta-claim__rows dt {
  margin: 0;
  opacity: 0.85;
}

.fiesta-claim__rows dd {
  margin: 0;
  font-weight: 900;
}

.fiesta-slots {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 3px solid #2a1248;
  background: rgba(255, 255, 255, 0.55);
}

.fiesta-slots__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fiesta-slots__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 120px;
  justify-content: flex-end;
}

.fiesta-slots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #2a1248;
  background: #fff;
}

.fiesta-slots__dot.is-used {
  background: #c084fc;
}

.fiesta-slots__status {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 900;
  color: #6d28d9;
}

.fiesta-slots__free {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  color: #15803d;
}

.fiesta-qty {
  padding: 12px;
  border-radius: 20px;
  border: 3px solid #2a1248;
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.fiesta-qty__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.fiesta-qty__free {
  color: #15803d;
  font-size: 10px;
}

.fiesta-qty__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.fiesta-qty__btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid #2a1248;
  background: #e5e7eb;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.fiesta-qty__btn--plus {
  background: linear-gradient(180deg, #ffe082, #ffb300);
}

.fiesta-qty__val {
  font-family: var(--fv-display);
  font-size: 36px;
  min-width: 48px;
  text-align: center;
}

.fiesta-qty__presets {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fiesta-qty__presets button {
  flex: 1;
  min-height: 36px;
  border-radius: 12px;
  border: 3px solid #2a1248;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.fiesta-qty__presets button.is-on {
  background: linear-gradient(180deg, #86efac, #22c55e);
}

.fiesta-qty__presets button[data-qty-max] {
  flex: 1.4;
}

.fiesta-qty__line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.fiesta-qty__line--soft b {
  color: #15803d;
}

.fiesta-qty__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffb300, #ff8f3c);
  border: 3px solid #2a1248;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.fiesta-qty__total b {
  font-family: var(--fv-display);
  font-size: 18px;
}

.fiesta-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.fiesta-pay-methods__btn {
  min-height: 42px;
  border-radius: 14px;
  border: 3px solid #2a1248;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.fiesta-pay-methods__btn.is-on {
  background: linear-gradient(180deg, #ffe082, #ffd54f);
}

.fiesta-sheet__pay {
  width: 100%;
  min-height: 48px;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 3px solid #14532d;
  background: linear-gradient(180deg, #86efac, #22c55e 55%, #15803d);
  color: #fff;
  font-family: var(--fv-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 0 #14532d;
}

.fiesta-sheet__hint {
  margin: 0 0 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #6d28d9;
  line-height: 1.45;
}

.fiesta-sheet__dismiss {
  display: block;
  width: 100%;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 900;
  color: #5b21b6;
  cursor: pointer;
  padding: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .fv-bunting span,
  .fv-ticker__track {
    animation: none;
  }
}

/* ---- Sunburst pack cards (fiesta reference) ---- */
body.ai-bot .shop-shelf,
body.ai-bot .vip-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.ai-bot .shop-row,
body.ai-bot .pack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  border-radius: 26px;
  border: 4px solid #2a1248;
  box-shadow: 0 8px 0 #1a0a30, 0 14px 24px rgba(26, 10, 48, 0.35);
  overflow: hidden;
  color: #fff;
}

body.ai-bot .shop-row::before,
body.ai-bot .pack::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 78%;
  background: repeating-conic-gradient(
    from 0deg at 50% 0%,
    rgba(255, 255, 255, 0.28) 0deg 7deg,
    transparent 7deg 14deg
  );
  pointer-events: none;
}

body.ai-bot .shop-row:nth-child(3n + 1),
body.ai-bot .pack:nth-child(3n + 1) {
  background: linear-gradient(165deg, #ff9ec4 0%, #ff5d8f 38%, #d946ef 72%, #a855f7 100%);
}

body.ai-bot .shop-row:nth-child(3n + 2),
body.ai-bot .pack:nth-child(3n + 2) {
  background: linear-gradient(165deg, #7dd3fc 0%, #38bdf8 32%, #3b82f6 68%, #6366f1 100%);
}

body.ai-bot .shop-row:nth-child(3n),
body.ai-bot .pack:nth-child(3n) {
  background: linear-gradient(165deg, #86efac 0%, #4ade80 34%, #22c55e 68%, #14b8a6 100%);
}

body.ai-bot .shop-row__main,
body.ai-bot .shop-row__buy,
body.ai-bot .shop-row__ribbon {
  position: relative;
  z-index: 1;
}

body.ai-bot .shop-row:has(.shop-row__ribbon) {
  padding-top: 34px;
}

body.ai-bot .shop-row__ribbon {
  position: absolute;
  top: 8px;
  left: -2px;
  z-index: 2;
  padding: 4px 12px 4px 14px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border: 2px solid #14532d;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 #14532d;
}

body.ai-bot .shop-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

body.ai-bot .shop-row__top h2,
body.ai-bot .pack__head {
  margin: 0;
  font-family: var(--fv-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 0 rgba(42, 18, 72, 0.45);
}

body.ai-bot .shop-row__tag,
body.ai-bot .pack .tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(42, 18, 72, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

body.ai-bot .shop-row__price {
  margin: 2px 0 10px;
  font-family: var(--fv-display);
  font-size: clamp(36px, 11vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 3px 0 rgba(42, 18, 72, 0.45),
    0 0 18px rgba(255, 255, 255, 0.25);
}

body.ai-bot .shop-row__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ai-bot .shop-row__facts li,
body.ai-bot .vip-stat {
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(42, 18, 72, 0.38);
  border: 2px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

body.ai-bot .shop-row__facts span,
body.ai-bot .vip-stat span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

body.ai-bot .shop-row__facts b,
body.ai-bot .vip-stat b {
  display: block;
  margin-top: 2px;
  font-family: var(--fv-display);
  font-size: 14px;
  color: #fff;
}

body.ai-bot .shop-row__buy,
body.ai-bot .pack .vip-unlock__btn {
  margin-top: 12px;
  min-height: 48px;
  border-radius: 999px;
  border: 3px solid #2a1248;
  background: linear-gradient(180deg, #fff176 0%, #ffd54f 42%, #ffb300 100%);
  color: #2a1248;
  box-shadow: 0 4px 0 #1a0a30, inset 0 2px 0 rgba(255, 255, 255, 0.65);
  font-size: 16px;
  letter-spacing: 0.08em;
}

body.ai-bot .shop-row__buy:disabled,
body.ai-bot .pack .vip-unlock__btn:disabled {
  filter: grayscale(0.35);
  opacity: 0.75;
}

/* Color the rest of the app the same way */
body.ai-bot .panel,
body.ai-bot .story,
body.ai-bot details,
body.ai-bot .td-card,
body.ai-bot .receipt,
body.ai-bot .hourly-slot,
body.ai-bot .cs-line,
body.ai-bot .team-tier {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.92), rgba(76, 29, 149, 0.92));
  border: 3px solid #2a1248;
}

body.ai-bot details:nth-of-type(3n + 1),
body.ai-bot .td-card:nth-child(3n + 1),
body.ai-bot .hourly-slot:nth-child(3n + 1),
body.ai-bot .receipt:nth-child(3n + 1) {
  background: linear-gradient(160deg, #ff8fb8, #e11d8a 70%);
}

body.ai-bot details:nth-of-type(3n + 2),
body.ai-bot .td-card:nth-child(3n + 2),
body.ai-bot .hourly-slot:nth-child(3n + 2),
body.ai-bot .receipt:nth-child(3n + 2) {
  background: linear-gradient(160deg, #7dd3fc, #2563eb 70%);
}

body.ai-bot details:nth-of-type(3n),
body.ai-bot .td-card:nth-child(3n),
body.ai-bot .hourly-slot:nth-child(3n),
body.ai-bot .receipt:nth-child(3n) {
  background: linear-gradient(160deg, #86efac, #059669 70%);
}

body.ai-bot .me-grid__item:nth-child(6n + 1) { background: linear-gradient(160deg, #fb7185, #e11d48); }
body.ai-bot .me-grid__item:nth-child(6n + 2) { background: linear-gradient(160deg, #38bdf8, #2563eb); }
body.ai-bot .me-grid__item:nth-child(6n + 3) { background: linear-gradient(160deg, #4ade80, #15803d); }
body.ai-bot .me-grid__item:nth-child(6n + 4) { background: linear-gradient(160deg, #fbbf24, #d97706); color: #2a1248; }
body.ai-bot .me-grid__item:nth-child(6n + 4) .me-grid__label { text-shadow: none; }
body.ai-bot .me-grid__item:nth-child(6n + 4) .me-grid__ico {
  background: rgba(42, 18, 72, 0.12);
  border-color: rgba(42, 18, 72, 0.25);
}
body.ai-bot .me-grid__item:nth-child(6n + 5) { background: linear-gradient(160deg, #c084fc, #7c3aed); }
body.ai-bot .me-grid__item:nth-child(6n) { background: linear-gradient(160deg, #f472b6, #db2777); }

body.ai-bot .fv-quick:nth-child(1) { background: linear-gradient(180deg, #fb923c, #ea580c); border-color: #7c2d12; }
body.ai-bot .fv-quick:nth-child(2) { background: linear-gradient(180deg, #38bdf8, #0284c7); border-color: #0c4a6e; }
body.ai-bot .fv-quick:nth-child(3) { background: linear-gradient(180deg, #4ade80, #16a34a); border-color: #14532d; }
body.ai-bot .fv-quick:nth-child(4) { background: linear-gradient(180deg, #f472b6, #db2777); border-color: #831843; }
body.ai-bot .fv-quick svg { color: #fff; }

body.ai-bot .home-bento__hero {
  background: linear-gradient(145deg, #ff8fb8, #f59e0b 55%, #facc15);
  color: #2a1248;
}

body.ai-bot .home-bento__tile:nth-child(2) { background: linear-gradient(160deg, #38bdf8, #4f46e5); }
body.ai-bot .home-bento__tile:nth-child(3) { background: linear-gradient(160deg, #4ade80, #0d9488); }
body.ai-bot .home-bento__tile:nth-child(4) { background: linear-gradient(160deg, #c084fc, #7c3aed); }

body.ai-bot .home-bento__hero span,
body.ai-bot .home-bento__tile span,
body.ai-bot .hourly-strip__cell span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

body.ai-bot .home-bento__hero b,
body.ai-bot .home-bento__tile b,
body.ai-bot .hourly-strip__cell strong {
  font-family: var(--fv-display);
  font-size: 18px;
  color: #fff;
}

body.ai-bot .home-bento__hero b { color: #2a1248; }

body.ai-bot .hourly-strip__cell {
  padding: 12px 8px;
  border-radius: 18px;
  border: 3px solid #2a1248;
  text-align: center;
  box-shadow: 0 4px 0 #1a0a30;
}

body.ai-bot .hourly-strip__cell:nth-child(1) { background: linear-gradient(160deg, #ff8fb8, #e11d8a); }
body.ai-bot .hourly-strip__cell:nth-child(2) { background: linear-gradient(160deg, #7dd3fc, #2563eb); }
body.ai-bot .hourly-strip__cell:nth-child(3) { background: linear-gradient(160deg, #86efac, #059669); }
body.ai-bot .hourly-strip__cell:nth-child(4) { background: linear-gradient(160deg, #fde047, #f59e0b); color: #2a1248; }
body.ai-bot .hourly-strip__cell:nth-child(4) strong { color: #2a1248; }

body.ai-bot .me-earn__pill:nth-child(5n + 1) { background: linear-gradient(160deg, #ff8fb8, #db2777); border-color: #2a1248; }
body.ai-bot .me-earn__pill:nth-child(5n + 2) { background: linear-gradient(160deg, #7dd3fc, #2563eb); border-color: #2a1248; }
body.ai-bot .me-earn__pill:nth-child(5n + 3) { background: linear-gradient(160deg, #86efac, #059669); border-color: #2a1248; }
body.ai-bot .me-earn__pill:nth-child(5n + 4) { background: linear-gradient(160deg, #fde047, #f59e0b); border-color: #2a1248; color: #2a1248; }
body.ai-bot .me-earn__pill:nth-child(5n) { background: linear-gradient(160deg, #c084fc, #7c3aed); border-color: #2a1248; }

body.ai-bot .team-metrics__item:nth-child(1) { background: linear-gradient(160deg, #ff8fb8, #e11d8a); }
body.ai-bot .team-metrics__item:nth-child(2) { background: linear-gradient(160deg, #7dd3fc, #2563eb); }
body.ai-bot .team-metrics__item:nth-child(3) { background: linear-gradient(160deg, #86efac, #059669); }

body.ai-bot .fv-card--hero {
  border: var(--fv-outline);
  border-radius: 28px;
  box-shadow: var(--fv-shadow);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 213, 79, 0.45), transparent 36%),
    linear-gradient(165deg, #a78bfa 0%, #7c3aed 42%, #5b21b6 100%);
}

/* Home — welcome hero card */
body.ai-bot.ax-home .home-dash > .fv-card--hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 14px 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 213, 79, 0.55), transparent 38%),
    radial-gradient(circle at 10% 95%, rgba(255, 107, 157, 0.4), transparent 42%),
    linear-gradient(165deg, #c4b5fd 0%, #8b5cf6 28%, #7c3aed 52%, #5b21b6 100%);
}

body.ai-bot.ax-home .fv-card--hero .fv-logo--img {
  margin-left: auto;
  margin-right: auto;
}

body.ai-bot.ax-home .fv-card--hero .fv-voucher {
  width: 100%;
  box-sizing: border-box;
}

body.ai-bot.ax-home .fv-card--hero .fv-card--inner.fv-profile {
  margin-top: 12px;
  background: rgba(26, 12, 48, 0.62);
  border: 2px solid rgba(255, 213, 79, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.ai-bot.ax-home .fv-card--hero .fv-profile__meta {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
}

body.ai-bot.ax-home .fv-card--hero .fv-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

/* ---- Team / referrals page ---- */
body.ai-bot .team-ticket--fiesta {
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(145deg, #ffe082 0%, #ffd54f 38%, #ffb300 100%);
  color: var(--fv-ink);
  text-align: center;
  padding: 16px 14px 14px;
  margin-bottom: 14px;
}

body.ai-bot .team-ticket__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(42, 18, 72, 0.12);
  border: 2px solid rgba(42, 18, 72, 0.28);
  color: var(--fv-ink);
}

body.ai-bot .team-ticket__lbl {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(42, 18, 72, 0.72);
}

body.ai-bot .team-ticket--fiesta .team-ticket__code {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: 0.18em;
  color: var(--fv-ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  -webkit-text-stroke: 0;
}

body.ai-bot .team-ticket__link {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  word-break: break-all;
  background: rgba(42, 18, 72, 0.1);
  border: 2px dashed rgba(42, 18, 72, 0.32);
  color: var(--fv-ink);
}

body.ai-bot .team-ticket__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.ai-bot .team-ticket__btns .team-ticket__btn {
  width: auto;
  margin-top: 0;
  min-height: 44px;
  font-size: 10px;
  padding: 10px 8px;
}

body.ai-bot .team-metrics {
  margin-bottom: 6px;
}

body.ai-bot .team-metrics__item span {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

body.ai-bot .team-metrics__item b {
  font-family: var(--fv-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

body.ai-bot .team-metrics__item--gold b {
  color: var(--fv-yellow);
  text-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot .team-levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

body.ai-bot .team-levels__empty {
  margin: 0;
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(45, 27, 77, 0.45);
}

body.ai-bot .team-tier {
  padding: 0;
  overflow: hidden;
}

body.ai-bot .team-tier__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 2px solid rgba(42, 18, 72, 0.35);
}

body.ai-bot .team-tier__badge {
  font-family: var(--fv-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

body.ai-bot .team-tier__link {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fv-yellow);
  text-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot .team-tier__body {
  padding: 12px 14px 14px;
}

body.ai-bot .team-tier__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.ai-bot .team-tier__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

body.ai-bot .team-tier__stat--wide {
  grid-column: 1 / -1;
}

body.ai-bot .team-tier__stat-lbl {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

body.ai-bot .team-tier__stat-val {
  font-family: var(--fv-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

body.ai-bot .team-tier__stat-val--gold {
  color: var(--fv-yellow);
  text-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot .team-tier--1 {
  background: linear-gradient(160deg, #ff8fb8, #e11d8a 72%) !important;
  border-color: #2a1248;
}

body.ai-bot .team-tier--2 {
  background: linear-gradient(160deg, #7dd3fc, #2563eb 72%) !important;
  border-color: #2a1248;
}

body.ai-bot .team-tier--3 {
  background: linear-gradient(160deg, #86efac, #059669 72%) !important;
  border-color: #2a1248;
}

body.ai-bot .team-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

body.ai-bot .td-card .rec__kind {
  margin: 0 0 4px;
  font-family: var(--fv-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

body.ai-bot .td-card .rec__meta {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

body.ai-bot .td-card .rec__meta:last-child {
  margin-bottom: 0;
}

body.ai-bot .td-card .money {
  color: var(--fv-yellow);
  font-weight: 800;
}

body.ai-bot summary {
  font-family: var(--fv-display);
  color: #fff;
  cursor: pointer;
}

body.ai-bot details p,
body.ai-bot .story p {
  color: rgba(255, 255, 255, 0.92);
}

/* ---- Daily check-in ---- */
body.ai-bot.ax-checkin .ci-hero {
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 224, 130, 0.18) 0%, rgba(45, 27, 77, 0.92) 42%);
  padding-top: 20px;
  padding-bottom: 18px;
}

body.ai-bot.ax-checkin .ci-hero__badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: var(--fv-outline);
  background: linear-gradient(160deg, #86efac, #15803d);
  color: #fff;
  box-shadow: 0 4px 0 var(--fv-ink);
}

body.ai-bot.ax-checkin .ci-hero__badge svg {
  width: 28px;
  height: 28px;
}

body.ai-bot.ax-checkin .ci-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.ai-bot.ax-checkin .ci-hero__amount {
  margin: 0 0 6px;
  font-family: var(--fv-display);
  font-size: clamp(34px, 10vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--fv-yellow);
  text-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot.ax-checkin .ci-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

body.ai-bot.ax-checkin .ci-stat {
  padding: 10px 6px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

body.ai-bot.ax-checkin .ci-stat__lbl {
  display: block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

body.ai-bot.ax-checkin .ci-stat__val {
  display: block;
  font-family: var(--fv-display);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

body.ai-bot.ax-checkin .ci-claim.is-cooldown .ci-claim__btn:disabled {
  opacity: 0.55;
  filter: grayscale(0.2);
  cursor: not-allowed;
}

body.ai-bot.ax-checkin .ci-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px dashed rgba(255, 224, 130, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

body.ai-bot.ax-checkin .ci-timer__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

body.ai-bot.ax-checkin .ci-countdown {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

body.ai-bot.ax-checkin .ci-countdown strong {
  color: var(--fv-yellow);
  font-family: var(--fv-display);
  font-weight: 900;
}

body.ai-bot.ax-checkin .ci-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

body.ai-bot.ax-checkin .ci-cal__head h2 {
  margin-bottom: 0;
}

body.ai-bot.ax-checkin .ci-cal__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

body.ai-bot.ax-checkin .ci-cal__dot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  border: 2px solid var(--fv-ink);
}

body.ai-bot.ax-checkin .ci-cal__dot--done {
  background: linear-gradient(160deg, #86efac, #15803d);
}

body.ai-bot.ax-checkin .ax-cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.ai-bot.ax-checkin .ax-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

body.ai-bot.ax-checkin .ax-blank {
  display: block;
  aspect-ratio: 1;
}

body.ai-bot.ax-checkin .ax-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--fv-display);
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

body.ai-bot.ax-checkin .ax-day.is-claimed {
  background: linear-gradient(160deg, #86efac, #15803d);
  border-color: var(--fv-ink);
  color: #fff;
  box-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot.ax-checkin .ax-day.is-today {
  border-color: var(--fv-yellow);
  box-shadow: 0 0 0 2px rgba(255, 224, 130, 0.35);
}

body.ai-bot.ax-checkin .ax-day.is-future {
  opacity: 0.38;
}

body.ai-bot.ax-checkin .ci-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.ai-bot.ax-checkin .ci-tips li {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

body.ai-bot.ax-checkin .ci-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  color: var(--fv-ink);
  background: var(--fv-yellow);
}

body.ai-bot.ax-checkin .ci-modal__icon {
  font-size: 36px;
  margin-bottom: 8px;
}

body.ai-bot.ax-checkin .wallet-modal__box h2 {
  margin: 0 0 8px;
  font-family: var(--fv-display);
  color: var(--fv-yellow);
}

body.ai-bot.ax-checkin .wallet-modal__box p {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

body.ai-bot.ax-checkin .wallet-modal__box .btn {
  margin-top: 0;
}

/* ---- Income vault (hourly) ---- */
body.ai-bot.ax-hourly .hourly-head__sub {
  text-align: center;
  margin: -4px 0 14px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--fv-muted);
}

body.ai-bot.ax-hourly .hourly-intro {
  text-align: center;
  padding-top: 18px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  background: linear-gradient(165deg, rgba(255, 224, 130, 0.16) 0%, rgba(45, 27, 77, 0.92) 48%);
}

body.ai-bot.ax-hourly .hourly-intro__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: var(--fv-outline);
  background: linear-gradient(160deg, #7dd3fc, #2563eb);
  color: #fff;
  box-shadow: 0 4px 0 var(--fv-ink);
}

body.ai-bot.ax-hourly .hourly-intro__icon svg {
  width: 26px;
  height: 26px;
}

body.ai-bot.ax-hourly .hourly-intro__tag {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

body.ai-bot.ax-hourly .hourly-intro__amount {
  margin: 0 0 6px;
  font-family: var(--fv-display);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 900;
  color: var(--fv-yellow);
  line-height: 1.1;
  text-shadow: 0 2px 0 var(--fv-ink);
}

body.ai-bot.ax-hourly .hourly-intro__amount span {
  font-size: 0.42em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: none;
}

body.ai-bot.ax-hourly .hourly-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

body.ai-bot.ax-hourly .hourly-stats .hourly-strip__cell:nth-child(4) {
  grid-column: 2;
}

body.ai-bot.ax-hourly .hourly-flash {
  margin: 0 0 12px;
  padding: 12px 14px;
  text-align: center;
  border-radius: 16px;
  border: 3px solid #15803d;
  background: linear-gradient(160deg, #86efac, #059669);
  color: #fff;
  font-family: var(--fv-display);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 0 #14532d;
}

body.ai-bot.ax-hourly .fv-section-title {
  margin-top: 4px;
}

body.ai-bot.ax-hourly .hourly-timeline {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.ai-bot.ax-hourly .hourly-slot {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
}

body.ai-bot.ax-hourly .hourly-timeline__item:nth-child(3n + 1) .hourly-slot {
  background: linear-gradient(160deg, rgba(255, 143, 184, 0.95), rgba(225, 29, 138, 0.92));
}

body.ai-bot.ax-hourly .hourly-timeline__item:nth-child(3n + 2) .hourly-slot {
  background: linear-gradient(160deg, rgba(125, 211, 252, 0.95), rgba(37, 99, 235, 0.92));
}

body.ai-bot.ax-hourly .hourly-timeline__item:nth-child(3n) .hourly-slot {
  background: linear-gradient(160deg, rgba(134, 239, 172, 0.95), rgba(5, 150, 105, 0.92));
}

body.ai-bot.ax-hourly .hourly-slot__rail {
  flex-shrink: 0;
  width: 6px;
  background: rgba(42, 18, 72, 0.35);
  border-right: 2px solid rgba(42, 18, 72, 0.45);
}

body.ai-bot.ax-hourly .hourly-slot.is-ready .hourly-slot__rail {
  background: #f59e0b;
  animation: none;
}

@keyframes hourly-rail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  body.ai-bot.ax-hourly .hourly-slot.is-ready .hourly-slot__rail {
    animation: none;
  }
}

body.ai-bot.ax-hourly .hourly-slot__body {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 16px;
}

body.ai-bot.ax-hourly .hourly-slot__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

body.ai-bot.ax-hourly .hourly-slot__title h2 {
  margin: 0 0 6px;
  font-family: var(--fv-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 0 rgba(42, 18, 72, 0.35);
}

body.ai-bot.ax-hourly .hourly-slot__status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid rgba(42, 18, 72, 0.45);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

body.ai-bot.ax-hourly .hourly-slot__status--active {
  background: rgba(255, 255, 255, 0.22);
}

body.ai-bot.ax-hourly .hourly-slot__status--completed {
  background: rgba(255, 224, 130, 0.35);
  color: var(--fv-ink);
}

body.ai-bot.ax-hourly .hourly-slot__status--expired {
  background: rgba(0, 0, 0, 0.35);
  opacity: 0.9;
}

body.ai-bot.ax-hourly .hourly-slot__timer {
  flex-shrink: 0;
  text-align: right;
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid rgba(42, 18, 72, 0.35);
  background: rgba(0, 0, 0, 0.2);
  min-width: 96px;
}

body.ai-bot.ax-hourly .hourly-slot__timer > span {
  display: block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
}

body.ai-bot.ax-hourly .hourly-next {
  display: block;
  font-family: var(--fv-display);
  font-size: 12px;
  font-weight: 900;
  color: var(--fv-yellow);
  line-height: 1.2;
}

body.ai-bot.ax-hourly .hourly-slot.is-ready .hourly-next {
  color: #fffef5;
}

body.ai-bot.ax-hourly .hourly-slot__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
  margin: 0 0 12px;
}

body.ai-bot.ax-hourly .hourly-slot__metrics > div {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.ai-bot.ax-hourly .hourly-slot__metrics dt {
  margin: 0 0 3px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.68);
}

body.ai-bot.ax-hourly .hourly-slot__metrics dd {
  margin: 0;
  font-family: var(--fv-display);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

body.ai-bot.ax-hourly .hourly-slot__bar {
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(42, 18, 72, 0.45);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

body.ai-bot.ax-hourly .hourly-slot__bar-fill,
body.ai-bot.ax-hourly .vip-card__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde047, #f59e0b);
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.45);
  transition: width 0.35s ease;
}

body.ai-bot.ax-hourly .hourly-empty {
  text-align: center;
  padding: 28px 18px 22px;
}

body.ai-bot.ax-hourly .hourly-empty__icon {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1;
}

body.ai-bot.ax-hourly .hourly-empty h2 {
  margin: 0 0 8px;
  font-family: var(--fv-display);
  font-size: 16px;
  color: var(--fv-yellow);
}

body.ai-bot.ax-hourly .hourly-empty__btn {
  margin-top: 14px;
}
