/* ============================================================
 * 123p.click - theme stylesheet (Vietnam mobile-first design)
 * All custom classes use the g636- prefix for namespace isolation.
 * Palette: #ADFF2F | #3A3A3A | #DEB887 | #000080 | #CD853F
 * ============================================================ */

:root {
  --g636-primary: #ADFF2F;
  --g636-secondary: #DEB887;
  --g636-bg: #3A3A3A;
  --g636-bg-deep: #000080;
  --g636-accent: #CD853F;
  --g636-text: #FFFFFF;
  --g636-text-soft: #E8E8E8;
  --g636-text-muted: #B0B0B0;
  --g636-card-bg: #2c2c2c;
  --g636-border: #555555;
  --g636-danger: #e53935;
  --g636-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
  --g636-radius: 1.2rem;
  --g636-header-h: 6rem;
  --g636-nav-h: 6.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--g636-bg); color: var(--g636-text);
  font-size: 1.5rem; line-height: 1.5; overflow-x: hidden; min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--g636-primary); text-decoration: none; }
ul { list-style: none; }

.g636-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g636-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.g636-main { padding-top: var(--g636-header-h); }

/* === HEADER === */
.g636-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g636-header-h);
  background: linear-gradient(135deg, var(--g636-bg-deep) 0%, var(--g636-bg) 100%);
  border-bottom: 0.2rem solid var(--g636-accent);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; box-shadow: var(--g636-shadow);
}
.g636-logo { display: flex; align-items: center; gap: 0.7rem; }
.g636-logo img { width: 3.2rem; height: 3.2rem; border-radius: 50%; }
.g636-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--g636-primary); letter-spacing: 0.04rem; }
.g636-logo-text span { color: var(--g636-secondary); }
.g636-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.g636-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: 2.4rem;
  font-size: 1.3rem; font-weight: 700; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  min-height: 3.6rem; font-family: inherit;
}
.g636-btn:active { transform: scale(0.94); }
.g636-btn-register {
  background: linear-gradient(135deg, var(--g636-accent), var(--g636-secondary));
  color: var(--g636-bg-deep);
  box-shadow: 0 0.3rem 0.8rem rgba(205, 133, 63, 0.5);
}
.g636-btn-login { background: transparent; color: var(--g636-primary); border: 0.2rem solid var(--g636-primary); }
.g636-menu-trigger {
  background: transparent; border: 0; color: var(--g636-primary);
  font-size: 1.8rem; cursor: pointer; padding: 0.6rem;
  display: flex; align-items: center;
}

/* === MOBILE MENU === */
.g636-mobile-menu {
  position: fixed; top: var(--g636-header-h); right: -100%;
  width: 80%; max-width: 320px;
  height: calc(100vh - var(--g636-header-h));
  background: var(--g636-bg-deep);
  padding: 1.6rem 1.4rem; z-index: 9999;
  transition: right .3s ease; overflow-y: auto;
  border-left: 0.2rem solid var(--g636-accent);
}
.g636-mobile-menu.g636-menu-open { right: 0; }
.g636-menu-title { font-size: 1.4rem; color: var(--g636-secondary); font-weight: 700; margin: 0.8rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.08rem; }
.g636-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1rem; color: var(--g636-text);
  border-bottom: 0.1rem solid rgba(255,255,255,0.1);
  font-size: 1.45rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.g636-mobile-menu a i, .g636-mobile-menu a span.material-icons-outlined { color: var(--g636-primary); font-size: 1.7rem; width: 2rem; text-align: center; }
