/* Catalog cards — same Kutby identity, new shapes (no education grades). */

.dl-cat-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.dl-cat-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 100%;
	overflow: hidden;
	background: #fff;
}

.dl-cat-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 88px;
	color: #2563eb;
	background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
}

.dl-cat-card--violet .dl-cat-card__icon {
	color: #7c3aed;
	background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 100%);
}

.dl-cat-card--teal .dl-cat-card__icon {
	color: #0d9488;
	background: linear-gradient(160deg, #f0fdfa 0%, #f8fafc 100%);
}

.dl-cat-card--amber .dl-cat-card__icon {
	color: #d97706;
	background: linear-gradient(160deg, #fffbeb 0%, #f8fafc 100%);
}

.dl-cat-card--rose .dl-cat-card__icon {
	color: #e11d48;
	background: linear-gradient(160deg, #fff1f2 0%, #f8fafc 100%);
}

.dl-cat-card__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.dl-cat-card__label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.dl-cat-card__hint {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
}

.dl-cat-card .phv2-details {
	margin-top: auto;
}

/* ---- Tech platform category cards ---- */

.tech-cats__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.tech-cat {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	border: 1px solid #e8eaed;
	text-decoration: none;
	color: inherit;
	background: #fff;
	min-height: 100%;
	transition: transform .15s, box-shadow .15s, border-color .15s;
	overflow: hidden;
	position: relative;
}

.tech-cat::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
}

.tech-cat:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.tech-cat__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tech-cat__badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .02em;
}

.tech-cat__count {
	font-size: 12px;
	font-weight: 800;
}

.tech-cat__stack {
	display: flex;
	align-items: center;
	justify-content: center;
	direction: ltr;
	min-height: 48px;
	padding: 8px 0 2px;
}

.tech-cat__app {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
	background: #f8fafc;
	margin-inline-start: -10px;
}

.tech-cat__app:first-child {
	margin-inline-start: 0;
	z-index: 3;
}

.tech-cat__app:nth-child(2) { z-index: 2; }
.tech-cat__app:nth-child(3) { z-index: 1; }

.tech-cat__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: center;
}

.tech-cat__label {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	font-family: Tajawal, var(--font-tajawal), system-ui, sans-serif;
}

.tech-cat__hint {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
}

.tech-cat__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
}

