/* Master Panel Landing 1.0.5 — refined luxury header */
.mp-landing .mp-navbar {
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mp-landing .mp-navbar-inner {
    position: relative;
    isolation: isolate;
    padding-inline: 18px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .965), rgba(248, 250, 252, .90));
    box-shadow: 0 18px 50px rgba(15, 23, 42, .085), inset 0 1px 0 rgba(255, 255, 255, .92);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.mp-landing .mp-navbar-inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -1px;
    right: 7%;
    left: 7%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(var(--mp-primary-rgb, 30, 64, 175), .38), rgba(255, 255, 255, .9), rgba(var(--mp-primary-rgb, 30, 64, 175), .20), transparent);
}

.mp-landing.mp-header-edge .mp-navbar-inner {
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100vw - 1280px) / 2));
    border-inline: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 30px rgba(15, 23, 42, .065);
}

.mp-landing .mp-site-header.is-scrolled .mp-navbar-inner {
    border-color: rgba(148, 163, 184, .25);
    background: rgba(255, 255, 255, .975);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .115), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.mp-landing .mp-topbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, #172554 0%, var(--mp-primary) 48%, #1e3a8a 100%);
}

.mp-landing .mp-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .12) 48%, transparent 66%);
    transform: translateX(-120%);
    animation: mpHeaderGlow 9s ease-in-out infinite;
}

.mp-landing .mp-brand {
    flex: 0 0 auto;
}

.mp-landing .mp-brand-mark > i {
    background: rgba(var(--mp-primary-rgb, 30, 64, 175), .10);
}

.mp-landing .mp-brand-mark > b {
    box-shadow: 0 12px 28px rgba(var(--mp-primary-rgb, 30, 64, 175), .24);
}

.mp-landing .mp-nav-wrap {
    gap: 20px;
    min-width: 0;
}

/* Desktop navigation deliberately has no container box. */
.mp-landing .mp-nav-links {
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mp-landing .mp-nav-links a {
    position: relative;
    min-height: 46px;
    padding: 8px 11px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mp-body);
    white-space: nowrap;
    transition: color .2s ease, transform .2s ease;
}

.mp-landing .mp-nav-links a svg {
    color: #94a3b8;
    transition: color .2s ease, transform .2s ease;
}

.mp-landing .mp-nav-links a:hover {
    background: transparent;
    box-shadow: none;
    color: var(--mp-primary);
    transform: translateY(-1px);
}

.mp-landing .mp-nav-links a:hover svg {
    color: var(--mp-primary);
    transform: translateY(-1px);
}

.mp-landing .mp-nav-links a.is-active {
    background: transparent;
    box-shadow: none;
    color: var(--mp-primary);
    font-weight: 850;
}

.mp-landing .mp-nav-links a.is-active svg {
    color: var(--mp-primary);
}

.mp-landing .mp-nav-links a.is-active::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 3px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--mp-primary);
    box-shadow: 0 0 12px rgba(var(--mp-primary-rgb, 30, 64, 175), .42);
    transform: translateX(50%);
}

.mp-landing .mp-auth-actions {
    position: relative;
    flex: 0 0 auto;
    gap: 10px;
    padding-inline-start: 18px;
}

.mp-landing .mp-auth-actions::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, .34), transparent);
    transform: translateY(-50%);
}

.mp-landing .mp-login {
    min-height: 42px;
    padding: 9px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    transition: color .2s ease, transform .2s ease;
}

.mp-landing .mp-login:hover {
    border-color: transparent;
    background: transparent;
    color: var(--mp-primary);
    transform: translateY(-1px);
}

.mp-landing .mp-auth-actions .mp-button-small {
    position: relative;
    overflow: hidden;
    min-height: 44px;
    padding-inline: 18px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(var(--mp-primary-rgb, 30, 64, 175), .24), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.mp-landing .mp-auth-actions .mp-button-small::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, .18) 48%, transparent 68%);
    transform: translateX(-125%);
    transition: transform .55s ease;
}

.mp-landing .mp-auth-actions .mp-button-small:hover::after {
    transform: translateX(125%);
}

