/* LIONEX — calm farm shell. One palette, one rhythm. */
:root {
  --lx-ink: #173024;
  --lx-muted: #5d7364;
  --lx-cream: #f7fbf4;
  --lx-card: rgba(255, 252, 246, 0.92);
  --lx-line: rgba(27, 94, 59, 0.12);
  --lx-green: #1f6b3a;
  --lx-green-deep: #144828;
  --lx-gold: #c98912;
  --lx-gold-soft: #ffe7a8;
  --lx-radius: 22px;
  --lx-font: "Nunito", system-ui, sans-serif;
  --lx-display: "Fraunces", Georgia, serif;
}

html, body { margin: 0; min-height: 100%; }
body:not(.admin-body) {
  font-family: var(--lx-font);
  color: var(--lx-ink);
  background: #cfe3c4 url("../lionex-farm.jpg") center top / cover fixed no-repeat;
}
body:not(.admin-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 251, 244, 0.55) 0%, rgba(232, 244, 226, 0.78) 42%, rgba(247, 251, 244, 0.9) 100%);
  z-index: 0;
}
.tff-phone, .admin-shell { position: relative; z-index: 1; }
.tff-phone {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
}
.tff-stage {
  padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  min-height: 100dvh;
}
body.has-tff-dock .tff-stage { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.fiesta-bunting { display: none !important; }

.lx-pagehead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 4px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  box-shadow: 0 10px 24px rgba(20, 48, 28, 0.08);
}
.lx-pagehead img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
}
.lx-pagehead h1 {
  margin: 0;
  font-family: var(--lx-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lx-pagehead p { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--lx-muted); }

.fiesta-page:has(.tff-wal-head) > .lx-pagehead,
.fiesta-page:has(.fx-team__top) > .lx-pagehead,
.fiesta-page:has(.pf-nav) > .lx-pagehead,
.fiesta-page:has(.lx-home) > .lx-pagehead,
.fiesta-page:has(.tff-info__head) > .lx-pagehead,
.fiesta-page:has(.flux-auth-hero) > .lx-pagehead { display: none; }

/* Home */
.lx-home { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.lx-top, .lx-balance, .lx-grid a, .lx-plan {
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  box-shadow: 0 12px 28px rgba(20, 48, 28, 0.08);
}
.lx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--lx-radius);
}
.lx-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lx-brand img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.lx-brand strong {
  display: block;
  font-family: var(--lx-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.lx-brand span { display: block; font-size: 12px; font-weight: 800; color: var(--lx-muted); }
.lx-tools { display: flex; gap: 8px; }
.lx-tools a, .lx-back, .tff-wal-back, .tff-info__back, .fx-team__back, .pf-nav__back {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; text-decoration: none;
  color: var(--lx-green-deep);
  background: #fff;
  border: 1px solid var(--lx-line);
}
.lx-tools svg, .lx-back svg, .tff-wal-back svg { width: 18px; height: 18px; }

.lx-balance {
  border-radius: 28px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(160deg, rgba(31, 107, 58, 0.94), rgba(20, 72, 40, 0.92)),
    url("../lionex-farm.jpg") center / cover;
  color: #f7fbf4;
  border: none;
}
.lx-balance p { margin: 0; }
.lx-balance__kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.lx-balance__amt {
  margin-top: 6px;
  font-family: var(--lx-display);
  font-size: 40px;
  line-height: 1;
}
.lx-balance__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.lx-balance__row a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: 14px; text-decoration: none; font-weight: 800;
}
.lx-balance__row svg { width: 16px; height: 16px; }
.lx-balance__row a:first-child { background: #ffe7a8; color: #3d2a04; }
.lx-balance__row a:last-child { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.22); }

.lx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-grid a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; border-radius: 18px; text-decoration: none; color: var(--lx-ink);
}
.lx-grid svg { width: 22px; height: 22px; stroke: var(--lx-green); fill: none; flex-shrink: 0; }
.lx-grid strong { display: block; font-size: 14px; }
.lx-grid span { display: block; font-size: 11px; font-weight: 700; color: var(--lx-muted); }

