/* =========================================
   MEGA888 MALAYSIA - DARK THEME CSS
   ========================================= */

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #FFD700;
    --secondary: #667eea;
    --dark: #0a0a0a;
    --dark-light: #1a1a2e;
    --dark-card: #16213e;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --success: #28a745;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(102, 126, 234, 0.3);
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text); background: var(--dark); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header { background: var(--gradient-dark); color: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); border-bottom: 2px solid var(--primary); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-width: 200px; height: auto; }
.mobile-menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px 0; transition: 0.3s; border-radius: 3px; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
.nav-menu { display: flex; gap: 25px; }
.nav-menu a { color: var(--white); font-weight: 500; font-size: 1rem; position: relative; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-menu a:hover::after { width: 100%; }

/* HERO SECTION */
.hero { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; background: var(--gradient-primary); }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; z-index: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; color: var(--white); }
.hero h1 { font-size: 3rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); line-height: 1.2; font-weight: 700; }
.hero-subtitle { font-size: 1.3rem; margin: 20px 0 30px; opacity: 0.95; }
.hero-cta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.trust-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.trust-badges img { height: 60px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }

/* BUTTONS */
.btn { display: inline-block; padding: 15px 40px; border-radius: 50px; font-weight: 700; text-align: center; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--dark); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--dark); }
.btn-download { background: var(--secondary); color: var(--white); padding: 12px 30px; border-radius: 25px; font-weight: 600; margin-top: 15px; display: inline-block; }
.btn-download:hover { background: #5a6fd6; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-sticky { background: var(--primary); color: var(--dark); padding: 15px 30px; border-radius: 50px; font-weight: 700; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-dark { background: var(--dark-light); }
.section-light { background: var(--dark-card); }
.section-title { font-size: 2.5rem; margin-bottom: 20px; text-align: center; color: var(--white); font-weight: 700; }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 50px; font-size: 1.1rem; color: var(--text-muted); }

/* CARDS & GRIDS */
.card, .feature-card, .game-card, .step-card { background: var(--dark-card); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255, 215, 0, 0.1); }
.card:hover, .feature-card:hover, .game-card:hover, .step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card img, .feature-card img { width: 100%; max-width: 150px; height: auto; margin: 0 auto 20px; display: block; }
.feature-card img { max-width: 80px; }
.game-card { overflow: hidden; padding: 0; }
.game-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px 10px 0 0; }
.game-info { padding: 20px; }
.game-info h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }
.download-grid, .features-grid, .games-grid, .steps-grid, .links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* LISTS & BADGES */
.features-list { list-style: none; padding: 0; margin: 15px 0; }
.features-list li { padding: 8px 0; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.features-list li:last-child { border-bottom: none; }
.rtp { display: inline-block; background: var(--success); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.85em; font-weight: 600; }

/* STEPS */
.step-card { text-align: center; position: relative; }
.step-number { width: 50px; height: 50px; background: var(--primary); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5em; font-weight: 700; margin: 0 auto 20px; }

/* TESTIMONIALS & FAQ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--dark-card); padding: 25px; border-radius: 15px; box-shadow: var(--shadow); border: 1px solid rgba(255, 215, 0, 0.1); }
.stars { color: var(--primary); font-size: 1.5em; margin-bottom: 15px; }
.testimonial-card blockquote { color: var(--text-muted); font-style: italic; margin-bottom: 15px; line-height: 1.6; }
.reviewer { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--dark-card); padding: 25px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid var(--primary); }
.faq-item h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; }
.faq-item p { color: var(--text-muted); line-height: 1.6; }

/* CONTENT BODY */
.content-body { background: var(--dark-card); padding: 40px; border-radius: 15px; box-shadow: var(--shadow); border: 1px solid rgba(255, 215, 0, 0.1); }
.content-body h2 { color: var(--primary); margin-bottom: 20px; }
.content-body h3 { color: var(--white); margin: 30px 0 15px; font-size: 1.3rem; }
.content-body p, .content-body ul, .content-body ol { margin-bottom: 20px; color: var(--text-muted); line-height: 1.7; }
.content-body ul, .content-body ol { padding-left: 30px; }
.content-body a { color: var(--primary); font-weight: 600; }
/* Tambah selepas .content-body a */
.content-body a[class*="btn"] {
    color: var(--dark);
}

.content-body a[class*="btn-secondary"] {
    color: var(--primary);
}

/* LINKS GRID */
.link-category { background: var(--dark-card); padding: 25px; border-radius: 15px; border: 1px solid rgba(255, 215, 0, 0.1); }
.link-category h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; }
.link-category ul { list-style: none; padding: 0; }
.link-category li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.link-category li:last-child { border-bottom: none; }
.link-category a { color: var(--text-muted); }
.link-category a:hover { color: var(--primary); padding-left: 5px; }

/* FOOTER */
.footer { background: var(--dark); color: var(--text); padding: 60px 0 20px; border-top: 2px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { padding: 8px 0; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: var(--text-muted); font-size: 0.9em; margin: 5px 0; }
.disclaimer { font-size: 0.85em; color: #777; }

/* STICKY CTA & UTILITIES */
.sticky-cta { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark-light); flex-direction: column; padding: 20px; gap: 15px; box-shadow: var(--shadow); border-top: 2px solid var(--primary); }
    .nav-menu.active { display: flex; }
    .nav-menu a { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
    .hero { min-height: 500px; padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    .download-grid, .features-grid, .games-grid, .steps-grid, .links-grid, .testimonials-grid, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .sticky-cta { bottom: 0; right: 0; left: 0; }
    .sticky-cta .btn { width: 100%; border-radius: 0; max-width: 100%; }
    .content-body { padding: 25px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .card, .feature-card, .step-card { padding: 20px; }
}