/* ── Custom PolySans font faces ────────────────────────────────────── */
@font-face {
  font-family: 'PolySans';
  src: url('./font/PolySans-Median.ttf') format('truetype');
  font-weight: 500;           /* Median is usually medium/semi-bold */
  font-style: normal;
  font-display: swap;         /* prevents invisible text while font loads */
}

@font-face {
  font-family: 'PolySans';
  src: url('./font/PolySans-Bulky.ttf') format('truetype');
  font-weight: 700;           /* Bulky is the bold/heavy version */
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dev-link {
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.dev-link:hover {
    opacity: 0.85;
}

body {
  min-height: 100dvh;
  background: linear-gradient(to right, #101A2B, #1B263B);
  background-attachment: fixed;
  overflow-x: hidden;
  
  /* Use the new font family with fallback */
  font-family: 'PolySans', system-ui, -apple-system, sans-serif;
  color: #D0D0D0;
}

  /* Glow */
  .top-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-90%);
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
background: #4169E1;
    filter: blur(9999px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
  }

/* ── Header ──────────────────────────────────────── */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* NEW - important fixes */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;           /* ← kills underline */
  color: inherit;                 /* keeps gradient text color */
  outline: none;                  /* removes focus outline (you can style it nicer later if wanted) */
}

/* Optional: subtle hover feedback only on logo area */
.logo-link:hover {
  opacity: 0.92;                  /* very gentle feedback */
  /* or: transform: scale(1.02); if you prefer slight grow */
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f0f8ff, #b0e0ff, #60caff, #40c0ff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% auto;
  animation: bright-shine 5s linear infinite;
}

@keyframes bright-shine {
  to { background-position: 300% center; }
}

/* Navigation with icons */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.main-nav a {
  color: #d0d0ff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: #80c0ff;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: #80c0ff;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(85%) sepia(20%) saturate(800%) hue-rotate(210deg) brightness(105%) contrast(95%);
  transition: all 0.25s ease;
}

.main-nav a:hover .nav-icon,
.main-nav a.active .nav-icon {
  filter: brightness(0) saturate(100%) invert(75%) sepia(60%) saturate(1200%) hue-rotate(210deg) brightness(110%) contrast(110%);
}

.btn-signin {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: 0 3px 12px rgba(123, 90, 255, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 90, 255, 0.6);
  background: linear-gradient(135deg, #60b0ff, #6366f1);
}

@media (max-width: 900px) {

  html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  .main-header {
    width: 100%;
    overflow: hidden;
  }

  .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    padding: 0.6rem 1rem !important;
    gap: 1.4rem !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;

    /* ── Hide scrollbar completely ──────────────────────────────────────── */
    scrollbar-width: none;                    /* Firefox */
    -ms-overflow-style: none;                 /* Internet Explorer + Edge */
  }

  /* Chrome, Safari, iOS, Android WebView – hide scrollbar */
  .container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Optional: still add a subtle visual hint there's more to scroll (fade on right) */
  .container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, transparent, rgba(10,10,30,0.5));
    pointer-events: none;
    z-index: 1;
  }

  /* Rest of your rules (logo, nav, button) stay the same */
  .logo,
  .logo-link {
    flex: 0 0 auto;
  }

  .logo-img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.7rem;
  }

  .main-nav {
    flex: 0 0 auto;
  }

  .main-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .btn-signin {
    flex: 0 0 auto;
    margin-left: 0 !important;
    white-space: nowrap;
    padding: 0.6rem 1.4rem;
    font-size: 0.98rem;
  }
}

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.hero-content {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 175px;
  height: auto;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.3rem auto;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
    background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #D0D0D0;
  line-height: 1.4;
  margin-bottom: 0; /* as per your change */
}

.highlight {
  color: #6879ef;
  font-weight: 700;
}

.standout.hero-desc {
  font-size: 1.18rem;
  font-weight: 500;
  color: #D0D0D0;
  line-height: 1.5;
}

/* ── Features Cards Section – 5 cards exactly fill hero container width ──────────────────────────────────────── */
.features {
  padding: 0 5% 100px;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;               
  display: flex;
  flex-wrap: nowrap;                    /* force single row on desktop */
  justify-content: space-between;       /* distributes cards evenly across full width */
  gap: 1.8rem;
}

.feature-card {
  background: rgba(20, 20, 35, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(140, 120, 255, 0.12);
  
  flex: 1;                              /* grow equally to fill space */
  flex-basis: 194px;                    /* calculated base size so 5 cards + gaps = full width */
  min-width: 194px;
  aspect-ratio: 1 / 1;                  /* perfect square */
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.feature-card:hover {
    background: rgb(17 40 92 / 55%);
    border-color: rgb(93 166 255 / 30%);
  box-shadow: 0 20px 45px rgba(100, 80, 255, 0.25);
}

.feature-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0) saturate(100%) invert(85%) sepia(20%) saturate(800%) hue-rotate(210deg) brightness(105%) contrast(95%);
  transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon {
  filter: brightness(0) saturate(100%) invert(75%) sepia(60%) saturate(1200%) hue-rotate(210deg) brightness(110%) contrast(110%);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  filter: brightness(0) saturate(100%) invert(85%) sepia(20%) saturate(800%) hue-rotate(210deg) brightness(105%) contrast(95%);
  transition: filter 0.3s ease;
  text-align: center;
  margin: 0;
  padding: 0 0.5rem;
}

.feature-card:hover h3 {
  filter: brightness(0) saturate(100%) invert(75%) sepia(60%) saturate(1200%) hue-rotate(210deg) brightness(110%) contrast(110%);
}

/* Mobile adjustments – allow wrapping when screen is too small */
@media (max-width: 1100px) {
  .features-container {
    flex-wrap: wrap;                    /* allow wrap on smaller desktops/tablets */
    gap: 1.5rem;
    justify-content: center;
  }
  
  .feature-card {
    flex-basis: 180px;
    min-width: 180px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.9rem;
  }
  
  .feature-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .features {
    padding-bottom: 70px;
  }
  
  .features-container {
    gap: 1.2rem;
  }
  
  .feature-card {
    flex-basis: 160px;
    min-width: 160px;
  }
  
  .feature-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 0.8rem;
  }
  
  .feature-card h3 {
    font-size: 0.95rem;
  }
}

/* ── Leaderboard Section ──────────────────────────────────────── */
.leaderboard-section {
  padding: 0 5% 140px;
}
.leaderboard-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.tab-btn {
  background: rgb(23 23 38 / 75%);
  border: 1px solid rgba(140, 120, 255, 0.2);
  color: #d0d0ff;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn.active,
.tab-btn:hover {
  background: rgba(140, 120, 255, 0.25);
  border-color: #80c0ff;
  color: #fff;
}
.prize-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #f0f8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.prize-coin {
  height: 38px;
}
.prize-desc {
  font-size: 1.15rem;
color: #D0D0D0;
  margin-bottom: 0;
}
.casino-name {
  font-weight: 600;
    color: #6879ef;
}

/* ── Unified podium card style with smooth rounded gradient border ── */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin: 10rem 0 4rem 0;
  position: relative;
}

.podium-item {
  position: relative;
  width: 300px;
  min-height: 420px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1;                    /* base z-index for all */
}

/* Gradient border pseudo-element — applied to ALL podium items */
.podium-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px; /* controls border thickness */
background: #6879ef;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Gold gets raised + stronger shadow */
.podium-item.gold {
  transform: translateY(-100px);
  z-index: 3;                    /* higher than others */
box-shadow: 0 16px 150px rgb(2 32 241 / 69%);
}

