/* ── Points Badge ─────────────────────────────────────────────────────────── */

.user-points-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--white-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.user-points-badge:hover {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
}

.user-points-badge .fa-coins {
    font-size: 0.9rem;
    color: #f0b429;
}

/* ── Notification Bell ────────────────────────────────────────────────────── */

.notif-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.notif-bell:hover {
    background: rgba(255, 255, 255, 0.08);
}

.notif-bell-icon {
    font-size: 1.15rem;
    color: var(--white-gray);
    transition: color 0.15s ease;
}

.notif-bell:hover .notif-bell-icon,
.notif-bell.has-unread .notif-bell-icon {
    color: var(--white);
}

/* Red badge (unread counter) */
.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    font-family: inherit;
    animation: notif-pop 0.2s ease;
}

@keyframes notif-pop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Dropdown Panel ───────────────────────────────────────────────────────── */

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 340px;
    max-height: 480px;
    display: none;
    flex-direction: column;
    background: #2a2b33;
    border: 1px solid var(--panel-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    z-index: 1100;
    overflow: hidden;
    animation: notif-slide-in 0.18s ease;
}

.notif-dropdown.open {
    display: flex;
}

@keyframes notif-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--panel-border-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    flex-shrink: 0;
}

.notif-mark-all-btn {
    background: none;
    border: none;
    color: var(--main);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    font-family: inherit;
}

.notif-mark-all-btn:hover {
    background: rgba(55, 161, 211, 0.12);
}

/* ── Notification List ────────────────────────────────────────────────────── */

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--white-gray);
    font-size: 0.85rem;
}

/* ── Notification Card ────────────────────────────────────────────────────── */

.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 16px;
    cursor: default;
    transition: background 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.notif-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-card--unread {
    border-left-color: var(--main);
    background: rgba(55, 161, 211, 0.06);
}

.notif-card--unread:hover {
    background: rgba(55, 161, 211, 0.1);
}

.notif-card--link {
    cursor: pointer;
}

.notif-card--link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.notif-card--link.notif-card--unread:hover {
    background: rgba(55, 161, 211, 0.12);
}

/* Arrow indicator for linked cards */
.notif-arrow {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.notif-card--link:hover .notif-arrow {
    color: var(--main);
    transform: translateX(2px);
}

/* Icon per type */
.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-icon--orange  { background: rgba(226, 151, 12, 0.18);  color: var(--orange); }
.notif-icon--green   { background: rgba(52, 211, 153, 0.15);  color: var(--green); }
.notif-icon--gray    { background: rgba(180, 180, 180, 0.12); color: #9ca3af; }
.notif-icon--gold    { background: rgba(255, 215, 0, 0.15);   color: var(--gold); }
.notif-icon--blue    { background: rgba(55, 161, 211, 0.15);  color: var(--main); }
.notif-icon--red     { background: rgba(211, 52, 52, 0.15);   color: var(--red); }
.notif-icon--cyan    { background: rgba(109, 196, 241, 0.15); color: var(--light-main); }
.notif-icon--purple  { background: rgba(139, 52, 211, 0.15);  color: var(--purple); }
.notif-icon--white   { background: rgba(243, 242, 238, 0.1);  color: var(--white); }

/* Card content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--white);
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-card--unread .notif-title {
    color: #fff;
}

.notif-body {
    font-size: 0.77rem;
    color: var(--white-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.7rem;
    color: #6b7280;
}

/* ── Admin User Profile: Notifications Tab ───────────────────────────────── */

.up-notif-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: .5rem;
}

.up-notif-admin-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
}

.up-notif-admin-row:last-child {
    border-bottom: none;
}

.up-notif-admin-row--unread {
    background: rgba(55, 161, 211, 0.04);
    border-left: 3px solid var(--main);
    padding-left: 10px;
}

.up-notif-admin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.up-notif-admin-body {
    flex: 1;
    min-width: 0;
}

.up-notif-admin-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--white);
    margin-bottom: 3px;
}

.up-notif-admin-text {
    font-size: 0.82rem;
    color: var(--white-gray);
    line-height: 1.45;
    margin-bottom: 6px;
    word-break: break-word;
}

.up-notif-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--main);
    text-decoration: none;
    margin-bottom: 6px;
    word-break: break-all;
}

.up-notif-link:hover {
    text-decoration: underline;
}

.up-notif-admin-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.up-notif-sender {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.up-notif-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
}

.up-notif-read-badge--read {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.up-notif-read-badge--unread {
    background: rgba(55, 161, 211, 0.12);
    color: var(--main);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .notif-dropdown {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 72px);
        border-radius: 0 0 12px 12px;
    }
}
