/**
 * Divi Pro Engagement - Frontend Styles
 */

/* ==========================================================================
   1. Social Login Buttons & Responsive Styles
   ========================================================================== */
.dpc-social-login {
	--dpc-size-desktop: 44px;
	--dpc-size-mobile: 40px;
	--dpc-current-size: var(--dpc-size-desktop);
	margin: 14px 0;
	padding: 0;
	background: transparent;
	border: none;
	box-sizing: border-box;
}

@media (max-width: 767.98px) {
	.dpc-social-login {
		--dpc-current-size: var(--dpc-size-mobile);
	}
}

.dpc-social-login__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

/* Base Button */
.dpc-btn,
button.dpc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: var(--dpc-current-size, 44px);
	min-height: var(--dpc-current-size, 44px);
	padding: 0 18px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
	user-select: none;
	outline: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.dpc-btn:hover,
button.dpc-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.dpc-btn:active,
button.dpc-btn:active {
	transform: translateY(0);
}

.dpc-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.dpc-btn__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.dpc-btn__label {
	display: inline-block;
	white-space: nowrap;
}

/* Desktop Layouts (>= 768px) */
@media (min-width: 768px) {
	.dpc-social-login.dpc-desktop-style-inline .dpc-social-login__buttons,
	.dpc-social-login.dpc-desktop-style-icon .dpc-social-login__buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
		align-items: center;
	}

	.dpc-social-login.dpc-desktop-style-icon .dpc-btn {
		width: var(--dpc-size-desktop, 44px);
		height: var(--dpc-size-desktop, 44px);
		padding: 0;
		justify-content: center;
	}

	.dpc-social-login.dpc-desktop-style-icon .dpc-btn__label {
		display: none !important;
	}

	.dpc-social-login.dpc-desktop-style-column .dpc-social-login__buttons {
		display: inline-flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		min-width: 220px;
	}

	.dpc-social-login.dpc-desktop-style-fullwidth .dpc-social-login__buttons {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
	}

	.dpc-social-login.dpc-desktop-style-fullwidth .dpc-btn {
		width: 100%;
	}
}

/* Mobile Layouts (< 768px) */
@media (max-width: 767.98px) {
	.dpc-social-login.dpc-mobile-style-inline .dpc-social-login__buttons,
	.dpc-social-login.dpc-mobile-style-icon .dpc-social-login__buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
		align-items: center;
	}

	.dpc-social-login.dpc-mobile-style-icon .dpc-btn {
		width: var(--dpc-size-mobile, 40px);
		height: var(--dpc-size-mobile, 40px);
		padding: 0;
		justify-content: center;
	}

	.dpc-social-login.dpc-mobile-style-icon .dpc-btn__label {
		display: none !important;
	}

	.dpc-social-login.dpc-mobile-style-column .dpc-social-login__buttons {
		display: inline-flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		min-width: 210px;
	}

	.dpc-social-login.dpc-mobile-style-fullwidth .dpc-social-login__buttons {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
	}

	.dpc-social-login.dpc-mobile-style-fullwidth .dpc-btn {
		width: 100%;
	}
}

/* Skin: Brand Colors (Default) */
.dpc-social-login.skin-brand .dpc-btn-google {
	background-color: #ffffff;
	color: #1f2937 !important;
	border: 1px solid #d1d5db;
}

.dpc-social-login.skin-brand .dpc-btn-google:hover {
	background-color: #f9fafb;
	border-color: #9ca3af;
	color: #111827 !important;
}

.dpc-social-login.skin-brand .dpc-btn-telegram {
	background-color: #2AABEE;
	color: #ffffff !important;
	border: 1px solid #2AABEE;
}

.dpc-social-login.skin-brand .dpc-btn-telegram:hover {
	background-color: #229ED9;
	border-color: #229ED9;
	color: #ffffff !important;
}

.dpc-social-login.skin-brand .dpc-btn-discord {
	background-color: #5865F2;
	color: #ffffff !important;
	border: 1px solid #5865F2;
}

.dpc-social-login.skin-brand .dpc-btn-discord:hover {
	background-color: #4752C4;
	border-color: #4752C4;
	color: #ffffff !important;
}

.dpc-social-login.skin-brand .dpc-btn-twitter {
	background-color: #000000;
	color: #ffffff !important;
	border: 1px solid #1f2937;
}

