/* =========================================================
   شُرفة SHURFA — Landing Page
   الهيكل: 1) المتغيرات  2) الأساسيات  3) المكونات  4) الأقسام  5) الاستجابة
   ملاحظة: الخصائص المنطقية (inline-start/end) تجعل دعم LTR للإنجليزية لاحقًا مباشرًا.
   ========================================================= */

/* ---------- 1) الهوية البصرية ---------- */
:root {
  --green: #1A2E28;
  --green-2: #23403A;
  --green-3: #2E5148;
  --purple: #7B5BA7;
  --gold: #F5A623;
  --teal: #2CA6A4;
  --brick: #E4573D;
  --cream: #FAF6F0;
  --sand: #E7E0D6;
  --white: #FFFFFF;

  --ink: var(--green);
  --muted: #5B6B65;
  --line: rgba(26, 46, 40, .1);

  --font-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(26, 46, 40, .06);
  --shadow: 0 18px 50px -18px rgba(26, 46, 40, .28);
  --shadow-lg: 0 40px 90px -30px rgba(26, 46, 40, .45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2) الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.fine.light { color: rgba(250, 246, 240, .6); }
.fine.center { display: block; margin-top: 12px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* زخرفة: نجمة ثمانية من الفن العُماني/الإسلامي */
.pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%231A2E28' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M36 14l6.4 15.6L58 36l-15.6 6.4L36 58l-6.4-15.6L14 36l15.6-6.4z'/%3E%3Crect x='20.5' y='20.5' width='31' height='31' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.pattern-light {
  opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23FAF6F0' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M36 14l6.4 15.6L58 36l-15.6 6.4L36 58l-6.4-15.6L14 36l15.6-6.4z'/%3E%3Crect x='20.5' y='20.5' width='31' height='31' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 3) المكونات ---------- */

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(26, 46, 40, .6); }
.btn-primary:hover { background: var(--green-2); box-shadow: 0 16px 32px -12px rgba(26, 46, 40, .6); }
.btn-primary .ico { color: var(--gold); }
.btn-ghost { color: var(--green); box-shadow: inset 0 0 0 1.5px rgba(26, 46, 40, .2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); background: rgba(255, 255, 255, .6); }
.btn-ghost .ico { transition: transform .25s var(--ease); }
.btn-ghost:hover .ico { transform: translateX(-4px); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { box-shadow: 0 12px 30px -10px rgba(245, 166, 35, .7); }
.btn-brick { background: var(--brick); color: #fff; font-size: 14px; padding: 12px 18px; }
.btn-ghost-light { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(250, 246, 240, .25); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }

/* عناوين الأقسام */
.section { position: relative; padding-block: var(--section-y); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; margin-block: 14px 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  color: var(--green); background: rgba(26, 46, 40, .06);
  padding: 6px 14px; border-radius: 999px;
}
.kicker-gold { color: #9A6200; background: rgba(245, 166, 35, .16); }
.kicker-brick { color: #B23A23; background: rgba(228, 87, 61, .1); }
.kicker-teal { color: #17716F; background: rgba(44, 166, 164, .12); }
.kicker-purple { color: var(--purple); background: rgba(123, 91, 167, .1); }
.dark .kicker-gold { color: var(--gold); background: rgba(245, 166, 35, .12); }

/* الشعار */
.brand { display: inline-flex; align-items: center; }
.brand-img { height: 40px; width: auto; }
.brand:not(.no-img) .brand-fallback { display: none; }
.brand.no-img .brand-img { display: none; }
.brand-fallback { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; color: var(--green); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .28em; opacity: .55; margin-top: 4px; }
.brand-light .brand-mark, .brand-light .brand-name { color: var(--cream); }

/* هاتف (Mockup) */
.phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 290 / 600;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #2a3f39, #0d1714);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--cream); padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5;
}
.app-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--green); padding-inline: 6px; direction: ltr; }
.app-status.light { color: var(--cream); }
.app-status .notch { width: 84px; height: 22px; border-radius: 999px; background: #0d1714; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head small { display: block; color: var(--muted); font-size: 11.5px; }
.app-head strong { font-family: var(--font-head); font-size: 17px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.app-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 16px; padding-block: 4px; }
.app-title .ico { color: var(--brick); }

/* QR توضيحي (يولَّد بـ JS) */
.mock-qr { display: grid; grid-template-columns: repeat(17, 1fr); gap: 1px; width: 74px; aspect-ratio: 1; background: #fff; padding: 5px; border-radius: 8px; }
.mock-qr i { background: var(--green); border-radius: 1px; }
.mock-qr i.off { background: transparent; }

.app-ticket {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--green); color: var(--cream); border-radius: 18px; padding: 14px;
  position: relative; overflow: hidden;
}
.app-ticket::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, .4), transparent 70%); }
.app-ticket small { opacity: .7; font-size: 11px; }
.app-ticket strong { display: block; font-family: var(--font-head); font-size: 15px; }
.app-ticket .tag { display: inline-block; margin-top: 6px; background: var(--gold); color: var(--green); font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }

.app-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; background: #fff; border-radius: 14px; padding: 10px 2px; box-shadow: var(--shadow-sm); }
.q .ico { width: 22px; height: 22px; }
.q-gold .ico { color: var(--gold); } .q-brick .ico { color: var(--brick); }
.q-purple .ico { color: var(--purple); } .q-teal .ico { color: var(--teal); }

.app-passport-mini { background: linear-gradient(135deg, var(--purple), #5F4486); color: #fff; border-radius: 18px; padding: 13px 14px; margin-top: auto; }
.app-passport-mini .row { display: flex; justify-content: space-between; font-size: 12px; }
.app-passport-mini small { opacity: .75; }
.bar { height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .2); margin-block: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: inherit; }
.stamps-mini { display: flex; gap: 6px; }
.stamps-mini i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .45); }
.stamps-mini i.on { border: 0; background: var(--gold); box-shadow: inset 0 0 0 4px #FFC562; }

/* ظهور تدريجي عند التمرير */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* الترويسة */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(250, 246, 240, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .2s; }
.main-nav a:hover, .main-nav a.active { background: rgba(26, 46, 40, .07); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; }
.nav-toggle:hover { background: rgba(26, 46, 40, .07); }

/* الواجهة الرئيسية */
.hero { position: relative; padding-top: clamp(120px, 14vw, 160px); padding-bottom: clamp(64px, 8vw, 110px); overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(245, 166, 35, .12), transparent 70%), radial-gradient(ellipse 50% 50% at 90% 80%, rgba(44, 166, 164, .1), transparent 70%), var(--cream); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; background: #fff; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(44, 166, 164, .18); }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; line-height: 1.22; margin-block: 22px 20px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .28em; background: var(--gold); opacity: .35; border-radius: 6px; z-index: -1; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ico { color: var(--green); width: 18px; height: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(44, 166, 164, .25), transparent 65%); filter: blur(10px); }
.halo-gold { background: radial-gradient(circle, rgba(245, 166, 35, .28), transparent 65%); }
.arch-frame { position: absolute; width: 380px; height: 540px; border-radius: 190px 190px 28px 28px; border: 1.5px solid rgba(26, 46, 40, .12); background: linear-gradient(180deg, rgba(231, 224, 214, .7), rgba(231, 224, 214, .15)); }
.arch-frame::before { content: ""; position: absolute; inset: 18px; border-radius: 172px 172px 18px 18px; border: 1.5px dashed rgba(26, 46, 40, .1); }
.phone-tilt { transform: rotate(-3deg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 10px 14px 10px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35; animation: chip 6s ease-in-out infinite;
}
.float-chip b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }
.float-chip small { color: var(--muted); font-size: 11.5px; }
.c-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.c-gold { background: rgba(245, 166, 35, .16); color: #C17F0A; }
.c-brick { background: rgba(228, 87, 61, .12); color: var(--brick); }
.c-purple { background: rgba(123, 91, 167, .13); color: var(--purple); }
.c-teal { background: rgba(44, 166, 164, .14); color: #1F8583; }
.chip-1 { top: 9%; inset-inline-end: -2%; animation-delay: 0s; }
.chip-2 { top: 34%; inset-inline-start: -6%; animation-delay: -1.5s; }
.chip-3 { bottom: 26%; inset-inline-end: -6%; animation-delay: -3s; }
.chip-4 { bottom: 6%; inset-inline-start: 2%; animation-delay: -4.5s; }
@keyframes chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* اكتشف شُرفة — تبويبات الخدمات الأربع */
.explore { position: relative; background: var(--white); padding-block: clamp(64px, 8vw, 104px); }
.ex-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.ex-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-top: 14px; line-height: 1.2; }
.ex-head p { max-width: 360px; color: var(--muted); font-size: 17px; }

.ex-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.ex-tab {
  --ac: var(--green);
  position: relative; display: flex; align-items: center; gap: 12px; text-align: start;
  padding: 16px 18px 20px; border-radius: 20px; background: var(--cream); overflow: hidden;
  transition: background-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.ex-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ex-tab.is-active { background: var(--green); color: var(--cream); box-shadow: var(--shadow); }
.t-ico { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); transition: background-color .3s, color .3s; }
.ex-tab.is-active .t-ico { background: var(--ac); color: #fff; }
.t-ico .ico { width: 24px; height: 24px; }
.t-txt b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1.35; }
.t-txt small { font-size: 13px; opacity: .65; }
.t-prog { position: absolute; inset-inline: 18px; bottom: 9px; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
.ex-tab.is-active .t-prog { background: rgba(255, 255, 255, .14); }
.t-prog i { display: block; height: 100%; width: 0; background: var(--ac); }
.ex-tab.is-active.is-playing .t-prog i { animation: prog var(--dur, 8s) linear forwards; }
@keyframes prog { to { width: 100%; } }

.ex-stage { position: relative; display: grid; border-radius: 32px; overflow: hidden; background: var(--green); color: var(--cream); box-shadow: var(--shadow-lg); }
.ex-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23FAF6F0' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpath d='M36 14l6.4 15.6L58 36l-15.6 6.4L36 58l-6.4-15.6L14 36l15.6-6.4z'/%3E%3Crect x='20.5' y='20.5' width='31' height='31' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"); }
.ex-panel {
  --ac: var(--gold); --ac-ink: var(--green);
  grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); min-height: 580px;
  opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility 0s .55s;
}
.ex-panel::after { content: ""; position: absolute; width: 620px; height: 620px; inset-inline-end: -160px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ac) 30%, transparent), transparent 65%); pointer-events: none; }
.ex-panel.is-active { opacity: 1; visibility: visible; transition: opacity .55s var(--ease), visibility 0s; }
.ex-panel > * { position: relative; z-index: 1; }
.ex-panel .ex-copy > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ex-panel.is-active .ex-copy > * { opacity: 1; transform: none; }
.ex-panel.is-active .ex-copy > *:nth-child(2) { transition-delay: .06s; }
.ex-panel.is-active .ex-copy > *:nth-child(3) { transition-delay: .12s; }
.ex-panel.is-active .ex-copy > *:nth-child(4) { transition-delay: .18s; }
.ex-panel.is-active .ex-copy > *:nth-child(n+5) { transition-delay: .24s; }
.ex-panel .ex-visual { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
.ex-panel.is-active .ex-visual { opacity: 1; transform: none; }

.ex-num { display: inline-block; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--ac); letter-spacing: .02em; }
.ex-copy h3 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.2; margin-block: 12px 14px; }
.ex-copy > p { color: rgba(250, 246, 240, .72); font-size: 17.5px; max-width: 460px; }
.ex-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ex-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ex-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; background: color-mix(in srgb, var(--ac) 20%, transparent); color: var(--ac); flex-shrink: 0; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ex-tags li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.ex-tags .ico { width: 16px; height: 16px; color: var(--ac); }
.ex-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 28px 12px; }
.btn-accent { background: var(--ac); color: var(--ac-ink); }
.btn-accent:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--ac) 70%, transparent); }
.btn-accent:disabled { opacity: .5; cursor: default; transform: none; }

