/* ============================================================
 * ph777 app - style-aa45.css
 * All custom classes use the v579- prefix.
 * Palette: #48D1CC | #FF4500 | #DC143C | #0F0F23 | #FFFFBA
 * ============================================================ */

:root {
  --v579-primary: #48D1CC;
  --v579-accent: #FF4500;
  --v579-hot: #DC143C;
  --v579-bg: #0F0F23;
  --v579-bg-2: #14143a;
  --v579-bg-3: #1c1c4e;
  --v579-text: #FFFFBA;
  --v579-text-2: #ffffff;
  --v579-muted: #a8a8d4;
  --v579-border: rgba(72, 209, 204, 0.22);
  --v579-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --v579-radius: 14px;
  --v579-radius-sm: 10px;
  --v579-header-h: 58px;
  --v579-bottom-h: 62px;
}

/* Base reset */
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #1a1a44 0%, var(--v579-bg) 55%);
  color: var(--v579-text-2);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v579-primary); text-decoration: none; }
a:hover { color: var(--v579-text); }

/* Layout containers */
.v579-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.v579-wrapper { padding: 12px 0; }
.v579-grid { display: grid; gap: 10px; }

/* Header */
.v579-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v579-header-h);
  background: linear-gradient(90deg, #0b0b1f 0%, #1a1a44 100%);
  border-bottom: 2px solid var(--v579-primary);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.v579-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  max-width: 430px;
  margin: 0 auto;
}
.v579-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v579-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.3px;
}
.v579-logo img { width: 30px; height: 30px; border-radius: 6px; }
.v579-logo .v579-logo-dot { color: var(--v579-accent); }

.v579-header-actions { display: flex; align-items: center; gap: 6px; }
.v579-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 24px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v579-btn:hover { transform: translateY(-1px); }
.v579-btn-primary {
  background: linear-gradient(135deg, var(--v579-accent), var(--v579-hot));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,69,0,0.35);
}
.v579-btn-ghost {
  background: transparent;
  color: var(--v579-primary);
  border: 1.5px solid var(--v579-primary);
}
.v579-btn-block { width: 100%; padding: 12px; font-size: 1.55rem; }
.v579-btn-large { padding: 14px 28px; font-size: 1.7rem; }

.v579-menu-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--v579-primary);
  color: var(--v579-primary);
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile slide-down menu */
.v579-mobile-menu {
  position: fixed;
  top: var(--v579-header-h);
  left: 0; right: 0;
  background: var(--v579-bg-2);
  border-bottom: 2px solid var(--v579-primary);
  transform: translateY(-150%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 10px 14px;
}
.v579-mobile-menu.v579-is-open { transform: translateY(0); }
.v579-mobile-menu a {
  display: block;
  padding: 10px 6px;
  color: var(--v579-text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.4rem;
}
.v579-mobile-menu a:hover { color: var(--v579-accent); }

/* Main content */
.v579-main { padding-top: calc(var(--v579-header-h) + 8px); padding-bottom: 20px; }

/* Hero carousel */
.v579-hero {
  position: relative;
  border-radius: var(--v579-radius);
  overflow: hidden;
  box-shadow: var(--v579-shadow);
  margin-top: 10px;
}
.v579-hero-track { position: relative; aspect-ratio: 16 / 7; }
.v579-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.v579-hero-slide.v579-is-active { opacity: 1; }
.v579-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.v579-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,15,35,0.85), transparent);
  padding: 14px 12px 10px;
}
.v579-hero-title { font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0; }
.v579-hero-sub { font-size: 1.25rem; color: var(--v579-text); margin: 2px 0 0; }
.v579-hero-dots {
  position: absolute; bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.v579-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.v579-hero-dot.v579-is-active { background: var(--v579-accent); }

/* Section titles */
.v579-section { margin: 22px 0; }
.v579-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v579-section-head h2 {
  font-size: 1.7rem; margin: 0; color: var(--v579-text);
  border-left: 4px solid var(--v579-accent); padding-left: 8px;
}
.v579-section-link { font-size: 1.2rem; color: var(--v579-primary); }

/* Filter chips */
.v579-filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.v579-filter-chip {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--v579-border);
  background: var(--v579-bg-2);
  color: var(--v579-text);
  font-size: 1.2rem;
  white-space: nowrap;
  cursor: pointer;
}
.v579-filter-chip.v579-is-active {
  background: var(--v579-accent); color: #fff; border-color: var(--v579-accent);
}

