/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@700&display=swap');

/* ==========================================
   WARNA & FITUR (EDIT DI SINI DENGAN MUDAH)
   ========================================== */
:root {
    /* 1. Warna Utama & Aksen Ranks */
    --primary: #7c3aed;
    /* Warna utama (Rich Violet Purple) */
    --primary-rgb: 124, 58, 237;
    /* Warna utama format RGB (untuk transparansi) */
    --secondary: #a78bfa;
    /* Warna aksen (Soft Violet) */
    --secondary-rgb: 167, 139, 250;
    /* Warna aksen format RGB (untuk transparansi) */
    --primary-glow: rgba(var(--primary-rgb), 0.4);

    /* 2. Judul SELECT SMP (Hero Section) */
    --select-purple: #c4b5fd;
    /* Warna ungu judul SELECT SMP */
    --select-glow: rgba(196, 181, 253, 0.35);
    /* Efek neon di belakang judul */

    /* 3. Latar Belakang Website (Dark Mode Background) */
    --bg-color: #0d0b14;
    /* Warna dasar background (Ungu hitam gelap premium) */
    --bg-gradient-start: #150f28;
    /* Gradasi bagian tengah/atas (Deep violet nyaman) */
    --bg-gradient-end: #0d0b14;
    /* Gradasi bagian luar/bawah */

    /* 4. Warna Teks (Dark Mode) */
    --text-main: #c9c3de;
    /* Warna teks umum (Ungu kelabu redup) */
    --text-light: #f5f0ff;
    /* Warna teks terang */

    /* 5. Desain Kartu Ranks (Dark Mode) */
    --rank-card-bg-solid: #100c1f;
    /* Warna latar belakang solid kartu rank */

    /* 6. Efek Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-glow: rgba(255, 255, 255, 0.04);

    /* Glass variables for themes */
    --glass-card-bg: #100c1f;
    --glass-card-border: rgba(255, 255, 255, 0.08);
    --glass-card-border-highlight: rgba(255, 255, 255, 0.14);
    --glass-card-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);

    --glass-effect-bg: #0d0b14;
    --glass-effect-border: rgba(255, 255, 255, 0.08);
    --glass-effect-shadow: rgba(0, 0, 0, 0.5);

    /* 7. Warna Ranks Klasik (Lama) */
    --vip-bg: #0e2a2a;
    --vip-border: #1de9b6;
    --warrior-bg: #1a0e2e;
    --warrior-border: #9c27b0;
    --knight-bg: #1f1700;
    --knight-border: #ffa726;
    --guardian-bg: #001f2e;
    --guardian-border: #00e5ff;
    --champion-bg: #1f0505;
    --champion-border: #ef5350;

    /* 8. Sistem Animasi & Transisi */
    --transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Optimize rendering on old devices */
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(1.25rem, 4vw);
    /* Fluid responsive padding to prevent overflow on narrow screens */
}

.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* UI Components */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    will-change: transform;
}

.primary-btn {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.primary-btn:hover {
    background: var(--secondary);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.primary-btn-small {
    background: var(--secondary);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
}

.primary-btn-small:hover {
    background: var(--primary);
    color: white;
}

/* Optimized Performance Cards (No backdrop-filter for potato device smoothness) */
.glass-effect {
    background: var(--glass-effect-bg) !important;
    border-bottom: 1px solid var(--glass-effect-border) !important;
    box-shadow: 0 4px 30px var(--glass-effect-shadow) !important;
}

.glass-card {
    background: var(--glass-card-bg) !important;
    border: 1px solid var(--glass-card-border) !important;
    border-top: 1px solid var(--glass-card-border-highlight) !important;
    border-left: 1px solid var(--glass-card-border-highlight) !important;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-card-shadow), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glowing-border {
    border: 1px solid rgba(102, 252, 241, 0.3);
}

.hover-lift:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 252, 241, 0.5);
}

/* Navbar Base (Floating Pill Style with Transparent Liquid Glass Effect) */
.navbar {
    position: fixed;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 900px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 16px !important;
    /* Added breathing room for mobile */
    z-index: 1000 !important;
    
    /* True Liquid Glass Effect */
    background: rgba(16, 12, 30, 0.65) !important; /* Disesuaikan agar tidak terlalu transparan */
    backdrop-filter: blur(16px) saturate(180%) !important; /* Efek liquid glass utama */
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important; /* Safari support */
    
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 100px !important;
    
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.05) !important; /* Bayangan luar dan dalam untuk efek cairan (liquid) */
    
    transition: var(--transition) !important;
}

