/* ===========================================================
   winplus.homes - Core stylesheet (basefiles)
   All custom classes use the "v8a5-" prefix.
   Palette: #E6E6FA | #DDA0DD | #9966CC | #0F0F23
   =========================================================== */

:root {
  --v8a5-primary: #9966CC;      /* brand purple */
  --v8a5-secondary: #DDA0DD;    /* plum accent */
  --v8a5-light: #E6E6FA;        /* lavender text */
  --v8a5-bg: #0F0F23;           /* deep night background */
  --v8a5-bg-soft: #1a1a3a;
  --v8a5-card: #20204a;
  --v8a5-text: #E6E6FA;
  --v8a5-text-dim: #b9b4d6;
  --v8a5-gold: #f2c14e;
  --v8a5-success: #4fd1c5;
  --v8a5-danger: #ff6b8b;
  --v8a5-radius: 14px;
  --v8a5-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v8a5-header-h: 62px;
  --v8a5-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(160deg, var(--v8a5-bg) 0%, #1b0d33 60%, #2a1654 100%);
  color: var(--v8a5-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v8a5-secondary); text-decoration: none; }

/* ---------- Layout containers ---------- */
.v8a5-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v8a5-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.v8a5-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Header ---------- */
.v8a5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v8a5-header-h);
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(153, 102, 204, 0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.v8a5-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.v8a5-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--v8a5-light);
}

.v8a5-logo img {
  width: 30px; height: 30px;
  border-radius: 8px;
}

.v8a5-logo .v8a5-logo-accent {
  color: var(--v8a5-gold);
}

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

.v8a5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  text-decoration: none;
  min-height: 38px;
  line-height: 1;
}

.v8a5-btn:hover { transform: translateY(-1px); }
.v8a5-btn:active { transform: translateY(0); opacity: 0.9; }

.v8a5-btn-primary {
  background: linear-gradient(135deg, var(--v8a5-primary), var(--v8a5-secondary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(153, 102, 204, 0.5);
}

.v8a5-btn-gold {
  background: linear-gradient(135deg, var(--v8a5-gold), #ff9a3c);
  color: #2a1654;
  box-shadow: 0 4px 14px rgba(242, 193, 78, 0.45);
}

.v8a5-btn-ghost {
  background: transparent;
  border: 1px solid rgba(221, 160, 221, 0.55);
  color: var(--v8a5-light);
}

.v8a5-btn-sm { padding: 0.55rem 0.9rem; font-size: 1.2rem; min-height: 32px; }
.v8a5-btn-block { width: 100%; }

/* ---------- Hamburger / Mobile menu ---------- */
.v8a5-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v8a5-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
}

.v8a5-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
  z-index: 9998;
}

.v8a5-overlay-active { opacity: 1; visibility: visible; }

.v8a5-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #1a0d33, #0F0F23);
  border-left: 1px solid rgba(153, 102, 204, 0.35);
  padding: 7rem 1.4rem 2rem;
  transform: translateX(0);
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow-y: auto;
}

.v8a5-menu-open { right: 0; }

.v8a5-mobile-menu a {
  display: block;
  color: var(--v8a5-light);
  padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(221, 160, 221, 0.18);
  font-size: 1.45rem;
}

.v8a5-mobile-menu a:hover { color: var(--v8a5-gold); }

.v8a5-mobile-menu .v8a5-menu-cta {
  margin-top: 1.2rem;
  border-bottom: none;
}

/* ---------- Main content spacing ---------- */
main {
  padding-top: calc(var(--v8a5-header-h) + 0.5rem);
  padding-bottom: 2rem;
}

/* ---------- Hero / Carousel ---------- */
.v8a5-hero {
  margin: 1rem 0 0.5rem;
}

.v8a5-carousel {
  position: relative;
  border-radius: var(--v8a5-radius);
  overflow: hidden;
  box-shadow: var(--v8a5-shadow);
}

.v8a5-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.v8a5-slide-active { display: block; }

.v8a5-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v8a5-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(15, 15, 35, 0.92), rgba(15, 15, 35, 0));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
}

.v8a5-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.v8a5-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(230, 230, 250, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.v8a5-dot-active { background: var(--v8a5-gold); transform: scale(1.25); }

/* ---------- Section headings ---------- */
.v8a5-section {
  margin: 1.8rem 0 0.6rem;
}

.v8a5-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v8a5-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
}

.v8a5-section-title .v8a5-bar {
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--v8a5-gold), var(--v8a5-primary));
  border-radius: 4px;
}

.v8a5-subtitle {
  font-size: 1.4rem;
  color: var(--v8a5-text-dim);
  margin: 0.4rem 0 1rem;
}

/* ---------- Game grid ---------- */
.v8a5-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.v8a5-game-card {
  background: var(--v8a5-card);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid rgba(153, 102, 204, 0.25);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s;
}

.v8a5-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--v8a5-secondary);
  box-shadow: 0 6px 16px rgba(153, 102, 204, 0.4);
}

.v8a5-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
}

