/**
 * 399betlogin - Core Stylesheet
 * File: css/design-38d2.css
 * Prefix: gd2d-
 * Palette: #DEB887 | #66CDAA | #8B4513 | #0C0C0C
 */

/* ---- CSS Variables ---- */
:root {
  --gd2d-primary: #DEB887;
  --gd2d-secondary: #66CDAA;
  --gd2d-accent: #8B4513;
  --gd2d-bg: #0C0C0C;
  --gd2d-bg-alt: #1a1410;
  --gd2d-bg-card: #1e1a15;
  --gd2d-bg-card-hover: #2a2318;
  --gd2d-text: #f0e6d3;
  --gd2d-text-dim: #b8a88a;
  --gd2d-text-bright: #ffffff;
  --gd2d-border: #3a3025;
  --gd2d-gold: #DEB887;
  --gd2d-green: #66CDAA;
  --gd2d-brown: #8B4513;
  --gd2d-radius: 0.8rem;
  --gd2d-radius-sm: 0.4rem;
  --gd2d-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --gd2d-transition: all 0.25s ease;
  font-size: 62.5%;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--gd2d-bg);
  color: var(--gd2d-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: var(--gd2d-secondary); text-decoration: none; transition: var(--gd2d-transition); }
a:hover { color: var(--gd2d-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.gd2d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.gd2d-wrapper { padding: 1.5rem 0; }
.gd2d-main { padding-top: 6rem; }
@media (max-width: 768px) { .gd2d-main { padding-bottom: 80px; } }

/* ---- Header ---- */
.gd2d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1a1410 0%, #0C0C0C 100%);
  border-bottom: 1px solid var(--gd2d-border);
  max-width: 430px; margin: 0 auto;
  height: 5.6rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  backdrop-filter: blur(10px);
}
.gd2d-logo-area {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
}
.gd2d-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.gd2d-logo-text {
  font-size: 1.6rem; font-weight: 700; color: var(--gd2d-gold);
  letter-spacing: 0.5px;
}
.gd2d-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.gd2d-btn-register {
  background: linear-gradient(135deg, var(--gd2d-gold), #c9a05c);
  color: #0C0C0C; font-weight: 700; font-size: 1.2rem;
  padding: 0.5rem 1.2rem; border-radius: 2rem; border: none;
  cursor: pointer; transition: var(--gd2d-transition);
}
.gd2d-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(222,184,135,0.4); }
.gd2d-btn-login {
  background: transparent; color: var(--gd2d-secondary);
  font-weight: 600; font-size: 1.2rem;
  padding: 0.5rem 1rem; border-radius: 2rem;
  border: 1.5px solid var(--gd2d-secondary);
  cursor: pointer; transition: var(--gd2d-transition);
}
.gd2d-btn-login:hover { background: rgba(102,205,170,0.1); }
.gd2d-menu-toggle {
  background: none; border: none; color: var(--gd2d-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Mobile Menu ---- */
.gd2d-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: #141110; z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
  border-left: 1px solid var(--gd2d-border);
}
.gd2d-menu-active { right: 0 !important; }
.gd2d-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.gd2d-overlay-active { opacity: 1; pointer-events: all; }
.gd2d-menu-close {
  background: none; border: none; color: var(--gd2d-text);
  font-size: 2.2rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1.2rem;
}
.gd2d-menu-title {
  font-size: 1.8rem; color: var(--gd2d-gold); font-weight: 700;
  margin-bottom: 2rem; padding-top: 0.5rem;
}
.gd2d-menu-list a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0; border-bottom: 1px solid var(--gd2d-border);
  color: var(--gd2d-text); font-size: 1.4rem; transition: var(--gd2d-transition);
}
.gd2d-menu-list a:hover { color: var(--gd2d-gold); padding-left: 0.5rem; }
.gd2d-menu-list .material-icons { font-size: 2rem; color: var(--gd2d-secondary); }

/* ---- Carousel ---- */
.gd2d-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--gd2d-radius); margin-bottom: 1.5rem;
  aspect-ratio: 16/7;
}
.gd2d-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.gd2d-slide-active { opacity: 1; }
.gd2d-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.gd2d-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 2;
}
.gd2d-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--gd2d-transition);
}
.gd2d-dot-active { background: var(--gd2d-gold); transform: scale(1.3); }