.ex-visual { position: relative; display: grid; place-items: center; }
.ex-float { position: absolute; bottom: 14%; inset-inline-start: 4%; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--green); padding: 10px 16px 10px 12px; border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; animation: chip 6s ease-in-out infinite; }
.ex-eco { display: flex; align-items: flex-start; gap: 10px; justify-content: center; text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.ex-eco .ico { margin-top: 3px; color: var(--green); }
.ex-eco b { color: var(--green); font-weight: 600; }

/* تذكرة */
.tk { display: flex; background: var(--cream); color: var(--green); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-4deg); width: min(400px, 100%); }
.tk-main { flex: 1; padding: 24px; }
.tk-main small { font-size: 12px; opacity: .65; }
.tk-main strong { display: block; font-family: var(--font-head); font-size: 26px; margin-block: 6px 18px; }
.tk-meta { display: flex; gap: 10px; font-size: 12px; }
.tk-meta span { padding: 4px 11px; border-radius: 99px; background: var(--sand); }
.tk-stub { padding: 18px; border-inline-start: 2px dashed rgba(26, 46, 40, .2); display: grid; place-items: center; background: var(--gold); position: relative; }
.tk-stub::before, .tk-stub::after { content: ""; position: absolute; inset-inline-start: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.tk-stub::before { top: -10px; } .tk-stub::after { bottom: -10px; }
.tk-lg .mock-qr { width: 92px; }

/* الباقات */
.pkg-presets { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-top: 22px; background: rgba(255, 255, 255, .07); border-radius: 999px; }
.preset { padding: 9px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: rgba(250, 246, 240, .8); transition: background-color .25s, color .25s; }
.preset:hover { color: var(--cream); background: rgba(255, 255, 255, .06); }
.preset.is-active { background: var(--brick); color: #fff; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 520px; }
.pkg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); transition: all .25s var(--ease); }
.pkg-chip .ico { width: 18px; height: 18px; }
.pkg-chip:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.pkg-chip.on { background: var(--cream); color: var(--green); box-shadow: none; }
.pkg-chip.on .ico { color: var(--brick); }
.pkg-chip .mark { width: 16px; height: 16px; opacity: .6; }
.pkg-chip.on .mark { opacity: 1; color: var(--teal); }
.pkg-chip.locked { cursor: default; }
.pkg-hint { margin-top: 12px; font-size: 14px; color: rgba(250, 246, 240, .6); min-height: 1.6em; }

