/**
 * 299bet apk - Main Stylesheet
 * All classes use prefix "sbc9-" for namespace isolation
 * Color palette: #ECF0F1 | #8470FF | #C0C0C0 | #778899 | #2C2C2C | #E9ECEF
 */

/* CSS Variables */
:root {
  --sbc9-primary: #8470FF;
  --sbc9-primary-dark: #6a58d9;
  --sbc9-primary-light: #a794ff;
  --sbc9-bg: #2C2C2C;
  --sbc9-bg-light: #3a3a3a;
  --sbc9-bg-card: #333333;
  --sbc9-text: #ECF0F1;
  --sbc9-text-muted: #778899;
  --sbc9-text-dark: #C0C0C0;
  --sbc9-border: #778899;
  --sbc9-accent: #8470FF;
  --sbc9-surface: #E9ECEF;
  --sbc9-gold: #FFD700;
  --sbc9-success: #2ecc71;
  --sbc9-danger: #e74c3c;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--sbc9-bg);
  color: var(--sbc9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sbc9-primary-light); text-decoration: none; }
a:hover { color: var(--sbc9-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.sbc9-container {
  width: 100%;
  padding: 0 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.sbc9-wrapper {
  width: 100%;
  overflow: hidden;
}

/* ========== HEADER ========== */
.sbc9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--sbc9-bg);
  border-bottom: 1px solid rgba(132, 112, 255, 0.3);
  max-width: 430px;
  margin: 0 auto;
}

.sbc9-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  height: 5rem;
}

.sbc9-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sbc9-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.4rem;
}

.sbc9-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sbc9-primary);
  white-space: nowrap;
}

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

.sbc9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 3.6rem;
  min-width: 4.4rem;
}

.sbc9-btn-register {
  background: var(--sbc9-primary);
  color: #fff;
}

.sbc9-btn-register:hover {
  background: var(--sbc9-primary-dark);
  transform: scale(1.03);
}

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

.sbc9-btn-login:hover {
  background: rgba(132, 112, 255, 0.1);
}

.sbc9-menu-toggle {
  background: none;
  border: none;
  color: var(--sbc9-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 3.4rem;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.sbc9-mobile-menu {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--sbc9-bg);
  border-bottom: 2px solid var(--sbc9-primary);
  padding: 1rem 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}

.sbc9-menu-active {
  transform: translateY(0);
  opacity: 1;
}

.sbc9-menu-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.sbc9-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--sbc9-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(119, 136, 153, 0.2);
  transition: background 0.2s;
}

.sbc9-menu-link:hover {
  background: rgba(132, 112, 255, 0.15);
  color: var(--sbc9-primary-light);
}

/* ========== CAROUSEL ========== */
.sbc9-carousel {
  position: relative;
  margin-top: 5rem;
  width: 100%;
  overflow: hidden;
}

.sbc9-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.sbc9-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/8;
  object-fit: cover;
}

.sbc9-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

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

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

/* ========== MAIN CONTENT ========== */
.sbc9-main {
  padding: 1.5rem 0;
}

.sbc9-section {
  padding: 1.5rem 0;
}

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

.sbc9-section-title h2,
.sbc9-section-title h3 {
  font-size: inherit;
  color: inherit;
}

h1.sbc9-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sbc9-text);
  line-height: 2.6rem;
  margin-bottom: 1rem;
}

h2.sbc9-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sbc9-primary);
  margin-bottom: 0.8rem;
}

h3.sbc9-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sbc9-text);
  margin-bottom: 0.6rem;
}

p.sbc9-p {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--sbc9-text-dark);
  margin-bottom: 0.8rem;
}

/* ========== GAME GRID ========== */
.sbc9-category-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sbc9-primary);
  margin: 1.5rem 0 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(132, 112, 255, 0.3);
}

.sbc9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.sbc9-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

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

.sbc9-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  object-fit: cover;
  border: 1.5px solid rgba(132, 112, 255, 0.2);
}

.sbc9-game-name {
  font-size: 1rem;
  color: var(--sbc9-text-dark);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ========== CARDS ========== */
.sbc9-card {
  background: var(--sbc9-bg-card);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(132, 112, 255, 0.15);
}

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

.sbc9-promo-link {
  display: inline-block;
  color: var(--sbc9-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.sbc9-promo-link:hover {
  color: var(--sbc9-primary-light);
}

.sbc9-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sbc9-primary), var(--sbc9-primary-dark));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 4.4rem;
}

.sbc9-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(132, 112, 255, 0.4);
}

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

.sbc9-footer-brand {
  font-size: 1.3rem;
  color: var(--sbc9-text-muted);
  line-height: 2rem;
  margin-bottom: 1rem;
}

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

.sbc9-footer-link {
  padding: 0.4rem 0.8rem;
  background: rgba(132, 112, 255, 0.15);
  border-radius: 0.4rem;
  color: var(--sbc9-primary-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sbc9-footer-link:hover {
  background: rgba(132, 112, 255, 0.3);
}

.sbc9-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sbc9-text-muted);
  border-top: 1px solid rgba(119, 136, 153, 0.3);
  padding-top: 1rem;
}

/* ========== BOTTOM NAVIGATION ========== */
.sbc9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--sbc9-bg);
  border-top: 1px solid rgba(132, 112, 255, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.sbc9-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.5rem;
  cursor: pointer;
  color: var(--sbc9-text-muted);
  transition: all 0.2s;
  background: none;
  border: none;
  padding: 0.3rem;
}

.sbc9-bnav-item:hover,
.sbc9-bnav-active {
  color: var(--sbc9-primary);
  transform: scale(1.08);
}

.sbc9-bnav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.sbc9-bnav-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* ========== LISTS ========== */
.sbc9-list {
  list-style: none;
  padding: 0;
}

.sbc9-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(119, 136, 153, 0.15);
  font-size: 1.3rem;
  color: var(--sbc9-text-dark);
  line-height: 2rem;
}

.sbc9-faq-item {
  margin-bottom: 1rem;
}

.sbc9-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sbc9-primary-light);
  margin-bottom: 0.3rem;
}

.sbc9-faq-a {
  font-size: 1.3rem;
  color: var(--sbc9-text-dark);
  line-height: 2rem;
  padding-left: 1rem;
}

/* Utility classes */
.sbc9-mb-1 { margin-bottom: 0.8rem; }
.sbc9-mb-2 { margin-bottom: 1.6rem; }
.sbc9-mt-1 { margin-top: 0.8rem; }
.sbc9-mt-2 { margin-top: 1.6rem; }
.sbc9-text-center { text-align: center; }
.sbc9-text-bold { font-weight: 700; }
.sbc9-text-primary { color: var(--sbc9-primary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .sbc9-main-content {
    padding-bottom: 8rem;
  }
}

@media (min-width: 769px) {
  .sbc9-bottom-nav {
    display: none;
  }
}

@media (min-width: 431px) {
  body {
    border-left: 1px solid rgba(132, 112, 255, 0.1);
    border-right: 1px solid rgba(132, 112, 255, 0.1);
  }
}
