/* =========================================================
 * slot8.cfd - layout.css
 * Mobile-first stylesheet for slot8 basefiles.
 * Every custom class uses the "vd08-" prefix.
 * Palette: #273746 / #3CB371 / #00FF7F / #7CFC00 / #ECF0F1
 * =======================================================*/

:root {
  --vd08-bg:        #273746;
  --vd08-bg-soft:   #1f2c38;
  --vd08-bg-deep:   #16202b;
  --vd08-primary:   #3CB371;
  --vd08-accent:    #00FF7F;
  --vd08-lime:      #7CFC00;
  --vd08-text:      #ECF0F1;
  --vd08-muted:     #9bb0bd;
  --vd08-card:      #2d3e4f;
  --vd08-border:    #3a4d60;
  --vd08-gold:      #ffd479;
  --vd08-shadow:    0 2px 10px rgba(0, 0, 0, 0.28);
  --vd08-radius:    14px;
  --vd08-radius-sm: 8px;
}

/* ----------------- Reset ----------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--vd08-bg);
  color: var(--vd08-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
a { color: var(--vd08-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ----------------- Layout containers ----------------- */
.vd08-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.vd08-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.vd08-section { padding: 2.4rem 0; }
.vd08-section-alt { background: var(--vd08-bg-soft); }

.vd08-hide-mobile { display: none !important; }

/* ----------------- Header ----------------- */
.vd08-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1f2c38 0%, #273746 100%);
  border-bottom: 1px solid var(--vd08-border);
  box-shadow: var(--vd08-shadow);
}
.vd08-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.vd08-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vd08-text);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}
.vd08-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vd08-logo .vd08-logo-accent { color: var(--vd08-accent); }

.vd08-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ----------------- Buttons ----------------- */
.vd08-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--vd08-radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 38px;
  text-decoration: none;
}
.vd08-btn:active { transform: scale(0.96); }
.vd08-btn-register {
  background: linear-gradient(135deg, var(--vd08-lime), var(--vd08-accent));
  color: #0d2018;
  box-shadow: 0 2px 8px rgba(0, 255, 127, 0.25);
}
.vd08-btn-login {
  background: transparent;
  color: var(--vd08-text);
  border: 1px solid var(--vd08-primary);
}
.vd08-btn-promo {
  background: linear-gradient(135deg, var(--vd08-primary), var(--vd08-accent));
  color: #0d2018;
  box-shadow: var(--vd08-shadow);
}
.vd08-btn-ghost {
  background: transparent;
  color: var(--vd08-text);
  border: 1px solid var(--vd08-border);
}
.vd08-btn-block { display: flex; width: 100%; }
.vd08-btn-lg { padding: 1rem 1.4rem; font-size: 1.5rem; min-height: 48px; }

.vd08-menu-btn {
  background: transparent;
  border: 1px solid var(--vd08-border);
  color: var(--vd08-text);
  padding: 0.55rem 0.7rem;
  border-radius: var(--vd08-radius-sm);
  cursor: pointer;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ----------------- Mobile slide-down menu ----------------- */
.vd08-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--vd08-bg-deep);
  border-bottom: 1px solid var(--vd08-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  z-index: 9999;
}
.vd08-mobile-menu.vd08-menu-open { max-height: 520px; }
.vd08-mobile-menu ul { padding: 0.6rem 1rem 1rem; }
.vd08-mobile-menu li + li { margin-top: 0.4rem; }
.vd08-mobile-menu a {
  display: block;
  padding: 0.8rem 0.8rem;
  color: var(--vd08-text);
  border-radius: var(--vd08-radius-sm);
  background: var(--vd08-bg-soft);
  font-weight: 600;
}
.vd08-mobile-menu a:active { background: var(--vd08-card); }

/* ----------------- Hero / Carousel ----------------- */
.vd08-hero {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--vd08-border);
}
.vd08-hero-viewport { overflow: hidden; }
.vd08-hero-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}
.vd08-hero-slide {
  min-width: 100%;
  position: relative;
}
.vd08-hero-slide img { width: 100%; height: 220px; object-fit: cover; }
.vd08-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(22,32,43,0) 0%, rgba(22,32,43,0.92) 90%);
  color: var(--vd08-text);
}
.vd08-hero-caption h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.vd08-hero-caption p { font-size: 1.25rem; color: var(--vd08-muted); margin-bottom: 0.7rem; }
.vd08-hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.6rem 0;
  background: var(--vd08-bg-deep);
}
.vd08-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vd08-border);
  cursor: pointer;
}
.vd08-hero-dot-active { background: var(--vd08-accent); }

/* ----------------- Section heading ----------------- */
.vd08-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.vd08-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--vd08-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vd08-section-title i, .vd08-section-title span.material-icons {
  color: var(--vd08-accent);
  font-size: 1.7rem;
}
.vd08-section-more {
  color: var(--vd08-lime);
  font-weight: 600;
  font-size: 1.25rem;
}

/* ----------------- H1 intro ----------------- */
.vd08-h1-wrap { padding: 1.6rem 1.2rem 0.4rem; }
.vd08-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--vd08-text);
  margin-bottom: 0.6rem;
}
.vd08-subtitle { color: var(--vd08-muted); font-size: 1.3rem; }

