
/* =========================================================
   NAVBAR / HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 85px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 100%;
    height: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    gap: 35px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
========================================================= */

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo {
    width: 170px;
    height: auto;
    display: block;
    object-fit: contain;
}


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

.navbar {
    flex: 1;

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

    gap: 30px;
}

.navbar a {
    position: relative;

    color: #222222;
    text-decoration: none;

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

    white-space: nowrap;

    padding: 29px 0;

    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #f75c03;
}

.navbar a.active {
    color: #f75c03;
}


/* Underline */

.navbar a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 20px;

    width: 0;
    height: 2px;

    background: #f75c03;

    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;

    flex-shrink: 0;

    position: relative;
    z-index: 100;
}


/* =========================================================
   SEARCH
========================================================= */

.navbar-search {
    position: relative;

    display: flex;
    align-items: center;

    z-index: 200;
}


/* Search button */

.search-btn {
    width: 35px;
    height: 35px;

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

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    position: relative;
    z-index: 201;
}


/* Search icon */

.search-icon {
    width: 20px;
    height: 20px;

    border: 2.5px solid #222222;
    border-radius: 50%;

    position: relative;

    display: block;

    transition: border-color 0.25s ease;
}

.search-btn:hover .search-icon {
    border-color: #f75c03;
}


/* Search handle */

.search-icon::after {
    content: "";

    position: absolute;

    width: 9px;
    height: 2.5px;

    background: #222222;

    right: -7px;
    bottom: -4px;

    transform: rotate(45deg);

    transition: background 0.25s ease;
}

.search-btn:hover .search-icon::after {
    background: #f75c03;
}


/* =========================================================
   SEARCH BOX
========================================================= */

.search-box {
    position: absolute;

    right: 0;
    top: 48px;

    width: 280px;
    height: 44px;

    display: none;

    z-index: 999999;
}


/* Search box appears after clicking icon */

.search-box.active {
    display: block;
}


/* =====================================================
   SEARCH SUGGESTIONS
===================================================== */
.search-suggestions {
    position: absolute;
    top: 52px;
    right: 0;

    width: 320px;

    display: none;

    max-height: 420px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

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

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.14);

    z-index: 1000000;

    /* Hide scrollbar - Chrome, Edge, Safari */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar - Chrome, Edge, Safari */

.search-suggestions::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}


.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    padding: 13px 16px;
    font-size: 14px;
    color: #222222;
    background: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #fff3ec;
    color: #f75c03;
}

/* Search input */

