/* Corporate Design for Mister Printer - Responsive Header */

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

.mp-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.96)),
        radial-gradient(circle at top left, rgba(242, 195, 0, 0.16), transparent 34%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.20);
    backdrop-filter: blur(18px);
    font-family: Arial, Helvetica, sans-serif;
}

.mp-header-inner {
    max-width: 1320px;
    min-height: 86px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.mp-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 240px;
}

.mp-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    padding: 7px;
    box-shadow:
        0 12px 28px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.16);
}

.mp-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.mp-brand-text strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.mp-brand-text span {
    color: #f2c300;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mp-nav {
    display: flex;
    align-items: center;
}

.mp-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.mp-nav li {
    position: relative;
}

.mp-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1px;
    transition: all 0.22s ease;
}

.mp-nav a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.10);
    transform: translateY(-1px);
}

.mp-nav li.current a,
.mp-nav li.active a {
    color: #111827;
    background: linear-gradient(135deg, #f2c300, #ffd84d);
    box-shadow:
        0 10px 26px rgba(242, 195, 0, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.42);
}

.mp-nav li.current a::after,
.mp-nav li.active a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -11px;
    height: 3px;
    border-radius: 999px;
    background: #f2c300;
    box-shadow: 0 0 15px rgba(242, 195, 0, 0.75);
}

.mp-login-link a {
    margin-left: 6px;
    color: #111827;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.mp-login-link a:hover {
    color: #111827;
    background: #f2c300;
}

.mp-menu-toggle {
    display: none;
}

.mp-menu-button {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mp-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.25s ease;
}

@media screen and (max-width: 1024px) {
    .mp-header-inner {
        min-height: 78px;
        padding: 0 20px;
    }

    .mp-brand-text strong {
        font-size: 16px;
    }

    .mp-brand-text span {
        font-size: 11px;
    }

    .mp-nav a {
        padding: 0 11px;
        font-size: 13px;
    }
}

@media screen and (max-width: 860px) {
    .mp-header {
        position: sticky;
    }

    .mp-header-inner {
        min-height: 76px;
        position: relative;
    }

    .mp-logo-wrap {
        min-width: 0;
    }

    .mp-logo {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .mp-menu-button {
        display: flex;
    }

    .mp-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 12px);
        display: none;
        background:
            linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98));
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 24px;
        padding: 14px;
        box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
    }

    .mp-nav ul {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mp-nav a {
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding: 0 18px;
        border-radius: 16px;
        background: rgba(255,255,255,0.06);
    }

    .mp-nav a::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 99px;
        background: rgba(242,195,0,0.35);
        order: 2;
    }

    .mp-nav li.current a,
    .mp-nav li.active a {
        background: linear-gradient(135deg, #f2c300, #ffd84d);
        color: #111827;
    }

    .mp-nav li.current a::after,
    .mp-nav li.active a::after {
        display: none;
    }

    .mp-login-link a {
        margin-left: 0;
        background: #ffffff;
    }

    .mp-menu-toggle:checked ~ .mp-menu-button span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mp-menu-toggle:checked ~ .mp-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .mp-menu-toggle:checked ~ .mp-menu-button span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mp-menu-toggle:checked ~ .mp-nav {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .mp-header-inner {
        padding: 0 14px;
    }

    .mp-brand-text strong {
        font-size: 15px;
    }

    .mp-brand-text span {
        font-size: 10px;
        letter-spacing: 0.6px;
    }

    .mp-logo {
        width: 48px;
        height: 48px;
    }

    .mp-nav {
        left: 10px;
        right: 10px;
    }
}
