/**
 * 747casino Layout Styles
 * All classes use v498- prefix for namespace isolation
 * Color palette: #8FBC8F | #2E8B57 | #141414 | #20B2AA | #7FFF00
 */

/* CSS Variables */
:root {
  --v498-primary: #2E8B57;
  --v498-secondary: #20B2AA;
  --v498-accent: #7FFF00;
  --v498-dark: #141414;
  --v498-sage: #8FBC8F;
  --v498-bg: #0a1a0a;
  --v498-card-bg: #0f250f;
  --v498-card-border: #1a3a1a;
  --v498-text: #e0f0e0;
  --v498-text-muted: #8aaa8a;
  --v498-highlight: #7FFF00;
  --v498-radius: 12px;
  --v498-radius-sm: 8px;
  --v498-header-h: 56px;
  --v498-bottom-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v498-bg);
  color: var(--v498-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.v498-container { max-width: 430px; margin: 0 auto; padding: 0 12px; width: 100%; }
.v498-wrapper { width: 100%; overflow: hidden; }

/* Header */
.v498-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0d1f0d 0%, #142814 100%);
  border-bottom: 1px solid var(--v498-primary);
  height: var(--v498-header-h);
}
.v498-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 430px; margin: 0 auto; padding: 0 12px; height: 100%;
}
.v498-logo-area { display: flex; align-items: center; gap: 8px; }
.v498-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v498-logo-text { color: var(--v498-highlight); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; }
.v498-header-btns { display: flex; gap: 8px; align-items: center; }
.v498-btn-register {
  background: linear-gradient(135deg, var(--v498-accent), #5cd600);
  color: var(--v498-dark); font-weight: 700; font-size: 1.2rem;
  padding: 6px 14px; border-radius: 20px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v498-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(127,255,0,0.4); }
.v498-btn-login {
  background: transparent; color: var(--v498-secondary);
  font-weight: 600; font-size: 1.2rem; padding: 6px 12px;
  border-radius: 20px; border: 1px solid var(--v498-secondary); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.v498-btn-login:hover { background: var(--v498-secondary); color: #fff; }
.v498-menu-toggle {
  background: none; border: none; color: var(--v498-sage);
  font-size: 2rem; cursor: pointer; padding: 4px; line-height: 1;
}

/* Mobile Menu */
.v498-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: linear-gradient(180deg, #0d1f0d, #0a1a0a);
  z-index: 9999; transition: right 0.3s ease;
  padding: 60px 20px 20px; overflow-y: auto;
}
.v498-menu-active { right: 0 !important; }
.v498-menu-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--v498-text);
  font-size: 2.4rem; cursor: pointer;
}
.v498-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; color: var(--v498-text); text-decoration: none;
  font-size: 1.4rem; border-bottom: 1px solid var(--v498-card-border);
  transition: color 0.2s, padding-left 0.2s;
}
.v498-mobile-menu a:hover { color: var(--v498-highlight); padding-left: 14px; }
.v498-mobile-menu a i, .v498-mobile-menu a span.material-symbols-outlined { font-size: 2rem; width: 24px; text-align: center; }

/* Menu Overlay */
.v498-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.v498-overlay-active { opacity: 1; pointer-events: auto; }

/* Main Content */
.v498-main { padding-top: calc(var(--v498-header-h) + 4px); min-height: 100vh; }
@media (max-width: 768px) { .v498-main { padding-bottom: calc(var(--v498-bottom-h) + 20px); } }

/* Carousel */
.v498-carousel { position: relative; overflow: hidden; border-radius: var(--v498-radius); margin: 8px 0; }
.v498-carousel-slide {
  display: none; width: 100%; cursor: pointer;
  border-radius: var(--v498-radius);
}
.v498-slide-active { display: block; }
.v498-carousel-slide img { width: 100%; display: block; border-radius: var(--v498-radius); }
.v498-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.v498-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background 0.3s;
}
.v498-dot-active { background: var(--v498-highlight); }

