/* Special Serv – WPanel Widget v1.1.3 */

.ss-wpanel {
	font-family: Heebo, "Segoe UI", sans-serif;
	color: #02045e;
	background: #F7F5FA;
	line-height: 1.6;
	direction: rtl;
	border-top: 1px solid #E6E4F0;
	border-bottom: 1px solid #E6E4F0;
	width: 100%;
	max-width: 100%;
}

.ss-wpanel *,
.ss-wpanel *::before,
.ss-wpanel *::after {
	box-sizing: border-box;
}

.ss-wpanel__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 88px 28px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
}

/* Header */
.ss-wpanel__header {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
}

.ss-wpanel__intro {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 620px;
	min-width: 0;
	flex: 1 1 280px;
}

.ss-wpanel__badge {
	font-family: Rubik, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #B23E98;
	direction: ltr;
	text-align: right;
}

.ss-wpanel__title {
	margin: 0;
	font-family: Rubik, sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.25;
	color: #02045e;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ss-wpanel__desc {
	margin: 0;
	font-size: 18px;
	color: #2E3060;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ss-wpanel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ss-wpanel__btn {
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	padding: 10px 18px;
	border-radius: 8px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.3;
	transition: background-color .22s ease, color .22s ease, border-color .22s ease;
	cursor: pointer;
	border: 1px solid transparent;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ss-wpanel__btn--primary {
	background: #B23E98;
	color: #FFFFFF;
}

.ss-wpanel__btn--primary:hover {
	background: #8E2C79;
	color: #FFFFFF;
}

.ss-wpanel__btn--ghost {
	background: #FFFFFF;
	color: #02045e;
	border-color: #C9CBEE;
	padding: 9px 16px;
}

.ss-wpanel__btn--ghost:hover {
	background: #E9E9F8;
	border-color: #02045e;
	color: #02045e;
}

/* Category tabs – equal grid columns, text wraps */
.ss-wpanel__cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	border-bottom: 1px solid #D9D6E8;
}