/* Ensure silver & bronze are below gold but still visible */
.podium-item:not(.gold) {
  z-index: 1;
  box-shadow: 0 16px 48px rgb(2 32 241 / 29%);
}
.podium-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 4px solid #6879ef;
}
.podium-user {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #e0e0ff;
}
.podium-wager {
  font-size: 1rem;
  color: #6879ef;
  margin-bottom: 0.4rem;
}
.podium-value {
  font-size: 2rem;
  font-weight: 800;
  color: #D0D0D0;
  margin-bottom: 1.5rem;
}
.podium-prize {
  background: rgba(0,0,0,0.45);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #D0D0D0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.podium-coin {
  height: 28px;
}

/* ── Leaderboard mobile adjustments ─────────────────────────────────────────── */
@media (max-width: 900px) {

  .leaderboard-section {
    padding: 0 4% 80px;               /* less bottom space on mobile */
  }

  .leaderboard-container {
    padding: 0 1rem;
  }

  /* Tabs – make them smaller & stack if many */
  .tab-btn {
    padding: 0.75rem 1.4rem;
    font-size: 1rem;
    min-width: 120px;                 /* better touch target */
  }

  /* Prize title – ensure one line + smaller */
  .prize-title {
    font-size: 2rem;
    gap: 10px;
    margin-bottom: 0.8rem;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .prize-coin {
    height: 32px;
  }

  .prize-desc {
    font-size: 1.05rem;
  }

  /* ── Podium – stack vertically, center, reduce sizes ──────────────────────── */
  .podium {
    flex-direction: column !important;
    align-items: center !important;
    gap: 3rem !important;             /* more breathing room between stacked cards */
    margin: 6rem 0 3rem 0 !important;
  }

  .podium-item {
    width: 100% !important;
    max-width: 360px !important;      /* nice max width on phone */
    min-height: auto !important;
    padding: 2rem 1.5rem 1.8rem !important;
    border-radius: 16px;
    margin: 0 auto !important;
  }

  /* Remove the dramatic raise on gold – looks bad when stacked */
  .podium-item.gold {
    transform: translateY(0) !important;
    box-shadow: 0 12px 36px rgba(128, 82, 220, 0.35) !important;
  }

  .podium-avatar {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 1rem !important;
    border-width: 3px !important;
  }

  .podium-user {
    font-size: 1.6rem !important;
    margin-bottom: 1rem !important;
  }

  .podium-wager {
    font-size: 0.95rem !important;
  }

  .podium-value {
    font-size: 1.8rem !important;
    margin-bottom: 1.2rem !important;
  }

  .podium-prize {
    font-size: 1.25rem !important;
    padding: 0.9rem 1.3rem !important;
    border-radius: 12px !important;
  }

  .podium-coin {
    height: 24px !important;
  }

  /* Gradient border – make thinner on small screens */
  .podium-item::before {
    padding: 1.5px !important;        /* thinner border feels better */
  }
}

/* Extra small phones (≤ ~420px) */
@media (max-width: 480px) {

  .leaderboard-section {
    padding: 0 3% 60px;
  }

  .prize-title {
    font-size: 1.8rem;
    gap: 8px;
  }

  .prize-coin {
    height: 28px;
  }

  .tab-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    min-width: 100px;
  }

  .podium {
    gap: 2.5rem !important;
    margin: 5rem 0 2.5rem !important;
  }

  .podium-item {
    padding: 1.8rem 1.2rem 1.5rem !important;
    max-width: 340px !important;
  }

  .podium-avatar {
    width: 90px !important;
    height: 90px !important;
  }

  .podium-user {
    font-size: 1.45rem !important;
  }

  .podium-value {
    font-size: 1.6rem !important;
  }

  .podium-prize {
    font-size: 1.15rem !important;
    padding: 0.8rem 1.2rem !important;
  }
}

/* Countdown */
.countdown-text {
  font-size: 1.3rem;
  margin: 1rem 0 0.6rem 0;
  color: #6879ef;
}
.countdown-timer {
  font-size: 2.4rem;
  font-weight: 900;
  color: #D0D0D0;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
}

/* ── Leaderboard Table with full solid border around each row ── */

.leaderboard-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;           /* vertical gap between rows */
  background: transparent;
}

.leaderboard-table tbody tr {
  background: transparent; /* no background */
    box-shadow: 0 16px 75px rgb(2 32 241 / 45%);
  border-radius: 14px;                             /* important for the shadow to be rounded */
  position: relative;                              /* ensures shadow doesn't mess with layout */
}

.leaderboard-table tbody tr td {
  border: 2px solid #6879ef;        /* border on every cell */
  background: transparent;
  border-left: none;                /* remove internal vertical lines */
  border-right: none;
  padding: 1.3rem 1.2rem;
  text-align: center;
}

/* Close the outline on left & right + round corners */
.leaderboard-table tbody tr td:first-child {
  border-left: 2px solid #6879ef;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.leaderboard-table tbody tr td:last-child {
  border-right: 2px solid #6879ef;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 1.3rem 1.2rem;
  text-align: center;
}

.leaderboard-table th {
  background: rgb(3 3 26 / 32%);
  font-weight: 700;
  color: #D0D0D0;
  border-bottom: none;
}

.leaderboard-table tr:hover {
  filter: brightness(1.12);
  transition: filter 0.2s ease;
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 12px;
}

