/* ============================================================
   niceph login - style-2766.css
   All custom classes use the "g662-" prefix.
   Palette: #2C2C2C | #ECF0F1 | #36454F | #FFEFD5 | #C0C0C0
   Mobile-first. Root font-size 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --g662-primary: #2C2C2C;
  --g662-bg: #1f1f1f;
  --g662-surface: #36454F;
  --g662-text: #ECF0F1;
  --g662-muted: #C0C0C0;
  --g662-accent: #FFEFD5;
  --g662-gold: #d9b779;
  --g662-line: rgba(236, 240, 241, 0.10);
  --g662-radius: 12px;
}

* { 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(--g662-bg);
  color: var(--g662-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.g662-container { width: 100%; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.g662-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--g662-primary);
  border-bottom: 1px solid var(--g662-line);
}
.g662-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.2rem;
  padding: 0 1rem;
}
.g662-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--g662-accent);
  font-weight: 700;
  font-size: 1.55rem;
}
.g662-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g662-brand small { color: var(--g662-muted); font-weight: 400; font-size: 1.1rem; }

.g662-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.g662-icon-btn {
  background: transparent;
  border: 0;
  color: var(--g662-text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.9rem;
}
.g662-icon-btn:active { background: rgba(255, 239, 213, 0.12); }

.g662-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  border: 0;
  cursor: pointer;
  min-height: 40px;
  line-height: 1;
}
.g662-btn-primary { background: linear-gradient(135deg, #FFEFD5, #d9b779); color: #2C2C2C; }
.g662-btn-ghost { background: transparent; color: var(--g662-accent); border: 1px solid var(--g662-accent); }
.g662-btn-block { width: 100%; }

/* ---------- Mobile menu ---------- */
.g662-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--g662-primary);
  padding: 1.5rem 1.2rem;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  border-bottom: 1px solid var(--g662-line);
  pointer-events: none;
}
.g662-mobile-menu.g662-menu-open {
  max-height: 80vh;
  overflow-y: auto;
  padding-top: 5.6rem;
  pointer-events: auto;
}
.g662-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.g662-menu-list { list-style: none; }
.g662-menu-list li { border-top: 1px solid var(--g662-line); }
.g662-menu-list a {
  display: block;
  padding: 1.15rem 0.5rem;
  color: var(--g662-text);
  font-size: 1.4rem;
}
.g662-menu-list a:active { color: var(--g662-accent); }

/* ---------- Main / sections ---------- */
main { padding-bottom: 90px; }
.g662-section { padding: 2rem 1.2rem; }
.g662-section-alt { background: #232323; }

.g662-h1 {
  font-size: 2rem;
  line-height: 1.35;
  color: var(--g662-accent);
  margin-bottom: 0.8rem;
}
.g662-h2 {
  font-size: 1.75rem;
  color: var(--g662-accent);
  margin-bottom: 0.7rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--g662-gold);
}
.g662-h3 {
  font-size: 1.45rem;
  color: var(--g662-accent);
  margin: 1rem 0 0.4rem;
}
.g662-lead { color: var(--g662-muted); font-size: 1.4rem; }
.g662-p { margin-bottom: 0.9rem; color: var(--g662-text); }
.g662-text-link { color: var(--g662-accent); font-weight: 600; text-decoration: underline; }

/* ---------- Carousel ---------- */
.g662-carousel {
  position: relative;
  border-radius: var(--g662-radius);
  overflow: hidden;
  margin: 1rem 1.2rem;
}
.g662-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g662-slide img { width: 100%; height: 180px; object-fit: cover; }
.g662-slide-active { display: block; }
.g662-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--g662-accent);
  font-weight: 700;
  font-size: 1.45rem;
}
.g662-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g662-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 0; cursor: pointer; padding: 0;
}
.g662-dot-active { background: var(--g662-accent); }

/* ---------- Game grid ---------- */
.g662-cat-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0.8rem;
  font-size: 1.5rem;
  color: var(--g662-accent);
  text-transform: capitalize;
}
.g662-cat-title i { color: var(--g662-gold); }

