/**
 * JiliCrown APK - Core Stylesheet
 * Class prefix: g2bf-
 * Color palette: #8470FF | #00FA9A | #90EE90 | #2D2D2D | #E6E6FA
 */

/* CSS Variables */
:root {
  --g2bf-primary: #8470FF;
  --g2bf-accent: #00FA9A;
  --g2bf-light-green: #90EE90;
  --g2bf-dark: #2D2D2D;
  --g2bf-lavender: #E6E6FA;
  --g2bf-bg: #1a1a2e;
  --g2bf-bg-card: #16213e;
  --g2bf-bg-deep: #0f0f1a;
  --g2bf-text: #E6E6FA;
  --g2bf-text-muted: #a0a0c0;
  --g2bf-gold: #ffd700;
  --g2bf-border: rgba(132, 112, 255, 0.2);
  --g2bf-radius: 12px;
  --g2bf-radius-sm: 8px;
  --g2bf-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--g2bf-bg);
  color: var(--g2bf-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g2bf-accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.g2bf-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g2bf-dark) 0%, #1a1a3e 100%);
  border-bottom: 1px solid var(--g2bf-border);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}
.g2bf-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g2bf-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.g2bf-logo-area span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g2bf-primary);
  letter-spacing: 0.5px;
}
.g2bf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g2bf-btn-register, .g2bf-btn-login {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.g2bf-btn-register {
  background: linear-gradient(135deg, var(--g2bf-primary), #6a5acd);
  color: #fff;
}
.g2bf-btn-login {
  background: transparent;
  color: var(--g2bf-accent);
  border: 1px solid var(--g2bf-accent);
}
.g2bf-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(132,112,255,0.4); }
.g2bf-btn-login:hover { background: rgba(0,250,154,0.1); }
.g2bf-menu-toggle {
  background: none;
  border: none;
  color: var(--g2bf-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.g2bf-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.g2bf-overlay-active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Slide Menu */
.g2bf-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--g2bf-bg-deep);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.g2bf-menu-active { right: 0; }
.g2bf-mobile-menu .g2bf-menu-close {
  background: none;
  border: none;
  color: var(--g2bf-text);
  font-size: 2.4rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}
.g2bf-mobile-menu h3 {
  color: var(--g2bf-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--g2bf-border);
}
.g2bf-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--g2bf-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(132,112,255,0.1);
  transition: color 0.2s;
}
.g2bf-mobile-menu a:hover { color: var(--g2bf-accent); }

/* Main Content */
.g2bf-main {
  padding-top: 60px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g2bf-main { padding-bottom: 80px; }
}

/* Carousel */
.g2bf-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--g2bf-radius) var(--g2bf-radius);
}
.g2bf-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g2bf-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.g2bf-slide-active { display: block; }
.g2bf-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g2bf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.g2bf-dot-active { background: var(--g2bf-accent); width: 20px; border-radius: 4px; }

/* Section Styles */
.g2bf-section {
  padding: 1.5rem 1rem;
}
.g2bf-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g2bf-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g2bf-section-title i, .g2bf-section-title .material-icons {
  font-size: 2rem;
  color: var(--g2bf-accent);
}

