/* Home v2 — scoped redesign (body.is-home only) */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* المتغيّرات على مستوى كل صفحات V2 لأن الترويسة والفوتر مشتركان */
body.is-v2,
body.is-home,
body.is-register {
	--hv2-ink: #1f2430;
	--hv2-ink-2: #202531;
	--hv2-gold: #ffc107;
	--hv2-gold-2: #f59e0b;
	--hv2-muted: #3e4949;
	--hv2-border: #dee9fc;
	--hv2-soft: #eeeeee;
	--hv2-urgent: #ef4444;
	--hv2-blue: #2170e4;
	--hv2-success: #10b981;
	--hv2-radius: 24px;
	--hv2-radius-sm: 12px;
	--hv2-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
	font-family: Tajawal, Cairo, sans-serif;
	color: var(--hv2-ink);
}

body.is-home {
	background: #f7f8fa;
}

body.is-home .main-content {
	padding: 0;
	background: #f7f8fa;
}

/* إخفاء الترويسة والفوتر القديمين في كل صفحات V2 */
body.is-v2 #top-header,
body.is-v2 .site-header,
body.is-v2 .nav-bar,
body.is-v2 .site-footer,
body.is-home #top-header,
body.is-home .site-header,
body.is-home .nav-bar,
body.is-home .site-footer {
	display: none !important;
}

body.is-home #NavDrawer_mobile {
	/* keep mobile tab bar usable */
}

/* البلد ثابت (سوريا) — إخفاء حقل الاختيار مع الإبقاء عليه في الـ DOM للنماذج والجافاسكربت */
.country-fixed-hidden,
select#ulke.country-fixed-hidden {
	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;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* إن وُجد غلاف select2 حول البلد الثابت أخفه أيضاً */
.select2-container:has(+ select.country-fixed-hidden),
select.country-fixed-hidden + .select2-container,
.pv2-card .select2-container:has(select.country-fixed-hidden),
body.is-postad select#ulke.country-fixed-hidden + .select2 {
	display: none !important;
}

body.is-v2 .rv2-phone__code:has(select.country-fixed-hidden),
body.is-v2 .rv2-phone--syria-only .rv2-phone__code {
	display: none !important;
}

body.is-v2 .rv2-phone:has(select.country-fixed-hidden) .rv2-phone__number,
body.is-v2 .rv2-phone--syria-only .rv2-phone__number {
	flex: 1 1 100%;
	width: 100%;
}


.hv2-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ========== Header v2 (Figma) ========== */
.hv2-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: 80px;
	background: #eeeeee;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
	/* هامش أمان من حواف الشاشة حتى لا تلتصق الأزرار بالحافة */
	padding: 0 clamp(12px, 2.5vw, 32px);
	box-sizing: border-box;
}

.hv2-header__inner {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding-inline: 0;
	box-sizing: border-box;
}

/* الشعار */
.hv2-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	order: 1;
}

.hv2-header__logo img {
	display: block;
	max-height: 56px;
	width: auto;
}

/* التنقل */
.hv2-header__nav {
	order: 2;
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1 1 auto;
	min-width: 0;
	justify-content: center;
	overflow: hidden;
}

.hv2-header__nav > a {
	position: relative;
	color: #3e4949;
	text-decoration: none;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	padding-bottom: 2px;
	white-space: nowrap;
	transition: color 0.2s;
}

.hv2-header__nav > a:hover {
	color: var(--hv2-ink);
}

.hv2-header__nav > a.is-active {
	color: #0a0c10;
	font-weight: 700;
	border-bottom: 2px solid var(--hv2-gold);
}

/* قائمة "المزيد" */
.hv2-header__more {
	position: relative;
}

.hv2-header__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: #3e4949;
	transition: color 0.2s;
}

.hv2-header__more-btn i {
	font-size: 11px;
}

.hv2-header__more-btn:hover,
.hv2-header__more.is-open .hv2-header__more-btn {
	color: var(--hv2-ink);
}

/* عندما تكون الصفحة الحالية ضمن قائمة "المزيد" */
.hv2-header__more-btn.is-active {
	color: #0a0c10;
	font-weight: 700;
	border-bottom: 2px solid var(--hv2-gold);
}

.hv2-header__dropdown {
	position: absolute;
	top: calc(100% + 14px);
	inset-inline-end: 0;
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--hv2-border);
	border-radius: var(--hv2-radius-sm);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	padding: 8px;
	display: none;
	z-index: 20;
}

.hv2-header__more.is-open .hv2-header__dropdown {
	display: block;
}

.hv2-header__dropdown a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: #3e4949;
	text-decoration: none;
	font-size: 15px;
	text-align: start;
	transition: background 0.2s, color 0.2s;
}

.hv2-header__dropdown a:hover {
	background: #f3f4f6;
	color: var(--hv2-ink);
}

.hv2-header__dropdown a.is-active {
	background: #f3f4f6;
	color: var(--hv2-ink);
	font-weight: 700;
}

/* الإجراءات */
.hv2-header__actions {
	order: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	margin-inline-start: 4px;
}

.hv2-header__login {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: var(--hv2-radius-sm);
	color: #0a0c10;
	text-decoration: none;
	font-size: 16px;
	line-height: 20px;
	white-space: nowrap;
	transition: background 0.2s;
}

.hv2-header__login:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #0a0c10;
}

/* أزرار الهيدر — نفس هوية الصورة: أسود / ذهبي */
.hv2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	text-decoration: none;
	font-family: inherit;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	box-sizing: border-box;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.hv2-btn:hover {
	filter: brightness(1.05);
	text-decoration: none;
}

.hv2-btn--dark {
	background: #1f2430;
	color: #fff !important;
}

.hv2-btn--dark:hover {
	color: #fff !important;
}

.hv2-btn--gold {
	background: #ffc107;
	color: #1f2430 !important;
}

.hv2-btn--gold:hover {
	color: #1f2430 !important;
}

.hv2-header__cta {
	width: auto;
	min-width: 148px;
	height: 48px;
	padding: 0 18px;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
}

.hv2-icon-btn {
	position: relative;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #0a0c10;
	background: rgba(0, 0, 0, 0.04);
	text-decoration: none;
	transition: background 0.2s;
}

.hv2-icon-btn:hover {
	background: rgba(0, 0, 0, 0.09);
	color: #0a0c10;
}

.hv2-icon-btn .badge {
	position: absolute;
	top: -2px;
	inset-inline-end: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--hv2-urgent);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.hv2-header__menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	background: none;
	border: 0;
	color: var(--hv2-ink);
	font-size: 20px;
	cursor: pointer;
	border-radius: 10px;
}

/* ========== Hero (Figma) ========== */
.hv2-hero {
	position: relative;
	min-height: 542px;
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--hv2-ink) center/cover no-repeat;
	isolation: isolate;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* تدرّج يغمق الجهة التي يقع عليها النص */
.hv2-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
	z-index: 0;
}

html[dir="rtl"] .hv2-hero::before {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.hv2-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: end;
	padding: 64px 24px;
	width: 100%;
}

html:not([dir="rtl"]) .hv2-hero__content {
	align-items: flex-start;
}

.hv2-hero__title {
	margin: 0;
	font-size: 60px;
	line-height: 75px;
	font-weight: 700;
	filter: drop-shadow(0 4px 1.5px rgba(0, 0, 0, 0.1)) drop-shadow(0 10px 4px rgba(0, 0, 0, 0.04));
}

.hv2-hero__title span {
	display: block;
}

.hv2-hero__title--accent {
	color: var(--hv2-gold);
}

.hv2-hero__sub {
	margin: 22px 0 0;
	max-width: 512px;
	opacity: 0.9;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
}

/* أزرار الهيرو */
.hv2-hero__ctas {
	display: flex;
	gap: 16px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.hv2-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 281px;
	padding: 17px 33px;
	border-radius: var(--hv2-radius-sm);
	background: #eeeeee;
	border: 1px solid #0a0c10;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #0a0c10;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.2s;
}

.hv2-hero__btn:hover {
	color: #0a0c10;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.45);
}

.hv2-hero__btn--gold {
	min-width: 279px;
	padding: 17px 32px;
	background: linear-gradient(270deg, var(--hv2-gold) 0%, #cccccc 100%);
	border-color: transparent;
	color: #202531;
}

html:not([dir="rtl"]) .hv2-hero__btn--gold {
	background: linear-gradient(90deg, var(--hv2-gold) 0%, #cccccc 100%);
}

.hv2-hero__btn--gold:hover {
	color: #202531;
}

/* شارات الثقة */
.hv2-trust {
	display: flex;
	gap: 16px;
	margin-top: 26px;
	flex-wrap: wrap;
}

.hv2-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 17px;
	border-radius: var(--hv2-radius-sm);
	background: #434655;
	border: 1px solid rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
}

.hv2-trust__item i {
	color: var(--hv2-gold);
}

/* ========== Main categories bar (Figma) ========== */
.hv2-catbar {
	background: #fff;
	padding: 20px 0 0;
}

.hv2-catbar__track {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 17px;
	border-bottom: 1px solid #f3f4f6;
	overflow-x: auto;
	scrollbar-width: none;
}

.hv2-catbar__track::-webkit-scrollbar {
	display: none;
}

.hv2-catbar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	text-decoration: none;
	color: #0a0c10;
}

.hv2-catbar__ico {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f3f4f6;
	border: 1px solid #f3f4f6;
	font-size: 20px;
	color: var(--hv2-ink);
	transition: background 0.2s, transform 0.15s, color 0.2s;
}

.hv2-catbar__item:hover .hv2-catbar__ico {
	background: var(--hv2-gold);
	color: var(--hv2-ink);
	transform: translateY(-3px);
}

.hv2-catbar__label {
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
}

/* ========== Sections ========== */
.hv2-section {
	padding: 56px 0;
}

.hv2-section--tight {
	padding: 40px 0;
}

.hv2-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.hv2-section__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--hv2-ink);
}

.hv2-section__title .accent {
	color: var(--hv2-gold);
}

