/* ============================================================
 * jljl77 app login - Core base stylesheet
 * All custom classes use the "g9c6-" prefix.
 * Color palette: #FFFFFF | #0E1621 | #2C3E50 | #36454F | #80CBC4 | #BDC3C7
 * ============================================================ */

:root {
  --g9c6-white: #FFFFFF;
  --g9c6-bg: #0E1621;
  --g9c6-bg-2: #2C3E50;
  --g9c6-bg-3: #36454F;
  --g9c6-accent: #80CBC4;
  --g9c6-muted: #BDC3C7;
  --g9c6-primary: #80CBC4;
  --g9c6-text: #FFFFFF;
  --g9c6-radius: 12px;
  --g9c6-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  --g9c6-header-h: 58px;
  --g9c6-bnav-h: 62px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--g9c6-bg);
  color: var(--g9c6-text);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

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

.g9c6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.g9c6-wrapper { padding: 16px 0; }

/* ---------- Header ---------- */
.g9c6-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g9c6-header-h);
  background: linear-gradient(90deg, #0E1621, #2C3E50);
  border-bottom: 1px solid rgba(128, 203, 196, .25);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.g9c6-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g9c6-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.g9c6-logo-img {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--g9c6-accent);
  display: flex; align-items: center; justify-content: center;
  color: #0E1621; font-weight: 700;
}
.g9c6-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--g9c6-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g9c6-logo-text span { color: var(--g9c6-accent); }

.g9c6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  min-height: 36px;
  line-height: 1;
}
.g9c6-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g9c6-btn:active { transform: scale(.96); }
.g9c6-btn-register {
  background: var(--g9c6-accent);
  color: #0E1621;
}
.g9c6-btn-login {
  background: transparent;
  color: var(--g9c6-white);
  border: 1px solid var(--g9c6-accent);
}
.g9c6-menu-btn {
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  color: var(--g9c6-white);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu drawer ---------- */
.g9c6-mobile-menu {
  position: fixed;
  top: var(--g9c6-header-h);
  right: 0;
  width: 78%;
  max-width: 320px;
  background: #16202c;
  border-left: 1px solid rgba(128, 203, 196, .2);
  transform: translateX(110%);
  transition: transform .25s ease;
  z-index: 9999;
  padding: 14px;
  height: calc(100vh - var(--g9c6-header-h));
  overflow-y: auto;
}
.g9c6-mobile-menu.g9c6-menu-open { transform: translateX(0); }
.g9c6-mobile-menu h4 {
  font-size: 13px;
  color: var(--g9c6-accent);
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.g9c6-mobile-menu a {
  display: block;
  padding: 10px 8px;
  color: var(--g9c6-white);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.g9c6-mobile-menu a:hover { color: var(--g9c6-accent); text-decoration: none; }
.g9c6-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  display: none;
}
.g9c6-overlay.g9c6-menu-open { display: block; }

/* ---------- Main ---------- */
.g9c6-main {
  padding-top: calc(var(--g9c6-header-h) + 6px);
  padding-bottom: calc(var(--g9c6-bnav-h) + 16px);
  min-height: 100vh;
}
.g9c6-section { padding: 18px 0; }
.g9c6-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--g9c6-white);
  margin-bottom: 10px;
  border-left: 4px solid var(--g9c6-accent);
  padding-left: 10px;
}
.g9c6-section-title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--g9c6-muted);
  margin-top: 2px;
}

/* ---------- Hero slider ---------- */
.g9c6-hero {
  position: relative;
  border-radius: var(--g9c6-radius);
  overflow: hidden;
  box-shadow: var(--g9c6-shadow);
  margin-bottom: 6px;
}
.g9c6-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g9c6-slide.g9c6-slide-active { display: block; }
.g9c6-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g9c6-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(14,22,33,.85));
  font-size: 13px;
  color: #fff;
}
.g9c6-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex; gap: 5px;
}
.g9c6-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.g9c6-dot.g9c6-dot-active { background: var(--g9c6-accent); }

/* ---------- CTA banner ---------- */
.g9c6-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(90deg, #2C3E50, #36454F);
  border: 1px solid rgba(128,203,196,.3);
  border-radius: var(--g9c6-radius);
  padding: 14px;
  margin: 14px 0;
}
.g9c6-cta-text {
  flex: 1;
  font-size: 13px;
  color: var(--g9c6-white);
}
.g9c6-cta-text b { color: var(--g9c6-accent); }

