/**
 * layout-d06c.css - Layout styles for 88fa gaming platform
 * All classes use "sd06-" prefix for namespace isolation
 * Color palette: #E65100 | #FF7F50 | #FF8000 | #0D1117 | #495057
 */

/* CSS Variables */
:root {
  --sd06-primary: #E65100;
  --sd06-secondary: #FF7F50;
  --sd06-accent: #FF8000;
  --sd06-bg: #0D1117;
  --sd06-bg-light: #161B22;
  --sd06-bg-card: #1C2128;
  --sd06-text: #F0F6FC;
  --sd06-text-muted: #8B949E;
  --sd06-border: #30363D;
  --sd06-success: #3FB950;
  --sd06-gold: #FFD700;
  --sd06-radius: 1.2rem;
  --sd06-radius-sm: 0.8rem;
  --sd06-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Reset and Base */
* { 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(--sd06-bg);
  color: var(--sd06-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sd06-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* ===== HEADER ===== */
.sd06-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sd06-bg) 0%, #1a1e2e 100%);
  border-bottom: 2px solid var(--sd06-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sd06-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sd06-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.sd06-site-name {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sd06-accent), var(--sd06-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sd06-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sd06-btn-register, .sd06-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--sd06-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 32px;
}
.sd06-btn-register {
  background: linear-gradient(135deg, var(--sd06-primary), var(--sd06-accent));
  color: #fff;
}
.sd06-btn-register:hover { transform: scale(1.05); }
.sd06-btn-login {
  background: transparent;
  color: var(--sd06-secondary);
  border: 1.5px solid var(--sd06-secondary);
}
.sd06-btn-login:hover { background: rgba(255, 127, 80, 0.1); }
.sd06-menu-btn {
  background: none;
  border: none;
  color: var(--sd06-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.sd06-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sd06-overlay-active { opacity: 1; visibility: visible; }
.sd06-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 270px;
  height: 100%;
  background: var(--sd06-bg-light);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.sd06-menu-active { right: 0; }
.sd06-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sd06-border);
}
.sd06-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sd06-accent);
}
.sd06-menu-close {
  background: none;
  border: none;
  color: var(--sd06-text-muted);
  font-size: 2.2rem;
  cursor: pointer;
}
.sd06-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: var(--sd06-text);
  font-size: 1.4rem;
  border-radius: var(--sd06-radius-sm);
  transition: background 0.2s;
}
.sd06-menu-nav a:hover {
  background: rgba(230, 81, 0, 0.15);
  color: var(--sd06-accent);
}
.sd06-menu-nav .material-icons { font-size: 20px; color: var(--sd06-secondary); }

/* ===== BANNER CAROUSEL ===== */
.sd06-banner-container {
  position: relative;
  width: 100%;
  border-radius: var(--sd06-radius);
  overflow: hidden;
  margin-top: 1rem;
}
.sd06-banner-slide {
  display: none;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.sd06-slide-active { display: block; }
.sd06-banner-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.sd06-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.sd06-dot-active { background: var(--sd06-accent); transform: scale(1.3); }

/* ===== MAIN CONTENT ===== */
.sd06-main {
  padding-top: 5.6rem;
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  .sd06-main { padding-bottom: 80px; }
}

/* Section headings */
.sd06-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sd06-primary);
  color: var(--sd06-text);
}
.sd06-section-title span { color: var(--sd06-accent); }

/* ===== GAME GRID ===== */
.sd06-game-category { margin-bottom: 2rem; }
.sd06-category-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sd06-accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sd06-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.sd06-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: var(--sd06-bg-card);
  border-radius: var(--sd06-radius-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.sd06-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--sd06-primary);
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.2);
}
.sd06-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.3rem;
}
.sd06-game-name {
  font-size: 1rem;
  color: var(--sd06-text-muted);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== CONTENT MODULES ===== */
.sd06-content-block {
  background: var(--sd06-bg-card);
  border-radius: var(--sd06-radius);
  padding: 1.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--sd06-border);
}
.sd06-content-block h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--sd06-accent);
}
.sd06-content-block h3 {
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
  color: var(--sd06-secondary);
}
.sd06-content-block p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--sd06-text-muted);
  margin-bottom: 0.8rem;
}
.sd06-content-block ul { padding-left: 1.5rem; }
.sd06-content-block li {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--sd06-text-muted);
  margin-bottom: 0.4rem;
  list-style: disc;
}

/* Promo button */
.sd06-promo-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--sd06-primary), var(--sd06-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: var(--sd06-radius-sm);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.25s ease;
  min-height: 44px;
}
.sd06-promo-btn:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4); }

