/* =========================================================
   ANAYATRANS HEADER V5
   Transparent → White on Scroll
   Compact • Modern • Clean
========================================================= */

.v5-site-header {
    --v5-blue: var(--color-brand-500);
    --v5-blue-dark: var(--color-brand-600);
    --v5-text: var(--color-ink-800);
    --v5-muted: var(--color-ink-400);
    --v5-border: var(--border-default);
    --v5-surface: var(--bg-surface);

    position: sticky;
    top: 0;
    z-index: var(--z-header, 50);

    width: 100%;

    padding-top: 8px;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220, 228, 241, 0.74);

    font-family:
        var(--font-body);

    transition:
        transform 420ms cubic-bezier(.22,.61,.36,1),
        opacity 340ms ease,
        padding 260ms ease,
        background-color 260ms ease,
        box-shadow 320ms ease;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   HEADER SCROLLED
========================================================= */

.v5-site-header.is-scrolled {
    padding-top: 5px;
    background: rgba(255, 255, 255, 0.985);
    border-bottom-color: rgba(223, 230, 240, 0.96);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.v5-site-header.is-home:not(.is-scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}


.v5-site-header.is-hidden {
    transform: translateY(calc(-100% - 8px));
    opacity: 0;
    pointer-events: none;
}


.v5-site-header.is-revealing {
    animation: v5HeaderReveal 420ms cubic-bezier(.22,.61,.36,1);
}


@keyframes v5HeaderReveal {
    0% {
        transform: translateY(-18px);
        opacity: .08;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================================================
   CONTAINER
========================================================= */

.v5-container {
    position: relative;

    width: 100%;

    max-width: none;

    margin-inline: 0;

    background: transparent;

    border: 0;

    border-radius: 0;

    box-shadow: none;

    transition:
        background 220ms ease,
        box-shadow 220ms ease;
}


/*
    Container putih ketika scroll
*/

.v5-site-header.is-scrolled .v5-container {
    background: transparent;
    box-shadow: none;
}


/* =========================================================
   TOP BAR
========================================================= */

.v5-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;

    width: min(calc(100% - 2rem), var(--container-max, 1240px));

    margin-inline: auto;

    padding-inline: 0;

    gap: 1.5rem;
}


/* =========================================================
   BRAND
========================================================= */

.v5-brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}


.v5-brand-logo {
    display: block;

    width: auto;
    height: 32px;

    object-fit: contain;

    transition:
        transform 160ms ease,
        filter 200ms ease;
}


.v5-brand:hover .v5-brand-logo {
    transform: translateY(-1px);
}


/* =========================================================
   TOP RIGHT
========================================================= */

.v5-topbar-right {
    display: flex;
    align-items: center;

    gap: 0.55rem;

    min-width: max-content;
}


/* =========================================================
   UTILITY NAV
========================================================= */

.v5-utility-nav {
    display: flex;
    align-items: center;

    gap: 0.2rem;
}


/* =========================================================
   LANGUAGE
========================================================= */

.v5-language-shell {
    position: relative;
}


.v5-language-shell summary {
    list-style: none;
}


.v5-language-shell summary::-webkit-details-marker {
    display: none;
}


/* =========================================================
   UTILITY LINK
========================================================= */

.v5-utility-link {
    display: inline-flex;
    align-items: center;

    gap: 0.38rem;

    min-height: 34px;

    padding: 0 0.68rem;

    border: 1px solid transparent;

    border-radius: 9px;

    color: #65738a;

    background: transparent;

    font-size: 12.5px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: -0.01em;

    text-decoration: none;

    cursor: pointer;

    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}


.v5-utility-link svg {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    fill: currentColor;
}


.v5-utility-link:hover {
    color: #215fd5;
    background: #f2f6fd;
    border-color: #e4ebf8;
}


.v5-utility-link.is-active {
    color: #215fd5;
    background: #eef4ff;
    border-color: #dce8fb;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-utility-link {
    color: rgba(255, 255, 255, 0.92);
}

.v5-site-header.is-home:not(.is-scrolled) .v5-utility-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.08);
}

