:root {
	--mj-ann-blue: #0467f2;
	--mj-ann-blue-2: #2f86ff;
	--mj-ann-sky: #10b7ff;
	--mj-ann-gold: #f2a900;
	--mj-ann-gold-2: #ffcf5a;
	--mj-ann-ink: #162b49;
	--mj-ann-muted: #63758f;
	--mj-ann-border: rgba(4, 103, 242, .13);
	--mj-ann-shadow: 0 16px 42px rgba(4, 103, 242, .10);
}

.mj-ann,
.mj-ann * {
	box-sizing: border-box;
}

.mj-ann {
	direction: rtl;
	position: relative;
	z-index: 1001;
	isolation: isolate;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(246, 251, 255, .98), rgba(255, 255, 255, .98) 52%, rgba(239, 248, 255, .97)),
		radial-gradient(circle at 9% 32%, rgba(16, 183, 255, .09), transparent 25%),
		radial-gradient(circle at 83% 18%, rgba(4, 103, 242, .10), transparent 25%),
		radial-gradient(circle at 48% 110%, rgba(242, 169, 0, .08), transparent 32%);
	border-bottom: 1px solid var(--mj-ann-border);
	box-shadow: var(--mj-ann-shadow);
	font-family: IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
}

.mj-ann[hidden],
.mj-ann.is-hidden {
	display: none !important;
}

.mj-ann__bubbles,
.mj-ann::before,
.mj-ann::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.mj-ann__bubbles {
	background-image:
		radial-gradient(circle, rgba(4, 103, 242, .15) 0 6px, rgba(4, 103, 242, .045) 7px 18px, transparent 19px),
		radial-gradient(circle, rgba(16, 183, 255, .14) 0 4px, rgba(16, 183, 255, .04) 5px 13px, transparent 14px),
		radial-gradient(circle, rgba(242, 169, 0, .12) 0 5px, rgba(242, 169, 0, .035) 6px 16px, transparent 17px),
		linear-gradient(115deg, transparent 0 38%, rgba(4, 103, 242, .035) 39% 40%, transparent 41% 100%);
	background-size: 300px 128px, 210px 104px, 250px 118px, 180px 100%;
	background-position: 20px 8px, 118px 28px, 210px 14px, 0 0;
	animation: mjAnnBubbles 28s linear infinite;
	opacity: .82;
	filter: saturate(1.08);
}

.mj-ann::before {
	background:
		linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.38), rgba(255,255,255,.92)),
		repeating-linear-gradient(90deg, transparent 0 96px, rgba(4, 103, 242, .025) 97px 98px, transparent 99px 196px);
}

.mj-ann::after {
	inset: auto 7% -52px auto;
	width: 174px;
	height: 174px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .72), transparent 28%),
		linear-gradient(135deg, rgba(4, 103, 242, .12), rgba(16, 183, 255, .08));
	filter: blur(3px);
	animation: mjAnnFloat 10s ease-in-out infinite;
}

.mj-ann__inner {
	width: min(100% - 30px, 1280px);
	min-height: 68px;
	margin: 0 auto;
	padding: 11px 0;
	display: flex;
	align-items: center;
	gap: 14px;
	direction: rtl;
}

.mj-ann__actions {
	order: 1;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	align-self: center;
}

.mj-ann__content {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	align-content: center;
	gap: 2px;
	text-align: right;
	align-self: center;
}

.mj-ann--actions-left .mj-ann__content {
	order: 1;
}

.mj-ann--actions-left .mj-ann__actions {
	order: 2;
}

.mj-ann--actions-left .mj-ann__close {
	order: 3;
}

.mj-ann--text-right .mj-ann__content {
	text-align: right;
	justify-items: start;
}

.mj-ann--text-center .mj-ann__content {
	text-align: center;
	justify-items: center;
}

.mj-ann--text-left .mj-ann__content {
	text-align: left;
	justify-items: end;
}