.dpc-social-login.skin-brand .dpc-btn-twitter:hover {
	background-color: #18181b;
	border-color: #3f3f46;
	color: #ffffff !important;
}

.dpc-social-login.skin-brand .dpc-btn-facebook {
	background-color: #1877F2;
	color: #ffffff !important;
	border: 1px solid #1877F2;
}

.dpc-social-login.skin-brand .dpc-btn-facebook:hover {
	background-color: #166FE5;
	border-color: #166FE5;
	color: #ffffff !important;
}

/* Skin: Dark */
.dpc-social-login.skin-dark .dpc-btn {
	background-color: #1e1e24;
	color: #ffffff !important;
	border: 1px solid #2e2e38;
}

.dpc-social-login.skin-dark .dpc-btn:hover {
	background-color: #2a2a32;
	border-color: #3f3f4e;
	color: #ffffff !important;
}

/* Skin: Light */
.dpc-social-login.skin-light .dpc-btn {
	background-color: #ffffff;
	color: #1f2937 !important;
	border: 1px solid #e5e7eb;
}

.dpc-social-login.skin-light .dpc-btn:hover {
	background-color: #f9fafb;
	border-color: #d1d5db;
	color: #111827 !important;
}

/* ==========================================================================
   2. Logged-in User Avatar Trigger & Dropdown Card (WP Admin Bar Style)
   ========================================================================== */
.dpc-user-logged {
	--dpc-size-desktop: 44px;
	--dpc-size-mobile: 40px;
	--dpc-avatar-size: var(--dpc-size-desktop);
	position: relative;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin: 8px 0;
	z-index: 9999;
}

@media (max-width: 767.98px) {
	.dpc-user-logged {
		--dpc-avatar-size: var(--dpc-size-mobile);
	}
}

.dpc-user-avatar-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--dpc-avatar-size, 44px);
	height: var(--dpc-avatar-size, 44px);
	padding: 0;
	margin: 0;
	background: transparent;
	border: 2px solid rgba(148, 163, 184, 0.35);
	border-radius: 50%;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.dpc-user-avatar-trigger:hover,
.dpc-user-logged.is-open .dpc-user-avatar-trigger {
	transform: scale(1.04);
	border-color: #3b82f6;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.dpc-user-logged__avatar {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
}

/* Dropdown Popup Card */
.dpc-user-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	left: auto;
	z-index: 999999;
	min-width: 220px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #1e1e24;
	color: #f8fafc;
	border: 1px solid #2e2e38;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	pointer-events: none;
	box-sizing: border-box;
}

