/**
 * ck99 Gaming Platform - Theme Stylesheet
 * Mobile-first design for Bangladesh market
 * All classes prefixed with v006- for namespace isolation
 * Color palette: #B8860B (gold) | #0F0F23 (dark bg) | #FFF8DC (light text) | #DEB887 (accent)
 */

/* CSS Variables */
:root {
  --v006-primary: #B8860B;
  --v006-primary-light: #DAA520;
  --v006-primary-dark: #8B6508;
  --v006-bg: #0F0F23;
  --v006-bg-light: #1A1A35;
  --v006-bg-card: #151530;
  --v006-text: #FFF8DC;
  --v006-text-muted: #B8B8A0;
  --v006-accent: #DEB887;
  --v006-accent-light: #F5DEB3;
  --v006-border: #2A2A4A;
  --v006-success: #4CAF50;
  --v006-danger: #E74C3C;
  --v006-gradient: linear-gradient(135deg, #B8860B 0%, #DAA520 50%, #B8860B 100%);
  --v006-radius: 8px;
  --v006-radius-lg: 12px;
  --v006-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --v006-shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.3);
  --v006-transition: all 0.3s ease;
  --v006-header-h: 56px;
  --v006-bottom-nav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--v006-bg);
  color: var(--v006-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v006-accent);
  text-decoration: none;
  transition: var(--v006-transition);
}

a:hover {
  color: var(--v006-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HEADER ===== */
.v006-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v006-header-h);
  background: var(--v006-bg);
  border-bottom: 1px solid var(--v006-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.v006-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v006-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v006-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v006-primary);
  letter-spacing: 0.5px;
}

.v006-header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v006-btn-register,
.v006-btn-login {
  padding: 0.6rem 1.4rem;
  border-radius: var(--v006-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--v006-transition);
  white-space: nowrap;
}

.v006-btn-register {
  background: var(--v006-gradient);
  color: #0F0F23;
  box-shadow: var(--v006-shadow-gold);
}

.v006-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(184, 134, 11, 0.5);
}

.v006-btn-login {
  background: transparent;
  color: var(--v006-accent);
  border: 1px solid var(--v006-accent);
}

.v006-btn-login:hover {
  background: rgba(222, 184, 135, 0.1);
  transform: scale(1.05);
}

.v006-menu-toggle {
  background: none;
  border: none;
  color: var(--v006-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.v006-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--v006-transition);
}

.v006-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v006-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v006-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--v006-border);
}

.v006-menu-active {
  right: 0;
}

.v006-menu-close {
  background: none;
  border: none;
  color: var(--v006-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.v006-menu-title {
  font-size: 1.6rem;
  color: var(--v006-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v006-border);
}

.v006-menu-links {
  list-style: none;
}

.v006-menu-links li {
  margin-bottom: 0.5rem;
}

.v006-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--v006-text);
  border-radius: var(--v006-radius);
  transition: var(--v006-transition);
  font-size: 1.4rem;
}

.v006-menu-links a:hover {
  background: rgba(184, 134, 11, 0.15);
  color: var(--v006-primary-light);
}

.v006-menu-links .material-icons,
.v006-menu-links .fas,
.v006-menu-links .bi {
  font-size: 2rem;
  color: var(--v006-primary);
}

/* ===== MAIN CONTENT ===== */
.v006-main {
  margin-top: var(--v006-header-h);
  min-height: calc(100vh - var(--v006-header-h));
}

.v006-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v006-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem;
}

/* ===== SLIDER ===== */
.v006-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--v006-radius-lg);
  margin: 1rem 0;
  cursor: pointer;
}

.v006-slide {
  display: none;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--v006-radius-lg);
}

.v006-slide-active {
  display: block;
  animation: v006fadeIn 0.5s ease;
}

@keyframes v006fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.v006-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.v006-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--v006-transition);
}

.v006-slider-dot-active {
  background: var(--v006-primary);
  width: 20px;
  border-radius: 4px;
}

/* ===== SECTIONS ===== */
.v006-section {
  padding: 2rem 0;
}

.v006-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v006-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v006-section-title i,
.v006-section-title .material-icons {
  font-size: 2.2rem;
}

.v006-divider {
  height: 1px;
  background: var(--v006-border);
  margin: 1.5rem 0;
}

/* ===== GAME GRID ===== */
.v006-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v006-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v006-primary);
}

.v006-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v006-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v006-transition);
  border-radius: var(--v006-radius);
  padding: 0.5rem;
}

.v006-game-item:hover {
  background: rgba(184, 134, 11, 0.1);
  transform: translateY(-2px);
}

.v006-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--v006-radius);
  border: 1px solid var(--v006-border);
}

.v006-game-name {
  font-size: 1.1rem;
  color: var(--v006-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CARDS ===== */
.v006-card {
  background: var(--v006-bg-card);
  border: 1px solid var(--v006-border);
  border-radius: var(--v006-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--v006-transition);
}

.v006-card:hover {
  border-color: var(--v006-primary);
  box-shadow: var(--v006-shadow-gold);
}

.v006-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v006-primary);
  margin-bottom: 0.8rem;
}

.v006-card-text {
  font-size: 1.3rem;
  color: var(--v006-text-muted);
  line-height: 1.8rem;
}

/* ===== CTA BUTTON ===== */
.v006-cta {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--v006-gradient);
  color: #0F0F23;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--v006-transition);
  box-shadow: var(--v006-shadow-gold);
}

.v006-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(184, 134, 11, 0.5);
}

.v006-cta-outline {
  background: transparent;
  color: var(--v006-primary);
  border: 2px solid var(--v006-primary);
  box-shadow: none;
}

