/* =========================================================
   رقمنة — نظام التصميم (مستوحى من ميسر)
   RTL أولاً • ألوان راقية • انسيابية عالية
   ========================================================= */

:root {
  /* الألوان الأساسية */
  --ink:        #0A1F33;   /* الكحلي العميق (خلفيات داكنة) */
  --ink-2:      #0E2942;
  --ink-3:      #14344F;
  --mint:       #16D6A4;   /* الأخضر النعناعي المميّز (توقيع الهوية) */
  --mint-deep:  #0FB88A;
  --mint-soft:  #E7FBF4;
  --mint-glow:  rgba(22, 214, 164, 0.35);

  --bg:         #F5F8FA;   /* خلفية الصفحة */
  --surface:    #FFFFFF;   /* البطاقات */
  --surface-2:  #F0F5F8;
  --text:       #12283A;   /* النص الرئيسي */
  --muted:      #5A6B7A;   /* النص الثانوي (يحقق تباين WCAG AA على الخلفيات) */
  --line:       #E6EDF1;   /* الحدود */
  --danger:     #F0526B;
  --heading:    var(--ink); /* لون العناوين (يتحوّل فاتحاً في الوضع الداكن) */

  /* أنصاف الأقطار */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* الظلال */
  --shadow-sm: 0 2px 8px -2px rgba(10, 31, 51, 0.08);
  --shadow-md: 0 12px 32px -12px rgba(10, 31, 51, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 51, 0.22);
  --shadow-mint: 0 18px 44px -16px rgba(22, 214, 164, 0.45);

  /* الحركة */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --maxw: 1180px;
}

/* ---------- إعادة الضبط ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ضمان أن السمة hidden تخفي العنصر دائماً حتى لو كان له display مخصّص
   (بعض العناصر مثل شاشة الدخول لها display:flex/grid يتجاوز hidden) */
[hidden] { display: none !important; }

/* ============ الوضع الداكن (Dark Mode) ============ */
:root[data-theme="dark"] {
  --bg:        #0B1620;
  --surface:   #12212C;
  --surface-2: #1B2C39;
  --text:      #E7EEF3;
  --muted:     #93A6B4;
  --line:      #263A48;
  --heading:   #EDF3F7;
  /* --ink / --ink-2 / --ink-3 تبقى داكنة (للّوحات الداكنة ونص الأزرار النعناعية) */
  /* --mint / --mint-deep / --mint-soft تبقى كما هي */
  --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.45);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,0.55);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.65);
}
:root[data-theme="dark"] body {
  background: radial-gradient(900px 500px at 50% -10%, #12303f 0%, transparent 55%), var(--bg);
}
/* نص داكن دائماً فوق الأزرار النعناعية/الفاتحة */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .cart-count,
:root[data-theme="dark"] .pay-fake-btn,
:root[data-theme="dark"] .add-btn:hover,
:root[data-theme="dark"] .add-btn.added,
:root[data-theme="dark"] .cart-item-controls .qty-btn:hover,
:root[data-theme="dark"] .qty-stepper .qty-btn:hover,
:root[data-theme="dark"] .pay-tab.active,
:root[data-theme="dark"] .step-num { color: var(--ink); }
/* زر الإضافة أوضح على الخلفية الداكنة */
:root[data-theme="dark"] .add-btn { background: var(--ink-3); }
/* الهيدر الشفاف */
:root[data-theme="dark"] .site-header { background: rgba(11,22,32,0.72); }
:root[data-theme="dark"] .site-header.scrolled { background: rgba(18,33,44,0.92); border-bottom-color: var(--line); }

/* زر تبديل الوضع */
.theme-btn {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--mint-deep); }
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* أرقام لاتينية بخط ثابت العرض للأسعار */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint);
  color: var(--heading);
  box-shadow: var(--shadow-mint);
}
.btn-primary:hover {
  background: var(--mint-deep);
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -14px rgba(22, 214, 164, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--heading); background: var(--surface); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ============ الهيدر ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 250, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-name {
  font-family: "Tajawal", var(--font);
  font-weight: 800;
  font-size: 22px;
  color: var(--heading);
  letter-spacing: -0.5px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: width 0.28s var(--ease);
}
.main-nav a:hover { color: var(--heading); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.ghost-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
}
.ghost-link:hover { color: var(--heading); background: var(--surface-2); }

.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cart-count {
  position: absolute;
  top: -4px; left: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint);
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 2px solid var(--bg);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 26px; height: 2.5px; background: var(--heading); border-radius: 2px; transition: 0.3s var(--ease); }