/* ---- Section Headings ---- */
.gd2d-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--gd2d-gold);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gd2d-brown);
  display: flex; align-items: center; gap: 0.6rem;
}
.gd2d-section-title .material-icons { font-size: 2.2rem; color: var(--gd2d-secondary); }

/* ---- Game Grid ---- */
.gd2d-game-section { margin-bottom: 2rem; }
.gd2d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gd2d-game-card {
  text-align: center; cursor: pointer; transition: var(--gd2d-transition);
  border-radius: var(--gd2d-radius-sm); padding: 0.4rem;
}
.gd2d-game-card:hover {
  background: var(--gd2d-bg-card-hover);
  transform: translateY(-2px);
}
.gd2d-game-card img {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--gd2d-radius-sm);
  object-fit: cover; border: 1px solid var(--gd2d-border);
  margin-bottom: 0.3rem;
}
.gd2d-game-card span {
  font-size: 1.1rem; color: var(--gd2d-text-dim);
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; line-height: 1.3;
}

/* ---- Content Cards ---- */
.gd2d-card {
  background: var(--gd2d-bg-card); border-radius: var(--gd2d-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid var(--gd2d-border);
  box-shadow: var(--gd2d-shadow);
}
.gd2d-card h2 {
  font-size: 1.7rem; color: var(--gd2d-gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.gd2d-card h3 {
  font-size: 1.5rem; color: var(--gd2d-secondary); margin-bottom: 0.8rem;
}
.gd2d-card p {
  font-size: 1.35rem; line-height: 2rem; color: var(--gd2d-text-dim);
  margin-bottom: 0.8rem;
}

/* ---- Promo Buttons ---- */
.gd2d-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--gd2d-gold), #c9a05c);
  color: #0C0C0C; font-weight: 700; font-size: 1.3rem;
  padding: 0.8rem 2rem; border-radius: 2.5rem;
  cursor: pointer; border: none; transition: var(--gd2d-transition);
  text-align: center;
}
.gd2d-btn-promo:hover { transform: scale(1.05); box-shadow: 0 0 18px rgba(222,184,135,0.5); }
.gd2d-btn-promo-green {
  background: linear-gradient(135deg, var(--gd2d-secondary), #4da88a);
  color: #0C0C0C;
}
.gd2d-promo-text-link {
  color: var(--gd2d-gold); font-weight: 600; cursor: pointer;
  border-bottom: 1px dashed var(--gd2d-gold);
}
.gd2d-promo-text-link:hover { color: var(--gd2d-secondary); border-bottom-color: var(--gd2d-secondary); }

/* ---- FAQ Accordion ---- */
.gd2d-faq-item {
  border: 1px solid var(--gd2d-border); border-radius: var(--gd2d-radius-sm);
  margin-bottom: 0.8rem; overflow: hidden;
}
.gd2d-faq-q {
  padding: 1rem 1.2rem; font-weight: 600; font-size: 1.35rem;
  color: var(--gd2d-gold); background: var(--gd2d-bg-card);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center;
}
.gd2d-faq-a {
  padding: 0 1.2rem; max-height: 0; overflow: hidden;
  font-size: 1.3rem; color: var(--gd2d-text-dim); line-height: 2rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.gd2d-faq-open .gd2d-faq-a { max-height: 300px; padding: 1rem 1.2rem; }

/* ---- Footer ---- */
.gd2d-footer {
  background: #141110; border-top: 1px solid var(--gd2d-border);
  padding: 2rem 1.2rem 3rem; text-align: center;
}
.gd2d-footer-brand {
  font-size: 1.4rem; color: var(--gd2d-gold); margin-bottom: 1rem;
  line-height: 2rem;
}
.gd2d-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.gd2d-footer-links a {
  font-size: 1.2rem; padding: 0.4rem 0.8rem;
  background: var(--gd2d-bg-card); border-radius: 1.5rem;
  border: 1px solid var(--gd2d-border); color: var(--gd2d-text-dim);
}
.gd2d-footer-links a:hover { color: var(--gd2d-gold); border-color: var(--gd2d-gold); }
.gd2d-footer-copy {
  font-size: 1.1rem; color: #555; margin-top: 1rem;
}

/* ---- Bottom Nav ---- */
.gd2d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1410 0%, #0C0C0C 100%);
  border-top: 1px solid var(--gd2d-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}
.gd2d-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 60px; min-height: 56px;
  background: none; border: none; color: var(--gd2d-text-dim);
  cursor: pointer; transition: var(--gd2d-transition); position: relative;
}
.gd2d-bottom-nav-btn:hover, .gd2d-bottom-nav-btn:focus {
  color: var(--gd2d-gold); transform: scale(1.08);
}
.gd2d-bottom-nav-btn span {
  font-size: 1rem; line-height: 1.2;
}
.gd2d-bottom-nav-btn i,
.gd2d-bottom-nav-btn .material-icons {
  font-size: 22px;
}
.gd2d-bottom-nav-btn .iconify { font-size: 22px; }
.gd2d-bottom-nav-active {
  color: var(--gd2d-gold) !important;
}
.gd2d-bottom-nav-active::after {
  content: ''; position: absolute; top: -1px; left: 25%; right: 25%;
  height: 2px; background: var(--gd2d-gold); border-radius: 2px;
}

/* ---- Payment Grid ---- */
.gd2d-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.gd2d-payment-item {
  background: var(--gd2d-bg-card); border-radius: var(--gd2d-radius-sm);
  padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--gd2d-text-dim);
  border: 1px solid var(--gd2d-border);
}

/* ---- Winner Marquee ---- */
.gd2d-winner-list { overflow: hidden; }
.gd2d-winner-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(58,48,37,0.5);
  font-size: 1.2rem;
}
.gd2d-winner-name { color: var(--gd2d-gold); font-weight: 600; min-width: 70px; }
.gd2d-winner-game { color: var(--gd2d-text-dim); flex: 1; }
.gd2d-winner-amount { color: var(--gd2d-secondary); font-weight: 700; }

