/**
 * 789bingo App APK - Theme Stylesheet
 * Prefix: v1d3-
 * Color palette: #4682B4 | #1B263B | #4169E1 | #00CED1
 */

/* CSS Variables */
:root {
  --v1d3-primary: #4682B4;
  --v1d3-bg-dark: #1B263B;
  --v1d3-accent: #4169E1;
  --v1d3-highlight: #00CED1;
  --v1d3-text-light: #E8F0FE;
  --v1d3-text-muted: #94A8C4;
  --v1d3-bg-card: #243447;
  --v1d3-bg-card-hover: #2D4158;
  --v1d3-border: #34506E;
  --v1d3-warning: #FFB347;
  --v1d3-radius: 10px;
  --v1d3-radius-lg: 16px;
  --v1d3-shadow: 0 4px 16px rgba(0,0,0,0.25);
  --v1d3-transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--v1d3-bg-dark);
  color: var(--v1d3-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--v1d3-highlight); text-decoration: none; transition: var(--v1d3-transition); }
a:hover { color: #fff; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER ============ */
.v1d3-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: linear-gradient(135deg, var(--v1d3-bg-dark) 0%, #1E3050 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000;
  border-bottom: 2px solid var(--v1d3-accent);
  box-shadow: 0 2px 12px rgba(65, 105, 225, 0.3);
}
.v1d3-logo-area { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.v1d3-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v1d3-logo-area span { font-size: 1.4rem; font-weight: 700; color: var(--v1d3-highlight); white-space: nowrap; }
.v1d3-header-actions { display: flex; align-items: center; gap: 8px; }
.v1d3-btn-register {
  background: linear-gradient(135deg, var(--v1d3-accent) 0%, var(--v1d3-primary) 100%);
  color: #fff; border: none; padding: 6px 14px; border-radius: 20px;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: var(--v1d3-transition); white-space: nowrap;
}
.v1d3-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(65, 105, 225, 0.5); }
.v1d3-btn-login {
  background: transparent; color: var(--v1d3-highlight);
  border: 1.5px solid var(--v1d3-highlight); padding: 5px 12px;
  border-radius: 20px; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: var(--v1d3-transition); white-space: nowrap;
}
.v1d3-btn-login:hover { background: var(--v1d3-highlight); color: var(--v1d3-bg-dark); }
.v1d3-menu-toggle {
  background: none; border: none; color: var(--v1d3-highlight);
  font-size: 2.2rem; cursor: pointer; padding: 4px; display: flex; align-items: center;
}

/* ============ MOBILE MENU ============ */
.v1d3-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.v1d3-overlay-active { display: block; }
.v1d3-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: linear-gradient(180deg, var(--v1d3-bg-dark) 0%, #1A2A42 100%);
  z-index: 9999; transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 0; overflow-y: auto; border-left: 2px solid var(--v1d3-accent);
}
.v1d3-menu-active { right: 0; }
.v1d3-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px 16px; border-bottom: 1px solid var(--v1d3-border);
}
.v1d3-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--v1d3-highlight); }
.v1d3-menu-close { background: none; border: none; color: var(--v1d3-text-muted); font-size: 2rem; cursor: pointer; }
.v1d3-menu-links { list-style: none; padding: 12px 0; }
.v1d3-menu-links li { border-bottom: 1px solid rgba(52, 80, 110, 0.4); }
.v1d3-menu-links a {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  color: var(--v1d3-text-light); font-size: 1.4rem; transition: var(--v1d3-transition);
}
.v1d3-menu-links a:hover { background: var(--v1d3-bg-card); color: var(--v1d3-highlight); text-decoration: none; }
.v1d3-menu-links .fas, .v1d3-menu-links .far, .v1d3-menu-links .material-icons { font-size: 18px; color: var(--v1d3-accent); }