.search-input {
    width: 280px;
    height: 44px;

    padding: 0 16px;

    border: 1px solid #dddddd;
    border-radius: 24px;

    background: #ffffff;
    color: #222222;

    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-input::placeholder {
    color: #999999;
}

.search-input:focus {
    border-color: #f75c03;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(247, 92, 3, 0.08);
}


/* =========================================================
   BROCHURE BUTTON
========================================================= */
.brochure-btn {
    height: 42px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;

    background: rgba(247, 92, 3, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;

    box-shadow:
        0 8px 25px rgba(247, 92, 3, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.brochure-btn span {
    font-size: 17px;
    line-height: 1;
}

.brochure-btn:hover {
    background: rgba(233, 79, 0, 0.82);
    transform: translateY(-1px);

    box-shadow:
        0 10px 28px rgba(247, 92, 3, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* =========================================================
   GLASSMORPHISM BROCHURE MODAL
========================================================= */

.brochure-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100000;
}

.brochure-modal.active {
    display: flex;
}

/* Frosted background overlay */
.brochure-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 45, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Main glass container */
.brochure-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 38px 34px 26px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;

    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.20),
        0 0 35px rgba(247, 92, 3, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    animation: brochureGlassIn 0.25s ease-out;
}

/* Subtle entrance */
@keyframes brochureGlassIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.brochure-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    color: #344054;

    font-size: 24px;
    line-height: 1;
    cursor: pointer;

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

/* =========================================================
   BROCHURE FORM
========================================================= */

.brochure-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.brochure-form label {
    color: #333333;

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

.brochure-form input {
    width: 100%;
    height: 44px;

    padding: 0 14px;

    border: 1px solid #dddddd;
    border-radius: 6px;

    background: #ffffff;

    font-size: 14px;

    outline: none;

    box-sizing: border-box;
}

.brochure-form input:focus {
    border-color: #f75c03;

    box-shadow: 0 0 0 2px rgba(247, 92, 3, 0.08);
}


/* Submit button */

.brochure-submit {
    width: 100%;
    height: 46px;

    margin-top: 5px;

    border: none;
    border-radius: 6px;

    background: #f75c03;
    color: #ffffff;

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

    cursor: pointer;

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

.brochure-submit:hover {
    background: #e94f00;
    transform: translateY(-1px);
}


/* =========================================================
   PREVENT PAGE SCROLL WHEN MODAL IS OPEN
========================================================= */

body.brochure-modal-open {
    overflow: hidden;
}


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

@media (max-width: 1200px) {

    .header-inner {
        padding: 0 20px;
        gap: 20px;
    }

    .navbar {
        gap: 20px;
    }

    .navbar a {
        font-size: 16px;
    }

    .logo {
        width: 150px;
    }

    .brochure-btn {
        padding: 0 14px;
        font-size: 12px;
    }
}


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

@media (max-width: 950px) {

    .header {
        height: 75px;
    }

    .header-inner {
        padding: 0 18px;
    }

    .logo {
        width: 140px;
    }

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 14px;
        padding: 25px 0;
    }

    .navbar a::after {
        bottom: 16px;
    }

    .brochure-btn {
        height: 38px;
        padding: 0 11px;
        font-size: 11px;
    }

    .search-box {
        top: 45px;
    }
}


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

@media (max-width: 768px) {

    .header {
        height: 70px;
    }

    .header-inner {
        padding: 0 15px;
        gap: 12px;
    }

    .logo {
        width: 125px;
    }

    .navbar {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        gap: 10px;
    }

    .search-btn {
        width: 34px;
        height: 34px;
    }

    .search-box {
        top: 45px;
        right: -5px;
        width: 260px;
    }

    .search-input {
        width: 260px;
    }

    .brochure-btn {
        height: 36px;

        padding: 0 10px;

        font-size: 10px;
    }

    .brochure-btn span {
        font-size: 15px;
    }
}


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

@media (max-width: 480px) {

    .header-inner {
        padding: 0 12px;
    }

    .logo {
        width: 115px;
    }

    .brochure-btn {
        padding: 0 8px;
        font-size: 9px;
    }

    .search-box {
        right: -10px;
        width: 240px;
    }

    .search-input {
        width: 240px;
    }

    .brochure-modal-content {
        padding: 28px 22px;
    }
}

/* =====================================================
   NAVBAR - GET OUR APP
===================================================== */

.navbar .app-btn,
.header .app-btn {
    height: 42px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;

    background: rgba(247, 92, 3, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(247, 92, 3, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.navbar .app-btn span,
.header .app-btn span {
    font-size: 17px;
    line-height: 1;
}

.navbar .app-btn:hover,
.header .app-btn:hover {
    background: rgba(233, 79, 0, 0.82);
    transform: translateY(-1px);

    box-shadow:
        0 10px 28px rgba(247, 92, 3, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* =====================================================
   APP DOWNLOAD POPUP
===================================================== */

.app-download-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

.app-download-modal.active {
    display: flex;
}

.app-download-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 21, 33, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-download-content {
    position: relative;
    width: 90%;
    max-width: 460px;
    padding: 38px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    text-align: center;
}

.app-download-content h2 {
    margin: 0 0 10px;
    color: #10243e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.app-download-content p {
    margin: 0 auto 25px;
    max-width: 340px;

    color: #5f6872;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.app-download-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(16, 36, 62, 0.07);
    color: #10243e;

    font-size: 23px;
    line-height: 1;
    cursor: pointer;

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

.app-download-close:hover {
    background: rgba(247, 92, 3, 0.12);
    color: #f75c03;
    transform: rotate(90deg);
}

.app-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-store-btn {
    min-height: 52px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    box-sizing: border-box;

    border-radius: 11px;
    border: 1px solid rgba(247, 92, 3, 0.25);

    background: #f75c03;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;

    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(247, 92, 3, 0.20);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.app-store-btn span {
    font-size: 17px;
}

.app-store-btn:hover {
    background: #e95600;
    color: #ffffff;
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(247, 92, 3, 0.28);
}


/* Mobile */

@media (max-width: 600px) {

    .app-download-content {
        width: calc(100% - 30px);
        padding: 32px 22px;
        border-radius: 18px;
    }

    .app-download-content h2 {
        font-size: 21px;
    }

    .app-download-content p {
        font-size: 13px;
    }

    .app-store-btn {
        font-size: 12px;
    }
}


.app-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.store-logo {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    object-fit: contain;
}

.google-play-logo {
    width: 28px;
    height: 28px;
}


.app-download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.app-badge-link {
    display: block;
    width: 200px;
    line-height: 0;
}

.app-store-badge {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ==========================================
   SHARED NAVBAR — CONSISTENT PAGE LAYOUT
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 85px;
    margin: 0;
    padding: 0;
    transform: none;
    box-sizing: border-box;
    z-index: 99999;
}

.header .header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.header .logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header .logo {
    display: block;
    width: 170px;
    max-width: none;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.header .navbar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.header .header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
}

@media (max-width: 1200px) {
    .header .header-inner {
        padding: 0 20px;
        gap: 20px;
    }

    .header .navbar {
        gap: 20px;
    }

    .header .logo {
        width: 150px;
    }
}

@media (max-width: 950px) {
    .header {
        height: 75px;
    }

    .header .logo {
        width: 140px;
    }

    .header .navbar {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header .header-inner {
        padding: 0 15px;
        gap: 12px;
    }

    .header .logo {
        width: 125px;
    }

    .header .navbar {
        display: none;
    }

    .header .header-actions {
        margin-left: auto;
        gap: 10px;
    }
}


/* =====================================================
   SHARED NAVBAR — RESPONSIVE FIXES
===================================================== */

.header,
.header * {
    box-sizing: border-box;
}

.header {
    width: 100%;
    max-width: 100%;
}

.header-inner {
    min-width: 0;
}

.logo-link {
    min-width: 0;
}

.logo {
    max-width: 100%;
    height: auto;
}

.header-actions {
    min-width: 0;
}

.search-box {
    max-width: calc(100vw - 24px);
}

.search-input {
    width: 100%;
    min-width: 0;
}

.search-suggestions {
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
}

/* Compact desktop and laptop screens */
@media (min-width: 769px) and (max-width: 1200px) {
    .header-inner {
        gap: 16px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .logo {
        width: 135px;
    }

    .navbar {
        gap: clamp(10px, 1.5vw, 18px);
    }

    .navbar a {
        font-size: 14px;
    }

    .header .app-btn,
    .brochure-btn {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
    }

    .header-actions {
        gap: 8px;
    }
}

/* Mobile header */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header-inner {
        width: 100%;
        padding: 0 15px;
        gap: 10px;
    }

    .navbar {
        display: none;
    }

    .logo {
        width: clamp(100px, 27vw, 125px);
    }

    .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .search-box {
        top: 44px;
        right: 0;
        width: min(280px, calc(100vw - 24px));
    }

    .search-input {
        width: 100%;
    }

    .search-suggestions {
        top: 50px;
        right: 0;
    }

    .brochure-btn,
    .header .app-btn {
        height: 36px;
        padding: 0 9px;
        font-size: 10px;
        gap: 5px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .header-inner {
        padding: 0 9px;
        gap: 6px;
    }

    .logo {
        width: 96px;
    }

    .header-actions {
        gap: 5px;
    }

    .search-btn {
        width: 30px;
        height: 32px;
    }

    .brochure-btn,
    .header .app-btn {
        padding: 0 6px;
        font-size: 9px;
    }

    .search-box {
        right: -2px;
        width: calc(100vw - 18px);
    }

    .brochure-modal-content {
        padding: 30px 18px 22px;
    }

    .app-download-content {
        padding: 32px 18px;
    }
}


/* ==========================================
   FINAL SHARED NAVBAR RESPONSIVE PATCH
========================================== */

.header,
.header-inner,
.header-actions {
    box-sizing: border-box;
    min-width: 0;
}

.header {
    width: 100%;
    max-width: 100%;
}

.header-inner {
    width: 100%;
    gap: clamp(8px, 1.5vw, 24px);
}

.logo {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Prevent search elements from exceeding the viewport */
.navbar-search {
    min-width: 0;
}

.search-box {
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
}

.search-input {
    width: 100%;
    min-width: 0;
}

.search-suggestions {
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
}

/* Compact laptops */
@media (min-width: 951px) and (max-width: 1200px) {
    .header-inner {
        padding-left: 18px;
        padding-right: 18px;
        gap: 14px;
    }

    .logo {
        width: 130px;
    }

    .navbar {
        gap: clamp(8px, 1vw, 14px);
    }

    .navbar a {
        font-size: 13px;
    }

    .header-actions {
        gap: 7px;
    }

    .brochure-btn,
    .header .app-btn {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 10px;
    }
}

/* Tablet and mobile */
@media (max-width: 950px) {
    .header-inner {
        padding-left: 14px;
        padding-right: 14px;
        gap: 10px;
    }

    .logo {
        width: clamp(100px, 18vw, 135px);
    }

    .navbar {
        gap: 10px;
    }

    .navbar a {
        font-size: 12px;
    }

    .header-actions {
        gap: 7px;
    }
}

/* Mobile header */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header-inner {
        padding: 0 12px;
        gap: 8px;
    }

    .logo {
        width: clamp(96px, 27vw, 125px);
    }

    /* Navigation stays hidden until a mobile menu exists */
    .navbar {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        gap: 7px;
    }

    .search-box {
        top: 44px;
        right: 0;
    }

    .search-suggestions {
        top: 50px;
        right: 0;
    }

    .brochure-btn,
    .header .app-btn {
        height: 35px;
        padding: 0 8px;
        font-size: 10px;
        gap: 5px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .header-inner {
        padding: 0 8px;
        gap: 5px;
    }

    .logo {
        width: 92px;
    }

    .header-actions {
        gap: 4px;
    }

    .search-btn {
        width: 30px;
        height: 32px;
    }

    .brochure-btn,
    .header .app-btn {
        padding: 0 5px;
        font-size: 9px;
    }

    .brochure-btn span,
    .header .app-btn span {
        font-size: 13px;
    }

    .brochure-modal-content,
    .app-download-content {
        padding: 28px 16px 22px;
    }
}


/* ==========================================
   MOBILE HAMBURGER NAVIGATION
========================================== */

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    font-size: 27px;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    color: #f75c03;
    border-color: #f75c03;
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header .header-inner {
        position: relative;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        order: 3;
    }

    .header .navbar {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 18px 20px;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #eeeeee;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 99999;
    }

    .header .navbar.mobile-menu-open {
        display: flex;
    }

    .header .navbar a {
        display: block;
        width: 100%;
        padding: 13px 4px;
        font-size: 15px;
        white-space: normal;
        border-bottom: 1px solid #f2f2f2;
    }

    .header .navbar a::after {
        display: none;
    }

    .header .navbar .app-btn {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }

    .header .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 380px) {
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header .header-inner {
        position: relative;
    }

    .header .navbar.mobile-menu-open {
        display: flex !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px 18px 20px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        z-index: 100000;
    }

    .header .navbar.mobile-menu-open a {
        display: block;
        width: 100%;
        padding: 13px 4px;
        color: #222;
        border-bottom: 1px solid #eee;
        text-decoration: none;
    }
}

/* TEMPORARY TEST: force navbar elements to show on mobile */
@media (max-width: 768px) {
    body .header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .header .logo,
    body .header .logo img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .mobile-menu-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100001 !important;
    }
}