/* 888starz affiliate - Core Stylesheet
   All custom classes use the vd40- prefix.
   Mobile-first: max-width 430px, root font 62.5%. */

:root {
  --vd40-bg: #1A1A2E;
  --vd40-bg-soft: #232347;
  --vd40-bg-card: #2a2a4d;
  --vd40-primary: #CD853F;
  --vd40-accent: #FFCC33;
  --vd40-purple: #9370DB;
  --vd40-muted: #6C757D;
  --vd40-text: #FFEF94;
  --vd40-text-light: #f5f5f5;
  --vd40-white: #ffffff;
  --vd40-radius: 1.2rem;
  --vd40-radius-sm: 0.8rem;
  --vd40-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--vd40-bg);
  color: var(--vd40-text-light);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vd40-accent); text-decoration: none; }
a:hover { color: var(--vd40-primary); }
img { max-width: 100%; display: block; }

.vd40-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.vd40-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ============ HEADER ============ */
.vd40-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A2E 0%, #2a2a4d 100%);
  border-bottom: 2px solid var(--vd40-primary);
  box-shadow: var(--vd40-shadow);
}
.vd40-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 56px;
}
.vd40-logo {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--vd40-accent); font-weight: 700; font-size: 1.5rem;
}
.vd40-logo img { width: 28px; height: 28px; border-radius: 0.5rem; }
.vd40-logo span { color: var(--vd40-text); }

.vd40-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vd40-menu-btn {
  background: transparent; border: 1px solid var(--vd40-muted);
  color: var(--vd40-text); width: 40px; height: 40px;
  border-radius: 0.6rem; cursor: pointer; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}

.vd40-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 2rem; border: none;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 40px;
}
.vd40-btn:hover { transform: translateY(-1px); }
.vd40-btn-register { background: linear-gradient(135deg, #FFCC33, #CD853F); color: #1A1A2E; }
.vd40-btn-login { background: transparent; color: var(--vd40-text); border: 1.5px solid var(--vd40-accent); }
.vd40-btn-promo { background: linear-gradient(135deg, #9370DB, #FFCC33); color: #fff; }

/* ============ MOBILE MENU ============ */
.vd40-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--vd40-bg-soft);
  transition: max-height 0.3s ease;
}
.vd40-mobile-menu.vd40-menu-open { max-height: 520px; }
.vd40-mobile-menu-inner {
  max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.vd40-mobile-menu a {
  color: var(--vd40-text-light); padding: 1rem 0.8rem;
  border-radius: 0.6rem; font-size: 1.4rem;
  border-left: 3px solid transparent;
}
.vd40-mobile-menu a:hover { background: var(--vd40-bg-card); border-left-color: var(--vd40-accent); color: var(--vd40-accent); }

/* ============ MAIN ============ */
main { padding-top: 70px; padding-bottom: 90px; }
.vd40-section { padding: 2rem 0; }
.vd40-section-title {
  font-size: 2rem; font-weight: 700; color: var(--vd40-text);
  margin-bottom: 1rem; padding-left: 1rem;
  border-left: 4px solid var(--vd40-accent);
}
.vd40-section-title small { font-size: 1.3rem; color: var(--vd40-muted); font-weight: 400; }

/* ============ HERO CAROUSEL ============ */
.vd40-carousel {
  position: relative; border-radius: var(--vd40-radius); overflow: hidden;
  box-shadow: var(--vd40-shadow); margin-bottom: 1.5rem;
}
.vd40-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.vd40-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
  cursor: pointer;
}
.vd40-slide.vd40-slide-active { opacity: 1; }
.vd40-slide img { width: 100%; height: 100%; object-fit: cover; }
.vd40-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem; background: linear-gradient(transparent, rgba(26,26,46,0.92));
  color: #fff;
}
.vd40-slide-overlay h2 { font-size: 1.7rem; color: var(--vd40-accent); margin-bottom: 0.3rem; }
.vd40-slide-overlay p { font-size: 1.25rem; color: var(--vd40-text); }
.vd40-dots {
  position: absolute; bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.4rem; z-index: 2;
}
.vd40-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,239,148,0.5); cursor: pointer;
}
.vd40-dot.vd40-dot-active { background: var(--vd40-accent); }

/* ============ CATEGORY TABS ============ */
.vd40-cat-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0;
  margin-bottom: 1rem; scrollbar-width: none;
}
.vd40-cat-tabs::-webkit-scrollbar { display: none; }
.vd40-cat-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--vd40-bg-card); color: var(--vd40-text-light);
  font-size: 1.25rem; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
}
.vd40-cat-tab.vd40-cat-tab-active {
  background: linear-gradient(135deg, var(--vd40-primary), var(--vd40-accent));
  color: #1A1A2E; font-weight: 700;
}

