/* ============================================
   NOTIFICATION BELL (site-wide, fixed position)
   ============================================ */
.algerrha-notif-bell {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#algerrha-notif-toggle {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: none;
    background: #1e1e2e;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.algerrha-notif-count {
    position: absolute;
    top: -2px; right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.algerrha-notif-count.hidden { display: none; }

.algerrha-notif-panel {
    position: absolute;
    bottom: 62px;
    left: 0;
    width: 340px;
    max-height: 420px;
    background: #1e1e2e;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.algerrha-notif-panel.hidden { display: none; }
.algerrha-notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    font-weight: 600;
}
.algerrha-notif-header button {
    background: none; border: none; color: #6ea8ff; font-size: 12px; cursor: pointer;
}
.algerrha-notif-list { overflow-y: auto; max-height: 360px; }
.algerrha-notif-item, .algerrha-feed-item {
    display: flex; gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.algerrha-notif-item.unread { background: rgba(110, 168, 255, 0.08); }
.ani-icon, .afi-icon { font-size: 18px; flex-shrink: 0; }
.ani-message, .afi-message { font-size: 13px; line-height: 1.4; }
.ani-time, .afi-time { font-size: 11px; opacity: 0.55; margin-top: 3px; }
.algerrha-notif-empty { padding: 24px; text-align: center; opacity: 0.6; font-size: 13px; }

/* ============================================
   PROFILE / FEED PAGES
   ============================================ */
body.algerrha-profile-body {
    margin: 0;
    background: #f4f5fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}
.algerrha-social-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}
.algerrha-feed-page h1 { margin-bottom: 4px; }
.algerrha-feed-sub { opacity: 0.6; margin-top: 0; margin-bottom: 30px; }

.algerrha-profile-header {
    display: flex; align-items: center; gap: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.algerrha-profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}
.algerrha-profile-identity { flex: 1; }
.algerrha-profile-identity h1 { margin: 0 0 8px 0; font-size: 26px; }
.algerrha-profile-status {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 10px;
}
.algerrha-profile-level { font-size: 13px; opacity: 0.85; }
.algerrha-follow-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.algerrha-follow-btn.following { background: rgba(255,255,255,0.2); color: #fff; }
.algerrha-profile-actions { display: flex; gap: 10px; }
.algerrha-message-btn { background: rgba(255,255,255,0.2); color: #fff; }

.algerrha-profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}
.algerrha-profile-stats > div {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.algerrha-profile-stats .stat-value { display: block; font-size: 22px; font-weight: 700; color: #667eea; }
.algerrha-profile-stats .stat-label { display: block; font-size: 12px; opacity: 0.6; margin-top: 2px; }

.algerrha-profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.algerrha-profile-col h2 { font-size: 16px; margin-bottom: 14px; }
.algerrha-profile-col { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.algerrha-empty { opacity: 0.6; font-size: 13px; }

.algerrha-building-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.algerrha-building-card {
    display: flex; flex-direction: column; gap: 4px;
    background: #f4f5fa;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}
.abc-emoji { font-size: 22px; }
.abc-title { font-weight: 600; font-size: 13px; }
.abc-meta { font-size: 11px; opacity: 0.6; }

.algerrha-feed-page #algerrha-feed-list .algerrha-feed-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.algerrha-load-more {
    display: block;
    margin: 20px auto 0;
    padding: 10px 26px;
    border-radius: 24px;
    border: 1px solid #d0d2e0;
    background: #fff;
    cursor: pointer;
}
.algerrha-load-more.hidden { display: none; }

@media (max-width: 700px) {
    .algerrha-profile-stats { grid-template-columns: repeat(3, 1fr); }
    .algerrha-profile-columns { grid-template-columns: 1fr; }
    .algerrha-building-grid { grid-template-columns: 1fr; }
    .algerrha-profile-header { flex-wrap: wrap; }
}
