:root { --green: #004D40; --pink: #f91880; --gray: #65676b; --border: #eff3f4; --bg: #f7f9f9; --nav-inactive: #65676b; --nav-active: #0f1419; }
body { background: var(--bg); font-family: 'Inter', sans-serif; margin: 0; color: #0f1419; }

.desktop-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px) saturate(180%);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
height: 56px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); z-index: 2000; }
.header-content { width: 100%; max-width: 1200px; display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 20px; align-items: center; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 22px; color: var(--green); text-decoration: none; font-weight: 700; }
.nav-center-row { display: flex; align-items: center; gap: 10px; }
.nav-circle-btn { width: 42px; height: 42px; border-radius: 50%; background: #f0f2f5; display: flex; align-items: center; justify-content: center; color: #65676b; text-decoration: none; transition: 0.2s; }
.nav-circle-btn:hover { background: #e8f5e9; }
.search-capsule { position: relative; width: 300px; display: flex; align-items: center; }
.search-bar { width: 100%; background: #f0f2f5; border: 1px solid transparent; padding: 10px 15px 10px 40px; border-radius: 25px; font-size: 14px; outline: none; transition: 0.2s; }
.search-bar:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.search-icon-inner { position: absolute; left: 15px; color: var(--gray); pointer-events: none; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.notif-wrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f0f2f5; color: #65676b; transition: 0.2s; cursor: pointer; }
.badge { position: absolute; top: -2px; right: -2px; background: var(--pink); color: white; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.pfp-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; object-fit: cover; text-decoration: none; overflow: hidden; }
.login-link { background-color: #f0f2f5; color: #0f1419 !important; padding: 8px 16px; border-radius: 20px; font-weight: 700; text-decoration: none; font-size: 14px; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; }
.cta-button { background-color: var(--green); color: white !important; padding: 8px 16px; border-radius: 20px; font-weight: 700; text-decoration: none; font-size: 14px; transition: transform 0.2s, display: inline-flex; align-items: center; justify-content: center; }
.mobile-top-bar, .mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .mobile-top-bar { transition: transform 0.3s ease; }
    .top--hidden { transform: translateY(-100%); }

    .desktop-header { display: none; }
    .mobile-top-bar { display: flex; position: fixed; top: 0; width: 100%; height: 56px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 77, 64, 0.1); z-index: 2000; align-items: center; justify-content: space-between; padding: 0 15px; box-sizing: border-box; }
            
    .mobile-bottom-nav { display: flex; position: fixed; bottom: 0; width: 100%; height: 53px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); border-top: 1px solid var(--border); z-index: 2000; justify-content: space-around; align-items: center; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding-bottom: env(safe-area-inset-bottom); }
    .nav--hidden { transform: translateY(100%); }

    .mobile-bottom-nav .nav-icon { color: var(--nav-inactive); text-decoration: none; padding: 4px 10px; border-radius: 50%; transition: 0.2s; display: flex; align-items: center; justify-content: center; flex: 1; }
            
    .mobile-bottom-nav .nav-icon.active-nav svg {
        color: var(--nav-active);
        fill: currentColor;
        transform: scale(1.05);
    }
            
    .nav-icon.active-nav svg[fill="var(--green)"],
    .nav-icon.active-nav svg path {
        fill: currentColor;
    }

    body { padding-top: 56px; padding-bottom: calc(53px + env(safe-area-inset-bottom)); }
}

@media (min-width: 769px) {
    body {
        padding-top: 56px;
    }
}
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar { position: fixed; top: 0; left: 0; width: 280px; max-width: 85%; height: 100%; background: white; z-index: 3001; transform: translateX(-100%); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; overflow-y: auto; will-change: transform; }
.sidebar.active { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.1); }

.sb-profile-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.sb-info { display: flex; flex-direction: column; }
.sidebar-profile-card { padding: 15px 15px 20px 15px; border-bottom: 1px solid var(--border); }
.sb-pfp { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 0 !important; }

.sb-name { font-weight: 800; font-size: 17px; color: #0f1419; text-decoration: none; line-height: 1.2; }
.sb-handle { color: var(--gray); font-size: 14px; text-decoration: none; }

.sb-stats { display: flex; gap: 20px; }
.sb-stats a { text-decoration: none; font-size: 14px; color: var(--gray); }
.sb-stats b { color: #0f1419; }

.invite-btn { margin: 15px 20px; padding: 12px; border-radius: 12px; background: #FFF0F5; color: #db2777; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 1px solid #fbcfe8; }

.sb-section { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sb-link { display: flex; align-items: center; gap: 15px; padding: 12px 25px; text-decoration: none; color: #0f1419; font-weight: 600; font-size: 16px; transition: 0.2s; }
.sb-link:hover { background: #f7f9f9; }
.sb-link svg { width: 22px; height: 22px; color: #536471; }
.sb-logout { color: #f4212e !important; }

/* --- DESKTOP DROPDOWN --- */
.pfp-trigger { position: relative; display: flex; align-items: center; cursor: pointer; }
.desktop-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 330px; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 12px 28px rgba(0,0,0,0.15); z-index: 5000; display: none; overflow: hidden; animation: menuShow 0.2s ease-out; max-height: 90vh; overflow-y: auto; }
.dd-slider-stage { display: flex; width: 200%; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.dd-pane { width: 50%; display: flex; flex-direction: column; padding: 10px 0; }
.dd-slider-stage.slide-active { transform: translateX(-50%); }

@keyframes menuShow {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.dd-header { display: flex; align-items: center; gap: 12px; padding: 5px 15px 15px 15px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.back-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.back-btn:hover { background: #f0f2f5; }
.dd-header-text { font-weight: 700; font-size: 18px; }
.dd-profile-card { padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin: 0 8px 8px 8px; border-radius: 8px; transition: 0.2s; text-decoration: none; border-bottom: 1px solid var(--border); }
.dd-profile-card:hover { background: #f0f2f5; }
.dd-pfp { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; overflow: hidden; }
.dd-info { display: flex; flex-direction: column; }
.dd-name { font-weight: 700; color: #0f1419; font-size: 16px; }
.dd-handle { color: var(--gray); font-size: 13px; }
.dd-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; text-decoration: none; color: #0f1419; font-size: 15px; font-weight: 500; margin: 0 8px; border-radius: 8px; transition: 0.2s; cursor: pointer; }
.dd-item:hover { background: #f0f2f5; }
.dd-item-content { display: flex; align-items: center; gap: 12px; }
.dd-item svg { width: 20px; height: 20px; color: #536471; }
.dd-divider { height: 1px; background: var(--border); margin: 8px 0; }
.dd-footer { padding: 12px 16px 5px 16px; display: flex; flex-wrap: wrap; gap: 0 8px; }
.dd-footer a { font-size: 13px; color: var(--gray); text-decoration: none; opacity: 0.8; }
.dd-footer a:hover { text-decoration: underline; }
.dd-copyright { font-size: 12px; color: var(--gray); opacity: 0.6; margin-top: 4px; width: 100%; }

/*Notification*/
.notif-dropdown-container { position: relative; display: flex; align-items: center; }
.notif-dropdown { position: absolute; top: calc(100% + 10px); right: -10px; width: 330px; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 12px 28px rgba(0,0,0,0.15); z-index: 5000; display: none; overflow: hidden; animation: menuShow 0.2s ease-out; }
.notif-dropdown.show { display: block !important; }
.notif-dropdown-header { padding: 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }
.notif-dropdown-header a { color: var(--green); font-size: 13px; text-decoration: none; }
#notif-items-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: flex; align-items: start; gap: 12px; padding: 12px 15px; text-decoration: none; color: #0f1419; transition: 0.2s; border-bottom: 1px solid rgba(0,0,0,0.02); }
.notif-item:hover { background: #f0f2f5; }
.notif-item.unread { background: #f0f7ff; }
.notif-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-content p { margin: 0; font-size: 14px; line-height: 1.4; }
.notif-time { font-size: 12px; color: var(--gray); margin-top: 2px; display: block; }
.notif-loading, .notif-empty { padding: 30px; text-align: center; color: var(--gray); font-size: 14px; }