/*!
 * 78 vin - Core stylesheet
 * Site: 78-vin.homes
 * Palette: #7CFC00 (lime accent) | #1E1E1E (dark bg) | #DA70D6 (orchid) | #20B2AA (teal)
 * All custom classes use the w8449- prefix.
 * Mobile-first layout, max-width 430px for primary container.
 */

:root {
  --w8449-primary: #7CFC00;
  --w8449-bg: #1E1E1E;
  --w8449-orchid: #DA70D6;
  --w8449-teal: #20B2AA;
  --w8449-text: #F5F5F5;
  --w8449-muted: #B5B5B5;
  --w8449-card: #2A2A2A;
  --w8449-border: #3A3A3A;
  --w8449-radius: 12px;
  --w8449-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --w8449-gradient: linear-gradient(135deg, #7CFC00 0%, #20B2AA 100%);
  --w8449-gradient-hot: linear-gradient(135deg, #DA70D6 0%, #7CFC00 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  background: var(--w8449-bg);
  color: var(--w8449-text);
  line-height: 1.5rem;
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: var(--w8449-primary); text-decoration: none; }
a:hover { color: var(--w8449-orchid); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.6rem; font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.8rem; }

.w8449-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
.w8449-wrapper { padding: 18px 0; }

/* ===== Header ===== */
.w8449-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w8449-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.w8449-header-scrolled {
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.w8449-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.w8449-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--w8449-primary);
  font-size: 1.05rem;
}
.w8449-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w8449-brand span { color: var(--w8449-text); }
.w8449-header-actions { display: flex; align-items: center; gap: 6px; }

.w8449-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  min-height: 36px;
  text-align: center;
}
.w8449-btn:hover { transform: translateY(-1px); opacity: 0.95; }
.w8449-btn-primary { background: var(--w8449-gradient); color: #0d0d0d; box-shadow: 0 4px 14px rgba(124, 252, 0, 0.35); }
.w8449-btn-secondary { background: transparent; color: var(--w8449-primary); border: 1.5px solid var(--w8449-primary); }
.w8449-btn-orchid { background: var(--w8449-gradient-hot); color: #1a0a1a; }
.w8449-btn-block { width: 100%; }
.w8449-btn-lg { padding: 12px 22px; font-size: 0.95rem; min-height: 48px; }

.w8449-icon-btn {
  background: transparent;
  border: none;
  color: var(--w8449-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.w8449-icon-btn:hover { color: var(--w8449-primary); }

/* ===== Page spacer (offset for fixed header) ===== */
.w8449-page-top { padding-top: 64px; }

/* ===== Mobile menu ===== */
.w8449-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.w8449-overlay-active { opacity: 1; pointer-events: auto; }
.w8449-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: #161616;
  z-index: 9999;
  padding: 70px 18px 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--w8449-border);
}
.w8449-menu-open { right: 0; }
.w8449-mobile-menu h4 {
  color: var(--w8449-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.w8449-mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--w8449-text);
  border-bottom: 1px solid #232323;
  font-size: 0.95rem;
}
.w8449-mobile-menu a:hover { background: #232323; color: var(--w8449-primary); }
.w8449-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: var(--w8449-text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== Carousel ===== */
.w8449-carousel {
  position: relative;
  border-radius: var(--w8449-radius);
  overflow: hidden;
  margin: 14px 0;
  box-shadow: var(--w8449-shadow);
}
.w8449-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.w8449-slide-active { display: block; }
.w8449-slide img { width: 100%; height: 180px; object-fit: cover; }
.w8449-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.w8449-slide-overlay h3 { color: var(--w8449-primary); margin-bottom: 4px; }
.w8449-slide-overlay p { margin: 0; font-size: 0.85rem; color: #eee; }
.w8449-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.w8449-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.w8449-dot-active { background: var(--w8449-primary); }

/* ===== Section ===== */
.w8449-section {
  padding: 18px 0;
  border-top: 1px solid var(--w8449-border);
}
.w8449-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.w8449-section-title h2 {
  flex: 1;
  font-size: 1.15rem;
  color: var(--w8449-text);
}
.w8449-section-title .w8449-pill {
  background: var(--w8449-gradient-hot);
  color: #1a0a1a;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.w8449-subtitle { color: var(--w8449-muted); font-size: 0.88rem; margin-bottom: 12px; }

/* ===== Game grid ===== */
.w8449-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w8449-game-grid-4 { grid-template-columns: repeat(4, 1fr); }
.w8449-game-card {
  background: var(--w8449-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--w8449-border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.w8449-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--w8449-primary);
}
.w8449-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
}
.w8449-game-card .w8449-game-name {
  font-size: 0.72rem;
  padding: 5px 4px;
  color: var(--w8449-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w8449-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}
.w8449-cat-header i { color: var(--w8449-primary); font-size: 1.1rem; }
.w8449-cat-header h3 { margin: 0; font-size: 1rem; color: var(--w8449-text); }
.w8449-cat-header .w8449-line { flex: 1; height: 1px; background: var(--w8449-border); }

/* ===== Feature / highlight cards ===== */
.w8449-card {
  background: var(--w8449-card);
  border-radius: var(--w8449-radius);
  padding: 14px;
  border: 1px solid var(--w8449-border);
  margin-bottom: 12px;
}
.w8449-card h3 { color: var(--w8449-primary); }
.w8449-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w8449-mini-card {
  background: #232323;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--w8449-border);
}
.w8449-mini-card i { font-size: 1.5rem; color: var(--w8449-teal); margin-bottom: 6px; }
.w8449-mini-card strong { display: block; color: var(--w8449-primary); font-size: 0.9rem; }
.w8449-mini-card span { font-size: 0.78rem; color: var(--w8449-muted); }

/* ===== RTP bar ===== */
.w8449-rtp-row { margin-bottom: 10px; }
.w8449-rtp-row .w8449-rtp-label {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; margin-bottom: 4px;
}
.w8449-rtp-track {
  height: 8px;
  background: #2f2f2f;
  border-radius: 999px;
  overflow: hidden;
}
.w8449-rtp-fill {
  height: 100%;
  background: var(--w8449-gradient);
  border-radius: 999px;
}

/* ===== FAQ ===== */
.w8449-faq-item {
  background: var(--w8449-card);
  border: 1px solid var(--w8449-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.w8449-faq-q {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.w8449-faq-q i { color: var(--w8449-primary); transition: transform 0.25s ease; }
.w8449-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: var(--w8449-muted);
  font-size: 0.85rem;
}
.w8449-faq-open .w8449-faq-a { max-height: 400px; padding: 0 14px 12px; }
.w8449-faq-open .w8449-faq-q i { transform: rotate(45deg); }

/* ===== Testimonial ===== */
.w8449-testimonial {
  background: #232323;
  border-left: 3px solid var(--w8449-primary);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.w8449-testimonial strong { color: var(--w8449-primary); }
.w8449-stars { color: #FFD700; font-size: 0.8rem; }

/* ===== Payment chips ===== */
.w8449-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.w8449-chip {
  background: #232323;
  border: 1px solid var(--w8449-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--w8449-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Winners ===== */
.w8449-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: #232323;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.w8449-winner strong { color: var(--w8449-primary); }

/* ===== CTA banner ===== */
.w8449-cta {
  background: var(--w8449-gradient);
  border-radius: var(--w8449-radius);
  padding: 16px;
  text-align: center;
  color: #0d0d0d;
  margin: 14px 0;
}
.w8449-cta h3 { color: #0d0d0d; margin-bottom: 4px; }
.w8449-cta p { color: #1a1a1a; font-size: 0.85rem; margin-bottom: 10px; }
.w8449-cta-orchid { background: var(--w8449-gradient-hot); color: #1a0a1a; }
.w8449-cta-orchid h3 { color: #1a0a1a; }
.w8449-cta-orchid p { color: #2a0a2a; }

/* ===== Footer ===== */
.w8449-footer {
  background: #141414;
  border-top: 1px solid var(--w8449-border);
  padding: 22px 12px 110px;
  margin-top: 18px;
}
.w8449-footer .w8449-container { padding: 0; }
.w8449-footer h4 {
  color: var(--w8449-primary);
  margin: 14px 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.w8449-footer p { color: var(--w8449-muted); font-size: 0.82rem; }
.w8449-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  margin: 8px 0;
}
.w8449-footer-links a {
  color: var(--w8449-text);
  font-size: 0.82rem;
}
.w8449-footer-links a:hover { color: var(--w8449-primary); }
.w8449-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.w8449-copy {
  text-align: center;
  font-size: 0.78rem;
  color: #777;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #232323;
}

/* ===== Bottom nav ===== */
.w8449-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: #161616;
  border-top: 1px solid var(--w8449-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}
.w8449-bottom-nav button,
.w8449-bottom-nav a {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w8449-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.66rem;
  text-decoration: none;
  padding: 6px 0;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w8449-bottom-nav button i,
.w8449-bottom-nav a i {
  font-size: 22px;
}
.w8449-bottom-nav button:hover,
.w8449-bottom-nav a:hover {
  color: var(--w8449-primary);
  transform: translateY(-2px);
}
.w8449-bottom-nav .w8449-active { color: var(--w8449-primary); }
.w8449-bottom-nav .w8449-nav-promo i { color: var(--w8449-orchid); }
.w8449-bottom-nav .w8449-badge {
  position: relative;
}
.w8449-bottom-nav .w8449-badge::after {
  content: "HOT";
  position: absolute;
  top: 2px; right: 14px;
  background: var(--w8449-orchid);
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
}

/* ===== To-top button ===== */
.w8449-to-top {
  position: fixed;
  bottom: 78px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w8449-gradient);
  color: #0d0d0d;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--w8449-shadow);
}
.w8449-to-top-show { opacity: 1; pointer-events: auto; }

/* ===== Filter input ===== */
.w8449-filter-box {
  width: 100%;
  padding: 10px 12px;
  background: #232323;
  border: 1px solid var(--w8449-border);
  border-radius: 999px;
  color: var(--w8449-text);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.w8449-filter-box::placeholder { color: #777; }

/* ===== Generic helpers ===== */
.w8449-text-primary { color: var(--w8449-primary); }
.w8449-text-orchid { color: var(--w8449-orchid); }
.w8449-text-teal { color: var(--w8449-teal); }
.w8449-text-muted { color: var(--w8449-muted); }
.w8449-ul { padding-left: 18px; margin: 8px 0; }
.w8449-ul li { margin-bottom: 6px; font-size: 0.88rem; }
.w8449-flex { display: flex; align-items: center; gap: 8px; }
.w8449-flex-between { display: flex; justify-content: space-between; align-items: center; }
.w8449-mt-8 { margin-top: 8px; }
.w8449-mt-16 { margin-top: 16px; }
.w8449-mb-8 { margin-bottom: 8px; }
.w8449-mb-16 { margin-bottom: 16px; }
.w8449-p-12 { padding: 12px; }
.w8449-rounded { border-radius: var(--w8449-radius); }
.w8449-center { text-align: center; }
.w8449-small { font-size: 0.8rem; color: var(--w8449-muted); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .w8449-bottom-nav { display: none; }
  .w8449-footer { padding-bottom: 30px; }
  .w8449-container { max-width: 760px; }
  .w8449-header-inner { max-width: 760px; }
  .w8449-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w8449-card-grid { grid-template-columns: repeat(4, 1fr); }
}