.v5-site-header.is-home:not(.is-scrolled) .v5-utility-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.1);
}


/* =========================================================
   UTILITY WHEN SCROLLED
========================================================= */

.v5-site-header.is-scrolled .v5-utility-link {
    color: #65738a;

    background: transparent;

    border-color: transparent;
}


.v5-site-header.is-scrolled .v5-utility-link:hover {
    color: #215fd5;

    background: #f2f6fd;

    border-color: #e4ebf8;
}


.v5-site-header.is-scrolled .v5-utility-link.is-active {
    color: #215fd5;

    background: #eef4ff;

    border-color: #dce8fb;
}


/* =========================================================
   LANGUAGE DROPDOWN
========================================================= */

.v5-language-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    z-index: 40;

    min-width: 180px;

    padding: 6px;

    border: 1px solid #e3e8ef;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.99);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.13);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


.v5-language-dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    min-height: 38px;

    padding: 0 10px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #46536a;

    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease;
}


.v5-language-dropdown button small {
    color: #98a3b4;

    font-size: 10.5px;
    font-weight: 700;
}


.v5-language-dropdown button:hover,
.v5-language-dropdown button.is-active {
    background: #f2f6fc;

    color: #2563eb;
}


/* =========================================================
   TOP DIVIDER
========================================================= */

.v5-topbar-divider {
    width: 1px;
    height: 20px;

    margin-inline: 0.15rem;

    background: #e3e8ef;

    transition: background 200ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-topbar-divider {
    background: rgba(255, 255, 255, 0.2);
}


.v5-site-header.is-scrolled .v5-topbar-divider {
    background: #e3e8ef;
}


/* =========================================================
   AUTH
========================================================= */

.v5-auth-actions {
    display: flex;
    align-items: center;

    gap: 0.45rem;
}


/* =========================================================
   BUTTON BASE
========================================================= */

.v5-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.38rem;

    min-height: 38px;

    padding: 0 0.98rem;

    border: 1px solid transparent;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1;
    font-weight: 650;

    letter-spacing: -0.01em;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}


.v5-button:hover {
    transform: translateY(-1px);
}


/* =========================================================
   LOGIN - BEFORE SCROLL
========================================================= */

.v5-button-login {
    border-color: #dce3ec;
    background: rgba(255, 255, 255, 0.9);
    color: #35435c;
    backdrop-filter: blur(10px);
}


.v5-button-login:hover {
    border-color: #c7d2e1;
    background: #f7faff;
    color: #245fd7;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-button-login {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    backdrop-filter: blur(7px);
}

.v5-site-header.is-home:not(.is-scrolled) .v5-button-login:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
}


/* LOGIN SCROLLED */

.v5-site-header.is-scrolled .v5-button-login {
    border-color: #dce3ec;

    background: #ffffff;

    color: #35435c;
}


.v5-site-header.is-scrolled .v5-button-login:hover {
    border-color: #c7d2e1;

    background: #f7faff;

    color: #245fd7;
}


/* =========================================================
   REGISTER
========================================================= */

.v5-button-register {
    padding-inline: 1.05rem;

    border-color: rgba(105, 163, 255, 0.65);

    background:
        linear-gradient(
            135deg,
            #4388f4 0%,
            #2870ed 58%,
            #205edb 100%
        );

    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(18, 67, 157, 0.25);
}


.v5-button-register svg {
    width: 14px;
    height: 14px;

    fill: currentColor;

    transition: transform 160ms ease;
}


.v5-button-register:hover {
    background:
        linear-gradient(
            135deg,
            #347cec,
            #1e5bd8
        );

    box-shadow:
        0 8px 20px rgba(24, 81, 185, 0.3);
}


.v5-button-register:hover svg {
    transform: translateX(2px);
}


/* SCROLL REGISTER */

.v5-site-header.is-scrolled .v5-button-register {
    border-color: #2563eb;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.2);
}


/* =========================================================
   ACCOUNT
========================================================= */

.v5-account-shell {
    position: relative;
}


.v5-account-shell summary {
    list-style: none;
}


.v5-account-shell summary::-webkit-details-marker {
    display: none;
}


