/* ============================================================
   VegasBet — VIP Club Page CSS
   Redesign (Claude Design "VegasBet VIP") — external classes,
   no inline styles, no blue. Purple accents + metal crests.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Page wrapper ───────────────────────────────────────────── */
.vip-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 8px 72px;
  font-family: 'Manrope', 'Inter', sans-serif;
  color: #e9e6f0;

  --vip-panel: linear-gradient(180deg, #1e1e23, #161619);
  --vip-border: rgba(124, 58, 237, 0.18);
  --vip-idle: #8884aa;
  --vip-lilac: #c084fc;
  --vip-heading: 'Space Grotesk', 'Inter', sans-serif;
}

.vip-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Scroll-in animation (JS toggles .visible) ──────────────── */
.vip-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(.16, 1, .3, 1), transform 0.6s cubic-bezier(.16, 1, .3, 1);
}
.vip-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Crests (shared) ────────────────────────────────────────── */
.vip-crest { display: block; }
.vip-crest--sm { width: 30px; height: 34px; }
.vip-crest--md { width: 40px; height: 45px; }
.vip-crest--lg { width: 66px; height: 74px; }
.vip-crest--dim { opacity: .85; }
.vip-ladder-crest--bronze { filter: drop-shadow(0 6px 16px rgba(240, 176, 120, .35)); }
.vip-ladder-crest--diamond { opacity: .95; filter: drop-shadow(0 6px 16px rgba(168, 85, 247, .35)); }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.vip-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vip-idle);
  margin-bottom: 26px;
}
.vip-breadcrumb-link { color: var(--accent); text-decoration: none; transition: color .2s; }
.vip-breadcrumb-link:hover { color: var(--vip-lilac); }
.vip-breadcrumb-sep { color: #5c5668; font-weight: 700; }
.vip-breadcrumb-current { color: #cdc7dd; }

/* ── Section heads ──────────────────────────────────────────── */
.vip-section { margin-top: 60px; }

.vip-section-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
}
.vip-section-icon { width: 24px; height: 24px; flex-shrink: 0; }
.vip-section-title {
  font-family: var(--vip-heading);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: #fff;
}
.vip-section-sub {
  margin: -18px 0 30px;
  font-size: 15px;
  color: var(--vip-idle);
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.vip-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: linear-gradient(135deg, rgba(30, 18, 46, 0.95), rgba(20, 14, 28, 0.9) 55%, rgba(24, 10, 26, 0.92));
  box-shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.4);
  padding: 44px 46px;
}

.vip-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.vip-hero-glow--1 {
  top: -140px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(153, 0, 153, 0.28), transparent 65%);
}
.vip-hero-glow--2 {
  bottom: -160px;
  left: 30%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.20), transparent 65%);
}

.vip-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}

.vip-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #c9a2ff;
  margin-bottom: 20px;
}
.vip-hero-badge svg { width: 14px; height: 14px; }

.vip-hero-heading {
  font-family: var(--vip-heading);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 14px;
  color: #fff;
}
.vip-hero-heading-grad {
  background: linear-gradient(90deg, #c084fc, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c084fc;
}
.vip-hero-desc {
  margin: 0 0 30px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: #9c96b3;
}

/* Progress card */
.vip-progress-card {
  max-width: 560px;
  background: rgba(13, 13, 13, 0.55);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 18px;
  padding: 20px 22px;
}
.vip-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.vip-progress-tier {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vip-progress-tier--next { text-align: right; }
.vip-progress-tier-labels { display: flex; flex-direction: column; line-height: 1.2; }
.vip-progress-tier-cap { font-size: 12px; color: var(--vip-idle); font-weight: 600; }
.vip-progress-tier-name { font-size: 17px; font-weight: 800; color: #fff; }
.vip-progress-tier-name--muted { color: #cfd6e2; }

.vip-progress-bar {
  position: relative;
  height: 11px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.14);
  overflow: hidden;
}
.vip-progress-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  background-size: 200% 100%;
  animation: vipShimmer 3s linear infinite;
  box-shadow: 0 0 16px rgba(168, 85, 247, .6);
}
.vip-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.vip-progress-xp { color: var(--vip-idle); }
.vip-progress-bonus { color: var(--vip-lilac); }

/* Hero emblem */
.vip-hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vip-hero-emblem-inner {
  position: relative;
  animation: vipFloatY 5s ease-in-out infinite;
}
.vip-hero-emblem-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
  filter: blur(6px);
}
.vip-hero-emblem-img {
  position: relative;
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 28px rgba(124, 58, 237, 0.5));
}

/* ════════════════════════════════════════════════════════════
   JOURNEY LADDER
   ════════════════════════════════════════════════════════════ */
