/* ============================================================
   winph vip login - theme-d8fd.css
   Prefix: sd8f-
   Palette: #1A1A1A | #00FF00 | #006400 | #8FBC8F
   Mobile-first, rem units (root 62.5%)
   ============================================================ */

:root {
  --sd8f-bg: #1A1A1A;
  --sd8f-bg-soft: #232323;
  --sd8f-bg-card: #2a2a2a;
  --sd8f-primary: #00FF00;
  --sd8f-primary-dark: #006400;
  --sd8f-accent: #8FBC8F;
  --sd8f-text: #f5f7f3;
  --sd8f-text-muted: #b9c4b9;
  --sd8f-border: #3a3a3a;
  --sd8f-radius: 14px;
  --sd8f-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --sd8f-header-h: 6rem;
  --sd8f-bottomnav-h: 6.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--sd8f-bg);
  color: var(--sd8f-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sd8f-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sd8f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.sd8f-wrapper {
  width: 100%;
  padding-bottom: calc(var(--sd8f-bottomnav-h) + 1rem);
}

/* ============= HEADER ============= */
.sd8f-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #141414 0%, #1f1f1f 100%);
  border-bottom: 2px solid var(--sd8f-primary-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.sd8f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sd8f-header-h);
  padding: 0 1.2rem;
  gap: 0.8rem;
}

.sd8f-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.sd8f-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.sd8f-logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sd8f-primary);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd8f-logo-text span { color: var(--sd8f-accent); }

.sd8f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sd8f-menu-btn {
  background: transparent;
  border: 0;
  color: var(--sd8f-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd8f-menu-btn:hover { color: var(--sd8f-primary); }

.sd8f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.sd8f-btn:hover { text-decoration: none; transform: translateY(-1px); }
.sd8f-btn:active { transform: scale(0.97); }

.sd8f-btn-primary {
  background: linear-gradient(135deg, var(--sd8f-primary) 0%, var(--sd8f-primary-dark) 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.25);
}

.sd8f-btn-outline {
  background: transparent;
  color: var(--sd8f-primary);
  border: 1.5px solid var(--sd8f-primary);
}

.sd8f-btn-ghost {
  background: var(--sd8f-bg-card);
  color: var(--sd8f-text);
  border: 1px solid var(--sd8f-border);
}

/* ============= MOBILE MENU ============= */
.sd8f-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #161616;
  z-index: 9999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: right .3s ease;
  border-left: 2px solid var(--sd8f-primary-dark);
}

.sd8f-mobile-menu.sd8f-is-open { right: 0; }

.sd8f-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.sd8f-overlay.sd8f-is-visible { opacity: 1; visibility: visible; }

.sd8f-menu-close {
  background: transparent;
  border: 0;
  color: var(--sd8f-primary);
  font-size: 2.4rem;
  float: right;
  cursor: pointer;
}

.sd8f-menu-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sd8f-primary);
  margin: 1.5rem 0 1rem;
}

.sd8f-menu-list { list-style: none; }

.sd8f-menu-list li {
  border-bottom: 1px solid var(--sd8f-border);
}

.sd8f-menu-list a {
  display: block;
  padding: 1.3rem 0.5rem;
  color: var(--sd8f-text);
  font-size: 1.5rem;
  font-weight: 600;
}

.sd8f-menu-list a:hover { color: var(--sd8f-primary); padding-left: 1rem; }

.sd8f-menu-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* ============= HERO / CAROUSEL ============= */
.sd8f-carousel {
  position: relative;
  width: 100%;
  height: 19rem;
  overflow: hidden;
  border-radius: 0 0 var(--sd8f-radius) var(--sd8f-radius);
  margin-bottom: 1.5rem;
}

.sd8f-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}

.sd8f-slide.sd8f-active { opacity: 1; }

.sd8f-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd8f-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.4rem 2.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.sd8f-slide-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sd8f-primary);
}

.sd8f-slide-sub {
  font-size: 1.25rem;
  color: #e8efe3;
  margin-top: 0.3rem;
}

.sd8f-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.sd8f-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  cursor: pointer;
}

.sd8f-dot.sd8f-active { background: var(--sd8f-primary); }

/* ============= SECTIONS ============= */
.sd8f-section {
  padding: 1.8rem 0;
}

.sd8f-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.sd8f-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--sd8f-primary);
  position: relative;
  padding-left: 1.2rem;
}

.sd8f-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 80%;
  background: var(--sd8f-primary);
  border-radius: 4px;
}

.sd8f-section-more {
  font-size: 1.25rem;
  color: var(--sd8f-accent);
  font-weight: 600;
}

.sd8f-text p {
  margin-bottom: 1rem;
  color: var(--sd8f-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

.sd8f-text p strong { color: var(--sd8f-text); }

.sd8f-text a { color: var(--sd8f-primary); font-weight: 600; }

.sd8f-h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--sd8f-primary);
  margin: 1.2rem 0 0.8rem;
  line-height: 1.25;
}

.sd8f-h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sd8f-primary);
  margin: 1.8rem 0 0.8rem;
}

.sd8f-h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sd8f-accent);
  margin: 1.4rem 0 0.6rem;
}