.mj-ann__line {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.65;
	max-width: 100%;
}

.mj-ann__line--main {
	-webkit-line-clamp: 1;
	font-size: 15px;
	font-weight: 950;
	color: var(--mj-ann-ink);
	letter-spacing: -.02em;
}

.mj-ann__line--sub {
	-webkit-line-clamp: 1;
	font-size: 13px;
	font-weight: 750;
	color: var(--mj-ann-muted);
}

.mj-ann__button {
	min-height: 38px;
	padding: 0 15px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 950;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	border: 1px solid rgba(255,255,255,.72);
	box-shadow: 0 10px 24px rgba(4, 103, 242, .15);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mj-ann__button:hover,
.mj-ann__button:focus {
	text-decoration: none !important;
	transform: translateY(-1px);
	filter: saturate(1.06);
	box-shadow: 0 16px 30px rgba(4, 103, 242, .20);
}

.mj-ann__button--primary {
	background: linear-gradient(135deg, var(--mj-ann-blue), var(--mj-ann-blue-2));
	color: #fff !important;
}

.mj-ann__button--accent {
	background: linear-gradient(135deg, var(--mj-ann-gold), var(--mj-ann-gold-2));
	color: #2d2408 !important;
	box-shadow: 0 10px 24px rgba(242, 169, 0, .18);
}

.mj-ann__close {
	order: 3;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 13px;
	border: 1px solid rgba(4, 103, 242, .14);
	background: rgba(255,255,255,.84);
	color: #40546d;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(4, 103, 242, .08);
	cursor: pointer;
	transition: .18s ease;
	align-self: center;
}

.mj-ann__close:hover,
.mj-ann__close:focus {
	background: #fff;
	color: var(--mj-ann-blue);
	transform: rotate(5deg) scale(1.03);
}

.mj-ann--no-actions .mj-ann__content {
	padding-inline-start: 0;
	padding-inline-end: 0;
}

.mj-ann--no-close .mj-ann__content {
	padding-inline-end: 0;
}

.mj-ann--preview {
	border: 1px solid var(--mj-ann-border);
	border-radius: 22px;
	box-shadow: 0 16px 38px rgba(4, 103, 242, .08);
}

.mj-ann--preview .mj-ann__inner {
	width: calc(100% - 24px);
}

.minejobs-announcement-admin-preview {
	direction: rtl;
	padding: 10px;
	border-radius: 24px;
	background: #f7fbff;
	border: 1px dashed rgba(4, 103, 242, .18);
}

@keyframes mjAnnBubbles {
	0% { background-position: 20px 8px, 118px 28px, 210px 14px, 0 0; }
	100% { background-position: 320px 8px, -92px 28px, 460px 14px, 180px 0; }
}

@keyframes mjAnnFloat {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .62; }
	50% { transform: translate3d(-32px, -12px, 0) scale(1.08); opacity: .88; }
}

@media (max-width: 860px) {
	.mj-ann__inner {
		width: min(100% - 22px, 1280px);
		min-height: 0;
		padding: 10px 0;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
	}

	.mj-ann__content,
	.mj-ann--actions-left .mj-ann__content {
		order: 1;
		flex-basis: calc(100% - 44px);
	}

	.mj-ann__close,
	.mj-ann--actions-left .mj-ann__close {
		order: 2;
		margin-inline-start: auto;
	}

	.mj-ann__actions,
	.mj-ann--actions-left .mj-ann__actions {
		order: 3;
		flex-basis: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}

	.mj-ann--no-actions .mj-ann__content {
		flex-basis: calc(100% - 44px);
	}

	.mj-ann--no-close .mj-ann__content,
	.mj-ann--no-actions.mj-ann--no-close .mj-ann__content {
		flex-basis: 100%;
	}

	.mj-ann__line--main {
		font-size: 14px;
		-webkit-line-clamp: 2;
	}

	.mj-ann__line--sub {
		font-size: 12px;
		-webkit-line-clamp: 1;
	}

	.mj-ann__button {
		min-height: 36px;
		padding: 0 13px;
		border-radius: 13px;
	}
}