.table-coin {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Mobile */
@media (max-width: 1100px) {
  .podium {
    flex-direction: column;
    gap: 2rem;
    margin: 4rem 0;
  }
 
  .podium-item {
    width: 90%;
    min-height: auto;
    transform: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
 
  .podium-avatar {
    width: 100px;
    height: 100px;
  }
}

/* Rank badge – small pill shape in upper-right corner */
.podium-item .rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 62px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;               /* perfectly pill-shaped */
  display: flex;
  align-items: center;
  justify-content: center;
font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  z-index: 2;
  border: 1.5px solid rgba(255,255,255,0.12);   /* subtle inner-frame effect */
}

/* Slight visual hierarchy per place */
.podium-item.gold   .rank-badge {  color: #D0D0D0; font-weight: 900; }
.podium-item.silver .rank-badge {  color: #D0D0D0; }
.podium-item.bronze .rank-badge {  color: #D0D0D0; }

/* Mobile – make even smaller and tighter */
@media (max-width: 900px) {
  .podium-item .rank-badge {
    top: 12px;
    right: 12px;
    min-width: 48px;
    height: 24px;
    font-size: 0.95rem;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .podium-item .rank-badge {
    top: 10px;
    right: 10px;
    min-width: 44px;
    height: 22px;
    font-size: 0.9rem;
    padding: 0 7px;
  }
}

/* ── Available Bonuses Section ──────────────────────────────────────── */
.bonuses-section {
  padding: 0 5% 100px;
}

.bonuses-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.bonuses-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 3rem;
    background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bonuses-subtitle {
  font-size: 1.15rem;
  color: #d0d0ff;
  margin-bottom: 3.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.bonus-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.bonus-card {
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid rgba(140, 120, 255, 0.15);
  width: 340px;
  padding: 1.6rem 1.4rem; /* reduced padding for shorter height */
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bonus-card:hover {
  transform: translateY(-8px); /* kept subtle lift on card, but smaller */
  box-shadow: 0 20px 50px rgba(140, 120, 255, 0.25);
  border-color: rgba(140, 120, 255, 0.4);
}

.bonus-image {
  max-width: 100%;
  max-height: 80px; /* much smaller logo */
  height: auto;
  object-fit: contain;
  margin-bottom: 1.2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bonus-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #f0f8ff;
}

.bonus-perks {
  font-size: 1rem;
  color: #6879ef;
  line-height: 1.5;
  margin-bottom: 1.4rem;
  min-height: 60px;
}

.bonus-code-container {
  margin-bottom: 1.4rem;
}

.bonus-code-label {
  font-size: 0.9rem;
  color: #a0a0ff;
  display: block;
  margin-bottom: 0.5rem;
}

.bonus-code {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #80c0ff;
  border-radius: 12px;
  padding: 1rem 2rem; /* wider */
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  min-width: 180px; /* ensures it's wide enough */
}

.bonus-claim-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 1rem 3rem; /* wider button */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(123, 90, 255, 0.35);
  min-width: 220px; /* consistent wide look */
}

.bonus-claim-btn:hover {
  box-shadow: 0 12px 30px rgba(123, 90, 255, 0.5);
  background: linear-gradient(135deg, #60b0ff, #6366f1);
  /* No translateY/scale – just glow */
}

/* Mobile */
@media (max-width: 1100px) {
  .bonus-cards {
    gap: 1.8rem;
  }
  
  .bonus-card {
    width: 100%;
    max-width: 380px;
  }
  
  .bonus-image {
    max-height: 70px;
  }
}

/* ── My Socials Section ──────────────────────────────────────── */
.socials-section {
  padding: 0 5% 160px;
}

.socials-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  overflow: visible;
}

.socials-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 3rem;
    background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Outer wrapper – gives massive space for hover effects in all directions */
.social-cards-outer {
  padding: 100px 80px; /* big horizontal + vertical padding */
  margin: -80px -60px; /* negative margin to cancel layout shift */
  overflow: visible;
  box-sizing: content-box; /* important: padding is outside box */
}

/* Flex row – no clipping, full hover visibility */
.social-cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2rem;
  width: max-content; /* lets cards take natural width */
  min-width: 100%;
  overflow: visible; /* critical: no clipping */
}

/* Individual cards */
.social-card {
  background: rgba(20, 20, 35, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 1px solid rgba(140, 120, 255, 0.12);
  width: 280px;
  min-width: 280px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #e0e0ff;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

/* Platform glows – big shadow visible now */
.social-card.kick:hover    { box-shadow: 0 30px 80px rgba(0, 255, 106, 0.6); }
.social-card.discord:hover { box-shadow: 0 30px 80px rgba(88, 101, 242, 0.6); }
.social-card.youtube:hover { box-shadow: 0 30px 80px rgba(255, 0, 0, 0.6); }
.social-card.x:hover       { box-shadow: 0 30px 80px rgba(255, 255, 255, 0.45); }

/* Label stays grey */
.social-platform {
  font-size: 1.05rem;
  font-weight: 600;
  color: #a0a0a0;
  display: block;
  margin-bottom: 0.2rem;
}

.social-handle {
  font-size: 1.25rem;
  font-weight: 700;
}

.social-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 1.2rem;
  flex-shrink: 0;
}

.social-info {
  flex: 1;
  text-align: left;
}

.social-arrow {
  font-size: 1.8rem;
  font-weight: bold;
  color: #a0a0a0;
  transition: color 0.4s ease;
}

/* Arrow color on hover */
.social-card.kick:hover .social-arrow    { color: #00FF6A; }
.social-card.discord:hover .social-arrow { color: #5865F2; }
.social-card.youtube:hover .social-arrow { color: #FF0000; }
.social-card.x:hover .social-arrow       { color: #ffffff; }

/* Mobile – horizontal scroll if needed */
@media (max-width: 1100px) {
  .social-cards-outer {
    padding: 70px 40px;
    margin: -50px -20px;
  }
  
  .social-cards {
    gap: 1.4rem;
    justify-content: flex-start;
  }
  
  .social-card {
    width: 260px;
    min-width: 260px;
  }
}

/* ── Footer ──────────────────────────────────────── */
.main-footer {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(140, 120, 255, 0.18);
  padding: 2.5rem 5% 2rem; /* reduced vertical padding → much shorter height */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem; /* smaller gap */
}

.footer-left {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem; /* slightly less space */
}

.footer-logo-img {
  height: 40px; /* smaller logo to reduce height */
  width: auto;
}

.footer-logo-text {
  font-size: 1.6rem; /* smaller text */
  font-weight: 900;
  background: linear-gradient(90deg, #f0f8ff, #b0e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #ffffff; /* same color as menu items (light blue-ish) */
}

/* Right side – Quick Links, Information, Socials */
.footer-right {
  display: flex;
  gap: 3rem; /* smaller gap between columns */
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.2rem; /* slightly smaller headers */
  font-weight: 700;
  color: #ffffff; /* more blue (lighter cyan-blue) instead of pure white */
  margin-bottom: 0.9rem; /* less space below header */
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.6rem; /* reduced spacing between links → shorter columns */
}

.footer-column a {
  color: #D0D0D0; /* same as copyright */
  text-decoration: none;
  font-size: 0.95rem; /* slightly smaller text */
  transition: color 0.3s ease;
}

.footer-column a:hover {
color: #9b9b9b;
}

/* Mobile footer adjustments */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-right {
    justify-content: center;
    gap: 2.5rem;
  }
  
  .footer-left {
    margin-bottom: 2rem;
  }
}

@media (max-width: 1100px) {
  .leaderboard-decor {
    display: none; /* hide on tablet/mobile */
  }
}

/* ── Full-Page Background Decorations for Leaderboard ──────────────────────────────────────── */
.bg-decor {
  position: fixed;
  top: 69%;
  transform: translateY(-50%);
  width: 325px; /* slightly smaller as requested */
  height: auto;
  pointer-events: none;
  z-index: -2;
  opacity: 1; /* subtle background feel */
}

.bg-decor.left {
  left: 75px; /* moved further right (closer to center) */
}

.bg-decor.right {
  right: 75px; /* moved further left (closer to center) */
}


/* Responsive hiding/adjustment */
@media (max-width: 1400px) {
  .bg-decor {
    width: 200px;
    left: -30px;
    right: -30px;
  }
}

@media (max-width: 1100px) {
  .bg-decor {
    display: none;
  }
}

/* ── Floating Yellow Orb Particles ──────────────────────────────────────── */
.floating-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: #ffd700; /* bright yellow-gold core */
  border-radius: 50%;
  opacity: 0.35; /* soft base opacity */
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 180, 0.9),   /* inner warm glow */
    0 0 12px rgba(255, 215, 0, 0.6);          /* outer beautiful highlight */
  
  /* Animation: start below screen → float up with random drift */
  animation: floatUp linear infinite;
}

/* Faster, more random upward float with side drift */
@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: 
      translateY(-140vh) 
      translateX(calc(var(--drift, 0px) * 1.2)); /* stronger random side movement */
    opacity: 0;
  }
}

.bonuses-intro {
  text-align: center;
  color: #d0d0ff;              /* matches other subtitle color */
  font-size: 1.15rem;          /* same as .bonuses-subtitle */
  line-height: 1.5;            /* comfortable reading */
  margin-bottom: 3.5rem;       /* space before cards */
}

.bonuses-intro p {
  margin: 0.5rem 0;            /* small vertical gap between the two lines */
}

/* ── Raffle Section ──────────────────────────────────────── */
.raffle-section {
  padding: 40px 5% 140px;
}
.raffle-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.prize-amount {
  font-size: 6.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.7), 0 0 70px rgba(255, 255, 255, 0.6);
}
.raffle-glow-title {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 0 0 17px rgba(255, 255, 255, 0.6), 0 0 18px rgba(200, 200, 255, 0.4);
  margin: 0;
}
.raffle-description {
  font-size: 1.1rem;
  color: #D0D0D0;
  line-height: 1.6;
  max-width: 820px;
margin: 0 auto -1rem;
}
.highlight {
  color: #6879ef;
  font-weight: 700;
}
.raffle-ticket-rule {
  font-size: 1.25rem;
  color: #6879ef;
  font-weight: 500;
  margin: 1rem auto 4rem;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.ticket-coin {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

/* ── Raffle Dashboard ──────────────────────────────────────── */
.raffle-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin: 3rem 0 4.5rem;
}

.stat-card {
  background: rgba(20, 20, 35, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(140, 120, 255, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1rem;           /* significantly reduced padding */
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;        /* vertical centering */
  align-items: center;            /* horizontal centering */
  min-height: 90px;               /* fixed short height */
  height: 90px;                   /* enforce consistent short height */
}

.stat-label {
  font-size: 0.95rem;
  color: #6879ef;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: #e0e0ff;
  line-height: 1.1;
}

.winner-gold {
  color: #e0e0ff;
  font-style: italic;
}

.countdown-timer {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}

/* Participants Table – use raffle.png for tickets */
.table-ticket-icon {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 8px;
  filter: brightness(0) saturate(100%) invert(75%) sepia(60%) saturate(1200%) hue-rotate(210deg) brightness(110%) contrast(110%);
  /* purple/active tint to match theme */
}

/* Controls Row (left: actions | right: pagination) */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.action-buttons,
.pagination {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.action-btn,
.page-btn {
  background: rgba(140, 120, 255, 0.25);
  border: 1px solid #80c0ff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}
.action-btn:hover,
.page-btn:hover:not(.disabled) {
  background: rgba(140, 120, 255, 0.45);
  transform: translateY(-2px);
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-info {
  color: #d0d0ff;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* How to Participate */
.how-to-section {
  margin-top: 4rem;
}
.how-to-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.how-card {
  background: rgba(20, 20, 35, 0.35);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(140, 120, 255, 0.2);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.how-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(140, 120, 255, 0.1);
}
.how-step {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(59,130,246,0.45);
}
.how-card h3 {
  font-size: 1.45rem;
  margin: 1.8rem 0 1rem;
  color: #e0e0ff;
}
.how-card p {
  color: #6879ef;
  font-size: 0.9rem;
}
.inline-coin {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 4px;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .controls-row {
    flex-direction: column;
    align-items: center;
  }
  .action-buttons,
  .pagination {
    width: 100%;
    justify-content: center;
  }
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(90deg, #ffffff, #d0d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dedicated raffle countdown – no unwanted margin from leaderboard */
.raffle-countdown-timer {
  font-size: 1.65rem;
  font-weight: 900;
  color: #e0e0ff;
  letter-spacing: 0.8px;
  margin: 0;                    /* override any inherited margin */
  line-height: 1.1;
}

/* Full-screen stretched confetti overlay - only on raffle page */
.raffle-section {
  position: relative;           /* creates stacking context */
  min-height: 100vh;            /* ensure it covers full height if needed */
}

.raffle-section::before {
  content: "";
  position: fixed;              /* fixed so it covers whole viewport */
  inset: 0;                     /* top/right/bottom/left: 0 */
  background-image: url('https://freepngimg.com/download/confetti/9-2-confetti-png-picture.png');
  background-size: cover;       /* stretches to fill the entire screen */
  background-position: center;
  background-repeat: no-repeat; /* no tiling */
  opacity: 0.08;                /* very subtle – adjust between 0.05–0.15 */
  pointer-events: none;         /* clicks pass through */
  z-index: -2;                  /* behind content but above main bg gradients */
}

/* ── Raffle Prize Breakdown (Unique & Conflict-Free) ──────────────────────────────────────── */
.raffle-prize-breakdown {
  margin: 2rem auto 4rem auto;
  max-width: 820px;
  text-align: center;
}

.raffle-prize-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #60caff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(128, 212, 255, 0.35);
}

.raffle-prizes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}

.raffle-prize-item {
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(140, 120, 255, 0.25);
  padding: 1.5rem 2rem;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.raffle-prize-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(140, 120, 255, 0.25);
}

/* Rank text at top */
.raffle-prize-rank {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e0e0ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Amount + coin row */
.raffle-prize-amount {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff; /* white as requested */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.raffle-prize-coin {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Podium-style borders & subtle bg gradients */
.raffle-prize-item.first {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255,215,0,0.10), rgba(20,20,35,0.55));
}

.raffle-prize-item.second {
  border-color: #c0c0c0;
  background: linear-gradient(135deg, rgba(192,192,192,0.10), rgba(20,20,35,0.55));
}

.raffle-prize-item.third {
  border-color: #cd7f32;
  background: linear-gradient(135deg, rgba(205,127,50,0.10), rgba(20,20,35,0.55));
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .raffle-prizes-list {
    flex-direction: column;
    gap: 1.4rem;
  }
  
  .raffle-prize-item {
    min-width: auto;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  
  .raffle-prize-amount {
    font-size: 2.3rem;
  }
  
  .raffle-prize-coin {
    width: 48px;
    height: 48px;
  }
}

.inline-link {
  color: inherit;                /* keeps the .highlight gradient/color */
  text-decoration: underline;    /* ← always on underline */
  text-decoration-thickness: 1px; /* thin line */
  text-underline-offset: 4px;    /* slight spacing below text for clean look */
  text-decoration-color: rgba(128, 212, 255, 0.5); /* subtle light blue, semi-transparent */
  transition: all 0.2s ease;     /* smooth hover transition */
  position: relative;
}

.inline-link:hover,
.inline-link:focus {
  text-decoration-thickness: 1.5px; /* slightly thicker on hover for feedback */
  text-underline-offset: 3px;
  text-decoration-color: rgba(128, 212, 255, 0.8); /* brighter on hover */
  opacity: 0.92; /* subtle dim for emphasis */
}

/* White version of floating particles (for index page) */
.floating-particles.white-particles .particle {
  background: #ffffff; /* pure white core */
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.9),    /* strong inner white glow */
    0 0 14px rgba(255, 255, 255, 0.7),        /* softer outer glow */
    0 0 24px rgba(200, 200, 255, 0.4);        /* very faint purple-ish halo (optional luxury feel) */
}

/* Optional: slightly lower base opacity for white (looks cleaner on dark bg) */
.floating-particles.white-particles .particle {
  opacity: 0.28; /* base value - will still get randomized a bit */
}

/* Icy blue version of floating particles (for bonuses page) */
.floating-particles.icy-particles .particle {
  background: #7dd3fc; /* bright icy cyan-blue core */
  box-shadow:
    inset 0 0 10px rgba(125, 211, 252, 0.9),     /* strong inner icy glow */
    0 0 16px rgba(59, 130, 246, 0.75),           /* medium blue outer glow */
    0 0 28px rgba(147, 197, 253, 0.45);          /* soft halo for frost effect */
}

/* Slightly softer base opacity for icy look (looks more ethereal on dark bg) */
.floating-particles.icy-particles .particle {
  opacity: 0.32; /* base - still gets randomized a tiny bit */
}

/* ── VIP Section ──────────────────────────────────────── */
.vip-section {
  padding: 0 5% 140px;
  position: relative;
  overflow: hidden;
}

.vip-section::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('https://i.redd.it/ndkxf5yuu5r91.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07;               /* very subtle – adjust 0.05–0.12 as needed */
  pointer-events: none;
  z-index: -2;
}

.vip-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Card Grid */
.vip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* Common card styles */
.vip-card {
  background: rgba(20, 20, 35, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: all 0.35s ease;
}

.vip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(140, 120, 255, 0.28);
}

/* Requirements card (left) – more neutral */
.vip-card.requirements {
  border: 1px solid rgba(140, 120, 255, 0.35);
}

/* Perks card (right) – stands out more, gold theme */
.vip-card.perks {
  border: 2px solid #d4af37;           /* rich gold border */
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(20,20,35,0.75));
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.18);
}

.vip-card.perks:hover {
  border-color: #ffd700;
  box-shadow: 0 25px 70px rgba(255, 215, 0, 0.35);
}

.vip-card-title {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 1.8rem;
}

/* Requirements card title – standard */
.vip-card.requirements .vip-card-title {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 196, 255, 0.15);
}

/* Perks card title – golden & glowing */
.vip-card.perks .vip-card-title {
  color: #ffd700;
}

/* Requirements list */
.vip-requirements {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.requirement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 30, 50, 0.5);
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 120, 255, 0.2);
}

/* Special warning style for Inactivity */
.requirement-item.inactivity-warning {
  border-left: 4px solid #ff4d4d;
  background: rgba(255, 77, 77, 0.08);
}

.requirement-item.inactivity-warning .requirement-value {
  color: #ff4d4d;           /* bright yellow */
  font-weight: 800;
}

/* Action / Steps */
.vip-action {
  margin-top: 2.2rem;
  font-size: 1.1rem;
  color: #D0D0D0;
}

.vip-action p {
  margin-bottom: 1.2rem;
}

/* Steps numbering */
.vip-steps {
  list-style: none;
  counter-reset: step;
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.vip-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.vip-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Perks list – more compact, less height */
.vip-perks-list {
  list-style: none;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.vip-perks-list li {
  margin-bottom: 1.1rem;
  font-size: 1.18rem;
  color: #D0D0D0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.45;
}

.vip-perks-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #ffd700;
  font-size: 1.5rem;
  line-height: 1.4;
  top: -2px;
}

.perk-highlight {
  color: #ffd700;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .vip-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .vip-card {
    padding: 2rem 1.6rem;
  }
}

/* ── Store Section ──────────────────────────────────────── */
.store-section {
  padding: 0 5% 140px;
}

.store-section::before {
  content: "";
  position: fixed;             /* fixed so it stays full viewport */
  inset: 0;                    /* top/right/bottom/left: 0 */
  background-image: url('https://images.pexels.com/photos/5466788/pexels-photo-5466788.jpeg?_gl=1*d3kcsu*_ga*OTM5NjQzOTAuMTc2ODQxNDA5Nw..*_ga_8JE65Q40S6*czE3Njg3NjE1MDIkbzMkZzEkdDE3Njg3NjE4MDYkajQ3JGwwJGgw'); /* ← change to your image path */
  background-size: cover;      /* stretches to fill screen */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;               /* very low — adjust between 0.05 and 0.15 */
  pointer-events: none;        /* clicks pass through */
  z-index: -2;                 /* behind everything else */
}

.store-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ── Store Controls ──────────────────────────────────────── */
.store-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3.2rem 0 0.8rem;     /* ← much smaller top/bottom margin */
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.search-wrapper {
  flex: 1;
  max-width: 580px;           /* wider search - adjust if needed */
}

.store-search {
  width: 100%;
  padding: 1rem 1.6rem;
  border-radius: 50px;
  border: 1px solid rgba(140, 120, 255, 0.35);
  background: rgba(30, 30, 50, 0.65);
  color: #e0e0ff;
  font-size: 1.08rem;
  outline: none;
  transition: all 0.3s ease;
}

.store-search::placeholder {
  color: #a0a0cc;
}

.store-search:focus {
  border-color: #80c0ff;
  box-shadow: 0 0 0 3px rgba(140, 120, 255, 0.18);
  background: rgba(35, 35, 55, 0.75);
}

.sort-wrapper {
  flex: 0 0 260px;
  min-width: 240px;
}

.store-sort {
  width: 100%;
  max-width: 280px;
  padding: 1rem 1.4rem;
  padding-right: 2.8rem; /* space for custom arrow */
  border-radius: 50px;
  border: 1px solid rgba(140, 120, 255, 0.4);
  background: rgba(30, 30, 50, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e0e0ff;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%2380c0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 12px;
}

.store-sort:hover {
  border-color: #80c0ff;
  background-color: rgba(40, 40, 65, 0.85);
  box-shadow: 0 6px 20px rgba(140, 120, 255, 0.2);
}

.store-sort:focus {
  outline: none;
  border-color: #80c0ff;
  box-shadow: 0 0 0 3px rgba(140, 120, 255, 0.25);
  background-color: rgba(35, 35, 55, 0.9);
}

/* Make selected option look nice */
.store-sort option {
  background: #1a1a2e;
  color: #e0e0ff;
  padding: 10px;
}

/* Make sure the grid below aligns perfectly with controls edges */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;          /* same max-width as controls */
  margin-left: auto;
  margin-right: auto;
}

.reward-card {
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid rgba(140, 120, 255, 0.25);
  padding: 2rem 1.8rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.reward-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(140, 120, 255, 0.25);
}

.reward-card.sold-out {
  opacity: 0.55;
  filter: grayscale(40%);
  pointer-events: none;
}

.reward-card.sold-out .reward-buy-btn {
  background: #444;
  cursor: not-allowed;
}

.reward-image-placeholder {
  font-size: 4.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #80c0ff;
}

.reward-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.reward-desc {
  font-size: 1.02rem;
  color: #d0d0ff;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reward-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
}

.points-value {
  color: #e0e0ff;                  /* changed from yellow to your main light color */
  font-weight: 900;
  font-size: 1.45rem;
}

.reward-stock {
  color: #60caff;
  font-weight: 600;
}

.reward-buy-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 0.95rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reward-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(123, 90, 255, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .store-controls {
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .search-wrapper {
    max-width: 100%;
  }
}

.feature-card {
  text-decoration: none !important; /* removes default link underline */
  color: inherit;                  /* keeps original text/icon color */
}

/* Optional: ensure h3 and any other text inside doesn't get underlined */
.feature-card h3,
.feature-card p,
.feature-card * {
  text-decoration: none !important;
}
.particle {
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* Logged-in User Profile (right side) */
.user-profile-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  text-align: right;
}

.user-name {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: #e0e0ff;
}

.user-points {
  display: block;
  font-size: 0.9rem;
  color: #80c0ff;
}

.user-avatar-dropdown {
  position: relative;
  display: inline-block; /* important for hover area */
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #80c0ff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(192, 160, 255, 0.6);
}

/* Fix 1: Extend hover area around avatar to reduce dead zone */
.user-avatar-dropdown::before {
  content: '';
  position: absolute;
  inset: -12px -8px -40px -8px; /* top/right/bottom/left padding - extends hover downward */
  z-index: -1; /* behind avatar but catches hover */
}

/* Fix 2: Smooth fade + delay on hide */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(20, 20, 35, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(140, 120, 255, 0.45);
  border-radius: 12px;
  min-width: 160px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.55);
  z-index: 1000;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none; /* prevents hover until visible */
}

.user-avatar-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* allows hover on menu itself */
}

/* Dropdown items */
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #e0e0ff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(140, 120, 255, 0.25);
  color: #ffffff;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;          /* ← THIS hides it by default! */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Modal Content */
.modal-content {
  background: rgba(20, 20, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(140, 120, 255, 0.4);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 20px 70px rgba(0,0,0,0.6);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #80c0ff;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

/* Header (avatar + name) */
.modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #80c0ff;
}

.modal-user-info h2 {
  font-size: 1.8rem;
  margin: 0;
  color: #e0e0ff;
}

.modal-user-info p {
  font-size: 1rem;
  color: #6879ef;
  margin: 0.4rem 0 0;
}

/* Form */
.modal-body {
  text-align: left;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 1.05rem;
  color: #D0D0D0;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(140, 120, 255, 0.4);
  background: rgba(30, 30, 50, 0.7);
  color: #E3E3E3;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: #80c0ff;
  box-shadow: 0 0 0 3px rgba(192, 160, 255, 0.15);
}

.save-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-btn:hover {
  box-shadow: 0 10px 30px rgba(123, 90, 255, 0.5);
}

/* Success / error message below save button */
#save-message {
  min-height: 1.4rem;
  transition: opacity 0.4s ease;
}

#save-message.success {
  color: #00ff9d; /* bright green */
  opacity: 1;
}

#save-message.error {
  color: #ff5555; /* red for errors */
  opacity: 1;
}

/* Buy Confirmation Modal */
#buy-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

#buy-confirm-modal .modal-content {
  background: rgba(20, 20, 35, 0.98);
  border: 1px solid rgba(140, 120, 255, 0.5);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 70px rgba(0,0,0,0.6);
}

#buy-confirm-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: #80c0ff;
  background: none;
  border: none;
  cursor: pointer;
}

#buy-confirm-modal .modal-close:hover {
  color: white;
}

/* Buy Confirmation Modal - Button Fixes */
#buy-confirm-modal .save-btn {
  text-shadow: none !important;          /* Remove any text shadow */
  box-shadow: none !important;           /* Remove any box shadow if inherited */
  transform: none !important;            /* No scale/lift on hover */
  transition: background 0.3s ease;      /* Smooth background change only */
}

/* Buy button (green gradient) - darker on hover */
#buy-confirm-modal #confirm-buy-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

#buy-confirm-modal #confirm-buy-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #5a3aff); /* Darker purple shade */
}

