.gc-header * {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.gc-header {
    position: relative;
    background: var(--navy, #171B2E);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    transition: box-shadow .25s ease;
}

/* Dipicu oleh scroll-reveal.js: nav jadi sedikit lebih ramping + dapat
   shadow tegas begitu halaman discroll, biar kerasa "aware" & gak flat
   nempel gitu aja di atas konten. */
.gc-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.gc-header.is-scrolled .gc-header-container {
    padding-top: 11px;
    padding-bottom: 11px;
}

.gc-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding .25s ease;
}

/* Logo */
.gc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.gc-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gc-logo-text {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    white-space: nowrap;
}

/* Nav */
.gc-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gc-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #C6CCDA;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.gc-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.gc-nav-link:hover,
.gc-nav-link.is-active {
    color: var(--gold, #5B4CE0);
    font-weight: 600;
}

.gc-caret {
    color: #8290A8;
    transition: transform 0.2s ease;
}

.gc-has-dropdown {
    position: relative;
}

.gc-has-dropdown:hover .gc-caret,
.gc-has-dropdown.is-open .gc-caret {
    transform: rotate(180deg);
}

.gc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--navy, #171B2E);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(9, 15, 28, 0.4);
    list-style: none;
    margin: 12px 0 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.gc-has-dropdown:hover .gc-dropdown,
.gc-has-dropdown.is-open .gc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gc-dropdown li a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #C6CCDA;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.gc-dropdown li a:hover,
.gc-dropdown li a.is-active {
    background: color-mix(in srgb, var(--gold, #5B4CE0) 16%, transparent);
    color: var(--gold, #5B4CE0);
}

.gc-has-dropdown.is-active .gc-caret {
    color: var(--gold, #5B4CE0);
}

/* Actions */
.gc-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gc-login-link {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.gc-register-btn {
    background: var(--gold, #5B4CE0);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: 0.25s;
}

.gc-register-btn:hover {
    background: #fff;
    color: var(--navy, #171B2E);
    transform: translateY(-1px);
}

.gc-dashboard-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gc-dashboard-icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

/* Logout */
.gc-logout-form {
    margin: 0;
}

.gc-logout-btn {
    background: var(--gold, #5B4CE0);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    padding: 12px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: 0.25s;
}

.gc-logout-btn:hover {
    background: #fff;
    color: var(--navy, #171B2E);
    transform: translateY(-1px);
}

/* ============ NOTIFIKASI PUBLIK (BARU) ============ */
.gc-notif-wrap { position: relative; }

.gc-notif-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gc-notif-bell:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.18); }

.gc-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #d63384;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-height: 380px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(25, 44, 77, 0.18);
    overflow: hidden;
    z-index: 200;
}

.gc-notif-panel.show { display: flex; flex-direction: column; }

.gc-notif-panel-header {
    padding: 14px 18px;
    font-weight: 700;
    color: var(--navy, #171B2E);
    border-bottom: 1px solid #eef1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* BARU: tombol "Lihat Semua" -- menandai semua notifikasi sekaligus jadi
   terbaca supaya badge langsung hilang tanpa klik satu-satu. Disembunyikan
   lewat JS (notifikasi-publik.js) kalau pengunjung belum login. */
.gc-notif-baca-semua-btn {
    background: transparent;
    border: 1.5px solid var(--gold, #5B4CE0);
    color: var(--navy, #171B2E);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.gc-notif-baca-semua-btn:hover {
    background: var(--gold, #5B4CE0);
    color: #fff;
}

.gc-notif-panel-list { overflow-y: auto; }

.gc-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f3f7;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.gc-notif-item:hover { background-color: #F4F6FA; }
.gc-notif-item.unread { background-color: #FFFBEE; }

/* Ikon avatar bulat di kiri tiap card, seperti avatar kontak WhatsApp. */
.gc-notif-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy, #171B2E);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-notif-item-body { flex: 1; min-width: 0; }

.gc-notif-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.gc-notif-item-top b { color: var(--navy, #171B2E); font-size: 13.5px; }
.gc-notif-item-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.gc-notif-item p {
    color: #4a5568;
    font-size: 12.5px;
    margin: 0;
    /* FIX: sebelumnya overflow:hidden + white-space:nowrap + ellipsis,
       jadi notif yang isinya panjang (mis. "Username: ... | Password
       sementara: ...") kepotong "..." dan gak kebaca penuh -- padahal
       klik notifnya sendiri gak nge-expand teks, cuma redirect halaman.
       Sekarang teks dibiarkan wrap ke baris berikutnya; panel listnya
       (.gc-notif-panel-list) sudah overflow-y:auto jadi otomatis bisa
       di-scroll kalau notifnya panjang. */
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
.gc-notif-time { color: #9aa4b2; font-size: 11px; flex-shrink: 0; }

/* Badge jumlah pesan belum dibaca dalam satu percakapan, ala WhatsApp. */
.gc-notif-count {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-notif-empty { padding: 30px 18px; text-align: center; color: #9aa4b2; font-size: 13px; }

/* BARU: kartu konfirmasi "Pesan berhasil terkirim" -- muncul di atas daftar
   notif begitu panel otomatis terbuka setelah submit form Kontak. */
.gc-notif-success-banner {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 14px 0;
    padding: 12px 14px;
    background: #eafaf1;
    border: 1px solid #b7ebc8;
    border-radius: 10px;
    color: #1b7a3d;
    font-size: 12.5px;
    line-height: 1.45;
}
.gc-notif-success-banner svg { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 480px) {
    .gc-notif-panel { width: 280px; right: -60px; }
}

/* ============ HAMBURGER (mobile/tablet) ============ */
.gc-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.gc-nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gc-nav-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.gc-nav-burger.is-open span:nth-child(2) {
    opacity: 0;
}
.gc-nav-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive: nav sekarang jadi panel dropdown penuh yang bisa dibuka
   lewat hamburger (sebelumnya cuma "display:none" tanpa cara buka lagi
   di layar sentuh -- itu bug, bukan fitur). */
@media (max-width: 992px) {
    .gc-nav-burger {
        display: flex;
    }

    .gc-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy, #171B2E);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 32px rgba(9, 15, 28, 0.35);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .gc-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .gc-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
    }

    .gc-nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .gc-nav-list > li:last-child {
        border-bottom: none;
    }

    .gc-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
    }

    .gc-has-dropdown .gc-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        border: none;
        margin: 0 0 0 12px;
        padding: 0;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .gc-has-dropdown.is-open .gc-dropdown {
        max-height: 400px;
        padding: 6px 0 10px;
    }
}