.g636-mobile-menu a:hover { background: rgba(173,255,47,0.1); color: var(--g636-primary); }
.g636-menu-overlay {
  position: fixed; top: var(--g636-header-h); left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.g636-menu-overlay.g636-menu-open { opacity: 1; pointer-events: auto; }

/* === HERO / CAROUSEL === */
.g636-hero { margin: 1.2rem 0; }
.g636-carousel {
  position: relative; border-radius: var(--g636-radius);
  overflow: hidden; box-shadow: var(--g636-shadow);
  aspect-ratio: 16 / 9; background: #000;
}
.g636-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer; }
.g636-slide img { width: 100%; height: 100%; object-fit: cover; }
.g636-slide.g636-slide-active { opacity: 1; }
.g636-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 2.4rem 1.4rem 1.2rem;
  color: #fff; font-size: 1.5rem; font-weight: 700;
}
.g636-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; }
.g636-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: 0; padding: 0; }
.g636-dot.g636-dot-active { background: var(--g636-primary); }
.g636-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff;
  border: 0; padding: 0.6rem 0.9rem; border-radius: 50%; cursor: pointer; font-size: 1.4rem; z-index: 2;
}
.g636-carousel-arrow.g636-prev { left: 0.6rem; }
.g636-carousel-arrow.g636-next { right: 0.6rem; }

/* === SECTIONS & TITLES === */
.g636-section { margin: 2rem 0; }
.g636-section-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.g636-section-title { font-size: 1.9rem; font-weight: 800; color: var(--g636-primary); display: flex; align-items: center; gap: 0.8rem; }
.g636-section-title::before { content: ''; display: inline-block; width: 0.4rem; height: 2rem; background: var(--g636-accent); border-radius: 0.2rem; }
.g636-section-more { font-size: 1.2rem; color: var(--g636-secondary); margin-left: auto; }
.g636-page-title { font-size: 2.2rem; font-weight: 900; color: var(--g636-primary); text-align: center; margin: 1.4rem 0; line-height: 1.3; padding: 0 1rem; }
.g636-page-subtitle { font-size: 1.3rem; color: var(--g636-text-muted); text-align: center; margin: -0.6rem 0 1.4rem; }

/* === GAME GRID === */
.g636-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.g636-game-card {
  background: var(--g636-card-bg); border-radius: 1rem; overflow: hidden;
  cursor: pointer; text-align: center;
  transition: transform .2s, box-shadow .2s;
  border: 0.1rem solid var(--g636-border);
}
.g636-game-card:hover { transform: translateY(-0.3rem); box-shadow: var(--g636-shadow); }
.g636-game-card:active { transform: scale(0.96); }
.g636-game-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 0.1rem solid var(--g636-border); }
.g636-game-name { font-size: 1.1rem; padding: 0.5rem 0.3rem; color: var(--g636-text-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === CONTENT CARD === */
.g636-card {
  background: var(--g636-card-bg); border-radius: var(--g636-radius);
  padding: 1.6rem; margin-bottom: 1.2rem;
  border-left: 0.3rem solid var(--g636-accent);
}
.g636-card h2 { font-size: 1.8rem; color: var(--g636-secondary); margin-bottom: 0.8rem; }
.g636-card h3 { font-size: 1.5rem; color: var(--g636-secondary); margin: 0.8rem 0 0.4rem; }
.g636-card p { color: var(--g636-text-soft); margin-bottom: 0.6rem; line-height: 1.6; }
.g636-card ul { padding-left: 1.4rem; }
.g636-card li { color: var(--g636-text-soft); margin-bottom: 0.4rem; list-style: disc; }
.g636-card .g636-text-link { color: var(--g636-primary); font-weight: 700; cursor: pointer; }

/* === FEATURES === */
.g636-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.g636-feature { background: var(--g636-card-bg); border-radius: 1rem; padding: 1.2rem 0.8rem; text-align: center; border: 0.1rem solid var(--g636-border); transition: transform .2s; }
.g636-feature:hover { transform: translateY(-0.2rem); }
.g636-feature i, .g636-feature .material-icons-outlined, .g636-feature ion-icon { color: var(--g636-primary); font-size: 2.4rem; }
.g636-feature-title { font-size: 1.3rem; font-weight: 700; margin-top: 0.5rem; color: var(--g636-secondary); }
.g636-feature p { font-size: 1.15rem; color: var(--g636-text-muted); margin-top: 0.4rem; line-height: 1.4; }

/* === STEPS === */
.g636-steps { display: flex; flex-direction: column; gap: 1rem; }
.g636-step { display: flex; gap: 1rem; align-items: flex-start; background: var(--g636-card-bg); border-radius: 1rem; padding: 1rem 1.2rem; border-left: 0.3rem solid var(--g636-primary); }
.g636-step-num { flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--g636-accent), var(--g636-secondary)); color: var(--g636-bg-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; }
.g636-step-body h4 { font-size: 1.35rem; color: var(--g636-primary); margin-bottom: 0.2rem; }
.g636-step-body p { font-size: 1.2rem; color: var(--g636-text-muted); }

/* === CTA === */
.g636-cta { background: linear-gradient(135deg, var(--g636-bg-deep), var(--g636-accent)); border-radius: var(--g636-radius); padding: 2rem 1.4rem; text-align: center; margin: 1.6rem 0; box-shadow: var(--g636-shadow); }
.g636-cta h2 { color: var(--g636-primary); font-size: 1.9rem; margin-bottom: 0.6rem; }
.g636-cta p { color: var(--g636-text-soft); margin-bottom: 1.2rem; font-size: 1.3rem; }
.g636-cta .g636-btn { font-size: 1.5rem; padding: 1rem 2.4rem; }

/* === TESTIMONIALS === */
.g636-testimonial { background: var(--g636-card-bg); border-radius: 1rem; padding: 1.2rem; margin-bottom: 1rem; border-left: 0.3rem solid var(--g636-primary); }
.g636-testimonial-stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 0.4rem; }
.g636-testimonial-text { font-style: italic; color: var(--g636-text-soft); font-size: 1.3rem; }
.g636-testimonial-author { font-size: 1.2rem; color: var(--g636-secondary); margin-top: 0.6rem; font-weight: 700; }