/* Promo text link */
.sd06-promo-link {
  color: var(--sd06-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.sd06-promo-link:hover { color: var(--sd06-secondary); }

/* Winner showcase */
.sd06-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--sd06-bg-light);
  border-radius: var(--sd06-radius-sm);
  margin-bottom: 0.5rem;
}
.sd06-winner-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sd06-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; font-weight: 700;
}
.sd06-winner-info { flex: 1; }
.sd06-winner-name { font-size: 1.2rem; color: var(--sd06-text); font-weight: 600; }
.sd06-winner-game { font-size: 1rem; color: var(--sd06-text-muted); }
.sd06-winner-amount { font-size: 1.3rem; color: var(--sd06-success); font-weight: 700; }

/* Features grid */
.sd06-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.sd06-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  background: var(--sd06-bg-light);
  border-radius: var(--sd06-radius-sm);
}
.sd06-feature-icon { font-size: 2rem; color: var(--sd06-accent); }
.sd06-feature-text { font-size: 1.1rem; color: var(--sd06-text-muted); }

/* Testimonials */
.sd06-testimonial {
  background: var(--sd06-bg-light);
  border-radius: var(--sd06-radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--sd06-accent);
}
.sd06-testimonial-text { font-size: 1.2rem; color: var(--sd06-text-muted); font-style: italic; }
.sd06-testimonial-author { font-size: 1.1rem; color: var(--sd06-accent); margin-top: 0.5rem; }

/* Payment methods */
.sd06-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.sd06-payment-item {
  padding: 0.6rem 1.2rem;
  background: var(--sd06-bg-light);
  border-radius: var(--sd06-radius-sm);
  font-size: 1.2rem;
  color: var(--sd06-text-muted);
  border: 1px solid var(--sd06-border);
}

/* ===== FOOTER ===== */
.sd06-footer {
  background: var(--sd06-bg-light);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--sd06-primary);
}
.sd06-footer-desc {
  font-size: 1.2rem;
  color: var(--sd06-text-muted);
  line-height: 1.6rem;
  margin-bottom: 1rem;
}
.sd06-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sd06-footer-links a {
  padding: 0.4rem 0.8rem;
  background: var(--sd06-bg-card);
  border-radius: var(--sd06-radius-sm);
  font-size: 1.1rem;
  color: var(--sd06-text-muted);
  transition: color 0.2s;
}
.sd06-footer-links a:hover { color: var(--sd06-accent); }
.sd06-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.sd06-footer-promo .sd06-promo-btn { font-size: 1.2rem; padding: 0.6rem 1.4rem; }
.sd06-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sd06-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sd06-border);
}

/* ===== BOTTOM NAV ===== */
.sd06-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a1e2e, var(--sd06-bg));
  border-top: 1.5px solid var(--sd06-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.sd06-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(--sd06-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0.3rem;
}
.sd06-bottom-nav-btn:hover { color: var(--sd06-accent); }
.sd06-bottom-nav-btn .nav-icon { font-size: 22px; margin-bottom: 2px; }
.sd06-bottom-nav-btn .nav-label { font-size: 1rem; line-height: 1.2; }
.sd06-nav-active {
  color: var(--sd06-accent) !important;
  background: rgba(230, 81, 0, 0.1);
}
.sd06-nav-active .nav-icon { transform: scale(1.15); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .sd06-bottom-nav { display: none; }
  .sd06-main { padding-bottom: 1rem; }
}

/* ===== RESPONSIVE HELPERS ===== */
.sd06-text-center { text-align: center; }
.sd06-mt-1 { margin-top: 1rem; }
.sd06-mb-1 { margin-bottom: 1rem; }
.sd06-py-1 { padding: 1rem 0; }
.sd06-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Internal link style */
.sd06-internal-link {
  color: var(--sd06-secondary);
  text-decoration: underline;
  font-weight: 500;
}
.sd06-internal-link:hover { color: var(--sd06-accent); }

/* Help page styles */
.sd06-help-section { margin-bottom: 1.5rem; }
.sd06-help-section h2 {
  font-size: 1.6rem;
  color: var(--sd06-accent);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sd06-border);
}
.sd06-help-section p {
  font-size: 1.3rem;
  color: var(--sd06-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.6rem;
}
.sd06-faq-item {
  background: var(--sd06-bg-card);
  border-radius: var(--sd06-radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--sd06-accent);
}
.sd06-faq-q {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sd06-text);
  margin-bottom: 0.4rem;
}
.sd06-faq-a {
  font-size: 1.2rem;
  color: var(--sd06-text-muted);
  line-height: 1.6rem;
}

/* Steps list */
.sd06-step-list { counter-reset: step; }
.sd06-step-item {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--sd06-bg-card);
  border-radius: var(--sd06-radius-sm);
}
.sd06-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--sd06-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.sd06-step-text { font-size: 1.2rem; color: var(--sd06-text-muted); line-height: 1.6rem; }

/* RTP Table */
.sd06-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.sd06-rtp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--sd06-bg-light);
  border-radius: 6px;
  font-size: 1.1rem;
}
.sd06-rtp-name { color: var(--sd06-text-muted); }
.sd06-rtp-value { color: var(--sd06-success); font-weight: 700; }
