/* ============================================================
 * plus777 live - theme.css
 * Palette: #000080 navy / #1B263B ink / #00FA9A mint
 *          #FFFFFF / #AFEEEE pale turquoise / #48D1CC turquoise
 * All custom classes use the v520- prefix.
 * Mobile-first, max-width 430px on phone.
 * ============================================================ */

:root {
  --v520-primary: #000080;
  --v520-ink: #1B263B;
  --v520-mint: #00FA9A;
  --v520-white: #FFFFFF;
  --v520-pale: #AFEEEE;
  --v520-turq: #48D1CC;
  --v520-bg: #0b1530;
  --v520-text: #eaf6ff;
  --v520-muted: #9fb3d1;
  --v520-gold: #ffd86b;
  --v520-danger: #ff5d6c;
  --v520-shadow: 0 6px 20px rgba(0, 0, 128, 0.35);
  --v520-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(1200px 500px at 50% -10%, #16275e 0%, var(--v520-bg) 55%, #050a1f 100%);
  color: var(--v520-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--v520-pale); text-decoration: none; }
a:hover { color: var(--v520-mint); }

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

.v520-section {
  padding: 2.4rem 0 1rem;
}

.v520-section-alt {
  background: linear-gradient(180deg, rgba(0, 250, 154, 0.05) 0%, rgba(72, 209, 204, 0.05) 100%);
  border-top: 1px solid rgba(0, 250, 154, 0.15);
  border-bottom: 1px solid rgba(72, 209, 204, 0.15);
}

/* ---------- Header ---------- */
.v520-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--v520-primary), var(--v520-ink));
  border-bottom: 1px solid rgba(0, 250, 154, 0.25);
  box-shadow: var(--v520-shadow);
}

.v520-header-row {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 52px;
}

.v520-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v520-white);
  font-weight: 700;
  font-size: 1.6rem;
}
.v520-brand img { width: 28px; height: 28px; border-radius: 6px; }

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

.v520-menu-btn {
  background: transparent;
  border: 0;
  color: var(--v520-white);
  font-size: 2rem;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.v520-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-height: 38px;
}
.v520-btn:active { transform: scale(0.96); }

.v520-btn-primary {
  background: linear-gradient(135deg, var(--v520-mint), var(--v520-turq));
  color: var(--v520-primary);
  box-shadow: 0 4px 14px rgba(0, 250, 154, 0.35);
}
.v520-btn-ghost {
  background: transparent;
  color: var(--v520-white);
  border: 1px solid var(--v520-pale);
}
.v520-btn-block { width: 100%; justify-content: center; padding: 1rem; font-size: 1.5rem; }

/* ---------- Mobile menu drawer ---------- */
.v520-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--v520-ink);
  padding: 6rem 1.6rem 2rem;
  z-index: 9999;
  transition: right 0.28s ease;
  border-left: 1px solid rgba(0, 250, 154, 0.2);
  overflow-y: auto;
}
.v520-mobile-menu.v520-menu-open { right: 0; }
.v520-mobile-menu h3 { color: var(--v520-pale); font-size: 1.4rem; margin: 1.4rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; }
.v520-mobile-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px dashed rgba(175, 238, 238, 0.18);
  color: var(--v520-white);
  font-size: 1.4rem;
}

.v520-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.v520-menu-backdrop.v520-menu-open { opacity: 1; pointer-events: auto; }

body.v520-no-scroll { overflow: hidden; }

/* ---------- Hero / Carousel ---------- */
.v520-hero {
  margin-top: 64px;
  position: relative;
}
.v520-hero-slider {
  position: relative;
  border-radius: var(--v520-radius);
  overflow: hidden;
  box-shadow: var(--v520-shadow);
}
.v520-slide {
  position: relative;
  display: none;
}
.v520-slide.v520-slide-active { display: block; }
.v520-slide img { width: 100%; height: 200px; object-fit: cover; }
.v520-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,40,0.85), transparent);
  padding: 2rem 1rem 1rem;
  color: var(--v520-white);
}
.v520-slide-caption h2 { margin: 0 0 0.3rem; font-size: 1.7rem; color: var(--v520-mint); }
.v520-slide-caption p { margin: 0; font-size: 1.25rem; color: var(--v520-pale); }
.v520-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v520-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 0; cursor: pointer;
}
.v520-dot.v520-dot-active { background: var(--v520-mint); width: 22px; border-radius: 4px; }

/* ---------- Headings ---------- */
.v520-h1 {
  font-size: 2.2rem;
  line-height: 2.8rem;
  color: var(--v520-white);
  margin: 1.4rem 0 0.6rem;
  letter-spacing: 0.01em;
}
.v520-h1 span { color: var(--v520-mint); }

.v520-h2 {
  font-size: 1.8rem;
  color: var(--v520-white);
  margin: 2rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--v520-mint);
}
.v520-h3 {
  font-size: 1.4rem;
  color: var(--v520-pale);
  margin: 1.2rem 0 0.4rem;
}

.v520-lead { color: var(--v520-muted); font-size: 1.35rem; margin: 0 0 1rem; }

