/* Fleep VIP Club — rank console + turnover ladder. Not Mood passport / not Dune workshop. */
body.fleep-ui .fleep-vip {
  --fleep-vip-ink: var(--fleep-text);
  --fleep-vip-dim: var(--fleep-text-muted);
  --fleep-vip-line: var(--fleep-border);
  --fleep-vip-panel: var(--fleep-elevated);
  --fleep-vip-sheet: var(--fleep-surface);
  --fleep-vip-accent: var(--fleep-brand);
  --fleep-vip-glow: rgba(239, 63, 73, 0.22);
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 48px;
  color: var(--fleep-vip-ink);
}

body.fleep-ui .fleep-vip__head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

body.fleep-ui .fleep-vip__kicker {
  margin: 0;
  font-family: var(--fleep-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fleep-vip-accent);
}

body.fleep-ui .fleep-vip__title {
  margin: 0;
  font-family: var(--fleep-font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

body.fleep-ui .fleep-vip__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fleep-vip-dim);
}

body.fleep-ui .fleep-vip-status {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px 24px;
  align-items: center;
  padding: 22px 24px 18px;
  background:
    linear-gradient(180deg, rgba(239, 63, 73, 0.08), transparent 42%),
    var(--fleep-vip-panel);
  border: 1px solid var(--fleep-vip-line);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.fleep-ui .fleep-vip-status__mark {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #0b0d12;
  border: 1px solid var(--fleep-border-strong);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

body.fleep-ui .fleep-vip-status__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--fleep-vip-accent);
}

body.fleep-ui .fleep-vip-status__num {
  font-family: var(--fleep-font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--fleep-text);
}

body.fleep-ui .fleep-vip-status__body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

body.fleep-ui .fleep-vip-status__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.fleep-ui .fleep-vip-status__name {
  margin: 0;
  font-family: var(--fleep-font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.fleep-ui .fleep-vip-status__cashback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(239, 63, 73, 0.45);
  border-radius: 999px;
  background: rgba(239, 63, 73, 0.1);
  color: var(--fleep-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.fleep-ui .fleep-vip-status__cashback strong {
  color: var(--fleep-vip-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

body.fleep-ui .fleep-vip-status__hint {
  margin: 0;
  font-size: 13px;
  color: var(--fleep-vip-dim);
}

body.fleep-ui .fleep-vip-status__meter {
  display: grid;
  gap: 8px;
}

body.fleep-ui .fleep-vip-status__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.fleep-ui .fleep-vip-status__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9323b, #ef3f49 55%, #ff8a90);
  box-shadow: 0 0 16px var(--fleep-vip-glow);
  transition: width 0.35s ease;
}

body.fleep-ui .fleep-vip-status__meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--fleep-text);
  letter-spacing: 0.01em;
}

body.fleep-ui .fleep-vip-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 14px 0 2px;
  list-style: none;
  border-top: 1px solid var(--fleep-vip-line);
}

body.fleep-ui .fleep-vip-rail__step {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
}

body.fleep-ui .fleep-vip-rail__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% + 8px);
  right: calc(-50% + 8px);
  height: 1px;
  background: var(--fleep-vip-line);
}

body.fleep-ui .fleep-vip-rail__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3140;
  border: 2px solid #3a4250;
  position: relative;
  z-index: 1;
}

body.fleep-ui .fleep-vip-rail__step.is-done .fleep-vip-rail__dot,
body.fleep-ui .fleep-vip-rail__step.is-now .fleep-vip-rail__dot {
  background: var(--fleep-vip-accent);
  border-color: #ff8a90;
  box-shadow: 0 0 0 4px rgba(239, 63, 73, 0.16);
}

body.fleep-ui .fleep-vip-rail__lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fleep-text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.fleep-ui .fleep-vip-rail__step.is-now .fleep-vip-rail__lbl {
  color: var(--fleep-text);
}

body.fleep-ui .fleep-vip-board {
  margin-top: 28px;
}

body.fleep-ui .fleep-vip-board__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

