/**
 * 299bet apk - Core Stylesheet
 * Class prefix: s9ae-
 * Color palette: #FF6347 | #34495E | #FFC0CB | #FF1493 | #DEE2E6
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --s9ae-primary: #FF6347;
  --s9ae-secondary: #FF1493;
  --s9ae-bg: #34495E;
  --s9ae-bg-dark: #2C3E50;
  --s9ae-bg-card: #3D566E;
  --s9ae-text: #DEE2E6;
  --s9ae-text-light: #FFC0CB;
  --s9ae-accent: #FF6347;
  --s9ae-border: rgba(255, 99, 71, 0.3);
  --s9ae-radius: 0.8rem;
  --s9ae-radius-sm: 0.5rem;
  --s9ae-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  --s9ae-transition: all 0.3s ease;
}

/* 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', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--s9ae-bg);
  color: var(--s9ae-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--s9ae-accent);
  transition: var(--s9ae-transition);
}

a:hover {
  color: var(--s9ae-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* Header */
.s9ae-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s9ae-bg-dark), var(--s9ae-bg));
  border-bottom: 2px solid var(--s9ae-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.s9ae-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

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

.s9ae-logo-area span {
  color: var(--s9ae-primary);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.s9ae-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s9ae-btn-register, .s9ae-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--s9ae-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s9ae-transition);
  white-space: nowrap;
}

.s9ae-btn-register {
  background: linear-gradient(135deg, var(--s9ae-primary), var(--s9ae-secondary));
  color: #fff;
}

.s9ae-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 99, 71, 0.5);
}

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

.s9ae-btn-login:hover {
  background: var(--s9ae-primary);
  color: #fff;
}

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

/* Mobile Menu */
.s9ae-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s9ae-bg-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.s9ae-menu-active {
  right: 0 !important;
}

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

.s9ae-mobile-menu .s9ae-menu-header span {
  color: var(--s9ae-primary);
  font-size: 1.6rem;
  font-weight: 700;
}

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

.s9ae-menu-nav {
  list-style: none;
}

.s9ae-menu-nav li {
  margin-bottom: 0.3rem;
}

.s9ae-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--s9ae-text);
  font-size: 1.4rem;
  border-radius: var(--s9ae-radius-sm);
  transition: var(--s9ae-transition);
}

.s9ae-menu-nav a:hover {
  background: rgba(255, 99, 71, 0.15);
  color: var(--s9ae-primary);
}

.s9ae-menu-nav a i,
.s9ae-menu-nav a span.material-icons-outlined {
  font-size: 2rem;
  color: var(--s9ae-primary);
}

.s9ae-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--s9ae-transition);
}

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

/* Slider */
.s9ae-slider {
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  border-radius: 0 0 var(--s9ae-radius) var(--s9ae-radius);
}

.s9ae-slide {
  display: none;
  cursor: pointer;
  position: relative;
}

.s9ae-slide-active {
  display: block;
}

.s9ae-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.s9ae-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

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

.s9ae-dot-active {
  background: var(--s9ae-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section Headings */
.s9ae-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s9ae-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--s9ae-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s9ae-section-title i {
  color: var(--s9ae-primary);
}

/* Game Grid */
.s9ae-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.s9ae-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--s9ae-transition);
  border-radius: var(--s9ae-radius-sm);
  padding: 0.5rem;
}

.s9ae-game-item:hover {
  background: rgba(255, 99, 71, 0.1);
  transform: translateY(-2px);
}

.s9ae-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s9ae-radius-sm);
  border: 2px solid transparent;
  transition: var(--s9ae-transition);
  object-fit: cover;
}

.s9ae-game-item:hover img {
  border-color: var(--s9ae-primary);
}

.s9ae-game-item p {
  font-size: 1.1rem;
  color: var(--s9ae-text);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.s9ae-cat-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s9ae-primary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--s9ae-secondary);
}

/* Content Cards */
.s9ae-card {
  background: var(--s9ae-bg-card);
  border-radius: var(--s9ae-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--s9ae-shadow);
  border: 1px solid var(--s9ae-border);
}

