/* ==========================================================================
   ARG DIAMOND CLUB (d247-club-user) OFFICIAL THEME STYLES
   Exact UI Match from d247-club-user-main
   ========================================================================== */

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

:root {
  /* Brand Tokens */
  --brand-primary: #0088cc;
  --brand-primary-dark: #026aa5;
  --brand-primary-light: #159ad6;
  --brand-cyan: #00d2ff;
  --brand-nav-dark: #0d1b2a;
  --brand-sports-tab: #eaeced;
  --brand-sports-active: #2c3e50;
  
  /* Buttons */
  --btn-dep-from: #5a9bf2;
  --btn-dep-to: #3d7fe0;
  --btn-wd-from: #f78da2;
  --btn-wd-to: #ef6885;
  --btn-wa-from: #25D366;
  --btn-wa-to: #128C7E;
  
  /* Exchange Odds */
  --odds-back: #72bbef;
  --odds-lay: #faa9ba;
  --odds-back-hover: #5aaee8;
  --odds-lay-hover: #f591a7;
  
  --font-main: 'Roboto', sans-serif;
  --font-condensed: 'Roboto Condensed', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-condensed);
  background-color: #f1f5f9;
  color: #111827;
  min-height: 100vh;
  margin: 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ==========================================================================
   1. MAIN HEADER (d247 Header exact match)
   ========================================================================== */