/* ============= GAME GRID ============= */
.sd8f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.sd8f-game-card {
  background: var(--sd8f-bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--sd8f-border);
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}

.sd8f-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--sd8f-primary);
}

.sd8f-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.sd8f-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sd8f-text);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============= FEATURE CARDS ============= */
.sd8f-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.sd8f-card {
  background: var(--sd8f-bg-card);
  border: 1px solid var(--sd8f-border);
  border-left: 4px solid var(--sd8f-primary);
  border-radius: var(--sd8f-radius);
  padding: 1.4rem;
  box-shadow: var(--sd8f-shadow);
}

.sd8f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sd8f-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sd8f-card-text {
  color: var(--sd8f-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

.sd8f-card-text a { color: var(--sd8f-primary); font-weight: 600; }

/* ============= CTA BANNER ============= */
.sd8f-cta {
  background: linear-gradient(135deg, var(--sd8f-primary-dark), #0a3d0a);
  border: 1px solid var(--sd8f-primary);
  border-radius: var(--sd8f-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--sd8f-shadow);
}

.sd8f-cta-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sd8f-primary);
  margin-bottom: 0.4rem;
}

.sd8f-cta-sub {
  color: #e8efe3;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.sd8f-cta-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============= LIST / STEPS ============= */
.sd8f-steps { list-style: none; counter-reset: step; }
.sd8f-steps li {
  counter-increment: step;
  padding: 0.8rem 0 0.8rem 3.4rem;
  position: relative;
  color: var(--sd8f-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}
.sd8f-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.7rem;
  width: 2.4rem; height: 2.4rem;
  background: var(--sd8f-primary);
  color: #0a0a0a;
  border-radius: 50%;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.sd8f-bullets { list-style: none; }
.sd8f-bullets li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--sd8f-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}
.sd8f-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--sd8f-primary);
}

/* ============= PAYMENT / LOGO STRIP ============= */
.sd8f-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.sd8f-chip {
  background: var(--sd8f-bg-card);
  border: 1px solid var(--sd8f-border);
  color: var(--sd8f-text);
  padding: 0.7rem 1.1rem;
  border-radius: 24px;
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sd8f-chip i { color: var(--sd8f-primary); }

/* ============= TESTIMONIALS ============= */
.sd8f-testimonial {
  background: var(--sd8f-bg-card);
  border: 1px solid var(--sd8f-border);
  border-radius: var(--sd8f-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.sd8f-testimonial-quote {
  color: var(--sd8f-text-muted);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
}

.sd8f-testimonial-author {
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--sd8f-primary);
  font-size: 1.3rem;
}

/* ============= FOOTER ============= */
.sd8f-footer {
  background: #111;
  border-top: 2px solid var(--sd8f-primary-dark);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.sd8f-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.sd8f-footer-col h4 {
  color: var(--sd8f-primary);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.sd8f-footer-col ul { list-style: none; }
.sd8f-footer-col li { margin-bottom: 0.5rem; }
.sd8f-footer-col a {
  color: var(--sd8f-text-muted);
  font-size: 1.3rem;
}
.sd8f-footer-col a:hover { color: var(--sd8f-primary); }

.sd8f-footer-about {
  font-size: 1.3rem;
  color: var(--sd8f-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sd8f-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.sd8f-footer-bottom {
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  border-top: 1px solid var(--sd8f-border);
  padding-top: 1.2rem;
}

/* ============= MOBILE BOTTOM NAV ============= */
.sd8f-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sd8f-bottomnav-h);
  background: linear-gradient(180deg, #1f1f1f, #0d0d0d);
  border-top: 2px solid var(--sd8f-primary-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.5);
}

.sd8f-bottomnav-btn {
  background: transparent;
  border: 0;
  color: var(--sd8f-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  gap: 0.2rem;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}

.sd8f-bottomnav-btn i,
.sd8f-bottomnav-btn .material-icons-outlined,
.sd8f-bottomnav-btn ion-icon {
  font-size: 2.2rem;
}

.sd8f-bottomnav-btn:hover,
.sd8f-bottomnav-btn.sd8f-active {
  color: var(--sd8f-primary);
  transform: translateY(-2px);
}

.sd8f-bottomnav-btn.sd8f-active::after {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--sd8f-primary);
  border-radius: 2px;
  margin-top: 2px;
}

.sd8f-bottomnav-promo {
  color: var(--sd8f-primary);
}

/* ============= UTIL ============= */
.sd8f-hide-mobile { display: none; }
.sd8f-mt-1 { margin-top: 0.5rem; }
.sd8f-mt-2 { margin-top: 1rem; }
.sd8f-center { text-align: center; }
.sd8f-promo-text { color: var(--sd8f-primary); font-weight: 700; }

/* ============= DESKTOP ============= */
@media (min-width: 769px) {
  body { max-width: 480px; }
  .sd8f-bottomnav { display: none; }
  .sd8f-wrapper { padding-bottom: 2rem; }
  .sd8f-hide-mobile { display: block; }
}

@media (max-width: 768px) {
  main.sd8f-main { padding-bottom: calc(var(--sd8f-bottomnav-h) + 1rem); }
}