.dpc-user-logged.skin-light .dpc-user-dropdown {
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

/* Transparent hover bridge across full popup width */
.dpc-user-dropdown::before {
	content: "";
	position: absolute;
	top: -18px;
	left: -10px;
	right: -10px;
	height: 22px;
	background: transparent;
}

.dpc-user-logged.is-open .dpc-user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.dpc-user-dropdown__profile {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.dpc-user-dropdown__avatar {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.dpc-user-dropdown__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dpc-user-dropdown__name {
	font-size: 14px;
	font-weight: 600;
	color: inherit;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.dpc-logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: #cbd5e1 !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.dpc-user-logged.skin-light .dpc-logout-btn {
	background: #f1f5f9;
	color: #475569 !important;
}

.dpc-logout-btn:hover {
	background-color: rgba(239, 68, 68, 0.18) !important;
	color: #ef4444 !important;
	transform: translateX(1px);
}

.dpc-logout-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ==========================================================================
   2.1 Minimalist Inline Auth Shortcode ([dpc_mini_login])
   ========================================================================== */
.dpc-mini-login-btn,
.dpc-mini-user {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
	vertical-align: middle;
	white-space: nowrap;
	box-sizing: border-box;
}

.dpc-mini-login-btn {
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.18s ease;
}

.dpc-mini-login-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
	opacity: 0.75;
	transition: opacity 0.18s ease;
}

.dpc-mini-login-btn:hover .dpc-mini-login-btn__icon {
	opacity: 1;
}

.dpc-mini-login-btn__icon svg {
	width: 1em;
	height: 1em;
	color: inherit;
	display: block;
}

.dpc-mini-login-btn__text {
	display: inline-block;
	color: inherit;
	line-height: inherit;
}

.dpc-mini-user__avatar {
	width: 24px !important;
	height: 24px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.dpc-mini-user .dpc-logout-btn,
.dpc-mini-user__logout,
.dpc-mini-logout-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent !important;
	color: inherit !important;
	font: inherit;
	line-height: inherit;
	text-decoration: none !important;
	white-space: nowrap;
	transition: opacity 0.18s ease;
}

.dpc-mini-user .dpc-logout-btn:hover,
.dpc-mini-user__logout:hover,
.dpc-mini-logout-link:hover {
	background-color: transparent !important;
	color: inherit !important;
	transform: none;
}

.dpc-mini-logout-link__text {
	display: inline-block;
	color: inherit;
	line-height: inherit;
}

.dpc-mini-logout-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
	opacity: 0.75;
	transition: opacity 0.18s ease, transform 0.15s ease;
}

.dpc-mini-logout-link:hover .dpc-mini-logout-link__icon {
	opacity: 1;
	transform: translateX(1px);
}

.dpc-mini-user .dpc-logout-btn svg,
.dpc-mini-user__logout svg,
.dpc-mini-logout-link__icon svg {
	width: 1em;
	height: 1em;
	color: inherit;
	display: block;
}

/* ==========================================================================
   3. Post Rating Module (Stars & Likes/Dislikes)
   ========================================================================== */
.dpc-post-rating {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding: 8px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	font-family: inherit;
	user-select: none;
	box-sizing: border-box;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.dpc-post-rating.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

/* Stars Mode */
.dpc-rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.dpc-star-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	margin: 0;
	background: transparent;
	border: none;
	color: #cbd5e1;
	cursor: pointer;
	transition: transform 0.15s ease, color 0.15s ease;
	outline: none;
}

.dpc-star-btn:hover {
	transform: scale(1.15);
}

.dpc-rating-stars:not(.is-hovering) .dpc-star-btn.is-active,
.dpc-rating-stars.is-hovering .dpc-star-btn.is-hover {
	color: #f59e0b;
}

.dpc-rating-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 1;
	color: #334155;
}

.dpc-rating-avg {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.dpc-rating-count-wrap {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #64748b;
	font-size: 13px;
}

.dpc-rating-user-icon {
	display: inline-block;
	vertical-align: middle;
}

/* Likes / Dislikes Mode */
.dpc-post-rating--likes {
	padding: 6px 8px;
}

.dpc-rating-likes {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dpc-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	background: #ffffff;
	color: #475569;
	border: 1px solid #cbd5e1;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

.dpc-like-btn:hover {
	transform: translateY(-1px);
	border-color: #94a3b8;
	color: #0f172a;
}

.dpc-like-up.is-active {
	background: #ecfdf5;
	border-color: #10b981;
	color: #059669;
}

.dpc-like-down.is-active {
	background: #fef2f2;
	border-color: #ef4444;
	color: #dc2626;
}

/* Lock Tooltip & Shake Animation */
.dpc-rating-lock-tooltip,
.dpc-c-lock-tooltip {
	display: none;
	font-size: 14px;
	line-height: 1;
}

.dpc-post-rating.is-locked .dpc-rating-lock-tooltip,
.dpc-post-rating.show-lock .dpc-rating-lock-tooltip,
.dpc-comment-votes.show-lock .dpc-c-lock-tooltip {
	display: inline-flex;
}

@keyframes dpc-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

.dpc-post-rating.is-shaking,
.dpc-comment-votes.is-shaking {
	animation: dpc-shake 0.4s ease-in-out;
}

/* ==========================================================================
   4. Comments Module (Modern Tree Hierarchy & Light/Dark Skins)
   ========================================================================== */
#dpc-comments,
.dpc-comments-area {
	--dpc-c-root-bg: #ffffff;
	--dpc-c-reply-bg: #f8fafc;
	--dpc-c-surface: #f8fafc;
	--dpc-c-border: #e2e8f0;
	--dpc-c-tree-line: #cbd5e1;
	--dpc-c-text: #0f172a;
	--dpc-c-muted: #64748b;
	--dpc-c-input-bg: #ffffff;
	--dpc-c-accent: #2563eb;
	--dpc-c-accent-hover: #1d4ed8;
	margin-top: 0;
	margin-bottom: 32px;
	padding-top: 0;
	font-family: inherit;
	font-size: var(--dpc-custom-font-size, inherit);
	line-height: inherit;
	color: var(--dpc-c-text);
	box-sizing: border-box;
}

.dpc-comments-area.dpc-comments-skin-dark {
	--dpc-c-root-bg: #1e1e24;
	--dpc-c-reply-bg: #18181d;
	--dpc-c-surface: #1e1e24;
	--dpc-c-border: #2e2e38;
	--dpc-c-tree-line: #334155;
	--dpc-c-text: #f8fafc;
	--dpc-c-muted: #94a3b8;
	--dpc-c-input-bg: #141418;
	--dpc-c-accent: #3b82f6;
	--dpc-c-accent-hover: #2563eb;
}

.dpc-comments-area.is-loading .dpc-comment-list {
	opacity: 0.5;
	pointer-events: none;
}

/* Comment Form Card */
.dpc-comment-respond {
	background: var(--dpc-c-surface);
	border: 1px solid var(--dpc-c-border);
	border-radius: 14px;
	padding: 18px;
	margin: 20px 0;
	box-sizing: border-box;
}

.dpc-form-pos-top .dpc-comment-respond {
	margin-top: 0;
}

.dpc-respond-top-bar {
	display: none;
}

.dpc-respond-auth .dpc-social-login,
.dpc-respond-auth .dpc-user-logged {
	margin: 0;
}

.dpc-reply-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: rgba(59, 130, 246, 0.12);
	color: var(--dpc-c-accent);
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
}

.dpc-reply-indicator__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.dpc-comment-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dpc-input,
.dpc-textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--dpc-c-input-bg);
	color: var(--dpc-c-text);
	border: 1px solid var(--dpc-c-border);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.dpc-author-input {
	max-width: 280px;
}