/* === WINNERS === */
.g636-winner { display: flex; justify-content: space-between; align-items: center; background: var(--g636-card-bg); padding: 0.8rem 1.2rem; border-radius: 0.8rem; margin-bottom: 0.6rem; font-size: 1.3rem; border-left: 0.2rem solid var(--g636-primary); }
.g636-winner-name { color: var(--g636-primary); font-weight: 700; }
.g636-winner-game { color: var(--g636-text-muted); font-size: 1.1rem; }
.g636-winner-amount { color: var(--g636-secondary); font-weight: 800; }

/* === PAYMENT === */
.g636-payment-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.g636-payment-item { background: var(--g636-card-bg); padding: 0.7rem 1.1rem; border-radius: 0.8rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; border: 0.1rem solid var(--g636-border); color: var(--g636-text-soft); }
.g636-payment-item i, .g636-payment-item .material-icons-outlined, .g636-payment-item ion-icon { color: var(--g636-primary); font-size: 1.8rem; }

/* === STATS / TRICKS / APP === */
.g636-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.g636-stat { background: var(--g636-card-bg); padding: 1.2rem; border-radius: 1rem; text-align: center; border: 0.1rem solid var(--g636-border); }
.g636-stat-value { font-size: 2rem; font-weight: 800; color: var(--g636-primary); }
.g636-stat-label { font-size: 1.2rem; color: var(--g636-text-muted); margin-top: 0.2rem; }
.g636-tricks { display: flex; flex-direction: column; gap: 0.6rem; }
.g636-trick { background: var(--g636-card-bg); padding: 0.9rem 1.2rem; border-radius: 0.8rem; display: flex; gap: 0.8rem; align-items: center; border-left: 0.2rem solid var(--g636-accent); }
.g636-trick i, .g636-trick .material-icons-outlined { color: var(--g636-primary); font-size: 1.6rem; }
.g636-trick span { font-size: 1.25rem; color: var(--g636-text-soft); }
.g636-app-cta { background: linear-gradient(135deg, var(--g636-bg-deep), var(--g636-bg)); border-radius: var(--g636-radius); padding: 1.6rem; text-align: center; margin: 1.6rem 0; border: 0.1rem solid var(--g636-accent); }
.g636-app-cta h3 { color: var(--g636-primary); font-size: 1.7rem; margin-bottom: 0.6rem; }
.g636-app-cta p { color: var(--g636-text-soft); font-size: 1.25rem; margin-bottom: 1rem; }
.g636-app-buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.g636-app-btn { background: var(--g636-card-bg); color: var(--g636-text); padding: 0.8rem 1.2rem; border-radius: 0.8rem; font-size: 1.2rem; font-weight: 600; cursor: pointer; border: 0.1rem solid var(--g636-border); display: inline-flex; align-items: center; gap: 0.4rem; }

