.ha {
	--mor-700: #5a32d6;
	--mor-600: #6d45f0;
	--mor-500: #8b6cf7;
	--kart: #ffffff;
	--basl: #1c0b42;
	--golge-hafif: 0 10px 30px -14px rgba(58, 28, 140, .22);
	--kabuk: 1240px;
	--kenar: clamp(12px, 3vw, 24px);
	--egri: cubic-bezier(.22, 1, .36, 1);
	position: relative;
	width: 100%;
	padding-block: 12px;
	padding-inline: var(--kenar);
	background: transparent;
}

.ha *,
.ha *::before,
.ha *::after {
	box-sizing: border-box;
}

.ha :focus-visible {
	outline: 3px solid var(--mor-500);
	outline-offset: 3px;
	border-radius: 8px;
}

/* الحاوية الشفافة التي تضبط أماكن الأزرار والشريط */
.ha-gezinme {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: var(--kabuk);
	margin-inline: auto;
	padding: 10px 12px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow: 0 8px 28px -12px rgba(58, 28, 140, 0.16);
}

html.dark-skin .ha-gezinme,
body.dark-skin .ha-gezinme {
	background: rgba(33, 21, 66, 0.55);
	border-color: rgba(255, 255, 255, 0.14);
}

.ha-komsu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 48px;
	padding-inline: 12px 14px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #6d45f0, #ec5fa6);
	color: #ffffff;
	box-shadow: var(--golge-hafif);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .18s var(--egri), opacity .18s var(--egri);
}

.ha-komsu.sag {
	padding-inline: 14px 12px;
}

.ha-komsu img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: none;
	object-fit: contain;
}

.ha-komsu svg {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ha-komsu:hover:not(:disabled) {
	opacity: .92;
	transform: translateY(-1px);
}

.ha-komsu:disabled {
	opacity: .42;
	cursor: not-allowed;
	transform: none;
}

.ha-serit {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 12px;
	overflow-x: auto;
	list-style: none;
	list-style-type: none;
	counter-reset: none;
	scrollbar-width: none;
	scroll-behavior: smooth;
	cursor: grab;
	user-select: none;
	touch-action: pan-y;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.ha-serit.dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	touch-action: none;
}

.ha-serit::-webkit-scrollbar {
	display: none;
}

.ha-serit > li {
	margin: 0;
	padding: 0;
	flex: none;
	list-style: none;
	list-style-type: none;
	counter-increment: none;
}

.ha-serit > li::before,
.ha-serit > li::after,
.ha-serit > li::marker {
	content: none !important;
	display: none !important;
}

.ha-gun {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 3px;
	width: 50px;
	height: 54px;
	border-radius: 14px;
	color: var(--basl);
	text-decoration: none;
	transition: transform .18s var(--egri);
}

.ha-gun img {
	display: block;
	width: 23px;
	height: 23px;
	max-width: none;
	object-fit: contain;
	pointer-events: none;
}

.ha-gun b {
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.ha-gun.tri-1 {
	background: #ffdfc7f2;
}

.ha-gun.tri-2 {
	background: #dad3ecf2;
}

.ha-gun.tri-3 {
	background: #cae9dbf2;
}

.ha-gun:hover {
	transform: translateY(-2px);
}

.ha-gun[aria-current] {
	background: var(--mor-600);
	color: #fff;
	box-shadow: 0 8px 18px -10px #3c1e8ccc;
}

@media (max-width: 640px) {
	.ha-gezinme {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
		padding: 10px;
		border-radius: 20px;
	}

	.ha-serit {
		grid-column: 1 / -1;
		grid-row: 1;
		padding-inline: 6px;
	}

	.ha-komsu {
		width: 100%;
		height: 44px;
	}
}

/* على المسار [data-ha-serit] */
[data-ha-serit] {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;   /* سلاسة على iOS */
  touch-action: pan-y;                 /* يمنع تعارض السحب الأفقي مع تمرير الصفحة */
  scrollbar-width: none;               /* إخفاء الشريط في Firefox */
  -ms-overflow-style: none;
  user-select: none;                   /* يمنع تحديد النص أثناء السحب */
  -webkit-user-select: none;
  cursor: grab;
}

[data-ha-serit]::-webkit-scrollbar { display: none; }

[data-ha-serit].dragging {
  cursor: grabbing;
  scroll-behavior: auto;               /* مهم: لا تستخدم smooth أثناء السحب */
}

/* منع سحب الصور داخل المسار */
[data-ha-serit] img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;                /* إن كانت الصور مجرد عرض */
}

/* الروابط داخل المسار — منع تحديد النص أثناء النقر */
[data-ha-serit] a {
  -webkit-user-drag: none;
}