/* ---------- Game grid ---------- */
.v520-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.v520-game-card {
  background: rgba(27, 38, 59, 0.7);
  border: 1px solid rgba(0, 250, 154, 0.12);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.v520-game-card:hover { transform: translateY(-2px); border-color: var(--v520-mint); }
.v520-game-card img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; }
.v520-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--v520-pale);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Card / panel ---------- */
.v520-card {
  background: rgba(27, 38, 59, 0.55);
  border-radius: var(--v520-radius);
  padding: 1.2rem;
  border: 1px solid rgba(175, 238, 238, 0.15);
  margin-bottom: 1rem;
}
.v520-card h3 { margin-top: 0; }

.v520-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

/* ---------- FAQ accordion ---------- */
.v520-faq-item {
  background: rgba(27, 38, 59, 0.55);
  border: 1px solid rgba(175, 238, 238, 0.18);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.v520-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--v520-white);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.v520-faq-q::after { content: "+"; color: var(--v520-mint); font-size: 1.6rem; }
.v520-faq-item.v520-faq-open .v520-faq-q::after { content: "\2212"; }
.v520-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1rem; color: var(--v520-muted); }
.v520-faq-item.v520-faq-open .v520-faq-a { max-height: 320px; padding-bottom: 1rem; }

/* ---------- Promo CTA strip ---------- */
.v520-cta {
  background: linear-gradient(135deg, var(--v520-primary), var(--v520-turq));
  border-radius: var(--v520-radius);
  padding: 1.4rem;
  text-align: center;
  color: var(--v520-white);
  box-shadow: var(--v520-shadow);
  margin: 1.6rem 0;
}
.v520-cta h3 { color: var(--v520-gold); margin: 0 0 0.4rem; }
.v520-cta p { margin: 0 0 1rem; color: var(--v520-pale); }

/* ---------- Lists ---------- */
.v520-list { margin: 0; padding-left: 1.4rem; color: var(--v520-muted); }
.v520-list li { margin-bottom: 0.4rem; }

/* ---------- Tag chips ---------- */
.v520-chip-row { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.v520-chip {
  background: rgba(175, 238, 238, 0.12);
  color: var(--v520-pale);
  border: 1px solid rgba(175, 238, 238, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.v520-chip.v520-chip-active { background: var(--v520-mint); color: var(--v520-primary); border-color: var(--v520-mint); }

/* ---------- Winners ---------- */
.v520-winner {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(27, 38, 59, 0.6);
  padding: 0.6rem; border-radius: 10px; margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.v520-winner b { color: var(--v520-mint); }

/* ---------- Payment logos ---------- */
.v520-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v520-pay {
  background: rgba(255,255,255,0.92);
  color: var(--v520-primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

/* ---------- Footer ---------- */
.v520-footer {
  margin-top: 2rem;
  padding: 1.6rem 1rem 110px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 50, 0.6));
  border-top: 1px solid rgba(0, 250, 154, 0.2);
  text-align: center;
  color: var(--v520-muted);
  font-size: 1.2rem;
}
.v520-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.v520-footer-links a { color: var(--v520-pale); font-size: 1.15rem; }
.v520-footer-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin: 0.8rem 0;
}
.v520-copy { color: var(--v520-muted); font-size: 1.1rem; margin-top: 0.6rem; }

/* ---------- Bottom nav (mobile only) ---------- */
.v520-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(90deg, var(--v520-primary), var(--v520-ink));
  border-top: 1px solid var(--v520-mint);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.v520-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  color: var(--v520-pale); font-size: 1rem;
  background: transparent; border: 0; cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v520-bottom-nav-btn:active { transform: scale(0.9); }
.v520-bottom-nav-btn i,
.v520-bottom-nav-btn span.material-icons,
.v520-bottom-nav-btn ion-icon { font-size: 22px; }
.v520-bottom-nav-btn.v520-nav-active { color: var(--v520-mint); }
.v520-bottom-nav-btn.v520-nav-active::after {
  content: ""; display: block; width: 24px; height: 2px;
  background: var(--v520-mint); border-radius: 2px; margin-top: 2px;
}

/* Main padding for fixed bars */
main { padding-bottom: 80px; }

/* Back-to-top FAB */
.v520-top {
  position: fixed; right: 14px; bottom: 74px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--v520-mint); color: var(--v520-primary);
  border: 0; cursor: pointer; z-index: 999;
  font-size: 1.8rem; line-height: 40px; text-align: center;
  box-shadow: var(--v520-shadow);
}

/* Desktop: hide bottom nav + widen wrapper */
@media (min-width: 769px) {
  .v520-bottom-nav { display: none; }
  .v520-wrapper { max-width: 960px; }
  .v520-grid { grid-template-columns: repeat(6, 1fr); }
  .v520-grid-2 { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 30px; }
  .v520-footer { padding-bottom: 30px; }
  .v520-menu-btn { display: none; }
  .v520-header-row { max-width: 960px; }
  .v520-slide img { height: 340px; }
}

@media (max-width: 360px) {
  .v520-grid { grid-template-columns: repeat(2, 1fr); }
  .v520-h1 { font-size: 1.9rem; }
}