.ss-wpanel__cat {
	cursor: pointer;
	font-family: Heebo, sans-serif;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 8px;
	min-height: 48px;
	width: 100%;
	max-width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	color: #6B6D8A;
	margin-bottom: -1px;
	transition: color .2s ease, border-color .2s ease;
	line-height: 1.35;
	text-align: center;
	white-space: normal !important;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ss-wpanel__cat:hover {
	color: #02045e;
	border-bottom-color: #C9CBEE;
}

.ss-wpanel__cat.is-active {
	border-bottom-color: #d35db9;
	color: #02045e;
}

.ss-wpanel__cat svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

/* Panels */
.ss-wpanel__panel {
	display: none;
	width: 100%;
}

.ss-wpanel__panel.is-active {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: flex-start;
	width: 100%;
}

.ss-wpanel__features {
	flex: 1 1 320px;
	max-width: 420px;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Feature cards – strict containment, text always wraps */
.ss-wpanel__feature {
	cursor: pointer;
	font-family: Heebo, sans-serif;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: transparent;
	color: #02045e;
	border: 1px solid #E6E4F0;
	text-align: right;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
	white-space: normal !important;
	overflow: hidden; /* keep any edge case inside the card */
}

.ss-wpanel__feature:hover {
	border-color: #9A9CC0;
	background: #FFFFFF;
}

.ss-wpanel__feature.is-active {
	background: #02045e;
	color: #FFFFFF;
	border-color: #02045e;
}

.ss-wpanel__feature-num {
	width: 28px;
	height: 28px;
	min-width: 28px;
	max-width: 28px;
	border-radius: 50%;
	flex: 0 0 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Rubik, sans-serif;
	font-weight: 700;
	font-size: 13px;
	background: #E9E9F8;
	color: #02045e;
	margin-top: 2px;
}

.ss-wpanel__feature.is-active .ss-wpanel__feature-num {
	background: #d35db9;
	color: #02045e;
}

.ss-wpanel__feature-text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	width: auto;
	text-align: right;
	overflow: hidden;
}

.ss-wpanel__feature-title {
	display: block;
	width: 100%;
	max-width: 100%;
	font-family: Rubik, sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
	margin: 0 0 4px;
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-wrap: break-word !important;
	word-break: break-word !important;
}

.ss-wpanel__feature-desc {
	display: block;
	width: 100%;
	max-width: 100%;
	font-size: 13px;
	line-height: 1.5;
	color: #4F5175;
	margin: 0;
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-wrap: break-word !important;
	word-break: break-word !important;
}

.ss-wpanel__feature.is-active .ss-wpanel__feature-desc {
	color: #C9CBEE;
}

.ss-wpanel__note {
	margin: 8px 0 0;
	font-size: 14px;
	color: #4F5175;
	line-height: 1.55;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Screenshot */
.ss-wpanel__shot-wrap {
	flex: 1 1 480px;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	align-self: center;
}

.ss-wpanel__shot {
	border-radius: 12px;
	border: 1px solid #D9D6E8;
	background: #0B0D2E;
	overflow: hidden;
	box-shadow: 0 30px 60px -36px rgba(2, 4, 94, 0.6);
	width: 100%;
}

.ss-wpanel__chrome {
	height: 32px;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 14px;
	background: #121838;
	direction: ltr;
}

.ss-wpanel__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.ss-wpanel__dot--pink { background: #d35db9; }
.ss-wpanel__dot--blue { background: #3A3FC4; }

.ss-wpanel__chrome-label {
	margin-left: 12px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	color: #9A9CC0;
	line-height: 1.3;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ss-wpanel__img-box {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.ss-wpanel__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.ss-wpanel__spot {
	position: absolute;
	border: 2px solid #d35db9;
	border-radius: 8px;
	box-shadow: 0 0 0 9999px rgba(2, 4, 94, 0.45);
	transition: left .45s cubic-bezier(.2, .7, .2, 1), top .45s cubic-bezier(.2, .7, .2, 1), width .45s cubic-bezier(.2, .7, .2, 1), height .45s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
}

.ss-wpanel__caption {
	margin-top: 10px;
	font-size: 13px;
	color: #6B6D8A;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.4;
}

.ss-wpanel__caption-text {
	min-width: 0;
	flex: 1;
	overflow-wrap: break-word;
	word-break: break-word;
}

.ss-wpanel__live {
	width: 8px;
	height: 8px;
	min-width: 8px;
	border-radius: 50%;
	background: #d35db9;
	display: inline-block;
	flex-shrink: 0;
	margin-top: 4px;
	animation: ss-wpanel-live 1.8s ease-out infinite;
}

@keyframes ss-wpanel-live {
	0% { box-shadow: 0 0 0 0 rgba(211, 93, 185, 0.55); }
	80%, 100% { box-shadow: 0 0 0 8px rgba(211, 93, 185, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.ss-wpanel__btn,
	.ss-wpanel__cat,
	.ss-wpanel__feature,
	.ss-wpanel__spot { transition: none !important; }
	.ss-wpanel__live { animation: none !important; }
}

/* Tablet */
@media (max-width: 1024px) {
	.ss-wpanel__features {
		max-width: 100%;
		flex: 1 1 100%;
	}
	.ss-wpanel__shot-wrap {
		flex: 1 1 100%;
	}
	.ss-wpanel__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ss-wpanel__feature-title {
		font-size: 14px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ss-wpanel__inner {
		padding: 48px 16px;
		gap: 28px;
	}
	.ss-wpanel__header {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}
	.ss-wpanel__actions {
		width: 100%;
	}
	.ss-wpanel__btn {
		flex: 1 1 calc(50% - 5px);
		min-width: 0;
	}
	.ss-wpanel__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ss-wpanel__cat {
		font-size: 13px;
		padding: 10px 6px;
	}
	.ss-wpanel__cat svg {
		width: 16px;
		height: 16px;
	}
	.ss-wpanel__feature {
		padding: 12px;
		gap: 10px;
	}
	.ss-wpanel__feature-title {
		font-size: 14px;
	}
	.ss-wpanel__feature-desc {
		font-size: 12px;
	}
	.ss-wpanel__title {
		font-size: clamp(22px, 6vw, 30px);
	}
	.ss-wpanel__desc {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.ss-wpanel__btn {
		flex: 1 1 100%;
	}
	.ss-wpanel__feature-num {
		width: 24px;
		height: 24px;
		min-width: 24px;
		max-width: 24px;
		flex-basis: 24px;
		font-size: 12px;
	}
}