/* === LINKS / FOOTER === */
.g636-text-link { color: var(--g636-primary); font-weight: 700; cursor: pointer; }
.g636-text-link:hover { text-decoration: underline; }
.g636-footer { background: var(--g636-bg-deep); padding: 2.4rem 1.2rem 9rem; margin-top: 2rem; border-top: 0.2rem solid var(--g636-accent); }
.g636-footer p { color: var(--g636-text-muted); font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.6; }
.g636-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.g636-footer-links a { background: var(--g636-card-bg); padding: 0.5rem 1rem; border-radius: 0.6rem; font-size: 1.2rem; color: var(--g636-text-soft); border: 0.1rem solid var(--g636-border); transition: color .2s, border-color .2s; cursor: pointer; }
.g636-footer-links a:hover { color: var(--g636-primary); border-color: var(--g636-primary); }
.g636-copyright { font-size: 1.1rem; color: var(--g636-text-muted); text-align: center; margin-top: 1.2rem; }

/* === MOBILE BOTTOM NAV === */
.g636-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g636-nav-h);
  background: linear-gradient(180deg, var(--g636-bg-deep), #000040);
  border-top: 0.15rem solid var(--g636-accent);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}
.g636-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 6rem;
  background: transparent; border: 0; color: var(--g636-text-muted);
  font-size: 1.05rem; cursor: pointer;
  transition: color .2s, transform .2s; flex: 1; position: relative; font-family: inherit; padding: 0;
}
.g636-nav-btn i, .g636-nav-btn .material-icons-outlined, .g636-nav-btn .bi { font-size: 2.2rem; margin-bottom: 0.2rem; }
.g636-nav-btn ion-icon { font-size: 2.4rem; margin-bottom: 0.2rem; --ionicon-stroke-width: 32px; }
.g636-nav-btn:hover { color: var(--g636-primary); }
.g636-nav-btn:active { transform: scale(0.9); }
.g636-nav-btn.g636-nav-active { color: var(--g636-primary); }
.g636-nav-btn.g636-nav-active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 3rem; height: 0.3rem; background: var(--g636-primary); border-radius: 0 0 0.3rem 0.3rem; }
.g636-nav-badge { position: absolute; top: 0.6rem; right: 1.4rem; background: var(--g636-danger); color: #fff; font-size: 0.9rem; font-weight: 700; min-width: 1.6rem; height: 1.6rem; border-radius: 1rem; padding: 0 0.4rem; display: flex; align-items: center; justify-content: center; }

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .g636-bottom-nav { display: none; }
  .g636-footer { padding-bottom: 2.4rem; }
  .g636-menu-trigger { display: none; }
}
@media (max-width: 768px) { .g636-main { padding-bottom: 8rem; } }
@media (max-width: 380px) {
  .g636-game-grid { grid-template-columns: repeat(2, 1fr); }
  .g636-page-title { font-size: 1.9rem; }
  .g636-features { grid-template-columns: 1fr; }
}
