/**
 * ac365 - Theme Stylesheet
 * Prefix: g414-
 * Palette: #262626 | #CD5C5C | #ADB5BD | #B03060 | #FF7F50
 * Design: Mobile-first, max-width 430px
 */

:root {
  --g414-primary: #CD5C5C;
  --g414-secondary: #B03060;
  --g414-accent: #FF7F50;
  --g414-bg: #262626;
  --g414-bg-light: #2f2f2f;
  --g414-bg-card: #333333;
  --g414-text: #ADB5BD;
  --g414-text-light: #d4d8dc;
  --g414-text-white: #f0f0f0;
  --g414-border: #3d3d3d;
  --g414-gold: #FFD700;
  --g414-radius: 8px;
  --g414-radius-sm: 4px;
  --g414-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g414-header-h: 56px;
  --g414-bottom-nav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--g414-bg);
  color: var(--g414-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--g414-accent); text-decoration: none; }
a:hover { color: var(--g414-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.g414-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--g414-header-h);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
  border-bottom: 2px solid var(--g414-primary);
}
.g414-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--g414-text-white); font-size: 1.8rem; font-weight: 700;
}
.g414-logo img { width: 28px; height: 28px; border-radius: 4px; }
.g414-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g414-btn-register, .g414-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 20px; border: none;
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; touch-action: manipulation;
}
.g414-btn-register {
  background: linear-gradient(135deg, var(--g414-primary), var(--g414-secondary));
  color: #fff;
}
.g414-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(205,92,92,0.4); }
.g414-btn-login {
  background: transparent; color: var(--g414-accent);
  border: 1.5px solid var(--g414-accent);
}
.g414-btn-login:hover { background: var(--g414-accent); color: #fff; }
.g414-menu-toggle {
  background: none; border: none; color: var(--g414-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  touch-action: manipulation;
}

/* Mobile Menu */
.g414-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.g414-overlay-active { opacity: 1; pointer-events: auto; }
.g414-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: linear-gradient(180deg, #1e1e1e, #2a2a2a);
  z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.g414-menu-active { right: 0; }
.g414-mobile-menu .g414-menu-close {
  background: none; border: none; color: var(--g414-text);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1.2rem;
}
.g414-mobile-menu nav { margin-top: 3rem; }
.g414-mobile-menu nav a {
  display: block; padding: 1rem 0; color: var(--g414-text-light);
  font-size: 1.5rem; border-bottom: 1px solid var(--g414-border);
  transition: color 0.2s;
}
.g414-mobile-menu nav a:hover { color: var(--g414-primary); }

/* Main Content */
.g414-main {
  padding-top: calc(var(--g414-header-h) + 0.8rem);
  padding-bottom: 2rem;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g414-main { padding-bottom: calc(var(--g414-bottom-nav-h) + 2rem); }
}

/* Carousel */
.g414-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--g414-radius); margin-bottom: 1.5rem;
}
.g414-carousel-inner { position: relative; width: 100%; }
.g414-carousel-slide {
  display: none; width: 100%; cursor: pointer;
}
.g414-slide-active { display: block; }
.g414-carousel-slide img { width: 100%; height: auto; border-radius: var(--g414-radius); }
.g414-carousel-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 0;
}
.g414-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--g414-border); border: none; cursor: pointer;
  transition: background 0.3s;
}
.g414-dot-active { background: var(--g414-primary); }

/* Section */
.g414-section {
  padding: 1.5rem 1.2rem; margin-bottom: 1rem;
}
.g414-section-title {
  font-size: 2rem; font-weight: 700; color: var(--g414-text-white);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g414-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.g414-section-title i { color: var(--g414-accent); font-size: 2rem; }

/* Game Grid */
.g414-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (min-width: 380px) {
  .g414-game-grid { grid-template-columns: repeat(4, 1fr); }
}
.g414-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
}
.g414-game-item:hover { transform: translateY(-2px); }
.g414-game-item img {
  width: 72px; height: 72px; border-radius: var(--g414-radius-sm);
  border: 2px solid var(--g414-border); object-fit: cover;
  transition: border-color 0.2s;
}
.g414-game-item:hover img { border-color: var(--g414-primary); }
.g414-game-item span {
  font-size: 1.1rem; color: var(--g414-text); text-align: center;
  margin-top: 0.3rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Category Label */
.g414-cat-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--g414-secondary), var(--g414-primary));
  color: #fff; font-size: 1.5rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1rem;
}