.hv2-section__sub {
	margin: 8px 0 0;
	font-size: 16px;
	color: var(--hv2-muted);
}

.hv2-section__link {
	color: var(--hv2-blue);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.hv2-section__link:hover {
	text-decoration: underline;
}

/* Upgrade promo */
.hv2-upgrade {
	background: linear-gradient(135deg, #1a1c1c 0%, #2a3140 100%);
	color: #fff;
	border-radius: 32px;
	padding: 40px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px;
	align-items: center;
	overflow: hidden;
	position: relative;
}

.hv2-upgrade__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
}

.hv2-upgrade__title span {
	color: var(--hv2-gold);
}

.hv2-upgrade__text {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.7;
}

.hv2-upgrade__features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 14px;
}

.hv2-upgrade__features li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.hv2-upgrade__features .ico {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 193, 7, 0.15);
	color: var(--hv2-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hv2-upgrade__features strong {
	display: block;
	font-size: 15px;
}

.hv2-upgrade__features span {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.hv2-upgrade__visual {
	display: flex;
	justify-content: center;
}

.hv2-upgrade__visual img {
	max-width: 260px;
	width: 100%;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

/* Bento */
.hv2-bento {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	grid-template-rows: 220px 180px;
	gap: 16px;
}

.hv2-bento__item {
	position: relative;
	border-radius: var(--hv2-radius);
	overflow: hidden;
	display: block;
	background: #ddd center/cover no-repeat;
	box-shadow: var(--hv2-shadow);
	text-decoration: none;
	color: #fff;
}

.hv2-bento__item:first-child {
	grid-row: 1 / span 2;
}

.hv2-bento__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.hv2-bento__item span {
	position: absolute;
	z-index: 1;
	inset-inline-start: 16px;
	bottom: 16px;
	font-weight: 700;
	font-size: 16px;
}

/* Stores */
.hv2-stores {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.hv2-store {
	background: #fff;
	border: 1px solid var(--hv2-border);
	border-radius: var(--hv2-radius);
	padding: 16px 12px;
	text-align: center;
	text-decoration: none;
	color: var(--hv2-ink);
	box-shadow: var(--hv2-shadow);
	transition: transform 0.15s ease;
}

.hv2-store:hover {
	transform: translateY(-3px);
}

.hv2-store__logo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 10px;
	display: block;
	background: #f3f4f6;
}

.hv2-store__name {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.hv2-store__meta {
	font-size: 12px;
	color: var(--hv2-muted);
	margin: 4px 0 0;
}

.hv2-store--cta {
	background: var(--hv2-ink);
	color: #fff;
	border-color: transparent;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 140px;
}

.hv2-store--cta i {
	font-size: 28px;
	color: var(--hv2-gold);
	margin-bottom: 8px;
}

/* Ad cards — base */
.hv2-ads {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.hv2-ad {
	background: #fff;
	border-radius: var(--hv2-radius-sm);
	overflow: hidden;
	box-shadow: var(--hv2-shadow);
	border: 1px solid rgba(222, 233, 252, 0.8);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hv2-ad:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(31, 36, 48, 0.08);
}

.hv2-ad__media {
	position: relative;
	aspect-ratio: 4/3;
	background: #e8eaef;
	overflow: hidden;
}

.hv2-ad__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hv2-ad__badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	background: var(--hv2-gold);
	color: var(--hv2-ink);
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
	z-index: 2;
}

.hv2-ad__badge--urgent {
	background: var(--hv2-urgent);
	color: #fff;
}

.hv2-ad__body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.hv2-ad__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hv2-ad__meta {
	font-size: 12px;
	color: var(--hv2-muted);
}

.hv2-ad__price {
	margin-top: auto;
	font-size: 16px;
	font-weight: 800;
	color: var(--hv2-ink);
}

/* Section title themes + clickable */
.hv2-section__title a {
	color: inherit;
	text-decoration: none;
}

.hv2-section__title a:hover {
	opacity: 0.88;
}

.hv2-section__title--urgent {
	color: #e11d48;
}

.hv2-section__title--luxury {
	color: #d4a106;
	padding-inline-start: 12px;
	position: relative;
}

.hv2-section__title--luxury::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 4px;
	background: var(--hv2-gold);
}

.hv2-section__title--featured {
	color: var(--hv2-blue);
	padding-inline-start: 12px;
	position: relative;
}

.hv2-section__title--featured::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 4px;
	background: var(--hv2-blue);
}

.hv2-section__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hv2-gold) !important;
	font-weight: 800;
	text-decoration: none;
	font-size: 14px;
}

.hv2-section__link i {
	font-size: 12px;
}

/* Themed vertical cards (urgent / featured) */
.hv2-ads--urgent,
.hv2-ads--featured {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.hv2-tc {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
	box-shadow: 0 6px 22px rgba(31, 36, 48, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hv2-tc:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(31, 36, 48, 0.1);
	border-color: rgba(33, 112, 228, 0.55);
	color: inherit;
	text-decoration: none;
}

.hv2-tc__media {
	position: relative;
	aspect-ratio: 16 / 11;
	background: #e8eaef;
	overflow: hidden;
	border-radius: 14px 14px 0 0;
}

.hv2-tc__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hv2-tc__fav {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--hv2-ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	z-index: 2;
}

.hv2-tc__pill {
	position: absolute;
	bottom: 12px;
	inset-inline-end: 12px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--hv2-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	z-index: 2;
}

.hv2-tc__body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.hv2-tc__title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hv2-tc--urgent .hv2-tc__title,
.hv2-tc--urgent .hv2-tc__price {
	color: #e11d48;
}

.hv2-tc--featured .hv2-tc__title,
.hv2-tc--featured .hv2-tc__price {
	color: var(--hv2-blue);
}

.hv2-tc__loc {
	font-size: 12px;
	color: #8b919a;
	display: flex;
	align-items: center;
	gap: 6px;
}

.hv2-tc__foot {
	margin-top: auto;
	padding-top: 4px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
}

.hv2-tc__time {
	font-size: 12px;
	color: #9aa0a8;
	white-space: nowrap;
}

.hv2-tc__price {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-align: end;
}

/* Luxury horizontal cards — exact Figma (circular photo + gold arc) */
.hv2-ads--luxury {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.hv2-lux {
	--lux-gold: #ffc107;
	--lux-cream: #fbf8ee;
	--lux-ink: #1f2430;
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 248px;
	background: var(--lux-cream);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 10px 28px rgba(31, 36, 48, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* LTR: keep the circular photo on the right */
html[dir="ltr"] .hv2-lux {
	flex-direction: row-reverse;
}

.hv2-lux:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(31, 36, 48, 0.12);
	color: inherit;
	text-decoration: none;
}

/* Media sits on the visual RIGHT (first flex child in RTL) */
.hv2-lux__media {
	position: relative;
	flex: 0 0 46%;
	min-width: 180px;
	min-height: 248px;
	z-index: 1;
}

.hv2-lux__photo {
	position: absolute;
	top: 50%;
	width: min(118%, 290px);
	height: min(118%, 290px);
	/* push circle toward the outer (right in RTL) edge so the gold arc sits mid-card */
	inset-inline-end: -22%;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 7px solid var(--lux-gold);
	overflow: hidden;
	box-sizing: border-box;
	background: #d9dde3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hv2-lux__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hv2-lux__fav {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(40, 44, 52, 0.45);
	backdrop-filter: blur(4px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	z-index: 3;
	font-size: 15px;
	pointer-events: none;
}

.hv2-lux__body {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-width: 0;
	padding: 18px 22px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: linear-gradient(90deg, var(--lux-cream) 72%, rgba(251, 248, 238, 0.55) 100%);
}

html[dir="ltr"] .hv2-lux__body {
	background: linear-gradient(270deg, var(--lux-cream) 72%, rgba(251, 248, 238, 0.55) 100%);
}

.hv2-lux__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 2px;
}

.hv2-lux__vip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 10px;
	border-radius: 4px;
	background: var(--lux-gold);
	border: 1.5px solid #3b82f6;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

.hv2-lux__vip i {
	font-size: 11px;
	color: #111;
}

.hv2-lux__new {
	color: #ff6a00;
	font-size: 13px;
	font-weight: 800;
	text-shadow: 0 0 10px rgba(255, 106, 0, 0.55), 0 0 2px rgba(255, 106, 0, 0.35);
	line-height: 1.2;
}

.hv2-lux__title {
	margin: 2px 0 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--lux-ink);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hv2-lux__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 95%;
}

.hv2-lux__bottom {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1.5px solid var(--lux-gold);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.hv2-lux__loc {
	font-size: 13px;
	color: #8b919a;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	min-width: 0;
}

.hv2-lux__price {
	text-align: end;
	flex-shrink: 0;
}

.hv2-lux__amount {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: var(--lux-gold);
	line-height: 1;
	letter-spacing: -0.02em;
}

.hv2-lux__cur {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 800;
	color: var(--lux-gold);
	line-height: 1;
}

/* Legacy ring class unused */
.hv2-lux__ring {
	display: none;
}

.hv2-lux__badges {
	display: none;
}

/* Rich horizontal cards */
.hv2-ads--rich {
	grid-template-columns: 1fr;
	gap: 18px;
}

.hv2-ad--rich {
	flex-direction: row;
	min-height: 180px;
}

.hv2-ad--rich .hv2-ad__media {
	width: 42%;
	max-width: 320px;
	aspect-ratio: auto;
	min-height: 180px;
}

.hv2-ad--rich .hv2-ad__body {
	padding: 20px 24px;
	justify-content: center;
}

.hv2-ad__actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.hv2-ad__actions .hv2-btn {
	padding: 10px 14px;
	font-size: 13px;
}

/* Legacy luxury class kept for safety */
.hv2-ad--luxury {
	display: none;
}

/* Stats */
.hv2-stats {
	background: var(--hv2-ink-2);
	color: #fff;
	border-radius: 28px;
	padding: 36px 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}

.hv2-stats__n {
	display: block;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	color: var(--hv2-gold);
	line-height: 1.1;
}

.hv2-stats__l {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
}

/* Steps */
.hv2-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	counter-reset: hv2step;
}

.hv2-step {
	text-align: center;
	position: relative;
}

.hv2-step__n {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(16, 185, 129, 0.12);
	color: var(--hv2-success);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
}

.hv2-step__t {
	margin: 0;
	font-weight: 700;
	font-size: 15px;
}

.hv2-step__d {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--hv2-muted);
}

/* Categories */
.hv2-cats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.hv2-cat {
	background: #fff;
	border: 1px solid var(--hv2-border);
	border-radius: var(--hv2-radius);
	min-height: 128px;
	padding: 18px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	color: var(--hv2-ink);
	box-shadow: var(--hv2-shadow);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hv2-cat:hover {
	transform: translateY(-3px);
}

.hv2-cat i {
	font-size: 26px;
	color: var(--hv2-ink);
}

.hv2-cat span {
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.hv2-cat--all {
	background: var(--hv2-ink);
	color: #fff;
	border-color: transparent;
}

.hv2-cat--all i {
	color: var(--hv2-gold);
}

/* Regions */
.hv2-regions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.hv2-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: var(--hv2-radius);
	background: #fff;
	border: 1px solid var(--hv2-border);
	color: var(--hv2-ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	box-shadow: var(--hv2-shadow);
}

.hv2-pill:hover {
	border-color: var(--hv2-gold);
	color: var(--hv2-ink);
}

/* Interest */
.hv2-interest {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.hv2-interest__item {
	position: relative;
	border-radius: var(--hv2-radius);
	overflow: hidden;
	min-height: 180px;
	background: #ccc center/cover no-repeat;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	text-decoration: none;
	color: #fff;
}

.hv2-interest__item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.hv2-interest__item span {
	position: relative;
	z-index: 1;
	font-weight: 700;
	font-size: 16px;
}

/* Values */
.hv2-values {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.hv2-value {
	background: #fff;
	border-radius: var(--hv2-radius);
	padding: 24px 18px;
	border: 1px solid var(--hv2-border);
	box-shadow: var(--hv2-shadow);
}

.hv2-value__ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--hv2-ink);
	color: var(--hv2-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	font-size: 18px;
}

.hv2-value h3 {
	margin: 0 0 6px;
	font-size: 16px;
}

.hv2-value p {
	margin: 0;
	font-size: 13px;
	color: var(--hv2-muted);
	line-height: 1.6;
}

/* App CTA */
.hv2-app {
	background: var(--hv2-ink-2);
	border-radius: 32px;
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: center;
	color: #fff;
}

.hv2-app__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 800;
}

.hv2-app__text {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.7;
}

.hv2-app__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hv2-app__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #000;
	color: #fff;
	border-radius: 12px;
	padding: 10px 16px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.hv2-app__badge small {
	display: block;
	font-size: 11px;
	opacity: 0.7;
}

.hv2-app__badge strong {
	display: block;
	font-size: 15px;
}

.hv2-app__visual img {
	display: block;
	max-width: 280px;
	width: 100%;
	margin: 0 auto;
	filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
}

/* Footer v2 */
.hv2-footer {
	background: #fff;
	border-top: 1px solid var(--hv2-border);
	padding: 56px 0 24px;
	margin-top: 24px;
}

.hv2-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 28px;
}

.hv2-footer__brand p {
	color: var(--hv2-muted);
	line-height: 1.7;
	font-size: 14px;
}

.hv2-footer__brand img {
	max-height: 40px;
	margin-bottom: 14px;
}

.hv2-footer h4 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 800;
}

.hv2-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hv2-footer li {
	margin-bottom: 8px;
}

.hv2-footer a {
	color: var(--hv2-muted);
	text-decoration: none;
	font-size: 14px;
}

.hv2-footer a:hover {
	color: var(--hv2-ink);
}

.hv2-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.hv2-footer__social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--hv2-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hv2-ink);
}