/* Game Grid */
.g2bf-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g2bf-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--g2bf-primary);
}
.g2bf-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g2bf-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}
.g2bf-game-item:hover { transform: scale(1.05); }
.g2bf-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g2bf-radius-sm);
  border: 1px solid var(--g2bf-border);
  background: var(--g2bf-bg-card);
}
.g2bf-game-item span {
  font-size: 1rem;
  color: var(--g2bf-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Cards */
.g2bf-card {
  background: var(--g2bf-bg-card);
  border-radius: var(--g2bf-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g2bf-border);
}
.g2bf-card h2 {
  font-size: 1.7rem;
  color: var(--g2bf-primary);
  margin-bottom: 0.8rem;
}
.g2bf-card h3 {
  font-size: 1.4rem;
  color: var(--g2bf-accent);
  margin: 1rem 0 0.5rem;
}
.g2bf-card p {
  color: var(--g2bf-text-muted);
  line-height: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Promo Button */
.g2bf-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g2bf-primary), #6a5acd);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s;
  text-transform: uppercase;
}
.g2bf-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(132,112,255,0.5);
}
.g2bf-promo-btn-green {
  background: linear-gradient(135deg, var(--g2bf-accent), #00cc7a);
}
.g2bf-promo-text {
  color: var(--g2bf-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.3rem;
}

/* Footer */
.g2bf-footer {
  background: var(--g2bf-bg-deep);
  padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--g2bf-border);
}
.g2bf-footer-desc {
  color: var(--g2bf-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}
.g2bf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.g2bf-footer-links a {
  background: var(--g2bf-bg-card);
  color: var(--g2bf-text);
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 1.1rem;
  border: 1px solid var(--g2bf-border);
  transition: all 0.2s;
}
.g2bf-footer-links a:hover {
  border-color: var(--g2bf-accent);
  color: var(--g2bf-accent);
}
.g2bf-copyright {
  text-align: center;
  color: var(--g2bf-text-muted);
  font-size: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(132,112,255,0.1);
}

/* Bottom Navigation */
.g2bf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--g2bf-dark), #111122);
  border-top: 1px solid var(--g2bf-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
@media (min-width: 769px) {
  .g2bf-bottom-nav { display: none; }
}
.g2bf-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--g2bf-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 8px;
  padding: 0.3rem;
}
.g2bf-bottom-btn i,
.g2bf-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: all 0.25s;
}
.g2bf-bottom-btn span {
  font-size: 1rem;
  line-height: 1;
}
.g2bf-bottom-btn:hover,
.g2bf-bottom-btn-active {
  color: var(--g2bf-accent);
}
.g2bf-bottom-btn:hover i,
.g2bf-bottom-btn:hover .material-icons,
.g2bf-bottom-btn-active i,
.g2bf-bottom-btn-active .material-icons {
  transform: scale(1.15);
  color: var(--g2bf-accent);
}

/* Utility classes */
.g2bf-text-center { text-align: center; }
.g2bf-mt-1 { margin-top: 0.5rem; }
.g2bf-mt-2 { margin-top: 1rem; }
.g2bf-mb-2 { margin-bottom: 1rem; }
.g2bf-highlight {
  color: var(--g2bf-accent);
  font-weight: 600;
}
.g2bf-list {
  list-style: none;
  padding: 0;
}
.g2bf-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--g2bf-text-muted);
  font-size: 1.3rem;
}
.g2bf-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g2bf-accent);
}

/* Winner Showcase */
.g2bf-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(132,112,255,0.05);
  border-radius: var(--g2bf-radius-sm);
  margin-bottom: 0.5rem;
}
.g2bf-winner-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.g2bf-winner-info {
  flex: 1;
}
.g2bf-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g2bf-text);
}
.g2bf-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g2bf-gold);
}

/* Testimonials */
.g2bf-testimonial {
  background: rgba(0,250,154,0.05);
  border-left: 3px solid var(--g2bf-accent);
  padding: 1rem;
  border-radius: 0 var(--g2bf-radius-sm) var(--g2bf-radius-sm) 0;
  margin-bottom: 0.8rem;
}
.g2bf-testimonial p {
  font-style: italic;
  color: var(--g2bf-text-muted);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.g2bf-testimonial strong {
  color: var(--g2bf-primary);
  font-size: 1.1rem;
}

/* Payment Icons */
.g2bf-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.g2bf-payment-item {
  background: var(--g2bf-bg-card);
  border: 1px solid var(--g2bf-border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.1rem;
  color: var(--g2bf-text-muted);
}

/* RTP Table */
.g2bf-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.g2bf-rtp-table th {
  background: rgba(132,112,255,0.15);
  color: var(--g2bf-primary);
  padding: 0.6rem 0.4rem;
  text-align: left;
  font-size: 1.1rem;
}
.g2bf-rtp-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(132,112,255,0.1);
  color: var(--g2bf-text-muted);
}
.g2bf-rtp-table tr:hover td {
  background: rgba(0,250,154,0.05);
}
.g2bf-rtp-high { color: var(--g2bf-accent); font-weight: 600; }

/* App Download CTA */
.g2bf-app-cta {
  background: linear-gradient(135deg, rgba(132,112,255,0.15), rgba(0,250,154,0.1));
  border-radius: var(--g2bf-radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--g2bf-border);
}
.g2bf-app-cta h3 {
  color: var(--g2bf-primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.g2bf-app-cta p {
  color: var(--g2bf-text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.g2bf-faq-item {
  background: var(--g2bf-bg-card);
  border-radius: var(--g2bf-radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--g2bf-border);
}
.g2bf-faq-q {
  padding: 1rem;
  font-weight: 600;
  color: var(--g2bf-text);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.g2bf-faq-a {
  padding: 0 1rem 1rem;
  color: var(--g2bf-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* Desktop bottom padding reset */
@media (min-width: 769px) {
  .g2bf-main { padding-bottom: 20px; }
}