/* Content Blocks */
.g414-content-block {
  background: var(--g414-bg-card); border-radius: var(--g414-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border-left: 3px solid var(--g414-primary);
}
.g414-content-block h2 {
  font-size: 1.8rem; color: var(--g414-text-white);
  margin-bottom: 0.8rem;
}
.g414-content-block h3 {
  font-size: 1.6rem; color: var(--g414-primary);
  margin: 1rem 0 0.5rem;
}
.g414-content-block p {
  font-size: 1.4rem; color: var(--g414-text);
  line-height: 1.7; margin-bottom: 0.8rem;
}
.g414-content-block ul {
  padding-left: 1.5rem; margin-bottom: 0.8rem;
}
.g414-content-block li {
  font-size: 1.4rem; color: var(--g414-text);
  line-height: 1.6; margin-bottom: 0.3rem;
}

/* Promo Link Button */
.g414-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g414-primary), var(--g414-accent));
  color: #fff !important; font-size: 1.5rem; font-weight: 600;
  padding: 1rem 2rem; border-radius: 30px; cursor: pointer;
  text-align: center; transition: all 0.3s; margin: 0.5rem 0;
  touch-action: manipulation;
}
.g414-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(205,92,92,0.4);
}

/* Promo Text Link */
.g414-promo-link {
  color: var(--g414-accent); font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

/* Footer */
.g414-footer {
  background: linear-gradient(180deg, #1e1e1e, #141414);
  padding: 2rem 1.2rem; text-align: center;
  border-top: 2px solid var(--g414-primary);
}
.g414-footer-brand {
  color: var(--g414-text-light); font-size: 1.3rem;
  line-height: 1.6; margin-bottom: 1.2rem;
}
.g414-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem; margin-bottom: 1.2rem;
}
.g414-footer-links a {
  background: var(--g414-bg-card); color: var(--g414-text);
  padding: 0.5rem 1rem; border-radius: 20px;
  font-size: 1.2rem; border: 1px solid var(--g414-border);
  transition: all 0.2s;
}
.g414-footer-links a:hover {
  background: var(--g414-primary); color: #fff;
  border-color: var(--g414-primary);
}
.g414-footer-copy {
  color: var(--g414-text); font-size: 1.1rem;
  border-top: 1px solid var(--g414-border);
  padding-top: 1rem;
}

/* Bottom Navigation */
.g414-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--g414-bottom-nav-h);
  background: linear-gradient(180deg, #1e1e1e, #111111);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g414-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
@media (min-width: 769px) { .g414-bottom-nav { display: none; } }
.g414-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 54px;
  background: none; border: none; cursor: pointer;
  color: var(--g414-text); font-size: 1rem;
  transition: all 0.2s; touch-action: manipulation;
  position: relative;
}
.g414-bottom-nav-btn .g414-nav-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.g414-bottom-nav-btn .g414-nav-label { font-size: 1rem; line-height: 1; }
.g414-bottom-nav-btn:hover, .g414-bottom-nav-btn.g414-nav-active {
  color: var(--g414-primary);
}
.g414-bottom-nav-btn.g414-nav-active::after {
  content: ''; position: absolute; top: -2px; left: 50%;
  transform: translateX(-50%); width: 24px; height: 3px;
  background: var(--g414-primary); border-radius: 2px;
}

/* Winners Ticker */
.g414-winners {
  background: var(--g414-bg-card); border-radius: var(--g414-radius);
  padding: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.g414-winners-title {
  font-size: 1.4rem; color: var(--g414-gold);
  font-weight: 600; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.g414-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0; border-bottom: 1px solid var(--g414-border);
  font-size: 1.3rem;
}
.g414-winner-item:last-child { border-bottom: none; }
.g414-winner-name { color: var(--g414-text-light); }
.g414-winner-amount { color: var(--g414-accent); font-weight: 600; }

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

/* RTP Table */
.g414-rtp-table {
  width: 100%; border-collapse: collapse; font-size: 1.3rem;
}
.g414-rtp-table th {
  background: var(--g414-bg-light); color: var(--g414-primary);
  padding: 0.6rem; text-align: left; font-weight: 600;
}
.g414-rtp-table td {
  padding: 0.6rem; border-bottom: 1px solid var(--g414-border);
  color: var(--g414-text);
}

/* FAQ */
.g414-faq-item {
  background: var(--g414-bg-card); border-radius: var(--g414-radius-sm);
  margin-bottom: 0.8rem; padding: 1rem;
}
.g414-faq-q {
  font-size: 1.4rem; font-weight: 600; color: var(--g414-accent);
  margin-bottom: 0.4rem;
}
.g414-faq-a {
  font-size: 1.3rem; color: var(--g414-text); line-height: 1.5;
}

/* Testimonials */
.g414-testimonial {
  background: var(--g414-bg-card); border-radius: var(--g414-radius);
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--g414-secondary);
}
.g414-testimonial-text {
  font-size: 1.3rem; color: var(--g414-text);
  font-style: italic; margin-bottom: 0.5rem;
}
.g414-testimonial-author {
  font-size: 1.2rem; color: var(--g414-primary); font-weight: 600;
}

/* Responsive helpers */
.g414-text-center { text-align: center; }
.g414-mt-1 { margin-top: 0.5rem; }
.g414-mb-1 { margin-bottom: 0.5rem; }
.g414-py-2 { padding: 1rem 0; }
.g414-hidden { display: none; }
