/* ============================================================
   me777 app login - theme-275c.css
   All classes use the pg27- prefix for namespace isolation.
   Palette: #0E1621 (bg) | #F0FDFF (text) | #AD1457 (accent)
            #BAFFC9 (mint) | #FFB3BA (soft pink)
   ============================================================ */

:root {
  --pg27-bg: #0E1621;
  --pg27-bg-alt: #131f2e;
  --pg27-text: #F0FDFF;
  --pg27-primary: #AD1457;
  --pg27-primary-dark: #8a0f44;
  --pg27-mint: #BAFFC9;
  --pg27-pink: #FFB3BA;
  --pg27-gold: #ffd166;
  --pg27-muted: #8aa0b5;
  --pg27-border: rgba(240, 253, 255, 0.1);
  --pg27-radius: 12px;
  --pg27-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ----- Reset ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--pg27-bg);
  color: var(--pg27-text);
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--pg27-mint); text-decoration: none; }
ul { list-style: none; }

/* ----- Layout helpers ----- */
.pg27-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg27-section { padding: 2.4rem 0; }
.pg27-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem;
  color: var(--pg27-text);
}
.pg27-section-sub {
  font-size: 1.3rem; color: var(--pg27-muted); margin-bottom: 1.6rem;
}
.pg27-grid { display: grid; gap: 1rem; }
.pg27-center { text-align: center; }

/* ----- Header ----- */
.pg27-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(14, 22, 33, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg27-border);
}
.pg27-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; min-height: 5.2rem;
}
.pg27-logo { display: flex; align-items: center; gap: 0.6rem; }
.pg27-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg27-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--pg27-text); }
.pg27-logo-text span { color: var(--pg27-primary); }
.pg27-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg27-menu-btn {
  background: none; border: none; color: var(--pg27-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* ----- Buttons ----- */
.pg27-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border: none; border-radius: 50px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pg27-btn:active { transform: scale(0.96); }
.pg27-btn-primary { background: linear-gradient(135deg, var(--pg27-primary), #d81b60); color: #fff; box-shadow: 0 3px 12px rgba(173, 20, 87, 0.4); }
.pg27-btn-outline { background: transparent; color: var(--pg27-text); border: 1.5px solid var(--pg27-primary); }
.pg27-btn-mint { background: var(--pg27-mint); color: #0E1621; }
.pg27-btn-block { width: 100%; justify-content: center; padding: 1rem; font-size: 1.5rem; }

/* ----- Mobile slide menu ----- */
.pg27-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; height: 100vh;
  background: var(--pg27-bg-alt); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.5rem; overflow-y: auto;
}
.pg27-mobile-menu.pg27-menu-open { right: 0; }
.pg27-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.pg27-menu-overlay.pg27-overlay-show { opacity: 1; visibility: visible; }
.pg27-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.pg27-menu-close { background: none; border: none; color: var(--pg27-text); font-size: 2.2rem; cursor: pointer; }
.pg27-menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
.pg27-menu-links a {
  display: block; padding: 1rem 1.2rem; font-size: 1.4rem;
  color: var(--pg27-text); border-radius: 8px; border-bottom: 1px solid var(--pg27-border);
}
.pg27-menu-links a:active { background: rgba(173, 20, 87, 0.15); }

/* ----- Carousel ----- */
.pg27-carousel { position: relative; border-radius: var(--pg27-radius); overflow: hidden; margin-bottom: 1rem; }
.pg27-slide {
  position: relative; display: none; cursor: pointer;
}
.pg27-slide.pg27-slide-active { display: block; }
.pg27-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.pg27-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,22,33,0.85));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.pg27-slide-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 0.3rem; }
.pg27-slide-text { font-size: 1.2rem; color: var(--pg27-pink); }
.pg27-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pg27-carousel-arrow.prev { left: 8px; }
.pg27-carousel-arrow.next { right: 8px; }
.pg27-carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 0.5rem 0; }

/* ----- Game grid ----- */
.pg27-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0 1rem; -ms-overflow-style: none; scrollbar-width: none; }
.pg27-filter-bar::-webkit-scrollbar { display: none; }
.pg27-filter-chip {
  white-space: nowrap; padding: 0.5rem 1.2rem; font-size: 1.2rem;
  background: var(--pg27-bg-alt); color: var(--pg27-muted);
  border-radius: 50px; border: 1px solid var(--pg27-border); cursor: pointer;
}
.pg27-filter-chip.pg27-chip-active { background: var(--pg27-primary); color: #fff; border-color: var(--pg27-primary); }
.pg27-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.pg27-game-card { cursor: pointer; transition: transform 0.15s; }
.pg27-game-card:active { transform: scale(0.95); }
.pg27-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--pg27-border); }
.pg27-game-name { font-size: 1.1rem; text-align: center; margin-top: 0.3rem; color: var(--pg27-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- Category header ----- */
.pg27-cat-header { display: flex; align-items: center; gap: 0.6rem; margin: 2rem 0 1rem; }
.pg27-cat-icon { font-size: 1.8rem; }
.pg27-cat-title { font-size: 1.7rem; font-weight: 800; }
.pg27-cat-badge { margin-left: auto; font-size: 1.1rem; color: var(--pg27-pink); }

/* ----- Info cards ----- */
.pg27-card {
  background: var(--pg27-bg-alt); border-radius: var(--pg27-radius);
  padding: 1.5rem; border: 1px solid var(--pg27-border); margin-bottom: 1rem;
}
.pg27-card-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--pg27-mint); }
.pg27-card-text { font-size: 1.3rem; color: var(--pg27-muted); line-height: 1.6; }
.pg27-card-text strong { color: var(--pg27-text); }

