/* ADN GLOBAL – shared site header (mokup-utama.png) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap');

.hx-wrap { max-width: 1568px; margin: 0 auto; padding: 0 48px 0 55px; }
@media (max-width: 1280px) { .hx-wrap { padding: 0 24px; } }
@media (max-width: 1023px) { .hx-wrap { padding: 0 14px; } }

/* top bar */
.hx-topbar { background: #016d50; color: #fff; font-size: 15.5px; font-weight: 500; }
.hx-topbar-in { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-left: 62px; padding-right: 66px; }
.hx-topbar-msg { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.hx-topbar-msg svg { width: 22px; height: 22px; flex-shrink: 0; }
.hx-topbar-checks { display: inline-flex; align-items: center; gap: 20px; font-size: 13.5px; white-space: nowrap; }
.hx-topbar-checks span { display: inline-flex; align-items: center; gap: 6px; }
.hx-topbar-checks svg { width: 15px; height: 15px; }
@media (max-width: 1360px) { .hx-topbar-in { padding-left: 0; padding-right: 0; } .hx-topbar-msg { font-size: 14px; } }
@media (max-width: 1320px) { .hx-topbar-checks { display: none; } .hx-topbar-in { justify-content: center; } }

/* header row */
.hx-header { position: relative; box-shadow: 0 1px 0 #eef1f6, 0 4px 14px rgba(15, 23, 42, .04); }
.hx-row { height: 73px; }
@media (max-width: 1023px) { .hx-row { height: 60px; } }

.hx-logo { display: inline-flex; align-items: center; gap: 6px; margin-right: 58px; text-decoration: none; flex-shrink: 0; }
.hx-logo-mark { width: 52px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.hx-logo-text { font-family: 'Poppins', 'Inter', sans-serif; font-size: 31px; font-weight: 800; letter-spacing: -.035em; color: #0b1324; line-height: 1; white-space: nowrap; }
.hx-logo-text b { font-weight: 800; background: linear-gradient(180deg, #19b34a 0%, #0d9a3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 1400px) { .hx-logo { margin-right: 28px; } }
@media (max-width: 1023px) {
    .hx-logo { margin-right: 0; gap: 4px; }
    .hx-logo-mark { width: 36px; height: 30px; }
    .hx-logo-text { font-size: 20px; }
}

/* nav */
.hx-nav { gap: 6px; }
.hx-nav .nav-item {
    display: inline-flex; align-items: center; gap: 9px; height: 37px; padding: 0 12px;
    font-size: 16px; font-weight: 500; color: #111827; border-radius: 7px; letter-spacing: -.01em;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.hx-nav .nav-item + .nav-item { margin-left: 8px; }
.hx-nav .nav-item svg { width: 20px; height: 20px; margin: 0; color: #1f2937; flex-shrink: 0; transition: color .15s ease; }
.hx-nav .nav-item:hover { color: #0b8a4e; }
.hx-nav .nav-item:hover svg { color: #0b8a4e; }
.hx-nav .nav-item.is-active {
    background: linear-gradient(180deg, #13b14b 0%, #05a23c 100%); color: #fff;
    box-shadow: 0 4px 12px rgba(5, 162, 60, .32); padding: 0 11px;
}
.hx-nav .nav-item.is-active svg { color: #fff; }
@media (max-width: 1400px) { .hx-nav .nav-item + .nav-item { margin-left: 0; } .hx-nav .nav-item { font-size: 14.5px; padding: 0 9px; } }
@media (max-width: 1200px) { .hx-nav .nav-item svg { display: none; } }

/* right actions */
.hx-actions { gap: 0; }
.hx-divider { width: 1px; height: 30px; background: #e2e5ea; margin-right: 26px; }
.hx-actions .header-link { font-size: 15.5px; font-weight: 500; color: #111827; padding: 8px 12px; margin-right: 10px; }
.hx-actions .header-link:hover { color: #0b8a4e; }
.hx-actions .cta-btn {
    display: inline-flex; align-items: center; gap: 9px; height: 37px; padding: 0 17px 0 14px;
    background: linear-gradient(180deg, #24b057 0%, #12963f 100%); border-radius: 7px; color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: .01em; box-shadow: 0 4px 12px rgba(18, 150, 63, .3);
}
.hx-actions .cta-btn svg { width: 22px; height: 22px; }
.hx-user { display: inline-flex; align-items: center; gap: 11px; margin-left: 28px; padding: 4px 6px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.hx-user:hover { background: #f3f5f8; }
.hx-user .user-avatar, #login-button .user-avatar {
    width: 36px; height: 36px; border-radius: 999px; font-size: 16px; font-weight: 700;
    background: linear-gradient(180deg, #0db02f 0%, #029a1b 100%);
}
.hx-user-name { font-size: 15.5px; font-weight: 500; color: #111827; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.hx-chev { width: 14px; height: 14px; color: #111827; }
.hx-actions .login-btn { margin-left: 20px; }
@media (max-width: 1400px) {
    .hx-divider { margin-right: 12px; }
    .hx-user { margin-left: 12px; }
    .hx-user-name { max-width: 120px; }
}
@media (max-width: 1200px) { .hx-user-name { display: none; } }

#user-menu { top: 100%; }

/* Keep the nav from running under the right-hand actions. The header script adds
   hx-fit-1..4 (cumulative) only while the left side still overflows. */
.hx-row > .desktop-actions { flex-shrink: 0; margin-left: 20px; }
.hx-fit-1 .hx-actions .header-link { display: none; }
.hx-fit-2 .hx-nav .nav-item svg { display: none; }
.hx-fit-3 .hx-user-name { display: none; }
.hx-fit-3 .hx-user { margin-left: 10px; }
.hx-fit-4 .hx-logo { margin-right: 14px; }
.hx-fit-4 .hx-logo-text { font-size: 25px; }
.hx-fit-4 .hx-logo-mark { width: 42px; height: 36px; }
.hx-fit-4 .hx-nav { gap: 2px; }
.hx-fit-4 .hx-nav .nav-item { font-size: 14px; padding: 0 7px; }
.hx-fit-4 .hx-nav .nav-item + .nav-item { margin-left: 0; }
.hx-fit-4 .hx-divider { margin-right: 10px; }
.hx-fit-4 .hx-actions .cta-btn { padding: 0 12px; }
.hx-fit-4 .hx-actions .cta-btn svg { display: none; }
.hx-fit-4 .hx-actions .login-btn { margin-left: 10px; padding: .5rem .75rem; }