/* Section Titles */
.v498-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v498-highlight);
  margin: 16px 0 10px; padding-left: 4px;
  border-left: 3px solid var(--v498-primary);
  padding-left: 10px;
}
.v498-section-subtitle {
  font-size: 1.4rem; color: var(--v498-text-muted); margin-bottom: 12px;
}

/* Game Grid */
.v498-game-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--v498-secondary);
  margin: 14px 0 8px; padding: 6px 10px;
  background: rgba(46,139,87,0.15); border-radius: var(--v498-radius-sm);
}
.v498-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 4px 0;
}
.v498-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
}
.v498-game-item:hover { transform: translateY(-2px); }
.v498-game-icon {
  width: 72px; height: 72px; border-radius: var(--v498-radius-sm);
  overflow: hidden; margin-bottom: 4px;
  border: 1px solid var(--v498-card-border);
  background: var(--v498-card-bg);
}
.v498-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.v498-game-name {
  font-size: 1rem; color: var(--v498-text-muted); text-align: center;
  line-height: 1.2rem; max-width: 80px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Content Cards */
.v498-card {
  background: var(--v498-card-bg); border: 1px solid var(--v498-card-border);
  border-radius: var(--v498-radius); padding: 14px; margin: 8px 0;
}
.v498-card h2 { font-size: 1.6rem; color: var(--v498-highlight); margin-bottom: 8px; }
.v498-card h3 { font-size: 1.4rem; color: var(--v498-secondary); margin-bottom: 6px; }
.v498-card p { font-size: 1.3rem; color: var(--v498-text); line-height: 1.6; margin-bottom: 8px; }

/* Buttons */
.v498-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 24px; font-size: 1.3rem; font-weight: 600;
  cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s;
}
.v498-btn-primary {
  background: linear-gradient(135deg, var(--v498-primary), var(--v498-secondary));
  color: #fff;
}
.v498-btn-accent {
  background: linear-gradient(135deg, var(--v498-accent), #5cd600);
  color: var(--v498-dark);
}
.v498-btn-outline {
  background: transparent; border: 1px solid var(--v498-secondary);
  color: var(--v498-secondary);
}
.v498-btn:hover { transform: scale(1.03); }
.v498-btn-touch:active { opacity: 0.8; }

/* Promo Link Text */
.v498-promo-link {
  color: var(--v498-highlight); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.v498-promo-link:hover { color: var(--v498-accent); }

/* Footer */
.v498-footer {
  background: linear-gradient(180deg, var(--v498-card-bg), #060e06);
  padding: 20px 12px 16px; margin-top: 20px;
  border-top: 1px solid var(--v498-card-border);
}
.v498-footer-brand { text-align: center; margin-bottom: 14px; }
.v498-footer-brand h3 { font-size: 1.6rem; color: var(--v498-highlight); margin-bottom: 4px; }
.v498-footer-brand p { font-size: 1.2rem; color: var(--v498-text-muted); line-height: 1.5; }
.v498-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin: 12px 0;
}
.v498-footer-links a {
  font-size: 1.1rem; color: var(--v498-secondary); text-decoration: none;
  padding: 4px 8px; border: 1px solid var(--v498-card-border); border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
.v498-footer-links a:hover { background: var(--v498-primary); color: #fff; }
.v498-footer-partners {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0; opacity: 0.6;
}
.v498-footer-partners img { height: 24px; filter: grayscale(1) brightness(2); }
.v498-copyright {
  text-align: center; font-size: 1.1rem; color: var(--v498-text-muted);
  margin-top: 10px;
}

/* Bottom Navigation */
.v498-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0d1f0d, #081208);
  border-top: 1px solid var(--v498-primary);
  height: var(--v498-bottom-h); display: flex; justify-content: space-around;
  align-items: center; padding: 0 4px;
}
.v498-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 50px; border: none; background: none;
  color: var(--v498-text-muted); cursor: pointer; transition: color 0.2s, transform 0.15s;
  padding: 4px;
}
.v498-bottom-nav-item:hover { color: var(--v498-highlight); }
.v498-bottom-nav-item:active { transform: scale(0.92); }
.v498-bottom-nav-item i,
.v498-bottom-nav-item span.material-symbols-outlined,
.v498-bottom-nav-item ion-icon { font-size: 22px; margin-bottom: 2px; }
.v498-bottom-nav-text { font-size: 1rem; }
.v498-bottom-nav-active { color: var(--v498-highlight) !important; }

@media (min-width: 769px) {
  .v498-bottom-nav { display: none; }
  .v498-container { max-width: 430px; }
}

/* Utility */
.v498-text-center { text-align: center; }
.v498-mt-8 { margin-top: 8px; }
.v498-mb-8 { margin-bottom: 8px; }
.v498-mb-16 { margin-bottom: 16px; }
.v498-hidden { display: none; }

/* Highlight badge */
.v498-badge {
  display: inline-block; background: var(--v498-primary);
  color: #fff; font-size: 1rem; padding: 2px 8px;
  border-radius: 10px; font-weight: 600;
}

/* Testimonial card */
.v498-testimonial {
  background: linear-gradient(135deg, rgba(46,139,87,0.1), rgba(32,178,170,0.1));
  border: 1px solid var(--v498-card-border); border-radius: var(--v498-radius);
  padding: 12px; margin: 6px 0;
}
.v498-testimonial-name { color: var(--v498-highlight); font-weight: 600; font-size: 1.2rem; }
.v498-testimonial-text { color: var(--v498-text); font-size: 1.2rem; margin-top: 4px; line-height: 1.5; }

/* Winner badge */
.v498-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--v498-card-bg); border: 1px solid var(--v498-card-border);
  border-radius: var(--v498-radius-sm); padding: 8px 10px; margin: 4px 0;
}
.v498-winner-amount { color: var(--v498-highlight); font-weight: 700; font-size: 1.3rem; }
.v498-winner-game { color: var(--v498-text-muted); font-size: 1.1rem; }

