/* abcvip core stylesheet - all classes prefixed with pg54- */
:root {
  --pg54-bg: #273746;
  --pg54-bg-deep: #1c2935;
  --pg54-bg-soft: #33485c;
  --pg54-text: #F5F5F5;
  --pg54-accent: #FFFACD;
  --pg54-accent-2: #ffd369;
  --pg54-danger: #e8505b;
  --pg54-success: #4caf85;
  --pg54-primary: #273746;
  --pg54-line: rgba(245,245,245,0.12);
  --pg54-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--pg54-bg);
  color: var(--pg54-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--pg54-accent); text-decoration: none; }
a:hover { color: var(--pg54-accent-2); }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.pg54-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg54-wrapper { padding-top: 6.2rem; padding-bottom: 2rem; }
.pg54-section { padding: 2rem 0; border-top: 1px solid var(--pg54-line); }
.pg54-section-title {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; color: var(--pg54-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.pg54-section-title i { color: var(--pg54-accent); }
.pg54-lead { color: rgba(245,245,245,0.85); margin-bottom: 1rem; }

/* ===== Header ===== */
.pg54-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, var(--pg54-bg-deep) 0%, var(--pg54-bg) 100%);
  border-bottom: 1px solid var(--pg54-line);
  box-shadow: var(--pg54-shadow);
}
.pg54-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 6rem; padding: 0 1.2rem; gap: 0.6rem;
}
.pg54-brand { display: flex; align-items: center; gap: 0.6rem; }
.pg54-logo { width: 28px; height: 28px; border-radius: 6px; }
.pg54-brand-name { font-size: 1.7rem; font-weight: 800; color: var(--pg54-accent); letter-spacing: 0.3px; }
.pg54-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg54-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700; border: none; cursor: pointer;
  padding: 0.7rem 1.2rem; border-radius: 999px; min-height: 36px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pg54-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pg54-btn-primary { background: var(--pg54-accent); color: var(--pg54-bg-deep); }
.pg54-btn-ghost { background: transparent; color: var(--pg54-text); border: 1px solid var(--pg54-line); }
.pg54-menu-btn {
  background: transparent; border: none; color: var(--pg54-text);
  font-size: 1.8rem; cursor: pointer; min-width: 36px; min-height: 36px;
}

/* Expandable nav menu */
.pg54-nav {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--pg54-bg-deep); border-top: 1px solid var(--pg54-line);
}
.pg54-nav-open { max-height: 520px; }
.pg54-nav ul { list-style: none; padding: 0.6rem 1.2rem 1rem; }
.pg54-nav li { border-bottom: 1px solid var(--pg54-line); }
.pg54-nav li:last-child { border-bottom: none; }
.pg54-nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 0.4rem; color: var(--pg54-text); font-weight: 600;
}
.pg54-nav a i { color: var(--pg54-accent); font-size: 1.6rem; }

/* ===== Hero / Carousel ===== */
.pg54-carousel {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: var(--pg54-shadow); margin-bottom: 1.5rem;
}
.pg54-carousel-track { position: relative; }
.pg54-carousel-slide {
  display: none; position: relative; cursor: pointer;
}
.pg54-carousel-slide.pg54-active { display: block; }
.pg54-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg54-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem; background: linear-gradient(0deg, rgba(28,41,53,0.92), transparent);
  color: var(--pg54-text);
}
.pg54-carousel-cap h2 { font-size: 1.7rem; color: var(--pg54-accent); margin-bottom: 0.3rem; }
.pg54-carousel-cap p { font-size: 1.25rem; opacity: 0.92; }
.pg54-carousel-dots {
  position: absolute; bottom: 0.8rem; right: 1rem; display: flex; gap: 0.4rem; z-index: 5;
}
.pg54-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(245,245,245,0.4); cursor: pointer;
}
.pg54-carousel-dot.pg54-active { background: var(--pg54-accent); }

/* ===== H1 hero ===== */
.pg54-hero-title {
  font-size: 2.4rem; font-weight: 900; line-height: 1.25; color: var(--pg54-accent);
  margin-bottom: 0.6rem;
}
.pg54-hero-sub { color: rgba(245,245,245,0.88); margin-bottom: 1.2rem; }

/* ===== Promo link text ===== */
.pg54-link-text {
  color: var(--pg54-accent); font-weight: 800; cursor: pointer; border-bottom: 1px dashed var(--pg54-accent);
}
.pg54-link-text:hover { color: var(--pg54-accent-2); }

/* ===== Filter chips ===== */
.pg54-filter-row { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; }
.pg54-filter-chip {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--pg54-bg-soft); color: var(--pg54-text); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; border: 1px solid var(--pg54-line); white-space: nowrap;
}
.pg54-filter-chip:hover { background: var(--pg54-bg-deep); }
.pg54-chip-active { background: var(--pg54-accent); color: var(--pg54-bg-deep); }

/* ===== Game grid ===== */
.pg54-game-section h3 {
  font-size: 1.5rem; color: var(--pg54-accent); margin: 1.4rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pg54-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.pg54-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--pg54-bg-deep); border-radius: 10px; padding: 0.5rem;
  cursor: pointer; border: 1px solid var(--pg54-line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pg54-card:hover { transform: translateY(-2px); border-color: var(--pg54-accent); }
.pg54-card-img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; }
.pg54-card-name { font-size: 1.05rem; margin-top: 0.4rem; color: var(--pg54-text); line-height: 1.2; min-height: 2.4rem; }

