/**
 * kg999 price - Core CSS Stylesheet
 * Class prefix: sd87-
 * Color palette: #ADD8E6 | #48D1CC | #FFA500 | #FF8C00 | #0F0F23
 */

/* CSS Variables */
:root {
  --sd87-primary: #FFA500;
  --sd87-secondary: #48D1CC;
  --sd87-accent: #FF8C00;
  --sd87-bg: #0F0F23;
  --sd87-bg-light: #1a1a3e;
  --sd87-bg-card: #151535;
  --sd87-text: #ADD8E6;
  --sd87-text-bright: #ffffff;
  --sd87-text-muted: #8899aa;
  --sd87-border: #2a2a5a;
  --sd87-success: #48D1CC;
  --sd87-warning: #FFA500;
  --sd87-danger: #ff4757;
  --sd87-gradient: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
  --sd87-gradient-dark: linear-gradient(180deg, #0F0F23 0%, #1a1a3e 100%);
  --sd87-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --sd87-radius: 12px;
  --sd87-radius-sm: 8px;
}

/* 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', 'Helvetica Neue', Arial, sans-serif;
  background: var(--sd87-bg);
  color: var(--sd87-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sd87-secondary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--sd87-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.sd87-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--sd87-bg);
  border-bottom: 1px solid var(--sd87-border);
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sd87-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sd87-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.sd87-header-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sd87-primary);
  white-space: nowrap;
}
.sd87-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sd87-btn-register {
  background: var(--sd87-gradient);
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sd87-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(255, 165, 0, 0.4); }
.sd87-btn-login {
  background: transparent;
  color: var(--sd87-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--sd87-primary);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.sd87-btn-login:hover { background: rgba(255, 165, 0, 0.1); }
.sd87-menu-toggle {
  background: none;
  border: none;
  color: var(--sd87-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
.sd87-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}
.sd87-overlay-active { display: block; }

/* Mobile Slide Menu */
.sd87-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--sd87-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.sd87-menu-active { right: 0; }
.sd87-mobile-menu-close {
  background: none;
  border: none;
  color: var(--sd87-text);
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}
.sd87-mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sd87-border);
  color: var(--sd87-text);
  font-size: 1.4rem;
  transition: color 0.2s, padding-left 0.2s;
}
.sd87-mobile-menu a:hover {
  color: var(--sd87-primary);
  padding-left: 0.5rem;
}

/* Main Content */
.sd87-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .sd87-main { padding-bottom: 80px; }
}

/* Carousel */
.sd87-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--sd87-radius) var(--sd87-radius);
}
.sd87-slide {
  display: none;
  cursor: pointer;
}
.sd87-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}
.sd87-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.sd87-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.sd87-dot-active { background: var(--sd87-primary); }

/* Container */
.sd87-container { padding: 1.2rem; }

/* Section titles */
.sd87-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sd87-text-bright);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sd87-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sd87-section-title i, .sd87-section-title .material-symbols-outlined {
  color: var(--sd87-primary);
  font-size: 2rem;
}

/* Game Grid */
.sd87-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.sd87-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.sd87-game-item:hover { transform: translateY(-3px); }
.sd87-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--sd87-radius-sm);
  object-fit: cover;
  border: 2px solid var(--sd87-border);
  transition: border-color 0.3s;
}
.sd87-game-item:hover img { border-color: var(--sd87-primary); }
.sd87-game-item p {
  font-size: 1.1rem;
  color: var(--sd87-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.sd87-cat-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sd87-secondary);
  margin: 1.2rem 0 0.6rem;
  padding: 0.3rem 0.8rem;
  background: rgba(72, 209, 204, 0.1);
  border-left: 3px solid var(--sd87-secondary);
  border-radius: 0 var(--sd87-radius-sm) var(--sd87-radius-sm) 0;
}

/* Content Card */
.sd87-card {
  background: var(--sd87-bg-card);
  border-radius: var(--sd87-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--sd87-border);
}
.sd87-card h2 {
  font-size: 1.7rem;
  color: var(--sd87-primary);
  margin-bottom: 0.8rem;
}
.sd87-card h3 {
  font-size: 1.5rem;
  color: var(--sd87-secondary);
  margin-bottom: 0.6rem;
}
.sd87-card p {
  line-height: 1.6;
  margin-bottom: 0.6rem;
  color: var(--sd87-text);
}
.sd87-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.sd87-card li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: var(--sd87-text);
}

