* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER DENGAN LOGO ========== */
header {
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
}

.header-title {
    text-align: left;
}

.header-title h1 {
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: 700;
}

.header-title .subtitle {
    font-size: 10px;
    opacity: 0.85;
}

/* ========== NAVIGASI DESKTOP ========== */
.desktop-nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    font-size: 14px;
}

.nav-links a:hover {
    color: #4caf50;
}

.nav-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-auth a {
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

.login-link {
    color: #4caf50;
    border: 1px solid #4caf50;
    background: transparent;
    transition: all 0.3s;
}

.login-link:hover {
    background: #4caf50;
    color: white;
}

/* ========== PROFILE DROPDOWN ========== */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: transparent;
    color: #4caf50;
    border: 1px solid #4caf50;
    padding: 5px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-btn:hover {
    background: #4caf50;
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: 38px;
    right: 0;
    background: white;
    min-width: 170px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: #f0f8f0;
    color: #4caf50;
}

.dropdown-menu hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}

.dropdown-icon {
    font-size: 15px;
    width: 20px;
}

.logout-item {
    color: #f44336 !important;
}

/* ========== TOMBOL HAMBURGER MOBILE ========== */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: #4caf50;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 1002;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ========== MOBILE MENU SIDEBAR ========== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, #1a472a, #2d6a4f);
    color: white;
    text-align: center;
    position: relative;
}

.mobile-menu-logo {
    margin-bottom: 8px;
}

.mobile-menu-logo img {
    height: 35px;
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
}

.mobile-menu-header h3 {
    font-size: 15px;
    margin-top: 5px;
}

.mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.mobile-menu-links a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-auth {
    padding: 15px;
    border-top: 1px solid #eee;
}

.mobile-user-info {
    padding: 10px;
    background: #e8f5e9;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.mobile-user-email {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.mobile-menu-auth a {
    display: block;
    padding: 10px;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f5f5f5;
    color: #333;
    font-weight: 500;
}

.mobile-logout {
    color: #f44336 !important;
}

.mobile-login-link {
    background: #4caf50 !important;
    color: white !important;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    padding: 45px 0;
    text-align: center;
}

.hero h2 {
    font-size: 32px;
    color: #1b5e20;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    color: #2e7d32;
    margin-bottom: 30px;
}

/* ========== POPULAR SECTION ========== */
.popular {
    padding: 40px 0;
    background: white;
}

.popular h3 {
    text-align: center;
    font-size: 28px;
    color: #1b5e20;
    margin-bottom: 30px;
    position: relative;
}

.popular h3:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4caf50;
    margin: 10px auto 0;
}

/* ========== CARD GRID ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 20px;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* ========== SUPPORT SECTION ========== */
.support {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b5e20 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.support h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.support p {
    font-size: 16px;
    margin-bottom: 25px;
}

.btn-support {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-support:hover {
    background: #f57c00;
}

/* ========== FOOTER ========== */
footer {
    background: #1a2e24;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
}

footer p {
    margin: 5px 0;
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 999;
    border-top: 1px solid #eee;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    transition: all 0.2s;
    padding: 5px 10px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
}

.bottom-nav-item .nav-icon {
    font-size: 22px;
    margin-bottom: 3px;
}

.bottom-nav-item .nav-label {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: #4caf50;
}

.bottom-nav-profile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.bottom-dropdown {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 150px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.bottom-dropdown.show {
    display: block;
}

.bottom-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.bottom-dropdown a:last-child {
    border-bottom: none;
}

.bottom-dropdown .logout-item {
    color: #f44336;
}

/* ========== FLOATING BUTTON ========== */
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
    animation: pulse 2s infinite;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn .icon {
    font-size: 24px;
    color: white;
}

.floating-tooltip {
    position: fixed;
    bottom: 140px;
    right: 20px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    z-index: 998;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
    pointer-events: none;
}

.floating-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

.floating-tooltip:after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.floating-menu {
    position: fixed;
    bottom: 140px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 999;
    display: none;
    min-width: 160px;
}

.floating-menu.show {
    display: block;
}

.floating-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    cursor: pointer;
}

.floating-menu a:last-child {
    border-bottom: none;
}

.floating-menu a:hover {
    background: #f0f8f0;
}

.floating-menu .menu-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
}

/* ========== ANIMASI ========== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .bottom-nav {
        display: flex !important;
    }
    
    body {
        padding-bottom: 70px !important;
    }
    
    /* HEADER DI MOBILE - TINGGI 1.5x (18px) */
    header {
        padding: 18px 0;  /* 1.5x dari 12px = 18px */
    }
    
    .header-logo {
        gap: 12px;
    }
    
    .logo-img {
        height: 38px;
        padding: 5px 10px;
    }
    
    .header-title h1 {
        font-size: 17px;
    }
    
    .header-title .subtitle {
        font-size: 10px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .popular h3 {
        font-size: 22px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .card h4 {
        font-size: 18px;
    }
    
    .support h3 {
        font-size: 22px;
    }
    
    .support p {
        font-size: 14px;
    }
    
    .floating-btn {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .floating-btn .icon {
        font-size: 20px;
    }
    
    .floating-menu {
        bottom: 135px;
        right: 15px;
        min-width: 145px;
    }
    
    .floating-tooltip {
        bottom: 135px;
        right: 15px;
        font-size: 10px;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
}