/* ----- FAQ ----- */
.pg27-faq-item { background: var(--pg27-bg-alt); border-radius: 10px; margin-bottom: 0.8rem; overflow: hidden; border: 1px solid var(--pg27-border); }
.pg27-faq-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; cursor: pointer; font-size: 1.4rem; font-weight: 600; }
.pg27-faq-icon { font-size: 1.6rem; color: var(--pg27-primary); transition: transform 0.2s; }
.pg27-faq-item.pg27-faq-open .pg27-faq-icon { transform: rotate(45deg); }
.pg27-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s; padding: 0 1.2rem; font-size: 1.3rem; color: var(--pg27-muted); }
.pg27-faq-item.pg27-faq-open .pg27-faq-body { max-height: 400px; padding: 0 1.2rem 1.2rem; }

/* ----- Testimonials ----- */
.pg27-testimonial { background: var(--pg27-bg-alt); border-radius: var(--pg27-radius); padding: 1.5rem; margin-bottom: 1rem; border-left: 4px solid var(--pg27-primary); }
.pg27-stars { color: var(--pg27-gold); font-size: 1.3rem; margin-bottom: 0.5rem; }
.pg27-testimonial-text { font-size: 1.3rem; color: var(--pg27-text); margin-bottom: 0.6rem; }
.pg27-testimonial-author { font-size: 1.2rem; color: var(--pg27-pink); font-weight: 600; }

/* ----- Winners ----- */
.pg27-winner-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--pg27-border); }
.pg27-winner-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pg27-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; color: #fff; }
.pg27-winner-info { flex: 1; }
.pg27-winner-name { font-size: 1.3rem; font-weight: 600; }
.pg27-winner-game { font-size: 1.1rem; color: var(--pg27-muted); }
.pg27-winner-amount { font-size: 1.4rem; font-weight: 800; color: var(--pg27-mint); }

/* ----- Payment ----- */
.pg27-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.pg27-pay-item { background: var(--pg27-bg-alt); border-radius: 8px; padding: 0.8rem; text-align: center; border: 1px solid var(--pg27-border); }
.pg27-pay-item span { font-size: 2rem; display: block; }
.pg27-pay-item p { font-size: 1rem; color: var(--pg27-muted); margin-top: 0.3rem; }

/* ----- CTA band ----- */
.pg27-cta-band { background: linear-gradient(135deg, var(--pg27-primary), #d81b60); border-radius: var(--pg27-radius); padding: 2rem 1.5rem; text-align: center; margin: 1.5rem 0; }
.pg27-cta-band h3 { font-size: 1.8rem; color: #fff; margin-bottom: 0.5rem; }
.pg27-cta-band p { font-size: 1.3rem; color: rgba(255,255,255,0.9); margin-bottom: 1.2rem; }

/* ----- Footer ----- */
.pg27-footer { background: var(--pg27-bg-alt); padding: 2.4rem 1.2rem 9rem; border-top: 1px solid var(--pg27-border); }
.pg27-footer-brand { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.pg27-footer-desc { font-size: 1.2rem; color: var(--pg27-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.pg27-footer-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
.pg27-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-bottom: 1.5rem; }
.pg27-footer-links a { font-size: 1.2rem; color: var(--pg27-muted); padding: 0.3rem 0; }
.pg27-footer-copy { font-size: 1.1rem; color: var(--pg27-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--pg27-border); }

/* ----- Bottom nav ----- */
.pg27-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: var(--pg27-bg-alt); border-top: 1px solid var(--pg27-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0.3rem 0;
}
.pg27-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; gap: 2px; cursor: pointer;
  background: none; border: none; color: var(--pg27-muted);
  font-size: 1rem; transition: color 0.2s, transform 0.15s;
}
.pg27-bottom-btn .material-icons, .pg27-bottom-btn ion-icon { font-size: 24px; }
.pg27-bottom-btn i.bi { font-size: 22px; }
.pg27-bottom-btn:active { transform: scale(0.9); }
.pg27-bottom-btn.pg27-bottom-active { color: var(--pg27-primary); }
.pg27-bottom-btn span { font-size: 1rem; }

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

/* ----- Back to top ----- */
.pg27-top-btn {
  position: fixed; bottom: 75px; right: 16px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pg27-primary); color: #fff; border: none;
  font-size: 2rem; cursor: pointer; box-shadow: var(--pg27-shadow);
  display: flex; align-items: center; justify-content: center;
}

/* ----- Desktop: hide bottom nav, widen layout ----- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .pg27-bottom-nav { display: none; }
  .pg27-container { max-width: 768px; }
  .pg27-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pg27-footer-promos { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
