/**
 * qqee login - Main Stylesheet
 * Prefix: s808-
 * Palette: #2C3E50 | #1E1E1E | #95A5A6
 */

:root {
  --s808-primary: #2C3E50;
  --s808-bg: #1E1E1E;
  --s808-muted: #95A5A6;
  --s808-accent: #E74C3C;
  --s808-accent2: #F39C12;
  --s808-text: #ECF0F1;
  --s808-text-dim: #BDC3C7;
  --s808-card-bg: #2A2A2A;
  --s808-border: #3A3A3A;
  --s808-success: #27AE60;
  --s808-radius: 0.8rem;
  --s808-radius-sm: 0.4rem;
  --s808-shadow: 0 0.2rem 1rem rgba(0,0,0,0.4);
}

*, *::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-color: var(--s808-bg);
  color: var(--s808-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--s808-accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === HEADER === */
.s808-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--s808-primary), #1a252f);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.2rem solid var(--s808-accent);
}

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

.s808-logo-wrap img {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.s808-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s808-accent2);
  letter-spacing: 0.05rem;
}

.s808-header-btns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.s808-btn-register {
  background: var(--s808-accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--s808-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.s808-btn-register:hover {
  background: #c0392b;
  transform: scale(1.03);
}

.s808-btn-login {
  background: transparent;
  color: var(--s808-accent2);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border: 0.15rem solid var(--s808-accent2);
  border-radius: var(--s808-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.s808-btn-login:hover {
  background: var(--s808-accent2);
  color: var(--s808-bg);
}

.s808-menu-toggle {
  background: none;
  border: none;
  color: var(--s808-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

/* === MOBILE MENU === */
.s808-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s808-primary);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.s808-menu-active {
  right: 0;
}

.s808-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.s808-overlay-active {
  display: block;
}

.s808-menu-close {
  background: none;
  border: none;
  color: var(--s808-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.s808-menu-title {
  font-size: 1.6rem;
  color: var(--s808-accent2);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.1rem solid var(--s808-border);
}

.s808-menu-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.3rem;
  color: var(--s808-text-dim);
  border-bottom: 0.1rem solid var(--s808-border);
  transition: color 0.2s;
}

.s808-menu-link:hover {
  color: var(--s808-accent2);
  text-decoration: none;
}

/* === MAIN CONTENT === */
.s808-main {
  padding-top: 5.5rem;
}

/* === CAROUSEL === */
.s808-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.s808-slide img {
  width: 100%;
  height: auto;
  min-height: 150px;
  object-fit: cover;
}

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

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

.s808-dot-active {
  background: var(--s808-accent2);
}

/* === SECTION TITLES === */
.s808-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s808-accent2);
  padding: 1.2rem 1rem 0.6rem;
  border-left: 0.3rem solid var(--s808-accent);
  margin: 0.5rem 1rem;
}

.s808-section-subtitle {
  font-size: 1.3rem;
  color: var(--s808-text-dim);
  padding: 0 1rem 0.8rem;
  margin: 0 1rem;
}

/* === GAME GRID === */
.s808-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
}

.s808-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--s808-radius-sm);
  padding: 0.4rem;
}

.s808-game-item:hover {
  transform: scale(1.05);
  background: var(--s808-card-bg);
}

.s808-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s808-radius-sm);
  object-fit: cover;
  border: 0.1rem solid var(--s808-border);
}

.s808-game-name {
  font-size: 1rem;
  color: var(--s808-text-dim);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CONTENT CARDS === */
.s808-card {
  background: var(--s808-card-bg);
  border-radius: var(--s808-radius);
  padding: 1.2rem;
  margin: 0.8rem 1rem;
  border: 0.1rem solid var(--s808-border);
}

.s808-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s808-accent2);
  margin-bottom: 0.6rem;
}

.s808-card-text {
  font-size: 1.2rem;
  line-height: 1.7rem;
  color: var(--s808-text-dim);
}

/* === PROMO BUTTONS === */
.s808-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s808-accent), #c0392b);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--s808-radius);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  margin: 0.5rem 0;
}

.s808-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0.4rem 1.5rem rgba(231,76,60,0.4);
}

.s808-promo-text {
  color: var(--s808-accent2);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.s808-promo-text:hover {
  color: var(--s808-accent);
}

/* === BOTTOM NAV === */
.s808-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #1a252f, var(--s808-bg));
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  border-top: 0.15rem solid var(--s808-accent);
  padding: 0 0.3rem;
}