.logo-container {
    flex-shrink: 0 !important;
    /* Prevent the logo and brand text from squeezing */
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    transition: var(--transition) !important;
}

.nav-logo {
    background-color: transparent !important;
    /* No white circle background! */
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    /* Make the logo image itself round */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    /* No white circular padding */
    object-fit: cover !important;
    /* Fill the round area perfectly */
    overflow: hidden !important;
    transition: var(--transition) !important;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    letter-spacing: 0.5px !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.nav-wa-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-wa-btn):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* Navbar Desktop Specifics */
@media (min-width: 769px) {
    .navbar {
        padding: 10px 24px !important;
        /* Premium breathing room on desktop so logo doesn't touch borders */
    }

    .logo-container {
        order: 1 !important;
        /* Keep logo container on the left on desktop */
    }

    .nav-links {
        order: 2;
        /* Sits naturally between logo and actions */
        display: flex !important;
        gap: 1.5rem !important;
        /* Slightly increased gap for better readability */
        align-items: center !important;
        margin: 0 auto !important;
        /* Center the links */
        padding: 0 !important;
    }

    .nav-right-actions {
        order: 3 !important;
        /* Force to the right */
    }

    .nav-community-btn {
        background-color: var(--secondary) !important;
        color: var(--bg-color) !important;
        border-radius: 100px !important;
        padding: 10px 24px !important;
        font-weight: 700;
        font-size: 0.9rem;
        transition: background-color 0.2s, color 0.2s, transform 0.2s !important;
        border: none;
        box-shadow: 0 4px 10px rgba(167, 139, 250, 0.2);
        white-space: nowrap;
    }

    .nav-community-btn:hover {
        background-color: var(--primary) !important;
        color: white !important;
        transform: scale(1.02) !important;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--select-purple);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--select-glow);
}

.ip-container {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    /* Generous gap between IP text and copy button */
    padding: 0.6rem 2.2rem 0.6rem 2.2rem;
    /* Perfect balanced padding on left and right */
    border-radius: 100px;
    /* Fully rounded elegant pill */
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.06) !important;
    /* Membuat bentuk pill lebih jelas di dark mode */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    /* Border melingkar penuh di dark mode */
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

#server-ip {
    font-size: 1.1rem;
    font-family: monospace;
    font-weight: 600;
    color: var(--text-light);
}

/* About & Features */
.about-content {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Store & Ranks styles inherited from User Request */
.store-subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: inline-block;
    padding-bottom: 0.5rem;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.rank-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    /* Prevents horizontal overflow on screen widths less than 320px */
    gap: 20px;
    padding: 1rem 0;
}

/* Custom Rank Card Modifier Variables (Standard Minecraft Rank Colors) */
.rank-vip {
    --rank-primary: #2ecc71;
    --rank-primary-rgb: 46, 204, 113;
}

.rank-warrior {
    --rank-primary: #e67e22;
    --rank-primary-rgb: 230, 126, 34;
}

.rank-knight {
    --rank-primary: #3498db;
    --rank-primary-rgb: 52, 152, 219;
}

.rank-guardian {
    --rank-primary: #1abc9c;
    --rank-primary-rgb: 26, 188, 156;
}

.rank-champion {
    --rank-primary: #e74c3c;
    --rank-primary-rgb: 231, 76, 60;
}

.rank-card {
    background: var(--rank-card-bg-solid) !important;
    border: 1.5px solid rgba(var(--rank-primary-rgb), 0.4) !important;
    /* Uniform and full border all around */
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transition: var(--transition);
}

.hover-glow:hover {
    transform: translateY(-5px) !important;
    border-color: var(--rank-primary) !important;
    box-shadow: 0 8px 30px rgba(var(--rank-primary-rgb), 0.35) !important;
}

.rank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rank-name {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rank-primary) !important;
}

.price-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.price-pill.vip-pill {
    background: rgba(var(--rank-primary-rgb), 0.15) !important;
    color: var(--text-light);
    border: 1px solid rgba(var(--rank-primary-rgb), 0.3) !important;
}

