/* Shared navigation extracted from the original Charm Afrika pages. */
.charm-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:var(--charm-sidebar);
    height:100vh;
    z-index:9998;
    background:#fff;
    border-right:1px solid rgba(0,0,0,.07);
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:16px 10px;
}

.charm-sidebar .brand-wrap{
    width:100%;
    display:flex;
    justify-content:center;
    margin-bottom:18px;
}

.charm-sidebar .brand{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

.charm-sidebar .brand-logo{
    width:40px;
    height:40px;
    border-radius:14px;
    overflow:hidden;
    background:#111;
    border:1px solid rgba(0,0,0,.06);
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
}

.charm-sidebar .brand-logo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.charm-sidebar .rail-stack{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:9px;
}

.charm-sidebar .rail-item{
    position:relative;
    width:58px;
    height:58px;
    border:none;
    border-radius:18px;
    background:transparent;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#111;
    margin:0 auto;
    transition:.16s ease;
    text-decoration:none;
    padding:0;
    cursor:pointer;
}

.charm-sidebar .rail-item:hover{
    background:#f4f4f3;
    transform:translateY(-1px);
}

.charm-sidebar .rail-item.active{
    background:#500064;
    width:50px;
    height:50px;
    border-radius:40px;
    color:#fff;
    box-shadow:0 10px 24px rgba(0,0,0,.14);
}

.charm-sidebar .rail-icon{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
}

.charm-sidebar .rail-icon svg{
    width:24px;
    height:24px;
    display:block;
}

.charm-sidebar .rail-label{
    position:absolute;
    left:74px;
    top:50%;
    transform:translateY(-50%) translateX(-8px);
    padding:10px 14px;
    border-radius:14px;
    background:#111;
    color:#fff;
    font-size:13px;
    font-weight:750;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:.18s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.16);
}

.charm-sidebar .rail-label:before{
    content:"";
    position:absolute;
    left:-5px;
    top:50%;
    width:10px;
    height:10px;
    background:#111;
    transform:translateY(-50%) rotate(45deg);
    border-radius:2px;
}

.charm-sidebar .rail-item:hover .rail-label{
    opacity:1;
    transform:translateY(-50%) translateX(0);
}

.charm-sidebar .rail-bottom{
    margin-top:auto;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.charm-sidebar .profile-pill{
    width:48px;
    height:48px;
    border:1px solid rgba(0,0,0,.06);
    border-radius:50%;
    background:#f5f5f4;
    display:grid;
    place-items:center;
    overflow:hidden;
    text-decoration:none;
}

.charm-sidebar .profile-fallback{
    font-size:12px;
    font-weight:850;
    color:#111;
}

@media(max-width:900px){
    body{padding-left:0}
    .charm-sidebar{display:none}
}


.mobile-nav{display:none}
@media(max-width:820px){
    .main{padding-bottom:96px}
    .mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:9997;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:8px 8px calc(10px + env(safe-area-inset-bottom));border-radius:0px 0px 0 0;background:rgba(227, 227, 231, 0.92);border-top:1px solid rgba(255,255,255,.08);backdrop-filter:blur(20px);box-shadow:0 -10px 30px rgba(0,0,0,.28)}
    .mobile-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:52px;border:0;background:transparent;color:rgba(2, 2, 2, 0.744);text-decoration:none;border-radius:16px}
    .mobile-nav-item.active{color:#fff;background:rgba(0, 0, 0, 0.826)}
    .mobile-nav-icon{width:22px;height:22px;display:grid;place-items:center}.mobile-nav-icon svg{width:22px;height:22px}
    .mobile-nav-label{font-size:11px;font-weight:700;line-height:1}
    .mobile-nav-avatar{width:26px;height:26px;border-radius:50%;overflow:hidden;background:#26262b;border:1px solid rgba(255,255,255,.15)}
    .mobile-nav-avatar img{width:100%;height:100%;object-fit:cover}
}
.mobile-brand-header{display:none}
@media(max-width:767px){
    .mobile-brand-header{position:fixed;top:0;left:0;width:100%;height:74px;display:flex;align-items:center;padding:10px 18px;z-index:99999;background:linear-gradient(to bottom,rgba(0,0,0,.28),rgba(0,0,0,0));backdrop-filter:blur(2px)}
    .mobile-brand-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none!important;color:#fff!important}
    .mobile-brand-logo{width:42px;height:42px}.mobile-brand-logo img{width:100%;height:100%;object-fit:contain}
    .mobile-brand-name{display:flex;flex-direction:column;font:500 15px/1 "Outfit",sans-serif;letter-spacing:.02em;color:#fff;white-space:nowrap}
    .mobile-brand-name small{display:block;margin-top:4px;font:500 9px/1 "DM Sans",sans-serif;letter-spacing:.25em;text-transform:uppercase;opacity:.72}
}

