/**
 * 555 Angel Number - Main Stylesheet
 * All classes prefixed with g988-
 * Color Palette: #F4A460 | #FFEB3B | #495057 | #FF4500 | #FF9800 | #262626
 */

/* === CSS Variables === */
:root {
  --g988-primary: #F4A460;
  --g988-secondary: #FF9800;
  --g988-accent: #FF4500;
  --g988-gold: #FFEB3B;
  --g988-dark: #262626;
  --g988-muted: #495057;
  --g988-bg: #1a1a1a;
  --g988-card-bg: #222222;
  --g988-text: #f0f0f0;
  --g988-text-muted: #b0b0b0;
  --g988-border: #333333;
  --g988-radius: 8px;
  --g988-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--g988-primary);
  text-decoration: none;
}

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

/* === Header === */
.g988-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--g988-primary);
  box-shadow: 0 2px 12px rgba(244, 164, 96, 0.15);
}

.g988-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

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

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

.g988-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g988-btn-register, .g988-btn-login {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.g988-btn-login {
  background: linear-gradient(135deg, var(--g988-primary), #e8934a);
  color: #fff;
}

.g988-btn-register:hover, .g988-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(244, 164, 96, 0.4);
}

.g988-menu-toggle {
  background: none;
  border: none;
  color: var(--g988-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* === Mobile Menu === */
.g988-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--g988-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 60px 20px 20px;
  overflow-y: auto;
}

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

.g988-mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--g988-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g988-border);
  transition: color 0.2s;
}

.g988-mobile-menu a:hover {
  color: var(--g988-primary);
}

.g988-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: all 0.3s;
}

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

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

/* === Main Content === */
.g988-main {
  padding-top: 56px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .g988-main {
    padding-bottom: 80px;
  }
}

/* === Carousel === */
.g988-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0 0 var(--g988-radius) var(--g988-radius);
}

.g988-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g988-slide {
  min-width: 100%;
  cursor: pointer;
}

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

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

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

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

/* === Section Layout === */
.g988-section {
  padding: 20px 14px;
}

.g988-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g988-primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--g988-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g988-section-title i {
  color: var(--g988-gold);
  font-size: 2rem;
}

/* === Game Grid === */
.g988-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.g988-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.g988-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g988-radius);
  border: 1px solid var(--g988-border);
  margin-bottom: 4px;
}

.g988-game-item span {
  font-size: 1.1rem;
  color: var(--g988-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Category Header === */
.g988-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 0 14px;
}

.g988-cat-header h2 {
  font-size: 1.6rem;
  color: var(--g988-gold);
  font-weight: 600;
}

.g988-cat-icon {
  font-size: 2rem;
  color: var(--g988-accent);
}

/* === Card Component === */
.g988-card {
  background: var(--g988-card-bg);
  border-radius: var(--g988-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--g988-border);
  box-shadow: var(--g988-shadow);
}

.g988-card h3 {
  color: var(--g988-primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.g988-card p {
  color: var(--g988-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* === Promo Link === */
.g988-promo-link {
  color: var(--g988-gold);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.g988-promo-link:hover {
  color: var(--g988-accent);
}

/* === Promo Button === */
.g988-promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--g988-accent), var(--g988-secondary));
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 3px 12px rgba(255,69,0,0.3);
}

.g988-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,69,0,0.4);
}

/* === Feature List === */
.g988-feature-list {
  list-style: none;
  padding: 0;
}

.g988-feature-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--g988-text-muted);
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.g988-feature-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--g988-primary);
  font-weight: 700;
}

/* === FAQ === */
.g988-faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--g988-border);
  border-radius: var(--g988-radius);
  overflow: hidden;
}

.g988-faq-q {
  padding: 10px 14px;
  background: var(--g988-card-bg);
  color: var(--g988-primary);
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
}

.g988-faq-a {
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  color: var(--g988-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* === Winner List === */
.g988-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.2rem;
}

.g988-winner-name {
  color: var(--g988-gold);
  font-weight: 600;
}

.g988-winner-amount {
  color: var(--g988-accent);
  font-weight: 700;
}

/* === Payment Icons === */
.g988-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.g988-payment-item {
  background: var(--g988-card-bg);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--g988-border);
  font-size: 1.2rem;
  color: var(--g988-text-muted);
}

/* === Footer === */
.g988-footer {
  background: var(--g988-dark);
  padding: 24px 14px 80px;
  border-top: 2px solid var(--g988-primary);
}

.g988-footer-brand {
  color: var(--g988-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.g988-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.g988-footer-links a {
  padding: 6px 12px;
  background: var(--g988-card-bg);
  border-radius: 16px;
  font-size: 1.1rem;
  color: var(--g988-text-muted);
  border: 1px solid var(--g988-border);
  transition: all 0.2s;
}

.g988-footer-links a:hover {
  color: var(--g988-primary);
  border-color: var(--g988-primary);
}

.g988-footer-copy {
  text-align: center;
  color: var(--g988-muted);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* === Bottom Navigation === */
.g988-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g988-primary);
  box-shadow: 0 -2px 12px rgba(244, 164, 96, 0.1);
}

.g988-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 58px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.g988-bottom-btn i,
.g988-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: all 0.2s;
}

.g988-bottom-btn span {
  font-size: 1rem;
  color: var(--g988-text-muted);
  transition: color 0.2s;
}

.g988-bottom-btn:hover i,
.g988-bottom-btn:hover .material-icons {
  color: var(--g988-primary);
  transform: scale(1.15);
}

.g988-bottom-btn:hover span {
  color: var(--g988-primary);
}

.g988-bottom-btn.g988-active i,
.g988-bottom-btn.g988-active .material-icons {
  color: var(--g988-gold);
}

.g988-bottom-btn.g988-active span {
  color: var(--g988-gold);
}

.g988-bottom-btn.g988-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--g988-gold);
  border-radius: 1px;
}

/* === Utility === */
.g988-text-center { text-align: center; }
.g988-text-gold { color: var(--g988-gold); }
.g988-text-accent { color: var(--g988-accent); }
.g988-text-primary { color: var(--g988-primary); }
.g988-mt-1 { margin-top: 8px; }
.g988-mt-2 { margin-top: 16px; }
.g988-mb-1 { margin-bottom: 8px; }
.g988-mb-2 { margin-bottom: 16px; }
.g988-p-1 { padding: 8px; }
.g988-p-2 { padding: 16px; }

/* === Responsive === */
@media (min-width: 769px) {
  .g988-bottom-nav {
    display: none;
  }
  .g988-header {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .g988-main {
    padding-bottom: 80px;
  }
}