body.fleep-ui .fleep-vip-board__title {
  margin: 0;
  font-family: var(--fleep-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.fleep-ui .fleep-vip-board__desc {
  margin: 0;
  max-width: 36rem;
  font-size: 14px;
  color: var(--fleep-vip-dim);
}

body.fleep-ui .fleep-vip-board__list,
body.fleep-ui .fleep-vip-board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.fleep-ui .fleep-vip-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 18px 18px 16px;
  background: var(--fleep-vip-sheet);
  border: 1px solid var(--fleep-vip-line);
  border-radius: 16px;
  overflow: hidden;
}

body.fleep-ui .fleep-vip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

body.fleep-ui .fleep-vip-card__idx {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fleep-text-dim);
}

body.fleep-ui .fleep-vip-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.fleep-ui .fleep-vip-card__name {
  margin: 0;
  font-family: var(--fleep-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.fleep-ui .fleep-vip-card__state {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fleep-text-dim);
  background: rgba(255, 255, 255, 0.04);
}

body.fleep-ui .fleep-vip-card__need {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--fleep-text);
}

body.fleep-ui .fleep-vip-card__cb-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body.fleep-ui .fleep-vip-card__cb {
  margin: 0;
  font-family: var(--fleep-font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fleep-vip-accent);
  line-height: 1;
}

body.fleep-ui .fleep-vip-card__cb-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fleep-text-dim);
}

body.fleep-ui .fleep-vip-card__perks {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

body.fleep-ui .fleep-vip-card__perk {
  font-size: 13px;
  line-height: 1.35;
  color: var(--fleep-vip-dim);
}

body.fleep-ui .fleep-vip-card--reached {
  opacity: 0.78;
}

body.fleep-ui .fleep-vip-card--reached::before {
  background: rgba(32, 215, 109, 0.7);
}

body.fleep-ui .fleep-vip-card--reached .fleep-vip-card__state {
  color: var(--fleep-success);
  background: rgba(32, 215, 109, 0.12);
}

body.fleep-ui .fleep-vip-card--current {
  border-color: rgba(239, 63, 73, 0.55);
  box-shadow: 0 0 0 1px rgba(239, 63, 73, 0.18), 0 18px 36px rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(239, 63, 73, 0.1), transparent 36%),
    var(--fleep-vip-sheet);
}

body.fleep-ui .fleep-vip-card--current::before {
  background: var(--fleep-vip-accent);
}

body.fleep-ui .fleep-vip-card--current .fleep-vip-card__state {
  color: #fff;
  background: var(--fleep-vip-accent);
}

body.fleep-ui .fleep-vip-card--locked .fleep-vip-card__cb,
body.fleep-ui .fleep-vip-card--locked .fleep-vip-card__name {
  color: var(--fleep-text-muted);
}

html[data-theme="light"] body.fleep-ui .fleep-vip-status__mark {
  background: #fff;
}

html[data-theme="light"] body.fleep-ui .fleep-vip-status__track {
  background: rgba(8, 9, 13, 0.08);
}

@media (max-width: 980px) {
  body.fleep-ui .fleep-vip-board__list,
  body.fleep-ui .fleep-vip-board__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.fleep-ui .fleep-vip-status {
    grid-template-columns: 72px 1fr;
    padding: 16px;
    gap: 14px;
  }

  body.fleep-ui .fleep-vip-status__mark {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  body.fleep-ui .fleep-vip-status__num {
    font-size: 34px;
  }

  body.fleep-ui .fleep-vip-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }

  body.fleep-ui .fleep-vip-rail__step:nth-child(3)::after,
  body.fleep-ui .fleep-vip-rail__step:last-child::after {
    display: none;
  }

  body.fleep-ui .fleep-vip-board__list,
  body.fleep-ui .fleep-vip-board__grid {
    grid-template-columns: 1fr;
  }
}

/* Strip Dune workshop leftovers on Fleep surfaces */
body.fleep-ui #headerBoostIndicator,
body.fleep-ui .bp-resource-bar,
body.fleep-ui .bp-nav-btn[data-bp-section="loyalty"],
body.fleep-ui .bp-nav-btn[data-bp-section="quests"],
body.fleep-ui #bpSectionLoyalty,
body.fleep-ui #bpSectionQuests,
body.fleep-ui #pageTrophies {
  display: none !important;
}