.phone-sm { width: min(268px, 72vw); }
.basket { display: flex; flex-direction: column; gap: 8px; overflow: hidden; flex: 1; }
.basket li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 9px 11px; box-shadow: var(--shadow-sm); color: var(--green); animation: popIn .45s var(--ease) both; }
.basket .b-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--art); color: #fff; flex-shrink: 0; }
.basket .b-ico .ico { width: 17px; height: 17px; }
.basket b { font-size: 12.5px; font-weight: 600; display: block; }
.basket small { font-size: 10.5px; color: var(--muted); }
.basket .b-ok { margin-inline-start: auto; color: var(--teal); }
.basket .b-ok .ico { width: 17px; height: 17px; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.basket-empty { display: none; flex: 1; place-items: center; text-align: center; color: var(--muted); font-size: 12.5px; border: 1.5px dashed var(--sand); border-radius: 16px; padding: 20px; }
.basket-empty.show { display: grid; }
.basket-foot { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; color: var(--green); }
.basket-count { font-size: 12px; color: var(--muted); text-align: center; }
.basket-count span { font-weight: 700; color: var(--brick); font-size: 15px; }
.btn-brick { background: var(--brick); color: #fff; font-size: 13.5px; padding: 10px 16px; }
.btn-brick:hover { transform: none; }

/* الجواز الرقمي */
.flow3 { display: flex; align-items: center; gap: 8px; margin-top: 26px; max-width: 440px; }
.f-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 0 0 auto; width: 92px; }
.f-step b { font-size: 13px; font-weight: 600; opacity: .55; transition: opacity .4s; }
.f-ico { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: rgba(250, 246, 240, .6); transition: all .45s var(--ease); }
.f-ico .ico { width: 25px; height: 25px; }
.f-step.active .f-ico { background: var(--gold); color: var(--green); transform: scale(1.1); box-shadow: 0 0 0 7px rgba(245, 166, 35, .15); }
.f-step.active b { opacity: 1; }
.f-step.done .f-ico { background: rgba(245, 166, 35, .2); color: var(--gold); }
.f-step.done b { opacity: .9; }
.f-line { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 30px; }
.f-line i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .9s var(--ease); }
.f-line.fill i { width: 100%; }

