/**
 * jili333-app-login.css
 * Shared stylesheet for jili333 app login (jili333applogin.click).
 * All custom class names use the "v482-" prefix to isolate site styles.
 * Color palette: #66CDAA | #0F0F23 | #BC8F8F | #FFDEAD | #EEEEEE | #FAF0E6
 * Mobile-first: base styles target <=430px, then progressively enhanced.
 */

:root {
  --v482-primary: #66CDAA;
  --v482-bg: #0F0F23;
  --v482-bg-alt: #15153a;
  --v482-accent: #BC8F8F;
  --v482-gold: #FFDEAD;
  --v482-text: #EEEEEE;
  --v482-text-muted: #FAF0E6;
  --v482-border: rgba(102, 205, 170, 0.25);
  --v482-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --v482-radius: 14px;
  --v482-radius-sm: 10px;
  --v482-header-h: 64px;
  --v482-bottom-h: 64px;
}

/* Root font sizing - 62.5% gives 1rem = 10px for rem math. */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #1c1c44 0%, var(--v482-bg) 60%);
  color: var(--v482-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--v482-gold); text-decoration: none; }

.v482-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v482-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== Header ===== */
.v482-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v482-header-h);
  background: linear-gradient(90deg, #11112c 0%, #1b1b40 100%);
  border-bottom: 1px solid var(--v482-border);
  z-index: 1000;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.v482-header-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,0.5); }

.v482-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.v482-brand { display: flex; align-items: center; gap: 0.7rem; }
.v482-brand img { width: 30px; height: 30px; border-radius: 8px; }
.v482-brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--v482-gold);
  letter-spacing: 0.3px;
}

.v482-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.v482-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  min-height: 38px;
}
.v482-btn:focus-visible { outline: 2px solid var(--v482-gold); outline-offset: 2px; }
.v482-btn:hover { transform: translateY(-1px); }
.v482-btn:active { transform: scale(0.97); }

.v482-btn-primary {
  background: linear-gradient(135deg, var(--v482-gold), #f5c97a);
  color: #2a1a05;
  box-shadow: 0 4px 12px rgba(255, 222, 173, 0.35);
}
.v482-btn-ghost {
  background: transparent;
  color: var(--v482-primary);
  border: 1.5px solid var(--v482-primary);
}
.v482-btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
}

.v482-icon-btn {
  background: transparent;
  border: none;
  color: var(--v482-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ===== Mobile menu ===== */
.v482-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.v482-overlay-visible { opacity: 1; visibility: visible; }

.v482-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(160deg, #15153a, #0c0c22);
  z-index: 9999;
  padding: 1.8rem 1.4rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--v482-border);
}
.v482-menu-open { right: 0; }

.v482-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: var(--v482-text);
  font-size: 2.2rem;
  cursor: pointer;
}
.v482-menu-title {
  font-size: 1.7rem;
  color: var(--v482-gold);
  margin-bottom: 1.2rem;
  font-weight: 800;
}
.v482-menu-list { list-style: none; }
.v482-menu-list li { margin-bottom: 0.6rem; }
.v482-menu-list a {
  display: block;
  padding: 1rem 1.2rem;
  background: rgba(102, 205, 170, 0.08);
  border-radius: var(--v482-radius-sm);
  color: var(--v482-text);
  font-size: 1.4rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.v482-menu-list a:hover {
  background: rgba(102, 205, 170, 0.18);
  border-color: var(--v482-border);
}

/* ===== Main content ===== */
main { padding-top: calc(var(--v482-header-h) + 0.5rem); padding-bottom: 2rem; }

.v482-section { padding: 2rem 0; }
.v482-section-alt {
  background: linear-gradient(180deg, rgba(188,143,143,0.08), transparent);
}

.v482-h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--v482-gold);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.v482-h2 {
  font-size: 2rem;
  color: var(--v482-primary);
  font-weight: 800;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--v482-gold);
}
.v482-h3 {
  font-size: 1.7rem;
  color: var(--v482-gold);
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}
.v482-lead {
  color: var(--v482-text-muted);
  font-size: 1.45rem;
  line-height: 1.6rem;
}
.v482-text-muted { color: var(--v482-text-muted); }
.v482-p { margin-bottom: 0.9rem; line-height: 1.6rem; }

/* ===== Carousel ===== */
.v482-carousel {
  position: relative;
  border-radius: var(--v482-radius);
  overflow: hidden;
  box-shadow: var(--v482-shadow);
  margin-bottom: 1.2rem;
}
.v482-carousel-track { position: relative; height: 200px; }
.v482-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.v482-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v482-slide-active { opacity: 1; }
.v482-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(15,15,35,0.9));
  color: var(--v482-gold);
  font-weight: 700;
  font-size: 1.4rem;
}
.v482-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: var(--v482-text);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.v482-carousel-nav.prev { left: 8px; }
.v482-carousel-nav.next { right: 8px; }
.v482-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.v482-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.v482-dot-active { background: var(--v482-gold); }