/* ---------- Game grid ---------- */
.g9c6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g9c6-card {
  background: #1a2632;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(255,255,255,.04);
}
.g9c6-card:hover { transform: translateY(-2px); box-shadow: var(--g9c6-shadow); }
.g9c6-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0E1621;
}
.g9c6-card-name {
  font-size: 11.5px;
  color: var(--g9c6-muted);
  padding: 5px 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / panels ---------- */
.g9c6-panel {
  background: #16202c;
  border-radius: var(--g9c6-radius);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 12px;
}
.g9c6-panel h3 {
  font-size: 15px;
  color: var(--g9c6-accent);
  margin-bottom: 8px;
}
.g9c6-panel p {
  font-size: 13.5px;
  color: var(--g9c6-muted);
  margin-bottom: 8px;
}

/* ---------- Feature / highlight list ---------- */
.g9c6-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.g9c6-feature {
  display: flex;
  gap: 10px;
  background: #16202c;
  border-radius: 10px;
  padding: 12px;
  border-left: 3px solid var(--g9c6-accent);
}
.g9c6-feature .g9c6-feature-ico {
  font-size: 22px;
  color: var(--g9c6-accent);
  width: 32px;
  text-align: center;
}
.g9c6-feature h4 { font-size: 14px; color: var(--g9c6-white); margin-bottom: 3px; }
.g9c6-feature p { font-size: 12.5px; color: var(--g9c6-muted); }

/* ---------- Testimonials ---------- */
.g9c6-testi {
  background: #16202c;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.05);
}
.g9c6-testi-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.g9c6-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--g9c6-bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--g9c6-accent); font-weight: 700;
}
.g9c6-stars { color: #f5b301; font-size: 12px; }
.g9c6-testi p { font-size: 13px; color: var(--g9c6-muted); }

/* ---------- FAQ ---------- */
.g9c6-faq-item {
  background: #16202c;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.g9c6-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: var(--g9c6-white);
  font-size: 14px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.g9c6-faq-q .g9c6-faq-ico { color: var(--g9c6-accent); }
.g9c6-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
  color: var(--g9c6-muted);
  font-size: 13px;
}
.g9c6-faq-open .g9c6-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- Payment grid ---------- */
.g9c6-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.g9c6-pay-item {
  background: #16202c;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.05);
}
.g9c6-pay-item i { font-size: 22px; color: var(--g9c6-accent); }
.g9c6-pay-item span { display: block; font-size: 11.5px; color: var(--g9c6-muted); margin-top: 4px; }

/* ---------- Winners ---------- */
.g9c6-winner {
  display: flex; justify-content: space-between;
  background: #16202c;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.g9c6-winner b { color: var(--g9c6-accent); }

/* ---------- Promo link (inline text) ---------- */
.g9c6-promo-link {
  color: var(--g9c6-accent);
  font-weight: 700;
  cursor: pointer;
}
.g9c6-promo-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.g9c6-footer {
  background: #0a121b;
  padding: 20px 0 12px;
  border-top: 1px solid rgba(128,203,196,.15);
}
.g9c6-footer h4 {
  color: var(--g9c6-accent);
  font-size: 14px;
  margin: 12px 0 6px;
}
.g9c6-footer p { font-size: 12.5px; color: var(--g9c6-muted); margin-bottom: 8px; }
.g9c6-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin-bottom: 10px;
}
.g9c6-footer-links a {
  font-size: 12px;
  color: var(--g9c6-muted);
}
.g9c6-footer-cta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 14px;
}
.g9c6-copy {
  font-size: 11.5px;
  color: #6c7a89;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 10px;
  margin-top: 8px;
}

/* ---------- Bottom navigation ---------- */
.g9c6-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g9c6-bnav-h);
  background: #0a121b;
  border-top: 1px solid rgba(128,203,196,.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.g9c6-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g9c6-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 10.5px;
  transition: color .15s ease, transform .15s ease;
}
.g9c6-bnav-btn i,
.g9c6-bnav-btn .material-icons-outlined {
  font-size: 22px;
}
.g9c6-bnav-btn:active { transform: scale(.9); }
.g9c6-bnav-btn:hover { color: var(--g9c6-white); }
.g9c6-bnav-active { color: var(--g9c6-accent); }
.g9c6-bnav-active i { color: var(--g9c6-accent); }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .g9c6-bnav { display: none; }
  .g9c6-menu-btn { display: none; }
  .g9c6-main { padding-bottom: 30px; }
  .g9c6-container { max-width: 960px; }
  .g9c6-header-inner { max-width: 960px; }
  .g9c6-grid { grid-template-columns: repeat(6, 1fr); }
  .g9c6-features { grid-template-columns: repeat(2, 1fr); }
  .g9c6-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .g9c6-slide img { height: 320px; }
}

/* ---------- Small phone tuning ---------- */
@media (max-width: 430px) {
  .g9c6-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .g9c6-card-name { font-size: 11px; }
  .g9c6-section-title { font-size: 16px; }
  .g9c6-logo-text { font-size: 14px; }
  .g9c6-btn { padding: 7px 11px; font-size: 12px; }
}

@media (max-width: 360px) {
  .g9c6-grid { grid-template-columns: repeat(2, 1fr); }
  .g9c6-pay-grid { grid-template-columns: repeat(2, 1fr); }
}
