/**
 * JL Boss - Main Stylesheet
 * All classes use v4e3- prefix for namespace isolation
 * Mobile-first design, max-width 430px, rem-based (root 62.5%)
 */

/* === CSS Variables === */
:root {
  --v4e3-primary: #00FF7F;
  --v4e3-accent: #A9A9A9;
  --v4e3-bg: #273746;
  --v4e3-bg-dark: #1B2838;
  --v4e3-text: #D3D3D3;
  --v4e3-light: #F0F0F0;
  --v4e3-card: #2C3E50;
  --v4e3-border: #3D5166;
  --v4e3-dark-gray: #5D5D5D;
  --v4e3-radius: 8px;
  --v4e3-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v4e3-transition: all 0.3s ease;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v4e3-bg);
  color: var(--v4e3-text);
  font-size: 1.4rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v4e3-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* === Container === */
.v4e3-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

/* === Header (Fixed Top) === */
.v4e3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--v4e3-bg-dark);
  border-bottom: 1px solid var(--v4e3-border);
  padding: 0.8rem 1.2rem;
  transition: var(--v4e3-transition);
}

.v4e3-header-scrolled {
  background-color: rgba(27, 40, 56, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.v4e3-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.v4e3-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.v4e3-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v4e3-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v4e3-primary);
  white-space: nowrap;
}

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

.v4e3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--v4e3-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--v4e3-transition);
  white-space: nowrap;
  min-height: 36px;
}

.v4e3-btn-register {
  background-color: var(--v4e3-primary);
  color: var(--v4e3-bg-dark);
}

.v4e3-btn-register:hover {
  background-color: #00E070;
  transform: scale(1.05);
}

.v4e3-btn-login {
  background-color: transparent;
  color: var(--v4e3-primary);
  border: 1.5px solid var(--v4e3-primary);
}

.v4e3-btn-login:hover {
  background-color: rgba(0, 255, 127, 0.1);
}

.v4e3-hamburger {
  background: none;
  border: none;
  color: var(--v4e3-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.v4e3-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.v4e3-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background-color: var(--v4e3-bg-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.v4e3-menu-close {
  background: none;
  border: none;
  color: var(--v4e3-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.v4e3-menu-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.v4e3-menu-links a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--v4e3-light);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: var(--v4e3-radius);
  transition: var(--v4e3-transition);
}

.v4e3-menu-links a:hover {
  background-color: rgba(0, 255, 127, 0.1);
  color: var(--v4e3-primary);
  text-decoration: none;
}

/* === Carousel === */
.v4e3-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v4e3-radius);
  margin-top: 1rem;
}

.v4e3-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v4e3-slide {
  min-width: 100%;
  cursor: pointer;
}

.v4e3-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.v4e3-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.v4e3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(211, 211, 211, 0.5);
  cursor: pointer;
  transition: var(--v4e3-transition);
  border: none;
}

.v4e3-dot-active {
  background-color: var(--v4e3-primary);
  width: 20px;
  border-radius: 4px;
}

/* === Main Content === */
.v4e3-main {
  padding-top: 5.6rem;
  padding-bottom: 2rem;
  min-height: 100vh;
}

.v4e3-section {
  margin: 1.6rem 0;
}

.v4e3-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v4e3-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v4e3-border);
}

.v4e3-section-title i {
  margin-right: 0.5rem;
}

/* === Game Grid === */
.v4e3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v4e3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--v4e3-radius);
  background-color: var(--v4e3-card);
  transition: var(--v4e3-transition);
  text-align: center;
}

.v4e3-game-item:hover {
  background-color: var(--v4e3-border);
  transform: translateY(-2px);
}

.v4e3-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.v4e3-game-item span {
  font-size: 1.1rem;
  color: var(--v4e3-light);
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Cards === */
.v4e3-card {
  background-color: var(--v4e3-card);
  border-radius: var(--v4e3-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--v4e3-shadow);
  border: 1px solid var(--v4e3-border);
}

.v4e3-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v4e3-primary);
  margin-bottom: 0.8rem;
}

.v4e3-card p {
  font-size: 1.3rem;
  color: var(--v4e3-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* === CTA Section === */
.v4e3-cta {
  background: linear-gradient(135deg, var(--v4e3-bg-dark) 0%, var(--v4e3-card) 100%);
  border: 1.5px solid var(--v4e3-primary);
  border-radius: var(--v4e3-radius);
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 2rem 0;
}

.v4e3-cta h2 {
  font-size: 2rem;
  color: var(--v4e3-primary);
  margin-bottom: 1rem;
}

.v4e3-cta p {
  font-size: 1.3rem;
  color: var(--v4e3-text);
  margin-bottom: 1.4rem;
}

.v4e3-cta .v4e3-btn {
  font-size: 1.4rem;
  padding: 1rem 2.4rem;
}

/* === Winners Table === */
.v4e3-winners {
  background-color: var(--v4e3-card);
  border-radius: var(--v4e3-radius);
  padding: 1.2rem;
  margin: 1.6rem 0;
}

.v4e3-winners-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v4e3-border);
  font-size: 1.2rem;
}