/* ============ CAROUSEL ============ */
.v1d3-carousel {
  position: relative; width: 100%; margin-top: 56px; overflow: hidden;
  border-radius: 0 0 var(--v1d3-radius) var(--v1d3-radius);
}
.v1d3-slide { display: none; width: 100%; cursor: pointer; transition: opacity 0.5s ease; }
.v1d3-slide:first-child { display: block; }
.v1d3-slide img { width: 100%; height: 180px; object-fit: cover; }
.v1d3-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.v1d3-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--v1d3-transition); border: none;
}
.v1d3-dot-active { background: var(--v1d3-highlight); transform: scale(1.3); }

/* ============ MAIN CONTENT ============ */
.v1d3-main { padding: 16px 12px 20px; }
.v1d3-section { margin-bottom: 24px; }
.v1d3-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v1d3-highlight);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--v1d3-accent);
  display: flex; align-items: center; gap: 8px;
}
.v1d3-section-title .fas, .v1d3-section-title .far, .v1d3-section-title .material-icons {
  color: var(--v1d3-accent); font-size: 2rem;
}
.v1d3-content-text { font-size: 1.4rem; line-height: 2.1rem; color: var(--v1d3-text-light); margin-bottom: 12px; }
.v1d3-content-text strong { color: var(--v1d3-highlight); }

/* ============ GAME GRID ============ */
.v1d3-category-label {
  font-size: 1.5rem; font-weight: 700; color: var(--v1d3-accent);
  margin: 16px 0 8px; padding-left: 4px; display: flex; align-items: center; gap: 6px;
}
.v1d3-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.v1d3-game-item {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  transition: var(--v1d3-transition); border-radius: var(--v1d3-radius);
  padding: 6px 4px; background: var(--v1d3-bg-card);
}
.v1d3-game-item:hover {
  transform: translateY(-3px); background: var(--v1d3-bg-card-hover);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.15);
}
.v1d3-game-item img { width: 56px; height: 56px; border-radius: 8px; margin-bottom: 4px; object-fit: cover; }
.v1d3-game-item span {
  font-size: 1rem; color: var(--v1d3-text-muted); text-align: center; line-height: 1.3rem;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; max-width: 100%;
}

/* ============ CARDS ============ */
.v1d3-card {
  background: var(--v1d3-bg-card); border-radius: var(--v1d3-radius-lg);
  padding: 16px; margin-bottom: 16px; border: 1px solid var(--v1d3-border);
  box-shadow: var(--v1d3-shadow);
}
.v1d3-card h3 { font-size: 1.6rem; color: var(--v1d3-highlight); margin-bottom: 8px; }
.v1d3-card p { font-size: 1.3rem; color: var(--v1d3-text-light); line-height: 1.9rem; }