.lx-sec { display: flex; align-items: baseline; justify-content: space-between; }
.lx-sec h2 { margin: 0; font-family: var(--lx-display); font-size: 22px; }
.lx-sec a { color: var(--lx-green); font-weight: 800; font-size: 13px; text-decoration: none; }

.lx-plans { display: flex; flex-direction: column; gap: 10px; }
.lx-plan {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
}
.lx-plan img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.lx-plan h3 { margin: 0; font-size: 15px; }
.lx-plan__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lx-plan__price { font-weight: 800; color: var(--lx-gold); }
.lx-plan__meta { margin: 4px 0 8px; font-size: 12px; color: var(--lx-muted); font-weight: 700; }
.lx-plan__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.lx-plan__stats span { display: block; font-size: 10px; font-weight: 800; color: var(--lx-muted); text-transform: uppercase; }
.lx-plan__stats strong { font-size: 12px; }
.lx-plan button, .lx-plan .lx-owned {
  width: 100%; min-height: 38px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #2f8a4e, var(--lx-green-deep));
  color: #fff; font-weight: 800; font-family: inherit; cursor: pointer;
}
.lx-plan .lx-owned { display: grid; place-items: center; text-decoration: none; background: #e7f0e4; color: var(--lx-green-deep); }
.lx-plan button:disabled { background: #d7ddd4; color: #667; cursor: not-allowed; }

/* Bottom nav — replaced by .lx-dock */
.tff-bnav {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: min(400px, calc(100% - 20px)); z-index: 40;
}
.tff-bnav__bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px; border-radius: 22px;
  background: rgba(255, 252, 246, 0.94);
  border: 1px solid var(--lx-line);
  box-shadow: 0 12px 30px rgba(20, 48, 28, 0.16);
  backdrop-filter: blur(10px);
}
.tff-bnav__link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--lx-muted); font-size: 11px; font-weight: 800;
  padding: 6px 0; border-radius: 16px;
}
.tff-bnav__link svg { width: 22px; height: 22px; }
.tff-bnav__link.is-active { color: var(--lx-green-deep); background: #e7f6e4; }

/* Auth */
.flux-auth-screen { padding: 18px 16px 28px; }
.flux-auth-hero { text-align: center; margin-bottom: 16px; }
.flux-auth-hero__logo { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; }
.flux-auth-hero__brand {
  margin: 10px 0 0; font-family: var(--lx-display); font-size: 28px; letter-spacing: 0.06em;
}
.flux-auth-hero__brand span { color: var(--lx-gold); }
.flux-auth-hero__title { margin: 6px 0 0; font-size: 18px; }
.flux-auth-hero__sub { margin: 4px 0 0; color: var(--lx-muted); font-weight: 700; font-size: 13px; }
.flux-auth-form, .tff-sheet, .fiesta-frame__inner, .tff-info__article {
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(20, 48, 28, 0.08);
}
.fiesta-frame { margin: 8px 16px 16px; }
.tff-field { display: block; margin-bottom: 12px; }
.flux-auth-form__lbl, .tff-wal-block__lbl { display: block; font-size: 12px; font-weight: 800; margin-bottom: 6px; color: var(--lx-muted); }
.flux-auth-form__row, .tff-amount__row {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--lx-line);
}
.flux-auth-form__row svg { width: 18px; height: 18px; color: var(--lx-green); flex-shrink: 0; }
.flux-auth-form__row input, .tff-amount input, .tff-gift-input input, input, select, textarea {
  width: 100%; border: 0; background: transparent; font: inherit; color: var(--lx-ink); outline: none;
}
.tff-btn, button.tff-btn, .nv-err__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; margin-top: 8px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #2f8a4e, var(--lx-green-deep));
  color: #fff; font-weight: 800; font-family: inherit; text-decoration: none; cursor: pointer;
}
.flux-auth-foot { text-align: center; font-weight: 700; color: var(--lx-muted); }
.flux-auth-foot__link { color: var(--lx-green); font-weight: 800; }