.hv2-newsletter {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.hv2-newsletter input {
	flex: 1;
	border: 1px solid var(--hv2-border);
	border-radius: var(--hv2-radius-sm);
	padding: 12px 14px;
	font-family: inherit;
}

.hv2-footer__copy {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--hv2-border);
	text-align: center;
	color: var(--hv2-muted);
	font-size: 13px;
}

.hv2-more {
	text-align: center;
	margin-top: 28px;
}

/* Responsive */
@media (max-width: 1180px) {
	.hv2-header__nav {
		gap: 12px;
	}
	.hv2-header__nav > a,
	.hv2-header__more-btn {
		font-size: 13px;
	}
	.hv2-header__cta {
		min-width: 0;
		padding: 0 12px;
		font-size: 12px;
		height: 42px;
	}
	.hv2-header__login span {
		max-width: 88px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (max-width: 1024px) {
	.hv2-bento {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}
	.hv2-bento__item:first-child {
		grid-row: auto;
		grid-column: 1 / -1;
		min-height: 240px;
	}
	.hv2-stores {
		grid-template-columns: repeat(3, 1fr);
	}
	.hv2-ads,
	.hv2-ads--urgent,
	.hv2-ads--featured {
		grid-template-columns: repeat(2, 1fr);
	}
	.hv2-ads--luxury {
		grid-template-columns: 1fr;
	}
	.hv2-cats {
		grid-template-columns: repeat(3, 1fr);
	}
	.hv2-values,
	.hv2-steps,
	.hv2-stats,
	.hv2-interest {
		grid-template-columns: repeat(2, 1fr);
	}
	.hv2-upgrade,
	.hv2-app,
	.hv2-footer__grid {
		grid-template-columns: 1fr;
	}
	/* old hv2-lux responsive removed — see lux-card.css */
	.hv2-ad--rich {
		flex-direction: column;
	}
	.hv2-ad--rich .hv2-ad__media {
		width: 100%;
		max-width: none;
		border-radius: 0;
		min-height: 180px;
	}
	.hv2-header__nav {
		gap: 14px;
	}
	.hv2-header__nav > a,
	.hv2-header__more-btn {
		font-size: 14px;
	}
	.hv2-header__cta {
		min-width: 128px;
		height: 44px;
		padding: 0 14px;
		font-size: 13px;
	}
	.hv2-hero__title {
		font-size: 46px;
		line-height: 60px;
	}
	.hv2-hero__btn,
	.hv2-hero__btn--gold {
		min-width: 0;
		flex: 1 1 30%;
		padding: 15px 20px;
	}
	.hv2-catbar__track {
		justify-content: flex-start;
	}
}

@media (max-width: 768px) {
	.hv2-header__nav {
		display: none;
	}
	.hv2-header__menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.hv2-header__actions .hv2-btn--ghost,
	.hv2-header__cta,
	.hv2-header__login span {
		display: none;
	}
	.hv2-header__login {
		padding: 8px;
	}
	.hv2-hero {
		min-height: 460px;
		align-items: center;
	}
	.hv2-hero__content {
		padding: 48px 0;
	}
	.hv2-hero__title {
		font-size: 38px;
		line-height: 50px;
	}
	.hv2-hero__sub {
		font-size: 16px;
		line-height: 24px;
		margin-top: 14px;
	}
	.hv2-hero__ctas {
		width: 100%;
		gap: 10px;
	}
	.hv2-hero__btn,
	.hv2-hero__btn--gold {
		min-width: 0;
		flex: 1 1 100%;
		padding: 14px 18px;
	}
	.hv2-trust {
		gap: 8px;
		margin-top: 18px;
	}
	.hv2-trust__item {
		font-size: 13px;
		padding: 7px 12px;
	}
	.hv2-catbar__track {
		justify-content: flex-start;
		gap: 18px;
	}
	.hv2-catbar__ico {
		width: 48px;
		height: 48px;
		font-size: 17px;
	}
	.hv2-catbar__label {
		font-size: 13px;
	}
	.hv2-stores,
	.hv2-ads,
	.hv2-cats,
	.hv2-values,
	.hv2-steps,
	.hv2-stats,
	.hv2-interest {
		grid-template-columns: 1fr 1fr;
	}
	.hv2-section {
		padding: 40px 0;
	}
	.hv2-upgrade,
	.hv2-app {
		padding: 28px 20px;
	}
}

@media (max-width: 480px) {
	.hv2-container {
		padding: 0 16px;
	}
	.hv2-stores,
	.hv2-cats {
		grid-template-columns: 1fr 1fr;
	}
	.hv2-ads,
	.hv2-ads--urgent,
	.hv2-ads--featured {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   Register v2 (body.is-register) - صفحة إنشاء حساب
   ========================================================================== */
body.is-register {
	--rv2-ink: #1f2430;
	--rv2-muted: #434655;
	--rv2-placeholder: #6b7280;
	--rv2-gold: #ffc107;
	--rv2-bg: #eeeeee;
	--rv2-line: rgba(0, 0, 0, 0.2);
	font-family: Tajawal, Cairo, sans-serif;
	background: var(--rv2-bg);
	color: var(--rv2-ink);
}

body.is-register .main-content {
	padding: 0;
	background: var(--rv2-bg);
}

body.is-register #top-header,
body.is-register .site-header,
body.is-register .nav-bar,
body.is-register .site-footer {
	display: none !important;
}

.rv2-page {
	position: relative;
	width: 100%;
	min-height: 70vh;
	overflow: hidden;
	padding: 0 24px 80px;
	box-sizing: border-box;
}

/* الشكل الأسود الزخرفي في أعلى الصفحة */
.rv2-deco {
	position: absolute;
	top: -320px;
	inset-inline-start: -180px;
	width: 900px;
	height: 720px;
	background: var(--rv2-ink);
	border-radius: 0 0 100% 0;
	pointer-events: none;
	z-index: 0;
}

html[dir="rtl"] .rv2-deco {
	border-radius: 0 0 0 100%;
}

.rv2-main {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding-top: 340px;
}

/* ---------- ترويسة العلامة ---------- */
.rv2-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	text-align: center;
}

.rv2-brand__logo {
	max-width: 240px;
	width: 100%;
	height: auto;
	display: block;
}

.rv2-brand__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rv2-ink);
}

.rv2-brand__sub {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--rv2-muted);
}

