/**
 * 89bd bet - Core Stylesheet
 * All classes use prefix "v30c-" for namespace isolation
 * Color palette: #FFCC02 | #2F2F2F | #708090 | #141414 | #95A5A6
 * Mobile-first design, max-width: 430px
 */

:root {
  --v30c-primary: #FFCC02;
  --v30c-bg: #141414;
  --v30c-text: #ffffff;
  --v30c-secondary: #2F2F2F;
  --v30c-muted: #708090;
  --v30c-light: #95A5A6;
  --v30c-accent: #FFCC02;
  --v30c-card-bg: #1e1e1e;
  --v30c-border: #333333;
  --v30c-success: #28a745;
  --v30c-danger: #dc3545;
}

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

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

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

a { color: var(--v30c-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== Container & Layout ====== */
.v30c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v30c-wrapper {
  width: 100%;
  min-height: 100vh;
}

.v30c-grid {
  display: grid;
  gap: 0.8rem;
}

.v30c-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v30c-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v30c-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ====== Header ====== */
.v30c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border-bottom: 2px solid var(--v30c-primary);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
}

.v30c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.v30c-logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v30c-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v30c-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v30c-primary);
  white-space: nowrap;
}

.v30c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v30c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
  text-decoration: none;
}

.v30c-btn-register {
  background: var(--v30c-primary);
  color: #141414;
}

.v30c-btn-login {
  background: transparent;
  color: var(--v30c-primary);
  border: 1.5px solid var(--v30c-primary);
}

.v30c-btn-promo {
  background: linear-gradient(135deg, #FFCC02 0%, #f0b800 100%);
  color: #141414;
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s;
}

.v30c-btn-promo:hover { transform: scale(1.03); }

.v30c-menu-toggle {
  background: none;
  border: none;
  color: var(--v30c-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
}

/* ====== Mobile Menu ====== */
.v30c-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: all 0.3s ease;
}

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

.v30c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #1a1a1a;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
}

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

.v30c-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v30c-border);
}

.v30c-menu-close {
  background: none;
  border: none;
  color: var(--v30c-text);
  font-size: 2.2rem;
  cursor: pointer;
}

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

.v30c-menu-links li {
  border-bottom: 1px solid var(--v30c-border);
}

.v30c-menu-links a {
  display: block;
  padding: 1rem 0;
  color: var(--v30c-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}

.v30c-menu-links a:hover {
  color: var(--v30c-primary);
}

/* ====== Carousel / Slider ====== */
.v30c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 52px;
  border-radius: 0 0 8px 8px;
}

.v30c-slides-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
}

.v30c-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v30c-slide-active { opacity: 1; }

.v30c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v30c-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.v30c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.v30c-dot-active { background: var(--v30c-primary); }

/* ====== Section & Card ====== */
.v30c-section {
  padding: 1.5rem 0;
}

.v30c-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v30c-primary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v30c-primary);
}

.v30c-card {
  background: var(--v30c-card-bg);
  border: 1px solid var(--v30c-border);
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.v30c-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,204,2,0.15);
}

/* ====== Game Grid ====== */
.v30c-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.v30c-game-item:hover { transform: scale(1.05); }

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

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

/* ====== Category Tabs ====== */
.v30c-cat-label {
  display: inline-block;
  background: var(--v30c-secondary);
  color: var(--v30c-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  border: 1px solid var(--v30c-primary);
}

/* ====== Content Blocks ====== */
.v30c-content-block {
  background: var(--v30c-card-bg);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--v30c-primary);
}

.v30c-content-block h2 {
  font-size: 1.5rem;
  color: var(--v30c-primary);
  margin-bottom: 0.8rem;
}

.v30c-content-block h3 {
  font-size: 1.3rem;
  color: var(--v30c-accent);
  margin: 0.8rem 0 0.5rem;
}

.v30c-content-block p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.v30c-content-block ul {
  padding-left: 1.5rem;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.v30c-content-block li {
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* ====== Promo Text Link ====== */
.v30c-promo-link {
  color: var(--v30c-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.v30c-promo-link:hover {
  color: #ffe066;
}

/* ====== Footer ====== */
.v30c-footer {
  background: #0d0d0d;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--v30c-primary);
}

.v30c-footer-brand {
  font-size: 1.3rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.v30c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.v30c-footer-links a {
  background: var(--v30c-secondary);
  color: var(--v30c-text);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.v30c-footer-links a:hover {
  background: var(--v30c-primary);
  color: #141414;
}

.v30c-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v30c-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--v30c-border);
}

/* ====== Bottom Navigation ====== */
.v30c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border-top: 2px solid var(--v30c-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.v30c-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--v30c-light);
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 56px;
  transition: all 0.2s ease;
  padding: 0.2rem;
}

.v30c-bottom-btn .v30c-bnav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.v30c-bottom-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

.v30c-bottom-btn:hover,
.v30c-bottom-btn.v30c-bnav-active {
  color: var(--v30c-primary);
}

.v30c-bottom-btn.v30c-bnav-active .v30c-bnav-icon {
  filter: drop-shadow(0 0 4px rgba(255,204,2,0.5));
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .v30c-main-content {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .v30c-bottom-nav { display: none; }
  .v30c-container { max-width: 430px; }
}

/* ====== Utility ====== */
.v30c-text-center { text-align: center; }
.v30c-mt-1 { margin-top: 0.5rem; }
.v30c-mt-2 { margin-top: 1rem; }
.v30c-mb-1 { margin-bottom: 0.5rem; }
.v30c-mb-2 { margin-bottom: 1rem; }
.v30c-hidden { display: none; }

/* ====== Badge ====== */
.v30c-badge {
  display: inline-block;
  background: var(--v30c-danger);
  color: #fff;
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  text-align: center;
}

/* ====== Testimonials ====== */
.v30c-testimonial {
  background: var(--v30c-card-bg);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--v30c-border);
}

.v30c-testimonial-author {
  font-size: 1.2rem;
  color: var(--v30c-primary);
  font-weight: 600;
}

.v30c-testimonial-text {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ====== Payment Icons ====== */
.v30c-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.v30c-payment-item {
  background: var(--v30c-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.1rem;
  color: var(--v30c-text);
  border: 1px solid var(--v30c-border);
}

/* ====== Winners ====== */
.v30c-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v30c-border);
  font-size: 1.2rem;
}

.v30c-winner-name { color: var(--v30c-primary); }
.v30c-winner-amount { color: var(--v30c-success); font-weight: 600; }