/* Wallet / forms */
.tff-wal-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 12px; }
.tff-wal-head__center { text-align: center; }
.tff-wal-head__logo { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; }
.tff-wal-head__title { margin: 0; font-family: var(--lx-display); font-size: 20px; }
.tff-wal-head__tag { margin: 0; font-size: 12px; color: var(--lx-muted); font-weight: 700; }
.tff--wallet { padding: 8px 16px 20px; }
.tff-channels, .tff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tff-channel, .tff-chip {
  border: 1px solid var(--lx-line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font-weight: 800; font-family: inherit; color: var(--lx-ink);
}
.tff-channel.is-on, .tff-chip.is-on { background: #e7f6e4; border-color: var(--lx-green); color: var(--lx-green-deep); }
.tff-amount { display: block; margin-top: 10px; }
.tff-meta, .pf-summary, .fx-team__metrics, .fiesta-me__earn {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.fiesta-me__earn { grid-template-columns: 1fr 1fr; }
.tff-meta__item, .pf-sum, .fx-team__metric, .fiesta-me__earn-item, .fiesta-me__bal-box {
  background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 16px; padding: 12px; text-align: center;
}
.tff-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-weight: 800; font-size: 12px; }
.tff-cal .dow { color: var(--lx-muted); font-size: 10px; }
.tff-checkin-hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tff-checkin-hero__coin {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffe7a8, #c98912); color: #3d2a04; text-align: center;
}

/* Account / team / holdings */
.fiesta-me__wallet-inner, .fx-team, .pf { padding: 12px 16px; }
.fiesta-me__who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fiesta-me__avatar {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--lx-green); color: #fff; font-weight: 800;
}
.fiesta-me__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 16px; }
.fiesta-me__quick a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: 14px; text-decoration: none; font-weight: 800;
  background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-green-deep);
}
.fiesta-me__menu { list-style: none; margin: 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fiesta-me__link {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 16px;
  text-decoration: none; color: var(--lx-ink); font-weight: 800;
}
.fiesta-section { margin: 16px 16px 8px; font-family: var(--lx-display); font-size: 20px; }
.fx-team__top, .pf-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fx-team__slab, .pf-card {
  background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 20px; padding: 14px; margin-bottom: 12px;
}
.tff-info { padding: 8px 0 20px; }
.tff-info__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tff-info__title { margin: 0; font-family: var(--lx-display); }
.tff-info__lead { font-weight: 800; }
.tff-info a { color: var(--lx-green); }

/* Errors */
.nv-err { min-height: 70dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.nv-err__mark { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; }
.nv-err__brand { font-family: var(--lx-display); letter-spacing: 0.08em; margin: 10px 0 0; }
.nv-err__code { font-family: var(--lx-display); font-size: 56px; margin: 4px 0; }
.nv-err__btn { width: auto; padding: 0 22px; }

img[src*="flux-finance-logo"] { border-radius: 16px; object-fit: cover; }

/* Login / register — full-screen image only, readable text on top */
body.tff-page--flux-auth {
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  overflow: hidden;
  background: url("../lionex-farm.jpg") center center / cover no-repeat fixed;
}
body.tff-page--flux-auth::before { display: none !important; }
body.tff-page--flux-auth .tff-phone,
body.tff-page--flux-auth .tff-stage {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent !important;
}
.lx-auth {
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  overflow: hidden;
}
.lx-auth__card {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.lx-auth__logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.lx-auth__tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.lx-auth__tab {
  position: relative;
  padding: 8px 2px 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 254, 245, 0.55);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.lx-auth__tab.is-on {
  color: #ffe7a8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.35);
}
.lx-auth__tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #d8ff57, #ffe7a8);
  box-shadow: 0 0 10px rgba(255, 231, 168, 0.45);
}
.lx-auth__body { min-height: 0; }
.lx-auth .lx-field { display: block; margin-bottom: 10px; }
.lx-auth--register .lx-field { margin-bottom: 8px; }
.lx-auth .lx-field > span:not(.lx-field__box) {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 254, 245, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.45);
}
.lx-auth .lx-field em { font-style: normal; font-weight: 700; text-transform: none; opacity: 0.8; }
.lx-auth .lx-field__box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 6px 0 12px;
  border-radius: 14px;
  background: rgba(16, 36, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.lx-auth--register .lx-field__box { min-height: 42px; }
.lx-auth .lx-dial { font-size: 14px; color: #ffe7a8; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.lx-auth .lx-field__box input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fffef5;
  outline: none;
  text-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.lx-auth .lx-field__box input::placeholder {
  color: rgba(255, 254, 245, 0.55);
}
.lx-auth .lx-field__box input:-webkit-autofill,
.lx-auth .lx-field__box input:-webkit-autofill:hover,
.lx-auth .lx-field__box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fffef5;
  caret-color: #fffef5;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px rgba(16, 36, 23, 0.85) inset;
}
.lx-auth--register .lx-field__box input { height: 40px; font-size: 15px; }
.lx-field__box input::-ms-reveal,
.lx-field__box input::-ms-clear { display: none; width: 0; height: 0; }
.lx-auth .lx-eye {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffe7a8;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 0;
}
.lx-auth .lx-eye svg { width: 22px; height: 22px; flex-shrink: 0; display: none; }
.lx-auth .lx-eye .lx-eye__open { display: block; }
.lx-auth .lx-eye.is-visible .lx-eye__open { display: none; }
.lx-auth .lx-eye.is-visible .lx-eye__off { display: block; }
.lx-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f8a4e, #144828);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 72, 40, 0.35);
}
.lx-auth--register .lx-submit { min-height: 44px; margin-top: 4px; }

/* Dock */
.lx-dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(400px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 999px;
  background: #102417;
  box-shadow: 0 14px 30px rgba(16, 36, 23, 0.35);
}
.lx-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(247, 251, 244, 0.62);
  font-size: 11px;
  font-weight: 800;
}
.lx-dock__item svg { width: 22px; height: 22px; }
.lx-dock__item.is-on { color: #173024; background: #ffe7a8; }

/* Me */
.lx-me { padding: 16px 16px 110px; display: flex; flex-direction: column; gap: 12px; }
.lx-me__hero {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lx-me__hero img { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; }
.lx-me__hi { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lx-muted); }
.lx-me__phone { margin: 2px 0 0; font-family: var(--lx-display); font-size: 26px; }
.lx-me__wallet {
  padding: 16px;
  border-radius: 24px;
  color: #f7fbf4;
  background: #173024;
}
.lx-me__wallet p { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.lx-me__wallet strong { display: block; margin-top: 4px; font-family: var(--lx-display); font-size: 36px; }
.lx-me__wallet div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.lx-me__wallet a {
  display: grid; place-items: center; min-height: 42px; border-radius: 12px;
  text-decoration: none; font-weight: 800;
}
.lx-me__wallet a:first-child { background: #ffe7a8; color: #3d2a04; }
.lx-me__wallet a:last-child { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.lx-me__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lx-me__stats article {
  padding: 12px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid var(--lx-line);
}
.lx-me__stats span { display: block; font-size: 11px; font-weight: 800; color: var(--lx-muted); text-transform: uppercase; }
.lx-me__stats b { display: block; margin-top: 4px; font-size: 16px; }
.lx-me__menu { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--lx-line); background: #fffdf8; }
.lx-me__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--lx-ink);
  font-weight: 800;
  border-bottom: 1px solid var(--lx-line);
}
.lx-me__menu svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--lx-green); }
.lx-me__menu a:last-child { border-bottom: 0; }
.lx-me__out, .lx-me__out svg { color: #9a3412 !important; }

/* Holdings */
.lx-hold, .lx-team { padding: 8px 0 110px; }
.pf, .fx-team { padding: 12px 16px; }
.pf-nav, .fx-team__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-nav__back, .fx-team__back {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--lx-line); color: var(--lx-green-deep);
}
.pf-nav__back svg, .fx-team__back svg { width: 18px; height: 18px; }
.pf-nav__eyebrow, .fx-team__brand-kicker { margin: 0; font-size: 11px; font-weight: 800; color: var(--lx-muted); text-transform: uppercase; }
.pf-nav__title, .fx-team__brand-title { margin: 0; font-family: var(--lx-display); font-size: 22px; }
.pf-nav__badge, .fx-team__badge {
  margin-left: auto; padding: 6px 10px; border-radius: 999px;
  background: #173024; color: #ffe7a8; font-size: 11px; font-weight: 800;
}
.pf-summary, .fx-team__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pf-sum, .fx-team__metric, .fx-team__pass, .fx-team__ring, .pf-slot__card, .pf-alert, .pf-empty {
  background: #fffdf8; border: 1px solid var(--lx-line); border-radius: 16px; padding: 12px;
}
.pf-sum__val, .fx-team__metric-val { margin: 0; font-weight: 800; font-size: 16px; }
.pf-sum__lbl, .fx-team__metric-lbl, .fx-team__metric-sub { margin: 2px 0 0; font-size: 11px; color: var(--lx-muted); font-weight: 700; }
.pf-alert, .pf-empty { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pf-alert p, .pf-empty p { margin: 0; }
.pf-alert__main { font-weight: 800; }
.pf-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-slot__card { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.pf-ring { position: relative; width: 56px; height: 56px; }
.pf-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.pf-ring__track { fill: none; stroke: #e5efe4; stroke-width: 5; }
.pf-ring__fill { fill: none; stroke: #1f6b3a; stroke-width: 5; stroke-linecap: round; }
.pf-ring__pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pf-slot__name { margin: 0; font-size: 15px; }
.pf-slot__top { display: flex; justify-content: space-between; gap: 8px; }
.pf-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--lx-muted); }
.pf-metric strong { display: block; color: var(--lx-ink); font-size: 13px; }
.pf-slot__foot { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--lx-green); }
.pf-cta {
  display: inline-flex; margin-top: 8px; padding: 10px 14px; border-radius: 12px;
  background: #173024; color: #fff; text-decoration: none; font-weight: 800;
}
.fiesta-section { margin: 14px 0 8px; font-family: var(--lx-display); font-size: 20px; }

/* Team */
.fx-team__slab-head, .fx-team__pass-lbl, .fx-team__roster-sub, .fx-team__note { color: var(--lx-muted); font-size: 12px; font-weight: 700; }
.fx-team__pass { margin: 12px 0; text-align: center; }
.fx-team__pass-code { margin: 6px 0 10px; font-family: var(--lx-display); font-size: 32px; letter-spacing: 0.14em; color: var(--lx-green); }
.fx-team__pass-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-team__pass-btn {
  min-height: 42px; border-radius: 12px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.fx-team__pass-btn--fill { border: 0; background: #173024; color: #ffe7a8; }
.fx-team__pass-btn--line { background: #fff; border: 1px solid var(--lx-line); color: var(--lx-ink); }
.fx-team__rings { display: flex; flex-direction: column; gap: 8px; }
.fx-team__ring { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.fx-team__ring-pct { font-weight: 800; color: var(--lx-gold); }
.fx-team__ring-name, .fx-team__ring-count { margin: 0; font-weight: 800; }
.fx-team__ring-desc, .fx-team__ring-count span { display: block; margin: 0; font-size: 11px; color: var(--lx-muted); font-weight: 700; }
.fx-team__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.fx-team__seg-btn {
  min-height: 38px; border-radius: 999px; border: 1px solid var(--lx-line);
  background: #fff; font-weight: 800; font-family: inherit; cursor: pointer;
}
.fx-team__seg-btn.is-active { background: #173024; color: #ffe7a8; border-color: #173024; }
.fx-team__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--lx-line); }
.fx-team__avatar {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: #e7f3e4; font-weight: 800;
}
.fx-team__row-id, .fx-team__row-meta { margin: 0; }
.fx-team__row-meta, .fx-team__empty { color: var(--lx-muted); font-size: 12px; font-weight: 700; }
.fx-team__pill { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--lx-green); }
.fx-team__pill--muted { color: var(--lx-muted); }
.fx-team__list[hidden] { display: none; }

.lx-home--v2 .lx-top { background: #173024; color: #f7fbf4; border: 0; }
.lx-home--v2 .lx-brand span { color: rgba(247,251,244,0.7); }
.lx-home--v2 .lx-tools a { background: rgba(255,255,255,0.08); color: #ffe7a8; border-color: transparent; }

/* Sub-pages (wallet, info, deposit, withdraw, …) */
.lx-sub {
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100dvh - 96px);
  box-sizing: border-box;
}
.lx-sub__head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.lx-sub__head .lx-back {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: #ffe7a8;
}
.lx-sub__titles { min-width: 0; text-align: center; }
.lx-sub__titles strong {
  display: block;
  font-family: var(--lx-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.lx-sub__titles span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 251, 244, 0.68);
}
.lx-tools--side { justify-content: flex-end; }
.lx-tools__spacer { width: 40px; height: 40px; }
.tff-wal-side {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe7a8;
  border: 0;
  text-decoration: none;
}
.tff-wal-side svg { width: 18px; height: 18px; }
.lx-sub__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lx-info-card {
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 12px 28px rgba(20, 48, 28, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--lx-ink);
}
.lx-info-card h2 {
  margin: 18px 0 8px;
  font-family: var(--lx-display);
  font-size: 17px;
}
.lx-info-card ul { margin: 0; padding-left: 18px; }
.lx-info-card li { margin-bottom: 6px; }
.tff-info__note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #eef6ea;
  font-size: 12px;
  color: var(--lx-muted);
}
.lx-info-rows { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.lx-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lx-muted);
}
.lx-info-row a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}
.lx-support-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lx-support-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #eef6ea;
  border: 1px solid var(--lx-line);
}
.lx-support-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--lx-green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.lx-support-step h2 {
  margin: 0 0 6px;
  font-size: 15px;
}
.lx-support-step p { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lx-muted); }
.lx-support-step__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2d8a4f, var(--lx-green-deep));
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(20, 72, 40, 0.25);
}

