/*
 * Earn Spot
 * Header Styles
 */
/* =========================================================
   HEADER VARIABLES
   ========================================================= */
.es-live-header {
    --ink: #091a32;
    --blue: #0d548e;
    --red: #ef3c51;
    --line: #dce2e8;
    --muted: #657284;

    width: 100%;
    display: block;

    font-family: "DM Sans", Arial, sans-serif;
    color: var(--ink);

    position: relative;
    z-index: 1000;
}
.es-live-header *,
.es-live-header *::before,
.es-live-header *::after {
    box-sizing: border-box;
}
.es-live-header a {
    color: inherit;
    text-decoration: none;
}
.es-live-header button {
    font: inherit;
    cursor: pointer;
}
/* =========================================================
   TOP BAR
   ========================================================= */
.es-live-header .topline {
    width: 100%;
    height: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1280px) / 2));
    background: #08182c;
    color: #afbdcc;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: sentensecase;
    position: relative;
    z-index: 1100;
    overflow: hidden;
}
.es-live-header .topline > a {
    display: block;
    color: #fff;
    white-space: nowrap;
}
.es-live-header .visitor-counter {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dce7f1;
    white-space: nowrap;
}
.es-live-header .visitor-counter i {
    display: block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #67e7a6;
    box-shadow:
        0 0 0 5px rgba(103, 231, 166, 0.12);
    animation: earnspotLivePulse 2s infinite;
}
.es-live-header .visitor-counter b {
    color: #fff;
}
.es-live-header .visitor-counter span {
    color: #aebdcb;
}
@keyframes earnspotLivePulse {
    50% {
        transform: scale(0.7);

        box-shadow:
            0 0 0 10px rgba(103, 231, 166, 0);
    }
}
/* =========================================================
   MAIN HEADER
   ========================================================= */
.es-live-header .catalog-header {
    width: calc(100% - 36px);
    height: 82px;
    display: flex;
    align-items: center;
    margin: 0 18px;
    padding: 0 max(26px, calc((100vw - 1240px) / 2));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d7e1e9;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    position: sticky;
    top: 0;
    z-index: 1001;
    overflow: visible;
    backdrop-filter: blur(14px);
    box-shadow:
        0 8px 24px rgba(9, 26, 50, 0.07);
}
/* =========================================================
   LOGO
   ========================================================= */
.es-live-header .catalog-logo {
    width: 180px;
    max-width: 180px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}
.es-live-header .catalog-logo:hover {
    transform: scale(1.035);
}
.es-live-header .catalog-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    object-fit: contain;
}
/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */
.es-live-header .catalog-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.es-live-header .catalog-nav a,
.es-live-header .catalog-nav button {
    display: inline-flex;
    align-items: center;
    padding: 31px 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #253951;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.es-live-header .catalog-nav button span {
    margin-left: 5px;
}
.es-live-header .catalog-nav a:hover,
.es-live-header .catalog-nav button:hover,
.es-live-header .catalog-nav button[aria-expanded="true"] {
    background: #f1f5f8;
    color: var(--blue);
}
/* =========================================================
   HEADER CTA
   ========================================================= */