/* ===== Feature / Info cards ===== */
.pg54-card-info {
  background: var(--pg54-bg-deep); border: 1px solid var(--pg54-line);
  border-radius: 12px; padding: 1.2rem; margin-bottom: 1rem;
}
.pg54-card-info h3 { color: var(--pg54-accent); font-size: 1.4rem; margin-bottom: 0.5rem; }
.pg54-card-info p { color: rgba(245,245,245,0.85); font-size: 1.25rem; }
.pg54-list { padding-left: 1.6rem; color: rgba(245,245,245,0.88); }
.pg54-list li { margin-bottom: 0.4rem; }

/* ===== Steps ===== */
.pg54-step {
  display: flex; gap: 0.8rem; padding: 0.9rem; background: var(--pg54-bg-deep);
  border-radius: 10px; margin-bottom: 0.6rem; border-left: 3px solid var(--pg54-accent);
}
.pg54-step-num {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--pg54-accent);
  color: var(--pg54-bg-deep); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pg54-step-body { flex: 1; }
.pg54-step-body strong { color: var(--pg54-text); }
.pg54-step-body span { display: block; color: rgba(245,245,245,0.8); font-size: 1.2rem; }

/* ===== Testimonials ===== */
.pg54-testi {
  background: var(--pg54-bg-deep); border-radius: 12px; padding: 1rem; margin-bottom: 0.8rem;
  border: 1px solid var(--pg54-line);
}
.pg54-testi-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.pg54-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pg54-accent); color: var(--pg54-bg-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pg54-stars { color: var(--pg54-accent-2); font-size: 1.1rem; }
.pg54-testi p { color: rgba(245,245,245,0.88); font-size: 1.25rem; }

/* ===== Payment methods ===== */
.pg54-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg54-pay {
  flex: 1 1 calc(33.33% - 0.5rem); background: var(--pg54-bg-deep); border: 1px solid var(--pg54-line);
  border-radius: 10px; padding: 0.7rem; text-align: center; font-size: 1.1rem; color: var(--pg54-text);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.pg54-pay i { color: var(--pg54-accent); font-size: 1.8rem; }

/* ===== Winners showcase ===== */
.pg54-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pg54-bg-deep); border-radius: 10px; padding: 0.7rem 1rem; margin-bottom: 0.5rem;
  border-left: 3px solid var(--pg54-success); font-size: 1.2rem;
}
.pg54-winner span:last-child { color: var(--pg54-accent); font-weight: 800; }

/* ===== CTA banner ===== */
.pg54-cta {
  background: linear-gradient(135deg, var(--pg54-accent) 0%, var(--pg54-accent-2) 100%);
  color: var(--pg54-bg-deep); border-radius: 14px; padding: 1.4rem; text-align: center; margin: 1.5rem 0;
}
.pg54-cta h3 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.pg54-cta p { font-size: 1.25rem; margin-bottom: 0.9rem; }
.pg54-cta .pg54-btn { background: var(--pg54-bg-deep); color: var(--pg54-accent); }

/* ===== Footer ===== */
.pg54-footer {
  background: var(--pg54-bg-deep); border-top: 1px solid var(--pg54-line);
  padding: 2rem 1.2rem 8.5rem; margin-top: 2rem;
}
.pg54-footer h4 { color: var(--pg54-accent); font-size: 1.3rem; margin-bottom: 0.6rem; }
.pg54-footer p { color: rgba(245,245,245,0.78); font-size: 1.2rem; margin-bottom: 1rem; }
.pg54-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.2rem;
}
.pg54-footer-links a {
  color: rgba(245,245,245,0.88); font-size: 1.2rem; text-decoration: underline;
}
.pg54-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.pg54-footer-copy { font-size: 1.1rem; color: rgba(245,245,245,0.6); border-top: 1px solid var(--pg54-line); padding-top: 1rem; }

/* ===== Mobile bottom nav ===== */
.pg54-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  height: 62px; display: flex; justify-content: space-around; align-items: stretch;
  background: var(--pg54-bg-deep); border-top: 1px solid var(--pg54-line);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.pg54-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(245,245,245,0.75); font-size: 1rem; font-weight: 600; gap: 0.2rem;
  text-decoration: none; transition: color 0.15s ease, transform 0.15s ease; min-width: 60px;
}
.pg54-bottom-nav a i { font-size: 22px; }
.pg54-bottom-nav a:active { transform: scale(0.92); }
.pg54-bottom-nav a:hover { color: var(--pg54-accent); }
.pg54-bottom-nav .pg54-nav-current { color: var(--pg54-accent); }
.pg54-nav-badge {
  position: absolute; top: 6px; right: 50%; margin-right: -22px;
  background: var(--pg54-danger); color: #fff; font-size: 0.9rem; padding: 0 5px;
  border-radius: 999px; line-height: 1.4;
}
.pg54-bottom-nav a { position: relative; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .pg54-container { max-width: 768px; }
  .pg54-header { max-width: 768px; }
  .pg54-bottom-nav { display: none; }
  .pg54-footer { padding-bottom: 2rem; }
}

/* Mobile: pad main content for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Accessibility focus */
.pg54-btn:focus-visible, .pg54-nav a:focus-visible, .pg54-bottom-nav a:focus-visible {
  outline: 2px solid var(--pg54-accent); outline-offset: 2px;
}