.s9ae-card h2, .s9ae-card h3 {
  color: var(--s9ae-primary);
  margin-bottom: 0.8rem;
}

.s9ae-card p {
  line-height: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Promo Buttons & Links */
.s9ae-promo-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--s9ae-primary), var(--s9ae-secondary));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: 2.5rem;
  cursor: pointer;
  transition: var(--s9ae-transition);
  text-align: center;
}

.s9ae-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 99, 71, 0.5);
  color: #fff;
}

.s9ae-promo-text {
  color: var(--s9ae-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--s9ae-primary);
  transition: var(--s9ae-transition);
}

.s9ae-promo-text:hover {
  color: var(--s9ae-secondary);
}

/* Footer */
.s9ae-footer {
  background: var(--s9ae-bg-dark);
  padding: 2rem 1rem 6rem;
  margin-top: 2rem;
  border-top: 2px solid var(--s9ae-primary);
}

.s9ae-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--s9ae-text-light);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

.s9ae-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.s9ae-footer-links a {
  padding: 0.4rem 1rem;
  background: var(--s9ae-bg-card);
  color: var(--s9ae-text);
  font-size: 1.1rem;
  border-radius: var(--s9ae-radius-sm);
  transition: var(--s9ae-transition);
}

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

.s9ae-footer-copy {
  text-align: center;
  color: rgba(222, 226, 230, 0.5);
  font-size: 1.1rem;
}

/* Bottom Nav */
.s9ae-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(135deg, var(--s9ae-bg-dark), #1A252F);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid var(--s9ae-primary);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.s9ae-bottom-nav button {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--s9ae-text);
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: var(--s9ae-transition);
  padding: 0.4rem;
}

.s9ae-bottom-nav button i,
.s9ae-bottom-nav button span.material-icons-outlined,
.s9ae-bottom-nav button span.iconify {
  font-size: 22px;
  transition: var(--s9ae-transition);
}

.s9ae-bottom-nav button:hover,
.s9ae-bottom-nav button.s9ae-nav-active {
  color: var(--s9ae-primary);
}

.s9ae-bottom-nav button:hover i,
.s9ae-bottom-nav button.s9ae-nav-active i,
.s9ae-bottom-nav button:hover span.material-icons-outlined,
.s9ae-bottom-nav button.s9ae-nav-active span.material-icons-outlined {
  transform: scale(1.15);
  color: var(--s9ae-primary);
}

/* Main content padding for mobile */
.s9ae-main-content {
  padding-top: 52px;
  padding-bottom: 0;
}

/* CTA Banner */
.s9ae-cta-banner {
  background: linear-gradient(135deg, var(--s9ae-primary), var(--s9ae-secondary));
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--s9ae-radius);
  margin: 1.5rem 0;
}

.s9ae-cta-banner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.s9ae-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Feature List */
.s9ae-feature-list {
  list-style: none;
  margin: 0.5rem 0;
}

.s9ae-feature-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.s9ae-feature-list li i {
  color: var(--s9ae-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Winner Item */
.s9ae-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.s9ae-winner-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--s9ae-primary);
}

.s9ae-winner-item .s9ae-winner-info {
  flex: 1;
}

.s9ae-winner-item .s9ae-winner-name {
  font-size: 1.2rem;
  color: var(--s9ae-text);
}

.s9ae-winner-item .s9ae-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--s9ae-primary);
}

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

.s9ae-payment-item {
  background: var(--s9ae-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--s9ae-radius-sm);
  font-size: 1.2rem;
  color: var(--s9ae-text);
  border: 1px solid var(--s9ae-border);
}

/* Responsive */
@media (min-width: 769px) {
  .s9ae-bottom-nav {
    display: none;
  }
  .s9ae-menu-toggle {
    display: none;
  }
  .s9ae-container {
    max-width: 430px;
  }
  .s9ae-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .s9ae-main-content {
    padding-bottom: 70px;
  }
}

/* Animations */
@keyframes s9ae-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.s9ae-animate-pulse {
  animation: s9ae-pulse 2s infinite;
}

@keyframes s9ae-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.s9ae-fade-in {
  animation: s9ae-fadeIn 0.5s ease-out;
}