/* ---- Testimonials ---- */
.gd2d-testimonial {
  background: var(--gd2d-bg-card); border-radius: var(--gd2d-radius);
  padding: 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--gd2d-gold);
}
.gd2d-testimonial-text { font-size: 1.3rem; color: var(--gd2d-text-dim); line-height: 2rem; font-style: italic; }
.gd2d-testimonial-author { font-size: 1.1rem; color: var(--gd2d-secondary); margin-top: 0.5rem; }

/* ---- Scroll Reveal ---- */
.gd2d-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gd2d-revealed { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (min-width: 769px) {
  .gd2d-bottom-nav { display: none; }
  .gd2d-menu-toggle { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .gd2d-main { padding-bottom: 80px; }
}

/* ---- Utility ---- */
.gd2d-text-center { text-align: center; }
.gd2d-text-gold { color: var(--gd2d-gold); }
.gd2d-text-green { color: var(--gd2d-secondary); }
.gd2d-mb-1 { margin-bottom: 0.8rem; }
.gd2d-mb-2 { margin-bottom: 1.6rem; }
.gd2d-mt-1 { margin-top: 0.8rem; }
.gd2d-mt-2 { margin-top: 1.6rem; }
.gd2d-p-1 { padding: 0.8rem; }
.gd2d-p-2 { padding: 1.6rem; }
.gd2d-flex-center { display: flex; align-items: center; justify-content: center; }
