.vip-page {
  --vip-rail-padding: 13.5%;
  background: radial-gradient(ellipse 67% 315px at 59% 215px, #2e220d, transparent 87%), var(--color-page);
}

.vip-page .vip-header { background: #191612f5; }
.vip-growth { padding-top: 18px; }
.vip-growth h2, .vip-benefits h2 { color: #fff8ef; font-size: 18px; font-weight: 500; line-height: 1.35; }
.vip-growth h2 { margin: 0 16px 9px; }

.vip-rail {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-inline: var(--vip-rail-padding);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.vip-rail::-webkit-scrollbar { display: none; }

.vip-rank-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 30px 1fr 6px 18px;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 154px;
  padding: 14px 15px 12px;
  overflow: hidden;
  border: 1px solid #c9aa6c22;
  border-radius: 16px;
  background: linear-gradient(123deg, transparent 38%, #dec6a211 38.2%, transparent 78%),
    linear-gradient(102deg, #614d3b, #2b2115 37%, #171108 82%);
  box-shadow: inset 0 1px 5px #e1b98e16;
  scroll-snap-align: center;
  color: #fbf5e9;
  cursor: pointer;
}

.vip-rank-badge { position: relative; display: grid; align-items: center; justify-self: start; min-width: 90px; }
.vip-rank-badge span {
  grid-area: 1 / 1;
  justify-self: start;
  padding: 2px 8px;
  border-radius: 5px;
  background: linear-gradient(100deg, #ffffff22, var(--vip-badge-color));
  color: white;
  font-size: 16px;
  font-weight: 750;
  line-height: 21px;
}

.vip-rank-badge img { grid-area: 1 / 1; width: 92px; height: 30px; object-fit: contain; object-position: left center; }
.vip-rank-badge:has(img:not([hidden])) span { visibility: hidden; }

.vip-current-tag {
  position: absolute;
  inset: 0 0 auto auto;
  padding: 0 6px 1px 9px;
  border-radius: 0 0 0 9px;
  background: linear-gradient(#b73f38, #7c1414);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
}

.vip-rank-watermark {
  position: absolute;
  z-index: -1;
  inset: auto 14px -18px auto;
  color: #ffedc40b;
  font-size: clamp(72px, 24vw, 96px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -5px;
}

.vip-rank-requirements { display: grid; grid-template-columns: 1fr .8fr; gap: 8px; align-self: center; margin: 2px 0 0; }
.vip-rank-requirements dt { margin-bottom: 1px; font-size: 12px; }
.vip-rank-requirements dd { margin: 0; color: #e3d8cb; font-size: clamp(13px, 4vw, 16px); font-weight: 700; font-variant-numeric: tabular-nums; }
.vip-rank-progress { height: 6px; overflow: hidden; border: 1px solid #b09b7755; border-radius: 999px; background: linear-gradient(90deg, #78665a, #3a2a1c); }
.vip-rank-progress span { display: block; width: var(--vip-progress, 0%); height: 100%; border-radius: inherit; background: #d7b479; }
.vip-rank-next { align-self: end; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }

.vip-dots { display: flex; justify-content: center; margin: 7px auto 12px; }
.vip-dots button { display: grid; width: 14px; height: 25px; place-items: center; border-radius: 5px; }
.vip-dots button::after { width: 6px; height: 6px; border-radius: 50%; background: #3c3328; content: ''; }
.vip-dots button[aria-pressed="true"]::after { background: #d2bc81; }

.vip-benefits { display: grid; gap: 22px; padding: 0 16px 22px; }
.vip-benefits h2 { margin: 0 0 9px; }
.vip-withdraw-limit {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid #64514166;
  border-radius: 12px;
  background: #211e1b;
  color: #e3c787;
  font-size: 12px;
}

.vip-withdraw-limit strong { color: #e0d5c9; font-size: 16px; font-variant-numeric: tabular-nums; }
.vip-table-frame { overflow: hidden; border: 1px solid #6a554466; border-radius: 8px; }
.vip-rate-table { width: 100%; table-layout: fixed; border-collapse: collapse; color: #fff8ef; text-align: center; }
.vip-rate-table :is(th, td) { height: 36px; padding: 5px 3px; font-size: 12px; font-weight: 400; }
.vip-rate-table thead { background: #352e23; color: #edca7c; }
.vip-rate-table thead th { font-size: 14px; }
.vip-rate-table tbody { background: #1a1713; }
.vip-rate-table tbody tr:nth-child(even) { background: #211e1b; }
.vip-rate-table tbody th { color: #edca7c; }
.vip-units { margin-top: 10px; color: #968776; font-size: 12px; }

.vip-top {
  position: fixed;
  inset: auto max(16px, calc((100% - var(--demo-width)) / 2 + 16px)) 24px auto;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #ffffff49;
  border-radius: 50%;
  background: #393737;
  color: #fff;
}

@media (max-width: 350px) {
  .vip-page { --vip-rail-padding: 10%; }
  .vip-rank-card { padding-inline: 11px; }
}