.price-pill.takeall-pill {
    background: rgba(var(--rank-primary-rgb), 0.3) !important;
    /* Slightly more visible theme takeall */
    color: var(--text-light);
    border: 1px solid rgba(var(--rank-primary-rgb), 0.5) !important;
    font-weight: 700;
}

.price-pill {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 15px;
    color: var(--rank-primary) !important;
}

.cmd-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.cmd-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cmd-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cmd-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    background: rgba(var(--rank-primary-rgb), 0.18) !important;
    color: var(--text-light);
}

.cmd-desc {
    font-size: 13.5px;
    line-height: 1.5;
    padding-top: 2px;
    color: var(--text-main);
}

.divider {
    height: 1px;
    margin: 15px 0;
    opacity: 0.2;
    background: var(--rank-primary) !important;
}

.inherit-note {
    font-size: 13px;
    font-style: italic;
    margin-top: 5px;
    font-weight: 500;
    color: var(--rank-primary) !important;
}

.buy-btn {
    text-align: center;
    display: block;
    margin-top: 15px;
    font-weight: 800;
    background-color: var(--rank-primary) !important;
    border: 2px solid var(--rank-primary) !important;
    color: #ffffff !important;
}

.buy-btn:hover {
    background-color: transparent !important;
    color: var(--rank-primary) !important;
}

.store-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.store-card {
    text-align: center;
}

.store-card .store-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.price-container {
    margin: 1rem 0;
}