.es-live-header .header-cta {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 14px;
    padding: 14px 18px;
    background: var(--red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow:
        0 12px 28px rgba(239, 60, 81, 0.20);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.es-live-header .header-cta span {
    margin-left: 10px;
}
.es-live-header .header-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 35px rgba(239, 60, 81, 0.30);
}
/* =========================================================
   MOBILE TOGGLE
   ========================================================= */
.es-live-header .es-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(210, 220, 229, 0.9);
    border-radius: 12px;
    background: #fff;
    color: var(--blue);
    box-shadow:
        0 4px 12px rgba(9, 26, 50, 0.05);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.es-live-header .es-mobile-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-1px);
}
.es-live-header .es-mobile-toggle:hover {
    background: #f1f5f8;
    color: var(--red);
    border-color: rgba(239, 60, 81, 0.35);
}
.es-live-header .es-mobile-toggle[aria-expanded="true"] {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.es-live-header .es-mobile-toggle[aria-expanded="true"]:hover {
    background: #e33349;
    border-color: #e33349;
    color: #fff;
}
/* =========================================================
   DESKTOP MEGA MENU
   ========================================================= */
.es-live-header .catalog-mega {
    position: fixed;
    left: 10px;
    right: 10px;
    top: var(--es-mega-top, 116px);
    width: auto;
    margin: 0;
    padding: 42px max(24px, calc((100vw - 1280px) / 2));
    background: #fff;
    border: 1px solid #dbe4eb;
    border-top-color: #eef2f5;
    border-radius: 0 0 38px 38px;
    box-shadow:
        0 14px 32px rgba(9, 26, 50, 0.09);
    grid-template-columns:
        310px minmax(0, 1fr);
    gap: 45px;
    max-height:
        calc(100dvh - var(--es-mega-top, 116px) - 8px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--red) #edf2f6;

    z-index: 1010;

    animation:
        earnspotPremiumMenu
        0.35s
        cubic-bezier(0.2, 0.75, 0.25, 1);
}

.es-live-header .catalog-mega[aria-hidden="false"] {
    display: grid;
}

.es-live-header .catalog-mega[aria-hidden="true"] {
    display: none;
}

.es-live-header .catalog-mega::-webkit-scrollbar,
.es-live-header .es-mobile-menu::-webkit-scrollbar {
    width: 9px;
}

.es-live-header .catalog-mega::-webkit-scrollbar-thumb,
.es-live-header .es-mobile-menu::-webkit-scrollbar-thumb {
    background:
        linear-gradient(var(--red), var(--blue));

    border: 2px solid #edf2f6;
    border-radius: 10px;
}

@keyframes earnspotPremiumMenu {

    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   MEGA MENU LEAD
   ========================================================= */

.es-live-header .mega-lead {
    align-self: start;

    position: sticky;
    top: 0;

    z-index: 2;

    padding: 28px;

    background: #f3f6f9;

    border-radius: 24px;

    box-shadow:
        inset 0 0 0 1px rgba(13, 84, 142, 0.06);
}

.es-live-header .mega-lead small {
    display: block;

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

    letter-spacing: 0.15em;

    color: var(--blue);
}

.es-live-header .mega-lead h2 {
    margin: 17px 0;

    font-family: Manrope, sans-serif;

    font-size: 27px;
    line-height: 1.15;
    font-weight: 400;

    letter-spacing: -0.045em;
}

.es-live-header .mega-lead p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: var(--muted);
}

.es-live-header .mega-lead > a {
    display: inline-block;

    margin-top: 18px;

    color: var(--red);

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

.es-live-header .mega-lead.dark {
    background: #0d3156;
    color: #fff;
}

.es-live-header .mega-lead.dark small {
    color: #f67a88;
}

.es-live-header .mega-lead.dark p {
    color: #b8c7d6;
}

.es-live-header .mega-lead.dark a {
    color: #fff;
}


/* =========================================================
   SERVICES MENU
   ========================================================= */

.es-live-header .mega-items {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 0 28px;
}

.es-live-header .mega-items > a {
    display: grid;

    grid-template-columns:
        32px minmax(0, 1fr) 20px;

    gap: 12px;

    align-items: center;

    min-height: 0;

    padding: 12px 10px;

    border-bottom: 1px solid #e6ebf0;
    border-radius: 10px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.es-live-header .mega-items > a:hover {
    background: #f2f6f9;

    transform: translateX(4px);
}

.es-live-header .mega-items > a > b {
    font-size: 14px;
    color: var(--red);
}

.es-live-header .mega-items > a > span {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.es-live-header .mega-items strong {
    font-size: 14px;
    line-height: 1.3;
}

.es-live-header .mega-items small {
    font-size: 14px;
    line-height: 1.4;

    color: var(--muted);
}

.es-live-header .mega-items i {
    font-style: normal;
    color: var(--blue);
}


/* =========================================================
   PRODUCT MENU
   ========================================================= */

.es-live-header .product-columns {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-content: start;
}

.es-live-header .product-columns > div {
    display: flex;
    flex-direction: column;
}

.es-live-header .product-columns h4 {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.2;

    letter-spacing: 0.14em;

    color: var(--red);

    text-transform: uppercase;
}

.es-live-header .product-columns a {
    display: flex;

    justify-content: space-between;
    align-items: center;

    min-height: 0;

    padding: 8px 10px;

    border-bottom: 1px solid #e8ecf0;
    border-radius: 10px;

    font-size: 14px;
    line-height: 1.4;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.es-live-header .product-columns a:hover {
    background: #f2f6f9;

    transform: translateX(4px);
}

.es-live-header .product-columns a span {
    color: #9aa5b1;
}


/* =========================================================
   MOBILE MENU BASE
   ========================================================= */

.es-live-header .es-mobile-menu {
    display: none;

    position: fixed;

    left: 10px;
    right: 10px;

    top: var(--es-mega-top, 116px);

    max-height:
        calc(100dvh - var(--es-mega-top, 116px) - 8px);

    padding: 25px;

    grid-template-columns: 1fr 1fr;

    gap: 8px 30px;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    background: #fff;

    border: 1px solid #dbe4eb;
    border-radius: 0 0 24px 24px;

    box-shadow:
        0 20px 40px rgba(9, 26, 50, 0.15);

    scrollbar-width: thin;
    scrollbar-color: var(--red) #edf2f6;

    z-index: 1010;
}

.es-live-header .es-mobile-menu[aria-hidden="false"] {
    display: grid;
}

.es-live-header .es-mobile-menu[aria-hidden="true"] {
    display: none;
}

.es-live-header .es-mobile-menu h4 {
    grid-column: 1 / -1;

    margin: 15px 0 3px;

    font-size: 14px;
    line-height: 1.2;

    color: var(--red);
}

.es-live-header .es-mobile-menu a {
    display: block;

    padding: 7px 0;

    border-bottom: 1px solid var(--line);

    font-size: 14px;
    line-height: 1.4;
}


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

@media (max-width: 1200px) {

    .es-live-header .catalog-nav a,
    .es-live-header .catalog-nav button {
        padding-left: 9px;
        padding-right: 9px;

        font-size: 14px;
    }

    .es-live-header .header-cta {
        padding: 14px 17px;

        font-size: 14px;
    }

    .es-live-header .catalog-mega {
        grid-template-columns:
            320px minmax(0, 1fr);

        gap: 35px;
    }

    .es-live-header .mega-items strong {
        font-size: 15px;
    }

    .es-live-header .mega-items small {
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE / TABLET NAVIGATION
   ========================================================= */

@media (max-width: 1000px) {

    .es-live-header .catalog-nav,
    .es-live-header .header-cta,
    .es-live-header .catalog-mega {
        display: none !important;
    }

    .es-live-header .catalog-header {
        width: calc(100% - 24px);

        margin: 0 12px;
    }

    .es-live-header .es-mobile-toggle {
        display: flex !important;
    }

    .es-live-header .es-mobile-menu[aria-hidden="false"] {
        display: grid !important;
    }
}


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

@media (max-width: 700px) {

    /* -----------------------------------------
       TOP BAR
       ----------------------------------------- */

    .es-live-header .topline {
        display: flex !important;

        width: 100% !important;

        height: 34px !important;
        min-height: 34px !important;

        margin: 0 !important;
        padding: 0 15px !important;

        align-items: center !important;
        justify-content: center !important;

        background: #08182c !important;
        color: #afbdcc !important;

        position: relative !important;

        z-index: 1100 !important;

        overflow: hidden !important;
    }

    .es-live-header .topline > a {
        display: none !important;
    }

    .es-live-header .visitor-counter {
        display: flex !important;

        align-items: center !important;

        gap: 7px;

        width: auto;

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

        white-space: nowrap;
    }

    .es-live-header .visitor-counter i {
        display: block !important;

        flex: 0 0 8px;

        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
    }

    .es-live-header .visitor-counter b {
        display: inline !important;

        color: #fff !important;
    }

    .es-live-header .visitor-counter span {
        display: inline !important;

        color: #aebdcb !important;
    }


    /* -----------------------------------------
       MAIN HEADER
       ----------------------------------------- */

    .es-live-header .catalog-header {
        width: calc(100% - 16px) !important;

        height: 70px !important;

        margin: 0 8px !important;

        padding: 0 20px !important;

        border-radius: 0 0 18px 18px !important;

        position: sticky !important;
        top: 0 !important;

        z-index: 1001 !important;
    }


    /* -----------------------------------------
       LOGO
       ----------------------------------------- */

    .es-live-header .catalog-logo {
        width: 145px !important;
        max-width: 145px !important;

        display: flex !important;

        flex: 0 0 145px;
    }

    .es-live-header .catalog-logo img {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        opacity: 1 !important;
        visibility: visible !important;
    }


    /* -----------------------------------------
       MOBILE BUTTON
       ----------------------------------------- */

    .es-live-header .es-mobile-toggle {
        display: flex !important;

        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;
        min-height: 40px !important;

        margin-left: auto !important;
    }

    .es-live-header .es-mobile-toggle-icon {
        font-size: 18px;
    }


    /* -----------------------------------------
       MOBILE MENU
       ----------------------------------------- */

    .es-live-header .es-mobile-menu {
        left: 10px !important;
        right: 10px !important;

        top: var(--es-mega-top, 104px) !important;

        max-height:
            calc(100dvh - var(--es-mega-top, 104px) - 8px);

        grid-template-columns: 1fr !important;

        padding: 20px !important;

        gap: 8px 0;
    }

    .es-live-header .es-mobile-menu h4 {
        grid-column: auto !important;
    }
}