.mp-landing .mp-menu-toggle {
    border: 1px solid rgba(var(--mp-primary-rgb, 30, 64, 175), .11);
    background: rgba(var(--mp-primary-rgb, 30, 64, 175), .065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.mp-landing .mp-menu-toggle:hover {
    background: rgba(var(--mp-primary-rgb, 30, 64, 175), .10);
    transform: translateY(-1px);
}

.mp-user-menu {
    position: relative;
    min-width: 184px;
}

.mp-user-trigger {
    width: 100%;
    min-height: 48px;
    padding: 5px 7px 5px 9px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 14px;
    background: rgba(248, 250, 252, .62);
    color: var(--mp-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
    text-align: right;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mp-user-trigger:hover,
.mp-user-menu.is-open .mp-user-trigger {
    border-color: rgba(var(--mp-primary-rgb, 30, 64, 175), .20);
    background: rgba(var(--mp-primary-rgb, 30, 64, 175), .045);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055), inset 0 1px 0 rgba(255, 255, 255, .82);
    transform: translateY(-1px);
}

.mp-user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 12px;
    background: linear-gradient(145deg, #2563eb, var(--mp-primary));
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--mp-primary-rgb, 30, 64, 175), .22);
    font-size: 15px;
    font-weight: 900;
}

.mp-user-avatar-large {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 18px;
}

.mp-user-trigger-copy,
.mp-user-dropdown-head > span:last-child {
    min-width: 0;
    display: grid;
}

.mp-user-trigger-copy small {
    color: var(--mp-muted);
    font-size: 9px;
    line-height: 1.2;
}

.mp-user-trigger-copy strong {
    margin-top: 3px;
    overflow: hidden;
    color: var(--mp-text);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-user-chevron {
    display: grid;
    place-items: center;
    color: #94a3b8;
    transition: transform .2s ease, color .2s ease;
}

.mp-user-chevron svg {
    width: 15px;
    height: 15px;
    transform: rotate(-90deg);
}

.mp-user-menu.is-open .mp-user-chevron {
    color: var(--mp-primary);
    transform: rotate(180deg);
}

.mp-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 130;
    width: min(310px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 18px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.985);
    transform-origin: top left;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mp-user-menu.is-open .mp-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mp-user-dropdown-head {
    padding: 10px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(var(--mp-primary-rgb, 30, 64, 175), .065), rgba(248, 250, 252, .5));
}

.mp-user-dropdown-head strong {
    overflow: hidden;
    color: var(--mp-text);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-user-dropdown-head small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--mp-muted);
    font-size: 9px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-user-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.mp-user-shortcuts a {
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.mp-user-shortcuts a:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: var(--mp-primary);
}

.mp-user-shortcuts svg,
.mp-user-logout svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.mp-user-logout {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f7;
}

.mp-user-logout button {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #fee2e2;
    border-radius: 11px;
    background: #fff7f7;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 850;
    transition: background .18s ease, border-color .18s ease;
}

.mp-user-logout button:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

@keyframes mpHeaderGlow {
    0%, 64%, 100% { transform: translateX(-120%); }
    80% { transform: translateX(120%); }
}

@media (max-width: 1180px) and (min-width: 1024px) {
    .mp-landing .mp-navbar-inner { gap: 14px; padding-inline: 12px; }
    .mp-landing .mp-brand-copy small { display: none; }
    .mp-landing .mp-nav-wrap { gap: 12px; }
    .mp-landing .mp-nav-links a { padding-inline: 8px; font-size: 13px; }
    .mp-landing .mp-nav-links a svg { width: 13px; height: 13px; }
    .mp-landing .mp-auth-actions { padding-inline-start: 12px; }
    .mp-user-menu { min-width: 166px; }
}

@media (max-width: 1023px) {
    .mp-landing .mp-navbar-inner {
        padding-inline: 12px;
        border-radius: 18px;
    }

    .mp-landing .mp-navbar-inner::before {
        right: 12%;
        left: 12%;
    }

    .mp-landing .mp-nav-wrap {
        gap: 10px;
        padding: 12px;
        border-color: rgba(148, 163, 184, .20);
        background: rgba(255, 255, 255, .985);
        box-shadow: 0 24px 60px rgba(15, 23, 42, .15);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .mp-landing .mp-nav-links {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .mp-landing .mp-nav-links a {
        min-height: 44px;
        padding-inline: 12px;
        border-radius: 11px;
    }

    .mp-landing .mp-nav-links a:hover {
        background: rgba(var(--mp-primary-rgb, 30, 64, 175), .045);
        transform: none;
    }

    .mp-landing .mp-nav-links a.is-active {
        background: rgba(var(--mp-primary-rgb, 30, 64, 175), .065);
    }

    .mp-landing .mp-nav-links a.is-active::after {
        top: 10px;
        right: 3px;
        bottom: 10px;
        left: auto;
        width: 3px;
        height: auto;
        transform: none;
        box-shadow: 0 0 10px rgba(var(--mp-primary-rgb, 30, 64, 175), .28);
    }

    .mp-landing .mp-auth-actions {
        padding-top: 10px;
        padding-inline-start: 0;
        border-top: 1px solid #eef2f7;
    }

    .mp-landing .mp-auth-actions::before {
        display: none;
    }

    .mp-landing .mp-login {
        justify-content: center;
        min-height: 44px;
        border: 1px solid #e2e8f0;
        background: #fff;
    }

    .mp-landing .mp-login:hover {
        border-color: rgba(var(--mp-primary-rgb, 30, 64, 175), .18);
        background: rgba(var(--mp-primary-rgb, 30, 64, 175), .035);
        transform: none;
    }

    .mp-user-menu {
        width: 100%;
        min-width: 0;
    }

    .mp-user-trigger {
        min-height: 50px;
        background: #f8fafc;
    }

    .mp-user-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .12);
    }

    .mp-user-menu.is-open .mp-user-dropdown {
        display: block;
    }
}

@media (max-width: 640px) {
    .mp-landing .mp-navbar-inner { border-radius: 16px; }
    .mp-landing .mp-brand-copy small { display: none; }
    .mp-user-shortcuts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .mp-landing .mp-topbar::after { animation: none; }
    .mp-landing .mp-auth-actions .mp-button-small::after { display: none; }
}