.price-new {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-old {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
    font-size: 0.9rem;
}

.benefit-list {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.benefit-list li {
    margin-bottom: 0.5rem;
}

/* Rules Section */
.rules-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.rules-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rule-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.5rem;
    min-width: 30px;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.faq-subtitle {
    text-align: center;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.faq-item {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--text-main);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Light Mode Overrides for FAQ */
body[data-theme="light"] .faq-item {
    background: #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.15);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.03);
}

body[data-theme="light"] .faq-item:hover {
    border-color: rgba(109, 40, 217, 0.35);
}

body[data-theme="light"] .faq-item.active {
    border-color: rgba(109, 40, 217, 0.4);
}

/* Premium Footer Styling */
.footer-section {
    padding: 5rem 2rem 3rem 2rem !important;
    border-top: 1px solid var(--glass-border) !important;
    margin-top: 5rem;
    background: var(--glass-effect-bg) !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.footer-links-col h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col ul a {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links-col ul a i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.footer-links-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links-col ul a:hover i {
    transform: translateX(3px);
}

.footer-info-item {
    margin-bottom: 12px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    opacity: 0.7;
    margin-bottom: 2px;
}

.info-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.05rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2.5rem;
    text-align: center;
}

.copyright {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.mojang-disclaimer {
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* Light Mode Overrides for Footer */
body[data-theme="light"] .footer-section {
    background: #f5f4f9 !important;
    border-top: 1px solid rgba(109, 40, 217, 0.08) !important;
}

body[data-theme="light"] .footer-container {
    border-bottom: 1px solid rgba(109, 40, 217, 0.08);
}

body[data-theme="light"] .social-icon {
    background: rgba(109, 40, 217, 0.04);
    border: 1px solid rgba(109, 40, 217, 0.1);
    color: #3d3558;
}

body[data-theme="light"] .social-icon:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff !important;
}

body[data-theme="light"] .footer-links-col ul a:hover {
    color: #6d28d9;
}

body[data-theme="light"] .footer-brand h3 {
    color: #6d28d9;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        padding: 4rem 1.5rem 2.5rem 1.5rem !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 1.05rem !important;
    }

    .nav-links {
        display: flex;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column;
        gap: 0 !important;
        /* True Liquid Glass Effect (Requested by User) */
        background: rgba(16, 12, 30, 0.95) !important;
        backdrop-filter: blur(64px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(64px) saturate(200%) !important;
        /* Premium glass border */
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-top: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        border-left: 1.5px solid rgba(255, 255, 255, 0.25) !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        text-align: center;
        /* 100% GPU-Accelerated Hardware Transitions (No scale rasterization lag) */
        opacity: 0;
        transform: translateY(-8px) !important;
        /* Only animate translateY, no scale! */
        pointer-events: none;
        will-change: transform, opacity;
        /* Force GPU layer promotion */
        transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.05) !important;
        /* Tighter shadow, instant fill rate */
        padding: 1.2rem 0 !important;
        border-radius: 24px !important;
        z-index: 999 !important;
    }

    .nav-links.active {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .nav-links li {
        margin: 0.4rem 0 !important;
        width: 100% !important;
    }

    .nav-links a {
        display: block !important;
        padding: 0.4rem !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        width: 100% !important;
    }

    .nav-links a:not(.nav-wa-btn)::after {
        display: none !important;
        /* Hide hover border animation on mobile */
    }

    /* Style WhatsApp button inside mobile dropdown list nicely */
    .nav-links li:last-child {
        margin-top: 0.8rem !important;
        padding: 0 1.5rem !important;
    }

    .nav-wa-btn {
        background-color: #25D366 !important;
        /* WhatsApp Green */
        color: #ffffff !important;
        /* White text */
        border-radius: 100px !important;
        padding: 8px 16px !important;
        font-weight: 700 !important;
        display: inline-block !important;
        width: 100% !important;
        text-align: center !important;
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2) !important;
    }

    .nav-wa-btn:hover {
        background-color: #20ba59 !important;
    }

    .menu-toggle {
        display: flex !important;
        z-index: 1001 !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 5px !important;
        cursor: pointer !important;
        border: 1px solid transparent !important;
        transition: var(--transition) !important;
        margin-right: 8px !important;
        padding: 0 !important;
    }

    .menu-toggle.active {
        background: rgba(255, 255, 255, 0.08) !important;
        /* Extremely lightweight translucent circle */
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: none !important;
        /* Remove heavy shadow */
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .ip-container {
        flex-direction: column;
        border-radius: 12px;
        padding: 1rem;
        gap: 0.5rem;
    }
}

/* Nav Right Actions Flexbox */
.nav-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

@media (min-width: 769px) {
    .nav-right-actions {
        order: 3;
        /* Keep theme toggle on the far right */
        position: static !important;
        transform: none !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* Theme Toggle Button Styles matching photos exactly! */
.theme-btn {
    background: transparent;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    /* Rounded corners matching photos */
    outline: none;
}

.theme-btn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Dark Mode (Default) style for toggle button matching Photo 1 */
[data-theme="dark"] .theme-btn,
body:not([data-theme="light"]) .theme-btn {
    background-color: #121212 !important;
    border: 3.5px solid #282828 !important;
    /* Thick dark gray border */
    color: #ffffff !important;
}

[data-theme="dark"] .theme-btn:hover,
body:not([data-theme="light"]) .theme-btn:hover {
    border-color: #404040 !important;
    transform: scale(1.05);
}

/* Light Mode style for toggle button matching Photo 2 */
body[data-theme="light"] .theme-btn {
    background-color: #ffffff !important;
    border: 3.5px solid #dcdcdc !important;
    /* Thick light gray/silver border */
    color: #000000 !important;
}

body[data-theme="light"] .theme-btn:hover {
    border-color: #b5b5b5 !important;
    transform: scale(1.05);
}

/* Show/hide icons based on theme attribute */
body[data-theme="light"] .icon-sun {
    display: none !important;
}

body[data-theme="light"] .icon-moon {
    display: block !important;
}

body:not([data-theme="light"]) .icon-sun {
    display: block !important;
}

body:not([data-theme="light"]) .icon-moon {
    display: none !important;
}

/* ==========================================
   LIGHT MODE DESIGN SYSTEM
   ========================================== */
body[data-theme="light"] {
    /* Warna Utama Light Mode */
    --primary: #6d28d9;
    --primary-rgb: 109, 40, 217;
    --secondary: #7c3aed;
    --secondary-rgb: 124, 58, 237;

    /* Latar belakang bersih, flat, tanpa gradasi */
    --bg-color: #ffffff;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #ffffff;

    /* Teks kontras tinggi */
    --text-main: #3d3558;
    --text-light: #1a1230;

    /* Kartu ranks */
    --rank-card-bg-solid: #ffffff;

    /* Glass - flat, ringan */
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-glow: rgba(0, 0, 0, 0.02);
    --glass-card-bg: #ffffff;
    --glass-card-border: rgba(109, 40, 217, 0.1);
    --glass-card-border-highlight: rgba(255, 255, 255, 0.9);
    --glass-card-shadow: 0 4px 16px rgba(109, 40, 217, 0.07);
    --glass-effect-bg: #ffffff;
    --glass-effect-border: rgba(0, 0, 0, 0.08);
    --glass-effect-shadow: rgba(0, 0, 0, 0.04);
}

/* Specific Light Mode adjustments */

body[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(109, 40, 217, 0.12) !important;
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.07), inset 0 2px 10px rgba(255, 255, 255, 0.3) !important;
}

body[data-theme="light"] .logo-container {
    background-color: transparent !important;
}

body[data-theme="light"] .logo {
    color: #1a1230 !important;
}

body[data-theme="light"] .nav-wa-btn {
    background-color: #25D366 !important;
    /* Always WhatsApp green */
    color: #ffffff !important;
    border-color: #25D366 !important;
}

body[data-theme="light"] .nav-wa-btn:hover {
    background-color: #20ba59 !important;
    border-color: #20ba59 !important;
}

body[data-theme="light"] .nav-links a {
    color: #3d3558 !important;
}

body[data-theme="light"] .nav-links a:hover {
    color: #6d28d9 !important;
}

@media (max-width: 768px) {
    body[data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(64px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(64px) saturate(200%) !important;
        border: 1.5px solid rgba(109, 40, 217, 0.1) !important;
        box-shadow: 0 8px 20px rgba(109, 40, 217, 0.07), inset 0 2px 10px rgba(255, 255, 255, 0.3) !important;
    }
}

body[data-theme="light"] .ip-container {
    border: 1px solid rgba(109, 40, 217, 0.15) !important;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.06) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

body[data-theme="light"] #server-ip {
    color: #1a1230 !important;
}

body[data-theme="light"] .hero-subtitle {
    color: #6d5c90;
}

body[data-theme="light"] .section-title {
    color: #1a1230;
}

body[data-theme="light"] .section-title::after {
    background: #6d28d9;
}

body[data-theme="light"] .bar {
    background-color: #1a1230 !important;
}

body[data-theme="light"] .rule-number {
    color: #6d28d9;
}

body[data-theme="light"] .rules-list li {
    color: #3d3558;
    border-bottom-color: rgba(109, 40, 217, 0.1);
}

body[data-theme="light"] footer {
    background: #f5f4f9;
    border-top-color: rgba(109, 40, 217, 0.1);
    color: #3d3558;
}

body[data-theme="light"] .social-icon {
    color: #3d3558 !important;
}

body[data-theme="light"] .mojang-disclaimer {
    color: #7c6fa0;
}

/* Minecraft Server Status Live Display styles */
.server-status-wrapper {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.server-status-text {
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.server-status-text.online {
    background: rgba(46, 204, 113, 0.1) !important;
    border: 1.5px solid rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71 !important;
}

.server-status-text.offline {
    background: rgba(239, 83, 80, 0.1) !important;
    border: 1.5px solid rgba(239, 83, 80, 0.3) !important;
    color: #ef5350 !important;
}

body[data-theme="light"] .server-status-text {
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.05);
}

body[data-theme="light"] .server-status-text.online {
    background: rgba(46, 204, 113, 0.08) !important;
    border: 1.5px solid rgba(46, 204, 113, 0.2) !important;
    color: #27ae60 !important;
}

body[data-theme="light"] .server-status-text.offline {
    background: rgba(239, 83, 80, 0.08) !important;
    border: 1.5px solid rgba(239, 83, 80, 0.2) !important;
    color: #c0392b !important;
}

/* ==========================================
   Modal Pembelian Rank
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 20, 0.85);
    /* Ditingkatkan agar tetap gelap tanpa blur */
    /* backdrop-filter: blur(5px); Dihapus karena sangat berat untuk HP spesifikasi rendah */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Hanya animasi opacity/visibility untuk performa maksimal */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    /* Diganti dari transparan ke solid color bawaan tema (terang/gelap) */
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Hanya animasi transform, bebas lag */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Shadow statis yang sangat ringan dirender */
    border: 1px solid var(--glass-card-border);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: var(--select-purple);
    font-size: 1.5rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--secondary);
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-card-border);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.3);
}

body[data-theme="light"] .input-group input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.input-group small {
    color: #a0a0a0;
    font-size: 0.85rem;
}

/* ==========================================
   Scroll Animations
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional delay classes for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