.s808-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--s808-muted);
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.2rem;
  padding: 0.3rem;
}

.s808-bottom-nav-btn i,
.s808-bottom-nav-btn .material-icons {
  font-size: 22px;
}

.s808-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.1rem;
}

.s808-bottom-nav-btn:hover,
.s808-nav-active {
  color: var(--s808-accent2);
}

.s808-nav-active i,
.s808-nav-active .material-icons {
  transform: scale(1.15);
}

/* === FOOTER === */
.s808-footer {
  background: var(--s808-primary);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  border-top: 0.2rem solid var(--s808-accent);
}

.s808-footer-brand {
  font-size: 1.2rem;
  color: var(--s808-text-dim);
  line-height: 1.6rem;
  margin-bottom: 1rem;
}

.s808-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.s808-footer-link {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--s808-accent2);
  padding: 0.3rem 0.6rem;
  background: var(--s808-card-bg);
  border-radius: var(--s808-radius-sm);
  transition: all 0.2s;
}

.s808-footer-link:hover {
  background: var(--s808-accent);
  color: #fff;
  text-decoration: none;
}

.s808-footer-copy {
  font-size: 1rem;
  color: var(--s808-muted);
  margin-top: 0.8rem;
}

/* === HELP PAGE STYLES === */
.s808-help-section {
  padding: 1rem;
  margin: 0.5rem 0;
}

.s808-help-section h2 {
  font-size: 1.5rem;
  color: var(--s808-accent2);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.1rem solid var(--s808-border);
}

.s808-help-section h3 {
  font-size: 1.3rem;
  color: var(--s808-text);
  margin: 0.8rem 0 0.4rem;
}

.s808-help-section p {
  font-size: 1.2rem;
  line-height: 1.7rem;
  color: var(--s808-text-dim);
  margin-bottom: 0.6rem;
}

.s808-help-section ul, .s808-help-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.s808-help-section li {
  font-size: 1.2rem;
  line-height: 1.7rem;
  color: var(--s808-text-dim);
  margin-bottom: 0.3rem;
}

/* === UTILITY === */
.s808-text-center { text-align: center; }
.s808-mt-1 { margin-top: 0.5rem; }
.s808-mt-2 { margin-top: 1rem; }
.s808-mb-1 { margin-bottom: 0.5rem; }
.s808-mb-2 { margin-bottom: 1rem; }
.s808-p-1 { padding: 0.5rem 1rem; }

.s808-divider {
  border: none;
  border-top: 0.1rem solid var(--s808-border);
  margin: 1rem 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .s808-main {
    padding-bottom: 75px;
  }
  .s808-footer {
    padding-bottom: 80px;
  }
}

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

/* === WINNER LIST === */
.s808-winner-list {
  padding: 0 1rem;
}

.s808-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-bottom: 0.1rem solid var(--s808-border);
}

.s808-winner-name {
  font-size: 1.1rem;
  color: var(--s808-text-dim);
}

.s808-winner-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--s808-success);
}

/* === PAYMENT ICONS === */
.s808-payment-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
}

.s808-payment-item {
  background: var(--s808-card-bg);
  border-radius: var(--s808-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--s808-text-dim);
  border: 0.1rem solid var(--s808-border);
}

/* === TESTIMONIALS === */
.s808-testimonial {
  background: var(--s808-card-bg);
  border-radius: var(--s808-radius);
  padding: 1rem;
  margin: 0.5rem 1rem;
  border-left: 0.3rem solid var(--s808-accent2);
}

.s808-testimonial-text {
  font-size: 1.2rem;
  color: var(--s808-text-dim);
  font-style: italic;
  line-height: 1.6rem;
}

.s808-testimonial-author {
  font-size: 1.1rem;
  color: var(--s808-accent2);
  margin-top: 0.5rem;
}

/* === APP DOWNLOAD === */
.s808-app-cta {
  background: linear-gradient(135deg, var(--s808-primary), #34495e);
  border-radius: var(--s808-radius);
  padding: 1.2rem;
  margin: 0.8rem 1rem;
  text-align: center;
}

.s808-app-cta h3 {
  font-size: 1.4rem;
  color: var(--s808-accent2);
  margin-bottom: 0.5rem;
}

.s808-app-cta p {
  font-size: 1.2rem;
  color: var(--s808-text-dim);
  margin-bottom: 0.8rem;
}
