/* f89.homes core stylesheet */
/* All custom classes use the "pg78-" prefix for namespace isolation */
/* Comments are in English per project convention */

:root {
  --pg78-primary: #BF360C;
  --pg78-navy: #000080;
  --pg78-light: #F0F8FF;
  --pg78-blue: #6495ED;
  --pg78-gray: #495057;
  --pg78-dark: #1E1E1E;
  --pg78-white: #ffffff;
  --pg78-gold: #FFC857;
  --pg78-green: #4ade80;
  --pg78-radius: 12px;
  --pg78-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: #0e0e0e;
  color: var(--pg78-light);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Layout containers */
.pg78-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg78-wrapper { min-height: 100vh; padding-top: 5.6rem; }
main { padding-bottom: 8rem; }

/* Header */
.pg78-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1a0a05 0%, #2b0d04 60%, #4a1407 100%);
  border-bottom: 2px solid var(--pg78-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.pg78-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.pg78-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.pg78-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg78-logo-text { font-size: 1.7rem; font-weight: 800; color: var(--pg78-gold); letter-spacing: 0.5px; }
.pg78-logo-text span { color: var(--pg78-blue); }
.pg78-header-actions { display: flex; align-items: center; gap: 0.4rem; }

.pg78-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.1rem; border: none; border-radius: 24px;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  color: var(--pg78-white); font-family: inherit;
}
.pg78-btn-login { background: linear-gradient(135deg, var(--pg78-blue), #3b6fd1); box-shadow: 0 3px 8px rgba(100, 149, 237, 0.4); }
.pg78-btn-register { background: linear-gradient(135deg, var(--pg78-primary), #e8581f); box-shadow: 0 3px 10px rgba(191, 54, 12, 0.55); }
.pg78-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pg78-btn:active { transform: scale(0.96); }
.pg78-menu-toggle { background: transparent; border: none; color: var(--pg78-light); font-size: 1.8rem; cursor: pointer; padding: 0.4rem; }

/* Mobile slide-in menu */
.pg78-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 82%; max-width: 320px;
  height: 100vh; background: linear-gradient(180deg, #1a0a05, #2b0d04);
  z-index: 9999; padding: 5.5rem 1.4rem 2rem;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 2px solid var(--pg78-primary);
}
.pg78-mobile-menu.pg78-menu-open { right: 0; }
.pg78-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.pg78-menu-overlay.pg78-active { opacity: 1; visibility: visible; }
.pg78-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--pg78-light);
  font-size: 2rem; cursor: pointer;
}
.pg78-menu-section { margin-bottom: 1.5rem; }
.pg78-menu-title {
  font-size: 1.2rem; color: var(--pg78-gold); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 200, 87, 0.3); padding-bottom: 0.3rem;
}
.pg78-menu-link {
  display: block; padding: 0.7rem 0.5rem;
  color: var(--pg78-light); font-size: 1.35rem; border-radius: 6px;
  transition: background 0.18s ease;
}
.pg78-menu-link:hover { background: rgba(100, 149, 237, 0.15); }
.pg78-menu-cta {
  display: block; margin-top: 1rem; text-align: center;
  background: linear-gradient(135deg, var(--pg78-primary), #e8581f);
  color: var(--pg78-white); padding: 1rem; border-radius: 10px; font-weight: 700;
}

/* Carousel */
.pg78-carousel {
  position: relative; border-radius: var(--pg78-radius);
  overflow: hidden; margin: 1rem 0; box-shadow: var(--pg78-shadow);
}
.pg78-carousel-track { position: relative; height: 180px; }
.pg78-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.pg78-carousel-slide.pg78-active { opacity: 1; }
.pg78-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg78-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.6rem 1rem 1rem; color: var(--pg78-white);
}
.pg78-carousel-caption h3 { font-size: 1.5rem; margin-bottom: 0.2rem; color: var(--pg78-gold); }
.pg78-carousel-caption p { font-size: 1.1rem; }
.pg78-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45); color: var(--pg78-white); border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center; z-index: 5;
}
.pg78-carousel-prev { left: 8px; }
.pg78-carousel-next { right: 8px; }
.pg78-carousel-dots {
  position: absolute; bottom: 8px; right: 10px;
  display: flex; gap: 5px; z-index: 5;
}
.pg78-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease; border: none;
}
.pg78-carousel-dot.pg78-active { background: var(--pg78-gold); transform: scale(1.3); }