/* Promo Button */
.sd87-promo-btn {
  display: inline-block;
  background: var(--sd87-gradient);
  color: #000;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  text-align: center;
}
.sd87-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.5);
}

/* Promo text link */
.sd87-promo-link {
  color: var(--sd87-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.sd87-promo-link:hover { color: var(--sd87-secondary); }

/* Footer */
.sd87-footer {
  background: var(--sd87-bg-light);
  padding: 2rem 1.2rem;
  border-top: 1px solid var(--sd87-border);
  margin-top: 2rem;
}
.sd87-footer-brand {
  font-size: 1.3rem;
  color: var(--sd87-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.sd87-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.sd87-footer-links a {
  background: var(--sd87-bg-card);
  color: var(--sd87-text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--sd87-radius-sm);
  font-size: 1.1rem;
  border: 1px solid var(--sd87-border);
  transition: border-color 0.2s;
}
.sd87-footer-links a:hover { border-color: var(--sd87-primary); color: var(--sd87-primary); }
.sd87-footer-copy {
  font-size: 1.1rem;
  color: var(--sd87-text-muted);
  text-align: center;
  margin-top: 1rem;
}
.sd87-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}
.sd87-footer-promo button {
  background: var(--sd87-gradient);
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

/* Bottom Navigation */
.sd87-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--sd87-bg-light);
  border-top: 1px solid var(--sd87-border);
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}
.sd87-bottom-nav button {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  cursor: pointer;
  color: var(--sd87-text-muted);
  transition: color 0.2s, transform 0.2s;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}
.sd87-bottom-nav button:hover { color: var(--sd87-primary); transform: scale(1.1); }
.sd87-bottom-nav button span.sd87-nav-icon { font-size: 2.2rem; line-height: 1; }
.sd87-bottom-nav button span.sd87-nav-label { font-size: 1rem; font-weight: 500; }
.sd87-bottom-nav button.sd87-nav-active { color: var(--sd87-primary); }
.sd87-bottom-nav button.sd87-nav-active span.sd87-nav-label { font-weight: 700; }

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

/* H1 title */
.sd87-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd87-text-bright);
  margin: 1rem 0;
  line-height: 1.3;
}

/* Winner list */
.sd87-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sd87-border);
  font-size: 1.2rem;
}
.sd87-winner-name { color: var(--sd87-secondary); }
.sd87-winner-amount { color: var(--sd87-primary); font-weight: 700; }

/* FAQ */
.sd87-faq-item { margin-bottom: 1rem; }
.sd87-faq-q {
  font-weight: 700;
  color: var(--sd87-primary);
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}
.sd87-faq-a {
  color: var(--sd87-text);
  padding-left: 1rem;
  line-height: 1.5;
  font-size: 1.2rem;
}

/* Payment icons row */
.sd87-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}
.sd87-payment-item {
  background: var(--sd87-bg-card);
  border: 1px solid var(--sd87-border);
  padding: 0.5rem 1rem;
  border-radius: var(--sd87-radius-sm);
  font-size: 1.2rem;
  color: var(--sd87-text);
}

/* Feature list */
.sd87-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.sd87-feature-item i, .sd87-feature-item .material-symbols-outlined {
  color: var(--sd87-secondary);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Promo banner */
.sd87-promo-banner {
  background: var(--sd87-gradient);
  border-radius: var(--sd87-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  cursor: pointer;
}
.sd87-promo-banner h3 { color: #000; font-size: 1.6rem; margin-bottom: 0.5rem; }
.sd87-promo-banner p { color: rgba(0, 0, 0, 0.7); font-size: 1.2rem; }

/* Testimonial */
.sd87-testimonial {
  background: var(--sd87-bg-card);
  border-left: 3px solid var(--sd87-secondary);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--sd87-radius-sm) var(--sd87-radius-sm) 0;
}
.sd87-testimonial p { font-size: 1.2rem; font-style: italic; }
.sd87-testimonial cite { color: var(--sd87-primary); font-size: 1.1rem; }

/* Utility */
.sd87-text-center { text-align: center; }
.sd87-mt-1 { margin-top: 1rem; }
.sd87-mb-1 { margin-bottom: 1rem; }
.sd87-hidden { display: none; }

/* Responsive fine-tuning */
@media (max-width: 320px) {
  .sd87-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .sd87-header-logo span { font-size: 1.3rem; }
}
@media (min-width: 769px) {
  .sd87-header { position: relative; }
  .sd87-main { padding-top: 0; }
}