@media (max-width: 767.98px) {
	.dpc-author-input {
		max-width: 100%;
	}
}

.dpc-textarea {
	resize: vertical;
	min-height: 84px;
}

.dpc-input:focus,
.dpc-textarea:focus {
	border-color: var(--dpc-c-accent);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Honeypot invisible field */
.dpc-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.dpc-comment-form__footer,
.dpc-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.dpc-comment-form__footer-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.dpc-comment-form__footer-left .dpc-respond-auth,
.dpc-comment-form__footer-left .dpc-social-login,
.dpc-comment-form__footer-left .dpc-user-logged {
	margin: 0;
}

.dpc-comment-form__footer-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}

@media (max-width: 639.98px) {
	.dpc-comment-form__footer,
	.dpc-form-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.dpc-comment-form__footer-left {
		width: 100%;
		justify-content: flex-start;
	}

	.dpc-comment-form__footer-right {
		width: 100%;
		justify-content: space-between;
		margin-left: 0;
	}

	.dpc-comment-form__footer-right .dpc-submit-comment-btn {
		margin-left: auto;
	}
}

.dpc-cancel-reply-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 16px;
	background: transparent;
	color: var(--dpc-c-muted);
	border: 1px solid var(--dpc-c-border);
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dpc-cancel-reply-btn:hover {
	color: var(--dpc-c-text);
	border-color: var(--dpc-c-muted);
	background: rgba(148, 163, 184, 0.08);
}

.dpc-submit-comment-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 20px;
	background: var(--dpc-c-accent);
	color: #ffffff !important;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.dpc-submit-comment-btn:hover {
	background: var(--dpc-c-accent-hover);
	transform: translateY(-1px);
}

.dpc-submit-comment-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.dpc-form-notice {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
}

.dpc-form-notice.is-success {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.dpc-comments-skin-dark .dpc-form-notice.is-success {
	color: #34d399;
}

.dpc-form-notice.is-error {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Header & Sort Tabs */
.dpc-comments-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0;
	padding-top: 0;
	padding-bottom: 12px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--dpc-c-border);
}

.dpc-comments-header__count,
.dpc-comments-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--dpc-c-text);
}

.dpc-comments-count__num {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
}

.dpc-comments-sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	background: var(--dpc-c-surface);
	border: 1px solid var(--dpc-c-border);
	border-radius: 10px;
}