#buy-confirm-modal .cancel-btn {
  background: #555;
}

#buy-confirm-modal .cancel-btn:hover {
  background: #444;
}

/* Buy result message (below buttons in confirm modal) */
#buy-result-message {
  min-height: 1.6rem;
  transition: opacity 0.4s ease;
  opacity: 1;
}

#buy-result-message.success {
  color: #00ff9d; /* bright green */
}

#buy-result-message.error {
  color: #ff5555; /* red */
}

/* Casino tab logos */
.casino-tabs {
  display: flex;
  justify-content: center;
  gap: 20px; /* adjust spacing between tabs if needed */
  margin-bottom: 30px;
  margin-top: 25px;
}

.tab-btn {
background: rgb(23 23 38 / 75%);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px; /* adjust based on your image sizes */
}

.tab-btn.active {
  background: rgba(60, 60, 90, 0.9);
  border-color: var(--accent-color); /* uses data-color from JS */
  box-shadow: 0 0 20px var(--accent-color);
}

.tab-btn:hover:not(.active) {
  background: rgba(50, 50, 80, 0.8);
  transform: translateY(-3px);
}

.tab-logo {
  height: 40px;          /* adjust height to fit your images */
  width: auto;
  max-width: 140px;      /* prevent overflow */
  object-fit: contain;
}

