.notif-wrapper {
    position: relative;
    display: inline-block;
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red, #e8443a);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--c-surface);
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--c-surface);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(var(--ink-rgb), 0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.notif-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    padding: 1rem;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.03);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notif-item:hover {
    background: var(--cream);
}

.notif-item.unread {
    background: rgba(var(--primary-rgb), 0.03);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.booking { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.notif-icon.wallet { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notif-icon.review { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.notif-icon.system { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.notif-icon.broadcast { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

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

.notif-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: var(--ink);
}

.notif-message {
    font-size: 0.8rem;
    color: var(--ink-s);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--ink-m);
    margin-top: 4px;
}

.notif-empty {
    padding: 2rem;
    text-align: center;
    color: var(--ink-m);
    font-size: 0.9rem;
}

.notif-footer {
    padding: 0.75rem;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid rgba(var(--ink-rgb), 0.05);
}

.notif-footer a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.btn-text-small {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-text-small:hover {
    background: rgba(var(--primary-rgb), 0.05);
}