/* Game grid */
.v579-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v579-game-card {
  background: var(--v579-bg-2);
  border-radius: var(--v579-radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.v579-game-card:hover { transform: translateY(-2px); border-color: var(--v579-primary); }
.v579-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.v579-game-card span {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  color: var(--v579-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Info / content cards */
.v579-card {
  background: var(--v579-bg-2);
  border: 1px solid var(--v579-border);
  border-radius: var(--v579-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--v579-shadow);
}
.v579-card h3 { margin: 0 0 6px; font-size: 1.5rem; color: var(--v579-text); }
.v579-card p { margin: 0 0 8px; color: var(--v579-text-2); font-size: 1.3rem; line-height: 1.55; }
.v579-card .v579-inline-link { color: var(--v579-accent); font-weight: 700; }

.v579-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.v579-stat {
  background: var(--v579-bg-3);
  border-radius: var(--v579-radius-sm);
  padding: 10px;
  text-align: center;
}
.v579-stat .v579-stat-num { font-size: 1.9rem; color: var(--v579-primary); font-weight: 800; }
.v579-stat .v579-stat-label { font-size: 1.15rem; color: var(--v579-muted); }

/* Testimonials */
.v579-testimonial {
  background: var(--v579-bg-2);
  border-left: 3px solid var(--v579-primary);
  padding: 10px 12px;
  border-radius: 0 var(--v579-radius-sm) var(--v579-radius-sm) 0;
  margin-bottom: 8px;
}
.v579-testimonial p { margin: 0 0 4px; font-size: 1.3rem; color: var(--v579-text-2); }
.v579-testimonial small { color: var(--v579-muted); font-size: 1.1rem; }

/* FAQ */
.v579-faq-item {
  background: var(--v579-bg-2);
  border-radius: var(--v579-radius-sm);
  margin-bottom: 6px;
  overflow: hidden;
}
.v579-faq-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; cursor: pointer;
  font-weight: 700; color: var(--v579-text);
}
.v579-faq-icon { color: var(--v579-accent); font-size: 1.6rem; }
.v579-faq-body {
  max-height: 0; overflow: hidden;
  padding: 0 12px; color: var(--v579-text-2); font-size: 1.25rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.v579-faq-item.v579-is-open .v579-faq-body { max-height: 320px; padding: 0 12px 10px; }

/* Payment chips */
.v579-pay-row { display: flex; flex-wrap: wrap; gap: 6px; }
.v579-pay-chip {
  background: var(--v579-bg-3);
  border: 1px solid var(--v579-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--v579-text);
}

/* Reveal animation */
.v579-reveal { opacity: 0; transform: translateY(18px); transition: all 0.5s ease; }
.v579-reveal.v579-is-visible { opacity: 1; transform: translateY(0); }
.v579-is-hidden { display: none !important; }

/* Footer */
.v579-footer {
  margin-top: 20px;
  background: linear-gradient(180deg, #0b0b1f 0%, #050514 100%);
  padding: 22px 14px calc(var(--v579-bottom-h) + 22px);
  border-top: 2px solid var(--v579-primary);
}
.v579-footer-inner { max-width: 430px; margin: 0 auto; }
.v579-footer p { color: var(--v579-muted); font-size: 1.25rem; line-height: 1.55; }
.v579-footer h4 { color: var(--v579-text); font-size: 1.4rem; margin: 14px 0 6px; }
.v579-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.v579-footer-links a {
  background: var(--v579-bg-3);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.15rem;
  color: var(--v579-text);
}
.v579-footer-links a:hover { color: var(--v579-accent); }
.v579-promo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.v579-copy { font-size: 1.1rem; color: var(--v579-muted); margin-top: 10px; text-align: center; }

/* Mobile bottom nav */
.v579-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v579-bottom-h);
  background: linear-gradient(180deg, #14143a 0%, #050514 100%);
  border-top: 2px solid var(--v579-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.v579-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--v579-text);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 6px 2px;
  min-height: 60px;
  min-width: 60px;
  transition: color 0.15s, transform 0.15s;
}
.v579-bottom-nav-btn i,
.v579-bottom-nav-btn span.material-icons,
.v579-bottom-nav-btn ion-icon,
.v579-bottom-nav-btn bi {
  font-size: 22px;
}
.v579-bottom-nav-btn:hover { color: var(--v579-accent); transform: translateY(-1px); }
.v579-bottom-nav-btn.v579-is-current { color: var(--v579-accent); }
.v579-bottom-nav-btn.v579-promo { color: var(--v579-primary); }
.v579-nav-badge {
  position: absolute; top: 4px; right: 22%;
  background: var(--v579-hot); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 1rem; line-height: 16px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v579-bottom-nav { display: none; }
  .v579-footer { padding-bottom: 22px; }
  body { max-width: 768px; margin: 0 auto; }
}

/* Ensure mobile gets bottom padding so content is not hidden behind nav */
@media (max-width: 768px) {
  .v579-main { padding-bottom: calc(var(--v579-bottom-h) + 16px); }
}

/* Utility helpers */
.v579-text-center { text-align: center; }
.v579-mt-10 { margin-top: 10px; }
.v579-mt-16 { margin-top: 16px; }
.v579-flex-center { display: flex; align-items: center; justify-content: center; }
.v579-highlight { color: var(--v579-accent); font-weight: 800; }
.v579-divider { height: 1px; background: var(--v579-border); margin: 12px 0; border: none; }