/* ============ GAME GRID ============ */
.vd40-game-group { margin-bottom: 2rem; }
.vd40-game-group-title {
  font-size: 1.6rem; color: var(--vd40-accent); margin: 1.2rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.vd40-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vd40-card {
  background: var(--vd40-bg-card); border-radius: var(--vd40-radius-sm);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.15s ease; border: 1px solid rgba(205,133,63,0.25);
}
.vd40-card:hover { transform: translateY(-2px); border-color: var(--vd40-accent); }
.vd40-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #11112a; }
.vd40-card-name {
  font-size: 1.1rem; color: var(--vd40-text-light); text-align: center;
  padding: 0.4rem 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vd40-card-tag {
  position: absolute; top: 0.3rem; left: 0.3rem;
  background: var(--vd40-accent); color: #1A1A2E;
  font-size: 0.9rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
}

/* ============ INFO / CONTENT BLOCKS ============ */
.vd40-card-block {
  background: var(--vd40-bg-card); border-radius: var(--vd40-radius);
  padding: 1.6rem; margin-bottom: 1.5rem; border: 1px solid rgba(147,112,219,0.25);
}
.vd40-card-block h2 { color: var(--vd40-text); font-size: 1.9rem; margin-bottom: 0.8rem; }
.vd40-card-block h3 { color: var(--vd40-accent); font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.vd40-card-block p { color: #d8d8e8; font-size: 1.35rem; line-height: 2.2rem; margin-bottom: 0.8rem; }
.vd40-card-block ul { list-style: none; padding-left: 0; }
.vd40-card-block li {
  padding: 0.4rem 0 0.4rem 1.8rem; position: relative; color: #d8d8e8; font-size: 1.3rem;
}
.vd40-card-block li::before { content: "▸"; color: var(--vd40-accent); position: absolute; left: 0.3rem; }

.vd40-inline-link {
  color: var(--vd40-accent); font-weight: 700;
  border-bottom: 1px dashed var(--vd40-primary);
}
.vd40-inline-link:hover { color: var(--vd40-primary); }

.vd40-promo-text {
  display: inline-block; padding: 0.3rem 0.8rem; margin: 0.2rem;
  background: linear-gradient(135deg, var(--vd40-primary), var(--vd40-accent));
  color: #1A1A2E; font-weight: 700; border-radius: 1.5rem; font-size: 1.2rem;
  cursor: pointer;
}

/* ============ STATS / RTP ============ */
.vd40-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.vd40-stat {
  background: var(--vd40-bg); border-radius: var(--vd40-radius-sm);
  padding: 1rem; text-align: center; border: 1px solid rgba(255,204,51,0.3);
}
.vd40-stat-num { font-size: 2.2rem; font-weight: 700; color: var(--vd40-accent); }
.vd40-stat-label { font-size: 1.15rem; color: var(--vd40-muted); margin-top: 0.2rem; }

/* ============ TESTIMONIALS ============ */
.vd40-testimonial {
  background: var(--vd40-bg); border-left: 3px solid var(--vd40-purple);
  padding: 1rem 1.2rem; border-radius: 0.6rem; margin-bottom: 0.8rem;
}
.vd40-testimonial p { font-size: 1.3rem; color: #d8d8e8; font-style: italic; }
.vd40-testimonial span { color: var(--vd40-accent); font-size: 1.15rem; font-weight: 600; }

/* ============ PAYMENT / APP CTA ============ */
.vd40-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vd40-pay-chip {
  background: var(--vd40-bg); border: 1px solid var(--vd40-muted);
  border-radius: 0.6rem; padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--vd40-text-light);
  display: flex; align-items: center; gap: 0.4rem;
}
.vd40-app-cta {
  background: linear-gradient(135deg, var(--vd40-purple), var(--vd40-primary));
  border-radius: var(--vd40-radius); padding: 1.6rem; text-align: center; color: #fff;
}
.vd40-app-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.5rem; }
.vd40-app-cta .vd40-btn { margin-top: 0.8rem; }

/* ============ WINNERS ============ */
.vd40-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--vd40-bg); padding: 0.7rem 1rem; border-radius: 0.6rem;
  margin-bottom: 0.5rem; font-size: 1.25rem;
}
.vd40-winner-name { color: var(--vd40-text-light); }
.vd40-winner-amount { color: var(--vd40-accent); font-weight: 700; }

/* ============ FOOTER ============ */
.vd40-footer {
  background: #14142a; border-top: 2px solid var(--vd40-primary);
  padding: 2rem 0 1rem; margin-top: 2rem;
}
.vd40-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.vd40-footer-brand { color: var(--vd40-text); font-size: 1.3rem; line-height: 2rem; margin-bottom: 1rem; }
.vd40-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.vd40-footer-links a { color: #c0c0d4; font-size: 1.2rem; }
.vd40-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.vd40-copyright { color: var(--vd40-muted); font-size: 1.1rem; border-top: 1px solid #2a2a4d; padding-top: 1rem; }

/* ============ BOTTOM NAV ============ */
.vd40-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 62px;
  background: linear-gradient(180deg, #2a2a4d, #14142a);
  border-top: 2px solid var(--vd40-primary);
  display: flex; justify-content: space-around; align-items: stretch;
}
.vd40-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--vd40-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.vd40-bnav-btn .vd40-bnav-icon { font-size: 2.2rem; line-height: 1; }
.vd40-bnav-btn .vd40-bnav-label { font-size: 1.05rem; }
.vd40-bnav-btn:hover, .vd40-bnav-btn.vd40-bnav-active { color: var(--vd40-accent); transform: translateY(-2px); }
.vd40-bnav-active .vd40-bnav-icon { color: var(--vd40-primary); }

/* ============ DESKTOP ============ */
@media (min-width: 769px) {
  .vd40-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .vd40-container, .vd40-wrapper, .vd40-header-inner, .vd40-mobile-menu-inner, .vd40-footer-inner { max-width: 900px; }
  .vd40-grid { grid-template-columns: repeat(6, 1fr); }
  .vd40-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