/* ============ الهيرو ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 62%);
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-family: "Tajawal", var(--font);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.14;
  color: var(--heading);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.price-highlight {
  position: relative;
  color: var(--mint-deep);
  white-space: nowrap;
}
.price-highlight::after {
  content: "";
  position: absolute;
  right: 0; bottom: 6px;
  width: 100%; height: 14px;
  background: var(--mint-soft);
  border-radius: 4px;
  z-index: -1;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: 26px; }
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .stat strong {
  font-family: "Tajawal", var(--font);
  font-size: 26px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
}
.hero-stats .stat span { font-size: 13px; color: var(--muted); }
.hero-stats .divider { width: 1px; height: 38px; background: var(--line); }

/* بطاقة الدفع العائمة */
.hero-visual { position: relative; display: flex; justify-content: center; }
.pay-card {
  width: min(320px, 100%);
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--r-xl);
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pay-card::before {
  content: "";
  position: absolute;
  top: -60px; left: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--mint-glow), transparent 70%);
}
.pay-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.pay-chip {
  width: 42px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #E9C46A, #F4E1A0);
}
.pay-brand { font-family: "Tajawal"; font-weight: 800; font-size: 18px; opacity: 0.95; }
.pay-amount { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.pay-amount span { font-size: 13px; opacity: 0.7; }
.pay-amount strong { font-size: 34px; font-weight: 800; font-family: "Tajawal"; }
.pay-amount small { font-size: 16px; opacity: 0.8; }
.pay-methods { display: flex; gap: 8px; margin-bottom: 20px; }
.pm {
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.12);
  letter-spacing: 0.5px;
}
.pm.mada { color: #84E0C6; }
.pm.visa { font-style: italic; }
.pay-row { display: flex; gap: 8px; margin-bottom: 22px; }
.pay-row i { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.10); }
.pay-row i:first-child { flex: 2; }
.pay-fake-btn {
  width: 100%;
  background: var(--mint);
  color: var(--heading);
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: var(--r-sm);
}
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.floaty-badge {
  position: absolute;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}
.floaty-badge.one { top: 30px; right: 0; animation: floaty 4s ease-in-out infinite; }
.floaty-badge.two { bottom: 40px; left: 0; animation: floaty 4.6s ease-in-out infinite 0.4s; }

/* ============ شريط طرق الدفع ============ */
.marquee-strip { border-block: 1px solid var(--line); background: var(--surface); }
.marquee-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 24px; flex-wrap: wrap;
}
.marquee-inner > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.pay-logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pay-logo {
  font-weight: 800; font-size: 17px; color: var(--heading);
  opacity: 0.55; transition: opacity 0.2s var(--ease);
  letter-spacing: 0.3px;
}
.pay-logo:hover { opacity: 1; }

/* ============ ترويسة الأقسام ============ */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700;
  color: var(--mint-deep);
  background: var(--mint-soft);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.section-title {
  font-family: "Tajawal", var(--font);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--heading);
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc { font-size: 17px; color: var(--muted); }

/* ============ الخدمات ============ */
.services-section { padding: 90px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  background: var(--mint-soft);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease-out), background 0.3s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-title {
  font-family: "Tajawal", var(--font);
  font-weight: 700;
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
  margin-bottom: 22px;
}
.service-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.service-price { display: flex; align-items: baseline; gap: 5px; }
.service-price .amount {
  font-family: "Tajawal", var(--font);
  font-size: 26px;
  font-weight: 800;
  color: var(--heading);
}
.service-price .currency { font-size: 14px; color: var(--muted); font-weight: 600; }
.add-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--mint); color: var(--heading); transform: rotate(90deg); }
.add-btn.added { background: var(--mint); color: var(--heading); }