/* ---------- بطاقة النموذج ---------- */
.rv2-card {
	position: relative;
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 36px 33px;
	overflow: hidden;
}

.rv2-card__bar {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 4px;
	background: var(--rv2-ink);
}

.rv2-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---------- الحقول ---------- */
.rv2-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rv2-label {
	padding: 0 4px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--rv2-muted);
	text-align: start;
}

.rv2-control {
	position: relative;
	display: block;
}

.rv2-input {
	width: 100%;
	box-sizing: border-box;
	padding: 18px 48px 18px 16px;
	background: var(--rv2-bg);
	border: 1px solid var(--rv2-line);
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: var(--rv2-ink);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

html[dir="rtl"] .rv2-input {
	padding: 18px 48px 18px 16px;
	text-align: right;
}

html:not([dir="rtl"]) .rv2-input {
	padding: 18px 16px 18px 48px;
	text-align: left;
}

.rv2-input::placeholder {
	color: var(--rv2-placeholder);
	opacity: 1;
}

.rv2-input:focus {
	border-color: var(--rv2-ink);
	box-shadow: 0 0 0 3px rgba(31, 36, 48, 0.08);
}

.rv2-input.error {
	border-color: #ef4444;
}

/* الأيقونة داخل الحقل */
.rv2-control__icon {
	position: absolute;
	top: 50%;
	inset-inline-end: 16px;
	transform: translateY(-50%);
	color: var(--rv2-ink);
	font-size: 16px;
	pointer-events: none;
}

/* زر إظهار كلمة المرور */
.rv2-control__eye {
	position: absolute;
	top: 50%;
	inset-inline-start: 12px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--rv2-ink);
	font-size: 16px;
	border-radius: 8px;
	transition: background 0.2s;
}

.rv2-control__eye:hover {
	background: rgba(0, 0, 0, 0.06);
}

/* القوائم المنسدلة */
.rv2-control--select .rv2-input {
	cursor: pointer;
	padding-inline-start: 44px;
}

.rv2-control__caret {
	position: absolute;
	top: 50%;
	inset-inline-start: 16px;
	transform: translateY(-50%);
	color: var(--rv2-ink);
	font-size: 13px;
	pointer-events: none;
}

.rv2-select::-ms-expand {
	display: none;
}

/* ---------- حقل الهاتف ---------- */
.rv2-phone {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.rv2-phone__code {
	flex: 0 0 132px;
}

.rv2-phone__code .rv2-input {
	padding-inline-end: 12px;
	text-align: center;
}

.rv2-phone__number {
	flex: 1 1 auto;
}

.rv2-phone__number .rv2-input {
	padding-inline-end: 16px;
}

/* ---------- مؤشر قوة كلمة المرور ---------- */
.rv2-strength {
	display: flex;
	gap: 6px;
	margin-top: 2px;
}

.rv2-strength span {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.12);
	transition: background 0.25s;
}

.rv2-strength.is-1 span:nth-child(1) {
	background: #ef4444;
}

.rv2-strength.is-2 span:nth-child(-n + 2) {
	background: var(--rv2-gold);
}

.rv2-strength.is-3 span {
	background: var(--rv2-ink);
}

.rv2-hint {
	margin: 0;
	padding: 0 4px;
	font-size: 12px;
	line-height: 18px;
	color: var(--rv2-placeholder);
	text-align: start;
}

/* ---------- الحقول المؤسسية ---------- */
.rv2-corporate {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rv2-corporate.Hide {
	display: none;
}

.rv2-field.Hide {
	display: none;
}

/* ---------- كابتشا ---------- */
.rv2-captcha {
	display: flex;
	justify-content: center;
}

.rv2-captcha:empty {
	display: none;
}

/* ---------- الموافقة على الشروط ---------- */
.rv2-terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--rv2-muted);
	font-weight: 400;
	cursor: pointer;
}

.rv2-terms input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--rv2-ink);
	cursor: pointer;
}

.rv2-terms a {
	color: var(--rv2-ink);
	font-weight: 700;
	text-decoration: underline;
}

/* ---------- زر الإرسال ---------- */
.rv2-submit {
	width: 100%;
	padding: 18px 24px;
	background: var(--rv2-ink);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.rv2-submit:hover {
	background: #000;
}

.rv2-submit:active {
	transform: translateY(1px);
}

/* ---------- الفاصل والدخول الاجتماعي ---------- */
.rv2-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--rv2-muted);
	font-size: 15px;
}

.rv2-divider::before,
.rv2-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rv2-line);
	opacity: 0.5;
}

.rv2-social {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.rv2-social__btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rv2-ink);
	color: #fff;
	border-radius: 10px;
	font-size: 17px;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.rv2-social__btn:hover {
	background: #000;
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- سطر أسفل البطاقة ---------- */
.rv2-footnote {
	margin: 24px 0 0;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
	color: var(--rv2-muted);
}

.rv2-footnote a {
	color: var(--rv2-gold);
	font-weight: 700;
	text-decoration: none;
}

.rv2-footnote a:hover {
	text-decoration: underline;
}

/* ---------- الاستجابة ---------- */
@media (max-width: 768px) {
	.rv2-page {
		padding: 0 16px 56px;
	}
	.rv2-deco {
		top: -260px;
		inset-inline-start: -160px;
		width: 620px;
		height: 500px;
	}
	.rv2-main {
		padding-top: 220px;
	}
	.rv2-card {
		padding: 28px 20px;
		border-radius: 24px;
	}
	.rv2-brand__title {
		font-size: 26px;
	}
	.rv2-brand__logo {
		max-width: 180px;
	}
}

@media (max-width: 480px) {
	.rv2-main {
		padding-top: 180px;
	}
	.rv2-deco {
		top: -220px;
		width: 520px;
		height: 420px;
	}
	.rv2-phone {
		flex-direction: column;
	}
	.rv2-phone__code {
		flex: 1 1 auto;
	}
}


/* الترويسة الآن فاتحة (#eeeeee) فيظهر الشعار بألوانه الأصلية بلا معالجة */
.hv2-footer__brand img {
	max-height: 44px;
}


/* ==========================================================================
   Contact v2 (body.is-contact) — صفحة تواصل معنا
   ========================================================================== */
body.is-contact {
	--ct2-ink: #090f1a;
	--ct2-muted: #45464c;
	--ct2-label: #191c1d;
	--ct2-placeholder: #6b7280;
	--ct2-gold: #fdc003;
	--ct2-line: #c6c6cc;
	--ct2-bg: #eeeeee;
	font-family: Tajawal, Cairo, sans-serif;
	background: var(--ct2-bg);
	color: var(--ct2-ink);
}

body.is-contact .main-content {
	padding: 0;
	background: var(--ct2-bg);
}

.ct2-page {
	padding: 64px 0 96px;
}

.ct2-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ---------- الترويسة ---------- */
.ct2-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	margin-bottom: 32px;
}

.ct2-head__title {
	margin: 0;
	font-size: 40px;
	line-height: 52px;
	font-weight: 700;
	color: var(--ct2-ink);
	filter: drop-shadow(0 3px 4px rgba(253, 192, 3, 0.55));
}

.ct2-head__sub {
	margin: 0;
	max-width: 720px;
	font-size: 18px;
	line-height: 28px;
	color: var(--ct2-muted);
}

/* ---------- التخطيط ---------- */
.ct2-layout {
	display: grid;
	grid-template-columns: 1fr 506px;
	gap: 32px;
	align-items: start;
}

/* ---------- بطاقة النموذج ---------- */
.ct2-form-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 32px 32px 48px;
}

.ct2-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ct2-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ct2-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ct2-label {
	font-size: 14px;
	line-height: 20px;
	color: var(--ct2-label);
	text-align: start;
}

.ct2-input {
	width: 100%;
	box-sizing: border-box;
	padding: 18px 16px;
	background: #fff;
	border: 1px solid var(--ct2-line);
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: var(--ct2-ink);
	outline: none;
	text-align: start;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

.ct2-input::placeholder {
	color: var(--ct2-placeholder);
	opacity: 1;
}

.ct2-input:focus {
	border-color: var(--ct2-ink);
	box-shadow: 0 0 0 3px rgba(9, 15, 26, 0.07);
}

.ct2-input.error {
	border-color: #ef4444;
}

.ct2-textarea {
	min-height: 178px;
	resize: vertical;
	padding: 16px;
	line-height: 26px;
}

/* القائمة المنسدلة */
.ct2-select-wrap {
	position: relative;
}

.ct2-select {
	cursor: pointer;
	padding-inline-start: 44px;
}

.ct2-select__caret {
	position: absolute;
	top: 50%;
	inset-inline-start: 16px;
	transform: translateY(-50%);
	color: var(--ct2-placeholder);
	font-size: 13px;
	pointer-events: none;
}

.ct2-captcha:empty {
	display: none;
}

/* الموافقة على الشروط */
.ct2-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: var(--ct2-muted);
	cursor: pointer;
}

.ct2-terms input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 1px solid var(--ct2-line);
	border-radius: 4px;
	accent-color: var(--ct2-ink);
	cursor: pointer;
}

.ct2-terms a {
	color: #785900;
	text-decoration: underline;
}

/* زر الإرسال */
.ct2-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	padding: 16px;
	background: var(--hv2-ink, #1f2430);
	border: 0;
	border-radius: 12px;
	color: var(--ct2-bg);
	font-family: inherit;
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.ct2-submit:hover {
	background: #000;
}

.ct2-submit:active {
	transform: translateY(1px);
}

/* ---------- العمود الجانبي ---------- */
.ct2-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ct2-info {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ct2-info__body {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
}

.ct2-info__body h3 {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: var(--ct2-ink);
}

.ct2-info__body p {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--ct2-muted);
	word-break: break-word;
}

.ct2-info__body a {
	color: var(--ct2-muted);
	text-decoration: none;
}

.ct2-info__body a:hover {
	color: var(--ct2-ink);
	text-decoration: underline;
}

.ct2-info__ico {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--ct2-gold);
	color: #fff;
	font-size: 16px;
}

