/* In-app notification bell + dropdown */

.notifications-wrap {
    position: relative;
    display: none;
    align-items: center;
}

.nav-brand-cluster {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.logged-in .notifications-wrap {
    display: flex;
}

.notifications-bell {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #274dfe;
    cursor: pointer;
    font-size: 1rem;
}

.notifications-bell:hover {
    background: #eff6ff;
}

.notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.notifications-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 92vw);
    max-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    z-index: 2000;
}

.notifications-panel[hidden] {
    display: none !important;
}

.notifications-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.notifications-panel-header button {
    border: none;
    background: none;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

#notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-item__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.notification-item__message {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.notification-item__time {
    margin-top: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.notifications-empty {
    padding: 24px 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

#subscription-alert-banner {
    display: none;
    margin: 0 16px 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.88rem;
}

#subscription-alert-banner.visible {
    display: block;
}

#subscription-alert-banner button {
    margin-left: 8px;
    border: none;
    background: #ea580c;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}
