:root {
    --primary-navy: #0f172a;
    --dark-navy: #1e2937;
    --primary-tosca: #14B8A6;
    --text-gray: #64748B;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-navy);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Header & Floating Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-tosca);
    text-decoration: none;
}

.logo svg {
    width: 36px;
    height: 36px;
    fill: var(--primary-tosca);
}

.floating-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 6px 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.15);
}

.floating-menu .nav-link {
    font-weight: 500;
    color: var(--primary-navy);
    font-size: 0.85rem;
    position: relative;
}

.floating-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-navy);
    transition: width 0.3s ease;
}

.floating-menu .nav-link:hover::after {
    width: 100%;
}

/* ==========================================
   WHATSAPP FLOATING BUTTON & POPUP
   ========================================== */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.wa-float:hover,
.wa-float:focus {
    transform: scale(1.1);
    color: white;
    outline: none;
}

.wa-float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    font-family: 'Inter', sans-serif;
}

.wa-popup {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 440px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.wa-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wa-popup-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.wa-popup-header h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    font-family: 'Poppins', sans-serif;
}

.wa-popup-header small {
    opacity: 0.9;
    font-size: 0.75rem;
}

.wa-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.wa-popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.wa-popup-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.wa-popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.wa-popup-item:hover {
    background: #f1f5f9;
}

.wa-popup-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.wa-popup-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dcfce7;
    color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.wa-popup-label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.3;
    /* Izinkan label panjang terbungkus ke beberapa baris */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wa-popup-number {
    font-size: 0.8rem;
    color: #64748b;
}

.wa-popup-btn {
    background: #25D366;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-popup-btn:hover {
    background: #1da851;
    color: white;
    transform: scale(1.05);
}

.wa-popup-empty {
    text-align: center;
    padding: 24px 16px;
    color: #64748b;
    font-size: 0.875rem;
}

/* Tablet responsive */
@media (max-width: 991.98px) {
    .wa-popup {
        width: 380px;
    }
}

/* Mobile responsive */
@media (max-width: 575.98px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.75rem;
    }

    .wa-popup {
        bottom: 85px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
        transform-origin: bottom center;
    }

    .wa-popup.show {
        transform: translateY(0) scale(1);
    }

    .wa-popup-item {
        padding: 10px;
    }

    .wa-popup-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
    }
}