/* الخريطة */
.ct2-map {
	height: 320px;
	border: 1px solid var(--ct2-line);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	background: #edeeef;
}

.ct2-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(1);
}

.ct2-map__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #4a4a4a, #2e2e2e);
	color: #e9e9e9;
	font-size: 84px;
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1024px) {
	.ct2-layout {
		grid-template-columns: 1fr;
	}
	.ct2-side {
		order: -1;
	}
}

@media (max-width: 768px) {
	.ct2-page {
		padding: 40px 0 64px;
	}
	.ct2-container {
		padding: 0 16px;
	}
	.ct2-head__title {
		font-size: 30px;
		line-height: 40px;
	}
	.ct2-head__sub {
		font-size: 16px;
		line-height: 26px;
	}
	.ct2-form-card {
		padding: 24px 20px 32px;
	}
	.ct2-row2 {
		grid-template-columns: 1fr;
	}
	.ct2-submit {
		font-size: 18px;
		line-height: 26px;
	}
	.ct2-map {
		height: 240px;
	}
}


/* ==========================================================================
   Post Ad v2 (body.is-postad) — صفحة نشر إعلان
   ========================================================================== */
body.is-postad {
	--pv2-ink: #090f1a;
	--pv2-muted: #595e6c;
	--pv2-soft: #76777c;
	--pv2-gold: #ffc107;
	--pv2-chip: #dee2f3;
	--pv2-line: #f3f4f6;
	--pv2-bg: #eeeeee;
	font-family: Tajawal, Cairo, sans-serif;
	background: var(--pv2-bg);
	color: var(--pv2-ink);
}

body.is-postad .main-content {
	padding: 0;
	background: var(--pv2-bg);
}

.pv2-page {
	padding: 32px 0 64px;
}

.pv2-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
}

/* ---------- الشريط الجانبي ---------- */
.pv2-sidebar {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 24px 16px;
	position: sticky;
	top: 96px;
}

.pv2-sidebar__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	padding: 0 8px 20px;
	text-align: end;
}

.pv2-sidebar__name {
	font-size: 26px;
	font-weight: 700;
	line-height: 34px;
	color: var(--pv2-ink);
}

.pv2-sidebar__sub {
	font-size: 14px;
	color: var(--pv2-soft);
}

.pv2-sidenav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pv2-sidenav a {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-direction: row-reverse;
	justify-content: flex-start;
	padding: 11px 14px;
	border-radius: 10px;
	color: var(--pv2-ink);
	font-size: 15px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.pv2-sidenav a i {
	width: 20px;
	font-size: 16px;
	text-align: center;
	color: var(--pv2-ink);
}

.pv2-sidenav a:hover {
	background: var(--pv2-line);
	color: var(--pv2-ink);
}

.pv2-sidenav a.is-active {
	background: var(--pv2-gold);
	color: var(--pv2-ink);
	font-weight: 500;
}

/* ---------- المحتوى ---------- */
.pv2-main {
	min-width: 0;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 32px;
}

.pv2-head {
	text-align: center;
	margin-bottom: 28px;
}

.pv2-head__title {
	margin: 0 0 6px;
	font-size: 32px;
	line-height: 42px;
	font-weight: 700;
	color: var(--pv2-ink);
}

.pv2-head__sub {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--pv2-muted);
}

/* ---------- شريط الخطوات ---------- */
.pv2-steps {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
}

/* خط واحد متصل من مركز أول خطوة إلى آخر خطوة (يعمل LTR و RTL) */
.pv2-steps::before {
	content: '';
	position: absolute;
	top: 17px;
	left: 10%;
	right: 10%;
	height: 2px;
	background: var(--pv2-gold);
	z-index: 0;
	pointer-events: none;
}

.pv2-step {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	z-index: 1;
	min-width: 0;
}

.pv2-step::before {
	display: none;
}

.pv2-step__num {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--pv2-ink);
	font-size: 15px;
	font-weight: 500;
	color: var(--pv2-ink);
	box-sizing: border-box;
}

.pv2-step__label {
	font-size: 12px;
	line-height: 16px;
	color: var(--pv2-ink);
	max-width: 100%;
	padding: 0 2px;
	word-break: break-word;
}

.pv2-step.is-active .pv2-step__num {
	background: var(--pv2-ink);
	border-color: var(--pv2-ink);
	color: #fff;
}

.pv2-step.is-done .pv2-step__num {
	background: var(--pv2-gold);
	border-color: var(--pv2-gold);
	color: var(--pv2-ink);
}

/* ---------- بطاقات الفئات ---------- */
/* كسر التخطيط الأفقي القديم (.ad_categories { white-space:nowrap; display:inline-block }) */
body.is-postad .ad_categories.pv2-cats,
body.is-postad .pv2-cats {
	position: relative;
	width: 100%;
	overflow: visible !important;
	white-space: normal !important;
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pv2-cats > div {
	display: none !important;
	position: relative;
	width: 100% !important;
	min-height: 0;
	padding: 0 !important;
	vertical-align: top;
	white-space: normal;
}

.pv2-cats > #categories_1.active {
	display: block !important;
}

.pv2-cats > div.pv2-level-current {
	display: block !important;
}

.pv2-cats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
}

a.pv2-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px 16px;
	background: #fff;
	border: 1.5px solid transparent;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(9, 15, 26, 0.06);
	color: var(--pv2-ink);
	text-decoration: none;
	text-align: center;
	white-space: normal;
	transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

a.pv2-cat:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(9, 15, 26, 0.12);
	color: var(--pv2-ink);
}

a.pv2-cat.active {
	background: #0b1b33;
	border-color: var(--pv2-gold);
	box-shadow: 0 8px 24px rgba(255, 193, 7, 0.35);
	color: #fff;
}

.pv2-cat__ico {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pv2-chip);
	font-size: 22px;
	color: var(--pv2-ink);
}

a.pv2-cat.active .pv2-cat__ico {
	background: var(--pv2-gold);
	color: var(--pv2-ink);
}

.pv2-cat__label {
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
}

a.pv2-cat.active .pv2-cat__label {
	color: #fff;
}

/* مسار الاختيار */
.pv2-path {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0 0 20px;
}

.pv2-path[hidden] {
	display: none !important;
}

.pv2-path__chip {
	display: inline-flex;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--pv2-gold);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pv2-ink);
}

.pv2-path__sep {
	font-size: 11px;
	color: var(--pv2-soft);
}

/* المستويات الفرعية */
.pv2-subpanel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	background: #fafafa;
	border: 1px solid #e8e8ec;
	border-radius: 16px;
}

.pv2-subpanel__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--pv2-ink);
	text-align: start;
}

.pv2-subpanel__hint,
.pv2-subpanel .pv2-subpanel__hint {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: var(--pv2-muted);
	text-align: start;
}

.pv2-subpanel__ready-msg {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #059669;
}

.pv2-subpanel__ready-msg i {
	font-size: 18px;
}

/* إخفاء صندوق النجاح القديم الطويل داخل نشر الإعلان */
body.is-postad .category_success:not(.limit_exceed) {
	height: auto !important;
	min-height: 0;
	padding: 16px;
	border-radius: 14px;
	border-color: var(--pv2-gold);
}

.pv2-cats__grid--sub {
	margin: 0;
	gap: 14px;
	grid-template-columns: repeat(4, 1fr);
}

.pv2-cats__grid--sub a.pv2-cat {
	padding: 20px 12px;
	gap: 10px;
	background: #fff;
}

.pv2-cats__grid--sub .pv2-cat__ico {
	width: 44px;
	height: 44px;
	font-size: 18px;
	background: #e8eefc;
}

.pv2-cats__grid--sub .pv2-cat__label {
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
}

/* توافق القائمة القديمة إن وُجدت */
.pv2-cats > div:not(#categories_1) > .list-group.scrollable-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 0;
}

.pv2-cats > div:not(#categories_1) .list-group.scrollable-menu .list-group-item {
	display: block;
	padding: 13px 16px;
	background: #fff;
	border: 1px solid var(--pv2-line);
	border-radius: 10px;
	color: var(--pv2-ink);
	text-decoration: none;
	font-size: 15px;
	text-align: start;
	white-space: normal;
	transition: background 0.2s, border-color 0.2s;
}

.pv2-cats > div:not(#categories_1) .list-group.scrollable-menu .list-group-item:hover {
	background: var(--pv2-line);
	color: var(--pv2-ink);
}

.pv2-cats > div:not(#categories_1) .list-group.scrollable-menu .list-group-item.active {
	background: var(--pv2-gold);
	border-color: var(--pv2-gold);
	color: var(--pv2-ink);
	font-weight: 500;
}

/* ---------- البحث عن فئة ---------- */
.pv2-search {
	max-width: 520px;
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pv2-search__label {
	font-size: 14px;
	color: var(--pv2-muted);
	text-align: start;
}

.pv2-search__box {
	position: relative;
}

.pv2-input {
	width: 100%;
	box-sizing: border-box;
	padding: 15px 16px;
	padding-inline-end: 44px;
	background: #fff;
	border: 1px solid #c6c6cc;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	color: var(--pv2-ink);
	outline: none;
	text-align: start;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.pv2-input:focus {
	border-color: var(--pv2-ink);
	box-shadow: 0 0 0 3px rgba(9, 15, 26, 0.07);
}

.pv2-search__box i {
	position: absolute;
	top: 50%;
	inset-inline-end: 16px;
	transform: translateY(-50%);
	color: var(--pv2-soft);
	pointer-events: none;
}

/* ---------- بطاقات الخطوة 2 ---------- */
.pv2-card {
	background: #fff;
	border: 1px solid #ececf0;
	border-radius: 16px;
	padding: 24px;
	margin: 0 0 20px;
	box-shadow: 0 1px 2px rgba(9, 15, 26, 0.04);
}

.pv2-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pv2-card__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--pv2-muted);
}

.pv2-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--pv2-ink);
	text-decoration: underline;
}

