/* =========================================================
   TOPBAR / HEADER / MEGA MENU
   ========================================================= */

:root{
    --mp-burgundy:#8f0f16;
    --mp-topbar-height:72px;
}

body{
    padding-top:var(--mp-topbar-height);
}

.topbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    background:var(--mp-burgundy);
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.10);
    box-shadow:0 8px 24px rgba(0,0,0,.10);
}

.topbar__inner{
    max-width:var(--mp-max-width);
    margin:0 auto;
    min-height:var(--mp-topbar-height);
    padding:0 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

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

.brand__logo{
    display:block;
    height:48px;
    width:auto;
    max-width:none;
    flex:0 0 auto;
}

.topbar__actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex:0 0 auto;
}

.topbar__icon-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:0 14px;
    border-radius:999px;
    color:#fff;
    text-decoration:none;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    transition:background-color .18s ease, border-color .18s ease;
}

.topbar__icon-link:hover{
    background:rgba(255,255,255,.14);
    border-color:rgba(255,255,255,.20);
}

.topbar__icon{
    width:18px;
    height:18px;
    display:block;
    flex:0 0 auto;
}

.topbar__icon-text{
    font-size:.92rem;
    font-weight:700;
    line-height:1;
}

.topbar__pay-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:999px;
    background:#fff;
    color:var(--mp-burgundy);
    text-decoration:none;
    font-size:.92rem;
    font-weight:800;
    white-space:nowrap;
    transition:transform .15s ease, opacity .15s ease;
}

.topbar__pay-btn:hover{
    opacity:.95;
    transform:translateY(-1px);
}

.topbar__menu-toggle{
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    padding:0;
}

.topbar__menu-toggle:hover{
    background:rgba(255,255,255,.14);
}

.topbar__menu-lines{
    width:18px;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.topbar__menu-lines span{
    display:block;
    width:100%;
    height:2px;
    border-radius:999px;
    background:currentColor;
}

.topbar__mega{
    background:#fff;
    color:var(--mp-text);
    border-top:1px solid rgba(17,24,39,.06);
    border-bottom:1px solid rgba(17,24,39,.08);
    box-shadow:0 18px 34px rgba(17,24,39,.10);
}

.topbar__mega-inner{
    max-width:var(--mp-max-width);
    margin:0 auto;
    padding:28px 24px 30px;
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:28px;
}

.topbar__mega-col{
    min-width:0;
}

.topbar__mega-col--extras{
    padding-left:8px;
    border-left:1px solid rgba(17,24,39,.08);
}

.topbar__mega-title-link{
    display:inline-block;
    text-decoration:none;
}

.topbar__mega-title{
    font-size:1rem;
    line-height:1.2;
    margin:0 0 16px 0;
    color:var(--mp-burgundy);
}

.topbar__mega-group + .topbar__mega-group{
    margin-top:16px;
}

.topbar__mega-link{
    display:block;
    padding:10px 0;
    color:var(--mp-text);
    text-decoration:none;
    border-bottom:1px solid rgba(17,24,39,.06);
    line-height:1.4;
}

.topbar__mega-link--section{
    font-weight:800;
    padding:0 0 8px 0;
    border-bottom:none;
}

.topbar__mega-sublist{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.topbar__mega-sublink{
    display:block;
    color:var(--mp-muted);
    text-decoration:none;
    line-height:1.4;
    font-size:.92rem;
}

.topbar__mega-sublink:hover,
.topbar__mega-link:hover,
.topbar__mega-title-link:hover .topbar__mega-title{
    color:var(--mp-burgundy);
}

@media (max-width: 1024px){
    .topbar__mega-inner{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .topbar__mega-col--extras{
        border-left:none;
        padding-left:0;
    }
}

@media (max-width: 768px){
    :root{
        --mp-topbar-height:64px;
    }

    .topbar__inner{
        padding:0 16px;
        gap:10px;
    }

    .brand__logo{
        height:40px;
    }

    .topbar__icon-text{
        display:none;
    }

    .topbar__icon-link{
        width:40px;
        min-width:40px;
        padding:0;
        justify-content:center;
    }

    .topbar__pay-btn{
        min-height:40px;
        padding:0 12px;
        font-size:.84rem;
    }

    .topbar__mega-inner{
        grid-template-columns:1fr;
        padding:20px 16px 22px;
        gap:20px;
    }
}

@media (max-width: 640px){
    .topbar__pay-btn{
        display:none;
    }
}