/* jiliph-cfd theme stylesheet */
:root {
  --gc9e-primary: #FFD700;
  --gc9e-accent: #B8860B;
  --gc9e-bg: #0F0F23;
  --gc9e-bg-card: #1a1a3e;
  --gc9e-bg-dark: #0a0a1a;
  --gc9e-text: #FFEBCD;
  --gc9e-text-muted: #c4b89a;
  --gc9e-border: #2a2a5a;
  --gc9e-gold-glow: rgba(255, 215, 0, 0.15);
  --gc9e-radius: 10px;
  --gc9e-radius-sm: 6px;
  --gc9e-transition: 0.3s ease;
  --gc9e-header-h: 56px;
  --gc9e-bottom-nav-h: 60px;
  --gc9e-max-w: 430px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gc9e-bg);
  color: var(--gc9e-text);
  line-height: 1.6;
  max-width: var(--gc9e-max-w);
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gc9e-primary); text-decoration: none; transition: color var(--gc9e-transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.gc9e-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--gc9e-max-w); height: var(--gc9e-header-h);
  background: var(--gc9e-bg-dark); border-bottom: 1px solid var(--gc9e-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000; transition: box-shadow var(--gc9e-transition);
}
.gc9e-header-scrolled { box-shadow: 0 2px 20px rgba(255, 215, 0, 0.12); }
.gc9e-header-left { display: flex; align-items: center; gap: 8px; }
.gc9e-logo { width: 34px; height: 34px; border-radius: 8px; }
.gc9e-brand { font-size: 1.2rem; font-weight: 700; color: var(--gc9e-primary); letter-spacing: 0.5px; }
.gc9e-header-right { display: flex; align-items: center; gap: 8px; }
.gc9e-btn {
  padding: 6px 14px; border-radius: var(--gc9e-radius-sm); font-size: 0.8rem;
  font-weight: 600; border: none; cursor: pointer; transition: all var(--gc9e-transition);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.gc9e-btn-register { background: var(--gc9e-primary); color: var(--gc9e-bg); }
.gc9e-btn-register:hover { background: #ffe44d; transform: scale(1.05); }
.gc9e-btn-login { background: transparent; color: var(--gc9e-primary); border: 1px solid var(--gc9e-primary); }
.gc9e-btn-login:hover { background: var(--gc9e-gold-glow); }
.gc9e-hamburger {
  background: none; border: none; color: var(--gc9e-primary); font-size: 1.4rem;
  cursor: pointer; padding: 4px; display: flex; align-items: center;
}

/* Mobile Menu */
.gc9e-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--gc9e-bg-dark); z-index: 9999; padding: 60px 20px 20px;
  transition: right 0.35s ease; overflow-y: auto; border-left: 1px solid var(--gc9e-border);
}
.gc9e-menu-active { right: 0; }
.gc9e-menu-close {
  position: absolute; top: 14px; right: 14px; background: none;
  border: none; color: var(--gc9e-text); font-size: 1.5rem; cursor: pointer;
}
.gc9e-menu-link {
  display: block; padding: 12px 0; color: var(--gc9e-text); font-size: 0.95rem;
  border-bottom: 1px solid var(--gc9e-border); transition: color var(--gc9e-transition);
}
.gc9e-menu-link:hover { color: var(--gc9e-primary); }
.gc9e-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.gc9e-overlay-active { display: block; }

/* Main Content */
.gc9e-main {
  padding-top: calc(var(--gc9e-header-h) + 8px);
  padding-bottom: calc(var(--gc9e-bottom-nav-h) + 20px);
  min-height: 100vh;
}

/* Carousel */
.gc9e-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--gc9e-radius); margin-bottom: 16px;
}
.gc9e-carousel-inner { position: relative; width: 100%; aspect-ratio: 16/7; }
.gc9e-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease;
}
.gc9e-slide-active { opacity: 1; }
.gc9e-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.gc9e-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.gc9e-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: all var(--gc9e-transition); border: none;
}
.gc9e-dot-active { background: var(--gc9e-primary); transform: scale(1.3); }

