/* ============================================================
 * bingo plus apps - layout-e947.css
 * Mobile-first PH casino gaming site.
 * All custom classes use the "v79a-" prefix.
 * Palette: #F4A460 #212F3D #6495ED #ADD8E6 #00CED1 #F0F0F0
 * ============================================================ */

:root {
  --v79a-primary: #F4A460;     /* Sandy gold - brand accent */
  --v79a-bg: #212F3D;          /* Deep navy - background */
  --v79a-blue: #6495ED;        /* Cornflower - links/highlights */
  --v79a-mint: #ADD8E6;        /* Light blue - soft text */
  --v79a-cyan: #00CED1;        /* Teal cyan - active accents */
  --v79a-surface: #F0F0F0;     /* Light grey - text on dark */
  --v79a-text: #F0F0F0;
  --v79a-text-muted: #ADD8E6;
  --v79a-card-bg: #2A3B4E;
  --v79a-card-bg-2: #1B2735;
  --v79a-border: rgba(173, 216, 230, 0.18);
  --v79a-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --v79a-radius: 14px;
  --v79a-radius-sm: 10px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--v79a-bg);
  color: var(--v79a-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--v79a-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--v79a-primary); }

h1, h2, h3, h4 {
  color: var(--v79a-surface);
  line-height: 1.4rem;
  font-weight: 700;
}

h1 { font-size: 2.4rem; line-height: 3rem; }
h2 { font-size: 2rem; line-height: 2.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.7rem; line-height: 2.3rem; margin-bottom: 0.6rem; }
p  { margin-bottom: 1rem; color: var(--v79a-text); }

main { flex: 1 0 auto; }

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

.v79a-container {
  width: 100%;
  padding: 1.6rem 1.2rem;
}

.v79a-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--v79a-border);
}

.v79a-section:last-child { border-bottom: none; }

/* ---------- Header ---------- */
.v79a-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1B2735 0%, #212F3D 100%);
  border-bottom: 2px solid var(--v79a-primary);
  box-shadow: var(--v79a-shadow);
}

.v79a-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}

.v79a-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}

.v79a-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--v79a-primary);
}

.v79a-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v79a-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.v79a-menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--v79a-card-bg);
  border: 1px solid var(--v79a-border);
  color: var(--v79a-text);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.v79a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.v79a-btn:active { transform: scale(0.96); }

.v79a-btn-register {
  background: linear-gradient(135deg, var(--v79a-primary), #E89455);
  color: #1B2735;
  box-shadow: 0 3px 10px rgba(244, 164, 96, 0.4);
}

.v79a-btn-login {
  background: transparent;
  color: var(--v79a-cyan);
  border: 1.5px solid var(--v79a-cyan);
}

.v79a-btn-cta {
  background: linear-gradient(135deg, var(--v79a-cyan), var(--v79a-blue));
  color: #1B2735;
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0, 206, 209, 0.45);
}

/* ---------- Mobile menu (expandable nav) ---------- */
.v79a-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v79a-card-bg-2);
  z-index: 9999;
  padding: 2rem 1.4rem;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 1px solid var(--v79a-border);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

.v79a-mobile-menu.v79a-menu-open { right: 0; }

.v79a-menu-title {
  font-size: 1.6rem;
  color: var(--v79a-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--v79a-border);
}

.v79a-mobile-menu ul { list-style: none; }

.v79a-mobile-menu li {
  margin-bottom: 0.4rem;
}

.v79a-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--v79a-text);
  font-size: 1.4rem;
  border-radius: 8px;
  border-bottom: 1px solid rgba(173, 216, 230, 0.08);
}

.v79a-mobile-menu a:active {
  background: rgba(0, 206, 209, 0.12);
}

.v79a-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--v79a-card-bg);
  border: 1px solid var(--v79a-border);
  color: var(--v79a-text);
  font-size: 1.6rem;
  cursor: pointer;
}

.v79a-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  display: none;
}

.v79a-overlay.v79a-menu-open { display: block; }

/* ---------- Hero carousel ---------- */
.v79a-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--v79a-radius);
  overflow: hidden;
  box-shadow: var(--v79a-shadow);
  margin-bottom: 1.6rem;
}

.v79a-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.v79a-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

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

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

.v79a-carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(27, 39, 53, 0.92));
  color: var(--v79a-surface);
  font-size: 1.4rem;
  font-weight: 600;
}

.v79a-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 39, 53, 0.75);
  color: var(--v79a-primary);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.v79a-carousel-prev { left: 0.6rem; }
.v79a-carousel-next { right: 0.6rem; }

.v79a-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.v79a-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.5);
  cursor: pointer;
  border: none;
}

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

