/* ==========================================================================
   Promooly — نظام التصميم
   --------------------------------------------------------------------------
   الألوان مسحوبة من اللوجو نفسه: كحلي #1B2C45، وتدرّج سماوي→نعناعي.
   التدرّج جزء من الهوية (حرفَي oo باللوجو) فبنستخدمه بالعناصر الحيّة بس —
   الأزرار والشارات — مش خلفيات كاملة، وإلا بيصير رخيص.

   كل شي متغيّرات: غيّر --brand-1 و--brand-2 وبيتغيّر الموقع كله.
   ========================================================================== */

:root {
	/* الهوية */
	--ink:        #1B2C45;
	--ink-soft:   #2C3E5C;
	--brand-1:    #18C0D8;
	--brand-2:    #54E4C0;
	--gradient:   linear-gradient(100deg, var(--brand-1), var(--brand-2));

	/* المحايدات */
	--bg:         #FFFFFF;
	--bg-alt:     #F5F8FA;
	--bg-deep:    #12203A;
	--line:       #E3EAF0;
	--muted:      #6B7C93;

	/* الحالات */
	--ok:         #10A66B;
	--warn:       #E8830C;
	--danger:     #D93A3A;

	/* المقاسات */
	--r-sm: 8px;
	--r:    14px;
	--r-lg: 22px;
	--r-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(27,44,69,.06), 0 2px 8px rgba(27,44,69,.04);
	--shadow:    0 2px 6px rgba(27,44,69,.06), 0 12px 28px rgba(27,44,69,.08);
	--shadow-lg: 0 8px 24px rgba(27,44,69,.10), 0 30px 60px rgba(27,44,69,.14);
	--glow:      0 6px 20px rgba(24,192,216,.35);

	--wrap: 1180px;
	--gap:  20px;

	/* الحركة — منحنى واحد لكل الموقع عشان الإحساس يكون متّسق */
	--ease: cubic-bezier(.22,.9,.3,1);
	--fast: .18s;
	--norm: .32s;
}

/* ------------------------------------------------------------------ الأساس */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	line-height: 1.18;
	letter-spacing: -.02em;
	font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.muted { color: var(--muted); }
.grad-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* يُقرأ بقارئ الشاشة بس */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- الهيدر */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255,255,255,.86);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 68px;
}

.logo { flex: none; display: flex; align-items: center; }
.logo img, .logo svg { height: 30px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }

/* البحث — قلب الموقع، واللوجو نفسه عدسة مكبّرة */
.search {
	position: relative;
	flex: 1 1 auto;
	max-width: 480px;
}
.search input {
	width: 100%;
	height: 44px;
	padding: 0 44px 0 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--bg-alt);
	font-size: .95rem;
	transition: border-color var(--fast) var(--ease), background var(--fast), box-shadow var(--fast);
}
.search input:focus {
	outline: none;
	background: #fff;
	border-color: var(--brand-1);
	box-shadow: 0 0 0 4px rgba(24,192,216,.14);
}
.search .icon {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}