.v5-account-chip {
    display: flex;
    align-items: center;

    gap: 0.48rem;

    min-height: 39px;

    padding: 0.12rem 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    color: #34415a;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}


.v5-account-chip:hover {
    background: transparent;

    box-shadow: none;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-account-chip {
    background: transparent;
    color: #ffffff;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-account-chip:hover {
    background: transparent;
    box-shadow: none;
}


/* SCROLLED ACCOUNT */

.v5-site-header.is-scrolled .v5-account-chip {
    background: transparent;

    color: #34415a;
}


.v5-site-header.is-scrolled .v5-account-chip:hover {
    background: transparent;

    box-shadow: none;
}


/* =========================================================
   ACCOUNT AVATAR
========================================================= */

.v5-account-avatar {
    display: inline-grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            #4c91ff,
            #2563eb
        );

    color: #ffffff;

    font-size: 11.5px;
    font-weight: 750;
}


/* =========================================================
   ACCOUNT INFO
========================================================= */

.v5-account-info {
    display: grid;

    gap: 1px;

    min-width: 80px;
}


.v5-account-info strong {
    max-width: 115px;

    overflow: hidden;

    color: #2f3c53;

    font-size: 12px;
    font-weight: 650;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.v5-account-info small {
    color: #8c98aa;

    font-size: 10.5px;
    font-weight: 500;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-account-info strong {
    color: #ffffff;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-account-info small {
    color: rgba(255, 255, 255, 0.66);
}


.v5-site-header.is-scrolled .v5-account-info strong {
    color: #2f3c53;
}


.v5-site-header.is-scrolled .v5-account-info small {
    color: #8c98aa;
}


/* =========================================================
   CHEVRON
========================================================= */

.v5-chevron {
    width: 6px;
    height: 6px;

    margin-left: 0.1rem;

    border-right: 1.5px solid #8491a4;
    border-bottom: 1.5px solid #8491a4;

    transform:
        rotate(45deg)
        translateY(-2px);

    transition:
        transform 160ms ease,
        border-color 200ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-chevron {
    border-right-color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}


.v5-site-header.is-scrolled .v5-chevron {
    border-right-color: #8491a4;

    border-bottom-color: #8491a4;
}


.v5-account-shell[open] .v5-chevron,
.v5-language-shell[open] .v5-chevron {
    transform:
        rotate(225deg)
        translate(-1px, -1px);
}


/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.v5-account-dropdown {
    position: absolute;

    top: calc(100% + 0.7rem);
    right: 0;

    z-index: 40;

    min-width: 248px;

    padding: 0.45rem;

    border: 1px solid rgba(218, 227, 239, 0.9);

    border-radius: 1rem;

    background: rgba(255, 255, 255, 0.99);

    box-shadow: 0 1.25rem 2.75rem rgba(23, 46, 82, 0.15);

    backdrop-filter: blur(16px);
}

.v5-account-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.05rem 0.05rem 0.4rem;
    padding: 0.68rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f3f7ff, #fafcff);
}

.v5-account-dropdown-profile .v5-account-avatar {
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 0.78rem;
}

.v5-account-dropdown-profile > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.v5-account-dropdown-profile strong,
.v5-account-dropdown-profile small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v5-account-dropdown-profile strong {
    color: #243b61;
    font-size: 0.78rem;
    font-weight: 750;
}

.v5-account-dropdown-profile small {
    color: #7d8ca4;
    font-size: 0.67rem;
}


.v5-dropdown-header {
    display: block;

    padding:
        8px
        9px
        5px;

    color: #98a3b5;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.v5-account-dropdown a,
.v5-account-dropdown button {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 0.58rem;
    min-height: 2.5rem;

    padding: 0 0.65rem;

    border: 0;

    border-radius: 0.62rem;

    background: transparent;

    color: #435068;

    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;

    text-align: left;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.v5-account-dropdown a > i:first-child,
.v5-account-dropdown button > i:first-child {
    width: 1rem;
    color: #4b78d7;
    font-size: 0.92rem;
    text-align: center;
}

.v5-account-dropdown a > span,
.v5-account-dropdown button > span {
    flex: 1 1 auto;
}

.v5-dropdown-arrow {
    color: #a2aec0;
    font-size: 0.66rem;
}


.v5-account-dropdown a:hover {
    background: #f3f6fb;

    color: #2563eb;
}


.v5-dropdown-divider {
    display: block;

    height: 1px;

    margin: 5px 4px;

    background: #edf0f4;
}


.v5-logout-button:hover {
    background: #fff2f2 !important;

    color: #dc3f3f !important;
}

.v5-logout-button > i:first-child {
    color: #dc5a5a !important;
}


/* =========================================================
   SERVICE NAVIGATION
========================================================= */

.v5-navigation-row {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 56px;

    width: min(calc(100% - 2rem), var(--container-max, 1240px));

    margin-inline: auto;

    padding-inline: 0;

    border-top: 1px solid rgba(228, 234, 242, 0.94);

    border-radius: 0;

    background: transparent;

    transition:
        border-color 200ms ease,
        background 200ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-navigation-row {
    border-top-color: rgba(255, 255, 255, 0.14);
}


.v5-site-header.is-scrolled .v5-navigation-row {
    border-top-color: #edf1f6;

    background: transparent;
}


/* =========================================================
   SERVICE GRID
========================================================= */

.v5-service-nav {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr))
        minmax(140px, 1.08fr);

    align-items: stretch;

    width: 100%;

    min-width: 0;
}


/* =========================================================
   SERVICE ITEM
========================================================= */

.v5-service-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 0;
    min-height: 56px;

    padding: 0 11px;

    color: #35435d;

    font-size: 13px;
    line-height: 1;

    font-weight: 620;

    letter-spacing: -0.015em;

    text-decoration: none;

    transition:
        color 170ms ease,
        background 170ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item {
    color: rgba(255, 255, 255, 0.92);
}


/* =========================================================
   SERVICE SEPARATOR
========================================================= */

.v5-service-item:not(:last-child)::before {
    content: "";

    position: absolute;

    top: 50%;
    right: 0;

    width: 1px;
    height: 21px;

    border-radius: 999px;

    background: #e2e7ef;

    transform: translateY(-50%);

    transition: background 200ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item:not(:last-child)::before {
    background: rgba(255, 255, 255, 0.18);
}


.v5-site-header.is-scrolled
.v5-service-item:not(:last-child)::before {
    background: #e2e7ef;
}


/* =========================================================
   SERVICE ICON
========================================================= */

.v5-service-icon {
    display: inline-grid;
    place-items: center;

    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    color: #42506a;

    transition:
        color 170ms ease,
        transform 170ms cubic-bezier(.2,.8,.2,1);
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-icon {
    color: rgba(255, 255, 255, 0.9);
}


.v5-service-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

/* Use the same service assets and interaction treatment as the homepage tabs. */
.v5-service-icon img {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter: grayscale(1) saturate(.25) opacity(.68);
    transition: filter .16s ease, transform .16s ease;
}

.v5-service-item:hover .v5-service-icon img {
    filter: grayscale(.35) saturate(.7) opacity(.9);
    transform: translateY(-1px);
}

.v5-service-item.is-active .v5-service-icon img {
    filter: none;
    transform: translateY(-1px);
}


/* =========================================================
   LABEL
========================================================= */

.v5-service-label {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   SERVICE HOVER - TRANSPARENT STATE
========================================================= */

.v5-service-item:hover {
    color: #245bd7;

    background:
        linear-gradient(
            180deg,
            rgba(245, 249, 255, 0) 0%,
            rgba(239, 246, 255, 0.8) 100%
        );
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item:hover {
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.12)
        );
}


.v5-service-item:hover .v5-service-icon {
    color: #245bd7;

    transform: translateY(-1px);
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item:hover .v5-service-icon {
    color: #ffffff;
}


/* =========================================================
   ACTIVE INDICATOR
========================================================= */

.v5-service-item::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 50%;

    width: 0;
    height: 2px;

    border-radius: 999px;

    background: #87b7ff;

    transform: translateX(-50%);

    transition:
        width 180ms cubic-bezier(.2,.8,.2,1),
        background 180ms ease;
}


.v5-service-item:hover::after {
    width: 28px;
}


/* =========================================================
   ACTIVE STATE
========================================================= */

.v5-service-item.is-active {
    color: #245bd7;

    font-weight: 650;

    background:
        linear-gradient(
            180deg,
            rgba(247, 250, 255, 0),
            rgba(240, 246, 255, 0.72)
        );
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item.is-active {
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0),
            rgba(255,255,255,0.1)
        );
}


.v5-service-item.is-active .v5-service-icon {
    color: #245bd7;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item.is-active .v5-service-icon {
    color: #ffffff;
}


.v5-service-item.is-active::after {
    width: 34px;

    height: 2.5px;

    background: #2864df;

    box-shadow:
        0 -1px 5px rgba(40, 100, 223, 0.14);
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-item.is-active::after {
    background: #75aaff;
    box-shadow:
        0 -1px 6px rgba(117, 170, 255, 0.3);
}


/* =========================================================
   SERVICE WHEN SCROLLED
========================================================= */

.v5-site-header.is-scrolled .v5-service-item {
    color: #35435d;
}


.v5-site-header.is-scrolled .v5-service-icon {
    color: #42506a;
}


.v5-site-header.is-scrolled .v5-service-item:hover {
    color: #245bd7;

    background:
        linear-gradient(
            180deg,
            rgba(245, 249, 255, 0) 0%,
            rgba(239, 246, 255, 0.8) 100%
        );
}


.v5-site-header.is-scrolled
.v5-service-item:hover
.v5-service-icon {
    color: #245bd7;
}


.v5-site-header.is-scrolled
.v5-service-item::after {
    background: #3267dc;
}


.v5-site-header.is-scrolled
.v5-service-item.is-active {
    color: #245bd7;

    background:
        linear-gradient(
            180deg,
            rgba(247, 250, 255, 0),
            rgba(240, 246, 255, 0.72)
        );
}


.v5-site-header.is-scrolled
.v5-service-item.is-active
.v5-service-icon {
    color: #245bd7;
}


.v5-site-header.is-scrolled
.v5-service-item.is-active::after {
    background: #2864df;

    box-shadow:
        0 -1px 5px rgba(40, 100, 223, 0.14);
}


/* =========================================================
   PROMO
========================================================= */

/*
    Promo tetap memiliki aksen warm
    tetapi tidak terlalu mencolok ketika transparent
*/

.v5-service-promo {
    color: #e44941;
}


.v5-service-promo .v5-service-icon {
    color: #e44941;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-promo {
    color: #ffd2ce;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-promo .v5-service-icon {
    color: #ffb9b2;
}


.v5-service-promo:hover {
    color: #db3d36;

    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 247, 0),
            rgba(255, 241, 239, 0.8)
        );
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-promo:hover {
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(255, 126, 115, 0),
            rgba(255, 105, 92, 0.13)
        );
}


.v5-service-promo:hover .v5-service-icon {
    color: #db3d36;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-promo:hover .v5-service-icon {
    color: #ffafa6;
}


.v5-service-promo::after {
    background: #e34c43;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-service-promo::after {
    background: #ff8b80;
}


/* PROMO SCROLLED */

.v5-site-header.is-scrolled .v5-service-promo {
    color: #e44941;
}


.v5-site-header.is-scrolled
.v5-service-promo
.v5-service-icon {
    color: #e44941;
}


.v5-site-header.is-scrolled
.v5-service-promo:hover {
    color: #db3d36;

    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 247, 0),
            rgba(255, 241, 239, 0.8)
        );
}


.v5-site-header.is-scrolled
.v5-service-promo:hover
.v5-service-icon {
    color: #db3d36;
}


.v5-site-header.is-scrolled
.v5-service-promo::after {
    background: #e34c43;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.v5-menu-toggle {
    display: none;

    width: 39px;
    height: 39px;

    padding: 9px;

    border: 1px solid #dfe5ed;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.9);

    cursor: pointer;

    transition:
        background 180ms ease,
        border-color 180ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-menu-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}


.v5-menu-toggle span {
    display: block;

    width: 100%;
    height: 1.8px;

    margin: 4px 0;

    border-radius: 10px;

    background: #435068;

    transition: background 180ms ease;
}

.v5-site-header.is-home:not(.is-scrolled) .v5-menu-toggle span {
    background: #ffffff;
}


/* MOBILE TOGGLE SCROLL */

.v5-site-header.is-scrolled .v5-menu-toggle {
    border-color: #dfe5ed;

    background: #ffffff;
}


.v5-site-header.is-scrolled
.v5-menu-toggle span {
    background: #435068;
}


/* =========================================================
   MOBILE DRAWER
========================================================= */

.v5-mobile-drawer {
    width: min(calc(100% - 2rem), var(--container-max, 1240px));

    margin: 0 auto 8px;

    padding: 10px;

    border: 1px solid #e5eaf1;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.99);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.12);

    backdrop-filter: blur(18px);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.v5-mobile-header {
    display: grid;

    gap: 2px;

    padding:
        7px
        8px
        10px;
}


.v5-mobile-header span {
    color: #26334a;

    font-size: 14px;
    font-weight: 700;
}


.v5-mobile-header small {
    color: #8b98aa;

    font-size: 11px;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.v5-mobile-nav {
    display: grid;

    gap: 2px;
}


.v5-mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 42px;

    padding: 0 10px;

    border-radius: 9px;

    color: #536079;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 150ms ease,
        background 150ms ease;
}


.v5-mobile-nav a svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    opacity: 0.45;
}


.v5-mobile-nav a:hover,
.v5-mobile-nav a.is-active {
    background: #f2f6fc;

    color: #2563eb;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

.v5-mobile-footer {
    display: grid;

    gap: 8px;

    margin-top: 9px;

    padding-top: 9px;

    border-top: 1px solid #edf0f4;
}


.v5-mobile-support {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    border-radius: 9px;

    background: #f3f6fa;

    color: #425069;

    font-size: 12.5px;
    font-weight: 600;

    text-decoration: none;
}


.v5-mobile-auth {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 7px;
}


/*
    Button di mobile drawer selalu menggunakan
    background terang karena drawer putih
*/

.v5-mobile-drawer .v5-button-login {
    border-color: #dce3ec;

    background: #ffffff;

    color: #35435c;
}


.v5-mobile-drawer .v5-button-login:hover {
    border-color: #c7d2e1;

    background: #f7faff;

    color: #245fd7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

    .v5-service-item {
        gap: 6px;

        padding-inline: 7px;

        font-size: 12px;
    }


    .v5-service-icon {
        width: 18px;
        height: 18px;
    }


    .v5-utility-link {
        font-size: 12px;
    }


    .v5-service-nav {
        grid-template-columns:
            repeat(6, minmax(0, 1fr))
            minmax(125px, 1fr);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .v5-navigation-row,
    .v5-utility-nav,
    .v5-topbar-divider,
    .v5-auth-actions,
    .v5-account-shell {
        display: none;
    }


    .v5-menu-toggle {
        display: block;
    }


    .v5-topbar {
        position: relative;
        justify-content: flex-end;
        min-height: 58px;
    }

    .v5-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .v5-topbar-right {
        margin-left: auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .v5-site-header {
        padding-top: 5px;
    }


    .v5-container {
        width: 100%;
    }


    .v5-topbar {
        min-height: 54px;

        width: calc(100% - 1rem);

        padding-inline: 0;
    }


    .v5-navigation-row,
    .v5-mobile-drawer {
        width: calc(100% - 1rem);
    }


    .v5-brand-logo {
        height: 29px;
    }

}

/* Quiet navigation treatment for operational and transaction pages. */
.v5-site-header:not(.is-home) {
    padding-top: 0;
    background: rgba(255, 255, 255, .9);
    border-bottom-color: rgba(229, 234, 241, .9);
}

.v5-site-header:not(.is-home) .v5-topbar {
    min-height: 64px;
}

.v5-site-header:not(.is-home) .v5-brand-logo {
    height: 29px;
}

.v5-site-header:not(.is-home) .v5-utility-nav {
    gap: .05rem;
}

.v5-site-header:not(.is-home) .v5-utility-link {
    min-height: 32px;
    padding-inline: .55rem;
    border-radius: 8px;
    font-size: 12px;
}

.v5-site-header:not(.is-home) .v5-utility-link.is-active {
    border-color: transparent;
    background: transparent;
    color: #49627f;
}

/* Mobile navigation uses one calm, full-width menu surface. */
@media (max-width: 1024px) {
    .v5-menu-toggle {
        display: grid;
        place-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #c9d7f2;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(34, 58, 101, 0.06);
    }

    .v5-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 0;
        background: #33415a;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .v5-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .v5-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .v5-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .v5-mobile-drawer {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 50%;
        z-index: 70;
        width: min(calc(100% - 2rem), 42rem);
        margin: 0;
        padding: 1rem;
        border-color: #e0e7f1;
        border-radius: 1.25rem;
        background: #ffffff;
        box-shadow: 0 1.25rem 3.5rem rgba(23, 42, 74, 0.14);
        transform: translateX(-50%);
    }

    .v5-mobile-header {
        gap: 0.28rem;
        padding: 0.45rem 0.45rem 1rem;
    }

    .v5-mobile-header span {
        color: #273852;
        font-size: 1rem;
        font-weight: 700;
    }

    .v5-mobile-header small {
        color: #8491a5;
        font-size: 0.78rem;
    }

    .v5-mobile-nav {
        gap: 0.28rem;
    }

    .v5-mobile-profile {
        margin: 0 0 0.72rem;
        border: 1px solid #e2e9f3;
        border-radius: 0.9rem;
        background: #f8faff;
        overflow: hidden;
    }

    .v5-mobile-profile summary {
        display: flex;
        align-items: center;
        gap: 0.68rem;
        min-height: 3.75rem;
        padding: 0.7rem 0.78rem;
        color: #344764;
        cursor: pointer;
        list-style: none;
    }

    .v5-mobile-profile summary::-webkit-details-marker {
        display: none;
    }

    .v5-mobile-profile .v5-account-avatar {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.86rem;
    }

    .v5-mobile-profile summary > span:nth-child(2) {
        display: grid;
        gap: 0.12rem;
        min-width: 0;
    }

    .v5-mobile-profile strong,
    .v5-mobile-profile small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .v5-mobile-profile strong {
        font-size: 0.84rem;
        font-weight: 700;
    }

    .v5-mobile-profile small {
        color: #8190a5;
        font-size: 0.72rem;
    }

    .v5-mobile-profile summary > i {
        margin-left: auto;
        color: #8aa0c3;
        transition: transform 180ms ease;
    }

    .v5-mobile-profile[open] summary > i {
        transform: rotate(180deg);
    }

    .v5-mobile-profile-menu {
        display: grid;
        gap: 0.2rem;
        padding: 0 0.42rem 0.42rem;
        border-top: 1px solid #e2e9f3;
    }

    .v5-mobile-profile-menu a,
    .v5-mobile-profile-menu button {
        display: flex;
        align-items: center;
        gap: 0.52rem;
        min-height: 2.65rem;
        padding: 0 0.58rem;
        border: 0;
        border-radius: 0.62rem;
        background: transparent;
        color: #586a84;
        font: 500 0.8rem/1 inherit;
        text-align: left;
        text-decoration: none;
    }

    .v5-mobile-profile-menu a:hover,
    .v5-mobile-profile-menu button:hover {
        background: #ffffff;
        color: #3565d7;
    }

    .v5-mobile-profile-menu form {
        margin: 0;
    }

    .v5-mobile-profile-menu button {
        width: 100%;
        color: #bd5050;
    }

    .v5-mobile-nav a {
        min-height: 3.3rem;
        padding: 0 0.78rem 0 0.92rem;
        border-radius: 0.82rem;
        color: #52627a;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .v5-mobile-nav a svg {
        width: 1rem;
        height: 1rem;
    }

    .v5-mobile-nav a:hover,
    .v5-mobile-nav a.is-active {
        background: #f1f5ff;
        color: #3565d7;
    }

    .v5-mobile-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .v5-mobile-support {
        min-height: 3rem;
        border-radius: 0.82rem;
        background: #f3f6fb;
        color: #3e516f;
        font-size: 0.84rem;
    }

    .v5-mobile-language {
        border: 1px solid #e2e9f3;
        border-radius: 0.82rem;
        background: #ffffff;
    }

    .v5-mobile-language summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 3rem;
        padding: 0 0.82rem;
        color: #4b5d78;
        cursor: pointer;
        font-size: 0.84rem;
        font-weight: 600;
        list-style: none;
    }

    .v5-mobile-language summary::-webkit-details-marker {
        display: none;
    }

    .v5-mobile-language summary > span:first-child {
        display: inline-flex;
        align-items: center;
        gap: 0.48rem;
    }

    .v5-mobile-language[open] .v5-chevron {
        transform: rotate(180deg);
    }

    .v5-mobile-language > div {
        display: grid;
        gap: 0.25rem;
        padding: 0 0.38rem 0.38rem;
    }

    .v5-mobile-language button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 2.55rem;
        padding: 0 0.58rem;
        border: 0;
        border-radius: 0.62rem;
        background: transparent;
        color: #5a6b84;
        font: 500 0.8rem/1 inherit;
        text-align: left;
    }

    .v5-mobile-language button.is-active {
        background: #f1f5ff;
        color: #3565d7;
        font-weight: 600;
    }

    .v5-mobile-language button small {
        color: inherit;
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .v5-mobile-drawer {
        width: calc(100% - 1rem);
        padding: 0.75rem;
        border-radius: 1rem;
    }
}

.v5-site-header:not(.is-home) .v5-account-chip {
    gap: .55rem;
    min-height: 38px;
    padding: .18rem .42rem;
    border-radius: 12px;
}

.v5-site-header:not(.is-home) .v5-account-chip:hover {
    background: #f5f8fc;
}

.v5-site-header:not(.is-home) .v5-account-avatar {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .13);
}

.v5-site-header:not(.is-home) .v5-navigation-row {
    min-height: 51px;
    border-top: 0;
}

.v5-site-header:not(.is-home) .v5-service-nav {
    gap: 4px;
    padding: 4px 0 6px;
}

.v5-site-header:not(.is-home) .v5-service-item {
    justify-content: center;
    min-height: 41px;
    padding-inline: 9px;
    border-radius: 11px;
    font-size: 12px;
}

.v5-site-header:not(.is-home) .v5-service-item:not(:last-child)::before {
    display: none;
}

.v5-site-header:not(.is-home) .v5-service-item::after {
    display: block;
    background: #3267dc;
}

.v5-site-header:not(.is-home) .v5-service-icon,
.v5-site-header:not(.is-home) .v5-service-icon img {
    width: 18px;
    height: 18px;
}

.v5-site-header:not(.is-home) .v5-service-item:hover {
    color: #245bd7;
    background:
        linear-gradient(
            180deg,
            rgba(245, 249, 255, 0) 0%,
            rgba(239, 246, 255, 0.8) 100%
        );
}

.v5-site-header:not(.is-home) .v5-service-item:hover .v5-service-icon {
    color: #245bd7;
}

.v5-site-header:not(.is-home) .v5-service-promo:hover {
    color: #db3d36;
    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 247, 0) 0%,
            rgba(255, 241, 239, 0.8) 100%
        );
}

.v5-site-header:not(.is-home) .v5-service-promo:hover .v5-service-icon {
    color: #db3d36;
}

.v5-site-header:not(.is-home) .v5-service-item.is-active {
    background: #eef5ff;
    color: #2864d5;
}

.v5-site-header:not(.is-home) .v5-service-item:focus-visible,
.v5-site-header:not(.is-home) .v5-utility-link:focus-visible,
.v5-site-header:not(.is-home) .v5-account-chip:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .v5-site-header:not(.is-home) .v5-topbar {
        min-height: 58px;
    }
}