.g662-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.g662-game {
  display: block;
  background: var(--g662-primary);
  border: 1px solid var(--g662-line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.g662-game:active { transform: scale(0.97); }
.g662-game img { width: 100%; height: 86px; object-fit: cover; }
.g662-game-name {
  font-size: 1.1rem;
  color: var(--g662-text);
  padding: 0.35rem 0.2rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.g662-card {
  background: var(--g662-primary);
  border: 1px solid var(--g662-line);
  border-radius: var(--g662-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.g662-card-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--g662-line);
}
.g662-card-row:last-child { border-bottom: 0; }
.g662-card-row i { color: var(--g662-gold); font-size: 1.8rem; }

.g662-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.g662-stat {
  background: #232323;
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.g662-stat b { display: block; color: var(--g662-accent); font-size: 1.6rem; }
.g662-stat span { color: var(--g662-muted); font-size: 1.1rem; }

.g662-list { list-style: none; }
.g662-list li { padding: 0.45rem 0; color: var(--g662-text); }
.g662-list li i { color: var(--g662-gold); margin-right: 0.5rem; }

/* ---------- Testimonials ---------- */
.g662-review {
  background: #232323;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.g662-review-top { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.g662-review-name { color: var(--g662-accent); font-weight: 700; }
.g662-stars { color: #f0c040; font-size: 1.1rem; }
.g662-review p { color: var(--g662-muted); font-size: 1.25rem; }

/* ---------- Payment ---------- */
.g662-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g662-pay-chip {
  background: #232323;
  border: 1px solid var(--g662-line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--g662-text);
}
.g662-pay-chip i { color: var(--g662-gold); margin-right: 0.3rem; }

/* ---------- Winners ---------- */
.g662-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--g662-line);
  font-size: 1.25rem;
}
.g662-winner b { color: var(--g662-accent); }

/* ---------- FAQ ---------- */
.g662-faq-item {
  border-bottom: 1px solid var(--g662-line);
  padding: 0.9rem 0;
}
.g662-faq-q { color: var(--g662-accent); font-weight: 700; margin-bottom: 0.35rem; }
.g662-faq-a { color: var(--g662-muted); font-size: 1.3rem; }

/* ---------- App CTA ---------- */
.g662-app-cta {
  background: linear-gradient(135deg, #36454F, #2C2C2C);
  border: 1px solid var(--g662-gold);
  border-radius: var(--g662-radius);
  padding: 1.4rem;
  text-align: center;
}
.g662-app-cta h3 { color: var(--g662-accent); margin-bottom: 0.6rem; }
.g662-app-cta p { color: var(--g662-muted); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.g662-footer {
  background: #181818;
  border-top: 1px solid var(--g662-line);
  padding: 2rem 1.2rem;
}
.g662-footer-about { color: var(--g662-muted); font-size: 1.25rem; margin-bottom: 1rem; }
.g662-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.g662-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.g662-footer-cols a {
  color: var(--g662-text);
  font-size: 1.2rem;
  padding: 0.25rem 0;
}
.g662-footer-copy { color: var(--g662-muted); font-size: 1.1rem; border-top: 1px solid var(--g662-line); padding-top: 1rem; }

/* ---------- Bottom nav ---------- */
.g662-bottomnav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g662-primary);
  border-top: 1px solid var(--g662-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
}
.g662-navbtn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--g662-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.g662-navbtn i { font-size: 22px; }
.g662-navbtn:active { transform: scale(0.92); }
.g662-navbtn-current,
.g662-navbtn.is-active { color: var(--g662-accent); }
.g662-navbtn-promo { color: var(--g662-gold); }

/* ---------- Back to top ---------- */
.g662-totop {
  position: fixed;
  right: 16px;
  bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--g662-surface);
  color: var(--g662-accent);
  border: 1px solid var(--g662-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 900;
}
.g662-totop-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g662-bottomnav { display: none; }
  main { padding-bottom: 30px; }
}

/* ---------- Helpers ---------- */
.g662-center { text-align: center; }
.g662-mt { margin-top: 1.2rem; }
.g662-mb { margin-bottom: 1.2rem; }