.v4e3-winners-row:last-child {
  border-bottom: none;
}

.v4e3-winners-name {
  color: var(--v4e3-light);
  font-weight: 500;
}

.v4e3-winners-game {
  color: var(--v4e3-accent);
}

.v4e3-winners-amount {
  color: var(--v4e3-primary);
  font-weight: 700;
}

/* === Payment Methods === */
.v4e3-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.v4e3-payment-item {
  background-color: var(--v4e3-card);
  border: 1px solid var(--v4e3-border);
  border-radius: var(--v4e3-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--v4e3-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Footer === */
.v4e3-footer {
  background-color: var(--v4e3-bg-dark);
  border-top: 1px solid var(--v4e3-border);
  padding: 2rem 0 10rem;
}

.v4e3-footer-desc {
  font-size: 1.2rem;
  color: var(--v4e3-accent);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.v4e3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.v4e3-footer-links a {
  background-color: var(--v4e3-card);
  border: 1px solid var(--v4e3-border);
  border-radius: var(--v4e3-radius);
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--v4e3-light);
  transition: var(--v4e3-transition);
}

.v4e3-footer-links a:hover {
  color: var(--v4e3-primary);
  border-color: var(--v4e3-primary);
  text-decoration: none;
}

.v4e3-copyright {
  font-size: 1.1rem;
  color: var(--v4e3-dark-gray);
  text-align: center;
  margin-top: 1.4rem;
}

/* === Bottom Navigation (Fixed Bottom) === */
.v4e3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--v4e3-bg-dark);
  border-top: 1px solid var(--v4e3-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}

.v4e3-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  color: var(--v4e3-accent);
  transition: var(--v4e3-transition);
  text-decoration: none;
  border: none;
  background: none;
  padding: 0.4rem;
  -webkit-tap-highlight-color: transparent;
}

.v4e3-bottom-nav-item:hover,
.v4e3-bottom-nav-item:active {
  color: var(--v4e3-primary);
  transform: scale(1.1);
}

.v4e3-bottom-nav-item i,
.v4e3-bottom-nav-item .material-icons,
.v4e3-bottom-nav-item ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.v4e3-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2;
}

.v4e3-nav-active {
  color: var(--v4e3-primary) !important;
}

/* === Promo Link Text === */
.v4e3-promo-text {
  color: var(--v4e3-primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--v4e3-transition);
}

.v4e3-promo-text:hover {
  text-decoration: underline;
  color: #00E070;
}

/* === Info List === */
.v4e3-info-list {
  list-style: none;
  padding: 0;
}

.v4e3-info-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v4e3-border);
  font-size: 1.3rem;
  color: var(--v4e3-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.v4e3-info-list li i {
  color: var(--v4e3-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* === FAQ Section === */
.v4e3-faq-item {
  border-bottom: 1px solid var(--v4e3-border);
  padding: 1.2rem 0;
}

.v4e3-faq-item:last-child {
  border-bottom: none;
}

.v4e3-faq-question {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v4e3-light);
  margin-bottom: 0.6rem;
}

.v4e3-faq-answer {
  font-size: 1.3rem;
  color: var(--v4e3-text);
  line-height: 1.6;
}

/* === Steps === */
.v4e3-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}

.v4e3-step-number {
  background-color: var(--v4e3-primary);
  color: var(--v4e3-bg-dark);
  font-size: 1.4rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v4e3-step-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v4e3-light);
  margin-bottom: 0.4rem;
}

.v4e3-step-content p {
  font-size: 1.3rem;
  color: var(--v4e3-text);
  line-height: 1.5;
}

/* === Utility === */
.v4e3-text-center { text-align: center; }
.v4e3-text-primary { color: var(--v4e3-primary); }
.v4e3-mt-1 { margin-top: 1rem; }
.v4e3-mt-2 { margin-top: 2rem; }
.v4e3-mb-1 { margin-bottom: 1rem; }
.v4e3-mb-2 { margin-bottom: 2rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .v4e3-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .v4e3-bottom-nav {
    display: none;
  }
}

/* === Partners / Logos === */
.v4e3-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}

.v4e3-partners img {
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.v4e3-partners img:hover {
  opacity: 1;
}

/* === RTP Table === */
.v4e3-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.v4e3-rtp-item {
  background-color: var(--v4e3-card);
  border: 1px solid var(--v4e3-border);
  border-radius: var(--v4e3-radius);
  padding: 0.8rem;
  text-align: center;
}

.v4e3-rtp-item span:first-child {
  display: block;
  font-size: 1.1rem;
  color: var(--v4e3-accent);
  margin-bottom: 0.2rem;
}

.v4e3-rtp-item span:last-child {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v4e3-primary);
}
