/* --- 1. GOOGLE FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #10b981; 
    --primary-dark: #064e3b;
    --bg-body: #f1f5f9; 
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
}

/* --- 2. RESET & DASAR --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-body) !important; 
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.5;
}

section { padding: 80px 20px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- 3. TOP MARQUEE --- */
.top-marquee { 
    background: var(--primary-dark); 
    color: var(--primary); 
    padding: 12px 0; 
    font-size: 13px; 
    font-weight: 600; 
    text-align: center; 
}

/* --- 4. NAVBAR --- */
.navbar { 
    position: sticky; 
    top: 0; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px); 
    z-index: 1000; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

.nav-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    height: 75px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}

.logo { font-size: 22px; font-weight: 800; color: var(--primary-dark); text-decoration: none; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 5px; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 14px; 
    padding: 10px 18px; 
    border-radius: 10px; 
    transition: 0.3s; 
}
.nav-links a:hover { background: rgba(16, 185, 129, 0.1); color: var(--primary-dark); }

/* --- 5. HERO SECTION --- */
.hero { 
    padding: 100px 20px; 
    text-align: center; 
    background: linear-gradient(135deg, var(--primary-dark), #022c22); 
    color: white !important; 
}

.hero h1 { 
    font-size: clamp(30px, 6vw, 56px); 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    margin-bottom: 20px; 
    color: #ffffff; /* Putih agar kontras */
}

.hero p { 
    max-width: 650px; 
    margin: 0 auto 40px; 
    color: rgba(255,255,255,0.8); 
    font-size: 18px; 
}

/* --- SECTION TITLE --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title div {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 4px;
}

/* Container Utama Modal */
.modal-login {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75); /* Gelap transparan */
    backdrop-filter: blur(8px); /* Efek blur kaca */
    display: none; /* Sembunyi secara default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Munculkan modal saat dipanggil */
.modal-login.show {
    display: flex;
}

/* Kotak Putih Tengah */
.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 45px 35px;
    border-radius: 32px; /* Super rounded modern */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Tombol Close (X) */
.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover { color: #ef4444; }

/* Styling Input */
.input-group-modern {
    margin-bottom: 15px;
}

.input-group-modern input {
    width: 100%;
    height: 56px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    box-sizing: border-box; /* Penting agar input tidak melebar */
    transition: 0.3s;
}

.input-group-modern input:focus {
    outline: none;
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Tombol Submit Premium */
.btn-login-premium {
    width: 100%;
    height: 56px;
    background: #064e3b; /* Hijau Tua */
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-premium:hover {
    background: #10b981; /* Hijau Terang saat Hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* --- 6. GRID & CARDS (FIX GAMBAR MOBIL) --- */
.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.card {
    background: var(--white) !important; 
    border-radius: 24px; 
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s ease; 
    text-align: center;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* FIX GAMBAR: Menggunakan aspect-ratio agar tidak terpotong & tidak gepeng */
.card img { 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Rasio standar foto mobil */
    object-fit: cover; 
    border-radius: 16px; 
    margin-bottom: 20px; 
    display: block;
}

.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--primary-dark); }
.card .price { font-size: 19px; font-weight: 800; color: var(--primary); margin-bottom: 20px; display: block; }

/* --- 7. BUTTONS --- */
.btn-pro {
    background: var(--primary-dark); color: white !important; 
    padding: 14px 28px; border-radius: 12px; font-weight: 700; 
    font-size: 14px; border: none; cursor: pointer; transition: 0.3s; 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-pro:hover { transform: scale(1.05); background: var(--primary); }

/* --- 8. KEUNGGULAN (ICON CIRCLES) --- */
.f-icon-circle { 
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 28px; color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.icon-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.icon-orange { background: linear-gradient(135deg, #ea580c, #fb923c); }
.icon-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.icon-red { background: linear-gradient(135deg, #dc2626, #f87171); }
.icon-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.icon-purple { background: linear-gradient(135deg, #4f46e5, #818cf8); }

/* --- 9. NOTE BOX --- */
.note-box { 
    max-width: 900px; margin: 0 auto; background: var(--white) !important; 
    padding: 40px; border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
}
.note-item { display: flex; gap: 15px; margin-bottom: 20px; text-align: left; }
.note-item i { color: var(--primary); font-size: 20px; margin-top: 4px; }

/* --- 10. GOOGLE BUTTON --- */
.google-btn-container { text-align: center; margin-top: 40px; }
.g-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px;
    background: white; color: var(--text-main); text-decoration: none;
    border-radius: 14px; font-weight: 700; border: 1px solid #e2e8f0; transition: 0.3s;
}
.g-btn i { 
    background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.g-btn:hover { transform: translateY(-3px); border-color: var(--primary); }

/* --- 11. FOOTER --- */
footer { background: var(--primary-dark); color: white; padding: 60px 20px 30px; }
.footer-grid-main { 
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; 
    max-width: 1200px; margin: 0 auto 40px; text-align: left; 
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* --- 12. MODAL --- */
.modal-login { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); 
    display: none; justify-content: center; align-items: center; z-index: 2000; 
}
.modal-content { 
    background: #fff; padding: 40px; border-radius: 24px; width: 90%; max-width: 400px; position: relative; 
}

/* --- 13. RESPONSIVE MOBILE (THE CLEAN FIX) --- */
@media (max-width: 850px) {
    .hamburger { display: block !important; cursor: pointer; font-size: 26px; }
    
    .nav-links {
        position: fixed; right: -100%; top: 0; width: 80%; height: 100vh;
        background: white; flex-direction: column; padding: 100px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.show { right: 0; }
    .nav-links a { width: 100%; font-size: 16px; border-bottom: 1px solid #f1f5f9; border-radius: 0; }

    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 28px !important; }
    .hero p { font-size: 15px; }

    .grid-container { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 20px; }
    .card img { aspect-ratio: 16 / 9; } /* Memastikan gambar mobil di HP tetap lebar & terlihat semua */
    
    .footer-grid-main { grid-template-columns: 1fr; text-align: center; }
    .footer-links a { justify-content: center; }
    
    .btn-pro { width: 100%; }
    .note-box { padding: 30px 20px; }
}

/* --- 14. ADMIN LOGIN PAGE UI --- */

/* Wrapper Utama agar Card di tengah layar */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 20px;
}

/* Card Login */
.login-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    text-align: center;
}

/* Header di dalam Card */
.login-header {
    margin-bottom: 30px;
}

.login-header .logo {
    font-size: 28px;
    margin-bottom: 10px;
    display: inline-block;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

/* Form Styling */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    margin-left: 5px;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Button Login (Full Width) */
.btn-login {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 16px;
}

/* Link Tambahan (Lupa Password / Back to Home) */
.login-footer {
    margin-top: 25px;
    font-size: 13px;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Alert Error (Jika login gagal) */
.alert-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
    display: flex;
    align-items: center;
    gap: 8px;
}