/* ===== Game grid ===== */
.v482-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.v482-card {
  background: var(--v482-bg-alt);
  border: 1px solid var(--v482-border);
  border-radius: var(--v482-radius-sm);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s;
}
.v482-card:hover {
  transform: translateY(-3px);
  border-color: var(--v482-gold);
  box-shadow: 0 6px 16px rgba(255,222,173,0.18);
}
.v482-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.v482-card-name {
  font-size: 1.15rem;
  color: var(--v482-text);
  font-weight: 600;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Feature cards ===== */
.v482-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.v482-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(102,205,170,0.06);
  border: 1px solid var(--v482-border);
  border-radius: var(--v482-radius-sm);
  padding: 1rem;
}
.v482-feature-icon {
  font-size: 2.2rem;
  color: var(--v482-gold);
  flex-shrink: 0;
}
.v482-feature-title { font-size: 1.45rem; color: var(--v482-primary); font-weight: 700; margin-bottom: 0.3rem; }
.v482-feature-text { font-size: 1.3rem; color: var(--v482-text-muted); line-height: 1.5rem; }

/* ===== Steps ===== */
.v482-steps { counter-reset: step; list-style: none; }
.v482-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.4rem;
  margin-bottom: 0.7rem;
  background: rgba(188,143,143,0.08);
  border-radius: var(--v482-radius-sm);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  padding-right: 0.9rem;
}
.v482-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem;
  background: linear-gradient(135deg, var(--v482-gold), #f5c97a);
  color: #2a1a05;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}

/* ===== Testimonials ===== */
.v482-testimonial {
  background: var(--v482-bg-alt);
  border-left: 3px solid var(--v482-primary);
  border-radius: var(--v482-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.v482-testimonial-text { font-style: italic; color: var(--v482-text); font-size: 1.3rem; line-height: 1.5rem; }
.v482-testimonial-author { margin-top: 0.5rem; color: var(--v482-gold); font-weight: 700; font-size: 1.2rem; }

/* ===== Payment chips ===== */
.v482-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v482-chip {
  background: rgba(102,205,170,0.1);
  border: 1px solid var(--v482-border);
  color: var(--v482-text);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ===== CTA banner ===== */
.v482-cta {
  background: linear-gradient(135deg, var(--v482-primary), #4fae8d);
  border-radius: var(--v482-radius);
  padding: 1.6rem 1.3rem;
  text-align: center;
  color: #0c1f1a;
  box-shadow: var(--v482-shadow);
  margin: 1.4rem 0;
}
.v482-cta h3 { color: #0c1f1a; margin-top: 0; }
.v482-cta-text { font-size: 1.35rem; margin-bottom: 1rem; color: #0c1f1a; }

/* ===== Footer ===== */
.v482-footer {
  background: #0a0a1c;
  border-top: 1px solid var(--v482-border);
  padding: 2rem 1.2rem calc(var(--v482-bottom-h) + 1.5rem);
  margin-top: 2rem;
}
.v482-footer-brand { font-size: 1.6rem; color: var(--v482-gold); font-weight: 800; margin-bottom: 0.6rem; }
.v482-footer-text { font-size: 1.25rem; color: var(--v482-text-muted); line-height: 1.5rem; margin-bottom: 1.2rem; }
.v482-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.2rem;
}
.v482-footer-links a { font-size: 1.2rem; color: var(--v482-primary); }
.v482-footer-copy { font-size: 1.1rem; color: var(--v482-accent); border-top: 1px solid var(--v482-border); padding-top: 1rem; }

/* ===== Bottom navigation ===== */
.v482-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v482-bottom-h);
  background: linear-gradient(180deg, #14143a, #0a0a1c);
  border-top: 1px solid var(--v482-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.v482-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v482-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 0.2s ease, transform 0.18s ease;
}
.v482-bottom-nav-btn .v482-nav-icon { font-size: 2.2rem; line-height: 1; }
.v482-bottom-nav-btn .v482-nav-label { font-size: 1rem; line-height: 1.2; }
.v482-bottom-nav-btn:hover { color: var(--v482-gold); }
.v482-bottom-nav-btn:active { transform: scale(0.92); }
.v482-bottom-nav-btn.v482-active { color: var(--v482-gold); }
.v482-bottom-nav-btn.v482-active .v482-nav-icon { text-shadow: 0 0 8px rgba(255,222,173,0.6); }

/* ===== Reveal animation ===== */
.v482-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.v482-revealed { opacity: 1; transform: translateY(0); }

/* ===== Mobile-first 430px breakpoint tweaks ===== */
@media (max-width: 430px) {
  .v482-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .v482-card { padding: 0.45rem; }
  .v482-card-name { font-size: 1.05rem; }
  .v482-h1 { font-size: 2.1rem; }
  .v482-h2 { font-size: 1.8rem; }
  .v482-carousel-track { height: 170px; }
  .v482-btn { padding: 0.6rem 1rem; font-size: 1.2rem; }
  .v482-brand-text { font-size: 1.35rem; }
}

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

/* ===== Desktop: hide bottom nav, lift max width ===== */
@media (min-width: 769px) {
  .v482-bottom-nav { display: none; }
  .v482-footer { padding-bottom: 2rem; }
  .v482-container, .v482-wrapper, .v482-header-inner { max-width: 760px; }
  .v482-grid { grid-template-columns: repeat(5, 1fr); }
  .v482-feature-grid { grid-template-columns: 1fr 1fr; }
}

/* Always reserve space for bottom nav on phones. */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v482-bottom-h) + 1.5rem); }
}

/* Accessibility: reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .v482-reveal { opacity: 1; transform: none; }
}