/* ---------- منتج بتسعير لكل وحدة (باقة) — مُدمج ومُحكم ---------- */
.service-perunit .perunit-box {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.perunit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.perunit-lbl { font-size: 13.5px; font-weight: 600; color: var(--text); }
.perunit-per { font-size: 12px; color: var(--mint-deep); font-weight: 700; margin-inline-start: 5px; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px;
}
.qty-stepper .qty-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2); color: var(--heading);
  font-size: 17px; font-weight: 700; transition: all .15s var(--ease);
}
.qty-stepper .qty-btn:hover { background: var(--mint); color: var(--heading); }
.qty-stepper .qty-num { min-width: 26px; text-align: center; font-family: "Tajawal"; font-weight: 800; font-size: 16px; color: var(--heading); }
.perunit-presets { display: flex; gap: 6px; margin-top: 8px; }
.perunit-chip {
  flex: 1; padding: 5px 0; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--surface); font-family: "Tajawal"; font-weight: 700; font-size: 14px; color: var(--muted);
  transition: all .18s var(--ease);
}
.perunit-chip:hover { border-color: var(--mint); }
.perunit-chip.active { background: var(--ink); border-color: var(--heading); color: #fff; }
.service-perunit .service-price { flex-wrap: wrap; align-items: baseline; }
.perunit-total-lbl { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-bottom: 1px; }

/* ============ كيف نعمل ============ */
.how-section { padding: 90px 0; background: var(--surface); border-block: 1px solid var(--line); }
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 10px; max-width: 900px; margin: 0 auto;
}
.step { flex: 1; text-align: center; padding: 0 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  font-family: "Tajawal"; font-weight: 800; font-size: 24px;
  color: var(--heading);
  background: var(--mint-soft);
  border: 2px solid var(--mint);
  border-radius: 50%;
  margin-bottom: 20px;
}
.step h3 { font-family: "Tajawal"; font-weight: 700; font-size: 19px; color: var(--heading); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step-line { flex: 0.5; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); margin-top: 28px; }

/* ============ لماذا نحن ============ */
.trust-section { padding: 90px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.trust-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.trust-card h3 { font-family: "Tajawal"; font-weight: 700; font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.trust-card p { font-size: 14.5px; color: var(--muted); }

/* ============ دعوة نهائية ============ */
.cta-band { padding: 40px 0 100px; }
.cta-inner {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--r-xl);
  padding: 66px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--mint-glow), transparent 68%);
}
.cta-inner h2 {
  font-family: "Tajawal"; font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  color: #fff; margin-bottom: 14px;
  position: relative;
}
.cta-inner p { font-size: 18px; color: rgba(255,255,255,0.72); margin-bottom: 30px; position: relative; }
.cta-inner .btn { position: relative; }

/* ============ الفوتر ============ */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner {
  display: grid; grid-template-columns: 1.1fr 2.8fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand-name { font-size: 24px; }
.footer-brand p { font-size: 14.5px; color: var(--muted); margin-top: 10px; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--mint-deep); }
.foot-pay { font-size: 14px; color: var(--muted); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px;
}

