﻿
:root {
    --mx-bg: #f6f8fc;
    --mx-paper: #ffffff;
    --mx-text: #111827;
    --mx-muted: #6b7280;
    --mx-line: #e5e7eb;
    --mx-primary: #fbbf24;
    --mx-primary-deep: #f59e0b;
    --mx-navy: #0f172a;
    --mx-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --mx-shadow-float: 0 14px 36px rgba(15, 23, 42, 0.14);
}

body {
    margin: 0;
    background: radial-gradient(1000px 340px at 94% -18%, rgba(251, 191, 36, 0.22), transparent 64%), linear-gradient(180deg, #f8fafd 0%, var(--mx-bg) 42%, #f4f7fb 100%);
    color: var(--mx-text);
    font-family: "DM Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.02em;
}

.mx-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid #e9eef6;
    backdrop-filter: blur(10px);
    transition: box-shadow .2s ease, background .2s ease;
}

    .mx-header.scrolled {
        box-shadow: var(--mx-shadow-soft);
        background: rgba(255, 255, 255, 0.95);
    }

.mx-header-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .brand img {
        width: 178px;
        height: auto;
        display: block;
    }

.mx-nav {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid #e9eef6;
    border-radius: 999px;
    padding: 0.3rem;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

    .mx-nav a {
        color: #475467;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
        padding: 0.46rem 0.74rem;
        border-radius: 999px;
        white-space: nowrap;
        transition: all .2s ease;
    }

        .mx-nav a:hover {
            color: #111827;
            background: #f8fafc;
        }

        .mx-nav a.active-tab {
            color: #92400e;
            border: 1px solid #fcd34d;
            background: #fffbeb;
        }

.mx-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mx-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--mx-line);
    background: #fff;
    color: #111827;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mx-chip {
    border: 1px solid var(--mx-line);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    color: #111827;
    background: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .2s ease;
}

    .mx-chip:hover {
        border-color: #d8dee9;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
        color: #111827;
    }

.mx-chip-primary {
    border-color: #fcd34d;
    background: linear-gradient(95deg, #fbbf24, #ffd966);
    font-weight: 800;
}

.mx-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--mx-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none;
    background: #fff;
    transition: all .2s ease;
}

    .mx-icon-btn:hover {
        border-color: #fbbf24;
        background: #fffbeb;
        transform: translateY(-1px);
    }

.mx-shell {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1rem 1rem 1.25rem;
}

.mx-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

    .mx-drawer-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.mx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 360px);
    background: #fff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -16px 0 28px rgba(15, 23, 42, 0.18);
    z-index: 1085;
    transform: translateX(100%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
}

    .mx-drawer.show {
        transform: translateX(0);
    }

.mx-drawer-head {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mx-drawer-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mx-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
}

.mx-drawer-body {
    padding: 0.8rem 1rem 1rem;
    overflow-y: auto;
    display: grid;
    gap: 0.85rem;
}

.mx-drawer-section {
    display: grid;
    gap: 0.35rem;
}

.mx-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.58rem 0.65rem;
    border: 1px solid transparent;
}

    .mx-drawer-link:hover {
        background: #fff7db;
        border-color: #fde68a;
        color: #92400e;
    }

    .mx-drawer-link.active-tab {
        background: #111827;
        color: #fff;
    }

.mx-drawer-user {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.7rem;
    background: #f8fafc;
}

.mx-footer {
    border-top: 1px solid #e9eef6;
    margin-top: 2.5rem;
    background: radial-gradient(900px 240px at 10% -60%, rgba(251,191,36,0.22), transparent 58%), #ffffff;
    color: var(--mx-muted);
}

.mx-footer-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.4rem 1rem 1.2rem;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 1rem;
}

.mx-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    font-weight: 800;
    text-decoration: none;
    font-family: "Sora", sans-serif;
}

    .mx-footer-brand i {
        color: #f59e0b;
    }

.mx-footer-copy {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 45ch;
}

.mx-footer-title {
    margin: 0 0 0.55rem;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mx-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.36rem;
}

    .mx-footer-links a {
        color: #475467;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: color .2s ease, transform .2s ease;
    }

        .mx-footer-links a:hover {
            color: #111827;
            transform: translateX(2px);
        }

.mx-footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    border-top: 1px solid #eef2f7;
    padding: 0.85rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.86rem;
}

.mx-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

    .mx-socials a {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        color: #111827;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        transition: all .2s ease;
    }

        .mx-socials a:hover {
            border-color: #fbbf24;
            background: #fffbeb;
            transform: translateY(-1px);
        }

.mx-anim-in {
    animation: mxFadeIn .35s ease both;
}

@keyframes mxFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

@media (max-width: 992px) {
    .mx-header-wrap {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .brand {
        order: 1;
    }

        .brand img {
            width: 148px;
        }

    .mx-right {
        order: 2;
        margin-left: auto;
        gap: 0.4rem;
    }

    .mx-menu-btn {
        display: inline-flex;
    }

    .mx-right .mx-chip {
        max-width: 120px;
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .mx-right .mx-icon-btn {
        width: 34px;
        height: 34px;
    }

    .mx-nav {
        display: none;
    }

    .mx-footer-wrap {
        grid-template-columns: 1fr;
    }

    .mx-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .mx-right .mx-chip {
        display: none;
    }

    .mx-right form .mx-chip {
        display: inline-flex;
    }
}