/* ----------------- Game grid ----------------- */
.vd08-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vd08-grid-4 { grid-template-columns: repeat(4, 1fr); }
.vd08-card {
  background: var(--vd08-card);
  border-radius: var(--vd08-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  text-align: center;
  color: var(--vd08-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.vd08-card:active { transform: scale(0.96); }
.vd08-card img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: #15202b;
}
.vd08-card-name {
  padding: 0.4rem 0.3rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd08-card-tag {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--vd08-accent);
  color: #0d2018;
  font-size: 0.95rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

/* ----------------- Category section ----------------- */
.vd08-cat-block { padding: 1.6rem 0; }
.vd08-cat-block + .vd08-cat-block { border-top: 1px solid var(--vd08-border); }

/* ----------------- Info / promo blocks ----------------- */
.vd08-panel {
  background: var(--vd08-card);
  border-radius: var(--vd08-radius);
  padding: 1.4rem;
  box-shadow: var(--vd08-shadow);
  margin-bottom: 1.2rem;
}
.vd08-panel h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--vd08-text);
}
.vd08-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vd08-accent);
  margin: 1rem 0 0.4rem;
}
.vd08-panel p {
  color: var(--vd08-muted);
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}
.vd08-panel a { color: var(--vd08-accent); font-weight: 700; }
.vd08-panel ul.vd08-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  color: var(--vd08-muted);
  font-size: 1.3rem;
}
.vd08-panel ul.vd08-list li:before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--vd08-primary);
}

/* ----------------- Steps list ----------------- */
.vd08-steps { counter-reset: step; }
.vd08-step {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--vd08-border);
}
.vd08-step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--vd08-primary);
  color: #0d2018;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.vd08-step-body strong { color: var(--vd08-text); font-size: 1.3rem; display: block; }
.vd08-step-body span { color: var(--vd08-muted); font-size: 1.2rem; }

/* ----------------- FAQ ----------------- */
.vd08-faq { border-top: 1px solid var(--vd08-border); }
.vd08-faq-item { border-bottom: 1px solid var(--vd08-border); padding: 0.8rem 0; }
.vd08-faq-q {
  font-weight: 700;
  color: var(--vd08-text);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.vd08-faq-a { color: var(--vd08-muted); font-size: 1.25rem; }

/* ----------------- Stat / feature grid ----------------- */
.vd08-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.vd08-stat {
  background: var(--vd08-bg-soft);
  border-radius: var(--vd08-radius-sm);
  padding: 0.9rem;
  text-align: center;
}
.vd08-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vd08-accent);
  display: block;
}
.vd08-stat-label { color: var(--vd08-muted); font-size: 1.1rem; }

/* ----------------- Testimonials ----------------- */
.vd08-testi {
  background: var(--vd08-bg-soft);
  border-radius: var(--vd08-radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.vd08-testi-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.vd08-testi-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--vd08-primary);
  color: #0d2018;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.vd08-testi-name { font-weight: 700; color: var(--vd08-text); }
.vd08-testi-stars { color: var(--vd08-gold); font-size: 1.1rem; }
.vd08-testi-text { color: var(--vd08-muted); font-size: 1.2rem; }

/* ----------------- Payment / winners ----------------- */
.vd08-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem;
}
.vd08-pay {
  background: var(--vd08-bg-soft);
  border: 1px solid var(--vd08-border);
  color: var(--vd08-text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
}
.vd08-winner {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--vd08-border);
  font-size: 1.2rem;
}
.vd08-winner span:first-child { color: var(--vd08-text); }
.vd08-winner span:last-child { color: var(--vd08-lime); font-weight: 700; }

/* ----------------- Footer ----------------- */
.vd08-footer {
  background: var(--vd08-bg-deep);
  border-top: 1px solid var(--vd08-border);
  padding: 2rem 1.2rem 6rem;
}
.vd08-footer-brand { color: var(--vd08-text); font-weight: 800; font-size: 1.5rem; margin-bottom: 0.4rem; }
.vd08-footer p { color: var(--vd08-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.vd08-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.vd08-footer-links a {
  background: var(--vd08-card);
  color: var(--vd08-text);
  padding: 0.4rem 0.7rem;
  border-radius: var(--vd08-radius-sm);
  font-size: 1.1rem;
}
.vd08-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.vd08-copy { margin-top: 1.2rem; font-size: 1.1rem; color: var(--vd08-muted); }

/* ----------------- Bottom nav ----------------- */
.vd08-bnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: var(--vd08-bg-deep);
  border-top: 1px solid var(--vd08-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.vd08-bnav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--vd08-muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  min-width: 60px;
  min-height: 60px;
  position: relative;
}
.vd08-bnav-link i,
.vd08-bnav-link .material-icons,
.vd08-bnav-link ion-icon {
  font-size: 22px;
}
.vd08-bnav-link ion-icon { transform: translateY(2px); }
.vd08-bnav-link:active { transform: scale(0.94); color: var(--vd08-text); }
.vd08-bnav-active { color: var(--vd08-accent); }
.vd08-bnav-active:after {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px;
  background: var(--vd08-accent);
}
.vd08-bnav-promo {
  color: var(--vd08-lime);
}

/* ----------------- Back to top ----------------- */
.vd08-to-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--vd08-primary);
  color: #0d2018;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
  box-shadow: var(--vd08-shadow);
}
.vd08-to-top-show { opacity: 1; pointer-events: auto; }

/* ----------------- Main padding for mobile nav ----------------- */
main { display: block; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ----------------- Desktop rules ----------------- */
@media (min-width: 769px) {
  .vd08-bnav { display: none !important; }
  .vd08-to-top { bottom: 24px; }
  .vd08-footer { padding-bottom: 2rem; }
  .vd08-menu-btn { display: none; }
}