/* ============ سلة المشتريات الجانبية ============ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(10, 31, 51, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  z-index: 200;
}
.overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 420px; max-width: 92vw;
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cart-header h3 { font-family: "Tajawal"; font-weight: 700; font-size: 20px; color: var(--heading); }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); color: var(--muted);
  transition: all 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--heading); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  animation: itemIn 0.35s var(--ease-out);
}
@keyframes itemIn { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:translateY(0)} }
.cart-item-ico {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--mint-soft); border-radius: var(--r-sm);
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-title { font-family: "Tajawal"; font-weight: 700; font-size: 15.5px; color: var(--heading); margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--mint-deep); font-weight: 600; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--surface-2); color: var(--heading);
  font-size: 16px; font-weight: 700; transition: all 0.15s var(--ease);
}
.qty-btn:hover { background: var(--mint); color: var(--heading); }
.qty-val { min-width: 28px; text-align: center; font-weight: 600; font-size: 15px; }
.cart-item-remove {
  margin-inline-start: auto; color: var(--muted);
  font-size: 13px; transition: color 0.2s var(--ease);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 40px;
}
.cart-empty .empty-ico { font-size: 46px; margin-bottom: 8px; opacity: 0.7; }
.cart-empty p { font-family: "Tajawal"; font-weight: 700; font-size: 18px; color: var(--heading); }
.cart-empty span { font-size: 14px; color: var(--muted); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cart-total-row span { font-size: 15px; color: var(--muted); }
.cart-total-row strong { font-family: "Tajawal"; font-weight: 800; font-size: 24px; color: var(--heading); }
.cart-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ============ نافذة الدفع ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 31, 51, 0.5);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.payment-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%; max-width: 840px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.38s var(--ease-out);
}
.modal-overlay.show .payment-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 18px; left: 18px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted);
  z-index: 5; transition: all 0.2s var(--ease);
}
.modal-close:hover { background: var(--danger); color: #fff; }

.payment-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; }

/* ملخص الطلب */
.pay-summary {
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #fff;
  padding: 34px 30px;
  /* في RTL يكون هذا العمود على اليمين: نُدوّر حافته اليمنى (الخارجية) فقط */
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  display: flex; flex-direction: column;
}
.pay-summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand-name.small { font-size: 18px; color: #fff; }
.secure-badge { font-size: 12px; background: rgba(255,255,255,0.12); padding: 5px 12px; border-radius: var(--r-pill); }
.pay-summary h4 { font-size: 15px; font-weight: 600; opacity: 0.7; margin-bottom: 18px; }
.summary-items { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.summary-item { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; gap: 10px; }
.summary-item .si-name { display: flex; align-items: center; gap: 10px; opacity: 0.92; }
.summary-item .si-ico { font-size: 18px; }
.summary-item .si-qty { opacity: 0.6; font-size: 12px; }
.summary-item .si-price { font-weight: 700; white-space: nowrap; }
.summary-total {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 22px;
}
.summary-total span { font-size: 15px; opacity: 0.8; }
.summary-total strong { font-family: "Tajawal"; font-weight: 800; font-size: 26px; }
.summary-trust { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.summary-trust li { font-size: 13px; opacity: 0.78; }

/* نموذج الدفع */
.pay-form-wrap { padding: 34px 32px; }
.pay-form-title { font-family: "Tajawal"; font-weight: 800; font-size: 22px; color: var(--heading); margin-bottom: 22px; }
.pay-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.pay-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: all 0.22s var(--ease);
}
.pay-tab.active { border-color: var(--mint); background: var(--mint-soft); color: var(--heading); }
.pm-mini { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: var(--surface-2); }
.pm-mini.mada { color: var(--mint-deep); }
.pm-mini.visa { font-style: italic; color: #1A4C8B; }

.form-section { margin-bottom: 22px; }
.form-section-title {
  display: block; font-size: 13px; font-weight: 700; color: var(--muted);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}
.field input::placeholder { color: #98A6B2; }
/* حقول الأرقام والروابط تُكتب من اليسار لليمين (LTR) مع محاذاتها لجهة النموذج */
#cardNumber, #cardExpiry, #cardCvc, #fldWebsite { direction: ltr; text-align: right; }
.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(240,82,107,0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-number-wrap { position: relative; }
.card-brand-badge {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--heading);
}
.card-brand-badge.mada { color: var(--mint-deep); }
.card-brand-badge.visa { color: #1A4C8B; font-style: italic; }
.card-brand-badge.mastercard { color: #EB6C1C; }

.applepay-btn {
  width: 100%; background: #000; color: #fff;
  padding: 15px; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 600;
}
.hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }

.btn-pay { margin-top: 6px; padding: 16px; font-size: 16.5px; }
.pay-secure-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ===== تفاصيل الطلب: مشتركة + قسم لكل منتج (أكورديون) ===== */
.of-common { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.of-hint { font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.of-items { display: flex; flex-direction: column; gap: 10px; }
.of-item { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color 0.2s var(--ease); }
.of-item.open { border-color: var(--mint); }
.of-item-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: transparent; border: none; cursor: pointer; padding: 13px 15px; font-family: inherit; color: var(--heading); font-weight: 700; text-align: start; }
.of-item-name { font-size: 14.5px; }
.of-item-chev { color: var(--muted); transition: transform 0.2s var(--ease); }
.of-item.open .of-item-chev { transform: rotate(180deg); color: var(--mint-deep); }
.of-item-body { padding: 2px 15px 15px; display: flex; flex-direction: column; gap: 12px; }
.of-none { color: var(--muted); font-size: 13px; margin: 2px 0 4px; }
.pay-policy-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.pay-policy-note a { color: var(--mint-deep); font-weight: 700; text-decoration: underline; }
.moyasar-form:not([hidden]) { margin-bottom: 18px; }

/* ============ نافذة النجاح ============ */
.success-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-out);
}
.modal-overlay.show .success-box { transform: scale(1); }
.success-check { margin-bottom: 20px; }
.success-check svg { animation: pop 0.5s var(--ease-out); }
@keyframes pop { 0%{transform:scale(0)} 60%{transform:scale(1.1)} 100%{transform:scale(1)} }
.success-box h3 { font-family: "Tajawal"; font-weight: 800; font-size: 24px; color: var(--heading); margin-bottom: 10px; }
.success-box p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.success-order {
  background: var(--surface-2); border-radius: var(--r-sm);
  padding: 12px; font-size: 14px; color: var(--heading); font-weight: 600;
  margin-bottom: 22px;
}

/* ============ تسجيل الدخول التجريبي + شارة المستخدم ============ */
.login-box {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 42px 36px; max-width: 400px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg); position: relative;
  transform: scale(0.94); transition: transform 0.35s var(--ease-out);
}
.login-close {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(148,165,179,0.12); color: var(--muted);
  font-size: 16px; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.login-close:hover { background: rgba(148,165,179,0.22); color: var(--heading); }

/* ===== حسابي (طلباتي + بياناتي) ===== */
.account-box {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 34px 28px 26px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
  transform: scale(0.94); transition: transform 0.35s var(--ease-out);
  max-height: 88vh; overflow-y: auto;
}
.modal-overlay.show .account-box { transform: scale(1); }
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.account-avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--mint);
  color: #06231b; display: grid; place-items: center; font-weight: 800; font-size: 24px;
  font-family: "Tajawal"; flex-shrink: 0;
}
.account-name { font-family: "Tajawal"; font-weight: 800; font-size: 20px; color: var(--heading); }
.account-email { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.account-info { background: rgba(148,165,179,0.07); border-radius: 12px; padding: 2px 14px; margin-bottom: 20px; }
.acc-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 14.5px; }
.acc-row span { color: var(--muted); }
.acc-row b { color: var(--text); font-weight: 700; }
.account-orders-title { font-family: "Tajawal"; font-weight: 800; font-size: 17px; color: var(--heading); margin: 0 0 12px; }
.orders-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-date { color: var(--muted); font-size: 12.5px; }
.order-status { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 20px; background: var(--mint-soft); color: var(--mint-deep); }
.order-items { color: var(--text); font-size: 14px; line-height: 1.7; }
.order-total { color: var(--mint-deep); font-weight: 800; font-family: "Tajawal"; margin-top: 6px; }
.orders-empty { color: var(--muted); text-align: center; font-size: 14px; padding: 18px 0; }
.account-logout { background: transparent; border: 1.5px solid var(--line); color: var(--text); font-weight: 700; margin-top: 4px; }
.account-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ===== تمت الإضافة للسلة ===== */
.added-box {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 36px 30px 26px; max-width: 380px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94); transition: transform 0.35s var(--ease-out);
}
.modal-overlay.show .added-box { transform: scale(1); }
.added-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--mint);
  color: #06231b; display: grid; place-items: center; font-size: 30px; font-weight: 900;
  margin: 0 auto 16px;
}
.added-title { font-family: "Tajawal"; font-weight: 800; font-size: 21px; color: var(--heading); margin-bottom: 6px; }
.added-item { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.added-box .btn-block { margin-bottom: 10px; }
.added-continue { background: transparent; border: 1.5px solid var(--line); color: var(--text); font-weight: 700; }
.added-continue:hover { border-color: var(--mint); color: var(--mint-deep); }
.modal-overlay.show .login-box { transform: scale(1); }
.login-logo { display: inline-block; margin-bottom: 18px; }
.login-box h3 { font-family: "Tajawal"; font-weight: 800; font-size: 24px; color: var(--heading); margin-bottom: 8px; }
.login-box p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.login-box input {
  width: 100%; padding: 14px 16px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  margin-bottom: 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-box input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.login-box input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(240,82,107,0.12); }
.login-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.login-code-hint { color: var(--text); font-size: 15px; margin-bottom: 16px; line-height: 1.7; }
.login-code-hint strong { color: var(--mint-deep); word-break: break-all; }
.code-input { letter-spacing: 12px; font-size: 26px; font-weight: 700; padding: 16px !important; }
/* خانات الكود بأسلوب أبل — مربّعات منفصلة متقاربة */
.otp-inputs { display: flex; gap: 8px; justify-content: center; direction: ltr; margin-bottom: 16px; }
.otp-box {
  width: 46px; height: 56px; text-align: center;
  font-size: 26px; font-weight: 700; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 13px;
  background: var(--surface); color: var(--text);
  padding: 0 !important; margin: 0 !important; caret-color: var(--mint);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.12s var(--ease);
}
.otp-box:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); transform: translateY(-1px); }
.otp-box.filled { border-color: var(--mint); }
.otp-inputs.invalid .otp-box { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(240,82,107,0.10); }
@media (max-width: 380px) {
  .otp-inputs { gap: 6px; }
  .otp-box { width: 40px; height: 50px; font-size: 22px; }
}
.login-notice {
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 15px; font-size: 14.5px; font-weight: 700; line-height: 1.65;
  margin: 0 0 18px; text-align: center;
}
/* أخضر: رسالة إيجابية (تم/نجح) */
.login-notice.ok { background: var(--mint-soft); color: var(--mint-deep); border-color: rgba(22,214,164,0.38); }
/* أحمر خفيف: تنبيه/انتباه (مكرر، جرّب غيره، غير متطابق) */
.login-notice.warn { background: rgba(240,82,107,0.12); color: #F5879C; border-color: rgba(240,82,107,0.42); }
.pass-wrap { position: relative; margin-bottom: 14px; }
.pass-wrap input { margin-bottom: 0; padding-inline-end: 44px; }
.pass-eye {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 17px; line-height: 1;
  padding: 6px; opacity: 0.5; transition: opacity 0.2s var(--ease);
}
.pass-eye:hover, .pass-eye.on { opacity: 1; }
.login-switch { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.login-switch button {
  background: none; border: none; color: var(--mint-deep);
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 2px 4px;
}
.login-switch button:hover { text-decoration: underline; }
.login-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.login-links button {
  background: none; border: none; color: var(--mint-deep);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 6px;
}
.login-links button:hover { text-decoration: underline; }
.login-links button:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px 12px 4px 5px;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mint); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Tajawal"; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.user-name { font-size: 14px; font-weight: 600; color: var(--heading); }
.user-logout { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: var(--r-pill); transition: color 0.2s var(--ease); }
.user-logout:hover { color: var(--danger); }
@media (max-width: 520px) { .user-name { display: none; } }

/* ============ التنبيهات ============ */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff;
  padding: 14px 20px; border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast .t-ico { color: var(--mint); font-size: 18px; }

/* ============ معرض الأعمال ============ */
.portfolio-section { padding: 90px 0; background: var(--surface); border-block: 1px solid var(--line); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.port-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.port-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.port-thumb {
  position: relative;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.port-emoji { font-size: 58px; transition: transform 0.4s var(--ease-out); filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2)); }
.port-card:hover .port-emoji { transform: scale(1.15) rotate(-4deg); }
.port-badge {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: rgba(255,255,255,0.95); color: #0A1F33;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.port-thumb.g1 { background: linear-gradient(135deg, #0A1F33, #14344F); }
.port-thumb.g2 { background: linear-gradient(135deg, #16D6A4, #0FB88A); }
.port-thumb.g3 { background: linear-gradient(135deg, #FFC542, #FF9F1C); }
.port-thumb.g4 { background: linear-gradient(135deg, #6C5CE7, #8E7CF0); }
.port-thumb.g5 { background: linear-gradient(135deg, #FF6B9D, #FF8FB3); }
.port-thumb.g6 { background: linear-gradient(135deg, #2A6FDB, #4A8CF0); }
.port-body { padding: 20px 22px; }
.port-body h3 { font-family: "Tajawal"; font-weight: 700; font-size: 17px; color: var(--heading); margin-bottom: 6px; }
.port-body p { font-size: 13.5px; color: var(--muted); }

/* بطاقة رابط (منيو) */
.port-card.port-link { display: block; color: inherit; cursor: pointer; }

/* بطاقة الفيديو + المشغّل */
.port-video { cursor: pointer; }
.port-video:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.port-thumb-video {
  position: relative;
  background-image: url("../media/restaurant-promo-poster.jpg");
  background-size: cover; background-position: center;
}
.port-thumb-video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,51,0.10), rgba(10,31,51,0.42));
}
.port-thumb-video .port-badge { z-index: 2; }
.port-play {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.94); color: var(--heading);
  border-radius: 50%; padding-inline-start: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.port-video:hover .port-play { transform: scale(1.14); background: var(--mint); }
.video-box {
  background: #000;
  border-radius: var(--r-lg);
  width: 100%; max-width: 900px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95); transition: transform 0.35s var(--ease-out);
}
.modal-overlay.show .video-box { transform: scale(1); }
.video-box video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.video-box .modal-close { top: 12px; left: 12px; background: rgba(0,0,0,0.55); color: #fff; z-index: 5; }
.video-box .modal-close:hover { background: var(--danger); color: #fff; }
.video-caption { padding: 13px 18px; font-size: 13.5px; color: var(--muted); background: var(--surface); text-align: center; }

/* ============ آراء العملاء ============ */
.testi-section { padding: 90px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi-stars { color: #FFB020; font-size: 17px; letter-spacing: 2px; }
.testi-card blockquote { font-size: 15.5px; color: var(--text); line-height: 1.85; flex: 1; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint-soft); color: var(--mint-deep);
  font-family: "Tajawal"; font-weight: 800; font-size: 20px;
  border-radius: 50%;
}
.testi-who { display: flex; flex-direction: column; }
.testi-who strong { font-size: 15px; color: var(--heading); font-weight: 700; }
.testi-who small { font-size: 12.5px; color: var(--muted); }

/* ============ الأسئلة الشائعة ============ */
.faq-section { padding: 90px 0; background: var(--surface); border-block: 1px solid var(--line); }
.faq-inner { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--mint); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-family: "Tajawal"; font-weight: 700; font-size: 16.5px; color: var(--heading);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--mint-deep);
  transition: transform 0.3s var(--ease); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.faq-answer a { color: var(--mint-deep); font-weight: 600; }

/* ============ تواصل معنا ============ */
.contact-section { padding: 40px 0 100px; }
.contact-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 50px 44px;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px;
}
.contact-copy .section-eyebrow { margin-bottom: 14px; }
.contact-copy .section-title { text-align: right; font-size: clamp(24px, 3vw, 34px); }
.contact-copy > p { font-size: 16px; color: var(--muted); margin: 12px 0 20px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.contact-list a { color: var(--heading); font-weight: 600; }
.contact-actions { display: flex; justify-content: center; }
.wa-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366; color: #fff;
  font-size: 17px; font-weight: 700;
  padding: 16px 32px; border-radius: var(--r-md);
  box-shadow: 0 16px 40px -14px rgba(37,211,102,0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-cta:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px rgba(37,211,102,0.7); }

/* ============ زر واتساب العائم ============ */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-start: 24px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,0.6);
  z-index: 150;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 40px -8px rgba(37,211,102,0.75); }
@keyframes waPulse {
  0% { box-shadow: 0 12px 30px -6px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 12px 30px -6px rgba(37,211,102,0.6), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 30px -6px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0); }
}

/* علامة الحقل المطلوب */
.req { color: var(--danger); font-weight: 700; }
#orderFieldsContainer textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--text); resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#orderFieldsContainer textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
#orderFieldsContainer .invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(240,82,107,0.12); }

/* ============ الاستجابة ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { margin-top: 30px; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
  .contact-copy .section-title, .contact-list li { justify-content: center; text-align: center; }
  .contact-list li { justify-content: center; }
  .payment-grid { grid-template-columns: 1fr; }
  .pay-summary { border-radius: var(--r-xl) var(--r-xl) 0 0; }
}
@media (max-width: 720px) {
  .main-nav, .ghost-link { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 74px; right: 0; left: 0;
    background: var(--surface); padding: 16px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .steps { flex-direction: column; align-items: stretch; gap: 22px; }
  .step-line { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
  .footer-cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .pay-form-wrap, .pay-summary { padding: 26px 22px; }
  .contact-inner { padding: 34px 24px; }
}