/* Optional: make tabs responsive on mobile */
@media (max-width: 768px) {
  .casino-tabs {
    flex-direction: column;
    gap: 12px;
  }
  .tab-btn {
    min-width: 100%;
    padding: 15px;
  }
  .tab-logo {
    height: 50px;
  }
}

/* ── Legal Pages (Terms & Privacy) ──────────────────────────────────────── */
.legal-section {
  padding: 0 5% 140px;
  min-height: 70vh;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(140, 120, 255, 0.18);
  padding: 3.5rem 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.legal-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #f0f8ff, #c0c0ff, #a080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.legal-notice {
  text-align: center;
  color: #a0a0ff;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.legal-placeholder {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #d0d0ff;
  text-align: center;
  opacity: 0.7;
}

/* Better readability for future content */
.legal-container p,
.legal-container li {
  line-height: 1.8;
  color: #e0e0ff;
}

.legal-container h2,
.legal-container h3 {
  color: #80c0ff;
  margin: 2.4rem 0 1.2rem;
}

.legal-container strong {
  color: #e0e0ff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .legal-container {
    padding: 2.5rem 1.8rem;
  }
  
  .legal-title {
    font-size: 2.6rem;
  }
}

.glass-effect {
  background: rgba(30, 30, 50, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(140, 120, 255, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37) !important;
}

/* ========================================================================
   PERRCOS CASINO SHELL - TEST PAGE ONLY
   Original colors, typography, cards, leaderboards and modals remain intact.
   ======================================================================== */
:root { --casino-sidebar-width: 244px; --casino-header-height: 78px; }
body { padding-left: var(--casino-sidebar-width); }
.main-header {
  height: var(--casino-header-height); left: var(--casino-sidebar-width); right: 0;
  padding: 0; background: rgba(16,26,43,.94);
  border-bottom: 1px solid rgba(140,120,255,.16); backdrop-filter: blur(16px);
}
.main-header .container.casino-header-grid {
  position: relative; width: 100%; height: 100%; max-width: none; min-width: 0;
  padding: 0 30px; margin: 0; overflow: visible;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 16px;
}
.main-header .container::after { display: none !important; }
.header-brand { min-width: 0; display: flex; align-items: center; }
.header-brand .logo-link { gap: 10px; white-space: nowrap; }
.header-brand .logo-img { height: 37px; }
.header-brand .logo-text { font-size: 1.5rem; }
.coin-balance {
  justify-self: center; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 148px; padding: 7px 22px;
  background: rgba(20,20,35,.65); border: 1px solid rgba(140,120,255,.24);
  border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.16);
}
.balance-label { font: 700 10px 'PolySans',system-ui,sans-serif; letter-spacing: 1.5px; color: #80c0ff; }
.balance-amount { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 1.25rem; font-weight: 700; color: #e0e0ff; }
.balance-amount img { width: 25px; height: 25px; object-fit: contain; }
.main-header .auth { justify-self: end; min-width: 0; }
.main-header .user-profile-wrapper { gap: 12px; }
.main-header .user-info { text-align: right; }
/* Balance is now shown once, in the centered header container. */
.main-header .user-points { display: none; }
.main-header .user-avatar-dropdown { z-index: 2; }
.main-header .dropdown-menu { z-index: 1200; }
.sidebar-toggle { display: none; background: transparent; color: #e0e0ff; border: 1px solid rgba(140,120,255,.25); border-radius: 9px; font-size: 20px; padding: 6px 10px; cursor: pointer; }
.casino-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--casino-sidebar-width);
  z-index: 1050; display: flex; flex-direction: column; overflow-y: auto;
  background: rgba(13,23,42,.98); border-right: 1px solid rgba(140,120,255,.18);
  box-shadow: 6px 0 25px rgba(0,0,0,.12);
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; height: var(--casino-header-height); flex-shrink: 0; padding: 0 23px; border-bottom: 1px solid rgba(140,120,255,.16); color: #e0e0ff; font-weight: 700; letter-spacing: 1.4px; }
.sidebar-brand img { width: 38px; height: 38px; object-fit: contain; }
.casino-sidebar .main-nav { display: block; padding: 22px 12px; flex: 1; }
.casino-sidebar .nav-group + .nav-group { margin-top: 25px; }
.casino-sidebar .nav-group-title { padding: 0 13px 10px; color: #8295b8; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.casino-sidebar .main-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 4px; list-style: none; padding: 0; margin: 0; }
.casino-sidebar .main-nav li { width: 100%; }
.casino-sidebar .main-nav a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #d0d0ff; white-space: nowrap; }
.casino-sidebar .main-nav a::after { display: none; }
.casino-sidebar .main-nav a:hover { background: rgba(140,120,255,.12); color: #80c0ff; }
.casino-sidebar .main-nav a.active { background: rgba(104,121,239,.19); color: #80c0ff; box-shadow: inset 3px 0 0 #6879ef; }
.casino-sidebar .nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-footer { padding: 19px 25px; border-top: 1px solid rgba(140,120,255,.13); color: #8295b8; font-size: 11px; }
.casino-main { padding-top: var(--casino-header-height); min-width: 0; }
.casino-main .hero { padding-top: 40px; }
.casino-main .hero-container, .casino-main .features-container, .casino-main .leaderboard-container, .casino-main .bonuses-container, .casino-main .socials-container { max-width: 1200px; }
.main-footer { position: relative; }
.sidebar-backdrop { display: none; }
/* The existing floating chat stays unchanged and can be integrated later. */
@media (max-width: 1050px) {
  :root { --casino-sidebar-width: 0px; --casino-header-height: 72px; }
  body { padding-left: 0; }
  .main-header { left: 0; }
  .main-header .container.casino-header-grid { display: grid !important; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important; flex-direction: initial !important; flex-wrap: initial !important; width: 100% !important; min-width: 0 !important; padding: 0 16px !important; gap: 10px !important; overflow: visible !important; }
  .sidebar-toggle { display: inline-flex; align-items: center; margin-right: 10px; }
  .casino-sidebar { width: 255px; transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar-open .casino-sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1040; }
  .header-brand .logo-text { display: none; }
  .header-brand .logo-img { height: 34px; }
  .coin-balance { min-width: 110px; padding: 6px 10px; }
  .main-header .user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .casino-main .hero { padding-top: 35px; }
}
@media (max-width: 600px) {
  .main-header .container.casino-header-grid { padding: 0 10px !important; gap: 5px !important; }
  .header-brand .logo-img { display: none; }
  .sidebar-toggle { margin-right: 0; }
  .balance-label { font-size: 9px; }
  .balance-amount { font-size: 1.05rem; }
  .balance-amount img { width: 21px; height: 21px; }
  .coin-balance { min-width: 96px; padding: 5px 8px; }
  .main-header .user-info { display: none; }
  .main-header .user-avatar { width: 37px; height: 37px; }
  .main-header .btn-signin { padding: 9px 12px; font-size: 12px; }
}

/* Layout refinement: brand in sidebar, no header coin balance yet. */
.sidebar-brand .logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sidebar-brand .logo-img { width: 38px; height: 38px; object-fit: contain; }
.sidebar-brand .logo-text { font-size: 1.5rem; letter-spacing: -.02em; background: linear-gradient(90deg,#f0f8ff,#b0e0ff,#60caff,#40c0ff,#f0f8ff); background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: bright-shine 5s linear infinite; }
.main-header .container.casino-header-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.main-header .auth { grid-column: 2; }
.main-header .header-brand { grid-column: 1; }
.main-header .header-center { display: none; }
@media (max-width:1050px) {
  .main-header .container.casino-header-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  .sidebar-brand .logo-text { display: inline; }
}

/* Center the entire Perrcos brand within the sidebar, regardless of text width. */
.casino-sidebar .sidebar-brand { justify-content: center; padding-left: 12px; padding-right: 12px; }
.casino-sidebar .sidebar-brand .logo-link { width: max-content; max-width: 100%; margin-inline: auto; justify-content: center; flex-shrink: 0; }

/* Center the new Perrcos sidebar logo */
.casino-sidebar .sidebar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
}

.casino-sidebar .sidebar-brand-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.casino-sidebar .sidebar-brand-image {
    display: block;
    width: 125px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* ==========================================
   PERRCOS - RESPONSIVE CHAT PAGE LAYOUT
   Test homepage only
   ========================================== */

/* Smooth movement when chat opens or closes */
@media (min-width: 1101px) {

    body {
        padding-right: 0;
        transition: padding-right 0.3s ease;
    }

    .main-header {
        transition: right 0.3s ease;
    }

    /* Chat open: reserve space on the right */
    body:has(#perc-chat:not(.pc-hidden)) {
        padding-right: 374px !important;
    }

    /* Keep header and profile away from chat */
    body:has(#perc-chat:not(.pc-hidden)) .main-header {
        right: 374px !important;
    }

    /* Let homepage sections shrink naturally */
    .casino-main,
    .main-footer {
        min-width: 0;
        width: auto;
    }

    /* Cards wrap instead of overflowing behind chat */
    body:has(#perc-chat:not(.pc-hidden))
    .features-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    body:has(#perc-chat:not(.pc-hidden))
    .feature-card {
        flex: 1 1 150px;
        min-width: 130px;
        max-width: 220px;
    }

    body:has(#perc-chat:not(.pc-hidden))
    .bonus-cards {
        flex-wrap: wrap;
    }

    /* Keep leaderboard tables inside the available space */
    .casino-main .leaderboard-container {
        min-width: 0;
        max-width: 100%;
    }

    .casino-main .leaderboard-table {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* On smaller screens, use the original floating chat */
@media (max-width: 1100px) {
    body {
        padding-right: 0 !important;
    }

    .main-header {
        right: 0 !important;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    body,
    .main-header {
        transition: none !important;
    }
}

/* ==========================================
   FIX: FULL HEADER + CHAT + CENTERED SOCIALS
   ========================================== */

/* Header stays full width, even with chat open */
.main-header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* Desktop layout */
@media (min-width: 1101px) {

    /* Chat starts directly below the header */
    #perc-chat {
        top: var(--casino-header-height, 72px);
        right: 0;
        bottom: 0;
        border-radius: 0;
        transition: transform 0.3s ease;
    }

    /* Correct closed position now that chat has no right gap */
    #perc-chat.pc-hidden {
        transform: translateX(100%);
    }

    /* Main content still makes room for chat */
    body:has(#perc-chat:not(.pc-hidden)) {
        padding-right: 374px !important;
    }

    /* Keep the socials wrapper inside the content area */
    .casino-main .socials-container {
        width: 100%;
        max-width: 1200px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .casino-main .social-cards-outer {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 35px 0;
        box-sizing: border-box;
    }

    .casino-main .social-cards {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 0 auto;
    }

    .casino-main .social-card {
        flex: 0 1 235px;
        min-width: 0;
        max-width: 235px;
    }
}

/* Don't let the desktop layout interfere with mobile */
@media (max-width: 1100px) {
    .main-header {
        right: 0 !important;
    }
}

/* =========================================
   PERRCOS HERO BRAND
   ========================================= */

.casino-main .hero-brand-image {
    display: block;
    width: min(440px, 85%);
    height: auto;
    object-fit: contain;
    margin: 0 auto 28px;
    transform-origin: center;
    animation: perrcos-hero-float 8s ease-in-out infinite;
    filter: drop-shadow(0 12px 28px rgba(75, 115, 255, 0.16));
}

@keyframes perrcos-hero-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-9px) scale(1.015);
    }
}

/* =========================================
   WIDER SOCIAL CARDS
   ========================================= */

@media (min-width: 1101px) {
    .casino-main .social-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .casino-main .social-card {
        flex: 0 1 280px;
        width: 280px;
        min-width: 260px;
        max-width: 300px;
    }
}

.casino-main .social-card .social-info {
    min-width: 0;
    flex: 1;
}

.casino-main .social-card .social-arrow {
    flex-shrink: 0;
    margin-left: auto;
}

/* =========================================
   MASKED SIDEBAR SOCIAL ICONS
   ========================================= */

.casino-sidebar .sidebar-social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;

    background-color: #c0c9ff;

    -webkit-mask-image: var(--social-icon);
    mask-image: var(--social-icon);

    -webkit-mask-size: contain;
    mask-size: contain;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    transition: background-color 0.25s ease;
}

.casino-sidebar .main-nav a:hover .sidebar-social-icon,
.casino-sidebar .main-nav a.active .sidebar-social-icon {
    background-color: #80c0ff;
}

/* =========================================
   NEW FOOTER LAYOUT
   ========================================= */

.main-footer .perrcos-footer-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 38px;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
}

.main-footer .footer-left {
    flex: 1 1 220px;
    min-width: 0;
}

.main-footer .footer-brand-link {
    display: inline-block;
    text-decoration: none;
}

.main-footer .footer-brand-image {
    display: block;
    width: 175px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 18px;
}

.main-footer .perrcos-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    flex: 2 1 460px;
    min-width: 0;
}

.main-footer .perrcos-footer-nav .footer-column {
    min-width: 0;
}

.main-footer .perrcos-footer-nav .footer-column h4 {
    color: #a5b7e4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.main-footer .perrcos-footer-nav .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-footer .perrcos-footer-nav .footer-column li {
    margin-bottom: 13px;
}

.main-footer .perrcos-footer-nav .footer-column a,
.main-footer .perrcos-footer-bottom a {
    color: #aebddd;
    text-decoration: none;
    transition: color 0.25s ease;
}

.main-footer .perrcos-footer-nav .footer-column a:hover,
.main-footer .perrcos-footer-bottom a:hover {
    color: #80c0ff;
}

.main-footer .perrcos-footer-bottom {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
    padding-top: 25px;
    border-top: 1px solid rgba(140, 160, 255, 0.15);
    font-size: 12px;
}

/* =========================================
   MOBILE ADJUSTMENTS
   ========================================= */

@media (max-width: 700px) {
    .casino-main .hero-brand-image {
        width: min(320px, 85%);
    }

    .main-footer .perrcos-footer-layout {
        flex-direction: column;
        gap: 30px;
    }

    .main-footer .perrcos-footer-nav {
        width: 100%;
        flex: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .main-footer .perrcos-footer-bottom {
        justify-content: flex-start;
    }
}

@media (max-width: 400px) {
    .main-footer .perrcos-footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .casino-main .hero-brand-image {
        animation: none;
    }
}

/* =========================================
   FOOTER MENU CENTERING FIX
   ========================================= */

@media (min-width: 901px) {

    .main-footer .perrcos-footer-layout {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        column-gap: 30px;
        align-items: start;
    }

    /* Keep Perrcos branding on the left */
    .main-footer .footer-left {
        width: 220px;
        max-width: 220px;
        margin: 0;
    }

    /* Center Explore / Rewards / Community */
    .main-footer .perrcos-footer-nav {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        justify-content: space-evenly;
        align-items: start;
        width: 100%;
        min-width: 0;
        gap: 24px;
        margin: 0;
    }

    /* Legal links stay centered across the entire footer */
    .main-footer .perrcos-footer-bottom {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
}

/* Tablet and mobile: center footer content */
@media (max-width: 900px) {

    .main-footer .perrcos-footer-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-footer .footer-left {
        margin: 0 auto;
    }

    .main-footer .footer-brand-image {
        margin-left: auto;
        margin-right: auto;
    }

    .main-footer .perrcos-footer-nav {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .main-footer .perrcos-footer-bottom {
        justify-content: center;
    }
}

/* ==========================================
   PERRCOS — DOCKED RIGHT CHAT SIDEBAR
   ========================================== */

@media (min-width: 1101px) {

    :root {
        --perrcos-chat-width: 350px;
    }

    /* Chat fills the right side, below the header */
    body #perc-chat {
        position: fixed !important;
        top: var(--casino-header-height, 72px) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;

        width: var(--perrcos-chat-width) !important;
        height: calc(100dvh - var(--casino-header-height, 72px)) !important;
        max-height: none !important;

        margin: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;

        display: flex;
        flex-direction: column;

        transform: translateX(0);
        transition: transform 0.3s ease !important;
    }

    /* Chat is hidden offscreen, but its reopen tab stays accessible */
    body #perc-chat.pc-hidden {
        transform: translateX(100%) !important;
    }

    /* The page uses exactly the chat's width when open */
    body:has(#perc-chat:not(.pc-hidden)) {
        padding-right: var(--perrcos-chat-width) !important;
    }

    body:has(#perc-chat.pc-hidden) {
        padding-right: 0 !important;
    }

    /* Header stays full-width across both sidebars */
    body .main-header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    /* Messages take remaining height; composer stays at bottom */
    body #perc-chat .pc-messages {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    body #perc-chat .pc-footer {
        flex-shrink: 0;
    }
}

/* Mobile retains the existing chat toggle/overlay layout */
@media (max-width: 1100px) {
    body {
        padding-right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body #perc-chat {
        transition: none !important;
    }
}

/* ==========================================
   CHAT SIDEBAR — FLUSH EDGES FIX
   ========================================== */

@media (min-width: 1101px) {

    /* Entire chat panel: square corners */
    body #perc-chat {
        border-radius: 0 !important;
        overflow: visible;
    }

    /* Remove rounded background at the top */
    body #perc-chat .pc-head {
        border-radius: 0 !important;
    }

    /* Remove rounded background at the bottom */
    body #perc-chat .pc-footer {
        border-radius: 0 !important;
    }

    /* No border on the outer screen edge */
    body #perc-chat {
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 1px solid rgba(117, 143, 255, 0.35) !important;
    }
}

/* ==========================================
   PERRCOS — CENTERED PERC COINS BALANCE
   ========================================== */

.main-header .header-center.perc-coins-center {
    display: flex !important;
    position: fixed !important;

    left: 50% !important;
    top: calc(var(--casino-header-height, 78px) / 2) !important;
    transform: translate(-50%, -50%) !important;

    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: 40vw;
    pointer-events: none;
    z-index: 3;
}

.main-header .perc-coins-center .coin-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 7px 20px;
    pointer-events: auto;
}

.main-header .perc-coins-center .coin-balance[hidden] {
    display: none !important;
}

.main-header .perc-coins-center .balance-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.main-header .perc-coins-center .balance-amount img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .main-header .perc-coins-center .coin-balance {
        min-width: 0;
        padding: 5px 9px;
    }

    .main-header .perc-coins-center .balance-amount {
        font-size: 14px;
        gap: 5px;
    }

    .main-header .perc-coins-center .balance-amount img {
        width: 20px;
        height: 20px;
    }
}



/* Perc Coins — tiny visual adjustments only */

.main-header .perc-coins-center .balance-amount {
    font-size: 17px !important;
}

.main-header .header-center.perc-coins-center {
    top: calc(var(--casino-header-height, 78px) / 2 - 5px) !important;
}

/* Center coin + amount vertically inside existing balance container */

.main-header .perc-coins-center .coin-balance {
    align-items: center !important;
    justify-content: center !important;
}

.main-header .perc-coins-center .balance-amount {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Center the entire coin balance container in the header */

.main-header .header-center.perc-coins-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* ==========================================
   PROFILE DROPDOWN ABOVE CHAT
   ========================================== */

/* Keep the entire header above the chat */
.main-header {
    z-index: 10000 !important;
}

/* Keep the username and dropdown on top */
.main-header .auth,
.main-header .user-profile-wrapper {
    position: relative;
    z-index: 10001 !important;
}

/* Dropdown appears above the chat */
.main-header .user-dropdown {
    z-index: 10002 !important;
}

/* Chat stays below header and dropdown */
#perc-chat {
    z-index: 9000 !important;
}

/* ==========================================
   CORRECT LAYER ORDER
   Left sidebar > Header > Chat
   ========================================== */

/* Chat at the back */
#perc-chat {
    z-index: 9000 !important;
}

