/**
 * Feature 03 — Presence: last seen + online now.
 * RTL-first, mobile-first (375px). Purely presentational: all privacy logic
 * is enforced server-side in PHP — CSS never hides sensitive data.
 */

.dibfeat-presence {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
	white-space: nowrap;
}

.dibfeat-dot {
	width: 10px;
	height: 10px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #cbd5e1;
	box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.25);
}

.dibfeat-presence.is-online .dibfeat-dot {
	background: #22c55e;
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.75), 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.dibfeat-presence.is-online .dibfeat-presence-text {
	color: #15803d;
	font-weight: 700;
}

.dibfeat-presence-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* هيدر صفحة الملف — تحت المدينة، لا يزاحم الاسم على 375px */
.profile-hero-presence {
	margin: 4px 0 0;
}

/* بطاقات التصفح/البحث — سطر صغير تحت المدينة */
.profile-card-presence {
	display: block;
	margin-top: 2px;
}

/* صف الخصوصية في نموذج تعديل الملف */
.dibfeat-privacy-row {
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
}

.dibfeat-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	cursor: pointer;
}

.dibfeat-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: #0d9488;
}

.dibfeat-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.6;
	color: #6b7280;
}
