header {
    position: static;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    transition: top 400ms ease;
    border-bottom: 1px solid #dcdcdc;
    box-shadow: 0 1px 0 #e6e6e6;
}

body.topbar-hidden .header-main {
    top: 0;
}

.header-logo-container {
    height: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 40px;
}

.header-logo {
    height: 100%;
    width: auto;
}

.header-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.header-links a {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 40px;
}

.header-links a .fa-calculator,
.header-links a .fa-circle-info,
.header-links a .fa-user {
    font-size: 26px;
}

.header-contact-link {
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
}

.header-contact-link i {
    color: #FFB517;
    font-size: 13px;
    margin-right: 5px;
}

.header-contact-link i {
    color: #FFB517;
    font-size: 13px;
}

.header-links a:last-child {
    margin-right: 0;
}

.header-links a {
    position: relative;
}

#c-cursor-tooltip {
    position: fixed;
    background-color: #222;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.header-profile-dropdown-btn {
    border: 1px solid #fafafa;
    border-radius: 12px;
    outline: none;
    color: #222;
    background-color: #fafafa;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjE5MyIgdmlld0JveD0iMCAwIDMyMCAxOTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xODIuNiAxODMuNkMxNzAuMSAxOTYuMSAxNDkuOCAxOTYuMSAxMzcuMyAxODMuNkw5LjI5OTY1IDU1LjYwMDRDMC4wOTk2NTMyIDQ2LjQwMDQgLTIuNjAwMzUgMzIuNzAwNCAyLjM5OTY1IDIwLjcwMDRDNy4zOTk2NSA4LjcwMDQxIDE4Ljk5OTcgMC45MDAzOTEgMzEuOTk5NyAwLjkwMDM5MUgyODhDMzAwLjkgMC45MDAzOTEgMzEyLjYgOC43MDA0MSAzMTcuNiAyMC43MDA0QzMyMi42IDMyLjcwMDQgMzE5LjggNDYuNDAwNCAzMTAuNyA1NS42MDA0TDE4Mi43IDE4My42SDE4Mi42WiIgZmlsbD0iI0ZGQjUxNyIvPgo8L3N2Zz4K");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: auto 7px;
    padding: 15px 42px 15px 20px;
    cursor: pointer;
}

.header-profile-dropdown-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.header-profile-dropdown {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background-color: #FFFFFF;
    opacity: 0;
    display: flex;
    flex-direction: column;
    padding: 40px;
    transform: translateY(80px);
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    z-index: 3;
    visibility: hidden;
    transition: 0.4s;
}

.header-profile-dropdown._active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.header-profile-dropdown > a {
    width: max-content;
    margin-top: 20px;
}

.header-profile-dropdown > a:first-child {
    margin-top: 0;
}

.sign-out-link {
    color: #d32f2f;
}

.mobile-header-open-btn {
    display: none;
    flex-direction: column;
    margin-top: 7px;
    cursor: pointer;
}

.mobile-header-open-btn > div {
    width: 28px;
    height: 2px;
    border-radius: 12px;
    margin-top: 6px;
    background-color: #222;
}

.mobile-header-open-btn._active > div {
    background-color: #FFB517;
}

.mobile-header {
    opacity: 0;
    padding: 0 40px;
    transform: translateY(80px);
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 1100;
    visibility: hidden;
    transition: 0.4s;
    pointer-events: none;
}

.mobile-header._active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-header-links {
    border: 1px solid #e6e6e6;
    border-radius: 12px 12px 0 0;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 16px;
    min-height: 100%; 
}

.mobile-header-links > a {
    margin-top: 12px;
}

.mobile-header-links > div {
    display: flex;
    margin-top: 12px;
}

.mobile-header-links > div > a {
    flex: 1;
    text-align: center;
}

.mobile-header-links > a:first-child,
.mobile-header-links > div:first-child {
    margin-top: 0;
}

.mobile-header-dropdown-btn {
    width: 100%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.mobile-header-dropdown-btn-icon {
    width: 12px;
}

main {
    margin-top: 0;
    transition: margin-top 400ms ease;
}

.c-signup-btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.c-signup-btn i {
    margin-right: 6px;
}

@media only screen and (max-width: 800px) {
    .header-links {
        margin-right: 20px;
        display: none;
    }

    .mobile-header-open-btn {
        display: flex;
    }

    .mobile-header {
    padding: 0 20px;
    top: 58px;
    bottom: 0;
    overflow-y: auto;
}
}

@media only screen and (max-width: 600px) {
    .header-main {
        padding: 18px 20px;
        top: 58px; /* ← 32px → 58px */
        transition: top 0.3s ease;
    }

    body.topbar-hidden .header-main {
        top: 0;
    }

    .header-logo-container {
        height: 40px;
        display: flex;
        align-items: center;
        cursor: pointer;
        margin-left: 0;
    }

    .mobile-header {
        padding: 0;
        top: 58px;
        bottom: 0;
        overflow-y: auto;
    }

    .ia-header-line-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1002;
    }
}
