.jxg-card {
	background: #141417;
	border: 1px solid #2A2A30;
	border-radius: 12px;
	padding: 22px;
	margin: 24px 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	font-family: "Inter", system-ui, sans-serif;
}
.jxg-card * { box-sizing: border-box; }
.jxg-card .jxg-ar { font-family: "Tajawal", "Inter", sans-serif; }

/* Header row */
.jxg-card .jxg-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.jxg-card .jxg-title {
	font-family: "Chakra Petch", "Inter", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #F2F2F2;
	margin: 0;
	padding: 0;
}
.jxg-card .jxg-title-ar {
	font-size: 18px;
	font-weight: 700;
	color: #F2F2F2;
}

/* Sub line */
.jxg-card .jxg-sub {
	font-size: 13px;
	line-height: 1.5;
	color: #A8A8B0;
	margin: 0;
}

/* Buttons */
.jxg-card .jxg-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}
.woocommerce .jxg-card a.jxg-btn,
.jxg-card a.jxg-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	padding: 14px 18px;
	background: #EFC31A !important;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	transition: background-color .15s ease;
}
.woocommerce .jxg-card a.jxg-btn:hover,
.woocommerce .jxg-card a.jxg-btn:focus-visible,
.jxg-card a.jxg-btn:hover,
.jxg-card a.jxg-btn:focus-visible {
	background: #FFD84D !important;
}
.jxg-card a.jxg-btn:focus-visible { outline: 2px solid #F2F2F2; outline-offset: 2px; }

/* Force dark text on the gold button (the theme makes links gold). */
.woocommerce .jxg-card a.jxg-btn,
.woocommerce .jxg-card a.jxg-btn *,
.woocommerce .jxg-card a.jxg-btn:hover,
.woocommerce .jxg-card a.jxg-btn:hover *,
.woocommerce .jxg-card a.jxg-btn:visited,
.woocommerce .jxg-card a.jxg-btn:visited *,
.woocommerce .jxg-card a.jxg-btn:focus,
.woocommerce .jxg-card a.jxg-btn:focus *,
.jxg-card a.jxg-btn,
.jxg-card a.jxg-btn *,
.jxg-card a.jxg-btn:hover,
.jxg-card a.jxg-btn:hover *,
.jxg-card a.jxg-btn:visited,
.jxg-card a.jxg-btn:visited *,
.jxg-card a.jxg-btn:focus,
.jxg-card a.jxg-btn:focus * {
	color: #0A0A0B !important;
	text-decoration: none !important;
}
.jxg-card a.jxg-btn svg.jxg-btn-icon,
.jxg-card a.jxg-btn svg.jxg-btn-icon path {
	stroke: #0A0A0B !important;
	fill: none !important;
}

.jxg-card .jxg-btn-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.jxg-card .jxg-btn-label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.jxg-card .jxg-btn-sub {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}
.jxg-card .jxg-btn-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

/* Footer */
.jxg-card .jxg-help {
	font-size: 12px;
	color: #A8A8B0;
	margin: 0;
}
.woocommerce .jxg-card .jxg-help a,
.jxg-card .jxg-help a {
	color: #EFC31A !important;
	text-decoration: underline !important;
}

/* Attention animation (CSS only) */
@keyframes jxg-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(239, 195, 26, .7); }
	100% { box-shadow: 0 0 0 12px rgba(239, 195, 26, 0); }
}
@keyframes jxg-shine {
	0%       { left: -60%; }
	60%, 100% { left: 130%; }
}
@keyframes jxg-nudge {
	0%, 100% { transform: translate(0, 0); }
	50%      { transform: translate(4px, -4px); }
}
.woocommerce .jxg-card a.jxg-btn,
.jxg-card a.jxg-btn {
	position: relative;
	overflow: hidden;
	animation: jxg-pulse 2s infinite;
	transition: background-color .15s ease, transform .15s ease;
}
.jxg-card a.jxg-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .7), transparent);
	animation: jxg-shine 2.8s infinite;
	pointer-events: none;
	z-index: 0;
}
.jxg-card a.jxg-btn .jxg-btn-text,
.jxg-card a.jxg-btn .jxg-btn-icon {
	position: relative;
	z-index: 1;
}
.jxg-card a.jxg-btn .jxg-btn-icon { animation: jxg-nudge 1.4s infinite; }

/* Stagger: each next button starts 0.4s later. */
.jxg-card a.jxg-btn:nth-child(2), .jxg-card a.jxg-btn:nth-child(2)::before, .jxg-card a.jxg-btn:nth-child(2) .jxg-btn-icon { animation-delay: .4s; }
.jxg-card a.jxg-btn:nth-child(3), .jxg-card a.jxg-btn:nth-child(3)::before, .jxg-card a.jxg-btn:nth-child(3) .jxg-btn-icon { animation-delay: .8s; }
.jxg-card a.jxg-btn:nth-child(4), .jxg-card a.jxg-btn:nth-child(4)::before, .jxg-card a.jxg-btn:nth-child(4) .jxg-btn-icon { animation-delay: 1.2s; }
.jxg-card a.jxg-btn:nth-child(5), .jxg-card a.jxg-btn:nth-child(5)::before, .jxg-card a.jxg-btn:nth-child(5) .jxg-btn-icon { animation-delay: 1.6s; }
.jxg-card a.jxg-btn:nth-child(6), .jxg-card a.jxg-btn:nth-child(6)::before, .jxg-card a.jxg-btn:nth-child(6) .jxg-btn-icon { animation-delay: 2s; }

/* Hover: stop the pulse, lift 2px, lighter gold. */
.woocommerce .jxg-card a.jxg-btn:hover,
.jxg-card a.jxg-btn:hover {
	animation: none;
	box-shadow: none;
	transform: translateY(-2px);
	background: #FFD84D !important;
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce .jxg-card a.jxg-btn,
	.jxg-card a.jxg-btn,
	.jxg-card a.jxg-btn::before,
	.jxg-card a.jxg-btn .jxg-btn-icon {
		animation: none !important;
		transition: none !important;
	}
	.jxg-card a.jxg-btn::before { display: none; }
	.jxg-card a.jxg-btn:hover { transform: none; }
}

@media (max-width: 480px) {
	.jxg-card { padding: 18px; }
}