.phone-dark { background: linear-gradient(145deg, #3a5a51, #0b1311); }
.pp-screen { background: linear-gradient(170deg, #5F4486 0%, #3E2C5C 55%, #2A1E40 100%); color: #fff; }
.pp-book { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pp-cover { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 16px; border: 1px solid rgba(245, 166, 35, .35); background: rgba(245, 166, 35, .06); }
.pp-emblem { width: 38px; height: 38px; color: var(--gold); }
.pp-cover small { font-size: 11px; opacity: .7; display: block; }
.pp-cover strong { font-family: var(--font-head); font-size: 15px; }
.pp-points { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 11px 13px; }
.pp-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.pp-row b { font-family: var(--font-head); font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }
.pp-bar { height: 8px; background: rgba(255, 255, 255, .14); border-radius: 9px; overflow: hidden; margin-block: 8px 6px; }
.pp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFC562, var(--gold)); border-radius: inherit; transition: width .7s var(--ease); }
.pp-points small { font-size: 11px; opacity: .7; }
.pp-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding-inline: 4px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .35); position: relative; margin-bottom: 14px; transition: all .4s var(--ease); }
.stamp .ico { width: 20px; height: 20px; }
.stamp span { position: absolute; bottom: -16px; font-size: 9.5px; white-space: nowrap; opacity: .6; }
.stamp.on { border: 2px solid var(--gold); color: var(--gold); background: radial-gradient(circle, rgba(245, 166, 35, .22), rgba(245, 166, 35, .05)); transform: rotate(-6deg); animation: stampIn .55s var(--ease); }
.stamp.on span { opacity: 1; color: #fff; }
@keyframes stampIn { 0% { transform: scale(1.8) rotate(-18deg); opacity: 0; } 60% { transform: scale(.92) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.pp-reward { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 11px; border-radius: 16px; background: var(--gold); color: var(--green); transform: translateY(20px); opacity: 0; transition: all .5s var(--ease); }
.pp-reward.show { transform: none; opacity: 1; }
.pp-reward .ico { width: 28px; height: 28px; }
.pp-reward b { display: block; font-family: var(--font-head); font-size: 13.5px; }
.pp-reward small { font-size: 10.5px; }

/* سوار الأمان */
.band-figure { position: relative; margin: 0; width: min(400px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.band-bg { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(44, 166, 164, .28), rgba(44, 166, 164, .04) 70%); }
.band-bg::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; border: 1.5px dashed rgba(44, 166, 164, .4); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.band-img, .band-fallback { position: relative; width: 80%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.band-figure:not(.no-img) .band-fallback { display: none; }
.band-figure.no-img .band-img { display: none; }
.sf-notif { position: absolute; bottom: 6%; inset-inline-start: 0; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 18px; background: #fff; color: var(--green); box-shadow: var(--shadow-lg); max-width: 330px; animation: chip 6s ease-in-out infinite; }
.n-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
.sf-notif b { display: block; font-size: 13.5px; }
.sf-notif small { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; }

/* ابدأ الآن: التحميل + الخطوات (قسم داكن) */
.dark { background: var(--green); color: var(--cream); overflow: hidden; }
.dark h2, .dark h3 { color: var(--cream); }
.download { background: radial-gradient(ellipse 60% 70% at 15% 40%, rgba(245, 166, 35, .12), transparent 70%), var(--green); }
.download-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.dl-copy h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-block: 18px 18px; line-height: 1.25; }
.hl-gold { color: var(--gold); }
.dl-copy > p { font-size: 19px; color: rgba(250, 246, 240, .75); }
.stores { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; }
.store { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 12px 20px; border-radius: 16px; background: var(--cream); color: var(--green); transition: transform .25s var(--ease), box-shadow .25s; direction: ltr; justify-content: center; position: relative; }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.store-btn .ico { width: 28px; height: 28px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: start; direction: rtl; }
.store-btn small { font-size: 11.5px; opacity: .7; }
.store-btn b { font-family: var(--font-head); font-size: 18px; direction: ltr; }
.store-btn.is-pending::after { content: "قريبًا"; position: absolute; top: -9px; inset-inline-end: -8px; background: var(--gold); color: var(--green); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; font-family: var(--font-body); direction: rtl; }
.qr-box { width: 132px; height: 132px; border-radius: 16px; background: var(--cream); display: grid; place-items: center; padding: 10px; }
.qr-box img, .qr-box canvas { width: 100% !important; height: auto !important; }
.qr-wait { text-align: center; font-size: 11.5px; line-height: 1.6; color: var(--muted); border: 1.5px dashed var(--sand); border-radius: 10px; width: 100%; height: 100%; display: grid; place-items: center; }
.store-note { margin-top: 16px; }
.dl-visual { position: relative; display: grid; place-items: center; }
.dl-visual .phone { transform: rotate(4deg); }
.dl-screen { background: linear-gradient(170deg, var(--green-3), var(--green) 70%); color: var(--cream); }
.dl-splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.dl-logo { width: 84px; height: 84px; color: var(--cream); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.dl-splash strong { font-family: var(--font-head); font-size: 30px; }
.dl-splash small { opacity: .7; }
.dl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-tiles span { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 600; }
.dl-tiles .ico { color: var(--c); }


/* التذييل */
.site-footer { background: #13221E; color: rgba(250, 246, 240, .72); padding-top: 64px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.f-brand p { margin-top: 16px; max-width: 340px; line-height: 1.8; }
.site-footer h4 { color: var(--cream); font-size: 16px; margin-bottom: 16px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .ico { width: 18px; height: 18px; color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: background-color .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--gold); color: var(--green); transform: translateY(-2px); }
.soon { font-size: 13.5px; opacity: .6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }

/* زر التحميل الثابت للهاتف */
.mobile-cta {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; padding-inline-start: 18px; border-radius: 20px;
  background: rgba(26, 46, 40, .94); color: var(--cream); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta b { font-family: var(--font-head); display: block; line-height: 1.2; }
.mobile-cta small { font-size: 12px; opacity: .7; }
.mobile-cta .btn-primary { background: var(--gold); color: var(--green); }
.mobile-cta .btn-primary .ico { color: var(--green); }

/* تنبيه */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); z-index: 150; background: var(--green); color: var(--cream); padding: 12px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .35s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 5) الاستجابة ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ex-panel { grid-template-columns: 1fr .85fr; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: 76px; inset-inline: 12px; flex-direction: column; gap: 2px;
    background: var(--cream); padding: 10px; border-radius: 20px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: grid; }

  .hero-grid, .download-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-visual { min-height: 560px; }

  .ex-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ex-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
  .ex-tabs::-webkit-scrollbar { display: none; }
  .ex-tab { flex: 0 0 auto; scroll-snap-align: start; padding: 12px 16px 16px; }
  .t-ico { width: 38px; height: 38px; border-radius: 12px; }
  .t-txt small { display: none; }
  .ex-panel { grid-template-columns: 1fr; min-height: 0; }
  .ex-panel:not(.is-active) { display: none; }
  .ex-visual { padding-top: 8px; }

  .dl-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .stores { justify-content: center; }
  .mobile-cta { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-actions .btn-sm span { display: none; }
  .header-actions .btn-sm { padding: 10px; width: 44px; height: 44px; }
  .hero h1 .hl { white-space: normal; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { min-height: 500px; }
  .arch-frame { width: 300px; height: 460px; border-radius: 150px 150px 24px 24px; }
  .halo { width: 320px; height: 320px; }
  .phone { width: 250px; }
  .float-chip { padding: 8px 10px; font-size: 12px; }
  .float-chip small { display: none; }
  .c-ico { width: 30px; height: 30px; border-radius: 9px; }
  .chip-1 { inset-inline-end: 0; } .chip-2 { inset-inline-start: 0; }
  .chip-3 { inset-inline-end: 0; } .chip-4 { inset-inline-start: 0; }

  .ex-stage { border-radius: 24px; margin-inline: calc(var(--gutter) * -.5); }
  .ex-panel { padding: 26px 20px 30px; }
  .ex-ctas .btn-accent { width: 100%; }
  .flow3 { width: 100%; }
  .f-step { width: 76px; }
  .f-ico { width: 44px; height: 44px; }
  .f-step b { font-size: 12px; }
  .tk-main { padding: 18px; }
  .tk-main strong { font-size: 21px; }
  .tk-lg .mock-qr { width: 72px; }
  .ex-float { position: relative; bottom: auto; inset-inline-start: auto; margin-top: 18px; }
  .ex-visual:has(.ex-float) { gap: 0; }
  .sf-notif { position: relative; bottom: auto; margin-top: -30px; }
  .ex-eco { font-size: 13.5px; text-align: start; }

  .stores { flex-direction: column; align-items: stretch; width: 100%; }
  .store-btn { width: 100%; }
  .qr-box { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-bottom: 90px; }
}


/* التابلت: التبويبات الأربعة ظاهرة كلها بدون تمرير جانبي */
@media (min-width: 641px) and (max-width: 960px) {
  .ex-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; overflow: visible; margin-inline: 0; padding: 0; }
  .ex-tab { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px 16px; }
  .t-txt b { font-size: 14px; }
}

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

/* ---------- زر «انضم كشريك» في الترويسة ---------- */
.btn-partner { color: var(--green); background: rgba(245, 166, 35, .14); box-shadow: inset 0 0 0 1.5px rgba(245, 166, 35, .45); }
.btn-partner .ico { color: #C17F0A; }
.btn-partner:hover, .btn-partner.is-current { background: var(--gold); box-shadow: 0 10px 24px -12px rgba(245, 166, 35, .9); }
.btn-partner:hover .ico, .btn-partner.is-current .ico { color: var(--green); }
.nav-partner { display: none; }
.site-footer h4.mt { margin-top: 26px; }

@media (max-width: 960px) {
  .nav-partner { display: flex; align-items: center; gap: 8px; margin-top: 6px; background: rgba(245, 166, 35, .16); color: var(--green); font-weight: 600 !important; }
  .nav-partner .ico { color: #C17F0A; }
}
@media (max-width: 640px) {
  .header-actions .btn-partner { display: none; }
}

/* =========================================================
   تحسينات شاشة الهاتف (≤ 640px)
   نفس تصميم الكمبيوتر، بأحجام ومسافات مناسبة للهاتف
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 56px; }
  body { font-size: 15.5px; line-height: 1.7; }
  .header-inner { height: 64px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 20px; }
  html { scroll-padding-top: 72px; }
  .main-nav { top: 66px; }

  /* الواجهة الرئيسية */
  .hero { padding-top: 92px; padding-bottom: 40px; }
  .eyebrow { font-size: 12.5px; padding: 6px 12px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 34px); line-height: 1.3; margin-block: 16px 12px; }
  .lead { font-size: 15.5px; }
  .hero-ctas { margin-top: 22px; gap: 10px; width: 100%; }
  .btn-lg { padding: 13px 22px; font-size: 15.5px; }
  .hero-points { margin-top: 20px; gap: 8px 16px; font-size: 13px; }
  .hero-visual { min-height: 0; padding-block: 24px 8px; }
  .hero-visual .phone { zoom: .78; }
  .arch-frame { width: 250px; height: 390px; border-radius: 125px 125px 22px 22px; }
  .halo { width: 260px; height: 260px; }
  .float-chip { font-size: 11.5px; padding: 7px 10px; gap: 7px; border-radius: 12px; }
  .float-chip b { font-size: 12px; }
  .c-ico { width: 26px; height: 26px; border-radius: 8px; }
  .c-ico .ico { width: 15px; height: 15px; }
  .chip-2, .chip-3 { display: none; }
  .chip-1 { top: 10%; inset-inline-end: 0; }
  .chip-4 { bottom: 8%; inset-inline-start: 0; }

  /* اكتشف شُرفة: التبويبات كشبكة 2×2 بدل التمرير الجانبي */
  .explore { padding-block: 48px; }
  .ex-head { margin-bottom: 20px; }
  .ex-head h2 { font-size: clamp(26px, 7.6vw, 30px); }
  .ex-head p { font-size: 15px; }
  .ex-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; margin-inline: 0; padding: 0; margin-bottom: 12px; }
  .ex-tab { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px 14px; border-radius: 16px; }
  .ex-tab:hover { transform: none; }
  .t-ico { width: 36px; height: 36px; border-radius: 11px; }
  .t-ico .ico { width: 20px; height: 20px; }
  .t-txt b { font-size: 13.5px; }
  .t-prog { inset-inline: 14px; bottom: 6px; }

  .ex-stage { margin-inline: 0; border-radius: 22px; }
  .ex-panel { padding: 24px 18px 26px; gap: 20px; }
  .ex-panel::after { width: 360px; height: 360px; inset-inline-end: -140px; }
  .ex-num { font-size: 12.5px; }
  .ex-copy h3 { font-size: clamp(24px, 7vw, 28px); margin-block: 8px 10px; }
  .ex-copy > p { font-size: 15px; }
  .ex-steps { margin-top: 16px; gap: 8px; }
  .ex-steps li { font-size: 14.5px; }
  .ex-steps span { width: 26px; height: 26px; font-size: 12.5px; }
  .ex-tags { margin-top: 14px; }
  .ex-tags li { font-size: 12.5px; padding: 6px 10px; }
  .ex-ctas { margin-block: 20px 8px; }
  .ex-ctas .btn { flex: 1; }
  .ex-panel .fine { font-size: 12.5px; }

  /* عناصر بصرية داخل اللوحات بحجم مناسب */
  .ex-visual .phone { zoom: .78; }
  .tk { width: 100%; max-width: 300px; transform: rotate(-3deg); }
  .tk-main { padding: 16px; }
  .tk-main strong { font-size: 19px; margin-block: 4px 12px; }
  .tk-meta { gap: 6px; font-size: 11px; }
  .tk-stub { padding: 12px; }
  .tk-lg .mock-qr { width: 64px; }
  .ex-float { font-size: 13px; padding: 8px 12px 8px 10px; }
  .band-figure { width: 230px; }
  .sf-notif { margin-top: -16px; padding: 10px 12px; max-width: 100%; }
  .sf-notif small { font-size: 12px; }
  .n-ico { width: 34px; height: 34px; }

  .pkg-presets { display: flex; width: 100%; margin-top: 16px; }
  .preset { flex: 1; padding: 8px 6px; font-size: 13px; text-align: center; }
  .pkg-chips { gap: 6px; margin-top: 12px; }
  .pkg-chip { padding: 7px 11px; font-size: 13px; border-radius: 12px; }
  .pkg-hint { font-size: 13px; }

  .flow3 { gap: 4px; margin-top: 18px; }
  .f-step { width: auto; flex: 1; }
  .f-ico { width: 42px; height: 42px; border-radius: 14px; }
  .f-ico .ico { width: 20px; height: 20px; }
  .f-step b { font-size: 11.5px; }
  .f-line { flex: 0 0 18px; margin-bottom: 24px; }

  .ex-eco { display: block; font-size: 13px; text-align: center; margin-top: 16px; }
  .ex-eco .ico { display: inline-block; vertical-align: -3px; margin: 0 0 0 6px; width: 16px; height: 16px; }

  /* ابدأ الآن + التحميل */
  .dl-copy h2 { font-size: clamp(28px, 8.2vw, 32px); margin-block: 12px; }
  .dl-copy > p { font-size: 16px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; width: 100%; }
  .store { padding: 0; background: none; border: 0; }
  .store-btn { min-width: 0; width: 100%; padding: 10px 8px; gap: 8px; border-radius: 14px; }
  .store-btn .ico { width: 22px; height: 22px; }
  .store-btn small { font-size: 10px; }
  .store-btn b { font-size: 14.5px; }
  .store-note { font-size: 12.5px; }
  .dl-visual { display: none; }


  /* التذييل */
  .site-footer { padding-top: 44px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-bottom: 32px; }
  .f-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; font-size: 12.5px; }

  /* الشريط الثابت: يراعي حافة الشاشة في أجهزة آيفون الحديثة */
  .mobile-cta { inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 8px 8px 8px 14px; border-radius: 16px; }
  .mobile-cta b { font-size: 15px; }
  .mobile-cta small { font-size: 11px; }

  /* لمنع تكبير آيفون التلقائي عند الكتابة في الحقول */
  input, select, textarea { font-size: 16px !important; }
}

/* شاشات الهواتف الصغيرة جدًا */
@media (max-width: 360px) {
  .hero h1 { font-size: 27px; }
  .t-txt b { font-size: 12.5px; }
  .store-btn b { font-size: 13px; }
  .store-btn .ico { display: none; }
  .hero-visual .phone, .ex-visual .phone { zoom: .72; }
}
@media (max-width: 640px) {
  .preset { white-space: nowrap; font-size: 12.5px; padding: 8px 4px; }
}
@media (max-width: 360px) {
  .preset { font-size: 11.5px; }
}
/* زر «انضم كشريك» يبقى ظاهرًا في ترويسة الهاتف بحجم مصغّر */
@media (max-width: 640px) {
  .header-actions { gap: 6px; }
  .header-actions .btn-partner { display: inline-flex; width: auto; height: 40px; padding: 0 12px; font-size: 12.5px; gap: 5px; }
  .header-actions .btn-partner span { display: inline; }
  .header-actions .btn-partner .ico { width: 16px; height: 16px; }
  .header-actions .btn-primary.btn-sm { width: 40px; height: 40px; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 340px) {
  .header-actions .btn-partner span { display: none; }
  .header-actions .btn-partner { width: 40px; padding: 0; }
}

/* =========================================================
   الهاتف: تبويبات الخدمات في صف واحد + بطاقة أصغر
   ========================================================= */
.t-short { display: none; font-style: normal; }
@media (max-width: 640px) {
  /* صف واحد من 4 تبويبات صغيرة */
  .ex-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
  .ex-tab { padding: 8px 4px 11px; gap: 4px; border-radius: 13px; }
  .t-ico { width: 30px; height: 30px; border-radius: 9px; }
  .t-ico .ico { width: 17px; height: 17px; }
  .t-txt b { display: none; }
  .t-short { display: block; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; line-height: 1.3; }
  .t-prog { inset-inline: 10px; bottom: 5px; height: 2px; }

  /* البطاقة أصغر وأخف */
  .ex-stage { border-radius: 20px; }
  .ex-panel { padding: 18px 16px 20px; gap: 14px; }
  .ex-num { font-size: 11.5px; }
  .ex-copy h3 { font-size: 21px; line-height: 1.3; margin-block: 6px 6px; }
  .ex-copy h3 br { display: none; }
  .ex-copy > p { font-size: 13.5px; line-height: 1.65; }
  .ex-steps { margin-top: 12px; gap: 6px; }
  .ex-steps li { font-size: 13px; gap: 9px; }
  .ex-steps span { width: 22px; height: 22px; font-size: 11px; }
  .ex-tags { margin-top: 10px; gap: 6px; }
  .ex-tags li { font-size: 11.5px; padding: 5px 9px; }
  .ex-ctas { margin-block: 14px 4px; gap: 8px; }
  .ex-ctas .btn { padding: 10px 16px; font-size: 14px; }
  .ex-panel .fine { font-size: 11.5px; line-height: 1.55; }

  /* العناصر البصرية داخل البطاقة */
  .ex-visual { padding-top: 0; }
  .ex-visual .phone { zoom: .64; }
  .tk { max-width: 250px; }
  .tk-main { padding: 12px 14px; }
  .tk-main small { font-size: 10.5px; }
  .tk-main strong { font-size: 16px; margin-block: 2px 8px; }
  .tk-meta span { padding: 2px 8px; font-size: 10.5px; }
  .tk-stub { padding: 10px; }
  .tk-lg .mock-qr { width: 52px; }
  .ex-float { margin-top: 12px; font-size: 12px; padding: 6px 10px 6px 8px; }
  .ex-float .c-ico { width: 24px; height: 24px; }
  .band-figure { width: 180px; }
  .sf-notif { margin-top: -10px; padding: 8px 10px; gap: 9px; border-radius: 14px; }
  .sf-notif b { font-size: 12px; }
  .sf-notif small { font-size: 11px; }
  .n-ico { width: 30px; height: 30px; border-radius: 10px; }
  .pkg-presets { margin-top: 12px; }
  .pkg-chip { padding: 6px 9px; font-size: 12px; }
  .pkg-chip .ico { width: 15px; height: 15px; }
  .flow3 { margin-top: 12px; }
  .f-ico { width: 36px; height: 36px; border-radius: 12px; }
  .f-ico .ico { width: 18px; height: 18px; }
  .f-step b { font-size: 11px; }
  .f-line { margin-bottom: 22px; }
}
@media (max-width: 360px) {
  .t-short { font-size: 11.5px; }
  .ex-copy h3 { font-size: 19px; }
}
@media (max-width: 640px) {
  #tab-packages .ex-visual { display: none; }
}

/* الصفحة الحالية في القائمة (مثل «الفعاليات» داخل صفحة فعالية) */
.main-nav a.is-current { background: rgba(26, 46, 40, .07); font-weight: 600; }

/* =========================================================
   الجواز الرقمي — بطاقة ولاء لكل شريك + يومياتي
   ========================================================= */
.pp-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.pp-tabs button { flex: 1; padding: 6px 4px; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); transition: background-color .25s, color .25s; }
.pp-tabs button:hover { color: #fff; }
.pp-tabs button.is-active { background: var(--gold); color: var(--green); }

.pp-card { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.pp-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pp-card-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brick); color: #fff; flex-shrink: 0; }
.pp-card-ico .ico { width: 18px; height: 18px; }
.pp-card-head b { display: block; font-size: 13px; }
.pp-card-head small { font-size: 10.5px; opacity: .7; }

.pp-slots { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; }
.pp-slot { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .45); font-size: 12px; font-weight: 600; transition: all .35s var(--ease); }
.pp-slot .ico { width: 16px; height: 16px; }
.pp-slot.on { border: 2px solid var(--gold); color: var(--gold); background: radial-gradient(circle, rgba(245, 166, 35, .25), rgba(245, 166, 35, .05)); animation: stampIn .5s var(--ease); }
.pp-slot.is-reward { border-radius: 12px; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: center; line-height: 1.2; padding: 2px; border: 1.5px solid rgba(245, 166, 35, .45); background: rgba(245, 166, 35, .08); color: #fff; }
.pp-slot.is-reward b { font-size: 10.5px; font-weight: 700; }
.pp-slot.is-reward small { font-size: 8.5px; opacity: .7; font-weight: 500; }
.pp-slot.is-reward.ready { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, .25); animation: ppPulse 1.6s ease-in-out infinite; }
.pp-slot.is-reward.used { background: var(--gold); color: var(--green); border-color: var(--gold); }
@keyframes ppPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(245, 166, 35, .25); } 50% { box-shadow: 0 0 0 6px rgba(245, 166, 35, .12); } }
.pp-next { display: block; margin-top: 12px; font-size: 11px; line-height: 1.5; opacity: .85; }

.pp-journal { display: flex; flex-direction: column; gap: 8px; }
.pj-list { display: flex; flex-direction: column; gap: 8px; max-height: 236px; overflow: hidden; }
.pj-entry { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .08); animation: popIn .45s var(--ease) both; }
.pj-photo { width: 58px; aspect-ratio: 1; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, var(--a), var(--b)); }
.pj-photo .ico { width: 20px; height: 20px; }
.pj-text b { display: block; font-size: 12px; }
.pj-text p { font-size: 11px; line-height: 1.45; margin-block: 2px 4px; opacity: .85; }
.pj-feel { display: inline-block; font-size: 9.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: rgba(245, 166, 35, .2); color: var(--gold); }
.pj-add { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .3); font-size: 11px; opacity: .8; }
.pj-add .ico { width: 15px; height: 15px; }
.pp-journal[hidden], .pp-card[hidden] { display: none; }