.tff-sheet--wallet,
.tff-spin-card {
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(20, 48, 28, 0.08);
}
.tff-sub { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lx-muted); }
.tff-empty {
  padding: 14px;
  border-radius: 16px;
  background: #eef6ea;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.tff-ghost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #173024;
  color: #ffe7a8;
  text-decoration: none;
  font-weight: 800;
}
.tff-fee-card {
  margin: 10px 0;
  padding: 12px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid var(--lx-line);
  font-size: 13px;
  font-weight: 700;
}
.tff-fee-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.tff-fee-row--net { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--lx-line); font-weight: 800; }

.tff-hist-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tff-hist-filters::-webkit-scrollbar { display: none; }
.tff-hist-filter {
  flex-shrink: 0;
  border: 1px solid var(--lx-line);
  background: #fffdf8;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--lx-muted);
  cursor: pointer;
}
.tff-hist-filter.is-active {
  background: #173024;
  border-color: #173024;
  color: #ffe7a8;
}
.tff-hist-filter__count { opacity: 0.75; margin-left: 4px; }
.tff-hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tff-hist-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--lx-line);
}
.tff-hist-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tff-hist-card__kind { margin: 0; font-weight: 800; font-size: 14px; }
.tff-hist-card__amt { margin: 0; font-weight: 800; font-size: 15px; }
.tff-hist-card__amt--in { color: #15803d; }
.tff-hist-card__amt--out { color: #b45309; }
.tff-hist-card__detail, .tff-hist-card__when {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--lx-muted);
}
.tff-hist-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 18px;
  border: 1px dashed var(--lx-line);
  background: rgba(255, 255, 255, 0.5);
}
.tff-hist-empty__icon { font-size: 36px; margin-bottom: 8px; }
.tff-hist-empty__text { margin: 0; font-size: 13px; font-weight: 700; color: var(--lx-muted); }