/* Header and profile dropdown above chat */
.main-header {
    z-index: 10000 !important;
}

/* Left sidebar above the header */
.casino-sidebar {
    z-index: 11000 !important;
}


/* MOBILE — FIX PROFILE / LOGOUT DROPDOWN */
@media (max-width: 1100px) {

    body .main-header {
        position: fixed !important;
        overflow: visible !important;
        z-index: 1000000 !important;
    }

    body .main-header .container.casino-header-grid {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    body .main-header .auth,
    body .main-header .user-profile-wrapper,
    body .main-header .user-avatar-dropdown {
        overflow: visible !important;
    }

    body .main-header .user-avatar-dropdown {
        position: relative !important;
        z-index: 10 !important;
    }

    body .main-header .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        z-index: 100 !important;
    }

    body .main-header .user-avatar-dropdown:hover .dropdown-menu,
    body .main-header .user-avatar-dropdown:focus-within .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}


/* PERRCOS KICK LIVE STATUS */
#kick-live-status {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 999998;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;
    border-radius: 30px;
    background: #172238;
    border: 1px solid #33415f;

    color: #d0d0d0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kick-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #888;
}

#kick-live-status.live .kick-status-dot {
    background: #20e06b;
    box-shadow: 0 0 10px #20e06b;
}

#kick-live-status.offline .kick-status-dot {
    background: #888;
}

@media (max-width: 900px) {
    #kick-live-status {
        right: 12px;
        bottom: 85px;
        padding: 7px 11px;
        font-size: 12px;
    }
}