/* ==========================================================================
   Sidebar drawer (slides in on every device, like the acacia_habitants layout)
   ========================================================================== */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(6, 24, 79, .55); backdrop-filter: blur(3px); z-index: 2000; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 340px); background: #fff; z-index: 2100; transform: translateX(-105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-radius: 0 28px 28px 0; visibility: hidden; }
.mobile-sidebar.open { transform: none; visibility: visible; }
.mobile-sidebar-header { background: var(--grad-brand); padding: 1.1rem 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-radius: 0 28px 0 0; position: relative; overflow: hidden; }
.mobile-sidebar-header::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 194, 14, .35); }
.mobile-sidebar-brand { display: flex; align-items: center; gap: .65rem; position: relative; z-index: 1; }
.mobile-sidebar-logo { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 5px; }
.mobile-sidebar-logo img { width: 100%; }
.mobile-sidebar-title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.3rem; line-height: 1.1; }
.mobile-sidebar-sub { color: rgba(255, 255, 255, .85); font-size: .74rem; font-weight: 700; }
.sidebar-close-btn { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.1rem; cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.sidebar-close-btn:hover { background: var(--gold); color: var(--navy); transform: rotate(90deg); }
.mobile-sidebar-nav { flex: 1; overflow-y: auto; padding: .8rem .8rem 1rem; }
.nav-section-label { font-size: .72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: .7rem .6rem .3rem; }
.mobile-sidebar-nav > a { display: flex; align-items: center; gap: .8rem; padding: .62rem .8rem; border-radius: 16px; color: var(--navy); font-weight: 800; font-size: 1rem; transition: background .2s, transform .2s, color .2s; }
.mobile-sidebar-nav > a i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 1rem; background: var(--c-bg, var(--sky-soft)); color: var(--c, var(--blue)); flex: none; }
.mobile-sidebar-nav > a:hover { background: var(--sky-soft); transform: translateX(4px); color: var(--navy); }
.mobile-sidebar-nav > a.active { background: var(--navy); color: #fff; }
.mobile-sidebar-nav > a.active i { background: var(--gold); color: var(--navy); }
.mobile-divider { height: 1px; background: var(--line); margin: .5rem .6rem; }
.mobile-sidebar-footer { padding: 1rem; border-top: 1px dashed var(--line); display: grid; gap: .6rem; }
.mobile-sidebar-footer .btn-cbc { width: 100%; }