/* Headings */
.pg78-h1 {
  font-size: 2rem; font-weight: 900; color: var(--pg78-gold);
  margin: 1.2rem 0 0.6rem; line-height: 2.4rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.pg78-subtitle { font-size: 1.3rem; color: var(--pg78-light); margin-bottom: 1rem; line-height: 1.7rem; }

/* Sections */
.pg78-section { padding: 1.4rem 0; }
.pg78-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--pg78-gold);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--pg78-primary);
}
.pg78-section-title i, .pg78-section-title span.material-icons { color: var(--pg78-primary); font-size: 2rem; }
.pg78-section-text { font-size: 1.3rem; color: var(--pg78-light); margin-bottom: 0.8rem; line-height: 1.7rem; }
.pg78-section-text strong { color: var(--pg78-gold); }
.pg78-link { color: var(--pg78-gold); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Game groups & grid */
.pg78-game-group { margin-bottom: 1.8rem; }
.pg78-group-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.pg78-group-title { font-size: 1.55rem; font-weight: 800; color: var(--pg78-gold); display: flex; align-items: center; gap: 0.5rem; }
.pg78-group-tag { font-size: 1.1rem; color: var(--pg78-blue); }
.pg78-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pg78-game-card {
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a); border-radius: 10px;
  overflow: hidden; cursor: pointer; text-align: center;
  border: 1px solid rgba(100, 149, 237, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pg78-game-card:hover { transform: translateY(-2px); border-color: var(--pg78-primary); box-shadow: 0 6px 14px rgba(191, 54, 12, 0.3); }
.pg78-game-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.pg78-game-card-name {
  font-size: 1.05rem; color: var(--pg78-light); padding: 0.4rem 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.pg78-card {
  background: linear-gradient(180deg, #262626, #181818); border-radius: var(--pg78-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid rgba(100, 149, 237, 0.18);
}
.pg78-card h3 { font-size: 1.45rem; color: var(--pg78-gold); margin-bottom: 0.5rem; }
.pg78-card p { font-size: 1.25rem; color: var(--pg78-light); line-height: 1.7rem; margin-bottom: 0.6rem; }

/* Feature grid */
.pg78-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.pg78-feature-item {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  padding: 0.9rem; border-radius: 10px; border-left: 3px solid var(--pg78-primary); text-align: center;
}
.pg78-feature-item i, .pg78-feature-item .material-icons { font-size: 2rem; color: var(--pg78-blue); margin-bottom: 0.3rem; }
.pg78-feature-item h4 { font-size: 1.25rem; color: var(--pg78-light); margin-bottom: 0.2rem; }
.pg78-feature-item p { font-size: 1.1rem; color: #9aa0a6; line-height: 1.4rem; }

/* RTP table */
.pg78-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; background: #1a1a1a; border-radius: 8px; overflow: hidden; }
.pg78-rtp-table th, .pg78-rtp-table td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid #2a2a2a; }
.pg78-rtp-table th { background: var(--pg78-primary); color: var(--pg78-white); font-size: 1.2rem; }
.pg78-rtp-table td { color: var(--pg78-light); }
.pg78-rtp-table tr:last-child td { border-bottom: none; }
.pg78-rtp-high { color: var(--pg78-green); font-weight: 700; }
.pg78-rtp-mid { color: var(--pg78-gold); font-weight: 700; }

/* Testimonials */
.pg78-testimonial {
  background: linear-gradient(135deg, #2a2a2a, #181818); border-radius: 10px;
  padding: 1rem; margin-bottom: 0.7rem; border-left: 3px solid var(--pg78-blue);
}
.pg78-testimonial-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.pg78-testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg78-primary), var(--pg78-blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--pg78-white); font-weight: 800; font-size: 1.3rem;
}
.pg78-testimonial-name { font-size: 1.3rem; color: var(--pg78-gold); font-weight: 700; }
.pg78-testimonial-stars { color: var(--pg78-gold); font-size: 1.1rem; }
.pg78-testimonial p { font-size: 1.2rem; color: var(--pg78-light); line-height: 1.6rem; }

/* Payment methods */
.pg78-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.pg78-payment-item {
  background: #262626; border-radius: 8px; padding: 0.6rem; text-align: center;
  font-size: 1rem; color: var(--pg78-light); border: 1px solid rgba(100, 149, 237, 0.15);
}
.pg78-payment-item i, .pg78-payment-item .material-icons { font-size: 1.8rem; color: var(--pg78-blue); display: block; margin-bottom: 0.2rem; }

/* Winners */
.pg78-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: #1f1f1f; padding: 0.7rem 0.9rem; border-radius: 8px;
  margin-bottom: 0.5rem; border-left: 3px solid var(--pg78-gold);
}
.pg78-winner-name { font-size: 1.25rem; color: var(--pg78-light); }
.pg78-winner-game { font-size: 1.05rem; color: #9aa0a6; }
.pg78-winner-amount { font-size: 1.35rem; color: var(--pg78-green); font-weight: 800; }

/* CTA */
.pg78-cta-banner {
  background: linear-gradient(135deg, var(--pg78-primary), #e8581f);
  border-radius: var(--pg78-radius); padding: 1.4rem; text-align: center;
  margin: 1.2rem 0; box-shadow: var(--pg78-shadow);
}
.pg78-cta-banner h3 { font-size: 1.6rem; color: var(--pg78-white); margin-bottom: 0.4rem; }
.pg78-cta-banner p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 0.9rem; }
.pg78-cta-btn {
  display: inline-block; background: var(--pg78-white); color: var(--pg78-primary);
  font-weight: 800; padding: 0.9rem 2rem; border-radius: 30px;
  font-size: 1.35rem; cursor: pointer; border: none; transition: transform 0.2s ease;
}
.pg78-cta-btn:active { transform: scale(0.95); }

/* FAQ */
.pg78-faq-item {
  background: #1f1f1f; border-radius: 8px; padding: 0.9rem 1rem;
  margin-bottom: 0.6rem; border-left: 3px solid var(--pg78-blue);
}
.pg78-faq-item h4 { font-size: 1.3rem; color: var(--pg78-gold); margin-bottom: 0.3rem; }
.pg78-faq-item p { font-size: 1.2rem; color: var(--pg78-light); line-height: 1.6rem; }

/* App download */
.pg78-app-box {
  background: linear-gradient(135deg, var(--pg78-navy), #1a1a4a);
  border-radius: var(--pg78-radius); padding: 1.4rem; text-align: center; margin: 1rem 0;
}
.pg78-app-box h3 { color: var(--pg78-gold); font-size: 1.6rem; margin-bottom: 0.4rem; }
.pg78-app-box p { color: var(--pg78-light); font-size: 1.2rem; margin-bottom: 1rem; }
.pg78-app-buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.pg78-app-btn {
  background: var(--pg78-white); color: var(--pg78-dark);
  padding: 0.7rem 1.1rem; border-radius: 8px;
  font-size: 1.2rem; font-weight: 700; cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* Footer */
.pg78-footer {
  background: linear-gradient(180deg, #1a0a05, #000);
  padding: 1.8rem 0 2rem; margin-top: 1.5rem; border-top: 2px solid var(--pg78-primary);
}
.pg78-footer-brand { font-size: 1.25rem; color: #aab0b6; line-height: 1.7rem; margin-bottom: 1rem; }
.pg78-footer-brand strong { color: var(--pg78-gold); }
.pg78-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-bottom: 1rem; }
.pg78-footer-links a { font-size: 1.15rem; color: var(--pg78-blue); }
.pg78-footer-links a:hover { color: var(--pg78-gold); text-decoration: underline; }
.pg78-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pg78-footer-btn {
  flex: 1 1 45%; background: linear-gradient(135deg, var(--pg78-primary), #e8581f);
  color: var(--pg78-white); border: none; padding: 0.7rem 0.6rem;
  border-radius: 8px; font-size: 1.15rem; font-weight: 700; cursor: pointer; text-align: center;
}
.pg78-footer-copy { text-align: center; font-size: 1.1rem; color: #6c7177; border-top: 1px solid #2a2a2a; padding-top: 1rem; }

/* Bottom nav */
.pg78-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
  background: linear-gradient(180deg, #1f0a04, #000);
  border-top: 2px solid var(--pg78-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.5);
}
.pg78-bottom-nav-btn {
  flex: 1; background: transparent; border: none; color: #8b9096;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; height: 100%; cursor: pointer; font-family: inherit;
  position: relative; text-decoration: none; padding: 0; transition: color 0.2s ease;
}
.pg78-bottom-nav-btn i, .pg78-bottom-nav-btn .material-icons { font-size: 22px; }
.pg78-bottom-nav-btn ion-icon { font-size: 24px; }
.pg78-bottom-nav-btn .pg78-nav-label { font-size: 1rem; font-weight: 600; }
.pg78-bottom-nav-btn.pg78-current, .pg78-bottom-nav-btn:hover { color: var(--pg78-gold); }
.pg78-bottom-nav-btn.pg78-current::before {
  content: ""; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; background: var(--pg78-gold); border-radius: 0 0 4px 4px;
}
.pg78-bottom-nav-btn:active { transform: scale(0.92); }

/* Center promo button with raised circle */
.pg78-bottom-nav-btn.pg78-promo-center { position: relative; }
.pg78-bottom-nav-btn.pg78-promo-center .pg78-center-circle {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--pg78-primary), #e8581f);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--pg78-white); border: 3px solid #1f0a04;
  box-shadow: 0 4px 10px rgba(191, 54, 12, 0.6);
}
.pg78-bottom-nav-btn.pg78-promo-center .pg78-nav-label { margin-top: 28px; }

/* Reveal animation */
.pg78-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.pg78-reveal.pg78-visible { opacity: 1; transform: translateY(0); }

/* Desktop */
@media (min-width: 769px) {
  .pg78-bottom-nav { display: none; }
  .pg78-menu-toggle { display: none; }
  .pg78-container { max-width: 768px; }
  main { padding-bottom: 2rem; }
}