/* Sections */
.gc9e-section { padding: 16px 12px; }
.gc9e-section-title {
  font-size: 1.15rem; font-weight: 700; color: var(--gc9e-primary);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 2px solid var(--gc9e-accent);
}
.gc9e-section-title i, .gc9e-section-title span.material-symbols-outlined {
  font-size: 1.2rem;
}

/* Game Grid */
.gc9e-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.gc9e-game-card {
  text-align: center; cursor: pointer; border-radius: var(--gc9e-radius-sm);
  overflow: hidden; transition: transform var(--gc9e-transition);
  background: var(--gc9e-bg-card); padding-bottom: 4px;
}
.gc9e-game-card:hover { transform: translateY(-3px); }
.gc9e-game-card:active { transform: scale(0.96); }
.gc9e-game-card img {
  width: 100%; aspect-ratio: 1/1.1; object-fit: cover;
  border-radius: var(--gc9e-radius-sm) var(--gc9e-radius-sm) 0 0;
  background: var(--gc9e-bg-card);
}
.gc9e-game-card span {
  display: block; font-size: 0.65rem; color: var(--gc9e-text-muted);
  padding: 3px 2px; line-height: 1.2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.gc9e-img-loaded { animation: gc9eFadeIn 0.4s ease; }
@keyframes gc9eFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Articles & Info Blocks */
.gc9e-info-block {
  background: var(--gc9e-bg-card); border-radius: var(--gc9e-radius);
  padding: 16px; margin-bottom: 16px; border: 1px solid var(--gc9e-border);
}
.gc9e-info-block h2 {
  font-size: 1.1rem; color: var(--gc9e-primary); margin-bottom: 10px;
}
.gc9e-info-block h3 {
  font-size: 0.95rem; color: var(--gc9e-primary); margin: 10px 0 6px;
}
.gc9e-info-block p {
  font-size: 0.85rem; color: var(--gc9e-text-muted); line-height: 1.7;
  margin-bottom: 8px;
}
.gc9e-info-block ul { padding-left: 16px; }
.gc9e-info-block li {
  font-size: 0.85rem; color: var(--gc9e-text-muted); margin-bottom: 4px;
}

/* Winners Table */
.gc9e-winners { display: flex; flex-direction: column; gap: 6px; }
.gc9e-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: var(--gc9e-bg); border-radius: var(--gc9e-radius-sm);
  font-size: 0.8rem;
}
.gc9e-winner-name { color: var(--gc9e-text); font-weight: 500; }
.gc9e-winner-game { color: var(--gc9e-text-muted); flex: 1; margin: 0 8px; text-align: center; }
.gc9e-winner-amount { color: var(--gc9e-primary); font-weight: 700; }

/* CTA Section */
.gc9e-cta {
  background: linear-gradient(135deg, var(--gc9e-accent), var(--gc9e-primary));
  padding: 24px 16px; text-align: center; border-radius: var(--gc9e-radius);
  margin: 16px 12px;
}
.gc9e-cta h2 { font-size: 1.3rem; color: var(--gc9e-bg); margin-bottom: 8px; }
.gc9e-cta p { font-size: 0.9rem; color: var(--gc9e-bg); margin-bottom: 16px; opacity: 0.85; }
.gc9e-cta-btn {
  display: inline-block; padding: 12px 32px; background: var(--gc9e-bg);
  color: var(--gc9e-primary); font-weight: 700; font-size: 1rem;
  border-radius: 30px; cursor: pointer; border: none;
  transition: all var(--gc9e-transition);
}
.gc9e-cta-btn:hover { background: var(--gc9e-bg-card); transform: scale(1.05); }

/* Payment Methods */
.gc9e-payment-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.gc9e-payment-item {
  background: var(--gc9e-bg); padding: 10px; border-radius: var(--gc9e-radius-sm);
  text-align: center; font-size: 0.75rem; color: var(--gc9e-text-muted);
  border: 1px solid var(--gc9e-border);
}

/* Testimonials */
.gc9e-testimonial {
  background: var(--gc9e-bg); border-radius: var(--gc9e-radius);
  padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--gc9e-primary);
}
.gc9e-testimonial p { font-size: 0.82rem; color: var(--gc9e-text-muted); font-style: italic; margin-bottom: 6px; }
.gc9e-testimonial span { font-size: 0.72rem; color: var(--gc9e-primary); font-weight: 600; }