.pv2-link:hover {
	color: #334155;
}

/* حقل السعر + العملة جنبًا إلى جنب */
body.is-postad .pv2-card .input-group .row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

body.is-postad .pv2-card .input-group .row > [class*="col-"] {
	float: none;
	width: auto;
	padding: 0;
	flex: 1 1 120px;
}

body.is-postad .pv2-card select#birim {
	min-width: 100px;
}

/* شبكة الحقول الإضافية */
body.is-postad .pv2-fields .form-group,
body.is-postad .pv2-fields .checkbox-inline,
body.is-postad .pv2-fields label.checkbox-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-weight: 500;
	color: var(--pv2-ink);
}

/* ---------- شريط تنقل الخطوات: أسفل بطاقة المحتوى — فوتر الموقع يظهر بعده ---------- */
body.is-postad {
	padding-bottom: 0;
}

body.is-postad .main-content {
	padding: 0;
	background: var(--pv2-bg);
}

body.is-postad .pv2-page {
	padding: 24px 0 32px;
	box-sizing: border-box;
}

body.is-postad .pv2-sidebar {
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 112px);
	overflow: auto;
}

body.is-postad .pv2-main {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 140px);
	max-height: calc(100vh - 120px);
	overflow: hidden;
	padding: 28px 28px 0;
}

body.is-postad .pv2-main > .pv2-head,
body.is-postad .pv2-main > .pv2-steps {
	flex: 0 0 auto;
}

body.is-postad .ad_steps {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

body.is-postad #pv2-form {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

/* المحتوى يتمرّر داخل البطاقة فوق أزرار الخطوات */
body.is-postad .pv2-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-bottom: 20px;
	-webkit-overflow-scrolling: touch;
}

/* أزرار الخطوات ثابتة في أسفل البطاقة البيضاء */
.pv2-footer {
	position: relative;
	flex: 0 0 auto;
	z-index: 5;
	width: 100%;
	margin: 0;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -6px 18px rgba(9, 15, 26, 0.05);
	padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
}

.pv2-footer__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-direction: row;
	box-sizing: border-box;
}

.pv2-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background 0.15s, color 0.15s, opacity 0.15s, border-color 0.15s;
}

.pv2-footer__btn--ghost {
	background: #fff;
	border-color: var(--pv2-ink);
	color: var(--pv2-ink);
}

.pv2-footer__btn--ghost:hover {
	background: #f8fafc;
	color: var(--pv2-ink);
}

.pv2-footer__btn--solid {
	background: var(--pv2-ink);
	border-color: var(--pv2-ink);
	color: #fff;
}

.pv2-footer__btn--solid:hover {
	background: #1a2438;
	color: #fff;
}

.pv2-footer__btn--solid.is-disabled,
.pv2-footer__btn--solid:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* خطوة الصور — نصائح + منطقة الرفع */
.pv2-media {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 20px;
	align-items: start;
}

.pv2-media__tips {
	background: #fff;
	border: 1px solid #e8e8ec;
	border-radius: 16px;
	padding: 20px;
}

.pv2-media__tips-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
}

.pv2-media__tips-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pv2-media__tips-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--pv2-ink);
}

.pv2-media__tips-list i {
	width: 18px;
	color: var(--pv2-gold);
}

.pv2-media__tips-note {
	padding: 12px;
	background: #fff8e1;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pv2-muted);
}

.pv2-preview__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
}

.pv2-preview__desc {
	margin: 12px 0 16px;
	color: var(--pv2-muted);
	line-height: 1.6;
}

.pv2-preview__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--pv2-gold);
	margin-bottom: 16px;
}

.pv2-preview__rules {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

/* معاينة صفحة عرض الإعلان — شريط تنبيه واضح أعلى الصفحة */
.pv2-preview-ilan__banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	max-width: 1200px;
	margin: 0 auto 20px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #1f2430;
	color: #fff;
	box-sizing: border-box;
	border: 1px solid rgba(255, 193, 7, 0.35);
	box-shadow: 0 8px 24px rgba(15, 18, 28, 0.12);
}

.pv2-preview-ilan__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #ffc107;
	color: #191c1d;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.pv2-preview-ilan__badge i {
	font-size: 14px;
}

.pv2-preview-ilan__hint {
	flex: 1 1 220px;
	font-size: 14px;
	line-height: 1.45;
	opacity: 0.92;
}

.pv2-preview-ilan {
	padding: 0 20px;
	box-sizing: border-box;
}

.pv2-preview-ilan__confirm {
	margin: 16px auto 8px;
	max-width: 1200px;
	padding: 14px 20px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #eceef2;
}

.pv2-preview__rules {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

/* اكسر قيود نموذج نشر الإعلان ليظهر مثل صفحة Ilan الحقيقية */
body.is-preview-ilan.is-postad .pv2-sidebar {
	display: none !important;
}

body.is-preview-ilan.is-postad .pv2-container {
	display: block !important;
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
}

body.is-preview-ilan.is-postad .pv2-page {
	padding: 0 !important;
	background: var(--iv2-bg, #f5f6f8) !important;
}

body.is-preview-ilan.is-postad .pv2-main {
	display: block !important;
	max-width: none !important;
	max-height: none !important;
	min-height: 0 !important;
	overflow: visible !important;
	padding: 20px 0 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

body.is-preview-ilan.is-postad .pv2-head,
body.is-preview-ilan.is-postad .pv2-steps {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

body.is-preview-ilan.is-postad .ad_steps,
body.is-preview-ilan.is-postad #pv2-form,
body.is-preview-ilan.is-postad .pv2-scroll {
	display: block !important;
	max-height: none !important;
	overflow: visible !important;
	min-height: 0 !important;
	flex: none !important;
}

body.is-preview-ilan.is-postad .pv2-scroll {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.is-preview-ilan .iv2-page--preview {
	pointer-events: none;
}

body.is-preview-ilan .iv2-page--preview a,
body.is-preview-ilan .iv2-page--preview button {
	cursor: default;
}

body.is-preview-ilan .pv2-preview-ilan__confirm,
body.is-preview-ilan .pv2-footer {
	pointer-events: auto;
}

body.is-preview-ilan.is-postad .pv2-footer {
	position: sticky;
	bottom: 0;
	z-index: 20;
	background: #fff;
	border-top: 1px solid #e8e8ec;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.pv2-media {
		grid-template-columns: 1fr;
	}
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1024px) {
	.pv2-container {
		grid-template-columns: 1fr;
	}
	body.is-postad .pv2-sidebar {
		display: none;
	}
	.pv2-cats__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.pv2-cats__grid--sub {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	body.is-postad .pv2-page {
		padding: 12px 0 24px;
	}
	body.is-postad .pv2-container {
		padding: 0 12px;
		gap: 0;
	}
	body.is-postad .pv2-main {
		padding: 16px 16px 0;
		min-height: calc(100vh - 120px);
		max-height: calc(100vh - 100px);
	}
	.pv2-head__title {
		font-size: 24px;
		line-height: 32px;
	}
	.pv2-cats__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.pv2-cats__grid--sub {
		grid-template-columns: repeat(2, 1fr);
	}
	.pv2-cat__label {
		font-size: 15px;
		line-height: 22px;
	}
	.pv2-steps {
		overflow-x: auto;
		gap: 8px;
	}
	.pv2-step {
		min-width: 76px;
	}
	.pv2-step__label {
		font-size: 12px;
	}
	.pv2-footer__btn {
		padding: 12px 14px;
		font-size: 14px;
		flex: 1 1 auto;
	}
	.pv2-card {
		padding: 16px;
	}
}

/* --------------------------------------------------------------------------
   Post Ad v2 — تنسيق الحقول القديمة داخل الخطوات 2-7
   بنية HTML لا يمكن تغييرها لأن الجافاسكربت يعتمد عليها، لذا نُعيد تنسيق
   الأصناف الأصلية (input-group / content-title / btn ...) كما هي.
   -------------------------------------------------------------------------- */

/* عناوين الأقسام */
body.is-postad .content-title {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	background: none;
	border: 0;
}

body.is-postad .content-title .title-bg {
	background: none;
	padding: 0;
	border: 0;
}

body.is-postad .content-title .title {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	color: var(--pv2-ink);
	text-align: start;
}

body.is-postad .content-title h3.title {
	margin-top: 6px;
	font-size: 14px !important;
	line-height: 22px;
	font-weight: 400;
	color: var(--pv2-muted) !important;
}

/* مجموعة الحقل: التسمية فوق الحقل */
body.is-postad .input-group {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	border-collapse: separate;
}

body.is-postad .input-group-addon {
	display: block;
	width: auto;
	padding: 0 0 6px;
	background: none;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--pv2-muted);
	text-align: start;
	white-space: normal;
}

body.is-postad .input-group-addon .input-text {
	font-size: 14px;
	color: var(--pv2-muted);
}

/* الأيقونات الزخرفية القديمة داخل التسميات */
body.is-postad .input-group-addon .input-icon {
	display: none;
}

/* الحقول نفسها — تُستثنى حقول الخطوة الأولى التي لها تنسيقها الخاص */
body.is-postad .form-control,
body.is-postad input[type="text"]:not(.pv2-input),
body.is-postad input[type="number"]:not(.pv2-input),
body.is-postad input[type="email"]:not(.pv2-input),
body.is-postad input[type="tel"]:not(.pv2-input),
body.is-postad input[type="url"]:not(.pv2-input),
body.is-postad textarea,
body.is-postad select {
	width: 100%;
	box-sizing: border-box;
	height: auto;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #c6c6cc;
	border-radius: 12px;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: var(--pv2-ink);
	outline: none;
	text-align: start;
	transition: border-color 0.2s, box-shadow 0.2s;
}

body.is-postad textarea {
	min-height: 140px;
	resize: vertical;
}

body.is-postad .form-control:focus,
body.is-postad input:not(.pv2-input):focus,
body.is-postad textarea:focus,
body.is-postad select:focus {
	border-color: var(--pv2-ink);
	box-shadow: 0 0 0 3px rgba(9, 15, 26, 0.07);
}

body.is-postad .form-control.error,
body.is-postad input.error,
body.is-postad textarea.error,
body.is-postad select.error {
	border-color: #ef4444;
}

body.is-postad label.error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #ef4444;
}

body.is-postad ::placeholder {
	color: var(--pv2-soft);
	opacity: 1;
}

/* حقول لا يجب أن تُمدّد بعرض كامل */
body.is-postad input[type="checkbox"],
body.is-postad input[type="radio"],
body.is-postad input[type="file"] {
	width: auto;
	padding: 0;
	border: 0;
	box-shadow: none;
}

body.is-postad input[type="checkbox"],
body.is-postad input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--pv2-ink);
	vertical-align: middle;
	cursor: pointer;
}

/* مسار الفئة المختارة */
body.is-postad .clsCatSelection {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

body.is-postad .clsCatSelection li {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	background: var(--pv2-chip);
	border-radius: 999px;
	font-size: 14px;
	color: var(--pv2-ink);
}

/* الأزرار */
body.is-postad .btn,
body.is-postad .btn-custom,
body.is-postad .btn-custom-2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	background: var(--pv2-ink);
	border: 1px solid transparent;
	border-radius: 12px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, color 0.2s;
}

body.is-postad .btn:hover,
body.is-postad .btn-custom:hover {
	background: #000;
	color: #fff;
}

body.is-postad .btn:active {
	transform: translateY(1px);
}

/* زر ثانوي (تغيير الفئة) */
body.is-postad .btn-custom-2,
body.is-postad .btn-xs {
	padding: 8px 16px;
	background: #fff;
	border-color: #c6c6cc;
	color: var(--pv2-ink);
	font-size: 14px;
}

body.is-postad .btn-custom-2:hover,
body.is-postad .btn-xs:hover {
	background: var(--pv2-line);
	color: var(--pv2-ink);
}

body.is-postad .btn-danger {
	background: #ef4444;
	color: #fff;
}

body.is-postad .btn-danger:hover {
	background: #dc2626;
}

/* الزر الرئيسي للانتقال بين الخطوات */
body.is-postad .btn.pull-right,
body.is-postad .payBtn {
	background: var(--pv2-gold);
	color: var(--pv2-ink);
	font-weight: 700;
}

body.is-postad .btn.pull-right:hover,
body.is-postad .payBtn:hover {
	background: #e5ac06;
	color: var(--pv2-ink);
}

/* خانات الاختيار المضمّنة */
body.is-postad .checkbox,
body.is-postad .checkbox-inline,
body.is-postad .radio,
body.is-postad .radio-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	font-size: 15px;
	color: var(--pv2-ink);
	cursor: pointer;
}