.dpc-sort-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	padding: 0;
	background: transparent;
	color: var(--dpc-c-muted);
	border: none;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dpc-sort-btn:hover {
	color: var(--dpc-c-text);
}

.dpc-sort-btn.is-active {
	background: var(--dpc-c-root-bg);
	color: var(--dpc-c-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Comment Tree & Curved Branch Connectors (3-Step Depth System) */
.dpc-comment-list,
.dpc-comment-list ul.children {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.dpc-comment-item {
	position: relative;
	margin-bottom: 14px;
}

/* Root comment card */
.dpc-comment-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px 18px;
	background: var(--dpc-c-root-bg);
	border: 1px solid var(--dpc-c-border);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
	transition: border-color 0.25s ease;
}

/* Child containers: reset margins/paddings so indentation is controlled strictly by depth */
.dpc-comment-list ul.children,
.dpc-comment-children {
	position: relative;
	margin-top: 10px !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
	border-left: none !important;
}

/* Compact reply card for all nested levels (depth >= 2) */
.dpc-comment-list ul.children .dpc-comment-card,
.dpc-comment-item:not(.depth-1) > .dpc-comment-card {
	padding: 11px 14px;
	background: var(--dpc-c-reply-bg);
	border-radius: 10px;
	box-shadow: none;
}

.dpc-comment-list ul.children > li.dpc-comment-item {
	margin-bottom: 10px;
}

/* Step 1: Root comments (depth-1) - 0 indent, no connector */
.dpc-comment-item.depth-1 > .dpc-comment-card,
.dpc-comment-item[data-depth="1"] > .dpc-comment-card {
	margin-left: 0;
}

/* Step 2: 1st reply level (depth-2) - 28px right indent */
.dpc-comment-item.depth-2 > .dpc-comment-card,
.dpc-comment-item[data-depth="2"] > .dpc-comment-card {
	margin-left: 28px;
}

/* Step 3: 2nd+ reply levels (depth-3, depth-4, depth-5) - 56px right indent (aligned column) */
.dpc-comment-item.depth-3 > .dpc-comment-card,
.dpc-comment-item.depth-4 > .dpc-comment-card,
.dpc-comment-item.depth-5 > .dpc-comment-card,
.dpc-comment-item[data-depth="3"] > .dpc-comment-card,
.dpc-comment-item[data-depth="4"] > .dpc-comment-card,
.dpc-comment-item[data-depth="5"] > .dpc-comment-card {
	margin-left: 56px;
}

/* Curved connector arc ╰─ on EVERY reply card (depth >= 2) */
.dpc-comment-item.depth-2 > .dpc-comment-card::before,
.dpc-comment-item.depth-3 > .dpc-comment-card::before,
.dpc-comment-item.depth-4 > .dpc-comment-card::before,
.dpc-comment-item.depth-5 > .dpc-comment-card::before,
.dpc-comment-item[data-depth="2"] > .dpc-comment-card::before,
.dpc-comment-item[data-depth="3"] > .dpc-comment-card::before,
.dpc-comment-item[data-depth="4"] > .dpc-comment-card::before,
.dpc-comment-item[data-depth="5"] > .dpc-comment-card::before {
	content: "";
	position: absolute;
	left: -18px;
	top: -10px;
	width: 14px;
	height: 32px;
	border-left: 2px solid var(--dpc-c-tree-line);
	border-bottom: 2px solid var(--dpc-c-tree-line);
	border-bottom-left-radius: 9px;
	pointer-events: none;
}

@media (max-width: 767.98px) {
	.dpc-comment-item.depth-2 > .dpc-comment-card,
	.dpc-comment-item[data-depth="2"] > .dpc-comment-card {
		margin-left: 16px;
	}

	.dpc-comment-item.depth-3 > .dpc-comment-card,
	.dpc-comment-item.depth-4 > .dpc-comment-card,
	.dpc-comment-item.depth-5 > .dpc-comment-card,
	.dpc-comment-item[data-depth="3"] > .dpc-comment-card,
	.dpc-comment-item[data-depth="4"] > .dpc-comment-card,
	.dpc-comment-item[data-depth="5"] > .dpc-comment-card {
		margin-left: 32px;
	}

	.dpc-comment-item.depth-2 > .dpc-comment-card::before,
	.dpc-comment-item.depth-3 > .dpc-comment-card::before,
	.dpc-comment-item.depth-4 > .dpc-comment-card::before,
	.dpc-comment-item.depth-5 > .dpc-comment-card::before,
	.dpc-comment-item[data-depth="2"] > .dpc-comment-card::before,
	.dpc-comment-item[data-depth="3"] > .dpc-comment-card::before,
	.dpc-comment-item[data-depth="4"] > .dpc-comment-card::before,
	.dpc-comment-item[data-depth="5"] > .dpc-comment-card::before {
		left: -12px;
		top: -10px;
		width: 9px;
		height: 28px;
		border-bottom-left-radius: 7px;
	}
}

.dpc-comment-just-added > .dpc-comment-card {
	border-color: var(--dpc-c-accent);
}

.dpc-comment-card__avatar img {
	width: 42px !important;
	height: 42px !important;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.dpc-comment-list ul.children .dpc-comment-card__avatar img {
	width: 36px !important;
	height: 36px !important;
}

@media (max-width: 767.98px) {
	.dpc-comment-card {
		padding: 12px;
		gap: 10px;
	}
	.dpc-comment-card__avatar img {
		width: 36px !important;
		height: 36px !important;
	}
	.dpc-comment-list ul.children .dpc-comment-card__avatar img {
		width: 32px !important;
		height: 32px !important;
	}
}

.dpc-comment-card__body {
	flex: 1;
	min-width: 0;
}

.dpc-comment-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 5px;
}

.dpc-comment-author {
	font-size: 14px;
	font-weight: 700;
	color: var(--dpc-c-text);
}

/* Unified Verified Author Badge */
.dpc-badge-author {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: 9999px;
	background: rgba(37, 99, 235, 0.12);
	color: var(--dpc-c-accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.dpc-badge-author svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

.dpc-comment-parent-tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--dpc-c-accent);
	background: rgba(59, 130, 246, 0.08);
	padding: 1px 7px;
	border-radius: 9999px;
}

.dpc-comment-time {
	font-size: 12px;
	color: var(--dpc-c-muted);
	margin-left: auto;
}

.dpc-comment-card__text {
	font-size: var(--dpc-custom-font-size, inherit);
	line-height: inherit;
	color: var(--dpc-c-text);
	word-wrap: break-word;
	margin-bottom: 8px;
}

.dpc-comment-card__text p {
	margin: 0 0 8px;
}

.dpc-comment-card__text p:last-child {
	margin-bottom: 0;
}

.dpc-comment-card__footer {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dpc-comment-votes {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dpc-c-vote-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 9px;
	background: var(--dpc-c-root-bg);
	color: var(--dpc-c-muted);
	border: 1px solid var(--dpc-c-border);
	border-radius: 9999px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dpc-c-vote-btn:hover {
	color: var(--dpc-c-text);
	border-color: var(--dpc-c-muted);
}

.dpc-c-like.is-active {
	color: #10b981;
	border-color: #10b981;
	background: rgba(16, 185, 129, 0.1);
}

.dpc-c-dislike.is-active {
	color: #ef4444;
	border-color: #ef4444;
	background: rgba(239, 68, 68, 0.1);
}

.dpc-comment-reply-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 10px;
	background: transparent;
	color: var(--dpc-c-muted);
	border: none;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.dpc-comment-reply-btn:hover {
	color: var(--dpc-c-accent);
	background: rgba(59, 130, 246, 0.08);
}

.dpc-reply-form-slot > .dpc-comment-respond {
	margin-top: 12px;
	margin-bottom: 4px;
	background: var(--dpc-c-root-bg);
}

/* ==========================================================================
   5. Floating Comment Nudge Widget
   ========================================================================== */
.dpc-comment-nudge {
	position: fixed !important;
	bottom: 28px !important;
	z-index: 999999 !important;
	display: inline-flex;
	align-items: center;
	background: #1e1e24;
	color: #ffffff;
	border: 1px solid #2e2e38;
	border-radius: 9999px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
	pointer-events: none;
	overflow: hidden;
}

.dpc-nudge--right {
	right: 28px !important;
	left: auto !important;
}

.dpc-nudge--left {
	left: 28px !important;
	right: auto !important;
}

.dpc-comment-nudge.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.dpc-comment-nudge__action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px 10px 16px;
	background: transparent;
	color: #ffffff !important;
	border: none;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dpc-comment-nudge__action:hover {
	background: rgba(255, 255, 255, 0.08);
}

.dpc-comment-nudge__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 38px;
	padding: 0;
	background: transparent;
	color: #94a3b8 !important;
	border: none;
	border-left: 1px solid #2e2e38;
	font-size: 16px;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.dpc-comment-nudge__close:hover {
	color: #ffffff !important;
	background: rgba(239, 68, 68, 0.25);
}

@media (max-width: 767.98px) {
	.dpc-comment-nudge {
		bottom: 18px !important;
	}
	.dpc-nudge--right {
		right: 16px !important;
	}
	.dpc-nudge--left {
		left: 16px !important;
	}
}

/* ==========================================================================
   6. Download Gatekeeper Modal, Highlight & Toast
   ========================================================================== */
.dpc-gatekeeper-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.24s ease, visibility 0.24s ease;
	box-sizing: border-box;
	font-family: inherit;
}

.dpc-gatekeeper-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.dpc-gatekeeper-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.dpc-gatekeeper-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	padding: 28px 26px 24px;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
	transform: translateY(10px) scale(0.97);
	transition: transform 0.24s ease;
	box-sizing: border-box;
	text-align: center;
}

.dpc-gatekeeper-modal.is-open .dpc-gatekeeper-modal__dialog {
	transform: translateY(0) scale(1);
}

.dpc-gatekeeper-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #f1f5f9;
	color: #64748b !important;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.dpc-gatekeeper-modal__close:hover {
	background: #e2e8f0;
	color: #0f172a !important;
}

.dpc-gatekeeper-modal__title {
	margin: 0 0 10px;
	padding: 0 24px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
}

.dpc-gatekeeper-modal__desc {
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #475569;
}

.dpc-gatekeeper-modal__auth .dpc-social-login {
	margin: 0;
}

.dpc-gatekeeper-modal__auth .dpc-social-login__buttons {
	justify-content: center;
}

.dpc-gatekeeper-login-fallback {
	background: #2563eb;
	color: #ffffff !important;
	border: 1px solid #2563eb;
}

.dpc-gatekeeper-login-fallback:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff !important;
}