/* ---------- Game grid ---------- */
.v79a-cat-title {
  font-size: 1.8rem;
  color: var(--v79a-primary);
  margin: 1.8rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v79a-cat-title .material-icons {
  font-size: 2.2rem;
  color: var(--v79a-cyan);
}

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

.v79a-grid.v79a-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.v79a-card {
  background: var(--v79a-card-bg);
  border-radius: var(--v79a-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--v79a-border);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.v79a-card:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 2px var(--v79a-cyan);
}

.v79a-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0f1721;
}

.v79a-card-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--v79a-text);
  line-height: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info / feature blocks ---------- */
.v79a-card-info {
  background: var(--v79a-card-bg);
  border-radius: var(--v79a-radius);
  padding: 1.4rem;
  border: 1px solid var(--v79a-border);
  margin-bottom: 1.2rem;
}

.v79a-card-info h3 {
  color: var(--v79a-cyan);
}

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

.v79a-feature {
  background: var(--v79a-card-bg);
  padding: 1.2rem;
  border-radius: var(--v79a-radius-sm);
  text-align: center;
  border: 1px solid var(--v79a-border);
}

.v79a-feature .v79a-icon {
  font-size: 2.8rem;
  color: var(--v79a-primary);
  margin-bottom: 0.6rem;
}

.v79a-feature h4 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--v79a-surface);
}

.v79a-feature p {
  font-size: 1.2rem;
  color: var(--v79a-text-muted);
  line-height: 1.6rem;
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.v79a-testimonials {
  display: grid;
  gap: 1rem;
}

.v79a-testimonial {
  background: var(--v79a-card-bg);
  padding: 1.2rem;
  border-radius: var(--v79a-radius-sm);
  border-left: 3px solid var(--v79a-primary);
}

.v79a-testimonial-stars { color: #FFCE3D; font-size: 1.3rem; margin-bottom: 0.4rem; }

.v79a-testimonial p { font-size: 1.3rem; color: var(--v79a-surface); }

.v79a-testimonial-author { font-size: 1.2rem; color: var(--v79a-text-muted); }

/* ---------- Payment ---------- */
.v79a-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.v79a-pay-item {
  background: var(--v79a-card-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--v79a-border);
  font-size: 1.2rem;
  color: var(--v79a-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Winners ---------- */
.v79a-winners {
  display: grid;
  gap: 0.6rem;
}

.v79a-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--v79a-card-bg);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  border: 1px solid var(--v79a-border);
}

.v79a-winner .v79a-amount { color: var(--v79a-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.v79a-footer {
  background: var(--v79a-card-bg-2);
  padding: 2rem 1.2rem 7rem; /* bottom space for fixed nav */
  border-top: 2px solid var(--v79a-primary);
  margin-top: 2rem;
}

.v79a-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.v79a-footer-col h4 {
  color: var(--v79a-cyan);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.v79a-footer-col ul { list-style: none; }

.v79a-footer-col li { margin-bottom: 0.4rem; }

.v79a-footer-col a {
  font-size: 1.2rem;
  color: var(--v79a-text-muted);
}

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

.v79a-footer-promos .v79a-btn {
  flex: 1 1 40%;
  min-height: 36px;
  font-size: 1.2rem;
}

.v79a-footer-desc {
  font-size: 1.2rem;
  color: var(--v79a-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

.v79a-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v79a-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--v79a-border);
}

/* ---------- Bottom nav (mobile fixed) ---------- */
.v79a-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #1B2735, #11181F);
  border-top: 2px solid var(--v79a-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

.v79a-bottomnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--v79a-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease, transform 0.18s ease;
}

.v79a-bottomnav-item .material-icons,
.v79a-bottomnav-item i {
  font-size: 24px;
}

.v79a-bottomnav-item:active { transform: scale(0.9); }

.v79a-bottomnav-active {
  color: var(--v79a-primary) !important;
}

.v79a-bottomnav-active .material-icons,
.v79a-bottomnav-active i {
  color: var(--v79a-primary);
}

/* ---------- Utility ---------- */
.v79a-text-center { text-align: center; }
.v79a-mt-1 { margin-top: 1rem; }
.v79a-mt-2 { margin-top: 2rem; }
.v79a-mb-1 { margin-bottom: 1rem; }

.v79a-anchor-text {
  color: var(--v79a-cyan);
  font-weight: 600;
  text-decoration: underline;
}

.v79a-pulse {
  animation: v79a-pulse-anim 0.22s ease;
}

@keyframes v79a-pulse-anim {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.88); color: var(--v79a-primary); }
  100% { transform: scale(1); }
}

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  body { max-width: 960px; }
  .v79a-wrapper { max-width: 960px; }
  .v79a-grid { grid-template-columns: repeat(6, 1fr); }
  .v79a-grid.v79a-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .v79a-bottomnav { display: none; }
  .v79a-footer { padding-bottom: 2rem; }
}

/* ---------- Mobile bottom padding so content isn't hidden ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