.hdr {
  background: var(--brand-primary);
  width: 100%;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.hdr-r1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  gap: 12px;
  max-width: 1350px;
  margin: 0 auto;
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr-ibtn {
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  padding: 4px;
}

.hdr-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hdr-center {
  display: none;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.hdr-search-box {
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 4px 10px;
  width: 260px;
  border: 1px solid #cbd5e1;
}

.hdr-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: #1e293b;
  font-family: var(--font-main);
}

.hdr-marquee-wrap {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hdr-marquee-text {
  white-space: nowrap;
  animation: marqueeSlide 20s linear infinite;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr-dw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.15s, filter 0.15s;
}

.hdr-dw:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #ffffff;
}

.hdr-dw.dep {
  background: linear-gradient(180deg, var(--btn-dep-from), var(--btn-dep-to));
}

.hdr-dw.wd {
  background: linear-gradient(180deg, var(--btn-wd-from), var(--btn-wd-to));
}

.hdr-dw.wa-vip {
  background: linear-gradient(180deg, #25D366, #128C7E);
  border: 1px solid #86efac;
  animation: pulseWa 2s infinite;
}

/* Mobile Header Row 2 */
.hdr-r2 {
  display: flex;
  padding: 0 12px 8px;
  gap: 8px;
}

.hdr-r2-search {
  width: 40%;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 4px 8px;
}

.hdr-r2-search input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 12px;
}

.hdr-r2-marq {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hdr-r2-marq .hdr-marquee-text {
  font-size: 12px;
}

/* Mobile Deposit/Withdraw bar */
.hdr-dwm {
  display: flex;
  gap: 8px;
  padding: 0 12px 8px;
  width: 100%;
}

.hdr-dwm-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hdr-dwm-btn.dep { background: linear-gradient(180deg, var(--btn-dep-from), var(--btn-dep-to)); box-shadow: 0 2px 6px rgba(0,0,0,0.28); }
.hdr-dwm-btn.wd  { background: linear-gradient(180deg, var(--btn-wd-from),  var(--btn-wd-to));  box-shadow: 0 2px 6px rgba(0,0,0,0.28); }
.hdr-dwm-btn.wa  { background: linear-gradient(180deg, #25D366, #128C7E); box-shadow: 0 2px 6px rgba(0,0,0,0.28); }

/* ==========================================================================
   2. NAVBAR (d247 Navbar exact match)
   ========================================================================== */
.spt-nav {
  background: var(--brand-nav-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  scrollbar-width: none;
}

.spt-nav::-webkit-scrollbar {
  display: none;
}

.spt-nav-item {
  flex: 1 1 0;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #ffffff;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background .15s, color .15s;
}

.spt-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.spt-nav-item.active {
  color: #ffffff;
  background: rgba(43,180,238,0.22);
  box-shadow: inset 0 -3px 0 #2bd4ee;
}

/* ==========================================================================
   3. HERO WHATSAPP PROMO BANNER (VIP ARG DIAMOND)
   ========================================================================== */
.vip-hero-banner {
  background: radial-gradient(circle at 50% 0%, #0088cc 0%, #0a192f 60%, #060d17 100%);
  color: #ffffff;
  padding: 24px 14px 20px;
  text-align: center;
  border-bottom: 2px solid #00d2ff;
  position: relative;
  overflow: hidden;
}

.vip-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  animation: shineBanner 4s infinite;
}

.vip-hero-container {
  max-width: 1100px;
  margin: 0 auto;
}

.vip-badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.vip-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.vip-hero-title {
  font-family: var(--font-condensed);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.vip-hero-sub {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 16px;
}

.vip-hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 18px;
}

.vip-feat-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 6px;
}

.vip-feat-val {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}

.vip-feat-lbl {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

/* Big Hero WhatsApp Button */
.vip-hero-cta-btn {
  background: linear-gradient(135deg, #25D366 0%, #1db954 50%, #128C7E 100%);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  font-family: var(--font-condensed);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 50px;
  border: 2px solid #86efac;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulseBigBtn 2s infinite;
}

.vip-hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.85);
  color: #ffffff;
}

/* ==========================================================================
   4. TOP GAMES STRIP (d247 HeaderTopGames)
   ========================================================================== */
.top-games-strip {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #c7c8ca;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-games-strip::-webkit-scrollbar {
  display: none;
}

.top-game-item {
  flex: 0 0 auto;
  min-width: 180px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #c7c8ca;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0d1b2a;
  transition: background 0.15s;
}

.top-game-item:hover {
  background: #f0f6fb;
  border-color: #0088cc;
}

.top-game-item img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ==========================================================================
   5. SPORTS TABS (d247 SportsTabs exact match)
   ========================================================================== */
.spt-tabs-wrap {
  background: var(--brand-sports-tab);
  border-bottom: 1px solid #c7c8ca;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.spt-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.spt-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #2c3e50;
  border-right: 1px solid #d5d7d8;
  background: transparent;
  transition: background 0.15s;
}

.spt-tab-btn:hover {
  background: #dcdfe1;
}

.spt-tab-btn.active {
  color: #ffffff;
  background: var(--brand-sports-active);
}

.spt-tab-btn.active img {
  filter: invert(1) brightness(2);
}

.spt-tab-btn img {
  height: 16px;
  width: 16px;
  object-fit: contain;
}

/* ==========================================================================
   6. BETTING TABLE (d247 Cricket / Sports Exchange Table)
   ========================================================================== */
.betting-table-section {
  max-width: 1350px;
  margin: 12px auto;
  padding: 0 8px;
}

.table-heading-bar {
  background: #2c3e50;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px 4px 0 0;
}

.table-header-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px 140px;
  background: #e2e8f0;
  border: 1px solid #c7c8ca;
  border-top: none;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #334155;
  padding: 6px 10px;
}

.match-row-item {
  display: grid;
  grid-template-columns: 1fr 140px 140px 140px;
  background: #ffffff;
  border: 1px solid #c7c8ca;
  border-top: none;
  align-items: center;
  padding: 8px 10px;
  transition: background 0.15s;
}

.match-row-item:hover {
  background: #f8fafc;
}

.match-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-event-title {
  font-size: 14px;
  font-weight: 700;
  color: #0d1b2a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inplay-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  animation: blinkRed 1.2s infinite;
}

.match-time-sub {
  font-size: 11px;
  color: #64748b;
}

.odds-cell-pair {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.odds-btn {
  width: 62px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-condensed);
  transition: transform 0.1s, filter 0.1s;
}

.odds-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.odds-btn.back {
  background: var(--odds-back);
  color: #000000;
}

.odds-btn.lay {
  background: var(--odds-lay);
  color: #000000;
}

.odds-val {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.odds-size {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
}

/* ==========================================================================
   7. CASINO GAMES SECTION (d247 CasinoGames exact images)
   ========================================================================== */
.casino-section-wrap {
  max-width: 1350px;
  margin: 20px auto;
  padding: 0 8px;
}

.casino-section-title {
  background: #2c3e50;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid #c7c8ca;
  border-top: none;
}

.casino-card {
  border-radius: 6px;
  overflow: hidden;
  background: #0d1b2a;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.35);
  border-color: #0088cc;
}

.casino-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.casino-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 70%);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.casino-game-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 4px;
}

.casino-get-id-btn {
  background: linear-gradient(180deg, #25D366, #128C7E);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   8. FOOTER SECTION (d247 Footer exact match)
   ========================================================================== */
.site-footer {
  width: 100%;
  margin-top: 30px;
}

.ftr-top {
  width: 100%;
  min-height: 92px;
  background: #0088CC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  color: #ffffff;
}

.ftr-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.ftr-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ftr-soc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0088CC;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

.ftr-soc:hover {
  transform: translateY(-2px);
}

.ftr-soc.wa { color: #25D366; }
.ftr-soc.tg { color: #229ED9; }
.ftr-soc.fb { color: #1877F2; }
.ftr-soc.ig { color: #E1306C; }

.footer-bottom {
  width: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px 80px;
  border-top: 1px solid #e2e8f0;
}

.ftr-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ftr-secure {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.ftr-safe-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.ftr-safe-desc {
  font-size: 12px;
  color: #4b5563;
}

.ftr-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ftr-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ftr-copy {
  text-align: center;
  font-size: 12px;
  color: #4b5563;
}

/* ==========================================================================
   9. STICKY MOBILE BOTTOM BAR & FLOATING WHATSAPP
   ========================================================================== */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1b2a;
  border-top: 2px solid #0088cc;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

.sticky-mobile-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.sticky-mobile-sub {
  font-size: 11px;
  color: #4ade80;
}

.sticky-mobile-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.floating-wa-bubble {
  position: fixed;
  bottom: 65px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  border: 2px solid #86efac;
  z-index: 9998;
  animation: bounceBubble 2.5s infinite;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes marqueeSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes pulseWa {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(0,0,0,0.28); }
  50% { transform: scale(1.04); box-shadow: 0 0 15px rgba(37, 211, 102, 0.8); }
}

@keyframes pulseBigBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(37, 211, 102, 0.5); }
  50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(37, 211, 102, 0.85); }
}

@keyframes shineBanner {
  0% { left: -100%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

@keyframes blinkRed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes bounceBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (min-width: 1024px) {
  .hdr-center {
    display: flex;
  }
  .hdr-r2 {
    display: none;
  }
  .hdr-dwm {
    display: none;
  }
}

@media (max-width: 1023px) {
  .hdr-right .hdr-dw {
    display: none;
  }
  .hdr-right .hdr-dw.wa-vip {
    display: inline-flex;
  }
  .table-header-row {
    grid-template-columns: 1fr 110px 110px 110px;
  }
  .match-row-item {
    grid-template-columns: 1fr 110px 110px 110px;
  }
  .odds-btn {
    width: 50px;
    height: 34px;
  }
}

@media (max-width: 640px) {
  .vip-hero-title {
    font-size: 22px;
  }
  .vip-hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .table-header-row {
    grid-template-columns: 1fr 65px 65px 65px;
    font-size: 11px;
    padding: 4px 6px;
  }
  .match-row-item {
    grid-template-columns: 1fr 65px 65px 65px;
    padding: 6px 4px;
  }
  .odds-cell-pair .odds-btn.lay {
    display: none; /* Compact mobile view */
  }
  .odds-btn {
    width: 60px;
    height: 34px;
  }
  .casino-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .casino-card img {
    height: 105px;
  }
}
