/* =========================================
   VANDA GYM CLASSIC - FULL STYLE & RESPONSIVE
   (Versi Mobile Lebih Compact/Kecil)
   ========================================= */

/* --- 1. VARIABEL & RESET --- */
:root {
    --bg-dark: #000000;
    --primary-red: #8E1616;
    --accent-gold: #E8C999;
    --text-light: #F8EEDF;
    --input-bg: #111111;
    --success-green: #28a745;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. HEADER & NAVIGATION (STICKY) --- */
header { 
    background-color: rgba(10, 10, 10, 0.98); 
    padding: 10px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid var(--primary-red); 
    height: 70px; /* Header sedikit lebih ramping */
}

.logo img { height: 50px; width: auto; object-fit: contain; }

nav { display: flex; align-items: center; }

nav a, nav a.nav-link { 
    color: var(--text-light); 
    text-decoration: none; 
    margin-left: 25px; 
    font-weight: 600; 
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

nav a:hover, nav a.nav-link:hover { color: var(--accent-gold); }
nav a.active { color: var(--accent-gold); border-bottom: 2px solid var(--accent-gold); }

/* --- 3. HAMBURGER MENU TOGGLE --- */
.menu-toggle { 
    display: none; 
    cursor: pointer; 
    background: transparent; 
    border: none; 
    padding: 8px;
    z-index: 1001;
}

.menu-toggle .bar { 
    display: block; 
    width: 22px; /* Garis lebih pendek */
    height: 3px; 
    margin: 2px 0; /* Jarak antar garis lebih rapat */
    transition: all 0.3s ease-in-out; 
    background-color: var(--accent-gold); 
    border-radius: 3px;
}

/* --- 4. TOMBOL GLOBAL --- */
.btn-primary { 
    background-color: var(--primary-red); color: var(--text-light); 
    padding: 10px 35px; font-size: 1.2rem; border: none; border-radius: 4px; 
    text-transform: uppercase; font-weight: bold; transition: 0.3s; 
    text-decoration: none; min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-primary:hover { background-color: #a81a1a; box-shadow: 0 0 15px rgba(142, 22, 22, 0.6); }

.btn-daftar, .btn-logout { 
    border: 2px solid var(--accent-gold); padding: 0 20px; border-radius: 4px; 
    color: var(--accent-gold); margin-left: 20px; background: transparent;
    font-weight: bold; font-size: 0.9rem; min-height: 40px; min-width: 44px;
    cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center;
}
.btn-logout { border-color: var(--primary-red); color: var(--primary-red); }
.btn-daftar:hover { background-color: var(--accent-gold); color: var(--bg-dark); }
.btn-logout:hover { background-color: var(--primary-red); color: white; }

/* --- 5. KOMPONEN UMUM (INFO BANNER) --- */
.announcement-banner {
    background-color: #1a1a1a; border-bottom: 1px solid #333; color: var(--text-light);
    padding: 12px 20px; text-align: center; font-size: 1rem; 
    display: flex; justify-content: center; align-items: center; gap: 12px; z-index: 99;
}
.announcement-badge {
    background-color: var(--primary-red); color: white; padding: 4px 10px; 
    border-radius: 4px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(142, 22, 22, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(142, 22, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(142, 22, 22, 0); }
}

/* --- 6. HALAMAN BERANDA (INDEX.PHP) --- */
.hero { 
    height: 85vh; padding: 0 20px; text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=1470&auto=format&fit=crop') center/cover; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
}
.hero h1 { font-size: 4.5rem; margin-bottom: 10px; color: var(--accent-gold); text-transform: uppercase; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 700px; color: #ccc; }

section { padding: 80px 5%; }
.section-title { color: var(--accent-gold); text-align: center; font-size: 2.5rem; text-transform: uppercase; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background-color: var(--primary-red); margin: 10px auto 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background-color: #111; border: 1px solid #333; padding: 40px 30px; border-radius: 8px; text-align: center; transition: 0.3s; border-top: 4px solid var(--primary-red); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); border-color: var(--accent-gold); }
.card h3 { color: var(--accent-gold); font-size: 1.8rem; margin-bottom: 15px; }
.card .price { font-size: 2.5rem; font-weight: bold; color: var(--text-light); margin-bottom: 20px; }
.card .price span { font-size: 1rem; color: #888; font-weight: normal; }
.btn-action { width: 100%; background: transparent; color: var(--accent-gold); border: 1px solid var(--accent-gold); font-size: 1rem; font-weight: bold; border-radius: 4px; min-height: 44px; cursor: pointer; transition: 0.3s; margin-top: auto; }
.btn-action:hover { background: var(--accent-gold); color: var(--bg-dark); }
.btn-action.solid { background: var(--primary-red); color: white; border: none; }
.btn-action.solid:hover { background: #a81a1a; }
.highlight-text { background: rgba(232, 201, 153, 0.1); border: 1px dashed var(--accent-gold); color: var(--accent-gold); font-weight: bold; padding: 12px; border-radius: 4px; font-size: 0.9rem; margin-top: auto; }

.schedule-container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.schedule-box { flex: 1; min-width: 320px; max-width: 500px; background-color: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: 1px solid #222; }
.schedule-header { background-color: var(--primary-red); padding: 20px; text-align: center; font-size: 1.4rem; font-weight: bold; color: white; letter-spacing: 1px;}
.schedule-header.gold { background-color: var(--accent-gold); color: #000; }
.schedule-body { padding: 25px; }
.schedule-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed #333;}
.schedule-day { font-weight: bold; color: var(--text-light); font-size: 1.1rem; }
.schedule-time { color: var(--accent-gold); background: rgba(232, 201, 153, 0.1); padding: 5px 10px; border-radius: 4px; font-weight: 600;}

.benefit-card { background-color: #0a0a0a; border: 1px solid #222; padding: 35px 25px; border-radius: 8px; text-align: center; transition: 0.3s; }
.benefit-card:hover { border-color: var(--primary-red); background-color: #111; }
.benefit-icon { font-size: 2.5rem; margin-bottom: 15px; }
.benefit-card h3 { color: var(--text-light); font-size: 1.3rem; margin-bottom: 10px; }
.benefit-card p { color: #888; font-size: 0.95rem; }

.gallery-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }
.gallery-slider::-webkit-scrollbar { height: 8px; }
.gallery-slider::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 4px; }
.gallery-item { flex: 0 0 80%; max-width: 400px; height: 300px; object-fit: cover; border-radius: 8px; scroll-snap-align: center; }

/* --- 7. CHATBOT SYSTEM --- */
.chatbot-btn { 
    position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-red); color: white; 
    border: none; border-radius: 50%; width: 60px; height: 60px; font-size: 28px; cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.6); z-index: 1000; transition: 0.3s; display: flex; justify-content: center; align-items: center;
}
.chatbot-btn:hover { transform: scale(1.1); }
.chatbot-btn.locked { background-color: #333; color: #666; cursor: not-allowed; }

.chatbot-window { 
    display: none; position: fixed; bottom: 100px; right: 30px; width: 330px; background-color: #1a1a1a; 
    border: 1px solid var(--accent-gold); border-radius: 10px; z-index: 1100; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}
.chat-header { background-color: var(--primary-red); padding: 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center;}
.close-chat { 
    background: transparent; border: none; color: white; cursor: pointer; font-weight: bold; font-size: 1.5rem; 
    min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; margin: -10px;
}
.chat-body { height: 230px; padding: 15px; overflow-y: auto; font-size: 0.85rem; color: var(--text-light); }
.chat-msg { background-color: #333; padding: 10px 15px; border-radius: 15px; border-bottom-left-radius: 0; margin-bottom: 15px; display: inline-block; max-width: 85%; line-height: 1.4; }
.chat-msg.user { background-color: var(--accent-gold); color: #000; border-radius: 15px; border-bottom-right-radius: 0; float: right; }

.chat-footer-menu { background-color: #111; border-top: 1px solid #333; padding: 10px; }
.quick-replies { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
.quick-replies::-webkit-scrollbar { height: 4px; }
.quick-replies::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; }
.btn-qr {
    background-color: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 8px 12px; 
    border-radius: 20px; cursor: pointer; font-size: 0.8rem; white-space: nowrap; flex: 0 0 auto; transition: 0.3s; min-height: 40px;
}
.btn-qr:hover { background-color: var(--accent-gold); color: #000; }

/* =========================================
   8. HALAMAN FORMULIR (LOGIN & DAFTAR)
   ========================================= */

/* Container Utama (Dibuat Lebih Kecil / Ramping) */
.form-container { 
    background-color: #0a0a0a; 
    border: 1px solid #333; 
    border-top: 4px solid var(--primary-red); 
    border-radius: 8px; 
    padding: 25px 20px; /* Padding diperkecil */
    width: 92%; 
    max-width: 380px; /* Lebar default sangat compact (Khusus Login) */
    box-shadow: 0 8px 25px rgba(0,0,0,0.8); 
    position: relative; 
    margin: 8vh auto; /* Form berada pas di tengah */
}

/* Trik CSS: Lebarkan container HANYA JIKA sedang berada di halaman Daftar.php */
.form-container:has(#formPendaftaran) {
    max-width: 550px; 
}

.nav-top { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.btn-back-square { width: 38px; height: 38px; background-color: #1a1a1a; border: 1px solid #333; color: var(--accent-gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: 0.3s; }
.btn-back-square:hover { background-color: var(--primary-red); color: white; border-color: var(--primary-red); }

.form-header { text-align: center; margin-bottom: 20px; }
.form-header h2 { color: var(--accent-gold); text-transform: uppercase; font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 5px;}
.form-header p { color: #888; font-size: 0.85rem; }

.form-group { margin-bottom: 12px; position: relative; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: #ccc; font-weight: 600; font-size: 0.8rem;}
.form-control { width: 100%; padding: 10px 12px; min-height: 40px; background-color: var(--input-bg); border: 1px solid #333; border-radius: 4px; color: white; font-size: 0.9rem; transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--accent-gold); }
.form-control.invalid { border-color: var(--primary-red); }
input[type="date"] { color-scheme: dark; }

.error-msg { color: #ff4d4d; font-size: 0.75rem; margin-top: 5px; display: none; }
#loginErrorBox, #resetErrorBox { background: rgba(142, 22, 22, 0.1); padding: 10px; border-radius: 4px; border: 1px dashed var(--primary-red); color: #ff4d4d; font-size: 0.8rem; margin-bottom: 15px; display: none; text-align: center; }
.success-msg { display: none; background: rgba(40, 167, 69, 0.1); border: 1px dashed var(--success-green); color: var(--success-green); padding: 10px; border-radius: 4px; margin-bottom: 15px; font-size: 0.85rem; text-align: center; line-height: 1.5; }

.btn-submit { width: 100%; background-color: var(--primary-red); color: white; border: none; min-height: 44px; font-size: 0.95rem; font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; margin-top: 10px; transition: 0.3s; }
.btn-submit:hover { background-color: #a81a1a; transform: translateY(-2px); }

.info-box { background: rgba(232, 201, 153, 0.05); border-left: 3px solid var(--accent-gold); padding: 10px 12px; margin-top: 15px; font-size: 0.8rem; color: #aaa; line-height: 1.4; border-radius: 4px; text-align: left; }
.info-box a { color: var(--accent-gold); text-decoration: none; font-weight: bold; }

.login-footer { text-align: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid #222; display: flex; flex-direction: column; gap: 8px; }
.login-footer div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 0.8rem;}
.login-footer a { color: var(--accent-gold); text-decoration: none; font-weight: bold; border: 1px solid var(--accent-gold); padding: 6px 12px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; transition: 0.3s; }
.login-footer a:hover { background: var(--accent-gold); color: #000; }

.icon-lock { font-size: 2.5rem; margin-bottom: 10px; text-align: center; }
.text-link { color: #888; font-size: 0.8rem; text-decoration: none; transition: 0.3s; cursor: pointer; }
.text-link:hover { color: var(--accent-gold); }

/* ====== KOMPONEN KHUSUS DAFTAR.PHP ====== */
.section-divider { border-bottom: 1px solid #222; margin: 20px 0 12px; padding-bottom: 6px; color: var(--accent-gold); font-weight: bold; text-transform: uppercase; font-size: 0.85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.nominal-box { background: rgba(232, 201, 153, 0.05); border: 1px dashed var(--accent-gold); padding: 12px; border-radius: 6px; margin: 12px 0; text-align: center; display: none; flex-direction: column; align-items: center; }
.nominal-box span:first-child { color: #ccc; font-size: 0.8rem; margin-bottom: 3px;}
.nominal-box span:last-child { color: var(--accent-gold); font-weight: bold; font-size: 1.2rem; }

.payment-methods { display: flex; gap: 10px; margin-bottom: 15px; }
.pay-method { flex: 1; border: 1px solid #333; border-radius: 6px; padding: 12px 8px; text-align: center; cursor: pointer; transition: 0.3s; background: #151515; position: relative; }
.pay-method input { position: absolute; opacity: 0; cursor: pointer; }
.pay-method span { font-weight: bold; color: #888; display: block; font-size: 0.85rem;}
.pay-method.active { border-color: var(--accent-gold); background: rgba(232, 201, 153, 0.1); }
.pay-method.active span { color: var(--accent-gold); }

.pay-details { background: #111; border: 1px solid #222; padding: 15px; border-radius: 6px; margin-bottom: 15px; display: none; }
.qris-box { text-align: center; }
.qris-box img { max-width: 130px; border-radius: 8px; margin: 10px 0; border: 2px solid white; background: #fff;}

.file-upload-wrapper { position: relative; margin-top: 12px; text-align: left; }
.file-upload-wrapper input[type="file"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.btn-upload { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1a1a1a; border: 1px dashed var(--accent-gold); color: var(--accent-gold); padding: 10px; border-radius: 4px; width: 100%; font-size: 0.85rem; transition: 0.3s; }
.file-upload-wrapper:hover .btn-upload { background: #222; }

/* Modal Draf Pendaftaran */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; overflow-y: auto; }
.modal-box { background: #111; border: 1px solid var(--accent-gold); padding: 20px; border-radius: 8px; width: 100%; max-width: 400px; }
.draf-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #222; font-size: 0.85rem;}

/* --- 9. HALAMAN DASBOR MEMBER (MEMBER_DASBOR.PHP) --- */
.dashboard-container { padding: 40px 5%; max-width: 1200px; margin: 0 auto; }
.alert-box { background-color: rgba(232, 201, 153, 0.1); border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}
.alert-box.danger { background-color: rgba(142, 22, 22, 0.15); border-color: var(--primary-red); color: #ff4d4d; }
.alert-box.info { background-color: rgba(0, 123, 255, 0.1); border-color: #66b2ff; color: #66b2ff; }
.dash-card { background-color: #0a0a0a; border: 1px solid #222; border-radius: 8px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); position: relative; margin-bottom: 30px; overflow: hidden; }
.dash-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent-gold); }
.dash-card.card-danger::before { background: var(--primary-red); }
.profile-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; flex-wrap: wrap; gap: 15px;}
.user-info h2 { color: var(--text-light); font-size: 2rem; text-transform: uppercase; margin-bottom: 5px;}
.user-info p { color: #888; font-size: 1rem; }
.status-badge { background: var(--success-green); color: white; padding: 6px 20px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; }
.status-badge.danger { background: var(--primary-red); }
.membership-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; border-top: 1px dashed #333; padding-top: 25px; }
.detail-item span { display: block; color: #888; font-size: 0.85rem; margin-bottom: 5px;}
.detail-item strong { display: block; color: var(--accent-gold); font-size: 1.3rem; }
.detail-item strong.danger-text { color: #ff4d4d; }

.setting-methods { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.set-method { flex: 1; border: 1px solid #333; border-radius: 6px; padding: 12px 10px; text-align: center; cursor: pointer; transition: 0.3s; background: #151515; position: relative; min-width: 140px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.set-method input { position: absolute; opacity: 0; cursor: pointer; }
.set-method span { font-weight: bold; color: #888; display: flex; align-items: center; gap: 8px; font-size: 0.85rem;}
.set-method.active { border-color: var(--accent-gold); background: rgba(232, 201, 153, 0.1); }
.set-method.active span { color: var(--accent-gold); }
.btn-outline-gold { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 10px 20px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; transition: 0.3s; cursor: pointer; }
.btn-outline-gold:hover:not(:disabled) { background: var(--accent-gold); color: #000; }
.btn-simulasi-notif { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px dashed #555; color: #aaa; padding: 10px 20px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; transition: 0.3s; cursor: pointer; margin-left: 10px; }

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px;}
.action-btn { background: #111; border: 1px solid #333; border-radius: 8px; padding: 25px; text-align: center; color: var(--text-light); text-decoration: none; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.action-btn:hover { border-color: var(--accent-gold); transform: translateY(-5px); background: #1a1a1a;}
.action-btn.locked { opacity: 0.5; cursor: not-allowed; pointer-events: none;}
.action-icon { margin-bottom: 15px; color: var(--accent-gold); }
.action-btn.danger-border .action-icon { color: var(--primary-red); }

/* --- 10. POPUPS & FLOATING WHATSAPP --- */
.popup-simulasi { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; }
.popup-box { background: #111; border: 2px solid var(--accent-gold); padding: 30px; border-radius: 8px; max-width: 400px; text-align: center; }
.popup-icon { display: flex; justify-content: center; color: var(--accent-gold); margin-bottom: 15px; font-size: 2rem;}

.wa-btn { position: fixed; bottom: 30px; left: 30px; background-color: #25D366; color: white; border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.6); z-index: 1000; transition: 0.3s; text-decoration: none; border: 2px solid transparent;}
.wa-btn:hover { transform: scale(1.1); border-color: white;}

/* --- 11. FOOTER --- */
footer { background-color: #050505; padding: 60px 5% 30px; border-top: 1px solid #1a1a1a; text-align: left; }
.footer-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; }
.footer-info h3 { color: var(--accent-gold); font-size: 1.8rem; margin-bottom: 15px; }
.footer-info p { color: #aaa; margin: 10px 0; font-size: 1rem; }
.footer-info a { color:#aaa; transition: 0.3s;}
.footer-map iframe { width: 100%; height: 220px; border-radius: 8px; border: 1px solid #333; background-color: #111; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #111; font-size: 0.85rem; color: #555; }
.clearfix::after { content: ""; clear: both; display: table; }

/* =========================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Untuk Layar Tablet ke bawah (< 992px) */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-info p { justify-content: center; font-size: 12px !important}
}

/* Untuk Layar HP Biasa (< 768px) */
@media (max-width: 768px) {
    header { padding: 10px 20px; }
    
    .menu-toggle { display: block; }

    /* Animasi Toggle ke X */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Navigasi Dropdown Lebih Compact */
    nav { 
        position: absolute; 
        top: 70px; /* Sesuai tinggi header */
        left: 0; 
        width: 100%; 
        max-height: 0; 
        background-color: rgba(10, 10, 10, 0.98); 
        flex-direction: column; 
        justify-content: flex-start;
        align-items: center;
        overflow: hidden; 
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
        border-bottom: 0px solid var(--primary-red);
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.8); 
    }

    nav.active { 
        max-height: 380px; /* Jauh lebih pendek */
        padding: 10px 0 20px 0; /* Padding atas bawah dikurangi */
        border-bottom-width: 2px;
    }

    nav a, nav a.nav-link { 
        margin: 0;
        padding: 10px 20px; /* Padding menu dikurangi biar rapat */
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #1a1a1a;
        font-size: 0.9rem; /* Font agak kecil */
        letter-spacing: 0.5px;
    }
    nav a:last-of-type { border-bottom: none; }

    .btn-daftar, .btn-logout { 
        width: 70%; /* Tombol tidak terlalu lebar */
        font-size: 0.9rem;
        border-width: 1.5px;
        min-height: 38px; /* Tombol lebih ramping */
    }
    
    .hero { height: auto; padding: 80px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    
    section { padding: 40px 5%; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    
    .schedule-container { flex-direction: column; }
    .schedule-box { min-width: 100%; }
    
    .announcement-banner { flex-direction: column; gap: 8px; padding: 12px; }
    
    .chatbot-window { width: 90%; right: 5%; left: 5%; bottom: 100px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .membership-details { grid-template-columns: 1fr; text-align: center; }
    .alert-box { flex-direction: column; text-align: center; gap: 15px; }
    .alert-box a { width: 100%; text-align: center; }
    .btn-simulasi-notif { margin-left: 0; margin-top: 10px; width: 100%; } 
    .btn-outline-gold { width: 100%; }

    .calc-container {
        padding: 20px 15px; 
        margin: 20px auto;
        width: 95%;
    }
    
    /* Kolom ditumpuk ke bawah */
    .grid-2 { grid-template-columns: 1fr; gap: 10px; }
    .macro-grid { grid-template-columns: 1fr; gap: 10px; }
    
    /* Pengecilan Teks Header */
    .calc-container .form-header { margin-bottom: 15px; }
    .calc-container .form-header h2 { font-size: 1.25rem; }
    .calc-container .form-header p { font-size: 0.8rem; }
    
    /* Pengecilan Input Form */
    .calc-container .form-group { margin-bottom: 10px; }
    .calc-container .form-group label { font-size: 0.8rem; margin-bottom: 5px; }
    .calc-container .form-control { padding: 8px 12px; min-height: 38px; font-size: 0.85rem; }
    
    /* Pengecilan Tombol Hitung */
    .calc-container .btn-submit { min-height: 40px; font-size: 0.9rem; margin-top: 10px; padding: 10px; }
    
    /* Pengecilan Hasil Kalkulasi */
    .result-box { padding: 15px; margin-top: 15px; }
    .result-title { font-size: 0.9rem; }
    .result-value { font-size: 1.8rem; }
    .result-value span { font-size: 0.9rem !important; }
    .result-desc { font-size: 0.75rem; margin-bottom: 15px; line-height: 1.4;}
    
    .macro-item { padding: 12px; }
    .macro-label { font-size: 0.8rem; margin-bottom: 3px; }
    .macro-number { font-size: 1.15rem; }
    .macro-note { font-size: 0.7rem; line-height: 1.3;}
}

/* =========================================
   8. HALAMAN FORMULIR (LOGIN & DAFTAR)
   ========================================= */

/* Container Utama (Dibuat Lebih Kecil / Ramping) */
.form-container { 
    background-color: #0a0a0a; 
    border: 1px solid #333; 
    border-top: 4px solid var(--primary-red); 
    border-radius: 8px; 
    padding: 25px 20px; /* Padding diperkecil */
    width: 92%; 
    max-width: 380px; /* Lebar default sangat compact (Khusus Login) */
    box-shadow: 0 8px 25px rgba(0,0,0,0.8); 
    position: relative; 
    margin: 8vh auto; /* Form berada pas di tengah */
}

/* Trik CSS: Lebarkan container HANYA JIKA sedang berada di halaman Daftar.php */
.form-container:has(#formPendaftaran) {
    max-width: 550px; 
}

.nav-top { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.btn-back-square { width: 38px; height: 38px; background-color: #1a1a1a; border: 1px solid #333; color: var(--accent-gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: 0.3s; }
.btn-back-square:hover { background-color: var(--primary-red); color: white; border-color: var(--primary-red); }

.form-header { text-align: center; margin-bottom: 20px; }
.form-header h2 { color: var(--accent-gold); text-transform: uppercase; font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 5px;}
.form-header p { color: #888; font-size: 0.85rem; }

.form-group { margin-bottom: 12px; position: relative; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: #ccc; font-weight: 600; font-size: 0.8rem;}
.form-control { width: 100%; padding: 10px 12px; min-height: 40px; background-color: var(--input-bg); border: 1px solid #333; border-radius: 4px; color: white; font-size: 0.9rem; transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--accent-gold); }
.form-control.invalid { border-color: var(--primary-red); }
input[type="date"] { color-scheme: dark; }

.error-msg { color: #ff4d4d; font-size: 0.75rem; margin-top: 5px; display: none; }
#loginErrorBox, #resetErrorBox { background: rgba(142, 22, 22, 0.1); padding: 10px; border-radius: 4px; border: 1px dashed var(--primary-red); color: #ff4d4d; font-size: 0.8rem; margin-bottom: 15px; display: none; text-align: center; }
.success-msg { display: none; background: rgba(40, 167, 69, 0.1); border: 1px dashed var(--success-green); color: var(--success-green); padding: 10px; border-radius: 4px; margin-bottom: 15px; font-size: 0.85rem; text-align: center; line-height: 1.5; }

.btn-submit { width: 100%; background-color: var(--primary-red); color: white; border: none; min-height: 44px; font-size: 0.95rem; font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; margin-top: 10px; transition: 0.3s; }
.btn-submit:hover { background-color: #a81a1a; transform: translateY(-2px); }

.info-box { background: rgba(232, 201, 153, 0.05); border-left: 3px solid var(--accent-gold); padding: 10px 12px; margin-top: 15px; font-size: 0.8rem; color: #aaa; line-height: 1.4; border-radius: 4px; text-align: left; }
.info-box a { color: var(--accent-gold); text-decoration: none; font-weight: bold; }

.login-footer { text-align: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid #222; display: flex; flex-direction: column; gap: 8px; }
.login-footer div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 0.8rem;}
.login-footer a { color: var(--accent-gold); text-decoration: none; font-weight: bold; border: 1px solid var(--accent-gold); padding: 6px 12px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; transition: 0.3s; }
.login-footer a:hover { background: var(--accent-gold); color: #000; }

.icon-lock { font-size: 2.5rem; margin-bottom: 10px; text-align: center; }
.text-link { color: #888; font-size: 0.8rem; text-decoration: none; transition: 0.3s; cursor: pointer; }
.text-link:hover { color: var(--accent-gold); }

/* ====== KOMPONEN KHUSUS DAFTAR.PHP ====== */
.section-divider { border-bottom: 1px solid #222; margin: 20px 0 12px; padding-bottom: 6px; color: var(--accent-gold); font-weight: bold; text-transform: uppercase; font-size: 0.85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.nominal-box { background: rgba(232, 201, 153, 0.05); border: 1px dashed var(--accent-gold); padding: 12px; border-radius: 6px; margin: 12px 0; text-align: center; display: none; flex-direction: column; align-items: center; }
.nominal-box span:first-child { color: #ccc; font-size: 0.8rem; margin-bottom: 3px;}
.nominal-box span:last-child { color: var(--accent-gold); font-weight: bold; font-size: 1.2rem; }

.payment-methods { display: flex; gap: 10px; margin-bottom: 15px; }
.pay-method { flex: 1; border: 1px solid #333; border-radius: 6px; padding: 12px 8px; text-align: center; cursor: pointer; transition: 0.3s; background: #151515; position: relative; }
.pay-method input { position: absolute; opacity: 0; cursor: pointer; }
.pay-method span { font-weight: bold; color: #888; display: block; font-size: 0.85rem;}
.pay-method.active { border-color: var(--accent-gold); background: rgba(232, 201, 153, 0.1); }
.pay-method.active span { color: var(--accent-gold); }

.pay-details { background: #111; border: 1px solid #222; padding: 15px; border-radius: 6px; margin-bottom: 15px; display: none; }
.qris-box { text-align: center; }
.qris-box img { max-width: 130px; border-radius: 8px; margin: 10px 0; border: 2px solid white; background: #fff;}

.file-upload-wrapper { position: relative; margin-top: 12px; text-align: left; }
.file-upload-wrapper input[type="file"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.btn-upload { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1a1a1a; border: 1px dashed var(--accent-gold); color: var(--accent-gold); padding: 10px; border-radius: 4px; width: 100%; font-size: 0.85rem; transition: 0.3s; }
.file-upload-wrapper:hover .btn-upload { background: #222; }

/* Modal Draf Pendaftaran */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; overflow-y: auto; }
.modal-box { background: #111; border: 1px solid var(--accent-gold); padding: 20px; border-radius: 8px; width: 100%; max-width: 400px; }
.draf-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #222; font-size: 0.85rem;}


/* ====== RESPONSIVE FORM KHUSUS HP (< 480px) ====== */
@media (max-width: 480px) {
    .form-container { 
        padding: 20px 15px; 
        margin: 20px auto; 
        width: 95%; 
    }
    
    /* Grid Daftar.php diubah menjadi menumpuk ke bawah di HP */
    .grid-2 { grid-template-columns: 1fr; gap: 10px; }
    
    /* Pilihan metode pembayaran juga ditumpuk ke bawah */
    .payment-methods { flex-direction: column; gap: 10px; }
    
    .modal-box { padding: 15px; }

    .calc-container {
        width: 100%;
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 25px 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* =========================================
   13. HALAMAN KALKULATOR GIZI
   ========================================= */
.calc-container {
    background-color: #0a0a0a;
    border: 1px solid #333; 
    border-top: 4px solid var(--primary-red);
    border-radius: 8px; 
    padding: 30px; 
    width: 92%; 
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
    margin: 5vh auto;
}

.calc-container .form-header h2 { color: var(--text-light); text-transform: uppercase; font-size: 1.6rem; margin-bottom: 5px;}
.calc-container .form-header span { color: var(--accent-gold); }
.calc-container .form-header p { color: #888; font-size: 0.9rem; margin-top: 5px; line-height: 1.4; }

/* Box Hasil */
.result-box {
    margin-top: 20px; padding: 20px; border-radius: 8px;
    background: #111; border: 1px dashed var(--accent-gold); 
    display: none; text-align: center; animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.result-title { font-size: 1rem; color: var(--text-light); font-weight: bold; margin-bottom: 5px; }
.result-value { font-size: 2.5rem; font-weight: bold; color: var(--accent-gold); margin-bottom: 5px; line-height: 1;}
.result-desc { font-size: 0.85rem; color: #aaa; margin-bottom: 20px; }

.macro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; text-align: left;}
.macro-item { background: #0a0a0a; padding: 15px; border-radius: 4px; border: 1px solid #222;}
.macro-label { color: var(--accent-gold); font-size: 0.9rem; font-weight: bold; display: block; margin-bottom: 5px; }
.macro-number { color: var(--text-light); font-weight: bold; font-size: 1.4rem; display: block; margin-bottom: 5px;}
.macro-note { font-size: 0.75rem; color: #777; line-height: 1.4; display: block;}