/* ============ CTA BUTTONS ============ */
.v1d3-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v1d3-accent) 0%, var(--v1d3-highlight) 100%);
  color: #fff; padding: 12px 28px; border-radius: 30px; font-size: 1.5rem;
  font-weight: 700; cursor: pointer; transition: var(--v1d3-transition);
  text-align: center; border: none; box-shadow: 0 4px 16px rgba(0, 206, 209, 0.3);
}
.v1d3-cta-btn:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0, 206, 209, 0.5); color: #fff; text-decoration: none; }
.v1d3-cta-link {
  color: var(--v1d3-highlight); font-weight: 700; cursor: pointer;
  transition: var(--v1d3-transition); text-decoration: underline;
}
.v1d3-cta-link:hover { color: #fff; }
.v1d3-promo-inline { color: var(--v1d3-highlight); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ============ FOOTER ============ */
.v1d3-footer {
  background: linear-gradient(180deg, var(--v1d3-bg-dark) 0%, #0F1923 100%);
  padding: 24px 16px 80px; border-top: 2px solid var(--v1d3-accent); text-align: center;
}
.v1d3-footer-brand { font-size: 1.4rem; color: var(--v1d3-text-muted); line-height: 2rem; margin-bottom: 16px; }
.v1d3-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.v1d3-footer-link {
  display: inline-block; background: var(--v1d3-bg-card); color: var(--v1d3-highlight);
  padding: 6px 14px; border-radius: 20px; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: var(--v1d3-transition); text-decoration: none;
  border: 1px solid var(--v1d3-border);
}
.v1d3-footer-link:hover { background: var(--v1d3-highlight); color: var(--v1d3-bg-dark); text-decoration: none; }
.v1d3-footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.v1d3-footer-nav a { color: var(--v1d3-text-muted); font-size: 1.2rem; transition: var(--v1d3-transition); }
.v1d3-footer-nav a:hover { color: var(--v1d3-highlight); }
.v1d3-copyright { font-size: 1.1rem; color: rgba(148, 168, 196, 0.6); margin-top: 12px; }

/* ============ BOTTOM NAV ============ */
.v1d3-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(135deg, var(--v1d3-bg-dark) 0%, #1A2A42 100%);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; border-top: 2px solid var(--v1d3-accent);
  box-shadow: 0 -2px 12px rgba(65, 105, 225, 0.3);
}
.v1d3-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  color: var(--v1d3-text-muted); cursor: pointer; transition: var(--v1d3-transition);
  padding: 4px; position: relative;
}
.v1d3-bottom-nav-btn:hover, .v1d3-nav-active { color: var(--v1d3-highlight); transform: scale(1.1); }
.v1d3-bottom-nav-btn .fas, .v1d3-bottom-nav-btn .far,
.v1d3-bottom-nav-btn .material-icons, .v1d3-bottom-nav-btn ion-icon,
.v1d3-bottom-nav-btn .bi { font-size: 22px; }
.v1d3-bottom-nav-btn span { font-size: 1rem; margin-top: 2px; white-space: nowrap; }
.v1d3-nav-active::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--v1d3-highlight); border-radius: 2px;
}

/* ============ HELPER CLASSES ============ */
.v1d3-text-center { text-align: center; }
.v1d3-mt-8 { margin-top: 8px; }
.v1d3-mt-16 { margin-top: 16px; }
.v1d3-mb-8 { margin-bottom: 8px; }
.v1d3-mb-16 { margin-bottom: 16px; }
.v1d3-hidden { display: none !important; }
.v1d3-promo-bar {
  background: linear-gradient(90deg, var(--v1d3-accent) 0%, var(--v1d3-highlight) 100%);
  padding: 10px 12px; text-align: center; border-radius: var(--v1d3-radius); margin-bottom: 16px;
}
.v1d3-promo-bar span { color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; }

/* ============ FAQ ACCORDION ============ */
.v1d3-faq-item {
  background: var(--v1d3-bg-card); border-radius: var(--v1d3-radius);
  margin-bottom: 8px; overflow: hidden; border: 1px solid var(--v1d3-border);
}
.v1d3-faq-q { padding: 12px 14px; font-weight: 700; color: var(--v1d3-highlight); font-size: 1.4rem; }
.v1d3-faq-a { padding: 0 14px 12px; color: var(--v1d3-text-light); font-size: 1.3rem; line-height: 1.9rem; }

/* ============ TESTIMONIAL ============ */
.v1d3-testimonial {
  background: var(--v1d3-bg-card); border-left: 3px solid var(--v1d3-highlight);
  padding: 12px 14px; border-radius: 0 var(--v1d3-radius) var(--v1d3-radius) 0; margin-bottom: 10px;
}
.v1d3-testimonial p { font-size: 1.3rem; font-style: italic; color: var(--v1d3-text-light); line-height: 1.8rem; margin-bottom: 4px; }
.v1d3-testimonial cite { font-size: 1.1rem; color: var(--v1d3-accent); font-style: normal; }

/* ============ WINNER TABLE ============ */
.v1d3-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--v1d3-bg-card); border-radius: var(--v1d3-radius);
  margin-bottom: 6px; font-size: 1.2rem;
}
.v1d3-winner-name { color: var(--v1d3-highlight); font-weight: 600; }
.v1d3-winner-amount { color: var(--v1d3-warning); font-weight: 700; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) { .v1d3-main { padding-bottom: 80px; } }
@media (min-width: 769px) { .v1d3-bottom-nav { display: none; } }