/* Payment grid */
.v498-payment-grid {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0;
}
.v498-payment-item {
  background: var(--v498-card-bg); border: 1px solid var(--v498-card-border);
  border-radius: var(--v498-radius-sm); padding: 8px 14px;
  font-size: 1.2rem; color: var(--v498-text);
}

/* FAQ */
.v498-faq-item { margin: 8px 0; }
.v498-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--v498-secondary);
  margin-bottom: 4px; padding-left: 8px;
  border-left: 2px solid var(--v498-accent);
}
.v498-faq-a {
  font-size: 1.2rem; color: var(--v498-text-muted); line-height: 1.5;
  padding-left: 10px;
}

/* Features list */
.v498-feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 8px 0; padding: 8px;
  background: rgba(46,139,87,0.05); border-radius: var(--v498-radius-sm);
}
.v498-feature-icon { color: var(--v498-highlight); font-size: 1.8rem; flex-shrink: 0; }
.v498-feature-text { font-size: 1.3rem; color: var(--v498-text); line-height: 1.5; }
.v498-feature-title { font-weight: 600; color: var(--v498-secondary); margin-bottom: 2px; }

/* Step list */
.v498-step { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; }
.v498-step-num {
  background: var(--v498-primary); color: #fff; font-weight: 700;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.v498-step-content { font-size: 1.3rem; color: var(--v498-text); line-height: 1.5; }

/* H1 styling */
.v498-page-title {
  font-size: 2rem; font-weight: 800; color: var(--v498-highlight);
  margin: 12px 0 8px; line-height: 1.3;
}
.v498-page-desc { font-size: 1.3rem; color: var(--v498-text-muted); margin-bottom: 12px; line-height: 1.6; }