body.is-postad .checkbox-inline + .checkbox-inline {
	margin-inline-start: 18px;
}

/* بطاقات التمييز (Doping) */
body.is-postad .doping_thumb {
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(9, 15, 26, 0.08);
	margin-bottom: 12px;
	max-width: 100%;
	height: auto;
}

body.is-postad select.dopings {
	margin-bottom: 24px;
}

/* ---- Select2 ----
   custom.js يحوّل كل <select> إلى select2، فالعنصر الأصلي يُخفى
   ويُرسم بديل عنه؛ لذا نُنسّق حاوية select2 لتطابق بقية الحقول. */
body.is-postad .select2-container {
	width: 100% !important;
	margin-bottom: 24px;
}

body.is-postad .select2-container .select2-selection {
	height: auto;
	min-height: 54px;
	padding: 6px 6px;
	background: #fff;
	border: 1px solid #c6c6cc;
	border-radius: 12px;
	outline: none;
	display: flex;
	align-items: center;
}

body.is-postad .select2-container .select2-selection__rendered {
	padding: 0 10px;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: var(--pv2-ink);
	text-align: start;
}

body.is-postad .select2-container .select2-selection__arrow {
	height: 100%;
	inset-inline-end: 12px;
}

body.is-postad .select2-container--open .select2-selection {
	border-color: var(--pv2-ink);
	box-shadow: 0 0 0 3px rgba(9, 15, 26, 0.07);
}

body.is-postad .select2-dropdown {
	border-color: #c6c6cc;
	border-radius: 12px;
	overflow: hidden;
}

body.is-postad .select2-results__option--highlighted {
	background: var(--pv2-gold) !important;
	color: var(--pv2-ink) !important;
}

/* الجداول (ملخص الدفع) */
body.is-postad .table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--pv2-line);
	border-radius: 12px;
	overflow: hidden;
	font-size: 15px;
}

body.is-postad .table th,
body.is-postad .table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--pv2-line);
	text-align: start;
	vertical-align: middle;
}

body.is-postad .table th {
	background: var(--pv2-line);
	font-weight: 700;
	color: var(--pv2-ink);
}

body.is-postad .table tr:last-child td {
	border-bottom: 0;
}

/* التنبيهات */
body.is-postad .alert {
	padding: 14px 18px;
	border: 1px solid var(--pv2-line);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	line-height: 24px;
	color: var(--pv2-ink);
}

body.is-postad .alert-info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

body.is-postad .alert-warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

body.is-postad .alert-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

body.is-postad .alert-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

/* الفواصل */
body.is-postad hr,
body.is-postad .seperator {
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--pv2-line);
}

/* محرّر النصوص */
body.is-postad .tox-tinymce,
body.is-postad .fr-box .fr-wrapper {
	border-radius: 12px !important;
	border-color: #c6c6cc !important;
}

/* الخريطة */
body.is-postad #map {
	border-radius: 12px;
	overflow: hidden;
}

/* منطقة رفع الصور */
body.is-postad .dropzone,
body.is-postad .dz-clickable {
	background: #fff;
	border: 2px dashed #c6c6cc;
	border-radius: 12px;
	min-height: 160px;
}

body.is-postad .dropzone:hover {
	border-color: var(--pv2-gold);
}

/* شبكة بوتستراب داخل النموذج تبقى عاملة لكن بمسافات أنسب */
body.is-postad .ad_steps .row {
	margin-inline: -8px;
}

body.is-postad .ad_steps .row > [class*="col-"] {
	padding-inline: 8px;
}

@media (max-width: 768px) {
	body.is-postad .content-title .title {
		font-size: 18px;
		line-height: 26px;
	}
	body.is-postad .btn,
	body.is-postad .btn-custom {
		width: 100%;
	}
	body.is-postad .btn-custom-2,
	body.is-postad .btn-xs {
		width: auto;
	}
}


/* ==========================================================================
   My Ads v2 (body.is-myads) — صفحة إعلاناتي
   ========================================================================== */
body.is-myads {
	--mv2-ink: #090f1a;
	--mv2-muted: #595e6c;
	--mv2-soft: #76777c;
	--mv2-gold: #ffc107;
	--mv2-line: #f3f4f6;
	--mv2-border: #e6e7eb;
	--mv2-bg: #eeeeee;
	font-family: Tajawal, Cairo, sans-serif;
	background: var(--mv2-bg);
	color: var(--mv2-ink);
}

body.is-myads .main-content {
	padding: 0;
	background: var(--mv2-bg);
}

/* الترويسة */
.mv2-head {
	text-align: start;
	margin-bottom: 24px;
}

.mv2-head__title {
	margin: 0 0 4px;
	font-size: 30px;
	line-height: 40px;
	font-weight: 700;
	color: var(--mv2-ink);
}

.mv2-head__sub {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--mv2-muted);
}

/* بطاقات الإحصاءات */
.mv2-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 28px;
}

.mv2-stat {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mv2-stat__label {
	font-size: 16px;
	line-height: 24px;
	color: var(--mv2-ink);
	text-align: start;
}

.mv2-stat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-direction: row-reverse;
}

.mv2-stat__row i {
	font-size: 20px;
	color: var(--mv2-soft);
}

.mv2-stat__value {
	font-size: 26px;
	line-height: 34px;
	font-weight: 700;
	color: var(--mv2-ink);
}

/* تبويبات الحالة */
.mv2-tabs {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--mv2-border);
}

.mv2-tabs a {
	position: relative;
	padding: 10px 2px;
	color: var(--mv2-muted);
	text-decoration: none;
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	transition: color 0.2s;
}

.mv2-tabs a:hover {
	color: var(--mv2-ink);
}

.mv2-tabs a.is-active {
	color: var(--mv2-ink);
	font-weight: 700;
	border-bottom: 2px solid var(--mv2-gold);
}

/* قائمة الإعلانات */
.mv2-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 24px;
}

.mv2-card {
	display: grid;
	grid-template-columns: 260px 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 16px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s;
}

.mv2-card:hover {
	box-shadow: 0 6px 18px rgba(9, 15, 26, 0.09);
}

/* الصورة */
.mv2-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--mv2-line);
}

.mv2-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* شارة الحالة */
.mv2-badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	color: #fff;
	background: var(--mv2-ink);
}

.mv2-badge--is-1 {
	background: var(--mv2-gold);
	color: var(--mv2-ink);
}

.mv2-badge--is-0 {
	background: rgba(9, 15, 26, 0.82);
	color: #fff;
}

.mv2-badge--is-2 {
	background: #1f2430;
	color: #fff;
}

/* المحتوى */
.mv2-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: start;
}

.mv2-card__title {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
}

.mv2-card__title a {
	color: var(--mv2-ink);
	text-decoration: none;
}

.mv2-card__title a:hover {
	text-decoration: underline;
}

.mv2-card__loc {
	font-size: 15px;
	line-height: 22px;
	color: var(--mv2-muted);
}

.mv2-card__loc i {
	color: var(--mv2-soft);
	margin-inline-end: 4px;
}

.mv2-card__meta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--mv2-muted);
}

.mv2-card__meta i {
	color: var(--mv2-soft);
	margin-inline-end: 5px;
}

.mv2-card__price {
	font-weight: 700;
	color: var(--mv2-ink);
	margin-inline-start: auto;
}

.mv2-card__reason {
	padding: 9px 12px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 14px;
	line-height: 20px;
}

