/* =========================================================
   CARIPULSE PLATFORM HEADER
========================================================= */


/* =========================================================
   HEADER
========================================================= */

.platform-header {

    position: sticky;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 99999;

    padding:
        16px
        0;

    background:
        rgba(
            8,
            18,
            33,
            0.98
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    backdrop-filter:
        blur(24px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(180%);
}


/* =========================================================
   INNER
========================================================= */

.platform-header-inner {

    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    min-width: 0;
}


/* =========================================================
   LOGO
========================================================= */

.platform-header-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}


.platform-header-logo img {

    display: block;

    width: 190px;

    max-width: 100%;

    height: auto;
}


/* =========================================================
   PLATFORM NAVIGATION
========================================================= */

.platform-header-navigation {

    flex: 1;

    min-width: 0;

    max-width: 720px;

    min-height: 52px;

    padding:
        4px
        6px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    border:
        1px solid
        rgba(
            8,
            18,
            33,
            0.08
        );

    border-radius: 999px;
}


.platform-header-navigation a {

    position: relative;

    flex: 1;

    min-width: 0;

    min-height: 42px;

    padding:
        0
        14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 999px;

    color: #081221;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 13px;

    line-height: 1.4;

    font-weight: 600;

    text-align: center;

    text-decoration: none;

    white-space: nowrap;

    overflow: hidden;

    isolation: isolate;

    transition:
        color 0.32s ease,
        transform 0.32s ease;
}


/* =========================================================
   NAVIGATION HOVER FILL
========================================================= */

.platform-header-navigation a::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            #ff0f7b 0%,
            #ff5a52 52%,
            #fdb52b 100%
        );

    opacity: 0;

    transform:
        scale(0.82);

    z-index: -1;

    transition:
        opacity 0.32s ease,
        transform 0.32s ease;
}


.platform-header-navigation a:hover {

    color: #ffffff;

    transform:
        translateY(-1px);
}


.platform-header-navigation a:hover::before {

    opacity: 1;

    transform:
        scale(1);
}


/* =========================================================
   ACTIVE PLATFORM NAVIGATION
========================================================= */

.platform-header-navigation a.platform-navigation-active {

    color: #ffffff;
}


.platform-header-navigation a.platform-navigation-active::before {

    opacity: 1;

    transform:
        scale(1);
}


.platform-header-navigation a.platform-navigation-active::after {

    opacity: 0;
}


/* =========================================================
   ACTIVE NAVIGATION
   TEMPORARILY HIDE WHILE ANOTHER ITEM IS HOVERED
========================================================= */

.platform-header-navigation:hover
a.platform-navigation-active:not(:hover)::before {

    opacity: 0;

    transform:
        scale(0.82);
}


.platform-header-navigation:hover
a.platform-navigation-active:not(:hover) {

    color: #081221;
}


/* =========================================================
   NAVIGATION DIVIDERS
========================================================= */

.platform-header-navigation a:not(:last-child)::after {

    content: "";

    position: absolute;

    top: 50%;

    right: 0;

    width: 1px;

    height: 28px;

    background:
        rgba(
            8,
            18,
            33,
            0.13
        );

    transform:
        translateY(-50%);

    transition:
        opacity 0.2s ease;
}


.platform-header-navigation a:hover::after {

    opacity: 0;
}


/* =========================================================
   KEYBOARD FOCUS
========================================================= */

.platform-header-navigation a:focus-visible {

    outline:
        3px solid
        #ff0f7b;

    outline-offset: 2px;
}


/* =========================================================
   ACTIONS
========================================================= */

.platform-header-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 38px;

    flex-shrink: 0;
}


/* =========================================================
   ACTION LINKS / BUTTONS
========================================================= */

.platform-header-action {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 44px;

    padding: 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    color: #ffffff;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.25s ease;
}


.platform-header-action:hover {

    color: #ff9d1c;
}


/* =========================================================
   ICONS
========================================================= */

.platform-header-action i {

    flex-shrink: 0;

    color: inherit;

    font-size: 17px;
}


/* =========================================================
   ACCOUNT
========================================================= */

.platform-header-account {

    position: relative;

    display: flex;

    align-items: center;
}


.platform-header-signin {

    appearance: none;

    -webkit-appearance: none;
}


.platform-header-signin i {

    color: #ffffff;
}


.platform-header-signin:hover i {

    color: #ff9d1c;
}


/* =========================================================
   ACCOUNT CHEVRON
========================================================= */

.platform-header-chevron {

    margin-left: 1px;

    font-size: 10px !important;

    transition:
        transform 0.2s ease;
}


.platform-header-chevron[hidden] {

    display: none !important;
}


.platform-header-chevron-open {

    transform:
        rotate(
            180deg
        );
}


/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.platform-header-account-dropdown {

    position: absolute;

    top:
        calc(
            100% + 14px
        );

    right: 0;

    width: 190px;

    padding: 8px;

    border:
        1px solid
        #e3e8ef;

    border-radius: 16px;

    background: #ffffff;

    overflow: hidden;

    z-index: 100001;
}


