.avi-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.avi-modal-card {
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	max-width: 460px;
	width: 100%;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.avi-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #94a3b8;
	padding: 4px 8px;
	border-radius: 6px;
}
.avi-modal-close:hover {
	background: #f1f5f9;
	color: #0f172a;
}
.avi-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
}
.avi-modal-subtitle {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px;
	line-height: 1.5;
}
.avi-unsub-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	margin-bottom: 8px;
	font-size: 14px;
	color: #374151;
	transition: background 0.15s;
}
.avi-unsub-option:hover {
	background: #f8fafc;
}
.avi-unsub-option input[type="radio"] {
	accent-color: #f59e0b;
}
.avi-unsub-textarea {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	margin-top: 8px;
	color: #374151;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.avi-unsub-textarea:focus {
	border-color: #f59e0b;
}
.avi-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 20px;
}
.avi-btn-unsub-confirm {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.avi-btn-unsub-confirm:hover {
	opacity: 0.9;
}
.avi-btn-unsub-cancel {
	background: #f1f5f9;
	color: #475569;
	border: none;
	border-radius: 8px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.avi-btn-unsub-cancel:hover {
	background: #e2e8f0;
}
.avi-unsubscribe-link {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	cursor: pointer;
	padding: 8px 0;
	font-family: inherit;
	text-decoration: underline;
	display: block;
	text-align: center;
	width: 100%;
}
.avi-unsubscribe-link:hover {
	color: rgba(255, 255, 255, 0.6);
}
.avi-email-prefs-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	text-align: center;
}

/* Partiel agence (fond clair) : lien lisible */
.avision-agency-dashboard-partial .avi-unsubscribe-link {
	color: rgba(15, 23, 42, 0.45);
}
.avision-agency-dashboard-partial .avi-unsubscribe-link:hover {
	color: rgba(15, 23, 42, 0.75);
}
.avision-agency-dashboard-partial .avi-email-prefs-footer {
	border-top-color: rgba(15, 23, 42, 0.08);
}
.avi-unsub-message {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 12px;
	text-align: center;
}
.avi-unsub-message.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}
.avi-unsub-message.error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}
