.brand-mark{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;color:var(--primary);background:#fff;font-weight:950;box-shadow:0 12px 26px rgba(0,0,0,.13)}
.public-navbar{position:sticky;top:0;z-index:80;border-bottom:1px solid rgba(31,76,143,.10);background:rgba(247,250,255,.88);backdrop-filter:blur(18px)}
.public-nav-inner{height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.public-brand,.sidebar-brand,.mobile-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.public-brand>span:last-child,.sidebar-brand>span:last-child{display:grid;gap:2px;line-height:1.08}
.public-brand strong,.sidebar-brand strong,.mobile-brand strong{font-size:.92rem;font-weight:900;letter-spacing:-.02em}
.public-brand small,.sidebar-brand small,.mobile-brand small{color:var(--muted);font-size:.68rem;font-weight:750}
.public-nav-links{display:flex;align-items:center;gap:5px}
.public-nav-links a{min-height:38px;display:inline-flex;align-items:center;padding:8px 12px;border-radius:12px;color:#475569;font-size:.80rem;font-weight:850;transition:.16s ease}
.public-nav-links a:hover{color:var(--primary);background:var(--primary-soft)}
.public-login-link{border:0!important;color:#fff!important;background:linear-gradient(135deg,var(--primary),var(--primary-2))!important;box-shadow:0 10px 22px rgba(31,76,143,.18)}

.admin-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100vh;z-index:120;display:flex;flex-direction:column;padding:12px;color:rgba(255,255,255,.95);background:radial-gradient(circle at 20% 0,rgba(255,255,255,.16),transparent 14rem),radial-gradient(circle at 94% 18%,rgba(245,153,49,.16),transparent 15rem),linear-gradient(165deg,var(--sidebar-start,#1f4c8f) 0%,color-mix(in srgb,var(--sidebar-start,#1f4c8f) 65%,var(--sidebar-end,#102a55)) 52%,var(--sidebar-end,#102a55) 100%);box-shadow:14px 0 45px rgba(31,76,143,.20);overflow:hidden}
.sidebar-head{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 7px 13px;border-bottom:1px solid rgba(255,255,255,.14)}
.sidebar-brand{min-width:0;color:#fff}
.sidebar-brand>span:last-child{min-width:0}
.sidebar-brand strong,.sidebar-brand small{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-brand small{color:rgba(238,245,255,.72)}

.sidebar-close,.sidebar-toggle{align-items:center;justify-content:center}
.sidebar-close svg,.sidebar-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sidebar-close{display:none;width:36px;height:36px;border:1px solid rgba(255,255,255,.18);border-radius:12px;color:#fff;background:rgba(255,255,255,.10)}

.sidebar-nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:4px;padding:12px 0 10px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.sidebar-nav a,.sidebar-logout{position:relative;min-height:44px;display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:13px;color:rgba(255,255,255,.84);font-size:.82rem;font-weight:800;transition:.16s ease;text-decoration:none}
.nav-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px}
.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.external-icon{width:16px;height:16px;display:grid;place-items:center;flex:0 0 16px;margin-left:auto;opacity:.55}
.external-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-nav a:hover,.sidebar-nav a.active{color:#fff;background:rgba(255,255,255,.14);transform:translateX(2px)}
.sidebar-nav a.active{box-shadow:inset 3px 0 0 rgba(245,153,49,.96)}
.sidebar-nav a.active .nav-icon{color:#fff}
.sidebar-separator{height:1px;margin:8px 7px;background:rgba(255,255,255,.13)}

.sidebar-footer{flex:0 0 auto;margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}
.sidebar-user{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:10px;border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(255,255,255,.09);box-shadow:0 10px 22px rgba(0,0,0,.05)}
.user-avatar{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border-radius:12px;color:var(--primary);background:#fff;font-size:.82rem;font-weight:950;box-shadow:0 8px 18px rgba(0,0,0,.10)}
.sidebar-user-info{min-width:0;display:grid;gap:2px}
.sidebar-user-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.79rem;line-height:1.15}
.sidebar-user-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(238,245,255,.68);font-size:.65rem}
.sidebar-logout{min-height:44px;color:#fff;background:rgba(180,35,24,.19);border:1px solid rgba(255,255,255,.08)}
.sidebar-logout:hover{color:#fff;background:rgba(180,35,24,.30);transform:none}

.admin-content-shell{min-height:100vh;margin-left:var(--sidebar-width)}
.mobile-admin-topbar,.mobile-bottom-nav,.sidebar-overlay{display:none}

.mobile-nav-icon{width:23px;height:23px;display:grid;place-items:center}
.mobile-nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:900px){
    .public-navbar{position:fixed;inset:0 0 auto 0;height:var(--mobile-topbar-height);z-index:90}
    .public-nav-inner{height:var(--mobile-topbar-height);padding-left:13px;padding-right:13px}
    .public-brand .brand-mark{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 8px 18px rgba(31,76,143,.16)}
    .public-brand strong{font-size:.82rem}
    .public-brand small{font-size:.62rem}
    .public-nav-links{display:none}
    .public-body .app-main{padding-top:calc(var(--mobile-topbar-height) + 14px)}

    .admin-sidebar{width:min(88vw,318px);padding:12px;transform:translateX(-104%);transition:transform .22s cubic-bezier(.2,.75,.25,1);box-shadow:24px 0 55px rgba(15,23,42,.28)}
    .admin-sidebar.open{transform:translateX(0)}
    .sidebar-close{display:flex}
    .sidebar-overlay{position:fixed;inset:0;z-index:110;background:rgba(15,23,42,.46);backdrop-filter:blur(3px)}
    .sidebar-overlay.show{display:block}
    .admin-content-shell{margin-left:0;padding-top:var(--mobile-topbar-height)}

    .mobile-admin-topbar{position:fixed;inset:0 0 auto 0;height:var(--mobile-topbar-height);z-index:90;display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid rgba(31,76,143,.10);background:rgba(247,250,255,.94);backdrop-filter:blur(18px);box-shadow:0 8px 24px rgba(31,76,143,.05)}
    .sidebar-toggle{width:40px;height:40px;display:flex;flex:0 0 40px;border:1px solid var(--border);border-radius:13px;color:var(--primary-dark);background:#fff;box-shadow:0 8px 18px rgba(31,76,143,.07)}
    .mobile-brand{min-width:0;display:grid;gap:1px;color:var(--text);line-height:1.08}
    .mobile-brand strong,.mobile-brand small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .mobile-brand small{color:var(--muted)}

    .sidebar-nav{padding-top:10px}
    .sidebar-footer{padding-top:9px}
    .sidebar-user{padding:9px}
    .sidebar-logout{min-height:46px}

    .mobile-bottom-nav{position:fixed;z-index:95;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:var(--mobile-nav-height);display:grid;align-items:center;padding:6px;border:1px solid rgba(31,76,143,.12);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 18px 44px rgba(31,76,143,.18);backdrop-filter:blur(18px)}
    .admin-mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
    .public-mobile-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
    .mobile-bottom-nav a,.mobile-bottom-nav button{height:58px;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;border-radius:16px;color:#6b7b90;background:transparent;text-decoration:none;font-weight:800;transition:.16s ease}
    .mobile-bottom-nav small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.61rem;font-weight:900}
    .mobile-bottom-nav .active{color:var(--primary);background:linear-gradient(180deg,var(--primary-soft),rgba(238,245,255,.58))}
    .mobile-bottom-nav button:active,.mobile-bottom-nav a:active{transform:scale(.97)}
    body.sidebar-open{overflow:hidden;touch-action:none}
}