@media (max-width: 520px) {
	.mj-ann__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.mj-ann__button {
		width: 100%;
	}

	.mj-ann__actions .mj-ann__button:only-child {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mj-ann__bubbles,
	.mj-ann::after {
		animation: none !important;
	}

	.mj-ann__button,
	.mj-ann__close {
		transition: none !important;
	}
}

/* MineJobs v80: keep the announcement readable on small screens without clipping text. */
.mj-ann__line {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

@media (max-width: 640px) {
	.mj-ann {
		overflow: visible;
	}

	.mj-ann__inner {
		width: min(100% - 18px, 1280px);
		min-height: 0;
		padding: 12px 0 12px 46px;
		display: block;
		position: relative;
	}

	.mj-ann__content,
	.mj-ann--actions-left .mj-ann__content,
	.mj-ann--no-actions .mj-ann__content,
	.mj-ann--no-close .mj-ann__content,
	.mj-ann--no-actions.mj-ann--no-close .mj-ann__content {
		width: 100%;
		min-width: 0;
		padding: 0;
		display: block;
		text-align: right;
	}

	.mj-ann__line {
		display: block;
		overflow: visible;
		text-overflow: clip;
		-webkit-line-clamp: unset;
		line-height: 1.9;
		max-width: 100%;
	}

	.mj-ann__line--main {
		font-size: 13.5px;
		font-weight: 900;
	}

	.mj-ann__line--sub {
		font-size: 12.2px;
		font-weight: 700;
		margin-top: 2px;
	}

	.mj-ann__close,
	.mj-ann--actions-left .mj-ann__close {
		position: absolute;
		left: 0;
		top: 12px;
		width: 34px;
		height: 34px;
		margin: 0;
	}

	.mj-ann__actions,
	.mj-ann--actions-left .mj-ann__actions {
		width: 100%;
		margin-top: 10px;
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.mj-ann__button {
		width: 100%;
		min-height: 36px;
		white-space: normal;
		line-height: 1.55;
		padding: 8px 12px;
	}
}

@media (max-width: 380px) {
	.mj-ann__inner {
		width: min(100% - 14px, 1280px);
		padding-left: 42px;
	}

	.mj-ann__line--main {
		font-size: 12.8px;
	}

	.mj-ann__line--sub {
		font-size: 11.6px;
	}
}

/* MineJobs v97: mobile announcement must obey selected text alignment and RTL flow. */
.mj-ann__content,
.mj-ann__line {
	direction: rtl;
	unicode-bidi: plaintext;
}
@media (max-width: 640px) {
	.mj-ann--text-right .mj-ann__content,
	.mj-ann--text-right.mj-ann--actions-left .mj-ann__content,
	.mj-ann--text-right.mj-ann--no-actions .mj-ann__content,
	.mj-ann--text-right.mj-ann--no-close .mj-ann__content {
		text-align: right !important;
		justify-items: start !important;
	}
	.mj-ann--text-center .mj-ann__content,
	.mj-ann--text-center.mj-ann--actions-left .mj-ann__content,
	.mj-ann--text-center.mj-ann--no-actions .mj-ann__content,
	.mj-ann--text-center.mj-ann--no-close .mj-ann__content {
		text-align: center !important;
		justify-items: center !important;
	}
	.mj-ann--text-left .mj-ann__content,
	.mj-ann--text-left.mj-ann--actions-left .mj-ann__content,
	.mj-ann--text-left.mj-ann--no-actions .mj-ann__content,
	.mj-ann--text-left.mj-ann--no-close .mj-ann__content {
		text-align: left !important;
		justify-items: end !important;
	}
	.mj-ann__line {
		text-align: inherit !important;
	}
}