/* Footer */
.gc9e-footer {
  background: var(--gc9e-bg-dark); padding: 20px 12px; text-align: center;
  border-top: 1px solid var(--gc9e-border);
}
.gc9e-footer-logo { width: 50px; height: 50px; border-radius: 12px; margin: 0 auto 10px; }
.gc9e-footer h3 { font-size: 1rem; color: var(--gc9e-primary); margin-bottom: 8px; }
.gc9e-footer p { font-size: 0.75rem; color: var(--gc9e-text-muted); margin-bottom: 6px; }
.gc9e-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0; }
.gc9e-footer-links a { font-size: 0.72rem; color: var(--gc9e-text-muted); }
.gc9e-footer-links a:hover { color: var(--gc9e-primary); }
.gc9e-footer-copy { font-size: 0.68rem; color: #555; margin-top: 12px; }

/* Bottom Navigation */
.gc9e-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--gc9e-max-w); height: var(--gc9e-bottom-nav-h);
  background: var(--gc9e-bg-dark); border-top: 1px solid var(--gc9e-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 2px 0;
}
.gc9e-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--gc9e-text-muted); cursor: pointer; transition: all var(--gc9e-transition);
  gap: 2px; border-radius: var(--gc9e-radius-sm);
}
.gc9e-bottom-nav-btn i,
.gc9e-bottom-nav-btn .material-symbols-outlined,
.gc9e-bottom-nav-btn ion-icon {
  font-size: 22px; transition: color var(--gc9e-transition);
}
.gc9e-bottom-nav-btn span {
  font-size: 0.6rem; white-space: nowrap;
}
.gc9e-bottom-nav-btn:hover,
.gc9e-nav-active {
  color: var(--gc9e-primary);
}
.gc9e-nav-active i,
.gc9e-nav-active .material-symbols-outlined,
.gc9e-nav-active ion-icon {
  color: var(--gc9e-primary); transform: scale(1.15);
}
.gc9e-nav-active { background: var(--gc9e-gold-glow); border-radius: 10px; }

/* Help page styles */
.gc9e-help-content { padding: 12px; }
.gc9e-help-content h1 { font-size: 1.25rem; color: var(--gc9e-primary); margin-bottom: 12px; }
.gc9e-help-content h2 { font-size: 1.05rem; color: var(--gc9e-primary); margin: 16px 0 8px; }
.gc9e-help-content h3 { font-size: 0.95rem; color: var(--gc9e-accent); margin: 12px 0 6px; }
.gc9e-help-content p { font-size: 0.85rem; color: var(--gc9e-text-muted); line-height: 1.75; margin-bottom: 8px; }
.gc9e-help-content ol, .gc9e-help-content ul { padding-left: 20px; margin-bottom: 10px; }
.gc9e-help-content li { font-size: 0.85rem; color: var(--gc9e-text-muted); margin-bottom: 5px; line-height: 1.6; }
.gc9e-step {
  background: var(--gc9e-bg-card); border-radius: var(--gc9e-radius);
  padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--gc9e-primary);
}
.gc9e-step-num {
  display: inline-block; width: 24px; height: 24px; background: var(--gc9e-primary);
  color: var(--gc9e-bg); border-radius: 50%; text-align: center; line-height: 24px;
  font-size: 0.75rem; font-weight: 700; margin-right: 8px;
}
.gc9e-faq-item {
  background: var(--gc9e-bg-card); border-radius: var(--gc9e-radius);
  padding: 12px; margin-bottom: 10px; border: 1px solid var(--gc9e-border);
}
.gc9e-faq-q { font-size: 0.9rem; color: var(--gc9e-primary); font-weight: 600; margin-bottom: 6px; }
.gc9e-faq-a { font-size: 0.82rem; color: var(--gc9e-text-muted); line-height: 1.7; }

/* Responsive - hide bottom nav on desktop */
@media (min-width: 769px) {
  .gc9e-bottom-nav { display: none; }
  .gc9e-main { padding-bottom: 20px; }
}
@media (max-width: 768px) {
  .gc9e-main { padding-bottom: calc(var(--gc9e-bottom-nav-h) + 20px); }
}