@keyframes dpc-download-pulse {
	0% {
		box-shadow: 0 0 0 2px #10b981, 0 0 0 0 rgba(16, 185, 129, 0.55);
	}
	70% {
		box-shadow: 0 0 0 2px #10b981, 0 0 0 10px rgba(16, 185, 129, 0);
	}
	100% {
		box-shadow: 0 0 0 2px #10b981, 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.dpc-download-ready {
	outline: 2px solid #10b981 !important;
	outline-offset: 2px;
	border-radius: 6px;
	background-color: rgba(16, 185, 129, 0.08);
	animation: dpc-download-pulse 1.5s ease-in-out 4;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.dpc-gatekeeper-toast {
	position: fixed !important;
	right: 24px !important;
	bottom: 24px !important;
	z-index: 999999 !important;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 420px;
	padding: 12px 14px 12px 16px;
	background: #0f172a;
	color: #f8fafc;
	border: 1px solid #10b981;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.32);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	box-sizing: border-box;
	font-family: inherit;
}

.dpc-gatekeeper-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.dpc-gatekeeper-toast__content {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.4;
}

.dpc-gatekeeper-toast__icon {
	display: inline-block;
	color: #10b981;
	font-weight: 700;
	font-size: 15px;
}

.dpc-gatekeeper-toast__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	background: #10b981;
	color: #ffffff !important;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.18s ease;
}

.dpc-gatekeeper-toast__btn:hover {
	background: #059669;
	color: #ffffff !important;
}

.dpc-gatekeeper-toast__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: transparent;
	color: #94a3b8 !important;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.dpc-gatekeeper-toast__close:hover {
	color: #ffffff !important;
}

@media (max-width: 639.98px) {
	.dpc-gatekeeper-modal__dialog {
		padding: 24px 18px 20px;
	}
	.dpc-gatekeeper-toast {
		left: 16px !important;
		right: 16px !important;
		bottom: 16px !important;
		max-width: none;
	}
}