.tech-cat--green {
	background: linear-gradient(180deg, #f3fff7 0%, #fff 42%);
	border-color: #c6f0d4;
}
.tech-cat--green::before { background: #247048; }
.tech-cat--green .tech-cat__badge { background: #e8faf0; color: #247048; }
.tech-cat--green .tech-cat__count,
.tech-cat--green .tech-cat__cta { color: #247048; }
.tech-cat--green .tech-cat__cta { background: #f0fff4; }
.tech-cat--green:hover { border-color: #86efac; }

.tech-cat--orange {
	background: linear-gradient(180deg, #fff8f1 0%, #fff 42%);
	border-color: #f5d9c0;
}
.tech-cat--orange::before { background: #9a4f1c; }
.tech-cat--orange .tech-cat__badge { background: #fff5eb; color: #9a4f1c; }
.tech-cat--orange .tech-cat__count,
.tech-cat--orange .tech-cat__cta { color: #9a4f1c; }
.tech-cat--orange .tech-cat__cta { background: #fff5eb; }
.tech-cat--orange:hover { border-color: #fdba74; }

.tech-cat--blue {
	background: linear-gradient(180deg, #f4f6ff 0%, #fff 42%);
	border-color: #d4dbff;
}
.tech-cat--blue::before { background: #3d5af1; }
.tech-cat--blue .tech-cat__badge { background: #eef2ff; color: #3d5af1; }
.tech-cat--blue .tech-cat__count,
.tech-cat--blue .tech-cat__cta { color: #3d5af1; }
.tech-cat--blue .tech-cat__cta { background: #eef2ff; }
.tech-cat--blue:hover { border-color: #a5b4fc; }

.tech-cat--violet {
	background: linear-gradient(180deg, #faf5ff 0%, #fff 42%);
	border-color: #e9e0ff;
}
.tech-cat--violet::before { background: #7c3aed; }
.tech-cat--violet .tech-cat__badge { background: #f5f3ff; color: #7c3aed; }
.tech-cat--violet .tech-cat__count,
.tech-cat--violet .tech-cat__cta { color: #7c3aed; }
.tech-cat--violet .tech-cat__cta { background: #f5f3ff; }
.tech-cat--violet:hover { border-color: #c4b5fd; }

.tech-cat--rose {
	background: linear-gradient(180deg, #fff5f7 0%, #fff 42%);
	border-color: #fecdd3;
}
.tech-cat--rose::before { background: #be123c; }
.tech-cat--rose .tech-cat__badge { background: #fff1f2; color: #be123c; }
.tech-cat--rose .tech-cat__count,
.tech-cat--rose .tech-cat__cta { color: #be123c; }
.tech-cat--rose .tech-cat__cta { background: #fff1f2; }
.tech-cat--rose:hover { border-color: #fda4af; }

@media (max-width: 1100px) {
	.tech-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.tech-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.dl-item-card {
	background: #f8fafc !important;
}

.dl-item-card__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	min-height: 84px;
}

.dl-item-card__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	overflow: hidden;
	background: #eff6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
}

.dl-item-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	background: #fff;
}

.dl-item-card__fallback {
	display: inline-flex;
	color: #2563eb;
}

.dl-item-card__text {
	flex: 1;
	min-width: 0;
}

.dl-item-card__title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	/* Isolate LTR titles without flipping start-edge alignment in RTL. */
	unicode-bidi: isolate;
	text-align: start;
}

.dl-item-card__meta {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	color: #475569;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dl-item-card__size {
	flex-shrink: 0;
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	color: #64748b;
	white-space: nowrap;
	max-width: 4.75rem;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: end;
}

.dl-item-card__cta {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #eff6ff;
	color: #2563eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Latest additions: readable mobile cards */
@media (max-width: 640px) {
	.home-catalog-latest .home-cards-grid,
	.home-catalog-latest-grid {
		grid-template-columns: 1fr !important;
		gap: 8px;
	}

	.home-catalog-latest .dl-item-card__inner {
		min-height: 0;
		padding: 10px 12px;
		gap: 10px;
	}

	.home-catalog-latest .dl-item-card__icon {
		width: 48px;
		height: 48px;
		border-radius: 12px;
	}

	.home-catalog-latest .dl-item-card__title {
		font-size: 14px;
	}

	.home-catalog-latest .dl-item-card__cta {
		width: 36px;
		height: 36px;
	}
}

/* ---- Storefront (Uptodown-like structure, Kutby tokens) ---- */

.store-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.store-panel__title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.store-panel__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	font-family: Tajawal, var(--font-tajawal), system-ui, sans-serif;
}

.store-panel__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	flex-shrink: 0;
}

.store-panel__badge--blue { background: #eff6ff; color: #2563eb; }
.store-panel__badge--teal { background: #f0fdfa; color: #0d9488; }
.store-panel__badge--amber { background: #fffbeb; color: #d97706; }
.store-panel__badge--rose { background: #fff1f2; color: #e11d48; }
.store-panel__badge--violet { background: #f5f3ff; color: #7c3aed; }

.store-panel__more {
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
	white-space: nowrap;
}

.store-panel__more:hover { color: #1d4ed8; }

.store-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.store-featured-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid #e8eaed;
	border-radius: 12px;
	background: #f8fafc;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, box-shadow .15s;
}

.store-featured-card:hover {
	border-color: #bfdbfe;
	box-shadow: 0 2px 10px rgba(37, 99, 235, .08);
}

.store-featured-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.store-featured-card__title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.store-featured-card__cat {
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
}

.store-featured-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.store-app-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 12px;
}

.store-app-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	padding: 12px 10px 10px;
	border: 1px solid #e8eaed;
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.store-app-card:hover {
	border-color: #bfdbfe;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
	transform: translateY(-2px);
}

.store-app-card__icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.store-app-card__dev {
	font-size: 10px;
	font-weight: 600;
	color: #64748b;
	letter-spacing: .02em;
	text-transform: uppercase;
	margin-bottom: 2px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	/* LTR so ellipsis clips the end (…Group), not the start (…IDEO). */
	direction: ltr;
	unicode-bidi: isolate;
}

.store-app-card__title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	margin: 0 0 2px;
	direction: ltr;
	unicode-bidi: isolate;
}

.store-app-card__cat {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
	text-align: center;
	margin: 0 0 8px;
	line-height: 1.3;
}

.store-app-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid #f1f5f9;
}

.store-free {
	font-size: 11px;
	font-weight: 700;
	color: #047857;
}

.store-os {
	font-weight: 600;
	color: #64748b;
}

.store-os::before {
	content: "·";
	margin: 0 0.35em;
	opacity: 0.7;
}

.store-size {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
}

.store-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.store-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.store-icon:has(img) {
	background: #f1f5f9 !important;
	color: transparent;
	padding: 0;
}

.store-icon--sm {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.store-icon--md {
	width: 56px;
	height: 56px;
	border-radius: 14px;
}

.store-icon--lg {
	width: 64px;
	height: 64px;
	border-radius: 16px;
}

.store-icon--blue { background: #eff6ff; color: #2563eb; }
.store-icon--violet { background: #f5f3ff; color: #7c3aed; }
.store-icon--teal { background: #f0fdfa; color: #0d9488; }
.store-icon--amber { background: #fffbeb; color: #d97706; }
.store-icon--rose { background: #fff1f2; color: #e11d48; }
.store-icon--slate { background: #f1f5f9; color: #475569; }

.store-stars {
	display: inline-flex;
	gap: 1px;
	line-height: 1;
}

.store-star {
	font-size: 11px;
	color: #e2e8f0;
}

.store-star.is-on { color: #f59e0b; }

.store-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.store-col,
.store-cat-block {
	min-width: 0;
	padding: 0 !important;
	overflow: hidden;
}

.store-col__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px 14px 0 0;
}

.store-col__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .55);
}

.store-col__more {
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.store-col--green .store-col__head {
	background: linear-gradient(180deg, #e8faf0 0%, #f0fff4 100%);
	color: #2d8a56;
	border-bottom: 1px solid #d4f0e0;
}

.store-col--green .store-panel__title,
.store-col--green .store-col__more,
.store-col--green .store-col__icon {
	color: #2d8a56;
}

.store-col--blue .store-col__head {
	background: linear-gradient(180deg, #e4e9ff 0%, #eef2ff 100%);
	color: #3d5af1;
	border-bottom: 1px solid #d4dbff;
}

.store-col--blue .store-panel__title,
.store-col--blue .store-col__more,
.store-col--blue .store-col__icon {
	color: #3d5af1;
}

.store-col--orange .store-col__head {
	background: linear-gradient(180deg, #ffecd9 0%, #fff5eb 100%);
	color: #b55d21;
	border-bottom: 1px solid #f5d9c0;
}

.store-col--orange .store-panel__title,
.store-col--orange .store-col__more,
.store-col--orange .store-col__icon {
	color: #b55d21;
}

.store-col .store-list {
	padding: 10px 12px 12px;
}

.store-panel--tint-blue,
.store-panel--tint-amber,
.store-panel--tint-orange {
	padding-top: 0 !important;
	overflow: hidden;
}

.store-panel__head--tint {
	margin: 0 -16px 14px;
	padding: 14px 16px;
	border-radius: 14px 14px 0 0;
}

.store-panel--tint-blue .store-panel__head--tint {
	background: #eef2ff;
	color: #3d5af1;
}

.store-panel--tint-blue .store-panel__head--tint .store-panel__title,
.store-panel--tint-blue .store-panel__head--tint .store-panel__more {
	color: #3d5af1;
}

.store-panel--tint-blue .store-panel__badge--blue {
	background: rgba(255, 255, 255, .65);
	color: #3d5af1;
}

.store-panel--tint-amber .store-panel__head--tint {
	background: #fff5eb;
	color: #b55d21;
}

.store-panel--tint-amber .store-panel__head--tint .store-panel__title,
.store-panel--tint-amber .store-panel__head--tint .store-panel__more {
	color: #b55d21;
}

.store-panel--tint-amber .store-panel__badge--amber {
	background: rgba(255, 255, 255, .65);
	color: #b55d21;
}

.store-panel--tint-orange .store-panel__head--tint {
	background: #fff5eb;
	color: #c2410c;
}

.store-panel--tint-orange .store-panel__head--tint .store-panel__title,
.store-panel--tint-orange .store-panel__head--tint .store-panel__more {
	color: #c2410c;
}

.store-panel--tint-orange .store-panel__badge--orange {
	background: rgba(255, 255, 255, .65);
	color: #c2410c;
}

.store-panel__badge--orange { background: #fff7ed; color: #c2410c; }

.store-cat-block {
	overflow: hidden;
}

.store-cat-block .store-col__head {
	margin-bottom: 0;
}

.store-cat-block .store-app-grid {
	padding: 14px 12px 4px;
}

.store-cat-block .store-cat-block__foot {
	padding-bottom: 14px;
}

.store-more-btn--green {
	background: #f0fff4;
	color: #2d8a56;
	border-color: #c6f0d4;
}

.store-more-btn--green:hover {
	background: #2d8a56;
	border-color: #2d8a56;
	color: #fff;
}

.store-more-btn--blue {
	background: #eef2ff;
	color: #3d5af1;
	border-color: #d4dbff;
}

.store-more-btn--blue:hover {
	background: #3d5af1;
	border-color: #3d5af1;
	color: #fff;
}

.store-more-btn--orange {
	background: #fff5eb;
	color: #b55d21;
	border-color: #f5d9c0;
}

.store-more-btn--orange:hover {
	background: #b55d21;
	border-color: #b55d21;
	color: #fff;
}

.store-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.store-list-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: background .12s;
}

.store-list-row:hover { background: #f8fafc; }

.store-list-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.store-list-row__title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	direction: ltr;
	unicode-bidi: isolate;
}

.store-list-row__cat {
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
}

.store-list-row__score {
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
	flex-shrink: 0;
	min-width: 28px;
	text-align: center;
}

.store-cat-block__foot {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

.store-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	height: 40px;
	padding: 0 22px;
	border-radius: 999px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid #dbeafe;
	transition: background .15s, color .15s;
}

.store-more-btn:hover {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

/* ---- Extra sections: chips / trending / top rated / promo ---- */

.store-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.store-chip {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .12s, box-shadow .12s;
}

.store-chip:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.store-chip--green { background: #f0fff4; color: #2d8a56; border-color: #c6f0d4; }
.store-chip--blue { background: #eef2ff; color: #3d5af1; border-color: #d4dbff; }
.store-chip--orange { background: #fff5eb; color: #b55d21; border-color: #f5d9c0; }
.store-chip--violet { background: #f5f3ff; color: #7c3aed; border-color: #e9e0ff; }
.store-chip--rose { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.store-chip--teal { background: #f0fdfa; color: #0d9488; border-color: #99f6e4; }
.store-chip--amber { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.store-chip--slate { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.store-panel--tint-rose .store-panel__head--tint {
	background: linear-gradient(180deg, #ffe4e8 0%, #fff1f2 100%);
	color: #e11d48;
}

.store-panel--tint-rose .store-panel__head--tint .store-panel__title,
.store-panel--tint-rose .store-panel__head--tint .store-panel__more {
	color: #e11d48;
}

.store-panel--tint-rose .store-panel__badge--rose {
	background: rgba(255, 255, 255, .7);
	color: #e11d48;
}

.store-panel--tint-teal .store-panel__head--tint {
	background: linear-gradient(180deg, #d9faf3 0%, #f0fdfa 100%);
	color: #0d9488;
}

.store-panel--tint-teal .store-panel__head--tint .store-panel__title,
.store-panel--tint-teal .store-panel__head--tint .store-panel__more {
	color: #0d9488;
}

.store-panel--tint-teal .store-panel__badge--teal {
	background: rgba(255, 255, 255, .7);
	color: #0d9488;
}

.store-panel--tint-rose,
.store-panel--tint-teal {
	padding-top: 0 !important;
	overflow: hidden;
}

.store-rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
}

.store-rank-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: background .12s;
}

.store-rank-row:hover { background: #f8fafc; }

.store-rank-row__num {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	background: #f1f5f9;
	color: #64748b;
	flex-shrink: 0;
}

.store-rank-row__num.is-top {
	background: #fff7ed;
	color: #c2410c;
}

.store-rank-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.store-rank-row__title {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.store-rank-row__meta {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
}

.store-rated-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.store-rated-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #e8eaed;
	border-radius: 14px;
	background: #f8fafc;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, box-shadow .15s;
}

.store-rated-card:hover {
	border-color: #99f6e4;
	box-shadow: 0 3px 12px rgba(13, 148, 136, .1);
}

.store-rated-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.store-rated-card__title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.store-rated-card__cat {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: .02em;
}

.store-rated-card__score {
	display: flex;
	align-items: center;
	gap: 8px;
}

.store-rated-card__score strong {
	font-size: 13px;
	color: #0d9488;
}

.store-promo {
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fff1f2 100%);
	border: 1px solid #e8eaed;
}

.store-promo__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
}

.store-promo__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: #e11d48;
}

.store-promo__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	font-family: Tajawal, var(--font-tajawal), system-ui, sans-serif;
}

.store-promo__desc {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.6;
	max-width: 520px;
}

.store-promo__btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
}

.store-promo__btn:hover { background: #1d4ed8; }

/* ---- Platform filter bar ---- */

.store-platform-bar {
	display: flex;
	gap: 8px;
	padding: 0 4px 12px;
	flex-wrap: wrap;
}

.store-platform-bar__item {
	flex: 1;
	min-width: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid #e8eaed;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: transform .12s, box-shadow .12s, border-color .12s;
}

.store-platform-bar__item:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.store-platform-bar__label {
	font-size: 13px;
	font-weight: 800;
}

.store-platform-bar__count {
	display: none;
}

.store-platform-bar__item--green { background: #f0fff4; border-color: #c6f0d4; color: #2d8a56; }
.store-platform-bar__item--blue { background: #eef2ff; border-color: #d4dbff; color: #3d5af1; }
.store-platform-bar__item--orange { background: #fff5eb; border-color: #f5d9c0; color: #b55d21; }
.store-platform-bar__item--violet { background: #f5f0ff; border-color: #ddd0f5; color: #6d4cc9; }
.store-platform-bar__item--slate { background: #f4f6f8; border-color: #d9dee5; color: #475569; }
.store-platform-bar__item--teal { background: #ecfeff; border-color: #b6eef2; color: #0f766e; }
.store-platform-bar__item--rose { background: #fff1f2; border-color: #f5d0d5; color: #be123c; }

.store-platform-bar__item.is-active {
	box-shadow: 0 0 0 2px currentColor inset;
}

/* ---- App CPT archive pagination ---- */

.app-archive-pagination {
	margin-top: 22px;
	padding-top: 4px;
}

.app-archive-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-archive-pagination__item a,
.app-archive-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid #e8eaed;
	background: #fff;
	color: #0f172a;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	transition: transform .12s, box-shadow .12s, border-color .12s, background .12s;
}

.app-archive-pagination__item a:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
	border-color: #c7d2fe;
}

.app-archive-pagination__item .current {
	background: #3d5af1;
	border-color: #3d5af1;
	color: #fff;
}

/* ---- New this week ---- */

.store-week-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.store-week-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 10px;
	border-radius: 14px;
	border: 1px solid #e8eaed;
	background: #fff;
	text-decoration: none;
	color: inherit;
	text-align: center;
	transition: transform .12s, box-shadow .12s;
}

.store-week-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.store-week-card__when {
	font-size: 10px;
	font-weight: 800;
	color: #0d9488;
	background: #f0fdfa;
	padding: 3px 8px;
	border-radius: 999px;
}

.store-week-card__title {
	font-size: 13px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}

.store-week-card__meta {
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
}

/* ---- Recently updated ---- */

.store-update-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.store-update-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: background .12s, border-color .12s;
}

.store-update-row:hover {
	background: #faf5ff;
	border-color: #e9e0ff;
}

.store-update-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.store-update-row__title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.store-update-row__note {
	font-size: 12px;
	font-weight: 400;
	/* Was #94a3b8 (~2.8:1 on white); #64748b meets WCAG AA (~4.6:1). */
	color: #64748b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	unicode-bidi: isolate;
	text-align: start;
}

.store-update-row__ago {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	color: #7c3aed;
	background: #f5f3ff;
	padding: 5px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.store-update-row {
		gap: 10px;
		padding: 10px 12px;
	}

	.store-update-row__title {
		font-size: 13px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		unicode-bidi: isolate;
		text-align: start;
	}

	.store-update-row__note {
		font-size: 11px;
		max-width: 100%;
	}

	.store-update-row__ago {
		padding: 4px 8px;
		font-size: 10px;
	}
}

/* ---- Editors' picks ---- */

.store-editors-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.store-editor-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px;
	border-radius: 18px;
	border: 1px solid #e8eaed;
	text-decoration: none;
	color: inherit;
	min-height: 200px;
	transition: transform .15s, box-shadow .15s;
	position: relative;
	overflow: hidden;
}

.store-editor-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.store-editor-card--slate,
.store-editor-card--violet,
.store-editor-card--teal,
.store-editor-card--blue,
.store-editor-card--rose,
.store-editor-card--amber {
	background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
}

.store-editor-card--slate { background: linear-gradient(145deg, #f8fafc 0%, #fff 55%); border-color: #e2e8f0; }
.store-editor-card--violet { background: linear-gradient(145deg, #faf5ff 0%, #fff 55%); border-color: #e9e0ff; }
.store-editor-card--teal { background: linear-gradient(145deg, #f0fdfa 0%, #fff 55%); border-color: #99f6e4; }
.store-editor-card--blue { background: linear-gradient(145deg, #eff6ff 0%, #fff 55%); border-color: #bfdbfe; }
.store-editor-card--rose { background: linear-gradient(145deg, #fff1f2 0%, #fff 55%); border-color: #fecdd3; }
.store-editor-card--amber { background: linear-gradient(145deg, #fffbeb 0%, #fff 55%); border-color: #fde68a; }

.store-editor-card__tag {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 800;
	color: #e11d48;
	background: #fff1f2;
	padding: 4px 10px;
	border-radius: 999px;
}

.store-editor-card__main {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	flex: 1;
}

.store-editor-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.store-editor-card__dev {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.store-editor-card__title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	font-family: Tajawal, var(--font-tajawal), system-ui, sans-serif;
}

.store-editor-card__blurb {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.55;
	margin-top: 4px;
}

.store-editor-card__why {
	font-size: 12px;
	font-weight: 700;
	color: #2563eb;
	margin-top: 6px;
}

.store-editor-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	border-radius: 12px;
	background: #0f172a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.store-icon--xl {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	flex-shrink: 0;
}

.store-icon--xl img {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	object-fit: cover;
}

/* ---- Quick compare ---- */

.store-compare {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.store-compare__apps {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}

.store-compare__side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 14px;
	border-radius: 16px;
	border: 1px solid #e8eaed;
	background: #fff;
	text-decoration: none;
	color: inherit;
	text-align: center;
	transition: transform .12s, box-shadow .12s;
}

.store-compare__side:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.store-compare__side--left { background: linear-gradient(180deg, #f0fff4 0%, #fff 60%); border-color: #c6f0d4; }
.store-compare__side--right { background: linear-gradient(180deg, #eff6ff 0%, #fff 60%); border-color: #bfdbfe; }

.store-compare__vs {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .04em;
	background: #0f172a;
	color: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .2);
}

.store-compare__name {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

.store-compare__cat {
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
}

.store-compare__table {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 4px 0;
}

.store-compare__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #f8fafc;
}

.store-compare__cell--label {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-align: center;
	min-width: 72px;
}

.store-compare__cell--val {
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	text-align: center;
}

.store-compare__cell--val.is-win {
	color: #2d8a56;
	background: #f0fff4;
	border-radius: 8px;
	padding: 4px 8px;
}

.store-compare__cell--val.is-tie {
	color: #2563eb;
}

@media (max-width: 1100px) {
	.store-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.store-columns { grid-template-columns: 1fr; }
	.store-rank-list { grid-template-columns: 1fr; }
	.store-rated-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.store-week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.store-featured-grid { grid-template-columns: 1fr; }
	.store-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.store-rated-grid { grid-template-columns: 1fr; }
	.store-promo__inner { flex-direction: column; align-items: stretch; text-align: center; }
	.store-promo__desc { max-width: none; }
	.store-promo__btn { width: 100%; }
	.store-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.store-editors-grid { grid-template-columns: 1fr; }
	.store-platform-bar__item { min-width: calc(33.333% - 6px); }
	.platform-hub__subsections .store-platform-bar__item { min-width: 0 !important; width: auto !important; }
	.store-compare__apps { gap: 8px; }
	.store-compare__vs { width: 36px; height: 36px; font-size: 10px; }
}

@media (max-width: 640px) {
	.store-columns {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.store-col__head {
		padding: 12px 14px;
		flex-wrap: wrap;
	}

	.store-list {
		padding: 0 10px 10px;
	}

	.store-app-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.home-drivers__grid,
	.dl-item-grid {
		grid-template-columns: 1fr !important;
		gap: 10px;
	}

	.store-col__empty,
	.home-drivers__empty {
		font-size: 12px;
		padding: 12px;
	}

	.hero-search,
	.hero-search-card {
		min-height: 0;
	}
}


/* ---- Platform hub (taxonomy archive) ---- */

.platform-hub {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.platform-hub__titles {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.platform-hub__subtitle {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.35;
}

.platform-hub__count {
	display: none;
}

.platform-hub__hero .store-platform-bar {
	padding: 10px 0 4px;
}

.platform-hub__sections {
	padding-top: 4px;
}

.platform-hub__subsections {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid #e8edf3;
	align-items: center;
}

.platform-hub__subs-wrap {
	margin-top: 6px;
}

.platform-hub__subs-wrap .platform-hub__subsections {
	margin-top: 0;
}

.platform-hub__subs-toggle {
	display: none;
	appearance: none;
	width: 100%;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #334155;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-align: start;
	box-sizing: border-box;
}

.platform-hub__subs-toggle-icon,
.platform-hub__subs-toggle-chevron {
	flex-shrink: 0;
	color: #64748b;
}

.platform-hub__subs-toggle-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.platform-hub__subs-toggle-count {
	flex-shrink: 0;
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #475569;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

.platform-hub__subs-wrap.is-open .platform-hub__subs-toggle-chevron {
	transform: rotate(180deg);
}

.platform-hub__subs-wrap.is-open .platform-hub__subs-toggle {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
}

.platform-hub__subs-wrap.is-open .platform-hub__subs-toggle-count {
	background: #dbeafe;
	color: #1d4ed8;
}

.platform-hub__hero .platform-hub__subsections .store-platform-bar__item,
.platform-hub__subsections .store-platform-bar__item {
	flex: 0 0 auto !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 34px !important;
	padding: 0 12px !important;
	box-sizing: border-box;
	white-space: nowrap !important;
}

.platform-hub__hero .platform-hub__subsections .store-platform-bar__label,
.platform-hub__subsections .store-platform-bar__label {
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap !important;
	overflow: visible;
}

/* Platform hub hero — match app-detail mobile rhythm */
@media (max-width: 640px) {
	.platform-hub {
		gap: 12px;
	}

	.platform-hub__hero.home-panel,
	.platform-hub .home-panel.platform-hub__hero {
		padding: 10px;
	}

	.platform-hub .store-panel__head {
		margin-bottom: 8px;
		gap: 8px;
	}

	.platform-hub .store-panel__title {
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
	}

	.platform-hub .store-panel__more {
		font-size: 11px;
		font-weight: 600;
	}

	.platform-hub .store-panel__badge {
		width: 22px;
		height: 22px;
		border-radius: 6px;
	}

	.platform-hub .store-panel__badge svg {
		width: 12px;
		height: 12px;
	}

	.platform-hub__subtitle {
		font-size: 11px;
	}

	/* Primary section pills: الكل / ألعاب / تطبيقات */
	.platform-hub__sections.store-platform-bar,
	.platform-hub__hero > .store-platform-bar.platform-hub__sections,
	.platform-hub__hero .platform-hub__sections {
		gap: 6px;
		padding: 4px 0 0;
	}

	.platform-hub__sections .store-platform-bar__item {
		min-width: 0;
		padding: 6px 8px;
		border-radius: 9px;
		gap: 5px;
	}

	.platform-hub__sections .store-platform-bar__label {
		font-size: 11px;
		font-weight: 800;
		line-height: 1.2;
	}

	.platform-hub__sections .store-platform-bar__item svg,
	.platform-hub__sections .store-platform-bar__icon {
		width: 14px;
		height: 14px;
	}

	/* Category tag cloud — collapsed behind toggle on phone */
	.platform-hub__subs-toggle {
		display: inline-flex;
		margin-top: 6px;
	}

	.platform-hub__subs-wrap {
		margin-top: 2px;
	}

	.platform-hub__subs-wrap:not(.is-open) .platform-hub__subsections {
		display: none !important;
	}

	.platform-hub__subs-wrap.is-open .platform-hub__subsections {
		display: flex;
		margin-top: 6px;
		padding-top: 8px;
		border-top: 1px solid #e8edf3;
		gap: 5px !important;
	}

	.platform-hub__hero .platform-hub__subsections .store-platform-bar__item,
	.platform-hub__subsections .store-platform-bar__item {
		height: 24px !important;
		padding: 0 7px !important;
		border-radius: 7px;
		gap: 3px;
	}

	.platform-hub__hero .platform-hub__subsections .store-platform-bar__label,
	.platform-hub__subsections .store-platform-bar__label {
		font-size: 10px;
		font-weight: 700;
	}

	.platform-hub__subsections {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
		gap: 5px !important;
	}

	.platform-hub__hero .store-platform-bar {
		gap: 5px;
		padding: 6px 0 2px;
	}

	.platform-hub .store-app-card__title {
		font-size: 12px;
		font-weight: 600;
	}

	.platform-hub .store-app-card__cat {
		font-size: 10px;
		font-weight: 500;
	}
}

.platform-hub__section {
	margin: 0;
}

/* Chic underline filter tabs */
.platform-hub__filter {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 4px 0 16px;
	border-bottom: 1px solid #e8edf3;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.platform-hub__filter::-webkit-scrollbar {
	display: none;
}

.platform-hub__tab {
	appearance: none;
	border: 0;
	background: transparent;
	margin: 0;
	padding: 10px 14px 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
	position: relative;
	white-space: nowrap;
	line-height: 1.2;
	transition: color .15s ease;
}

.platform-hub__tab:hover {
	color: #0f172a;
}

.platform-hub__tab.is-active {
	color: #0d9488;
}

.platform-hub__tab.is-active::after {
	content: "";
	position: absolute;
	inset-inline: 10px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: #0d9488;
}

.platform-hub__tab:focus-visible {
	outline: 2px solid #99f6e4;
	outline-offset: 2px;
	border-radius: 6px;
}

/* Filter tabs + category chips — denser after base rules so they win */
@media (max-width: 640px) {
	.platform-hub__filter {
		margin: 0 0 12px;
		font-size: 11.5px;
	}

	.platform-hub__tab {
		padding: 8px 10px 9px;
		font-size: 11.5px;
		font-weight: 800;
	}

	.platform-hub__tab.is-active::after {
		inset-inline: 8px;
		height: 2px;
	}

	.platform-hub__cat {
		font-size: 10.5px;
		height: 26px;
		padding: 0 9px;
	}
}

.platform-hub__cats {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	margin: -4px 0 16px;
}

.platform-hub__cats.is-open {
	display: flex;
}

.platform-hub__cat {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background .12s, border-color .12s, color .12s;
}

.platform-hub__cat:hover {
	border-color: #cbd5e1;
	background: #fff;
	color: #0f172a;
}

.platform-hub__cat.is-active {
	border-color: #99f6e4;
	background: #f0fdfa;
	color: #0f766e;
}

.platform-hub__cat-n {
	display: none;
}

.platform-hub__empty {
	margin: 8px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
}

.platform-hub__catalog .store-app-grid {
	min-height: 120px;
}

.store-panel--tint-orange {
	background: linear-gradient(180deg, #fff8f1 0%, #fff 48%);
}

/* ---- Homepage drivers section ---- */

.home-drivers {
	margin-top: 0;
}

.home-drivers__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.home-drivers__cat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid #ccfbf1;
	background: #f0fdfa;
	color: #0f766e;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	transition: background .15s, border-color .15s, color .15s;
}

.home-drivers__cat:hover {
	background: #ccfbf1;
	border-color: #5eead4;
	color: #115e59;
}

.home-drivers__cat-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(13, 148, 136, .12);
	font-size: 11px;
	font-weight: 700;
}

.home-drivers__cat--blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.home-drivers__cat--blue .home-drivers__cat-count { background: rgba(37, 99, 235, .12); }
.home-drivers__cat--violet { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.home-drivers__cat--violet .home-drivers__cat-count { background: rgba(109, 40, 217, .12); }
.home-drivers__cat--rose { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.home-drivers__cat--rose .home-drivers__cat-count { background: rgba(190, 18, 60, .1); }
.home-drivers__cat--orange { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.home-drivers__cat--orange .home-drivers__cat-count { background: rgba(194, 65, 12, .1); }
.home-drivers__cat--slate { background: #f8fafc; border-color: #e2e8f0; color: #334155; }
.home-drivers__cat--slate .home-drivers__cat-count { background: rgba(51, 65, 85, .1); }

.home-drivers__grid {
	margin-top: 2px;
}

.home-drivers__empty {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.store-col__empty {
	margin: 10px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.store-col__empty a,
.home-drivers__empty a {
	/* Was #0d9488 (~3.4:1 on #f8fafc); #0f766e meets WCAG AA. */
	color: #0f766e;
	text-decoration: none;
}

.store-col__empty a:hover,
.home-drivers__empty a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.home-drivers__cats {
		gap: 6px;
	}
	.home-drivers__cat {
		font-size: 11px;
		padding: 6px 10px;
	}
}

/* Mobile header toolbar (homepage does not load site-chrome / edu-critical). */
@media (max-width: 768px) {
	.site-sticky-header {
		max-width: 100%;
	}

	.site-header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 0 12px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		height: 52px;
		position: relative;
	}

	.site-header-logo-link {
		min-width: 0;
		max-width: min(128px, 42vw);
		flex-shrink: 0;
	}

	.site-header-logo {
		max-width: 100% !important;
		height: auto !important;
		max-height: 34px !important;
		width: auto !important;
	}

	.header-search-container {
		width: auto !important;
		flex: 0 0 auto;
		margin-inline-start: auto;
		position: static;
	}

	.header-search-form,
	.kutby-lang-switcher--header .kutby-lang-switcher__toggle,
	.hamburger-btn {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
		max-width: 32px !important;
		max-height: 32px !important;
		border-radius: 9px !important;
		border: 1px solid #e8edf3 !important;
		background: #f8fafc !important;
		box-shadow: none !important;
		padding: 0 !important;
		box-sizing: border-box;
		justify-content: center !important;
		align-items: center !important;
		display: inline-flex !important;
		color: #64748b;
		cursor: pointer;
		flex-shrink: 0;
	}

	.header-search-form {
		display: flex !important;
	}

	.header-search-form > button {
		padding: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		flex-shrink: 0;
		color: #64748b;
		background: transparent !important;
		border: 0 !important;
	}

	.header-search-form > button svg,
	.kutby-lang-switcher--header .kutby-lang-switcher__globe svg,
	.hamburger-btn svg {
		width: 15px !important;
		height: 15px !important;
	}

	.header-search-form:not(.is-search-open) .site-search-field {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	.header-search-form.is-search-open {
		position: absolute;
		inset-inline: 10px;
		top: calc(100% + 6px);
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 44px !important;
		max-height: 44px !important;
		z-index: 140;
		box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
		background: #fff !important;
		border-color: #e2e8f0 !important;
		border-radius: 12px !important;
	}

	.header-search-form.is-search-open .site-search-field {
		position: relative !important;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		clip: auto !important;
		overflow: visible !important;
		flex: 1;
		min-width: 0;
	}

	.header-end {
		gap: 5px;
		min-width: 0;
		flex-shrink: 0;
	}

	.kutby-lang-switcher--header .kutby-lang-switcher__toggle-label,
	.kutby-lang-switcher--header .kutby-lang-switcher__name,
	.kutby-lang-switcher--header .kutby-lang-switcher__flag,
	.kutby-lang-switcher--header .kutby-lang-switcher__flag-emoji,
	.kutby-lang-switcher--header .kutby-lang-switcher__caret {
		display: none !important;
	}

	.kutby-lang-switcher--header .kutby-lang-switcher__toggle {
		gap: 0 !important;
	}
}

@media (max-width: 430px) {
	.site-header-inner {
		gap: 6px;
		padding: 0 10px;
	}

	.site-header-logo-link {
		max-width: min(112px, 38vw);
	}

	.header-end {
		gap: 4px;
	}
}

/*
 * EXPERIMENT 2.41.20 — BackVersion.com measured type (mobile only).
 * Component-by-component; no layout/padding/margin changes.
 * Measured @390px: mz-sec 13/600 · la-cat 15/600 · app-card-name 11/600 ·
 * la-item 12.5/600 · score 13/500 · view-all 13/600 · more 14/800 · hero 18/700
 * Revert: copy from themes/kutby/_backup-typo-2.41.19/
 */
@media (max-width: 768px) {
	/* Hero (homepage critical may win without this) */
	.hero-search-title {
		font-size: 18px;
		font-weight: 700;
	}

	/* Section heads */
	.store-panel__title {
		font-size: 14px;
		font-weight: 600;
	}

	.store-panel__head--tint .store-panel__title,
	.store-col .store-panel__title,
	.store-col--green .store-panel__title,
	.store-col--blue .store-panel__title,
	.store-col--orange .store-panel__title {
		font-size: 15px;
		font-weight: 600;
	}

	.store-panel__more {
		font-size: 13px;
		font-weight: 600;
	}

	/* Grid cards (BV app-card) */
	.store-app-card__title {
		font-size: 12px;
		font-weight: 600;
	}

	.store-app-card__cat {
		font-size: 10px;
		font-weight: 500;
	}

	.store-app-card__dev {
		font-size: 10px;
		font-weight: 500;
	}

	.store-free {
		font-size: 10px;
		font-weight: 600;
	}

	.store-size,
	.store-os {
		font-size: 11px;
		font-weight: 500;
	}

	/* Featured / list / rank rows */
	.store-featured-card__title,
	.dl-item-card__title,
	.store-rank-row__title,
	.store-week-card__title,
	.store-update-row__title,
	.store-list-row__title {
		font-size: 12.5px;
		font-weight: 600;
	}

	.home-catalog-latest .dl-item-card__title {
		font-size: 13px;
	}

	.store-featured-card__cat,
	.dl-item-card__meta,
	.dl-item-card__size,
	.store-rank-row__meta,
	.store-week-card__meta,
	.store-list-row__cat {
		font-size: 11px;
		font-weight: 400;
	}

	.store-list-row__score {
		font-size: 13px;
		font-weight: 500;
	}

	.store-rated-card__title {
		font-size: 13px;
		font-weight: 600;
	}

	.store-rated-card__cat {
		font-size: 11px;
		font-weight: 500;
	}

	.store-more-btn {
		font-size: 14px;
		font-weight: 700;
	}

	.tech-cat__label {
		font-size: 14px;
		font-weight: 600;
	}

	.tech-cat__hint {
		font-size: 12px;
		font-weight: 500;
	}

	.store-promo__title {
		font-size: 16px;
		font-weight: 700;
	}

	.store-promo__desc {
		font-size: 13px;
		font-weight: 500;
	}

	.store-editor-card__title {
		font-size: 13px;
		font-weight: 600;
	}

	.store-editor-card__blurb {
		font-size: 12px;
		font-weight: 400;
	}
}

/* Mobile drawer chrome (homepage loads catalog sync; keep labels/lang near top) */
.kutby-lang-switcher--mobile {
	display: block;
	padding: 12px 20px;
	border-block-end: 1px solid var(--border-light, #e8eaed);
	border-block-start: 0;
}

.mobile-nav__lang { flex-shrink: 0; }

.mobile-nav__label {
	margin: 10px 20px 2px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	color: #94a3b8;
}

#mobile-nav > ul {
	flex: 0 1 auto;
	min-height: 0;
	overflow-y: auto;
}

#mobile-nav > ul.mobile-nav__pages {
	flex: 0 0 auto;
	overflow: visible;
	border-block-end: 1px solid var(--border-light, #e8eaed);
	padding-bottom: 8px !important;
	margin-bottom: 0;
}