.v8a5-game-name {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: var(--v8a5-text);
  line-height: 1.2;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v8a5-category-label {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--v8a5-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1.2rem 0 0.6rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(242, 193, 78, 0.45);
  border-radius: 6px;
}

/* ---------- Info / feature cards ---------- */
.v8a5-card {
  background: var(--v8a5-card);
  border-radius: var(--v8a5-radius);
  padding: 1.2rem;
  margin: 0.6rem 0;
  border: 1px solid rgba(153, 102, 204, 0.22);
  box-shadow: var(--v8a5-shadow);
}

.v8a5-card h3 {
  margin: 0 0 0.5rem;
  color: var(--v8a5-gold);
  font-size: 1.5rem;
}

.v8a5-card p {
  margin: 0.3rem 0;
  color: var(--v8a5-text-dim);
  font-size: 1.3rem;
}

.v8a5-list {
  list-style: none;
  padding: 0; margin: 0.4rem 0;
}

.v8a5-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  color: var(--v8a5-text-dim);
  font-size: 1.3rem;
}

.v8a5-list li::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--v8a5-gold);
  position: absolute;
  left: 0; top: 0.55rem;
  font-size: 1rem;
}

/* ---------- Inline promo link ---------- */
.v8a5-link-promo {
  color: var(--v8a5-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.v8a5-link-promo:hover { color: var(--v8a5-secondary); }

.v8a5-cta-band {
  margin: 1.2rem 0;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(153, 102, 204, 0.35), rgba(242, 193, 78, 0.25));
  border-radius: var(--v8a5-radius);
  text-align: center;
  border: 1px solid rgba(242, 193, 78, 0.4);
}

.v8a5-cta-band p { margin: 0 0 0.8rem; color: var(--v8a5-light); }

/* ---------- Testimonial / winner rows ---------- */
.v8a5-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(221, 160, 221, 0.2);
}

.v8a5-row:last-child { border-bottom: none; }

.v8a5-row .v8a5-row-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v8a5-primary), var(--v8a5-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}

.v8a5-row strong { color: var(--v8a5-gold); }

/* ---------- Payment grid ---------- */
.v8a5-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.v8a5-pay-item {
  background: var(--v8a5-bg-soft);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--v8a5-text-dim);
  border: 1px solid rgba(153, 102, 204, 0.2);
}

.v8a5-pay-item i { font-size: 1.6rem; color: var(--v8a5-secondary); display: block; }

/* ---------- Stats ---------- */
.v8a5-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.v8a5-stat {
  background: var(--v8a5-bg-soft);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid rgba(153, 102, 204, 0.25);
}

.v8a5-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v8a5-gold);
  display: block;
}

.v8a5-stat-label {
  font-size: 1.05rem;
  color: var(--v8a5-text-dim);
}

/* ---------- Footer ---------- */
.v8a5-footer {
  margin-top: 2rem;
  padding: 1.8rem 1.2rem calc(var(--v8a5-bottomnav-h) + 1.5rem);
  background: rgba(15, 8, 30, 0.85);
  border-top: 1px solid rgba(153, 102, 204, 0.3);
  text-align: center;
}

.v8a5-footer-brand {
  font-size: 1.4rem;
  color: var(--v8a5-text-dim);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.v8a5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.v8a5-footer-links a {
  font-size: 1.15rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(221, 160, 221, 0.35);
  border-radius: 999px;
  color: var(--v8a5-light);
}

.v8a5-footer-links a:hover { background: rgba(153, 102, 204, 0.25); color: var(--v8a5-gold); }

.v8a5-footer-copy {
  font-size: 1.1rem;
  color: var(--v8a5-text-dim);
  opacity: 0.8;
}

/* ---------- Mobile bottom nav ---------- */
.v8a5-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v8a5-bottomnav-h);
  background: rgba(15, 8, 30, 0.97);
  border-top: 1px solid rgba(242, 193, 78, 0.45);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}

.v8a5-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v8a5-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 2px;
  transition: color 0.2s, transform 0.2s;
}

.v8a5-bottomnav-btn i,
.v8a5-bottomnav-btn span.material-icons-outlined {
  font-size: 22px;
}

.v8a5-bottomnav-btn .v8a5-bottomnav-label {
  font-size: 1rem;
  font-weight: 600;
}

.v8a5-bottomnav-btn:hover { color: var(--v8a5-secondary); }

.v8a5-bottomnav-btn:active { transform: scale(0.92); }

.v8a5-bottomnav-active {
  color: var(--v8a5-gold) !important;
}

.v8a5-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 36px;
  height: 3px;
  background: var(--v8a5-gold);
  border-radius: 0 0 6px 6px;
}

.v8a5-bottomnav-promo {
  color: #fff;
  background: linear-gradient(135deg, var(--v8a5-primary), var(--v8a5-secondary));
  position: relative;
}

.v8a5-bottomnav-promo i { color: #fff; }
.v8a5-bottomnav-promo:hover { color: #fff; }

/* ---------- Utility ---------- */
.v8a5-text-center { text-align: center; }
.v8a5-mt-1 { margin-top: 0.6rem; }
.v8a5-mt-2 { margin-top: 1.2rem; }
.v8a5-mb-2 { margin-bottom: 1.2rem; }
.v8a5-hidden { display: none !important; }

/* Mobile clearance for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v8a5-bottomnav-h) + 1rem); }
}

/* Desktop: hide bottom nav + hamburger, widen container */
@media (min-width: 769px) {
  .v8a5-bottomnav,
  .v8a5-menu-toggle { display: none; }
  .v8a5-container,
  .v8a5-wrapper,
  .v8a5-header-inner { max-width: 960px; }
  .v8a5-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v8a5-grid { grid-template-columns: repeat(6, 1fr); }
  .v8a5-mobile-menu { display: none; }
}