/* الإجراءات */
.mv2-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 132px;
}

.mv2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	background: #fff;
	border: 1px solid var(--mv2-border);
	border-radius: 10px;
	color: var(--mv2-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mv2-btn:hover {
	background: var(--mv2-line);
	color: var(--mv2-ink);
}

.mv2-btn--gold {
	background: var(--mv2-gold);
	border-color: var(--mv2-gold);
	font-weight: 700;
}

.mv2-btn--gold:hover {
	background: #e5ac06;
	border-color: #e5ac06;
	color: var(--mv2-ink);
}

.mv2-btn--ghost {
	background: transparent;
}

.mv2-btn--danger {
	background: transparent;
	border-color: transparent;
	color: #dc2626;
}

.mv2-btn--danger:hover {
	background: #fef2f2;
	color: #b91c1c;
}

.mv2-btn--muted {
	background: var(--mv2-line);
	border-color: var(--mv2-line);
	color: var(--mv2-soft);
	cursor: default;
}

/* زر إضافة إعلان */
.mv2-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 32px;
	background: var(--mv2-ink);
	border-radius: 12px;
	color: #fff;
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.mv2-add:hover {
	background: #000;
	color: #fff;
}

.mv2-add:active {
	transform: translateY(1px);
}

/* حالة فارغة */
.mv2-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 56px 24px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.mv2-empty i {
	font-size: 46px;
	color: var(--mv2-soft);
}

.mv2-empty p {
	margin: 0;
	font-size: 16px;
	color: var(--mv2-muted);
}

/* الترقيم */
.mv2-pager {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.mv2-pager .pagination {
	display: inline-flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv2-pager .pagination li > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--mv2-border);
	border-radius: 10px;
	color: var(--mv2-ink);
	text-decoration: none;
	font-size: 15px;
}

.mv2-pager .pagination li.active > * {
	background: var(--mv2-ink);
	border-color: var(--mv2-ink);
	color: #fff;
}

/* الاستجابة */
@media (max-width: 1024px) {
	.mv2-card {
		grid-template-columns: 200px 1fr;
	}
	.mv2-card__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
	}
}

@media (max-width: 768px) {
	.mv2-head__title {
		font-size: 24px;
		line-height: 32px;
	}
	.mv2-stats {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.mv2-card {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.mv2-card__media {
		aspect-ratio: 16 / 9;
	}
	.mv2-tabs {
		gap: 18px;
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	.mv2-add {
		width: 100%;
	}
	.mv2-card__price {
		margin-inline-start: 0;
	}
}


/* ==========================================================================
   Ad List v2 (body.is-adlist) — صفحات تصفّح الإعلانات الموحّدة
   يستخدم بطاقات cv2-card من category-v2.css في وضع الشبكة
   ========================================================================== */
body.is-adlist {
	--lv2-ink: #090f1a;
	--lv2-muted: #595e6c;
	--lv2-soft: #76777c;
	--lv2-gold: #ffc107;
	--lv2-line: #f3f4f6;
	--lv2-border: #e6e7eb;
	--lv2-bg: #eeeeee;
	font-family: Tajawal, Cairo, sans-serif;
	background: var(--lv2-bg);
	color: var(--lv2-ink);
}

body.is-adlist .main-content {
	padding: 0;
	background: var(--lv2-bg);
}

.lv2-page {
	padding: 24px 0 64px;
}

.lv2-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* مسار التنقّل */
.lv2-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	color: var(--lv2-muted);
}

.lv2-crumbs li + li::before {
	content: '›';
	margin-inline-end: 8px;
	color: var(--lv2-soft);
}

.lv2-crumbs a {
	color: var(--lv2-muted);
	text-decoration: none;
}

.lv2-crumbs a:hover {
	color: var(--lv2-ink);
}

.lv2-crumbs .active {
	color: var(--lv2-ink);
	font-weight: 500;
}

/* الترويسة */
.lv2-head {
	margin-bottom: 20px;
	text-align: start;
}

.lv2-head__title {
	margin: 0 0 4px;
	font-size: 30px;
	line-height: 40px;
	font-weight: 700;
	color: var(--lv2-ink);
}

.lv2-head__sub {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--lv2-muted);
}

/* التخطيط */
.lv2-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}

.lv2-sidebar {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 18px;
	position: sticky;
	top: 96px;
}

.lv2-main {
	min-width: 0;
}

/* شريط الأدوات */
.lv2-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding: 14px 18px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lv2-toolbar__count {
	font-size: 15px;
	color: var(--lv2-muted);
}

.lv2-toolbar__count strong {
	color: var(--lv2-ink);
}

.lv2-toolbar__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.lv2-select {
	padding: 9px 14px;
	background: #fff;
	border: 1px solid var(--lv2-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	color: var(--lv2-ink);
	outline: none;
	cursor: pointer;
}

/* مبدّل العرض */
.lv2-view {
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	background: var(--lv2-line);
	border-radius: 10px;
}

.lv2-view__btn {
	width: 36px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--lv2-soft);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s, color 0.2s;
}

.lv2-view__btn:hover {
	color: var(--lv2-ink);
}

.lv2-view__btn.is-active {
	background: #fff;
	color: var(--lv2-ink);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* عرض القائمة (صفوف أفقية) */
.lv2-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lv2-row {
	display: grid;
	grid-template-columns: 190px 1fr auto;
	gap: 18px;
	align-items: center;
	padding: 14px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s, transform 0.15s;
}

.lv2-row:hover {
	box-shadow: 0 6px 18px rgba(9, 15, 26, 0.09);
	transform: translateY(-2px);
}

.lv2-row__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: var(--lv2-line);
}

.lv2-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lv2-row__media .cv2-badge {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
}

.lv2-row__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
	text-align: start;
}

.lv2-row__title {
	margin: 0;
	font-size: 17px;
	line-height: 25px;
	font-weight: 700;
}

.lv2-row__title a {
	color: var(--lv2-ink);
	text-decoration: none;
}

.lv2-row__title a:hover {
	text-decoration: underline;
}

.lv2-row__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--lv2-muted);
}

.lv2-row__meta i {
	color: var(--lv2-soft);
	margin-inline-end: 4px;
}

.lv2-row__icons {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--lv2-soft);
	font-size: 14px;
}

.lv2-row__icons a {
	color: var(--lv2-soft);
}

.lv2-row__icons a:hover {
	color: var(--lv2-ink);
}

.lv2-row__price {
	font-size: 19px;
	font-weight: 700;
	color: var(--lv2-ink);
	white-space: nowrap;
	padding-inline-start: 12px;
}

/* حالة فارغة */
.lv2-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 56px 24px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.lv2-empty i {
	font-size: 46px;
	color: var(--lv2-soft);
}

.lv2-empty p {
	margin: 0;
	font-size: 16px;
	color: var(--lv2-muted);
}

/* الترقيم */
.lv2-pager {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.lv2-pager .pagination {
	display: inline-flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.lv2-pager .pagination li > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--lv2-border);
	border-radius: 10px;
	color: var(--lv2-ink);
	text-decoration: none;
	font-size: 15px;
}

.lv2-pager .pagination li.active > *,
.lv2-pager .pagination li > *:hover {
	background: var(--lv2-ink);
	border-color: var(--lv2-ink);
	color: #fff;
}

/* الشريط الجانبي: تهذيب المكوّنات القديمة داخله */
body.is-adlist .lv2-sidebar .home-block-title,
body.is-adlist .lv2-sidebar .collection-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--lv2-ink);
	background: none;
	padding: 0 0 10px;
	border: 0;
}

body.is-adlist .lv2-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.is-adlist .lv2-sidebar li a {
	display: block;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--lv2-muted);
	text-decoration: none;
	font-size: 15px;
	transition: background 0.2s, color 0.2s;
}

body.is-adlist .lv2-sidebar li a:hover {
	background: var(--lv2-line);
	color: var(--lv2-ink);
}

/* الاستجابة */
@media (max-width: 1024px) {
	.lv2-layout {
		grid-template-columns: 1fr;
	}
	.lv2-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.lv2-page {
		padding: 16px 0 48px;
	}
	.lv2-container {
		padding: 0 16px;
	}
	.lv2-head__title {
		font-size: 24px;
		line-height: 32px;
	}
	.lv2-toolbar {
		padding: 12px 14px;
	}
	.lv2-row {
		grid-template-columns: 130px 1fr;
	}
	.lv2-row__price {
		grid-column: 1 / -1;
		padding-inline-start: 0;
		font-size: 17px;
	}
}

@media (max-width: 480px) {
	.lv2-row {
		grid-template-columns: 1fr;
	}
	.lv2-row__media {
		aspect-ratio: 16 / 9;
	}
	.lv2-toolbar__tools {
		width: 100%;
	}
	.lv2-select {
		flex: 1 1 auto;
	}
}

/* Themed ad-list page titles */
.lv2-head__title.is-urgent {
	color: #e11d48;
}
.lv2-head__title.is-luxury {
	color: #d4a106;
	padding-inline-start: 12px;
	position: relative;
}
.lv2-head__title.is-luxury::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 6px;
	bottom: 6px;
	width: 4px;
	border-radius: 4px;
	background: var(--hv2-gold, #ffc107);
}
.lv2-head__title.is-featured {
	color: var(--hv2-blue, #2170e4);
	padding-inline-start: 12px;
	position: relative;
}
.lv2-head__title.is-featured::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 6px;
	bottom: 6px;
	width: 4px;
	border-radius: 4px;
	background: var(--hv2-blue, #2170e4);
}

/* Ensure themed grids work inside ad-list main column */
body.is-adlist .hv2-ads--urgent,
body.is-adlist .hv2-ads--featured {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.is-adlist .hv2-ads--luxury {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1024px) {
	body.is-adlist .hv2-ads--urgent,
	body.is-adlist .hv2-ads--featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.is-adlist .hv2-ads--luxury {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	body.is-adlist .hv2-ads--urgent,
	body.is-adlist .hv2-ads--featured {
		grid-template-columns: 1fr;
	}
}