.v006-cta-outline:hover {
  background: rgba(184, 134, 11, 0.1);
}

/* ===== PROMO LINK ===== */
.v006-promo-link {
  color: var(--v006-primary-light);
  font-weight: 700;
  cursor: pointer;
  transition: var(--v006-transition);
}

.v006-promo-link:hover {
  color: var(--v006-accent-light);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.v006-footer {
  background: var(--v006-bg-light);
  border-top: 1px solid var(--v006-border);
  padding: 2rem 0 3rem;
}

.v006-footer-brand {
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--v006-border);
  margin-bottom: 1.5rem;
}

.v006-footer-brand p {
  font-size: 1.2rem;
  color: var(--v006-text-muted);
  line-height: 1.8rem;
  max-width: 380px;
  margin: 0.5rem auto;
}

.v006-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0;
}

.v006-footer-link {
  padding: 0.5rem 1rem;
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid var(--v006-border);
  border-radius: var(--v006-radius);
  color: var(--v006-accent);
  font-size: 1.2rem;
  transition: var(--v006-transition);
}

.v006-footer-link:hover {
  background: rgba(184, 134, 11, 0.25);
  color: var(--v006-primary-light);
}

.v006-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v006-text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--v006-border);
}

/* ===== BOTTOM NAV ===== */
.v006-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v006-bottom-nav-h);
  background: var(--v006-bg-light);
  border-top: 1px solid var(--v006-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.5rem;
}

.v006-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--v006-text-muted);
  cursor: pointer;
  transition: var(--v006-transition);
  padding: 0.3rem;
  border-radius: var(--v006-radius);
}

.v006-bottom-btn:hover,
.v006-bottom-btn:active {
  color: var(--v006-primary);
  transform: scale(1.1);
}

.v006-bottom-btn .material-icons,
.v006-bottom-btn .fas,
.v006-bottom-btn .ion-icon,
.v006-bottom-btn .bi,
.v006-bottom-btn ion-icon {
  font-size: 2.2rem;
}

.v006-bottom-btn span:last-child {
  font-size: 1rem;
  margin-top: 0.2rem;
}

.v006-bottom-active {
  color: var(--v006-primary) !important;
}

/* ===== BACK TO TOP ===== */
.v006-back-top {
  position: fixed;
  bottom: 75px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--v006-primary);
  color: #0F0F23;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--v006-transition);
  box-shadow: var(--v006-shadow);
}

.v006-back-top-show {
  opacity: 1;
  visibility: visible;
}

.v006-back-top:hover {
  transform: scale(1.1);
  background: var(--v006-primary-light);
}

/* ===== TOAST ===== */
.v006-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--v006-bg-card);
  color: var(--v006-text);
  padding: 1rem 2rem;
  border-radius: var(--v006-radius);
  border: 1px solid var(--v006-primary);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.v006-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== TESTIMONIALS ===== */
.v006-testimonial {
  background: var(--v006-bg-card);
  border: 1px solid var(--v006-border);
  border-radius: var(--v006-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.v006-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v006-primary);
}

.v006-testimonial-text {
  font-size: 1.2rem;
  color: var(--v006-text-muted);
  margin-top: 0.4rem;
  line-height: 1.6rem;
}

.v006-testimonial-stars {
  color: var(--v006-primary);
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

/* ===== RTP BAR ===== */
.v006-rtp-bar {
  background: var(--v006-bg-card);
  border: 1px solid var(--v006-border);
  border-radius: var(--v006-radius);
  padding: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v006-rtp-name {
  font-size: 1.3rem;
  color: var(--v006-text);
  font-weight: 500;
}

.v006-rtp-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v006-success);
}

/* ===== WINNER MARQUEE ===== */
.v006-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--v006-bg-card);
  border-radius: var(--v006-radius);
  margin-bottom: 0.5rem;
  border: 1px solid var(--v006-border);
}

.v006-winner-name {
  font-size: 1.2rem;
  color: var(--v006-text-muted);
}

.v006-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v006-primary);
}

/* ===== PAYMENT ===== */
.v006-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}

.v006-payment-item {
  background: var(--v006-bg-card);
  border: 1px solid var(--v006-border);
  border-radius: var(--v006-radius);
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
  color: var(--v006-accent);
  font-weight: 500;
}

/* ===== DESKTOP HIDDEN ===== */
.v006-desktop-hide {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v006-bottom-nav {
    display: none;
  }

  .v006-desktop-hide {
    display: none;
  }

  .v006-container,
  .v006-wrapper {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .v006-main {
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  .v006-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v006-btn-register,
  .v006-btn-login {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
}

/* ===== BADGE ===== */
.v006-badge {
  display: inline-block;
  background: var(--v006-danger);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  position: absolute;
  top: 2px;
  right: 10px;
}

/* ===== HELPER CLASSES ===== */
.v006-text-center {
  text-align: center;
}

.v006-mt-1 {
  margin-top: 1rem;
}

.v006-mb-1 {
  margin-bottom: 1rem;
}

.v006-py-1 {
  padding: 1rem 0;
}

.v006-py-2 {
  padding: 2rem 0;
}

.v006-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v006-gap-1 {
  gap: 1rem;
}

.v006-hidden {
  display: none !important;
}

/* ===== FAQ ACCORDION ===== */
.v006-faq-item {
  border: 1px solid var(--v006-border);
  border-radius: var(--v006-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.v006-faq-q {
  background: var(--v006-bg-card);
  padding: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v006-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v006-faq-a {
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  color: var(--v006-text-muted);
  line-height: 1.8rem;
  background: var(--v006-bg);
  border-top: 1px solid var(--v006-border);
}