.tff-spin-card { text-align: center; }
.tff-spin-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #173024;
  color: #ffe7a8;
  font-weight: 800;
  font-size: 13px;
}
.tff-spin-stage {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto 14px;
}
.tff-spin-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #c98912;
  z-index: 3;
}
.tff-spin-rotor {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(
    #2f8a4e 0deg 30deg,
    #ffe7a8 30deg 60deg,
    #1f6b3a 60deg 90deg,
    #f5d78e 90deg 120deg,
    #173024 120deg 150deg,
    #7fd22a 150deg 180deg,
    #c98912 180deg 210deg,
    #e7f6e4 210deg 240deg,
    #2f8a4e 240deg 270deg,
    #ffe7a8 270deg 300deg,
    #1f6b3a 300deg 330deg,
    #f5d78e 330deg 360deg
  );
  border: 6px solid #173024;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35);
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tff-spin-hub {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: #fffdf8;
  border: 4px solid #173024;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}
.tff-spin-hub img { width: 100%; height: 100%; object-fit: cover; }
.tff-spin-arm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14%;
  transform-origin: center center;
  pointer-events: none;
}
.tff-spin-lab {
  font-size: 10px;
  font-weight: 800;
  color: #173024;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.tff-spin-note { min-height: 20px; font-size: 13px; font-weight: 800; color: var(--lx-green-deep); margin: 0 0 8px; }

.fx-bank-card { display: flex; flex-direction: column; gap: 12px; }
.fx-bank-saved__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lx-line);
  font-size: 13px;
  font-weight: 700;
}
.fx-bank-saved__ch { font-weight: 800; color: var(--lx-green-deep); }
.fx-bank-saved__num { grid-column: 1 / -1; font-size: 12px; color: var(--lx-muted); }
.tff-gift-input {
  display: block;
  margin: 12px 0;
  padding: 4px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--lx-line);
}
.tff-gift-input input {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding: 12px 8px;
}
.tff-cycle { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.tff-cycle__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: #e7efe4;
  color: var(--lx-muted);
}
.tff-cycle__dot.is-done { background: #173024; color: #ffe7a8; }
.tff-cycle__dot.is-active { background: var(--lx-green); color: #fff; box-shadow: 0 0 0 3px rgba(31, 107, 58, 0.25); }
.tff-cal-wrap__lbl { margin: 0 0 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--lx-muted); }
.tff-cal .day.is-claimed { background: #173024; color: #ffe7a8; border-radius: 8px; }
.tff-cal .day.is-today { outline: 2px solid var(--lx-green); border-radius: 8px; }
.tff-btn__arrow { opacity: 0.85; }
.tff-btn:disabled { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.2); }

body.tff-page--wallet .fiesta-page,
body.tff-page--info .fiesta-page { display: none; }
.fiesta-frame { margin: 0; }
.tff--wallet { padding: 0; }

.my-inc-feed__head {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lx-muted);
}
.tff-hist-card__amt--income { color: #15803d; }

.tff-hist {
  background: var(--lx-card);
  border: 1px solid var(--lx-line);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(20, 48, 28, 0.06);
}
.tff-hist__title { margin: 0 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--lx-muted); }
.tff-hist__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lx-line);
  font-size: 13px;
  font-weight: 700;
}
.tff-hist__row:last-child { border-bottom: 0; }
.tff-hist__row b { color: var(--lx-green-deep); }
.tff-hist__empty { margin: 0; font-size: 12px; font-weight: 700; color: var(--lx-muted); }
.tff-rules {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #eef6ea;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--lx-ink);
  text-align: left;
}