.platform-header-account-dropdown[hidden] {

    display: none !important;
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.platform-header-dropdown-item {

    width: 100%;

    min-height: 46px;

    padding:
        0
        13px;

    border: 0;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 11px;

    background: transparent;

    color: #081221;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 13px;

    line-height: 1.4;

    font-weight: 500;

    text-align: left;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.platform-header-dropdown-item i {

    width: 18px;

    flex-shrink: 0;

    color: #ff0f7b;

    font-size: 14px;

    text-align: center;
}


.platform-header-dropdown-item:hover {

    background: #f7f8fb;

    color: #ff0f7b;
}


.platform-header-dropdown-divider {

    height: 1px;

    margin:
        5px
        8px;

    background: #e9edf2;
}


/* =========================================================
   LOGOUT
========================================================= */

.platform-header-dropdown-logout {

    color: #d51f37;
}


.platform-header-dropdown-logout i {

    color: #d51f37;
}


.platform-header-dropdown-logout:hover {

    color: #d51f37;

    background: #fff4f5;
}


.platform-header-dropdown-logout:disabled {

    cursor: not-allowed;

    opacity: 0.55;
}


/* =========================================================
   POINTS
========================================================= */

.platform-header-points i {

    color: #fdb52b;
}


.platform-header-points strong {

    display: inline;

    min-width: 0;

    height: auto;

    padding: 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    color: #fdb52b;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 700;
}


/* =========================================================
   SETTINGS
========================================================= */

.platform-header-settings i {

    color: #ffffff;
}


.platform-header-settings:hover i {

    color: #ff9d1c;
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
========================================================= */

.platform-header-logo:focus-visible,
.platform-header-action:focus-visible,
.platform-header-dropdown-item:focus-visible {

    outline:
        3px solid
        #ff9d1c;

    outline-offset: 4px;
}


/* =========================================================
   PLATFORM MENU TOGGLE
   HIDDEN ON DESKTOP
========================================================= */

.platform-menu-toggle {

    display: none;
}


/* =========================================================
   LARGE DESKTOP ADJUSTMENT
   OPTIMIZED PLATFORM HEADER
   1441px - 1920px
========================================================= */

@media (
    max-width: 1920px
) and (
    min-width: 1441px
) {

    .platform-header {

        padding:
            14px
            0;
    }


    /*
       HEADER LAYOUT
    */

    .platform-header-inner {

        min-height: 58px;

        gap: 24px;
    }


    /*
       LOGO
    */

    .platform-header-logo img {

        width: 175px;
    }


    /*
       PLATFORM NAVIGATION
    */

    .platform-header-navigation {

        flex:
            1
            1
            auto;

        max-width: 640px;

        min-height: 48px;

        padding:
            3px
            4px;

        gap: 0;
    }


    /*
       Navigation items remain content-aware.
       Longer labels such as Experiences receive
       the space they need.
    */

    .platform-header-navigation a {

        flex:
            1
            1
            auto;

        min-width: max-content;

        min-height: 40px;

        padding:
            0
            14px;

        font-size: 13px;
    }


    /*
       NAVIGATION DIVIDERS
    */

    .platform-header-navigation
    a:not(:last-child)::after {

        height: 24px;
    }


    /*
       ACCOUNT / POINTS / SETTINGS
    */

    .platform-header-actions {

        gap: 20px;
    }


    .platform-header-action {

        min-height: 40px;

        gap: 7px;

        font-size: 14px;
    }


    .platform-header-action i {

        font-size: 16px;
    }


    .platform-header-points strong {

        font-size: 14px;
    }


    .platform-header-chevron {

        margin-left: 0;

        font-size: 9px !important;
    }

}


/* =========================================================
   DESKTOP ADJUSTMENT
   OPTIMIZED PLATFORM HEADER
========================================================= */

@media (
    max-width: 1180px
) and (
    min-width: 901px
) {

    .platform-header {

        padding:
            13px
            0;
    }


    /*
       Optimize the three main header zones:
       logo / navigation / account actions
    */

    .platform-header-inner {

        min-height: 54px;

        gap: 16px;
    }


    /*
       LOGO
    */

    .platform-header-logo img {

        width: 150px;
    }


    /*
       PLATFORM NAVIGATION
    */

    .platform-header-navigation {

        flex:
            1
            1
            auto;

        max-width: 570px;

        min-height: 46px;

        padding:
            3px
            4px;

        gap: 0;
    }


    /*
       Allow each navigation item to use the width
       required by its label.

       Experiences therefore receives more space
       naturally than Rides, Tours, etc.
    */

    .platform-header-navigation a {

        flex:
            1
            1
            auto;

        min-width: max-content;

        min-height: 38px;

        padding:
            0
            10px;

        font-size: 12px;
    }


    /*
       Reduce divider height to match the
       optimized navigation height.
    */

    .platform-header-navigation
    a:not(:last-child)::after {

        height: 22px;
    }


    /*
       ACCOUNT / POINTS / SETTINGS
    */

    .platform-header-actions {

        gap: 14px;
    }


    .platform-header-action {

        min-height: 38px;

        gap: 6px;

        font-size: 12px;
    }


    .platform-header-action i {

        font-size: 15px;
    }


    .platform-header-points strong {

        font-size: 13px;
    }


    .platform-header-chevron {

        margin-left: 0;

        font-size: 9px !important;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .platform-header {

        padding:
            max(
                18px,
                env(safe-area-inset-top)
            )
            0
            18px;
    }


    .platform-header-inner {

        position: relative;

        min-height: 58px;

        gap: 22px;
    }


    .platform-header-logo img {

        width: 170px;
    }


    /*
       PLATFORM NAVIGATION
    */

    .platform-header-navigation {

        position: absolute;

        top:
            calc(
                100% + 18px
            );

        left: 0;

        width: 100%;

        max-width: none;

        min-height: 0;

        padding: 12px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 4px;

border:
    1px solid
    rgba(
        255,
        255,
        255,
        0.14
    );

border-radius: 22px;

background:
    rgba(
        8,
        18,
        33,
        0.98
    );

backdrop-filter:
    blur(24px)
    saturate(180%);

-webkit-backdrop-filter:
    blur(24px)
    saturate(180%);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;

        z-index: 100000;
    }


    .platform-header-navigation.platform-navigation-open {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0);
    }


.platform-header-navigation a {

    flex: none;

    width: 100%;

    min-height: 50px;

    padding:
        0
        18px;

    justify-content: flex-start;

    color: #ffffff;

    font-size: 14px;

    text-align: left;
}


    .platform-header-navigation a:not(:last-child)::after {

        display: none;
    }


    /*
       HEADER ACTIONS
    */

    .platform-header-actions {

        margin-left: auto;

        gap: 20px;
    }


    .platform-header-action {

        font-size: 14px;
    }


    /*
       HAMBURGER
    */


.platform-header .platform-menu-toggle {

    order: 3;

    width: 48px;

    height: 48px;

    min-width: 48px;

    padding: 0;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.22
        );

    border-radius: 13px;

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    flex-shrink: 0;

    background: transparent;

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;
}


.platform-header .platform-menu-toggle > span {

    display: block;

    width: 22px;

    min-width: 22px;

    height: 2px;

    min-height: 2px;

    margin: 0;

    padding: 0;

    border: 0;

    border-radius: 999px;

    background: #ffffff;

    opacity: 1;

    transform: none;

    transform-origin: center;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.platform-header .platform-menu-toggle.platform-menu-open > span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}


.platform-header .platform-menu-toggle.platform-menu-open > span:nth-child(2) {

    opacity: 0;
}


.platform-header .platform-menu-toggle.platform-menu-open > span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .platform-header {

        padding:
            max(
                18px,
                env(safe-area-inset-top)
            )
            0
            18px;
    }


    .platform-header-inner {

        gap: 18px;
    }


    .platform-header-logo img {

        width: 160px;
    }


    .platform-header-actions {

        gap: 18px;
    }


    .platform-header-action {

        min-height: 42px;

        gap: 0;

        font-size: 15px;
    }


    /*
       Keep the action icons visible on smaller screens.
       Text labels collapse to preserve header width.
    */

    .platform-header-action > span {

        display: none;
    }


    .platform-header-signin {

        gap: 6px;
    }


    .platform-header-chevron {

        display: inline-block;
    }


    .platform-header-chevron[hidden] {

        display: none !important;
    }


    .platform-header-points strong {

        margin-left: 5px;

        font-size: 12px;
    }


    .platform-header-action i {

        font-size: 17px;
    }


    .platform-header-account-dropdown {

        top:
            calc(
                100% + 12px
            );

        right: -12px;

        width: 180px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .platform-header {

        padding:
            max(
                16px,
                env(safe-area-inset-top)
            )
            0
            16px;
    }


    .platform-header-inner {

        gap: 13px;
    }


    .platform-header-logo img {

        width: 145px;
    }


    .platform-header-actions {

        gap: 14px;
    }


    .platform-header-action {

        min-height: 40px;
    }


    .platform-header-action i {

        font-size: 16px;
    }


    .platform-header-points strong {

        font-size: 11px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .platform-header-logo img {

        width: 135px;
    }


    .platform-header-actions {

        gap: 11px;
    }


    .platform-header-account-dropdown {

        right: -20px;

        width: 170px;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .platform-header-action:hover {

        color: #ffffff;
    }


    .platform-header-points:hover {

        color: #ffffff;
    }


    .platform-header-points:hover i,
    .platform-header-points:hover strong {

        color: #fdb52b;
    }


    .platform-header-dropdown-item:hover {

        background: transparent;

        color: #081221;
    }


    .platform-header-dropdown-logout:hover {

        color: #d51f37;

        background: transparent;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .platform-header,
    .platform-header * {

        transition: none !important;

        animation: none !important;
    }

}