.vip-ladder {
  position: relative;
  background: var(--vip-panel);
  border: 1px solid var(--vip-border);
  border-radius: 22px;
  padding: 44px 40px 38px;
}
.vip-ladder-rail,
.vip-ladder-rail-fill {
  position: absolute;
  top: 81px;
  height: 4px;
  border-radius: 100px;
}
.vip-ladder-rail {
  left: 12%;
  right: 12%;
  background: rgba(124, 58, 237, 0.16);
}
.vip-ladder-rail-fill {
  left: 12%;
  width: 9%;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  box-shadow: 0 0 12px rgba(168, 85, 247, .6);
}
.vip-ladder-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.vip-ladder-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vip-ladder-name {
  margin-top: 14px;
  font-family: var(--vip-heading);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.vip-ladder-name--muted { color: #e6e2f0; }
.vip-ladder-xp {
  margin-top: 2px;
  font-size: 13px;
  color: var(--vip-idle);
  font-weight: 600;
}
.vip-ladder-badge {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}
.vip-ladder-badge svg { width: 10px; height: 10px; }
.vip-ladder-badge--current {
  text-transform: uppercase;
  color: #7ee0a8;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.vip-ladder-badge--locked {
  font-weight: 700;
  color: var(--vip-idle);
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.22);
}
.vip-ladder-badge--unlocked {
  text-transform: uppercase;
  color: #c9a2ff;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.32);
}

/* ════════════════════════════════════════════════════════════
   TIERS & REWARDS
   ════════════════════════════════════════════════════════════ */
.vip-tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.vip-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--vip-panel);
  border: 1px solid var(--vip-border);
  border-radius: 20px;
  padding: 22px 20px;
  transition: transform .25s, border-color .25s;
}
.vip-tier-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
}
.vip-tier-card--current {
  background: linear-gradient(180deg, rgba(240, 176, 120, 0.10), rgba(28, 28, 31, 0.6));
  border: 1.5px solid rgba(240, 176, 120, 0.35);
  box-shadow: 0 20px 50px -25px rgba(240, 176, 120, 0.4);
}
.vip-tier-card--elite {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(28, 28, 31, 0.6));
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 50px -25px rgba(124, 58, 237, 0.5);
}
.vip-tier-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.vip-tier-flag--current {
  color: #7ee0a8;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.vip-tier-flag--elite {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.vip-tier-name {
  margin-top: 14px;
  font-family: var(--vip-heading);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.vip-tier-req {
  margin-top: 3px;
  font-size: 13px;
  color: var(--vip-idle);
  font-weight: 600;
}
.vip-tier-divider {
  height: 1px;
  background: rgba(124, 58, 237, 0.15);
  margin: 18px 0;
}
.vip-tier-rows {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 13.5px;
}
.vip-tier-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.vip-tier-row > span:first-child { color: var(--vip-idle); }
.vip-tier-val { font-weight: 700; color: #e6e2f0; }
.vip-tier-val--accent { color: var(--vip-lilac); }

/* ════════════════════════════════════════════════════════════
   PRIVILEGES
   ════════════════════════════════════════════════════════════ */
.vip-privileges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.vip-privilege-card {
  display: flex;
  gap: 20px;
  background: var(--vip-panel);
  border: 1px solid var(--vip-border);
  border-radius: 18px;
  padding: 24px 26px;
  transition: border-color .25s, transform .25s;
}
.vip-privilege-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
}
.vip-privilege-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vip-privilege-icon svg { width: 24px; height: 24px; }
.vip-privilege-title {
  font-family: var(--vip-heading);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.vip-privilege-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--vip-idle);
}

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.vip-faq-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.vip-faq-tab {
  position: relative;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: transparent;
  color: var(--vip-idle);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.vip-faq-tab:hover { border-color: rgba(168, 85, 247, 0.5); color: #fff; }
.vip-faq-tab--active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(124, 58, 237, 0.12));
  border-color: rgba(168, 85, 247, 0.5);
}

.vip-faq-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vip-faq-panel--hidden { display: none; }

.vip-accordion-item {
  background: linear-gradient(180deg, #1e1e23, #18181c);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.vip-accordion-item--open { border-color: rgba(168, 85, 247, 0.42); }

.vip-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.vip-accordion-question {
  font-family: var(--vip-heading);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}
.vip-accordion-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s;
}
.vip-accordion-chevron svg { width: 14px; height: 14px; }
.vip-accordion-item--open .vip-accordion-chevron { transform: rotate(180deg); }

.vip-accordion-body {
  display: none;
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #9c96b3;
  max-width: 900px;
}
.vip-accordion-item--open .vip-accordion-body { display: block; }
.vip-accordion-body p { margin: 0; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes vipFloatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes vipShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .vip-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .vip-hero-emblem { order: -1; }
  .vip-hero-emblem-img { width: 180px; }
  .vip-tiers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .vip-hero { padding: 32px 24px; }
  .vip-hero-heading { font-size: 32px; }
  .vip-section-title { font-size: 22px; }
  .vip-privileges-grid { grid-template-columns: 1fr; }
  .vip-tiers-grid { grid-template-columns: 1fr 1fr; }

  /* Ladder scrolls horizontally; hide the rail lines */
  .vip-ladder { padding: 32px 20px; overflow-x: auto; }
  .vip-ladder-rail, .vip-ladder-rail-fill { display: none; }
  .vip-ladder-nodes { grid-template-columns: repeat(5, minmax(96px, 1fr)); min-width: 520px; }
}

@media (max-width: 460px) {
  .vip-progress-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .vip-progress-tier--next { justify-content: flex-end; }
  .vip-tiers-grid { grid-template-columns: 1fr; }
  .vip-faq-tabs { flex-wrap: wrap; }
}
