@media (max-width: 1023px) {
    .mobile-text {
        display: inline !important;
    }

    .current-time,
    .lang-selector,
    .desktop-availability {
        display: none !important;
    }

    header {
        padding: 10px 15px !important;
        align-items: center;
    }

    header.header-scrolled {
        margin: 10px 15px !important;
        width: calc(100% - 30px) !important;
        padding: 5px 15px !important;
        background: rgba(255, 252, 248, 0.65) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }

    /* theDarkKnight active state scrolled mode inversion if needed */
    body.dark-knight-mode header.header-scrolled {
        background: rgba(30, 30, 30, 0.85) !important;
    }

    .hamburger-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: var(--text-dark);
        margin-left: 0;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1003;
        cursor: pointer;
        transition: opacity 0.3s ease;
        pointer-events: auto;
    }

    .hamburger-icon svg {
        width: 100%;
        height: 100%;
        stroke: currentColor;
    }

    .header-left {
        gap: 15px !important;
        margin-left: 44px;
        /* 15px left + 24px icon + 5px gap */
        align-items: center;
    }

    .header-profile {
        transform: none !important;
        opacity: 1 !important;
        max-width: 100% !important;
        margin-left: 0;
        gap: 10px;
        align-items: center;
        overflow: visible !important;
        white-space: normal !important;
    }

    .header-profile-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header-name {
        display: block !important;
        font-size: 14px;
        line-height: 1.2;
        color: var(--text-dark);
        margin-bottom: 2px;
    }

    .mobile-availability {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 500;
        margin-top: 4px;
    }

    .mobile-availability .status-dot-container {
        width: 6px;
        height: 6px;
        margin-top: 0;
    }

    .mobile-availability .ripple {
        width: 6px;
        height: 6px;
    }

    .header-right {
        margin-left: auto;
        /* push to far right */
    }

    /* Keep Dark Knight styles from desktop (no overrides needed here) */

    .dynamic-island-container.desktop-island-container {
        display: none !important;
    }

    .mobile-island-container {
        display: block !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        /* Let clicks pass through if not expanded */
        z-index: 1002;
        /* sit right above header */
    }

    .m-dynamic-island {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), height 0.4s cubic-bezier(0.19, 1, 0.22, 1), background 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-radius 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        pointer-events: auto;
        color: var(--color-white);
        overflow: hidden;
    }

    .m-dynamic-island.expanded {
        width: calc(100% - 25px);
        height: calc(100% - 10px);
        background: var(--island-bg);
        border-radius: 50px;
        padding: 0 15px;
    }

    .m-dynamic-island.expanded~.hamburger-icon {
        opacity: 0;
        pointer-events: none;
    }

    .island-content {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-evenly;
        opacity: 0;
        width: 100%;
        height: 100%;
        transition: opacity 0.3s ease 0.1s;
    }

    .m-dynamic-island.expanded .island-content {
        opacity: 1;
    }

    .island-link-mobile {
        display: block;
        color: var(--rgba-white-70);
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
    }

    .dark-knight-btn {
        width: 45px;
        height: 30px;
    }

    .dark-knight-btn picture,
    .dark-knight-btn img {
        width: 45px;
        height: 30px;
    }
}