/* نتائج فورية — بتشتغل من ملف JSON محمّل مرة وحدة، بلا استعلامات */
.search-results {
	position: absolute; inset-inline: 0; top: calc(100% + 8px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
	max-height: 60vh; overflow: auto;
	padding: 6px;
	display: none;
	z-index: 70;
}
.search-results.is-open { display: block; }
.search-results a {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 10px; border-radius: var(--r-sm);
	font-size: .92rem;
}
.search-results a:hover, .search-results a.is-active { background: var(--bg-alt); }
.search-results img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.search-results .count { margin-inline-start: auto; font-size: .78rem; color: var(--muted); }
.search-empty { padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a {
	padding: 8px 12px; border-radius: var(--r-pill);
	font-size: .9rem; font-weight: 600; color: var(--ink-soft);
	transition: background var(--fast), color var(--fast);
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }

.burger {
	margin-inline-start: auto;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border: 1.5px solid var(--line); border-radius: var(--r-sm);
	background: none; cursor: pointer;
}

@media (min-width: 900px) {
	.nav { display: flex; }
	.burger { display: none; }
}

/* شريط التصنيفات */
.cat-bar { border-bottom: 1px solid var(--line); background: #fff; }
.cat-bar .wrap {
	display: flex; gap: 8px; overflow-x: auto;
	padding-top: 10px; padding-bottom: 10px;
	scrollbar-width: none;
}
.cat-bar .wrap::-webkit-scrollbar { display: none; }
.cat-bar a {
	flex: none;
	padding: 7px 15px;
	border-radius: var(--r-pill);
	background: var(--bg-alt);
	font-size: .875rem; font-weight: 600; color: var(--ink-soft);
	white-space: nowrap;
	transition: transform var(--fast) var(--ease), background var(--fast), color var(--fast);
}
.cat-bar a:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.cat-bar a.all { background: var(--gradient); color: #fff; }

/* ---------------------------------------------------------------- الهيرو */

.hero {
	position: relative;
	background: var(--bg-deep);
	color: #fff;
	padding: clamp(42px, 7vw, 76px) 0;
	overflow: hidden;
}
/* دائرتان مموّهتان — إشارة للـoo باللوجو بدون ما نرسمه */
.hero::before, .hero::after {
	content: ""; position: absolute; border-radius: 50%;
	filter: blur(70px); opacity: .30; pointer-events: none;
}
.hero::before { width: 380px; height: 380px; background: var(--brand-1); top: -140px; right: -80px; }
.hero::after  { width: 320px; height: 320px; background: var(--brand-2); bottom: -170px; left: -60px; }

.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { color: #B9C9DC; font-size: 1.05rem; max-width: 560px; margin: 0 auto 26px; }

.hero-search { max-width: 620px; margin: 0 auto; }
.hero-search .search { max-width: none; }
.hero-search input {
	height: 58px; font-size: 1.02rem;
	background: #fff; border-color: transparent;
	box-shadow: var(--shadow-lg);
	padding-right: 54px;
}
.hero-search .icon { right: 20px; width: 21px; height: 21px; }

/* عدّادات حيّة — بتيجي من القاعدة وبتتحدّث كل ليلة */
.stats {
	display: flex; justify-content: center; flex-wrap: wrap;
	gap: 10px 34px; margin-top: 28px;
}
.stat { text-align: center; }
.stat b {
	display: block; font-size: 1.6rem; font-weight: 800;
	background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .8rem; color: #93A6BE; text-transform: uppercase; letter-spacing: .06em; }

/* --------------------------------------------------------------- الأقسام */

.section { padding: clamp(34px, 5vw, 56px) 0; }
.section--alt { background: var(--bg-alt); }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; margin-bottom: 22px;
}
.section-head h2 { margin: 0; }
.section-head .more {
	font-size: .9rem; font-weight: 700; color: var(--brand-1);
	white-space: nowrap;
	transition: gap var(--fast) var(--ease);
	display: inline-flex; align-items: center; gap: 4px;
}
.section-head .more:hover { gap: 9px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	color: var(--brand-1); margin-bottom: 6px;
}
.eyebrow::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 0 rgba(16,166,107,.6);
	animation: pulse 2.4s infinite;
}
@keyframes pulse {
	70%  { box-shadow: 0 0 0 9px rgba(16,166,107,0); }
	100% { box-shadow: 0 0 0 0 rgba(16,166,107,0); }
}

/* ------------------------------------------------------- كرت الكوبون */

.coupons { display: grid; gap: 14px; }

.coupon {
	position: relative;
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 16px;
	align-items: center;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	transition: transform var(--norm) var(--ease), box-shadow var(--norm) var(--ease), border-color var(--norm);
}
.coupon:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: transparent;
}
.coupon.is-expired { opacity: .58; }
.coupon.is-expired .coupon-title { text-decoration: line-through; }

.coupon-logo {
	width: 74px; height: 74px;
	display: grid; place-items: center;
	background: var(--bg-alt);
	border-radius: var(--r);
	padding: 9px;
	overflow: hidden;
}
/* نفس علّة النسبة المئوية اللي بـ.tile-logo — 74 ناقص 18 padding = 56 */
.coupon-logo img { width: 100%; height: 56px; object-fit: contain; }

.coupon-body { min-width: 0; }

.coupon-discount {
	font-size: 1.5rem; font-weight: 800; line-height: 1;
	background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
	margin-bottom: 4px;
}
.coupon-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 7px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tag {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 9px; border-radius: var(--r-pill);
	font-size: .73rem; font-weight: 700;
	background: var(--bg-alt); color: var(--ink-soft);
}
.tag--verified { background: #E7F7F0; color: #0B6B45; }
.tag--code     { background: #E8F8FB; color: #0A6577; }
.tag--deal     { background: #F1EBFB; color: #4B2D82; }
.tag--soon     { background: #FDF0E3; color: #8A4B06; }
.tag--expired  { background: #F1F3F6; color: var(--muted); }

.coupon-meta { font-size: .8rem; color: var(--muted); }

.coupon-action { grid-column: 1 / -1; }
@media (min-width: 700px) {
	.coupon { grid-template-columns: 74px 1fr 210px; }
	.coupon-action { grid-column: auto; }
}

/* --------------------------------------- الزر: القصاصة بتطلع من ورا */

.get-code {
	position: relative;
	display: block;
	width: 100%;
	height: 52px;
	border: 0; padding: 0;
	background: none;
	cursor: pointer;
	isolation: isolate;
}

/* القصاصة — بتبان من ورا الحافة اليمنى، بحافة مسنّنة زي الكوبون المقصوص */
.get-code .stub {
	position: absolute; inset: 0 0 0 auto;
	width: 100%;
	display: flex; align-items: center; justify-content: flex-end;
	padding-inline-end: 15px;
	background: #DCE6EE;
	color: var(--ink-soft);
	border-radius: var(--r-pill);
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-weight: 700; font-size: .92rem; letter-spacing: .09em;
	/* التسنين */
	-webkit-mask: radial-gradient(circle 5px at left center, transparent 98%, #000 100%);
	mask: radial-gradient(circle 5px at left center, transparent 98%, #000 100%);
}

.get-code .face {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background: var(--gradient);
	color: #fff;
	font-weight: 800; font-size: 1rem; letter-spacing: .01em;
	border-radius: var(--r-pill);
	box-shadow: var(--glow);
	transition: width var(--norm) var(--ease), box-shadow var(--norm), filter var(--fast);
	width: 100%;
	z-index: 2;
}

/* بالـhover الوجه بينكمش والقصاصة بتبان */
.get-code:hover .face,
.get-code:focus-visible .face { width: 74%; filter: saturate(1.1); }

.get-code:active .face { transform: scale(.985); }

/* بعد الكشف */
.get-code.is-revealed .face { width: 0; box-shadow: none; opacity: 0; }
.get-code.is-revealed .stub {
	background: var(--ink);
	color: #fff;
	justify-content: center;
	padding-inline-end: 0;
	font-size: 1.02rem;
	animation: pop var(--norm) var(--ease);
}
@keyframes pop {
	0%   { transform: scale(.92); }
	60%  { transform: scale(1.03); }
	100% { transform: scale(1); }
}

/* زر العروض بدون كود */
.get-deal {
	display: grid; place-items: center;
	width: 100%; height: 52px;
	border: 2px solid var(--ink);
	border-radius: var(--r-pill);
	font-weight: 800;
	background: #fff;
	cursor: pointer;
	transition: background var(--fast), color var(--fast), transform var(--fast) var(--ease);
}
.get-deal:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* ----------------------------------------------------------- المودال */

.modal {
	position: fixed; inset: 0; z-index: 100;
	display: grid; place-items: center;
	padding: 18px;
	background: rgba(18,32,58,.55);
	backdrop-filter: blur(3px);
	opacity: 0; visibility: hidden;
	transition: opacity var(--norm), visibility var(--norm);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-box {
	width: 100%; max-width: 430px;
	background: #fff;
	border-radius: var(--r-lg);
	padding: 30px 26px 26px;
	text-align: center;
	box-shadow: var(--shadow-lg);
	transform: translateY(14px) scale(.97);
	transition: transform var(--norm) var(--ease);
	position: relative;
}
.modal.is-open .modal-box { transform: none; }

.modal-close {
	position: absolute; top: 12px; inset-inline-end: 12px;
	width: 34px; height: 34px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: var(--bg-alt);
	cursor: pointer; font-size: 1.15rem; line-height: 1;
	transition: background var(--fast);
}
.modal-close:hover { background: var(--line); }

.modal-logo {
	width: 62px; height: 62px; margin: 0 auto 14px;
	display: grid; place-items: center;
	background: var(--bg-alt); border-radius: var(--r); padding: 8px;
}
.modal h3 { font-size: 1.12rem; margin-bottom: 16px; }

.code-box {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 6px 6px 18px;
	border: 2px dashed var(--brand-1);
	border-radius: var(--r);
	background: #F2FCFD;
	margin-bottom: 14px;
}
.code-box code {
	flex: 1; text-align: start;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 1.3rem; font-weight: 800; letter-spacing: .1em;
	color: var(--ink);
	overflow: auto;
}
.copy-btn {
	flex: none;
	padding: 11px 18px; border: 0; border-radius: var(--r-sm);
	background: var(--ink); color: #fff; font-weight: 700; cursor: pointer;
	transition: background var(--fast), transform var(--fast) var(--ease);
}
.copy-btn:hover { transform: translateY(-1px); }
.copy-btn.is-done { background: var(--ok); }

.modal-terms {
	font-size: .82rem; color: var(--muted);
	text-align: start; margin: 14px 0 0;
	padding-top: 14px; border-top: 1px solid var(--line);
}
.modal-terms li { margin-bottom: 4px; }

/* --------------------------------------------------------- بلاطة متجر */

/*
 * `minmax(0, 1fr)` مش `1fr`.
 *
 * `1fr` لوحدها معناها `minmax(auto, 1fr)` — العمود ما بينزل تحت
 * min-content تبع محتواه. فاسم متجر طويل ("Booking.com") أو لوقو عريض
 * كان بيوسّع عموده على حساب الباقي، والبلاطات بتطلع بعروض مختلفة
 * (قسناها: 75px جنب 97px بنفس الصف). الصفر بيخلّيها تتساوى فعلاً.
 */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1060px){ .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.tile {
	display: flex; flex-direction: column; align-items: center; gap: 9px;
	min-width: 0;
	padding: 18px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	text-align: center;
	transition: transform var(--norm) var(--ease), box-shadow var(--norm), border-color var(--norm);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile-logo {
	width: 100%; height: 52px; display: grid; place-items: center;
	overflow: hidden;
}
/*
 * قياس ثابت بالبكسل — مش `max-height: 100%`.
 *
 * الصورة هون عنصر داخل grid، وصفّ الـgrid حجمه auto. النسبة المئوية
 * بتنحسب من ارتفاع "الخانة" اللي هي نفسها بتكبر مع المحتوى — دورة
 * مقفلة، والمتصفّح بيتعامل معها كـ`none` حسب المواصفة. يعني القيد
 * كان مش شغّال أصلاً: لوقو 500×500 كان بينزل لـ93px جوّا خانة 46px
 * ويغطّي اسم المتجر تحته.
 */
.tile-logo img {
	width: 100%; height: 52px;
	object-fit: contain;
}
/* اسم طويل بينقصّ بدل ما يوسّع البلاطة */
.tile-name {
	font-size: .88rem; font-weight: 700;
	max-width: 100%;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile-count { font-size: .76rem; color: var(--muted); }

/* --------------------------------------------------------- شريط A-Z */

.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border: 1px solid var(--line); border-radius: var(--r-sm);
	font-weight: 700; font-size: .92rem;
	background: #fff;
	transition: background var(--fast), color var(--fast), transform var(--fast) var(--ease), border-color var(--fast);
}
.az a:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-2px); }
.az a.is-empty { opacity: .35; pointer-events: none; }

/* ------------------------------------------------------ صفحة المتجر */

.store-hero {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--line);
	padding: 26px 0;
}
.store-hero .wrap {
	display: grid; gap: 18px;
	grid-template-columns: 1fr;
	align-items: center;
}
@media (min-width: 760px) { .store-hero .wrap { grid-template-columns: 104px 1fr auto; } }

.store-logo {
	width: 104px; height: 104px;
	display: grid; place-items: center;
	background: #fff; border-radius: var(--r-lg); padding: 14px;
	box-shadow: var(--shadow-sm);
}
/* 104 ناقص 28 padding = 76. وهاي بلا overflow:hidden فكانت بتفيض برّا */
.store-logo img { width: 100%; height: 76px; object-fit: contain; }

.store-hero h1 { margin-bottom: 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.store-sub { color: var(--muted); font-size: .95rem; margin: 0; }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.stars { position: relative; width: 88px; height: 15px; }
.stars i {
	position: absolute; inset: 0;
	background: currentColor;
	-webkit-mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 17.6px);
	mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 17.6px);
}
.stars .bg  { color: #D6DEE7; }
.stars .fg  { color: #F5A623; }

.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--brand-1); }
.crumbs span { margin: 0 6px; opacity: .6; }

.layout { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .layout { grid-template-columns: 1fr 310px; } }

.side { display: grid; gap: 18px; }
@media (min-width: 1000px) { .side { position: sticky; top: 88px; } }

.card {
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: 20px;
}
.card h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.facts { margin: 0; font-size: .9rem; }
.facts dt { color: var(--muted); font-size: .78rem; margin-top: 10px; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.related { display: grid; gap: 4px; }
.related a {
	display: flex; align-items: center; gap: 10px;
	padding: 8px; border-radius: var(--r-sm);
	font-size: .88rem; font-weight: 600;
	transition: background var(--fast);
}
.related a:hover { background: var(--bg-alt); }
.related img { width: 30px; height: 30px; object-fit: contain; flex: none; }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 10px; }
.faq details {
	border: 1px solid var(--line); border-radius: var(--r);
	background: #fff; overflow: hidden;
}
.faq summary {
	padding: 15px 18px;
	font-weight: 700; cursor: pointer; list-style: none;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	transition: background var(--fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-alt); }
.faq summary::after {
	content: "+"; flex: none;
	font-size: 1.3rem; font-weight: 400; color: var(--brand-1);
	transition: transform var(--norm) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 16px; color: var(--ink-soft); font-size: .94rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* المحتوى التحريري */
.prose { font-size: .98rem; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.5em; }
.prose ul { padding-inline-start: 20px; }
.prose li { margin-bottom: .5em; }

/* ------------------------------------------------------ خانة إعلان */

/*
   الارتفاع محجوز من الـCSS حتى لو الخانة فاضية — يعني الصفحة ما بتقفز
   لمّا يوصل الإعلان. هاي اللي بتحمي CLS بـCore Web Vitals.
*/
.ad-slot {
	display: grid; place-items: center;
	margin: 22px 0;
	overflow: hidden;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rect        { min-height: 250px; }
.ad-slot--sidebar     { min-height: 250px; }

@media (max-width: 767px) {
	.ad-slot--leaderboard { min-height: 50px; }
}

.ad-slot__ph {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	border: 1px dashed var(--line); border-radius: var(--r);
	color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
	background: var(--bg-alt);
}

/* ---------------------------------------------------------- الفوتر */

.site-footer {
	background: var(--bg-deep);
	color: #A9BBD0;
	padding: 46px 0 26px;
	margin-top: 50px;
}
.footer-grid {
	display: grid; gap: 30px;
	grid-template-columns: 1fr;
	margin-bottom: 32px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer h4 {
	color: #fff; font-size: .8rem; text-transform: uppercase;
	letter-spacing: .09em; margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { font-size: .89rem; transition: color var(--fast); }
.site-footer a:hover { color: var(--brand-2); }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding-top: 20px;
	display: flex; flex-wrap: wrap; gap: 12px;
	justify-content: space-between;
	font-size: .82rem;
}

/* نشرة بريدية */
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
	flex: 1; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm);
	background: rgba(255,255,255,.06); color: #fff; font-size: .9rem;
}
.newsletter input::placeholder { color: #7D91AB; }
.newsletter input:focus { outline: none; border-color: var(--brand-1); }
.newsletter button {
	flex: none; padding: 0 18px; height: 44px;
	border: 0; border-radius: var(--r-sm);
	background: var(--gradient); color: #fff; font-weight: 700; cursor: pointer;
	transition: transform var(--fast) var(--ease);
}
.newsletter button:hover { transform: translateY(-1px); }
.newsletter-msg { font-size: .84rem; margin-top: 8px; min-height: 1.2em; }

/* ------------------------------------------------- بانر الكوكيز */

.cookie-bar {
	position: fixed; inset-inline: 14px; bottom: 14px; z-index: 90;
	max-width: 640px; margin: 0 auto;
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
	padding: 18px 20px;
	display: none;
	align-items: center; gap: 14px; flex-wrap: wrap;
	font-size: .88rem;
	animation: slideUp var(--norm) var(--ease);
}
.cookie-bar.is-open { display: flex; }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } }
.cookie-bar p { margin: 0; flex: 1 1 280px; color: var(--ink-soft); }
.cookie-bar .btn-row { display: flex; gap: 8px; margin-inline-start: auto; }

.btn {
	display: inline-grid; place-items: center;
	padding: 10px 18px; border-radius: var(--r-pill);
	font-weight: 700; font-size: .88rem; cursor: pointer; border: 0;
	transition: transform var(--fast) var(--ease), filter var(--fast);
}
.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--glow); }
.btn--ghost   { background: var(--bg-alt); color: var(--ink-soft); }
.btn:hover { transform: translateY(-1px); }

/* ------------------------------------------------ حركة الظهور */

/*
   العناصر بتطلع من تحت لما تدخل الشاشة. بتنفّذ بالـIntersectionObserver،
   ولو الجافاسكربت ما اشتغل بيضلوا ظاهرين عادي (الـno-js بتشيل الإخفاء).
*/
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
	opacity: 1; transform: none;
	transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* احترام تفضيل تقليل الحركة — إلزامي مش تحسين */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- مساعدات */

.grid-2 { display: grid; gap: 14px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.empty {
	text-align: center; padding: 50px 20px;
	color: var(--muted);
	border: 1px dashed var(--line); border-radius: var(--r-lg);
}

.toast {
	position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
	background: var(--ink); color: #fff;
	padding: 12px 20px; border-radius: var(--r-pill);
	font-size: .9rem; font-weight: 600;
	box-shadow: var(--shadow-lg);
	opacity: 0; pointer-events: none;
	transition: opacity var(--norm), transform var(--norm) var(--ease);
	z-index: 110;
}
.toast.is-open { opacity: 1; transform: translateX(-50%); }
