/* ═══════════════════════════════════════════════════════════════
   BayJargon — Premium VIP UI System (Animations & Extras)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Global Glassmorphism & Depth */
.glass-panel, .game-card, .live-card {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
}

/* 2. Premium Hover Effects with Subtle Gold Glow */
.game-card:hover, .live-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9),
              0 0 15px rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.5);
  z-index: 10;
}

/* 3. Smooth Page Transitions */
.page-inner {
  animation: smoothFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Elegant Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(135deg, #C5A059, #FCE8B2, #C5A059);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. Dynamic Interactive Elements (Sweep Animation) */
.btn-primary, .jb-btn-real {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: var(--radius) !important;
  font-weight: 400;
  letter-spacing: 1px;
  background: linear-gradient(to right, #8F733E, #C5A059);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary::after, .jb-btn-real::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover::after, .jb-btn-real:hover::after {
  left: 150%;
}

.btn-primary:hover, .jb-btn-real:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
}

/* 6. Glowing Active Nav Links */
.nav-link.active {
  color: #FCE8B2 !important;
  text-shadow: 0 0 12px rgba(252, 232, 178, 0.3);
  border-bottom: 2px solid #C5A059;
}

/* Input Fields - Sharp & Corporate */
.jb-input, input[type="text"], input[type="password"] {
  border-radius: var(--radius);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.jb-input:focus, input[type="text"]:focus, input[type="password"]:focus {
  border-color: #C5A059;
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

/* ── VIP INNER PAGES OVERHAUL ── */

/* 1. VIP Hero Banner */
.vip-hero-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #111, #0a0a0a);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  min-height: 250px;
}
.vip-hero-banner::before {
  content: \'\';
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.vip-hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
}
.vip-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.vip-hero-subtitle {
  font-size: 1.1rem;
  color: #A3A3A3;
  margin-bottom: 1.5rem;
}
.vip-hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  height: 120%;
  opacity: 0.8;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* 2. Global Jackpot Ticker */
.jackpot-ticker-wrapper {
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197,160,89,0.3);
  border-radius: var(--radius-lg);
  padding: 1rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(197,160,89,0.05);
}
.jackpot-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #D4B271;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.jackpot-amount {
  font-family: monospace;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to bottom, #FFF, #C5A059);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(197,160,89,0.4);
  letter-spacing: -1px;
}

/* 3. VIP Sports Cards */
.vip-sports-card {
  background: linear-gradient(180deg, rgba(26,26,26,0.8) 0%, rgba(10,10,10,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-top: 2px solid rgba(197,160,89,0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--tr-med);
  position: relative;
  overflow: hidden;
}
.vip-sports-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197,160,89,0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 15px rgba(197,160,89,0.1);
}
.vip-sports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #737373;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}
.vip-sports-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.team-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  flex: 1;
}
.team-score {
  font-size: 1.8rem;
  font-weight: 700;
  color: #C5A059;
  padding: 0 1rem;
}
.vip-odds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vip-odd-btn {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.vip-odd-btn::before {
  content: \'\'; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(197,160,89,0.2), transparent);
  transform: skewX(-20deg); transition: 0.4s;
}
.vip-odd-btn:hover::before { left: 150%; }
.vip-odd-btn:hover {
  background: rgba(197,160,89,0.1);
  border-color: rgba(197,160,89,0.5);
}
.vip-odd-label { font-size: 0.8rem; color: #A3A3A3; margin-bottom: 0.2rem; }
.vip-odd-val { font-size: 1.1rem; font-weight: 600; color: #fff; }

/* 4. Promo Black Card */
.promo-black-card {
  background: linear-gradient(135deg, #181818 0%, #050505 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(197,160,89,0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  transition: transform 0.5s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo-black-card:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 20px rgba(197,160,89,0.2);
}
.promo-black-card::after {
  content: \'\';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.promo-black-card:hover::after { opacity: 1; }
.promo-bc-chip {
  width: 40px; height: 30px;
  background: linear-gradient(135deg, #d4af37, #aa7f1d);
  border-radius: 4px;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.promo-bc-title {
  font-size: 1.8rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.promo-bc-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #C5A059;
}

/* 5. Gold Leaderboard */
.gold-leaderboard {
  background: rgba(10,10,10,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.glb-row {
  display: flex;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  transition: background 0.3s;
}
.glb-row:hover { background: rgba(255,255,255,0.02); }
.glb-row.rank-1 { background: linear-gradient(90deg, rgba(197,160,89,0.15) 0%, transparent 100%); border-left: 3px solid #C5A059; }
.glb-row.rank-2 { background: linear-gradient(90deg, rgba(192,192,192,0.1) 0%, transparent 100%); border-left: 3px solid #C0C0C0; }
.glb-row.rank-3 { background: linear-gradient(90deg, rgba(205,127,50,0.1) 0%, transparent 100%); border-left: 3px solid #CD7F32; }
.glb-rank { width: 50px; font-weight: 700; font-size: 1.2rem; color: #737373; }
.rank-1 .glb-rank { color: #C5A059; }
.rank-2 .glb-rank { color: #C0C0C0; }
.rank-3 .glb-rank { color: #CD7F32; }
.glb-user { flex: 1; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 0.5rem;}
.glb-score { font-family: monospace; font-size: 1.2rem; color: #D4B271; }

/* Provider Tabs Overhaul */
.provider-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.provider-tabs::-webkit-scrollbar { height: 4px; }
.provider-tabs::-webkit-scrollbar-thumb { background: rgba(197,160,89,0.3); border-radius: 4px; }
.provider-tab {
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  color: #A3A3A3;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex; align-items: center; gap: 0.5rem;
}
.provider-tab:hover, .provider-tab.active {
  background: rgba(197,160,89,0.15);
  border-color: #C5A059;
  color: #fff;
}
.ptab-count {
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.provider-tab.active .ptab-count { background: #C5A059; color: #000; font-weight: 600; }

/* ── VIP INNER PAGES MOBILE RESPONSIVENESS ── */
@media (max-width: 768px) {
  /* Hero Banner */
  .vip-hero-banner {
    padding: 1.5rem;
    min-height: 200px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
  }
  .vip-hero-content {
    max-width: 100%;
    z-index: 3;
    width: 100%;
  }
  .vip-hero-title {
    font-size: 1.8rem;
  }
  .vip-hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .vip-hero-image {
    right: -15%;
    opacity: 0.1; /* Make it more transparent on mobile so text is readable */
    height: 100%;
  }

  /* Jackpot */
  .jackpot-ticker-wrapper {
    padding: 1rem;
  }
  .jackpot-amount {
    font-size: 2.2rem;
  }

  /* Sports Cards */
  .vip-sports-card {
    padding: 1rem;
  }
  .team-name {
    font-size: 1rem;
  }
  .team-score {
    font-size: 1.4rem;
    padding: 0 0.5rem;
  }
  .vip-odd-btn {
    padding: 0.5rem;
  }
  .vip-odd-val {
    font-size: 1rem;
  }

  /* Promo Cards */
  .promo-black-card {
    padding: 1.5rem;
  }
  .promo-bc-title {
    font-size: 1.4rem;
  }
  .promo-bc-amount {
    font-size: 1.8rem !important;
  }

  /* Tournaments Leaderboard */
  .glb-row {
    padding: 0.8rem 1rem;
  }
  .glb-rank {
    width: 30px;
    font-size: 1rem;
  }
  .glb-user {
    font-size: 0.9rem;
  }
  .glb-score {
    font-size: 1rem;
  }
}


/* ── VIP PROVIDER INTEGRATION ── */
.provider-showcase {
    margin-bottom: 3rem;
}
.provider-logo-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}
.provider-logo-grid::-webkit-scrollbar {
    height: 4px;
}
.provider-logo-grid::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}
.provider-logo-card {
    flex: 0 0 160px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}
.provider-logo-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle, rgba(197,160,89,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.provider-logo-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.provider-logo-card:hover::before {
    opacity: 1;
}
.provider-logo-card img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.provider-logo-card:hover img {
    opacity: 1;
    filter: brightness(1) invert(1) drop-shadow(0 0 5px rgba(197, 160, 89, 0.5));
}
.provider-logo-card .fallback-text {
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Category Row */
.provider-category-row {
    margin-bottom: 2.5rem;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(197,160,89,0.1);
    padding-bottom: 0.5rem;
}
.category-header-logo {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.category-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.category-title span {
    color: var(--gold);
    font-weight: 400;
}
.games-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.games-row .game-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}
.games-row::-webkit-scrollbar {
    height: 6px;
}
.games-row::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.5);
    border-radius: 4px;
}
.games-row:hover::-webkit-scrollbar-thumb {
    background: var(--gold);
}
@media (max-width: 768px) {
    .games-row .game-card {
        flex: 0 0 160px;
    }
    .provider-logo-card {
        flex: 0 0 120px;
        height: 60px;
    }
    .category-title {
        font-size: 1.2rem;
    }
}


/* ── GAME REAL IMAGE ── */
.game-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}
.game-card:hover .game-real-img {
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(1.1) contrast(1.1);
}
/* Ensure the pattern doesn't cover the image completely */
.game-thumb.has-gif .game-thumb-pattern,
.game-thumb.has-img .game-thumb-pattern {
    opacity: 0.2;
    z-index: 3;
}
.game-thumb.has-gif .game-overlay,
.game-thumb.has-img .game-overlay {
    z-index: 4;
}
