/* =========================================
   ودايا — ملف التنسيق الرئيسي
   ========================================= */

/* ===== ألوان الهوية (غيّرها هنا وتتغير في كل الموقع) ===== */
:root {
  --maroon: #7a1a2c;   /* العنابي الأساسي */
  --cream:  #fff6e6;   /* الكريمي (الخلفية) */
  --copper: #c47a4a;   /* لون الكبسولة */
  --copper-ink: #9a4f22; /* نفس اللون بس أغمق للكتابة (عشان يكون واضح ويقرا بسهولة) */
  --brown:  #a0602f;   /* البني (قاعدة الكبسولة و WADAYA) */
  --gold:   #f2b33d;   /* الذهبي */
  --green:  #4e9f5d;   /* أخضر الورق */
  --white:  #ffffff;

  --font-title: "Lalezar", "Tajawal", sans-serif;  /* للعناوين الكبيرة */
  --font-body:  "Tajawal", sans-serif;             /* لباقي النص */

  --radius: 24px;
  --max-width: 1120px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);  /* حركة فيها نطة خفيفة */
}

/* ===== أساسيات ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--maroon);
  line-height: 1.7;
}

/* نمنع السكرول وقت الشاشة الافتتاحية */
body.splash-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.3;
}

/* ===== الحد المثلثات الذهبية (نستخدمه في أكثر من مكان) ===== */
.zigzag {
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14 L14 0 L28 14Z' fill='%23f2b33d'/%3E%3C/svg%3E") repeat-x bottom / 28px 14px;
}


/* =========================================
   ١) الشاشة الافتتاحية
   ========================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.9s cubic-bezier(.76, 0, .24, 1);
}

/* لما تضغط "ادخل": الشاشة تطلع لفوق مثل الستارة */
.splash.is-leaving {
  transform: translateY(-100%);
}

.splash.is-hidden {
  display: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.splash.is-leaving .splash-content {
  opacity: 0;
  transform: scale(0.92);
}

/* ----- الكبسولة ----- */
.splash-icon {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  overflow: visible;
}

/* خلي نقطة الدوران لكل جزء في مكانه الصحيح */
.splash-icon .capsule,
.splash-icon .stem,
.splash-icon .leaf {
  transform-box: fill-box;
}

/* الكبسولة تطيح من فوق وتنط */
.splash-icon .capsule {
  transform-origin: 50% 100%;
  animation: capsule-drop 0.9s var(--ease-bounce) 0.2s both;
}

/* الساق تطلع من الكبسولة */
.splash-icon .stem {
  transform-origin: 50% 100%;
  animation: grow-up 0.5s ease-out 1s both;
}

/* الورق ينفتح */
.splash-icon .leaf-left {
  transform-origin: 100% 100%;
  animation: leaf-open 0.6s var(--ease-bounce) 1.3s both;
}
.splash-icon .leaf-right {
  transform-origin: 0% 100%;
  animation: leaf-open 0.6s var(--ease-bounce) 1.4s both,
             leaf-sway 3s ease-in-out 2.2s infinite;
}

/* اللمعة تنرسم */
.splash-icon .shine {
  stroke-dasharray: 120;
  animation: draw-line 0.7s ease-out 1.1s both;
}

/* ----- الكلام والزر ----- */
.splash-wordmark {
  width: clamp(170px, 20vw, 230px);
  margin-top: 20px;
  animation: fade-up 0.7s ease-out 1.6s both;
}

.splash-tagline {
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  margin-top: 14px;
  animation: fade-up 0.7s ease-out 1.85s both;
}

.splash-btn {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  background: transparent;
  border: 2px solid var(--cream);
  border-radius: 999px;
  padding: 8px 36px;
  cursor: pointer;
  animation: fade-up 0.7s ease-out 2.1s both;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.splash-btn:hover,
.splash-btn:focus-visible {
  background: var(--cream);
  color: var(--maroon);
  transform: translateY(-3px);
  outline: none;
}

/* ----- المسرح: اللوقو في جهة ووُدّي في جهة ----- */
.splash-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 90px);
  padding: 0 24px;
}

/* ----- وُدّي ----- */
.wuddi-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 100%;
  transition: transform 0.4s var(--ease-bounce);
}

.splash-wuddi {
  width: auto;
  height: clamp(260px, 50vh, 440px);
  transform-origin: 50% 100%;
  /* يطلع من تحت وينط، وبعدها ينط نطة صغيرة كل شوي */
  animation: wuddi-pop 1s var(--ease-bounce) 1.7s both,
             wuddi-hop 3.2s ease-in-out 3.2s infinite;
}

/* ظل تحت رجوله يصغر لما ينط */
.wuddi-shadow {
  width: 60%;
  height: 16px;
  margin-top: -10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  animation: fade-in 0.5s ease-out 2.2s both,
             shadow-hop 3.2s ease-in-out 3.2s infinite;
}

/* فقاعة الكلام */
.wuddi-bubble {
  position: absolute;
  top: -8px;
  right: 72%;
  white-space: nowrap;
  background: var(--cream);
  color: var(--maroon);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  padding: 10px 18px;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform-origin: 100% 100%;
  animation: bubble-pop 0.5s var(--ease-bounce) 2.6s both,
             bubble-bob 2.5s ease-in-out 3.2s infinite;
}

/* لما تأشر على الزر، وُدّي يميل عليه */
.splash:has(.splash-btn:hover) .wuddi-wrap {
  transform: rotate(-7deg) translateX(-10px);
}

/* لما تضغط "ادخل": يفرح وينط نطة كبيرة */
.wuddi-wrap.cheer .splash-wuddi {
  animation: wuddi-cheer 0.6s var(--ease-bounce) both;
}
.wuddi-wrap.cheer .wuddi-bubble { animation: none; opacity: 0; transition: opacity 0.2s; }

.splash.is-leaving .wuddi-wrap {
  transform: translateY(120%);
  transition: transform 0.5s ease-in;
}

/* الزر ينبض عشان يلفت الانتباه */
.splash-btn {
  animation: fade-up 0.7s ease-out 2.1s both, btn-pulse 2s ease-out 3s infinite;
}

@keyframes wuddi-pop {
  0%   { transform: translateY(120%) scale(0.8); opacity: 0; }
  60%  { transform: translateY(-6%) scale(1.04, 0.96); opacity: 1; }
  80%  { transform: translateY(2%) scale(0.98, 1.02); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes wuddi-hop {
  0%, 70%, 100% { transform: translateY(0) scale(1, 1); }
  76% { transform: translateY(0) scale(1.06, 0.94); }
  84% { transform: translateY(-9%) scale(0.97, 1.04) rotate(-3deg); }
  92% { transform: translateY(0) scale(1.04, 0.96); }
}
@keyframes shadow-hop {
  0%, 70%, 100% { transform: scale(1); opacity: 1; }
  84% { transform: scale(0.7); opacity: 0.5; }
}
@keyframes wuddi-cheer {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-16%) scale(1.08) rotate(4deg); }
  100% { transform: translateY(0) scale(1.05); }
}
@keyframes bubble-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes bubble-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 246, 230, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(255, 246, 230, 0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ----- الحد الذهبي تحت ----- */
.splash .zigzag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

/* ----- بذور تطير في الخلفية ----- */
.splash-seeds span {
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: seed-float 9s linear infinite;
}
.splash-seeds span:nth-child(1) { left: 8%;  animation-delay: 0s;   }
.splash-seeds span:nth-child(2) { left: 20%; animation-delay: 2.5s; }
.splash-seeds span:nth-child(3) { left: 33%; animation-delay: 5s;   }
.splash-seeds span:nth-child(4) { left: 47%; animation-delay: 1.2s; }
.splash-seeds span:nth-child(5) { left: 60%; animation-delay: 6.5s; }
.splash-seeds span:nth-child(6) { left: 72%; animation-delay: 3.8s; }
.splash-seeds span:nth-child(7) { left: 85%; animation-delay: 7.7s; }
.splash-seeds span:nth-child(8) { left: 94%; animation-delay: 4.4s; }


/* ----- الحركات ----- */
@keyframes capsule-drop {
  0%   { transform: translateY(-140%) scale(1, 1);    opacity: 0; }
  40%  { opacity: 1; }
  70%  { transform: translateY(0) scale(1.08, 0.9); }
  85%  { transform: translateY(-6%) scale(0.97, 1.04); }
  100% { transform: translateY(0) scale(1, 1);        opacity: 1; }
}

@keyframes grow-up {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes leaf-open {
  from { transform: scale(0) rotate(-20deg); }
  to   { transform: scale(1) rotate(0); }
}

@keyframes leaf-sway {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(-8deg); }
}

@keyframes draw-line {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wuddi-in {
  from { transform: translateX(200%) rotate(10deg); }
  to   { transform: translateX(0) rotate(0); }
}

@keyframes wuddi-idle {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(-3deg); }
}

@keyframes seed-float {
  0%   { transform: translateY(0) rotate(0);        opacity: 0; }
  15%  { opacity: 0.35; }
  85%  { opacity: 0.35; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}


/* ----- الجوال ----- */
@media (max-width: 700px) {
  .splash-content { padding: 12px; }
  .splash-stage {
    flex-direction: column;
    gap: 6px;
  }
  .splash-icon { width: 96px; }
  .splash-wordmark { width: 150px; margin-top: 10px; }
  .splash-wuddi { height: 30vh; }
  .wuddi-bubble { top: -6px; right: 58%; width: 140px; white-space: normal; text-align: center; font-size: 0.85rem; }
}


/* =========================================
   أشياء مشتركة بين كل الصفحات
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  color: var(--copper-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-top: 4px;
}

/* ----- الأزرار ----- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), background 0.25s, color 0.25s, box-shadow 0.25s, opacity 0.7s;
}
.btn:hover { transform: translateY(-3px); }

.btn-maroon { background: var(--maroon); color: var(--cream); }
.btn-maroon:hover { box-shadow: 0 8px 18px rgba(122, 26, 44, 0.3); }

.btn-gold { background: var(--gold); color: var(--maroon); }
.btn-gold:hover { box-shadow: 0 8px 18px rgba(242, 179, 61, 0.35); }

.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--maroon); }

/* ----- حركة الظهور مع السكرول ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.reveal-side { transform: translateX(80px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----- الخط الملون (فاصل) ----- */
.stripes {
  height: 20px;
  background: repeating-linear-gradient(90deg,
    var(--copper) 0 14px,  var(--cream) 14px 20px,
    var(--gold)   20px 26px, var(--cream) 26px 32px,
    var(--maroon) 32px 46px, var(--cream) 46px 52px);
}


/* =========================================
   القائمة (الهيدر)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(122, 26, 44, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.header-logo img {
  height: 56px;
  width: auto;
  transition: transform 0.3s var(--ease-bounce);
}
.header-logo:hover img { transform: rotate(-4deg) scale(1.05); }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  position: relative;
  font-weight: 700;
  padding-block: 4px;
  transition: color 0.2s;
}
/* خط تحت الرابط يكبر لما تأشر عليه */
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--copper-ink); }

.header-btn { padding: 10px 26px; }


/* =========================================
   الرئيسية: الواجهة (Hero)
   ========================================= */
.hero {
  position: relative;
  background: var(--maroon);
  color: var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 48px;
  min-height: 520px;
}

.hero-text {
  flex: 1;
  align-self: center;
  padding-bottom: 60px;
}
.hero-text .eyebrow { color: var(--gold); }

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 8px 0 12px;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* القوس الكريمي اللي فيه اللوقو */
.hero-arch {
  position: relative;
  width: min(380px, 40%);
  aspect-ratio: 380 / 470;
  background: var(--cream);
  border-radius: 999px 999px 0 0;
  display: grid;
  place-items: center;
  padding: 70px 60px 30px;
  flex-shrink: 0;
}
.hero-arch::before {             /* الخط النحاسي الداخلي */
  content: "";
  position: absolute;
  inset: 10px 10px 0;
  border: 2px solid var(--copper);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.hero-arch img {
  width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

.hero .zigzag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

/* حركات الواجهة أول ما تفتح الصفحة */
.hero-text > * { animation: fade-up 0.8s ease-out both; }
.hero-text > :nth-child(1) { animation-delay: 0.1s; }
.hero-text > :nth-child(2) { animation-delay: 0.25s; }
.hero-text > :nth-child(3) { animation-delay: 0.4s; }
.hero-text > :nth-child(4) { animation-delay: 0.55s; }
.hero-arch { animation: arch-rise 1s var(--ease-bounce) 0.3s both; }

/* ما تبدأ الحركات إلا بعد ما تسكر الشاشة الافتتاحية */
body.splash-open .hero-text > *,
body.splash-open .hero-arch,
body.splash-open .site-header {
  animation-play-state: paused;
}
.site-header { animation: slide-down 0.6s ease-out both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes arch-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes slide-down {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}


/* =========================================
   ماذا في الكبسولة؟
   ========================================= */
.layers {
  padding: 72px 0;
  text-align: center;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.layer-card {
  background: var(--white);
  border: 1px solid #f1dcc0;
  border-radius: 140px 140px var(--radius) var(--radius);
  padding: 28px 20px 30px;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, opacity 0.7s ease-out;
}
.layer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(122, 26, 44, 0.12);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  transition: transform 0.4s var(--ease-bounce);
}
.layer-card:hover .num { transform: rotate(360deg) scale(1.1); }

.layer-card h3 { font-size: 1.5rem; }
.layer-card p  { opacity: 0.85; }


/* =========================================
   وُدّي يرحب فيك
   ========================================= */
.welcome {
  padding: 56px 0 0;
  overflow: hidden;
}

.welcome-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 60px;
}

.welcome-wuddi {
  width: min(280px, 40%);
  transform-origin: 50% 100%;
}
.welcome-wuddi.is-visible {
  animation: wuddi-idle 3.5s ease-in-out 1s infinite;
}

.welcome-text {
  padding-bottom: 72px;
}

.bubble {
  position: relative;
  display: inline-block;
  background: var(--gold);
  padding: 8px 18px;
  border-radius: 16px 16px 4px 16px;
  font-size: 1.15rem;
  font-weight: 500;
}

.welcome-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 10px 0 4px;
}
.welcome-text p { margin-bottom: 20px; }


/* =========================================
   الفوتر
   ========================================= */
.site-footer {
  background: var(--maroon);
  color: var(--cream);
  text-align: center;
  padding: 32px 24px;
}
.footer-logo {
  height: 70px;
  width: auto;
  margin: 0 auto 12px;
}
.site-footer p { font-size: 0.9rem; opacity: 0.9; }
.site-footer a:hover { color: var(--gold); }


/* =========================================
   صفحة الفكرة
   ========================================= */

/* ----- المقدمة ----- */
.idea-intro {
  background: var(--maroon);
  color: var(--cream);
  overflow: hidden;
}
.idea-intro-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
}
.idea-intro-text { padding-bottom: 64px; max-width: 560px; }
.idea-intro-text .eyebrow { color: var(--gold); }
.idea-intro-text h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 6px 0 14px; }
.idea-lead { font-size: 1.15rem; opacity: 0.9; }
.idea-intro-text > * { animation: fade-up 0.8s ease-out both; }
.idea-intro-text > :nth-child(2) { animation-delay: 0.15s; }
.idea-intro-text > :nth-child(3) { animation-delay: 0.3s; }

.idea-wuddi {
  height: clamp(240px, 34vw, 360px);
  width: auto;
  margin-bottom: -6px;
  transform-origin: 50% 100%;
  animation: wuddi-pop 1s var(--ease-bounce) 0.4s both,
             wuddi-think 4s ease-in-out 1.6s infinite;
}
@keyframes wuddi-think {
  0%, 100% { transform: rotate(0); }
  30%      { transform: rotate(-4deg); }
  60%      { transform: rotate(2deg); }
}

/* ----- داخل الكبسولة ----- */
.inside { padding: 72px 0; text-align: center; }

.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 36px;
  text-align: start;
}

.layers-art svg {
  width: min(340px, 100%);
  margin-inline: auto;
  overflow: visible;
}
.layers-art .ring {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s var(--ease-bounce), filter 0.4s, opacity 0.4s;
}
.layers-art .clay-dots { transition: opacity 0.4s; }

/* الطبقة المختارة تكبر شوي، والباقي يخف */
.layers-art.focus-1 .ring:not(.ring-1),
.layers-art.focus-2 .ring:not(.ring-2),
.layers-art.focus-3 .ring:not(.ring-3) { opacity: 0.45; }
.layers-art.focus-1 .ring-1,
.layers-art.focus-2 .ring-2,
.layers-art.focus-3 .ring-3 { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(242, 179, 61, 0.8)); }
.layers-art:not(.focus-3) .clay-dots { opacity: 0.5; }

.steps { list-style: none; display: grid; gap: 14px; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease-bounce), box-shadow 0.3s, opacity 0.7s ease-out;
}
.step .num { flex-shrink: 0; margin: 0; }
.step h3 { font-size: 1.4rem; }
.step p  { opacity: 0.85; }
.step.is-active {
  border-color: var(--gold);
  transform: translateX(-8px);
  box-shadow: 0 10px 24px rgba(122, 26, 44, 0.1);
}
.step.is-active .num { transform: scale(1.15); }

/* ----- الرحلة ----- */
.journey { padding: 72px 0; text-align: center; }

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* الخط المنقط اللي يربط المراحل */
.journey-line {
  position: absolute;
  top: 70px;
  right: 12%;
  left: 12%;
  border-top: 4px dashed var(--copper);
  opacity: 0.5;
}

.stage { position: relative; z-index: 1; }
.stage-art {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #f1dcc0;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-bounce), border-color 0.3s;
}
.stage-art svg { width: 100px; }
.stage:hover .stage-art { transform: translateY(-8px) rotate(-4deg); border-color: var(--gold); }
.stage h3 { font-size: 1.5rem; }
.stage p  { opacity: 0.85; }

/* المطر ينزل، والورق يتمايل */
.rain { animation: rain-fall 1.4s linear infinite; }
@keyframes rain-fall {
  from { transform: translateY(-6px); opacity: 0; }
  30%  { opacity: 1; }
  to   { transform: translateY(26px); opacity: 0; }
}
.sprout-leaf {
  transform-box: fill-box;
  transform-origin: 100% 100%;
  animation: leaf-sway 2.6s ease-in-out infinite;
}

/* ----- الدعوة ----- */
.idea-cta {
  background: #fbe9cf;
  overflow: hidden;
}
.idea-cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 56px;
  padding-top: 40px;
}
.idea-cta-inner > div { padding-bottom: 60px; }
.idea-cta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 10px 0 18px; }
.idea-cta-wuddi { height: clamp(220px, 28vw, 300px); width: auto; }

/* ----- صفحة الفكرة في الجوال ----- */
@media (max-width: 760px) {
  .idea-intro-inner { flex-direction: column; align-items: center; text-align: center; padding-top: 32px; gap: 8px; }
  .idea-intro-text { padding-bottom: 0; }
  .idea-wuddi { height: 220px; }

  .inside-grid { grid-template-columns: 1fr; gap: 28px; }
  .layers-art svg { width: 230px; }

  .journey-track { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .journey-line { display: none; }
  .stage-art { width: 110px; height: 110px; }
  .stage-art svg { width: 78px; }

  .idea-cta-inner { flex-direction: column-reverse; align-items: center; text-align: center; gap: 0; }
  .idea-cta-inner > div { padding-bottom: 8px; }
  .idea-cta .hero-buttons { justify-content: center; }
  .idea-cta-wuddi { height: 200px; }
}


/* =========================================
   صفحة خريطة عُمان
   ========================================= */
.map-page { padding: 48px 0 72px; }

.map-side { display: flex; flex-direction: column; gap: 20px; }
.map-head { text-align: start; }
.map-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.map-sub { opacity: 0.85; margin-bottom: 16px; }
.map-head > * { animation: fade-up 0.7s ease-out both; }
.map-head > :nth-child(2) { animation-delay: 0.1s; }
.map-head > :nth-child(3) { animation-delay: 0.2s; }
.map-head > :nth-child(4) { animation-delay: 0.3s; }

/* ----- الفلاتر ----- */
.filters { display: inline-flex; gap: 8px; background: var(--white); padding: 6px; border-radius: 999px; box-shadow: 0 4px 14px rgba(122,26,44,.08); }
.filter {
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  color: var(--maroon); background: transparent; border: 0;
  padding: 8px 20px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.25s, color 0.25s;
}
.filter:hover { background: #fbe9cf; }
.filter.is-on { background: var(--maroon); color: var(--cream); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px var(--cream); }
.dot-sidr { background: var(--maroon); box-shadow: 0 0 0 2px var(--cream); }
.dot-ghaf { background: var(--green);  box-shadow: 0 0 0 2px var(--cream); }

/* ----- التخطيط: الخريطة + البطاقة ----- */
.map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 32px;
  align-items: start;
}

/* ----- الخريطة ----- */
.map-panel {
  position: relative;
  background: #d6e9ea;          /* لون البحر */
  border-radius: 32px;
  aspect-ratio: 500 / 600;
  max-height: calc(100vh - 120px);
  min-height: 520px;
  position: sticky; top: 100px;
  margin-inline: auto;
  width: 100%;
  overflow: hidden;
}

/* المسرح بنفس مقاس رسمة الخريطة بالضبط (500 × 668)،
   عشان نسبة الدبوس (x%, y%) تطلع في نفس المكان على الرسمة */
.map-stage {
  position: absolute;
  inset: 24px 0;
  margin: 0 auto;
  height: calc(100% - 48px);
  aspect-ratio: 500 / 668;
}
.oman { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* الدول اللي حولنا: لون باهت عشان يبان إنها مو عُمان */
.oman-shape { fill-rule: evenodd; }
.land-other {
  fill-rule: evenodd;
  fill: #ece3d4;
  stroke: #c9b79c;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  stroke-linejoin: round;
}
.map-label {
  paint-order: stroke;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  fill: #a8957c;
}
.madha-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  fill: var(--brown);
  opacity: 0;
  animation: fade-in .5s ease-out 2.4s forwards;
}
.madha-fill { fill: var(--copper); fill-rule: evenodd; opacity: 0; animation: fade-in .5s ease-out 1.9s forwards; }
.madha-ring { fill: none; stroke: var(--brown); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0; animation: fade-in .5s ease-out 2.4s forwards; }
.madha-line { stroke: var(--brown); stroke-width: 1.2; fill: none; opacity: 0; animation: fade-in .5s ease-out 2.4s forwards; }
.sea-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  fill: #6f9da3;
  letter-spacing: 1px;
}

/* حدود عُمان تنرسم بالقلم، وبعدها تتعبى باللون */
.oman-shape {
  fill: var(--copper);
  fill-opacity: 0;
  stroke: var(--brown);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-map 1.8s ease-in-out 0.2s forwards, fill-map 0.8s ease-out 1.7s forwards;
}
@keyframes draw-map { to { stroke-dashoffset: 0; } }
@keyframes fill-map { to { fill-opacity: 1; stroke: var(--cream); stroke-width: 1.5; } }

/* الدبابيس فوق الخريطة، ومكانها نفس مكان رسمة عُمان */
.pins { position: absolute; inset: 0; }

.pin {
  position: absolute;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  animation: pin-drop 0.6s var(--ease-bounce) both;
  transition: transform 0.3s var(--ease-bounce), opacity 0.3s, filter 0.3s;
  z-index: 2;
}
.pin.tree-ghaf { background: var(--green); }
.pin.tree-both { background: linear-gradient(90deg, var(--maroon) 50%, var(--green) 50%); }
.pin.tree-none { background: var(--brown); }
.pin.not-sure  { border-style: dashed; }

/* حلقة تنبض حول كل دبوس */
.pin::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid currentColor; color: var(--gold);
  animation: pin-pulse 2.2s ease-out infinite;
  animation-delay: inherit;
}
.pin:hover, .pin:focus-visible { transform: scale(1.25); outline: none; z-index: 3; }

/* اسم المكان يطلع لما تأشر */
.pin::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(.8);
  background: var(--maroon); color: var(--cream);
  font-size: 0.8rem; white-space: nowrap;
  padding: 3px 10px; border-radius: 99px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.pin:hover::after, .pin.is-active::after { opacity: 1; transform: translateX(-50%) scale(1); }

.pin.is-active { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(242,179,61,.6); z-index: 4; }
.pin.is-dim { opacity: 0.25; transform: scale(0.7); filter: grayscale(1); }

@keyframes pin-drop {
  from { transform: translateY(-60px) scale(.6); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes pin-pulse {
  0%   { transform: scale(1); opacity: .9; }
  100% { transform: scale(2); opacity: 0; }
}

/* وُدّي الصغير اللي يمشي على الخريطة */
.map-wuddi {
  position: absolute;
  width: 64px; height: auto;
  margin: -96px 0 0 -32px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: left 0.9s cubic-bezier(.5,0,.3,1), top 0.9s cubic-bezier(.5,0,.3,1), opacity .4s;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.2));
}
.map-wuddi.is-ready { opacity: 1; }
.map-wuddi.is-walking { animation: wuddi-walk 0.3s ease-in-out infinite; }
@keyframes wuddi-walk {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-8px) rotate(4deg); }
}

/* ----- بطاقة المكان ----- */
.place-card {
  background: var(--white);
  border-radius: 28px;
  padding: 22px 22px 24px;
  border: 2px solid #f1dcc0;
  box-shadow: 0 14px 30px rgba(122,26,44,.08);
  animation: fade-up 0.7s ease-out 0.4s both;
}
.place-card.is-changing .pc-anim { animation: card-swap 0.45s ease-out; }
@keyframes card-swap {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pc-top { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 10px; }
.pc-wuddi { height: 130px; width: auto; flex-shrink: 0; }
.pc-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); font-weight: 700; font-size: .9rem;
}
.place-card h2 { font-size: 2rem; margin: 2px 0 4px; }

.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-block; padding: 2px 14px; border-radius: 99px; font-weight: 700; font-size: .85rem; color: #fff; }
.tag-sidr { background: var(--maroon); }
.tag-ghaf { background: var(--green); }
.tag-both { background: linear-gradient(90deg, var(--maroon), var(--green)); }
.tag-none { background: var(--brown); }
.tag-check { background: var(--gold); color: var(--maroon); margin-inline-start: 4px; }

.pc-say {
  position: relative;
  background: var(--gold);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pc-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-bottom: 12px; }
.pc-info dt { color: var(--copper-ink); font-weight: 700; }
.pc-fact { background: #fbf3e6; border-radius: 14px; padding: 10px 14px; font-size: .95rem; margin-bottom: 16px; }
.pc-btn { width: 100%; text-align: center; }
.pc-btn[hidden] { display: none; }
.pc-btn.is-soon {
  background: #efe3d2; color: #9a7b63;
  border: 2px dashed #c9a988;
  cursor: not-allowed; box-shadow: none; transform: none;
}
.pc-note { font-size: .85rem; text-align: center; margin-top: 8px; color: var(--copper-ink); font-weight: 700; }

/* ----- كل الأماكن ----- */
.all-places { margin-top: 56px; text-align: center; }
.place-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.place-chip {
  width: 100%; height: 100%;
  font-family: var(--font-body); color: var(--maroon);
  background: var(--white); border: 2px solid transparent;
  border-radius: 18px; padding: 12px 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .25s, transform .25s var(--ease-bounce);
}
.place-chip b { font-size: 1.05rem; }
.place-chip span { font-size: .8rem; opacity: .75; line-height: 1.5; }
.place-chip:hover, .place-chip.is-active { border-color: var(--gold); transform: translateY(-4px); }

/* ----- قريباً ----- */
.soon {
  margin-top: 56px;
  display: flex; align-items: center; gap: 28px;
  border: 3px dashed var(--copper);
  border-radius: 32px;
  padding: 24px 32px;
  background: #fbf3e6;
}
.soon img { height: 150px; width: auto; flex-shrink: 0; }
.soon h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 6px 0; }
.soon-badge { background: var(--maroon); color: var(--cream); font-weight: 700; padding: 3px 14px; border-radius: 99px; font-size: .85rem; }

/* ----- الخريطة في الجوال ----- */
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; gap: 20px; }
  .map-side { display: contents; }          /* العنوان، بعدها الخريطة، بعدها البطاقة */
  .map-head  { order: 0; text-align: center; }
  .map-panel { order: 1; position: relative; top: 0; max-height: none; min-height: 0; border-radius: 24px; }
  .map-stage { inset: 14px 0; height: calc(100% - 28px); }
  .place-card { order: 2; }
  .place-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .map-page { padding-top: 28px; }
  .filter { padding: 7px 14px; }
  .pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: .72rem; }
  .map-wuddi { width: 46px; margin: -70px 0 0 -23px; }
  .pc-wuddi { height: 100px; }
  .place-card h2 { font-size: 1.7rem; }
  .soon { flex-direction: column; text-align: center; padding: 22px 18px; gap: 10px; }
  .soon img { height: 120px; }
}


/* =========================================
   صفحة التواصل
   ========================================= */
.contact-hero { position: relative; background: var(--maroon); color: var(--cream); overflow: hidden; }
.contact-hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-top: 48px;
}
.contact-hero-text { padding-bottom: 64px; }
.contact-hero-text .eyebrow { color: var(--gold); }
.contact-hero-text h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 4px 0 10px; }
.contact-lead { font-size: 1.15rem; opacity: .9; max-width: 480px; }
.contact-hero-text > * { animation: fade-up .55s ease-out both; }
.contact-hero-text > :nth-child(2) { animation-delay: .15s; }
.contact-hero-text > :nth-child(3) { animation-delay: .3s; }
.contact-wuddi {
  height: clamp(220px, 28vw, 320px); width: auto; margin-bottom: 4px;
  transform-origin: 50% 100%;
  animation: wuddi-pop 1s var(--ease-bounce) .3s both, wuddi-hop 3.2s ease-in-out 1.6s infinite;
}
.contact-hero .zigzag { position: absolute; left: 0; right: 0; bottom: 0; }

/* ----- بطاقة إنستقرام ----- */
.insta-card {
  display: flex; align-items: center; gap: 24px;
  background: var(--white);
  border-radius: 32px;
  padding: 26px 30px;
  margin-top: -20px;
  position: relative; z-index: 3;
  box-shadow: 0 18px 40px rgba(122,26,44,.12);
}
.insta-icon {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 24px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f2b33d, #e1306c 55%, #7a1a2c);
  transition: transform .4s var(--ease-bounce);
}
.insta-card:hover .insta-icon { transform: rotate(-8deg) scale(1.08); }
.insta-text { flex: 1; }
.insta-text h2 { font-size: 1.8rem; }
.insta-text p { opacity: .85; }
.handle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; color: var(--maroon);
  background: #fbf3e6; border: 2px dashed var(--copper); border-radius: 14px;
  padding: 4px 14px; margin: 4px 0 8px; cursor: pointer;
  transition: background .2s, transform .2s var(--ease-bounce);
}
.handle:hover { background: #fbe9cf; transform: translateY(-2px); }
.copy-hint { font-size: .8rem; background: var(--copper-ink); color: #fff; border-radius: 99px; padding: 1px 10px; }
.insta-btn { flex-shrink: 0; font-size: 1.1rem; padding: 14px 34px; }
.mail-card { margin-top: 16px; }
.mail-icon { background: var(--maroon); }
.mail-card .handle { font-size: 1.15rem; }
.wa-icon { background: #25d366; }
.wa-btn { background: #1a7f45; color: #fff; border-color: #1a7f45; }
.wa-btn:hover { background: #1ebe5b; color: #fff; }

/* ----- كيف تطلب ----- */
.how-order { padding: 64px 0 24px; text-align: center; }
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.order-step {
  background: var(--white); border-radius: 24px; padding: 24px 18px;
  transition: transform .35s var(--ease-bounce), box-shadow .35s, opacity .7s ease-out;
}
.order-step:hover { transform: translateY(-8px); box-shadow: 0 14px 30px rgba(122,26,44,.1); }
.order-step h3 { font-size: 1.5rem; }
.order-step p { opacity: .85; }

/* ----- الأسئلة ----- */
.faq { padding: 48px 0 24px; max-width: 760px; margin-inline: auto; text-align: center; }
.faq .section-title { margin-bottom: 20px; }
.faq-item {
  text-align: start;
  background: var(--white); border-radius: 18px; margin-bottom: 10px;
  border: 2px solid transparent; transition: border-color .25s, opacity .7s ease-out, transform .7s ease-out;
}
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); font-size: 1.3rem; line-height: 1;
  transition: transform .3s var(--ease-bounce);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; opacity: .9; animation: fade-up .35s ease-out; }
.faq-item a { color: var(--copper-ink); font-weight: 700; text-decoration: underline; }

/* ----- من نحن ----- */
.about {
  display: flex; align-items: center; gap: 32px;
  margin: 48px 0 72px;
  background: #fbe9cf; border-radius: 32px; padding: 28px 34px;
}
.about img { width: 130px; flex-shrink: 0; }
.about h2 { font-size: 1.9rem; }

/* ----- تنبيه "انتسخ" ----- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 200;
  transform: translate(-50%, 120px);
  background: var(--maroon); color: var(--cream);
  font-weight: 700; padding: 10px 22px; border-radius: 99px;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  transition: transform .4s var(--ease-bounce);
}
.toast.is-show { transform: translate(-50%, 0); }

/* ----- التواصل في الجوال ----- */
@media (max-width: 760px) {
  .contact-hero-inner { flex-direction: column; align-items: center; text-align: center; padding-top: 28px; gap: 6px; }
  .contact-hero-text { padding-bottom: 0; }
  .contact-wuddi { height: 200px; }
  .insta-card { flex-direction: column; text-align: center; padding: 24px 18px; gap: 12px; }
  .insta-btn { width: 100%; }
  .order-steps { grid-template-columns: 1fr; }
  .about { flex-direction: column; text-align: center; padding: 24px 20px; gap: 14px; }
  .about img { width: 110px; }
  .toast { bottom: 80px; }
}


/* =========================================
   صفحات المنتجات وامسح الكود
   ========================================= */

/* ----- عنوان عنابي مشترك ----- */
.page-hero { position: relative; background: var(--maroon); color: var(--cream); overflow: hidden; }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 48px; }
.page-hero-text { padding-bottom: 64px; }
.page-hero-text .eyebrow { color: var(--gold); }
.page-hero-text h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 4px 0 10px; }
.page-lead { font-size: 1.15rem; opacity: .9; max-width: 520px; }
.page-hero-text > * { animation: fade-up .55s ease-out both; }
.page-hero-text > :nth-child(2) { animation-delay: .15s; }
.page-hero-text > :nth-child(3) { animation-delay: .3s; }
.page-hero-wuddi { height: clamp(220px, 28vw, 320px); width: auto; transform-origin: 50% 100%; animation: wuddi-pop 1s var(--ease-bounce) .3s both, wuddi-hop 3.2s ease-in-out 1.6s infinite; }
.page-hero .zigzag { position: absolute; left: 0; right: 0; bottom: 0; }

.btn-outline-dark { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline-dark:hover { background: var(--maroon); color: var(--cream); }

/* ----- بطاقات المنتجات ----- */
.products-section { padding: 56px 24px 24px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.products-grid.small { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; }

.product-card {
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid #f1dcc0;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
  animation: fade-up .5s ease-out both;
}
.product-card:nth-child(2) { animation-delay: .12s; }
.product-card:nth-child(3) { animation-delay: .24s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(122,26,44,.12); }

/* رسمة الكبسولة بلون المنتج */
.p-art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--pc) 10%, #fff6e6);
  border-radius: 140px 140px 24px 24px;
  margin: 14px;
  overflow: hidden;
}
.p-art.has-photo { background: #f4ece0; }
.p-art.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-halo {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 22%, transparent);
  animation: halo 3s ease-in-out infinite;
}
.p-art .caps-svg { position: relative; height: 62%; width: auto; transition: transform .45s var(--ease-bounce); }
.product-card:hover .caps-svg, .pd-art:hover .caps-svg { transform: rotate(-8deg) scale(1.08); }
.p-size {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--pc); color: #fff; font-weight: 700; font-size: .8rem;
  padding: 2px 12px; border-radius: 99px;
}
@keyframes halo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.p-body { padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-body > .tag { align-self: flex-start; }
.p-body h2 { font-size: 1.9rem; }
.p-body p { opacity: .85; }
.p-meta { color: var(--copper-ink); font-weight: 700; opacity: 1 !important; }
.p-buttons { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.p-buttons .btn { flex: 1; text-align: center; }

.delivery-note { text-align: center; margin-top: 24px; color: var(--copper-ink); font-weight: 700; }

/* عندك كود؟ */
.scan-cta {
  display: flex; align-items: center; gap: 24px;
  margin: 40px 0 72px; padding: 24px 30px;
  background: #fbe9cf; border-radius: 32px;
}
.scan-cta-icon { width: 72px; height: 72px; flex-shrink: 0; border-radius: 22px; background: var(--white); display: grid; place-items: center; }
.scan-cta > div:nth-child(2) { flex: 1; }
.scan-cta h2 { font-size: 1.7rem; }

/* ----- صفحة المنتج ----- */
.product-page { padding: 32px 0 72px; }
.back-link { display: inline-block; font-weight: 700; color: var(--copper-ink); margin-bottom: 18px; transition: transform .2s; }
.back-link:hover { transform: translateX(6px); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-art .p-art { margin: 0; aspect-ratio: 1; border-radius: 999px 999px 32px 32px; }
.pd-art { animation: fade-up .55s ease-out both; }
.pd-info > * { animation: fade-up .5s ease-out both; }
.pd-info > :nth-child(2) { animation-delay: .1s; }
.pd-info > :nth-child(3) { animation-delay: .2s; }
.pd-info > :nth-child(4) { animation-delay: .3s; }
.pd-info > :nth-child(5), .pd-info > :nth-child(6) { animation-delay: .4s; }
.pd-info h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 6px 0; }
.pd-short { font-size: 1.1rem; opacity: .9; }
.pd-meta { display: flex; gap: 12px; margin: 18px 0; }
.pd-meta div { flex: 1; background: var(--white); border-radius: 18px; padding: 12px 16px; }
.pd-meta span { display: block; font-size: .85rem; color: var(--copper-ink); font-weight: 700; }
.pd-meta b { font-size: 1.25rem; }
.pd-h2 { font-size: 1.7rem; margin: 8px 0 10px; }
.pd-steps { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.pd-steps li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 16px; padding: 10px 14px; }
.pd-steps .num { margin: 0; flex-shrink: 0; }
.pd-btn { width: 100%; text-align: center; font-size: 1.1rem; }
.pd-note { text-align: center; margin-top: 8px; color: var(--copper-ink); font-weight: 700; font-size: .9rem; }

.pd-about { display: flex; align-items: flex-end; gap: 28px; margin-top: 56px; background: #fbe9cf; border-radius: 32px; padding: 24px 32px 0; overflow: hidden; }
.pd-about img { height: 200px; width: auto; flex-shrink: 0; }
.pd-about > div { padding-bottom: 28px; }
.pd-about p { font-size: 1.15rem; margin: 10px 0; }
.pd-map-link { font-weight: 700; color: var(--copper-ink); text-decoration: underline; }
.pd-more { margin-top: 56px; text-align: center; }
.pd-more .section-title { margin-bottom: 20px; }
.pd-more .product-card { text-align: start; }

/* ----- صفحة امسح الكود ----- */
.scan-page { padding: 48px 0 72px; }
.scan-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.scan-text h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 4px 0 10px; }
.scan-text > :nth-child(-n+3) { animation: fade-up .5s ease-out both; }
.scan-text > :nth-child(2) { animation-delay: .1s; }
.scan-text > :nth-child(3) { animation-delay: .2s; }
.scan-steps { list-style: none; display: grid; gap: 10px; margin: 22px 0; }
.scan-steps li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 16px; padding: 10px 14px; font-weight: 500; }
.scan-steps .num { margin: 0; flex-shrink: 0; }
.try-title { color: var(--copper-ink); font-weight: 700; margin-bottom: 8px; }
.try-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.try-btn { background: var(--pc); color: #fff; min-width: 110px; text-align: center; }
.try-btn:hover { box-shadow: 0 8px 18px rgba(0,0,0,.2); }

.scanner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fade-up .8s ease-out .2s both; }
.scan-status { font-weight: 700; color: var(--maroon); text-align: center; max-width: 340px; min-height: 1.7em; }
.scan-actions { display: flex; gap: 10px; }
.scan-actions .btn[hidden] { display: none; }

/* الكاميرا داخل الإطار */
.scanner-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.scanner-frame.is-live video { opacity: 1; }
.scanner-frame.is-live .fake-qr { opacity: 0; }
.scanner-frame.is-live .corner { border-color: var(--cream); }
.scanner-frame .corner, .scanner-frame .laser { z-index: 2; }
.fake-qr { transition: opacity .3s; }

/* لما يلقى الكود */
.scan-ok {
  position: absolute; z-index: 3; width: 90px; height: 90px; border-radius: 50%;
  display: grid; place-items: center; font-size: 3rem; font-weight: 700;
  background: var(--green); color: #fff; transform: scale(0); transition: transform .4s var(--ease-bounce);
}
.scanner-frame.is-found .scan-ok { transform: scale(1); }
.scanner-frame.is-found .laser { opacity: 0; }
.scanner-frame.is-found .corner { border-color: var(--green); }
.scanner-frame {
  position: relative; width: min(320px, 80vw); aspect-ratio: 1;
  background: var(--white); border-radius: 36px;
  box-shadow: 0 18px 40px rgba(122,26,44,.12);
  display: grid; place-items: center; overflow: hidden;
}
/* الزوايا */
.corner { position: absolute; width: 44px; height: 44px; border: 6px solid var(--maroon); }
.c1 { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.c2 { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.c3 { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.c4 { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.scanner-frame .corner { animation: corner-pulse 2s ease-in-out infinite; }
@keyframes corner-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }

/* شكل كود وهمي */
.fake-qr { width: 56%; height: auto; shape-rendering: crispEdges; }
/* الخط اللي يمشي */
.laser {
  position: absolute; left: 12%; right: 12%; height: 4px; border-radius: 4px;
  background: var(--gold); box-shadow: 0 0 16px 4px rgba(242,179,61,.6);
  animation: laser 2.2s ease-in-out infinite;
}
@keyframes laser { 0%, 100% { top: 16%; } 50% { top: 82%; } }
.scan-wuddi { position: absolute; bottom: 20px; left: -30px; height: 150px; width: auto; transform-origin: 50% 100%; animation: wuddi-pop 1s var(--ease-bounce) .8s both; }

/* ----- رسومات المنتجات المتحركة ----- */
.p-art.has-scene { padding: 0; }
.p-art .scene { position: relative; width: 100%; height: 100%; overflow: visible; }
.scene .sc-tree, .scene .sc-caps, .scene .sc-fruit, .scene .sc-strand,
.scene .sc-rays, .scene .sc-wing, .scene .sc-leaf-l, .scene .sc-leaf-r { transform-box: fill-box; }

/* الشجرة تتمايل مع الريح */
.scene .sc-tree { transform-origin: 50% 100%; animation: tree-sway 5s ease-in-out infinite; }
@keyframes tree-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }

/* الكبسولة تنط نطة صغيرة كل شوي */
.scene .sc-caps { transform-origin: 50% 100%; animation: caps-idle 3.6s ease-in-out infinite; }
@keyframes caps-idle {
  0%, 70%, 100% { transform: translateY(0) scale(1); }
  78% { transform: translateY(0) scale(1.06, .94); }
  86% { transform: translateY(-14%) scale(.97, 1.04); }
  94% { transform: translateY(0) scale(1.03, .97); }
}
.scene .sc-leaf-l { transform-origin: 100% 100%; animation: leaf-sway 2.6s ease-in-out infinite; }
.scene .sc-leaf-r { transform-origin: 0% 100%;   animation: leaf-sway 2.6s ease-in-out .4s infinite; }

/* لما تأشر: الكبسولة تنط نطة كبيرة والشجرة تتمايل أكثر */
.p-art.has-scene:hover .sc-caps { animation: caps-jump .7s var(--ease-bounce) infinite alternate; }
.p-art.has-scene:hover .sc-tree { animation-duration: 1.6s; }
@keyframes caps-jump { from { transform: translateY(0) rotate(0); } to { transform: translateY(-22%) rotate(-6deg); } }

/* السدر: النبق يتمرجح، والنحلة تطير */
.scene .sc-fruit { transform-origin: 50% 0; animation: fruit-bob 2.4s ease-in-out infinite; }
.scene .sc-fruit:nth-child(2n) { animation-delay: .5s; }
.scene .sc-fruit:nth-child(3n) { animation-delay: 1s; }
@keyframes fruit-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(3px) rotate(8deg); } }

.scene .sc-bee { animation: bee-fly 8s ease-in-out infinite; }
@keyframes bee-fly {
  0%   { transform: translate(150px, 70px) scaleX(1); }
  20%  { transform: translate(200px, 40px) scaleX(1); }
  40%  { transform: translate(250px, 70px) scaleX(1); }
  50%  { transform: translate(262px, 100px) scaleX(-1); }
  70%  { transform: translate(200px, 110px) scaleX(-1); }
  85%  { transform: translate(150px, 95px) scaleX(-1); }
  92%  { transform: translate(140px, 80px) scaleX(1); }
  100% { transform: translate(150px, 70px) scaleX(1); }
}
.scene .sc-wing { transform-origin: 50% 100%; animation: wing 0.12s linear infinite alternate; }
@keyframes wing { from { transform: scaleY(1); } to { transform: scaleY(.4); } }

/* الغاف: الشمس تدور، والأغصان تتمرجح، والرمل يطير */
.scene .sc-rays { transform-origin: center; animation: sun-spin 14s linear infinite; }
@keyframes sun-spin { to { transform: rotate(360deg); } }
.scene .sc-strand { transform-origin: 50% 0; animation: strand 2.8s ease-in-out infinite; }
.scene .sc-strand:nth-child(2n) { animation-delay: .7s; }
@keyframes strand { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
.scene .sc-sand { animation: sand 4s linear infinite; }
@keyframes sand {
  0%   { transform: translate(-20px, 0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(180px, -18px); opacity: 0; }
}

/* المشهد في صفحة المنتج نفسها: أكبر */
.pd-art .p-art.has-scene { aspect-ratio: 4 / 3.4; }

/* ----- الجوال ----- */
@media (max-width: 760px) {
  .page-hero-inner { flex-direction: column; align-items: center; text-align: center; padding-top: 28px; gap: 6px; }
  .page-hero-text { padding-bottom: 0; }
  .page-hero-wuddi { height: 200px; }
  .products-section { padding: 36px 16px 16px; }
  .scan-cta { flex-direction: column; text-align: center; padding: 22px 18px; gap: 12px; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .pd-art .p-art { width: 78%; margin: 0 auto; }
  .pd-about { flex-direction: column-reverse; align-items: center; text-align: center; padding: 22px 18px 0; gap: 0; }
  .pd-about img { height: 160px; }
  .scan-inner { grid-template-columns: 1fr; gap: 28px; }
  .scan-text { text-align: center; }
  .scan-steps li { text-align: start; }
  .try-buttons { justify-content: center; }
  .scan-wuddi { position: static; display: block; height: 96px; margin: 6px auto 0; }
}


/* =========================================
   صفحة حكاية وُدّي (الكتاب التفاعلي)
   ========================================= */
.book {
  position: relative;
  height: calc(100vh - 84px);
  min-height: 480px;
  overflow: hidden;
  background: #fde3c4;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.book-stage { position: absolute; inset: 0; cursor: pointer; }
.book-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* حركات صغيرة داخل الرسمة */
.book-art .wd-breathe { animation: bk-breathe 3.2s ease-in-out infinite; transform-origin: 0 0; }
@keyframes bk-breathe { 50% { transform: scale(1.015, 1.03); } }
.book-art .tree-sway { animation: bk-sway 5s ease-in-out infinite; transform-origin: 0 -150px; }
@keyframes bk-sway { 50% { transform: rotate(1.4deg); } }
.book-art .star { animation: bk-twinkle 2.6s ease-in-out infinite; }
@keyframes bk-twinkle { 50% { opacity: .25; } }
.book-art .cloud { transform-box: fill-box; transform-origin: center; }
.book-art .c-main { animation: bk-float 4s ease-in-out infinite; cursor: pointer; }
.book-art .c-side { animation: bk-float 5s ease-in-out -1s infinite; }
.book-art .c-side2 { animation: bk-float 6s ease-in-out -2s infinite; }
@keyframes bk-float { 50% { transform: translate(14px, -6px); } }
.book-art .c-main:hover { filter: brightness(1.04); }
.book-art .c-main:focus { outline: none; }
.book-art .c-main:focus-visible .cloud-face { fill: var(--maroon); }
.book-art .drop { stroke: #7fc6e6; stroke-width: 3; stroke-linecap: round; animation: bk-rain .7s linear infinite; }
.book-art #rain.is-burst .drop { stroke-width: 4.5; animation-duration: .38s; }
@keyframes bk-rain { from { transform: translateY(-120px); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(520px); opacity: .6; } }
.book-art .wadi-shine { animation: bk-flow 2.2s linear infinite; }
@keyframes bk-flow { to { stroke-dashoffset: 130; } }
.book-art .zzz text { animation: bk-zzz 2.4s ease-in-out infinite; }
.book-art .zzz text:nth-child(2) { animation-delay: .4s; }
.book-art .zzz text:nth-child(3) { animation-delay: .8s; }
@keyframes bk-zzz { 0%, 100% { opacity: .3; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
.book-art .hearts path { animation: bk-heart 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.book-art .hearts path:nth-child(2) { animation-delay: .3s; }
.book-art .hearts path:nth-child(3) { animation-delay: .6s; }
@keyframes bk-heart { 50% { transform: translateY(-10px) scale(1.15); } }
.book-art .bulb-rays { animation: bk-rays 1s ease-in-out infinite; }
@keyframes bk-rays { 50% { opacity: .3; } }
.book-art .lz-bob { animation: bk-lz 2.4s ease-in-out infinite; }
.book-art #lizard.is-walking .lz-bob { animation: bk-lzwalk .3s ease-in-out infinite; }
@keyframes bk-lz { 50% { transform: translateY(-2px); } }
@keyframes bk-lzwalk { 50% { transform: translateY(-4px) rotate(-2deg); } }
.book-art .bird { animation: bk-bird 3.2s ease-in-out infinite; }
.book-art .bird path { animation: bk-flap .45s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.book-art .bird.b2 { animation-delay: -1s; }
.book-art .bird.b3 { animation-delay: -2s; }
@keyframes bk-bird { 0%, 100% { transform: translate(-60px, -20px); } 33% { transform: translate(40px, -60px); } 66% { transform: translate(90px, 10px); } }
@keyframes bk-flap { 50% { transform: scaleY(.4); } }
.book-art .bfly { animation: bk-bfly 7s ease-in-out infinite; transform: translate(760px, 500px); }
.book-art .bfly.f2 { animation-duration: 9s; animation-delay: -3s; }
.book-art .bfly.f3 { animation-duration: 8s; animation-delay: -5s; }
.book-art .bfly-in { animation: bk-wing .3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bk-bfly {
  0%, 100% { transform: translate(560px, 520px); }
  25% { transform: translate(700px, 450px); }
  50% { transform: translate(980px, 500px); }
  75% { transform: translate(760px, 580px); }
}
@keyframes bk-wing { 50% { transform: scaleX(.3); } }
/* لما تضغط على شي في الرسمة */
.book-art #wd, .book-art #tree, .book-art #lizard, .book-art #rock, .book-art #sun, .book-art #moon, .book-art #capsW { cursor: pointer; }
.book-art .wd-breathe.is-poked { animation: bk-pokejump .6s var(--ease-bounce); }
@keyframes bk-pokejump { 30% { transform: translateY(-26px) scale(1.04, .96); } 60% { transform: translateY(0) scale(1.06, .92); } }
.book-art .tree-sway.is-poked { animation: bk-shake-tree .6s ease-in-out; }
@keyframes bk-shake-tree { 20% { transform: rotate(-3deg); } 45% { transform: rotate(2.5deg); } 70% { transform: rotate(-1.5deg); } }
.book-art .lz-bob.is-poked { animation: bk-lzhop .5s ease-out; }
@keyframes bk-lzhop { 40% { transform: translate(14px, -10px); } }
.book-art #rock.is-poked, .book-art #capsW.is-poked { animation: bk-wobble .45s ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bk-wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
.book-art #sun.is-poked, .book-art #moon.is-poked { animation: none; }
.book-art .root { stroke-dasharray: 1; stroke-dashoffset: 1; }
.book-art .ldrop { animation: bk-ldrop 1.4s ease-in infinite; }
.book-art .ldrop.d2 { animation-delay: .35s; }
.book-art .ldrop.d3 { animation-delay: .7s; }
.book-art .ldrop.d4 { animation-delay: 1.05s; }
@keyframes bk-ldrop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(150px); opacity: 0; } }
.book-art .seed-spin { animation: bk-seed 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bk-seed { 50% { transform: rotate(8deg) scale(1.04); } }
.book-art .sparkles { opacity: 0; transition: opacity .4s; }
.book-art #seedG.is-glow .sparkles { opacity: 1; animation: bk-twinkle 1.2s ease-in-out infinite; }

/* ----- فوق: الفصل والتقدم ----- */
.book-hud {
  position: absolute; top: 14px; left: 16px; right: 16px; z-index: 6;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
.book-hud > * { pointer-events: auto; }
.hud-chapter {
  background: rgba(255, 246, 230, .94);
  border-radius: 99px; padding: 6px 16px; font-weight: 800; font-size: .95rem;
  box-shadow: 0 6px 18px rgba(94, 42, 28, .12); white-space: nowrap;
}
.hud-progress { flex: 1; display: flex; gap: 6px; list-style: none; max-width: 420px; }
.hud-progress li { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 246, 230, .55); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(122, 26, 44, .12); }
.hud-progress li span { display: block; height: 100%; width: 0; background: var(--maroon); border-radius: 99px; transition: width .6s ease; }
.hud-right { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.hud-chip {
  background: rgba(255, 246, 230, .94);
  border-radius: 99px; padding: 5px 13px; font-weight: 800; font-size: .92rem;
  box-shadow: 0 6px 18px rgba(94, 42, 28, .12); white-space: nowrap;
}
.hud-chip.pop { animation: bk-pop .6s var(--ease-bounce); }
@keyframes bk-pop { 40% { transform: scale(1.3); background: var(--gold); } }
.hud-days { background: var(--maroon); color: var(--cream); }
.hud-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 246, 230, .9); color: var(--maroon); font-size: .9rem;
  box-shadow: 0 6px 18px rgba(94, 42, 28, .12); transition: transform .2s;
}
.hud-btn:hover { transform: scale(1.08); }
.hud-btn[aria-pressed="true"] { background: var(--maroon); color: var(--cream); }

/* ----- طبقات الكبسولة ----- */
.layer-chips {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px; pointer-events: none; width: max-content; max-width: 94%; flex-wrap: wrap; justify-content: center;
}
.lchip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border-radius: 99px; padding: 6px 14px 6px 12px;
  font-weight: 800; font-size: .95rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(-12px) scale(.8);
  transition: opacity .35s, transform .5s var(--ease-bounce);
}
.lchip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.lchip.is-on { opacity: 1; transform: none; }

/* ----- عنوان الفصل ----- */
.chapter-card {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(122, 26, 44, .82), rgba(60, 10, 20, .9));
  color: var(--cream); opacity: 0;
}
.chapter-card span { font-weight: 800; color: var(--gold); letter-spacing: .5px; font-size: 1.1rem; }
.chapter-card strong { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.2; }
.chapter-card.is-on { animation: bk-card 1.7s ease both; }
.chapter-card.is-on span { animation: fade-up .6s ease-out both; }
.chapter-card.is-on strong { animation: bk-title .9s var(--ease-bounce) .1s both; }
@keyframes bk-card { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bk-title { from { opacity: 0; transform: scale(.7) translateY(20px); } }

/* ----- شاشة البداية والنهاية ----- */
.book-cover, .book-end {
  position: absolute; inset: 0; z-index: 9;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 246, 230, .25), rgba(122, 26, 44, .55));
  cursor: default;
}
.book-cover[hidden], .book-end[hidden], .hud-chip[hidden] { display: none; }
.book-cover { transition: opacity .6s ease; }
.book-cover.is-gone { opacity: 0; pointer-events: none; }
.book-cover.is-gone .cover-card { transform: scale(.9) translateY(20px); }
.cover-card, .end-card {
  background: var(--cream); border-radius: 36px; text-align: center;
  padding: 34px 40px 28px; max-width: 520px; width: 100%;
  box-shadow: 0 30px 60px rgba(60, 10, 20, .35);
  border: 3px solid #f1dcc0;
  transition: transform .6s ease;
  animation: bk-title .8s var(--ease-bounce) both;
}
.cover-card h1 { font-size: clamp(2.8rem, 8vw, 4.4rem); line-height: 1.15; margin: 4px 0 10px; }
.cover-card p { font-size: 1.12rem; margin-bottom: 20px; }
.cover-card small { display: block; margin-top: 14px; opacity: .7; font-size: .85rem; }
.cover-start { font-size: 1.2rem; padding: 14px 34px; animation: bk-pulse 2s ease-in-out 1s infinite; }
@keyframes bk-pulse { 50% { box-shadow: 0 0 0 12px rgba(122, 26, 44, .12); } }
.end-card { display: flex; align-items: center; gap: 22px; text-align: start; max-width: 620px; }
.end-card img { width: 120px; height: auto; flex-shrink: 0; animation: bk-hop 1.6s ease-in-out infinite; }
@keyframes bk-hop { 50% { transform: translateY(-10px) rotate(-3deg); } }
.end-card h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.2; }
.end-stars { font-weight: 800; color: var(--brown); margin: 4px 0 8px; }
.end-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.end-buttons .btn { padding: 10px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; border: 0; color: var(--maroon); font-weight: 800; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* ----- لوحة الكلام ----- */
.book-panel {
  position: absolute; z-index: 8; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(860px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 246, 230, .97);
  border-radius: 28px; padding: 16px 18px 16px 22px;
  box-shadow: 0 18px 44px rgba(60, 10, 20, .22);
  border: 2px solid rgba(241, 220, 192, .9);
}
.panel-text { flex: 1; min-width: 0; }
.panel-tag { font-size: .8rem; font-weight: 800; color: var(--copper-ink); margin-bottom: 2px; min-height: 1em; }
.panel-line { font-size: clamp(1.05rem, 1.9vw, 1.3rem); font-weight: 700; line-height: 1.6; min-height: 1.6em; }
.panel-line span { display: inline-block; animation: bk-word .5s ease-out both; }
@keyframes bk-word { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.panel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.nav-btn {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1rem;
  border-radius: 99px; transition: transform .2s, opacity .2s, background .2s;
}
.nav-btn:disabled { opacity: .35; cursor: default; }
.nav-prev { width: 46px; height: 46px; background: #f1dcc0; color: var(--maroon); }
.nav-next { height: 46px; padding: 0 24px; background: var(--maroon); color: var(--cream); box-shadow: 0 8px 18px rgba(122, 26, 44, .3); }
.nav-btn:not(:disabled):hover { transform: translateY(-2px); }
.nav-next:not(:disabled) { animation: bk-nudge 2.4s ease-in-out 3s infinite; }
@keyframes bk-nudge { 0%, 85%, 100% { transform: none; } 90% { transform: translateX(-5px); } 95% { transform: translateX(2px); } }

/* ----- اللغز ----- */
.panel-line.is-riddle { color: var(--maroon); }
.riddle { margin-top: 10px; }
.riddle.nudge { animation: bk-shake .4s; }
.riddle-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ropt, .rskip {
  font-family: inherit; font-weight: 700; font-size: .98rem; cursor: pointer;
  border-radius: 16px; padding: 9px 16px; border: 2px solid #e8cfae; background: #fff;
  color: var(--maroon); transition: transform .2s var(--ease-bounce), background .2s, border-color .2s;
  animation: fade-up .4s ease-out both;
}
.ropt:nth-child(2) { animation-delay: .08s; } .ropt:nth-child(3) { animation-delay: .16s; }
.ropt:not(:disabled):hover { transform: translateY(-3px); border-color: var(--gold); background: #fff8e6; }
.ropt.is-ok { background: var(--green); border-color: var(--green); color: #fff; animation: bk-pop .6s var(--ease-bounce); }
.ropt.is-no { background: #f6dede; border-color: #e7b3b3; color: #a5585e; animation: bk-shake .4s; text-decoration: line-through; }
.ropt:disabled { cursor: default; }
.rskip { background: transparent; border-style: dashed; font-size: .9rem; opacity: .8; }
@keyframes bk-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.riddle-note { margin-top: 8px; font-weight: 700; min-height: 1.2em; font-size: .98rem; }
.riddle-note.is-hint { color: var(--brown); animation: fade-up .4s ease-out; }
.riddle-note.is-yes { color: #2f7a40; animation: fade-up .4s ease-out; }

/* ----- كونفيتي ----- */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.confetti i {
  position: absolute; width: 9px; height: 14px; border-radius: 2px;
  animation: bk-confetti 1.2s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes bk-confetti {
  to { transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--r)); opacity: 0; }
}

/* ----- الحكاية مكتوبة ----- */
.book-text { padding: 28px 0 40px; }
.book-text details { background: #fbe9cf; border-radius: 24px; padding: 16px 22px; }
.book-text summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.book-text-body p { margin-top: 12px; }

/* دعوة الحكاية في الرئيسية */
.tale-teaser {
  display: flex; align-items: center; gap: 24px;
  margin: 8px 0 56px; padding: 20px 30px;
  background: linear-gradient(120deg, #e6f1ee, #fbe9cf);
  border-radius: 32px; border: 2px solid #f1dcc0;
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.tale-teaser:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(122,26,44,.12); }
.tale-teaser img { height: 120px; width: auto; flex-shrink: 0; transition: transform .4s var(--ease-bounce); }
.tale-teaser:hover img { transform: rotate(-6deg) translateY(-6px); }
.tale-teaser > div { flex: 1; }
.tale-teaser h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

@media (max-width: 760px) {
  /* في الجوال: الرسمة فوق، والكلام تحت */
  .book { display: flex; flex-direction: column; height: calc(100vh - 126px); }
  .book-stage { position: relative; flex: 1; min-height: 0; }
  .book-panel {
    position: relative; left: auto; bottom: auto; transform: none; width: 100%;
    border-radius: 24px 24px 0 0; border: 0; border-top: 3px solid var(--gold);
    flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 14px;
    background: var(--cream); backdrop-filter: none; box-shadow: 0 -10px 24px rgba(60, 10, 20, .12);
  }
  .panel-line { font-size: 1.02rem; min-height: 3.2em; }
  .panel-nav { justify-content: space-between; }
  .nav-next { flex: 1; }
  .ropt, .rskip { font-size: .9rem; padding: 7px 12px; }
  .book-hud { top: 10px; left: 10px; right: 10px; gap: 8px; flex-wrap: wrap; }
  .hud-chapter { font-size: .8rem; padding: 5px 12px; }
  .hud-progress { order: 3; flex-basis: 100%; max-width: none; }
  .hud-chip { font-size: .8rem; padding: 4px 10px; }
  .hud-btn { width: 32px; height: 32px; }
  .layer-chips { top: 78px; gap: 6px; }
  .lchip { font-size: .8rem; padding: 4px 10px; }
  .cover-card { padding: 26px 22px 22px; border-radius: 28px; }
  .end-card { flex-direction: column; text-align: center; padding: 22px 18px; gap: 6px; }
  .end-card img { width: 90px; }
  .end-buttons { justify-content: center; }
  .tale-teaser { flex-direction: column; text-align: center; padding: 20px 18px; gap: 10px; margin-bottom: 40px; }
  .tale-teaser img { height: 100px; }
}


/* =========================================
   زر الصوت 🔊 (يطلع في كل الصفحات)
   ========================================= */
.sound-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--maroon); color: var(--cream);
  box-shadow: 0 10px 24px rgba(122, 26, 44, .3);
  transition: transform .25s var(--ease-bounce), background .2s;
  animation: bk-title .6s var(--ease-bounce) 1s both;
}
.sound-toggle:hover { transform: scale(1.1) rotate(-6deg); }
.sound-toggle.is-off { background: #e9d6bd; color: var(--maroon); }
.hud-btn svg { display: block; margin: auto; }
.hud-btn#soundBtn.is-off { opacity: .75; }
body.splash-open .sound-toggle { display: none; }
@media (max-width: 760px) {
  .sound-toggle { left: 12px; bottom: 70px; width: 40px; height: 40px; }
}

/* =========================================
   ستارة الانتقال بين الصفحات
   ========================================= */
html.curtain-go::before,
html.is-curtain::before {
  content: "";
  position: fixed;
  left: 0; right: 0;
  top: -16px; height: calc(100vh + 32px);
  z-index: 9999;
  pointer-events: all;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Cpath d='M0 16 L14 0 L28 16Z' fill='%237a1a2c'/%3E%3Cpath d='M0 16 L14 4 L28 16' fill='none' stroke='%23f2b33d' stroke-width='3'/%3E%3C/svg%3E") repeat-x top / 28px 16px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Cpath d='M0 0 L14 16 L28 0Z' fill='%237a1a2c'/%3E%3Cpath d='M0 0 L14 12 L28 0' fill='none' stroke='%23f2b33d' stroke-width='3'/%3E%3C/svg%3E") repeat-x bottom / 28px 16px,
    url("../assets/images/logo/wordmark-light.svg") center calc(50% + 120px) / 170px auto no-repeat,
    linear-gradient(var(--maroon), var(--maroon)) center / 100% calc(100% - 30px) no-repeat;
}
html.curtain-go::after,
html.is-curtain::after {
  content: "";
  position: fixed;
  z-index: 10000;
  left: 50%; top: 50%;
  width: 130px; height: 185px;
  margin: -120px 0 0 -65px;
  background: url("../assets/images/mascot/wuddi-happy.svg") center / contain no-repeat;
  pointer-events: none;
}

/* الدخول: الستارة تطلع من تحت، ووُدّي يركض من اليمين للنص */
html.curtain-go::before { animation: curtain-up .32s cubic-bezier(.76, 0, .24, 1) both; }
html.curtain-go::after  { animation: wuddi-run-in .34s ease-out both, wuddi-hop .18s ease-in-out infinite alternate; }

/* الصفحة الجديدة: الستارة تكمل لفوق، ووُدّي يركض لليسار */
html.is-curtain::before { animation: curtain-away .45s cubic-bezier(.76, 0, .24, 1) .05s both; }
html.is-curtain::after  { animation: wuddi-run-out .4s ease-in .03s both, wuddi-hop .18s ease-in-out infinite alternate; }

@keyframes curtain-up    { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes curtain-away  { from { transform: translateY(0); } to { transform: translateY(-105%); visibility: hidden; } }
@keyframes wuddi-run-in  { from { translate: 60vw 0; rotate: 8deg; } to { translate: 0 0; rotate: 0deg; } }
@keyframes wuddi-run-out { from { translate: 0 0; opacity: 1; } to { translate: -65vw 0; rotate: -8deg; opacity: 1; visibility: hidden; } }
@keyframes wuddi-hop     { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-16px) scaleY(1.03); } }


/* =========================================
   وُدّي الحي + فقاعات الكلام + سر وُدّي + ذيل البذور
   ========================================= */
.wuddi-live { display: block; max-width: 100%; overflow: visible; transition: scale .25s var(--ease-bounce), translate .4s var(--ease-bounce), rotate .4s var(--ease-bounce); }
.wuddi-live .w-eye { transform-box: fill-box; transform-origin: center; transition: transform .07s ease-in; }
.wuddi-live.is-blink .w-eye { transform: scaleY(.08); }
.wuddi-live .w-pupil { transition: transform .18s ease-out; }
.wuddi-live.is-poked { scale: 1.06 .9; }
.wuddi-live.is-party { translate: 0 -14px; rotate: -5deg; }

.wuddi-say {
  position: absolute; z-index: 80; left: 50%; top: 0;   /* left: 50% عشان ما يدف الصفحة لجنب في الجوال */
  max-width: min(250px, 80vw); width: max-content;
  padding: 9px 15px; border-radius: 18px;
  background: var(--cream); color: var(--maroon);
  border: 2px solid var(--maroon); box-shadow: 0 10px 22px rgba(94, 42, 28, .18);
  font-weight: 800; font-size: .95rem; line-height: 1.5; text-align: center;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, calc(-100% + 8px)) scale(.85);
  transform-origin: 50% 100%;
  transition: opacity .2s, transform .35s var(--ease-bounce);
}
.wuddi-say::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--cream); border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon);
  transform: rotate(45deg);
}
.wuddi-say.is-on { opacity: 1; transform: translate(-50%, -100%) scale(1); }

.seed-rain { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.seed-rain i {
  position: absolute; top: -60px; width: var(--s); height: var(--s);
  animation: seed-fall var(--d) cubic-bezier(.3, .1, .6, 1) both;
}
.seed-rain svg { width: 100%; height: 100%; display: block; }
@keyframes seed-fall { to { transform: translate(var(--x), calc(100vh + 80px)) rotate(var(--r)); } }

.seed-trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 85; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .wuddi-live .w-pupil, .wuddi-live .w-eye { transition: none; }
}

/* =========================================
   صفحة 404 (الصفحة مو موجودة)
   ========================================= */
.lost { position: relative; overflow: hidden; background: linear-gradient(#fbe3c0, #fff3dd 70%); padding: 56px 0 160px; min-height: 70vh; }
.lost-sky { position: absolute; inset: 0; pointer-events: none; }
.lost-sun { position: absolute; top: 40px; left: 8%; width: 110px; height: 110px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 18px rgba(242, 179, 61, .18), 0 0 0 40px rgba(242, 179, 61, .08); animation: lost-sun 6s ease-in-out infinite; }
@keyframes lost-sun { 50% { transform: scale(1.06); } }
.lost-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lost-text { max-width: 520px; }
.lost-text h1 { font-size: clamp(2.6rem, 6vw, 4rem); text-wrap: balance; }
.lost-compass { display: inline-block; animation: lost-spin 2.4s cubic-bezier(.5, -0.4, .5, 1.4) infinite; }
@keyframes lost-spin { 0% { transform: rotate(0); } 30% { transform: rotate(140deg); } 55% { transform: rotate(60deg); } 80% { transform: rotate(250deg); } 100% { transform: rotate(360deg); } }
.lost-lead { font-size: 1.15rem; margin: 10px 0 22px; }
.lost-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-weight: 700; }
.lost-links a { border-bottom: 2px dashed var(--copper); }
.lost-art { position: relative; display: grid; place-items: center; flex-shrink: 0; }
.lost-404 { font-family: var(--font-title); font-size: clamp(7rem, 18vw, 13rem); line-height: 1; color: rgba(122, 26, 44, .09); position: absolute; top: -10px; }
.lost-wuddi { position: relative; height: clamp(220px, 28vw, 300px); width: auto; animation: lost-look 4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes lost-look { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateX(-6px); } 60% { transform: rotate(4deg) translateX(6px); } }
.lost-dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; }
.lost-steps { animation: lost-steps 3s linear infinite; }
@keyframes lost-steps { to { stroke-dashoffset: -72; } }
@media (max-width: 760px) {
  .lost { padding: 32px 0 130px; }
  .lost-inner { flex-direction: column-reverse; text-align: center; gap: 8px; }
  .lost-text .hero-buttons, .lost-links { justify-content: center; }
  .lost-sun { width: 70px; height: 70px; top: 20px; }
}

/* =========================================
   الأزرار المغناطيسية (تنسحب ناحية الماوس + ضغطة جيلي)
   ========================================= */
.btn, .header-btn, .splash-btn, .nav-btn, .hud-btn, .sound-toggle, .g-btn {
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .45s var(--ease-bounce), scale .35s var(--ease-bounce), transform .25s var(--ease-bounce), background .25s, color .25s, box-shadow .25s, opacity .7s;
}
.is-magnet { transition: translate .12s ease-out, scale .35s var(--ease-bounce), transform .25s var(--ease-bounce), background .25s, color .25s, box-shadow .25s, opacity .7s; }
.is-squish { scale: .93; }

/* =========================================
   الجوال والتابلت
   ========================================= */
@media (max-width: 900px) {
  .main-nav { gap: 16px; font-size: 0.9rem; }
}

@media (max-width: 760px) {
  /* نوقف حركة الهيدر في الجوال عشان القائمة تثبت تحت */
  .site-header { animation: none; }

  /* اللوقو في النص فوق */
  .header-inner { justify-content: center; height: 70px; }
  .header-logo img { height: 46px; }
  .header-btn { display: none; }

  /* القائمة تنزل تحت مثل التطبيقات */
  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    justify-content: space-around;
    gap: 4px;
    background: var(--maroon);
    padding: 12px 6px calc(12px + env(safe-area-inset-bottom));
    font-size: 0.7rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { color: var(--cream); white-space: nowrap; flex-shrink: 0; }
  .main-nav a.active { color: var(--gold); }

  body { padding-bottom: 56px; }  /* مكان للقائمة اللي تحت */

  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
    min-height: 0;
    gap: 28px;
  }
  .hero-text { padding-bottom: 0; }
  .hero-arch { width: min(300px, 82%); padding: 54px 48px 24px; }

  .layers { padding: 52px 0; }
  .layers-grid { grid-template-columns: 1fr; gap: 14px; }
  .layer-card { border-radius: 90px 90px var(--radius) var(--radius); }

  .welcome-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .welcome-text { padding-bottom: 0; }
  .welcome-wuddi { width: 200px; }
}


/* ملاحظة: ما نوقف الحركات لو الجهاز مفعّل "تقليل الحركة"، لأن الحركات جزء من هوية الموقع. */


/* =========================================
   ١٦) سماء الواجهة حسب وقت عُمان (صباح / ظهر / عصر / ليل)
   ========================================= */
.hero > .container, .page-hero > .container, .contact-hero > .container { position: relative; z-index: 1; }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-glow { position: absolute; inset: 0; opacity: .55; transition: opacity 1s; }
.sky-orb {
  position: absolute; width: 74px; height: 74px; border-radius: 50%;
  animation: orb-breathe 6s ease-in-out infinite;
}
.sky-star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff6e6;
  opacity: 0; animation: star-twinkle 3.2s ease-in-out infinite;
}
.sky-star.big { width: 5px; height: 5px; box-shadow: 0 0 8px #fff6e6; }
.sky-cloud {
  position: absolute; height: 26px; width: 90px; border-radius: 30px;
  background: rgba(255, 246, 230, .09);
  animation: cloud-drift 46s linear infinite;
}
.sky-cloud::before, .sky-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.sky-cloud::before { width: 44px; height: 44px; top: -22px; left: 14px; }
.sky-cloud::after  { width: 32px; height: 32px; top: -14px; left: 46px; }
.sky-hi {
  position: absolute; top: -40px; right: 50%; translate: 50% 0; z-index: 2;
  background: rgba(255, 246, 230, .1); border: 1px solid rgba(242, 179, 61, .35);
  color: var(--cream); font-weight: 700; font-size: .85rem;
  padding: 4px 14px; border-radius: 99px; white-space: nowrap;
  animation: fade-up .8s ease-out .9s both;
}

/* الصباح: شمس ذهبية طالعة من اليمين */
html[data-time="morning"] .sky-glow { background: radial-gradient(60% 70% at 92% 18%, rgba(242,179,61,.35), transparent 70%); }
html[data-time="morning"] .sky-orb { right: 7%; top: 70px; background: radial-gradient(circle at 40% 40%, #ffe7a3, #f2b33d 70%); box-shadow: 0 0 0 12px rgba(242,179,61,.12), 0 0 60px 18px rgba(242,179,61,.35); }
/* الظهر: شمس فوق */
html[data-time="noon"] .sky-glow { background: radial-gradient(55% 60% at 50% 0%, rgba(255,231,163,.28), transparent 70%); }
html[data-time="noon"] .sky-orb { right: 46%; top: -18px; width: 90px; height: 90px; background: radial-gradient(circle at 40% 40%, #fff3c9, #f6c75a 70%); box-shadow: 0 0 0 14px rgba(246,199,90,.12), 0 0 70px 24px rgba(246,199,90,.3); }
/* العصر: شمس برتقالية نازلة يسار ولون وردي */
html[data-time="evening"] .sky-glow { background: radial-gradient(70% 80% at 6% 80%, rgba(244,169,192,.35), transparent 70%), radial-gradient(50% 60% at 10% 60%, rgba(196,122,74,.45), transparent 70%); opacity: .8; }
html[data-time="evening"] .sky-orb { left: 6%; top: 46%; width: 86px; height: 86px; background: radial-gradient(circle at 45% 40%, #ffd08a, #e0783f 72%); box-shadow: 0 0 0 14px rgba(224,120,63,.14), 0 0 80px 26px rgba(224,120,63,.35); }
/* الليل: هلال ونجوم */
html[data-time="night"] .sky-glow { background: radial-gradient(60% 70% at 85% 10%, rgba(255,246,230,.12), transparent 70%), linear-gradient(#3d0b18 0%, transparent 75%); opacity: .9; }
html[data-time="night"] .sky-orb {
  right: 9%; top: 56px; width: 62px; height: 62px; background: transparent;
  box-shadow: -14px 10px 0 0 #fff1d0, 0 0 50px 6px rgba(255,241,208,.12);
  animation-name: moon-sway;
}
html[data-time="night"] .sky-star { opacity: .8; }
html:not([data-time="night"]) .sky-star { display: none; }
html[data-time="night"] .sky-cloud { background: rgba(255, 246, 230, .05); }

@keyframes orb-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
@keyframes moon-sway   { 0%, 100% { rotate: -4deg; } 50% { rotate: 6deg; } }
@keyframes star-twinkle { 0%, 100% { opacity: .9; scale: 1; } 50% { opacity: .2; scale: .6; } }
@keyframes cloud-drift { from { translate: 110vw 0; } to { translate: -140px 0; } }

/* في صفحات المنتجات والتواصل: الشمس/القمر أعلى شوي عشان ما تغطي العنوان */
.page-hero .sky-orb, .contact-hero .sky-orb { top: 16px; }
html[data-time="morning"] .page-hero .sky-orb, html[data-time="morning"] .contact-hero .sky-orb { right: 26%; }
html[data-time="noon"] .page-hero .sky-orb, html[data-time="noon"] .contact-hero .sky-orb { top: -18px; }
html[data-time="evening"] .page-hero .sky-orb, html[data-time="evening"] .contact-hero .sky-orb { left: 36%; top: 34%; }

@media (max-width: 760px) {
  /* في الجوال: الشمس أو القمر في الزاوية فوق يسار، بعيد عن الكلام */
  html[data-time] .sky .sky-orb { left: -14px; right: auto; top: 14px; width: 58px; height: 58px; }
  html[data-time="night"] .sky .sky-orb { left: 6px; top: 18px; width: 44px; height: 44px; box-shadow: -10px 7px 0 0 #fff1d0, 0 0 40px 4px rgba(255,241,208,.12); }
  .sky-hi { font-size: .8rem; top: -38px; }
}


/* =========================================
   ١٧) شريط التقدم فوق + نبتة تمشي معه
   ========================================= */
.scroll-bar {
  position: fixed; top: 0; right: 0; left: 0; height: 4px; z-index: 80; pointer-events: none;
}
.scroll-bar i {
  position: absolute; inset: 0; transform-origin: 100% 50%; transform: scaleX(0);
  background: linear-gradient(to left, var(--gold), var(--copper) 45%, var(--green));
  border-radius: 0 0 0 4px;
}
.scroll-bar b {
  position: absolute; top: -1px; right: 0; width: 18px; height: 18px; margin-right: -9px;
  transform: translateX(0);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 19V9' stroke='%234e9f5d' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M10 10C10 5 6 3 2 3c0 4 3 7 8 7z' fill='%234e9f5d'/%3E%3Cpath d='M10 9c0-4 3-6 8-6 0 4-3 6-8 6z' fill='%236bb878'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transition: opacity .3s;
}
.scroll-bar.is-on b { opacity: 1; }


/* =========================================
   ١٨) زر الكبسولة: يرجعك فوق 🚀
   ========================================= */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 50px; height: 62px; border: 0; padding: 0; cursor: pointer; background: none;
  opacity: 0; translate: 0 30px; scale: .6; pointer-events: none;
  transition: opacity .35s, translate .45s var(--ease-bounce), scale .45s var(--ease-bounce);
  filter: drop-shadow(0 8px 12px rgba(122, 26, 44, .28));
}
.to-top.is-on { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.to-top svg { width: 100%; height: 100%; display: block; overflow: visible; }
.to-top .tt-leaf { transform-origin: 25px 14px; animation: tt-wave 2.6s ease-in-out infinite; }
.to-top:hover .tt-body { animation: tt-wiggle .5s ease-in-out; }
.to-top .tt-puff { opacity: 0; }
.to-top.is-fly { animation: tt-fly .8s cubic-bezier(.5, -0.4, .7, 1) forwards; }
.to-top.is-fly .tt-puff { animation: tt-puff .5s ease-out .1s 2 both; }
.to-top-tip {
  position: absolute; right: 58px; top: 50%; translate: 0 -50%;
  background: var(--maroon); color: var(--cream); font-size: .8rem; font-weight: 700;
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.to-top:hover .to-top-tip { opacity: 1; }
@keyframes tt-wave   { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
@keyframes tt-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 70% { transform: rotate(8deg); } }
@keyframes tt-fly    { 0% { translate: 0 0; } 25% { translate: 0 8px; } 100% { translate: 0 -110vh; } }
@keyframes tt-puff   { from { opacity: .9; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(16px) scale(1.4); } }
@media (max-width: 760px) {
  .to-top { right: 12px; bottom: 72px; width: 42px; height: 54px; }
  .to-top-tip { display: none; }
}


/* =========================================
   ١٩) الوادي الحي فوق الفوتر: الكبسولات تنزل والأشجار تطلع 🌳
   ========================================= */
.valley {
  position: relative; height: 150px; margin-top: 40px; overflow: hidden;
  background: linear-gradient(transparent 40%, rgba(196,122,74,.08));
}
.valley-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; }
.valley-hills .h1 { fill: #e8c7a0; }
.valley-hills .h2 { fill: #d9a777; }
.valley-hills .h3 { fill: var(--maroon); }
.valley-hills .h2g { fill: #8fbf7f; opacity: 0; transition: opacity 2.4s ease 1.6s; }
.valley.is-grown .valley-hills .h2g { opacity: .55; }
.v-tree {
  position: absolute; bottom: 26px; width: 64px; height: 80px; margin-left: -32px;
  transform-origin: 50% 100%; transform: scale(0);
  transition: transform 1s var(--ease-bounce);
}
.v-tree svg { width: 100%; height: 100%; display: block; overflow: visible; }
.v-tree .crown { transform-origin: 32px 70px; animation: v-sway 4.5s ease-in-out infinite; }
.v-cap {
  position: absolute; bottom: 30px; width: 14px; height: 18px; margin-left: -7px;
  border-radius: 50% 50% 46% 46%; background: linear-gradient(var(--copper) 60%, var(--brown) 60%);
  opacity: 0; transform: translateY(-140px);
}
.valley.is-grown .v-cap { animation: v-drop .7s cubic-bezier(.5, 0, .7, 1.4) both, v-hide .3s ease forwards; }
.valley.is-grown .v-tree { transform: scale(var(--s, 1)); }
.v-bird {
  position: absolute; top: 28px; width: 22px; height: 10px; opacity: 0;
}
.v-bird svg { width: 100%; height: 100%; display: block; }
.valley.is-grown .v-bird { animation: v-fly 14s linear infinite; }
.v-bird path { animation: v-flap .5s ease-in-out infinite alternate; transform-origin: 50% 70%; }
@keyframes v-drop { 0% { opacity: 1; transform: translateY(-140px); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(0) scaleY(.8); } }
@keyframes v-hide { to { opacity: 0; } }
@keyframes v-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes v-fly  { 0% { opacity: 0; translate: 0 0; } 5% { opacity: .8; } 90% { opacity: .8; } 100% { opacity: 0; translate: -110vw 18px; } }
@keyframes v-flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
@media (max-width: 760px) {
  .valley { height: 110px; margin-top: 28px; }
  .v-tree { width: 46px; height: 58px; margin-left: -23px; bottom: 18px; }
  .v-tree.hide-m, .v-cap.hide-m { display: none; }
}
.site-footer { position: relative; }


/* =========================================
   ٢٠) بطاقات المنتجات تميل مع الماوس (كمبيوتر فقط)
   ========================================= */
@media (hover: hover) and (pointer: fine) {
  .product-card.is-tilt {
    transform: perspective(900px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .12s linear, box-shadow .35s;
  }
}


/* =========================================
   ٢١) نوقف الحركات اللي برا الشاشة (عشان الموقع يكون خفيف)
   ========================================= */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }


/* =========================================
   ٢٢) لمسات الجوال
   ========================================= */
.wuddi-live.no-callout { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.wuddi-live { transition: translate .3s var(--ease-bounce), rotate .3s var(--ease-bounce), scale .15s; }
.wuddi-live.is-bigjump { translate: 0 -46px; rotate: 8deg; scale: 1.08; }


/* =========================================
   قائمة الكبسولة (الجوال بس) — الكود في js/capsule-nav.js
   ========================================= */
.cap-nav, .cn-layer { display: none; }
@media (max-width: 760px) {
  .main-nav { display: none !important; }            /* القائمة القديمة اللي تحت */
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .sound-toggle { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(100px + env(safe-area-inset-bottom)); }

  /* ----- الشريط ----- */
  .cap-nav {
    display: grid; grid-template-columns: 1fr 1fr 88px 1fr 1fr; align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 0 4px calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -8px 22px rgba(122, 26, 44, .1);
  }
  .cap-nav::before {          /* الدائرة البيضا ورا الكبسولة */
    content: ""; position: absolute; left: 50%; top: -24px; width: 84px; height: 84px; margin-left: -42px;
    border-radius: 50%; background: #fff; box-shadow: 0 -8px 16px rgba(122, 26, 44, .08);
  }
  .cn-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: .66rem; font-weight: 700; color: #8a4a52; white-space: nowrap; text-decoration: none;
  }
  .cn-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cn-sp { position: absolute; top: -19px; width: 18px; height: 18px; transform-origin: 50% 100%; scale: 0; transition: scale .45s var(--ease-bounce); }
  .cn-tab.on { color: var(--maroon); }
  .cn-tab.on .cn-ic { color: var(--copper-ink); }
  .cn-tab.on .cn-sp { scale: 1; }

  /* ----- الكبسولة ----- */
  .cn-cap {
    position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); width: 80px; height: 96px; margin-left: -40px;
    border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent;
    animation: cn-breathe 3.2s ease-in-out infinite;
  }
  .cn-cap svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 8px 10px rgba(92, 18, 32, .32)); }
  .cn-cap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 40px; }
  .cn-lid  { transform-origin: 14px 62px; transition: transform .55s var(--ease-bounce); }
  .cn-leaf { transform-origin: 40px 30px; animation: cn-sway 2.6s ease-in-out infinite; }
  .cn-rays { transform-origin: 40px 58px; opacity: 0; scale: .4; transition: opacity .3s, scale .5s var(--ease-bounce); }
  .cn-rays g { transform-origin: 40px 58px; animation: cn-spin 9s linear infinite; }
  .cn-core { transform-origin: 40px 58px; opacity: 0; scale: .5; transition: scale .5s var(--ease-bounce), opacity .2s; }
  .cn-glow { opacity: 0; transition: opacity .3s; }
  .cn-cap.has-here .cn-leaf path { stroke: #3f8a4e; }
  .cn-open .cn-cap { animation: none; }
  .cn-open .cn-lid  { transform: rotate(-30deg) translate(-8px, -4px); }
  .cn-open .cn-rays { opacity: 1; scale: 1; }
  .cn-open .cn-core { opacity: 1; scale: 1.25; }
  .cn-open .cn-glow { opacity: 1; }
  .cn-cap.is-hop { animation: cn-hop .7s var(--ease-bounce); }

  .cn-hint {
    position: absolute; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); translate: -50% 8px;
    background: var(--maroon); color: var(--cream); font-weight: 800; font-size: .85rem;
    padding: 6px 14px; border-radius: 14px; white-space: nowrap; opacity: 0; transition: .35s; pointer-events: none;
  }
  .cn-hint::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--maroon); }
  .cn-hint.on { opacity: 1; translate: -50% 0; }

  /* ----- اللي يطلع لما تنفتح ----- */
  .cn-layer { display: block; position: fixed; inset: 0; z-index: 74; pointer-events: none; }
  .cn-dim {
    position: absolute; inset: 0; background: rgba(59, 16, 24, .5);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s;
  }
  .cn-open .cn-dim { opacity: 1; pointer-events: auto; }
  .cn-open .wuddi-say { opacity: 0 !important; }
  .cn-halo {
    position: absolute; left: 50%; bottom: calc(-120px + env(safe-area-inset-bottom)); width: 400px; height: 400px; margin-left: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,231,163,.95) 0 22%, rgba(242,179,61,.55) 38%, rgba(242,179,61,.18) 56%, rgba(242,179,61,0) 70%);
    scale: 0; opacity: 0; transition: scale .55s var(--ease-bounce), opacity .3s;
  }
  .cn-halo::after { content: ""; position: absolute; inset: 66px; border-radius: 50%; border: 2px dashed rgba(255, 246, 230, .55); animation: cn-spin 26s linear infinite; }
  .cn-open .cn-halo { scale: 1; opacity: 1; }

  .cn-fan { position: absolute; left: 50%; bottom: calc(158px + env(safe-area-inset-bottom)); width: 0; height: 0; }
  .cn-bub {
    position: absolute; left: 0; top: 0; width: 66px; margin: -33px;
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
    opacity: 0; scale: .2; pointer-events: none;
    transition: translate .55s var(--ease-bounce), scale .55s var(--ease-bounce), opacity .2s;
    transition-delay: calc(var(--i) * 55ms);
  }
  .cn-c {
    width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg); color: var(--fg); border: 3px solid var(--cream);
    box-shadow: 0 10px 18px rgba(59, 16, 24, .3); transition: scale .2s;
  }
  .cn-c .cn-ic { width: 26px; height: 26px; }
  .cn-t { background: var(--cream); color: var(--maroon); font-size: .68rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 10px rgba(59, 16, 24, .18); }
  .cn-bub.is-here .cn-c { box-shadow: 0 0 0 4px var(--gold), 0 10px 18px rgba(59, 16, 24, .3); }
  .cn-bub:active .cn-c { scale: .9; }
  .cn-open .cn-bub { opacity: 1; scale: 1; pointer-events: auto; }
  .cn-open .cn-bub:nth-child(1) { translate: -104px -4px; }
  .cn-open .cn-bub:nth-child(2) { translate: 0 -82px; }
  .cn-open .cn-bub:nth-child(3) { translate: 104px -4px; }

  .cn-burst { position: absolute; left: 50%; bottom: calc(66px + env(safe-area-inset-bottom)); width: 0; height: 0; }
  .cn-burst i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); animation: cn-fly .9s cubic-bezier(.2, .7, .4, 1) forwards; }
  .cn-burst svg { width: 100%; height: 100%; display: block; }
}
/* اللعبة بالعرض: نخفي القائمة */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 520px) {
  .game-page .cap-nav, .game-page .cn-layer { display: none !important; }
}
@keyframes cn-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes cn-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes cn-spin { to { transform: rotate(360deg); } }
@keyframes cn-hop { 0% { translate: 0 0; } 35% { translate: 0 -22px; rotate: -8deg; } 65% { translate: 0 0; rotate: 5deg; } 100% { translate: 0 0; rotate: 0deg; } }
@keyframes cn-fly { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; } }


/* =========================================
   وُدّي يمشي (القائمة اللي فوق في الكمبيوتر) — الكود في js/wuddi-walk.js
   ========================================= */
.ww-strip, .ww-ic { display: none; }
@media (min-width: 761px) {
  .site-header.has-walker .header-inner { max-width: 1260px; height: 74px; }
  .site-header.has-walker .main-nav { gap: 4px; }
  .site-header.has-walker .main-nav a {
    display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 12px;
    font-size: .9rem; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s;
  }
  .site-header.has-walker .main-nav a::after { display: none; }      /* نشيل الخط الذهبي القديم */
  .site-header.has-walker .main-nav a:hover { background: #f6e7cf; }
  .site-header.has-walker .main-nav a.active { color: var(--maroon); background: #fff; box-shadow: 0 6px 14px rgba(122, 26, 44, .12); }
  .ww-ic { display: block; width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .ww-strip { display: block; position: relative; height: 64px; margin-top: -6px; pointer-events: none; }
  .ww-scene, .ww-land { position: absolute; left: 0; bottom: 0; display: block; overflow: visible; }
  .ww-green { transition: opacity 1.6s ease .2s; }
  .ww-it { transform-box: fill-box; transform-origin: 50% 100%; }
  .ww-it.grow { animation: ww-grow .9s var(--ease-bounce) both; }
  .ww-flag { transform-box: fill-box; transform-origin: 0 50%; animation: ww-wave 1.6s ease-in-out infinite; }
  .ww-shine { animation: ww-flow 2.4s linear infinite; }
  .ww-birds { animation: ww-birds 9s ease-in-out infinite alternate; }
  .ww-walker {
    position: absolute; bottom: 9px; width: 38px; margin-left: -19px; left: 0;
    transition-property: left; transition-timing-function: cubic-bezier(.45, 0, .3, 1); transition-duration: .8s;
  }
  .ww-walker img { width: 100%; display: block; transform-origin: 50% 100%; }
  .ww-walker.flip img { scale: -1 1; }
  .ww-walker.walk img { animation: ww-step .24s ease-in-out infinite alternate; }
  .ww-walker.pop img { animation: ww-pop .7s var(--ease-bounce) both; }
  .ww-say {
    position: absolute; bottom: 45%; left: calc(100% + 4px); translate: 4px 0;
    background: var(--maroon); color: var(--cream); font-size: .75rem; font-weight: 800;
    padding: 3px 10px; border-radius: 10px; white-space: nowrap; opacity: 0; transition: opacity .25s, translate .25s;
  }
  .ww-say.on { opacity: 1; translate: 0 0; }
  .ww-say::before { content: ""; position: absolute; right: 100%; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--maroon); }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .ww-ic { display: none; }                         /* الشاشات الصغيرة: بدون أيقونات عشان تكفي */
  .site-header.has-walker .main-nav a { padding: 7px 6px; font-size: .86rem; }
}
@keyframes ww-step { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-5px) rotate(5deg); } }
@keyframes ww-grow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ww-wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-8deg) scaleX(.9); } }
@keyframes ww-flow { to { stroke-dashoffset: -40; } }
@keyframes ww-birds { from { transform: translateX(0); } to { transform: translateX(-160px); } }
@keyframes ww-pop { from { transform: translateY(30px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }


/* =========================================
   ٢٣) اكتشف سر الكبسولة (الرئيسية) — js/seed-lab.js
   ========================================= */
.seed-sec { padding: 72px 0 80px; text-align: center; overflow: hidden; }
.seed-lab {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  margin-top: 26px; text-align: start;
}
.sl-stage {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto;
  border-radius: 230px 230px 34px 34px; cursor: pointer; outline: none;
  background:
    radial-gradient(circle at 50% 44%, #fffaf1 0 30%, transparent 62%),
    radial-gradient(circle at 50% 120%, #e9c9a0 0 40%, transparent 70%),
    linear-gradient(#fbe9cf, #f3d6b2);
  box-shadow: inset 0 0 0 1px #f1dcc0, 0 22px 50px rgba(122, 26, 44, 0.12);
  perspective: 900px; -webkit-tap-highlight-color: transparent; user-select: none;
}
.sl-stage::after { /* خط سدو صغير تحت */
  content: ""; position: absolute; inset: auto 22px 14px; height: 8px; border-radius: 6px; opacity: 0.55;
  background: repeating-linear-gradient(90deg, var(--maroon) 0 14px, var(--gold) 14px 20px, var(--copper) 20px 34px, var(--cream) 34px 38px);
}
.sl-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--gold), 0 22px 50px rgba(122, 26, 44, 0.12); }
.sl-svg { width: 100%; height: 100%; display: block; overflow: visible; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s ease-out; }
.sl-ring {
  position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 3px solid rgba(242, 179, 61, 0.7); pointer-events: none;
  animation: slRing 2.2s ease-out infinite;
}
@keyframes slRing { 0% { scale: 0.92; opacity: 0.9; } 100% { scale: 1.32; opacity: 0; } }
.seed-lab:not([data-step="0"]) .sl-ring { display: none; }

/* القطع كلها تتحرك من مركزها */
.sl-svg g, .sl-svg path, .sl-svg ellipse { transform-box: fill-box; }
.sl-top-in, .sl-bottom-in, .sl-seed-in, .sl-face, .sl-glow, .sl-shadow { transform-origin: center; transition: transform 0.9s var(--ease-bounce), opacity 0.6s; }

/* ٠) مسكّرة: تتنفس */
.seed-lab[data-step="0"] .sl-top, .seed-lab[data-step="0"] .sl-bottom, .seed-lab[data-step="0"] .sl-seed { animation: slBob 3.2s ease-in-out infinite; }
.seed-lab[data-step="0"] .sl-stage:hover .sl-top-in { transform: translateY(-4px) rotate(-1.5deg); }
@keyframes slBob { 50% { transform: translateY(-9px); } }
.seed-lab[data-step="0"] .sl-shadow { animation: slShadow 3.2s ease-in-out infinite; }
@keyframes slShadow { 50% { transform: scaleX(0.9); opacity: 0.16; } }
.sl-glow { opacity: 0; transform: scale(0.6); }
.sl-face { opacity: 0; }
.sl-crack { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s ease-out, opacity 0.3s; }
.sl-seed-in { opacity: 0; transform: translateY(10px) scale(0.6); }
.sl-seed-glow { opacity: 0.8; }
.sl-stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sl-leaf { transform: scale(0); }
.sl-leaf-a { transform-origin: 100% 100%; }
.sl-leaf-b { transform-origin: 0% 100%; }
.sl-drop { opacity: 0; }
.sl-crumbs circle { opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ١) تنفتح */
.seed-lab:not([data-step="0"]) .sl-crack { stroke-dashoffset: 0; }
.seed-lab:not([data-step="0"]) .sl-top-in { transform: translate(-46px, -92px) rotate(-24deg); transition-delay: 0.28s; }
.seed-lab:not([data-step="0"]) .sl-bottom-in { transform: translate(0, 18px); transition-delay: 0.28s; }
.seed-lab:not([data-step="0"]) .sl-face { opacity: 1; transition-delay: 0.32s; }
.seed-lab:not([data-step="0"]) .sl-seed-in { opacity: 1; transform: translateY(4px) scale(1); transition-delay: 0.5s; }
.seed-lab:not([data-step="0"]) .sl-glow { opacity: 1; transform: scale(1); transition-delay: 0.5s; }
.seed-lab:not([data-step="0"]) .sl-shadow { transform: scaleX(1.12); }
.seed-lab[data-step="1"] .sl-crumbs circle { animation: slCrumb 0.9s 0.3s ease-out both; }
.sl-crumbs circle:nth-child(1) { --dx: -40px; --dy: -30px; }
.sl-crumbs circle:nth-child(2) { --dx: 44px; --dy: -22px; }
.sl-crumbs circle:nth-child(3) { --dx: -20px; --dy: -46px; }
.sl-crumbs circle:nth-child(4) { --dx: 26px; --dy: -50px; }
.sl-crumbs circle:nth-child(5) { --dx: -60px; --dy: 10px; }
.sl-crumbs circle:nth-child(6) { --dx: 58px; --dy: 16px; }
@keyframes slCrumb {
  0% { opacity: 1; transform: translate(0, 0); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 90px)); }
}
.seed-lab[data-step="1"] .sl-seed-in { animation: slSeedHop 2.4s 1.4s ease-in-out infinite; }
@keyframes slSeedHop { 0%, 100% { transform: translateY(4px) scale(1); } 50% { transform: translateY(-6px) scale(1.06); } }

/* ٢) نقرّب على البذرة */
.seed-lab[data-step="2"] .sl-seed-in { transform: translateY(-46px) scale(2.5); transition-delay: 0s; }
.seed-lab[data-step="2"] .sl-top-in { transform: translate(-70px, -110px) rotate(-30deg); opacity: 0.35; transition-delay: 0s; }
.seed-lab[data-step="2"] .sl-bottom-in { opacity: 0.45; transform: translate(0, 34px); transition-delay: 0s; }
.seed-lab[data-step="2"] .sl-glow { transform: translateY(-40px) scale(1.25); }
.seed-lab[data-step="2"] .sl-coat { stroke-dasharray: 0.35 0.65; animation: slCoat 2.6s linear infinite; }
.sl-coat { opacity: 0; transition: opacity 0.4s; }
.seed-lab[data-step="2"] .sl-coat { opacity: 1; }
.sl-coat { stroke-dasharray: 0.35 0.65; }
@keyframes slCoat { to { stroke-dashoffset: -1; } }

.sl-call {
  position: absolute; z-index: 2; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  background: #fff; color: var(--maroon); box-shadow: 0 8px 20px rgba(94, 42, 28, 0.16); white-space: nowrap;
  opacity: 0; scale: 0.6; transition: opacity 0.35s, scale 0.45s var(--ease-bounce); pointer-events: none;
}
.sl-call::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.3); }
.sl-call-1 { left: 6%; top: 20%; }  .sl-call-1::before { right: -16px; top: 50%; translate: 0 -50%; }
.sl-call-2 { right: 5%; top: 31%; } .sl-call-2::before { left: -16px; top: 50%; translate: 0 -50%; }
.sl-call-3 { left: 10%; top: 50%; } .sl-call-3::before { right: -16px; top: 50%; translate: 0 -50%; }
.seed-lab[data-step="2"] .sl-call { opacity: 1; scale: 1; }
.seed-lab[data-step="2"] .sl-call-1 { transition-delay: 0.45s; }
.seed-lab[data-step="2"] .sl-call-2 { transition-delay: 0.6s; }
.seed-lab[data-step="2"] .sl-call-3 { transition-delay: 0.75s; }

/* ٣) نسقيها وتنبت */
.seed-lab[data-step="3"] .sl-seed-in { transform: translateY(6px) scale(0.92); transition-delay: 0s; }
.seed-lab[data-step="3"] .sl-glow { transform: translateY(-50px) scale(1.15); opacity: 0.8; }
.seed-lab[data-step="3"] .sl-drop { animation: slDrop 0.75s ease-in both; }
.seed-lab[data-step="3"] .sl-drop.d2 { animation-delay: 0.18s; }
.seed-lab[data-step="3"] .sl-drop.d3 { animation-delay: 0.34s; }
@keyframes slDrop {
  0% { opacity: 0; transform: translateY(-30px); }
  15% { opacity: 1; }
  85% { opacity: 1; transform: translateY(150px) scale(1, 1.1); }
  100% { opacity: 0; transform: translateY(160px) scale(1.6, 0.3); }
}
.seed-lab[data-step="3"] .sl-stem { transition: stroke-dashoffset 1.1s 0.9s ease-out; stroke-dashoffset: 0; }
.seed-lab[data-step="3"] .sl-leaf { transition: transform 0.8s var(--ease-bounce); transform: scale(1); }
.seed-lab[data-step="3"] .sl-leaf-a { transition-delay: 1.65s; }
.seed-lab[data-step="3"] .sl-leaf-b { transition-delay: 1.85s; }
.seed-lab[data-step="3"] .sl-sprout { animation: slSway 3.6s 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes slSway { 50% { transform: rotate(2.5deg); } }
.sl-tag {
  position: absolute; z-index: 2; left: 50%; bottom: 12%; translate: -50% 0; display: inline-flex; gap: 8px; align-items: center;
  padding: 7px 14px 7px 12px; border-radius: 12px; background: var(--maroon); color: var(--cream); font-size: 0.9rem; white-space: nowrap;
  box-shadow: 0 10px 22px rgba(122, 26, 44, 0.3); opacity: 0; scale: 0.5; rotate: -6deg;
  transition: opacity 0.3s, scale 0.5s var(--ease-bounce), rotate 0.5s var(--ease-bounce); pointer-events: none;
}
.sl-tag b { font-family: monospace; letter-spacing: 1px; color: var(--gold); direction: ltr; }
.seed-lab[data-step="3"] .sl-tag { opacity: 1; scale: 1; rotate: -3deg; transition-delay: 2.3s; }

.sl-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 5.5%; translate: -50% 0; padding: 6px 16px; border-radius: 999px;
  background: var(--gold); color: var(--maroon); font-weight: 700; font-size: 0.95rem; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 16px rgba(242, 179, 61, 0.45); animation: slHint 1.6s ease-in-out infinite;
}
.seed-lab[data-step="3"] .sl-hint { bottom: auto; top: 4%; background: #fff; box-shadow: 0 6px 16px rgba(94, 42, 28, 0.15); }
@keyframes slHint { 50% { transform: translateY(-5px); } }

/* البطاقة */
.sl-dots { list-style: none; display: flex; gap: 10px; margin-bottom: 16px; }
.sl-dots button {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid #ecd2ae; background: #fff; color: var(--brown);
  font: 700 1rem var(--font-body); cursor: pointer; transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-bounce), border-color 0.3s;
}
.sl-dots button.is-done { background: #f7e5c8; border-color: var(--copper); color: var(--maroon); }
.sl-dots button.is-on { background: var(--maroon); border-color: var(--maroon); color: var(--cream); transform: scale(1.12); }
.sl-card {
  background: #fff; border: 1px solid #f1dcc0; border-radius: 28px; padding: 26px 26px 24px; min-height: 280px;
  box-shadow: 0 16px 36px rgba(122, 26, 44, 0.08);
}
.sl-card.is-in > * { animation: slIn 0.55s var(--ease-bounce) both; }
.sl-card.is-in > *:nth-child(2) { animation-delay: 0.05s; }
.sl-card.is-in > *:nth-child(3) { animation-delay: 0.1s; }
.sl-card.is-in > *:nth-child(4) { animation-delay: 0.15s; }
.sl-card.is-in > *:nth-child(5) { animation-delay: 0.2s; }
@keyframes slIn { from { opacity: 0; transform: translateY(14px); } }
.sl-kicker { color: var(--copper-ink); font-weight: 700; font-size: 0.95rem; }
.sl-card h3 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1.3; margin: 2px 0 8px; }
.sl-card p { opacity: 0.9; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.sl-chips span {
  padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid #f1dcc0; font-weight: 700; font-size: 0.9rem;
  animation: slChip 0.5s calc(0.25s + var(--i) * 0.1s) var(--ease-bounce) both;
}
@keyframes slChip { from { opacity: 0; transform: scale(0.6); } }
.sl-card .btn { margin-top: 14px; }

@media (max-width: 860px) {
  .seed-lab { grid-template-columns: 1fr; gap: 22px; }
  .sl-stage { max-width: 380px; }
  .sl-card { min-height: 0; padding: 22px 20px; }
  .sl-card h3 { font-size: 1.7rem; }
  .sl-call { font-size: 0.8rem; padding: 5px 10px; }
  .sl-dots { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .seed-lab *, .seed-lab *::before { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
}

/* بطاقة «كبسولات جديدة في الطريق» */
.soon-art {
  aspect-ratio: 4 / 3; margin: 14px; border-radius: 140px 140px 24px 24px; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #fbefdc 0 14px, #f6e3c6 14px 28px); border: 2px dashed #e2c49c;
}
.soon-art span { font-size: 4.2rem; animation: halo 3s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(94, 42, 28, 0.18)); }
.soon-card { opacity: 0.96; }
@media (max-width: 860px) {
  .seed-lab[data-step="2"] .sl-top-in { transform: translate(-56px, -86px) rotate(-30deg); }
  .seed-lab:not([data-step="0"]):not([data-step="2"]) .sl-top-in { transform: translate(-40px, -70px) rotate(-22deg); }
}


/* =========================================
   ٢٤) خانة «تتبّع» (scan.html) — js/track.js
   ========================================= */
.trk { padding: 10px 0 80px; scroll-margin-top: 90px; }
.trk-tabs {
  display: flex; gap: 8px; padding: 8px; margin: 0 auto 22px; width: fit-content; max-width: 100%;
  background: #fff; border: 1px solid #f1dcc0; border-radius: 999px; box-shadow: 0 10px 26px rgba(122, 26, 44, 0.08);
  overflow-x: auto; scrollbar-width: none;
}
.trk-tabs::-webkit-scrollbar { display: none; }
.trk-tabs button {
  flex: none; border: 0; background: transparent; color: var(--maroon); font: 700 1rem var(--font-body);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-bounce);
}
.trk-tabs button:hover { background: var(--cream); }
.trk-tabs button.is-on { background: var(--maroon); color: var(--cream); transform: scale(1.04); }
.trk-panel.is-in > * { animation: slIn 0.5s var(--ease-bounce) both; }
.trk-demo {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #fff1c7; color: var(--brown); border: 1px dashed #e2c49c;
}
.trk-panel h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.3; }
.trk-panel h4 { margin: 18px 0 8px; font-size: 1.05rem; }

/* هوية النبتة */
.pid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.pid-card {
  position: relative; text-align: center; padding: 22px 22px 20px; border-radius: 170px 170px 28px 28px;
  background: linear-gradient(#fff, #fff8ec); border: 1px solid #f1dcc0; box-shadow: 0 16px 36px rgba(122, 26, 44, 0.1);
}
.pid-card .trk-demo { position: absolute; top: 14px; left: 14px; }
.pid-pet {
  position: relative; width: 210px; margin: 18px auto 0; aspect-ratio: 200/180; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #e7f3dc 0 45%, transparent 70%);
}
.pet-svg { width: 100%; height: 100%; display: block; }
.pet-sway { transform-origin: 100px 98px; animation: petSway 3.4s ease-in-out infinite; }
@keyframes petSway { 50% { transform: rotate(4deg); } }
.pid-mood {
  position: absolute; top: 4px; right: -6px; padding: 4px 10px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 6px 14px rgba(94, 42, 28, 0.15); animation: slHint 2s ease-in-out infinite;
}
.pid-scan { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; opacity: 0; }
.pid-pet.is-scanning .pid-scan {
  opacity: 1; border: 3px solid var(--gold);
  background: linear-gradient(transparent 45%, rgba(242, 179, 61, 0.55) 50%, transparent 55%) 0 0 / 100% 200%;
  animation: pidScan 0.9s linear infinite;
}
@keyframes pidScan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.pid-code { font-family: monospace; font-weight: 700; letter-spacing: 2px; color: var(--copper-ink); margin-top: 6px; }
.pid-card h3 { font-size: 2.1rem; }
.pid-place { opacity: 0.85; }
.pid-health { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 700; }
.pid-health b { flex: 1; height: 12px; border-radius: 99px; background: #f1e3cf; overflow: hidden; }
.pid-health i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--green)); animation: pidBar 1.2s 0.3s var(--ease-bounce) both; }
@keyframes pidBar { from { width: 0; } }
.pid-health em { font-style: normal; color: var(--green); }
.pid-check { width: 100%; }
.pid-check.is-done { background: var(--green); }
.pid-note { font-size: 0.85rem; opacity: 0.7; margin-top: 8px; }
.pid-side { background: #fff; border: 1px solid #f1dcc0; border-radius: 28px; padding: 22px; }
.pid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pid-stats div { background: var(--cream); border-radius: 18px; padding: 12px 10px; text-align: center; }
.pid-stats b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--maroon); }
.pid-stats span { font-size: 0.82rem; opacity: 0.8; }
.pid-stages { display: flex; gap: 4px; margin-top: 14px; }
.pid-stages span { flex: 1; text-align: center; font-size: 0.78rem; font-weight: 700; padding: 6px 4px; border-radius: 10px; background: #f4ece0; color: #b49a7c; }
.pid-stages .is-done { background: #dcefd9; color: #3f8a4d; }
.pid-stages .is-on { background: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(78, 159, 93, 0.35); }
.pid-log { list-style: none; position: relative; padding-right: 4px; }
.pid-log::before { content: ""; position: absolute; right: 21px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(#e2c49c 0 6px, transparent 6px 10px); }
.pid-log li { position: relative; display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.pid-log li > span { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); border: 2px solid #f1dcc0; z-index: 1; }
.pid-log small { display: block; opacity: 0.65; font-size: 0.8rem; }
.pid-camp { margin-top: 10px; font-weight: 700; color: var(--brown); }
.pid-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pid-pick button {
  border: 1px solid #f1dcc0; background: #fff; border-radius: 999px; padding: 7px 14px; font: 700 0.92rem var(--font-body); color: var(--maroon); cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), background 0.3s;
}
.pid-pick button:hover { transform: translateY(-2px); background: var(--cream); }
.pid-pick button.is-on { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.pid-pick small { opacity: 0.7; font-family: monospace; }
.trk-empty { text-align: center; background: #fff; border-radius: 28px; padding: 30px; border: 1px solid #f1dcc0; }
.trk-empty .pid-pick { justify-content: center; margin-top: 12px; }
.trk-big { font-size: 3rem; }

/* لوّن الحقل */
.fld { background: #fff; border: 1px solid #f1dcc0; border-radius: 28px; padding: 24px; }
.fld-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.fld-head h3 { font-size: 2rem; margin-top: 4px; }
.fld-ring {
  flex: none; width: 118px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(#fff 0 58%, transparent 59%), conic-gradient(var(--green) calc(var(--p) * 1%), #f1e3cf 0);
  transition: background 0.4s;
}
.fld-ring b { font-family: var(--font-title); font-weight: 400; font-size: 1.8rem; line-height: 1; color: var(--green); }
.fld-ring span { font-size: 0.85rem; font-weight: 700; }
.fld-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 12px; font-weight: 700; font-size: 0.92rem; }
.fld-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; vertical-align: -1px; }
.fld-legend b { color: var(--copper-ink); }
.fld-grid { display: grid; gap: 5px; padding: 14px; border-radius: 20px; background: linear-gradient(#f6e6cc, #efd9b8); overflow-x: auto; }
.fld-row { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(14px, 1fr)); gap: 5px; align-items: center; }
.fld-qr { font-size: 0.72rem; font-weight: 700; text-align: center; background: var(--maroon); color: var(--cream); border-radius: 6px; padding: 2px 0; }
.fld-dot {
  aspect-ratio: 1; width: 100%; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 45%), var(--c);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease-bounce);
}
.fld-dot:hover { transform: scale(1.3); }
.fld-dot.is-pop { animation: fldPop 0.4s var(--ease-bounce); }
@keyframes fldPop { 40% { transform: scale(1.6); } }
.fld-dot.is-pick { outline: 3px solid var(--maroon); outline-offset: 2px; animation: fldPick 1s ease-in-out infinite; }
@keyframes fldPick { 50% { transform: scale(1.35); } }
.fld-actions { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.fld-msg { flex: 1; min-width: 220px; font-size: 0.92rem; opacity: 0.85; }
.fld-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.fld-steps li { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 16px; padding: 10px 12px; font-weight: 700; font-size: 0.92rem; }
.fld-steps b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); }

/* الشهادة */
.cert-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; }
.cert {
  position: relative; text-align: center; padding: 34px 30px 26px; border-radius: 22px; background: #fffaf1;
  border: 10px solid transparent;
  background: linear-gradient(#fffaf1, #fffaf1) padding-box,
              repeating-linear-gradient(90deg, var(--maroon) 0 16px, var(--gold) 16px 22px, var(--copper) 22px 38px, var(--cream) 38px 42px) border-box;
  box-shadow: 0 20px 44px rgba(122, 26, 44, 0.16);
}
.cert .trk-demo { position: absolute; top: 12px; left: 12px; }
.cert-logo { width: 74px; margin: 0 auto 6px; }
.cert-kicker { color: var(--copper-ink); font-weight: 700; letter-spacing: 0.5px; }
.cert h3 { font-size: 2rem; margin: 2px 0 10px; }
.cert-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 2px dashed #ecd2ae; text-align: start; }
.cert-foot small { display: block; opacity: 0.7; }
.cert-qr { width: 76px; background: #fff; padding: 6px; border-radius: 10px; box-shadow: 0 4px 12px rgba(94, 42, 28, 0.12); }
.cert-qr-svg { width: 100%; display: block; }
.cert-side h3 { font-size: 1.9rem; margin-bottom: 8px; }
.cert-side .btn { margin-top: 14px; }
.cert-msg { margin-top: 8px; font-weight: 700; color: var(--green); word-break: break-all; }

/* كيف نقيس */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-grid article {
  background: #fff; border: 1px solid #f1dcc0; border-radius: 120px 120px 24px 24px; padding: 26px 18px 22px; text-align: center;
  animation: slIn 0.6s calc(var(--i) * 0.08s) var(--ease-bounce) both; transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
}
.how-grid article:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(122, 26, 44, 0.12); }
.how-grid article > span { font-size: 2.2rem; display: block; }
.how-grid h3 { font-size: 1.45rem; margin: 6px 0; }
.how-grid p { font-size: 0.95rem; opacity: 0.88; }
.how-trial { display: flex; gap: 20px; align-items: center; margin-top: 20px; padding: 22px 26px; border-radius: 28px; background: var(--maroon); color: var(--cream); }
.how-trial img { width: 110px; flex: none; }
.how-trial .eyebrow { color: var(--gold); }
.how-trial h3 { font-size: 1.9rem; }

@media (max-width: 900px) {
  .pid, .cert-wrap { grid-template-columns: 1fr; }
  .pid-card { max-width: 380px; margin-inline: auto; width: 100%; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .fld-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trk-tabs { width: 100%; border-radius: 22px; }
  .trk-tabs button { padding: 9px 13px; font-size: 0.92rem; }
  .fld { padding: 16px; }
  .fld-head { flex-direction: column-reverse; align-items: flex-start; }
  .fld-head h3 { font-size: 1.7rem; }
  .fld-grid { padding: 10px; gap: 4px; }
  .fld-row { grid-template-columns: 26px repeat(var(--cols), minmax(10px, 1fr)); gap: 3px; }
  .fld-qr { font-size: 0.6rem; }
  .how-grid { grid-template-columns: 1fr; }
  .how-trial { flex-direction: column; text-align: center; }
  .pid-stats b { font-size: 1.15rem; }
  .pid-stages span { font-size: 0.68rem; }
  .cert { padding: 30px 18px 20px; }
  .cert h3 { font-size: 1.6rem; }
}
.fld-grid { max-width: 640px; margin-inline: auto; }
@media (max-width: 560px) {
  .trk-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .trk-tabs button.is-on { transform: none; }
}


/* =========================================
   ٢٥) رحلة كبسولة (journey.html) — js/journey.js
   ========================================= */
.journey-page { background: #f7e7d0; }
.jr { position: relative; height: 1000vh; }
.jr-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.jr-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jr-svg #jrFarP { fill: #d8b998; }
.jr-drop { stroke: #e3f2f8; stroke-width: 2.2; stroke-linecap: round; opacity: 0.8; animation: jrRain 0.7s linear infinite; }
@keyframes jrRain { from { transform: translate(0, -60px); } to { transform: translate(-14px, 60px); } }
.jr-bird { fill: none; stroke: #3b2a26; stroke-width: 2.6; stroke-linecap: round; animation: jrFlap 0.5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes jrFlap { to { transform: scaleY(0.4); } }
.jr-flag { animation: jrWave 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes jrWave { 50% { transform: skewY(5deg) scaleX(0.94); } }
#jrFalaj { stroke-dasharray: 1; }
#jrStem, #jrCrack { stroke-dasharray: 1; }

/* النص */
.jr-cap {
  position: absolute; z-index: 2; top: 17%; right: 7%; width: min(440px, 86vw); text-align: start; color: var(--maroon);
  text-shadow: 0 2px 18px rgba(255, 246, 230, 0.9);
}
.jr-cap.is-intro { top: 32%; right: 50%; translate: 50% 0; text-align: center; width: min(640px, 90vw); }
.jr-n { display: inline-block; font-family: var(--font-title); font-size: 1rem; letter-spacing: 3px; color: var(--copper-ink); }
.jr-n:not(:empty)::after { content: ""; display: inline-block; width: 46px; height: 2px; background: currentColor; margin-right: 10px; vertical-align: middle; }
.jr-t { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.15; margin: 4px 0 10px; }
.jr-cap.is-intro .jr-t { font-size: clamp(3rem, 9vw, 6.4rem); letter-spacing: 1px; }
.jr-s { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.8; font-weight: 500; }
.jr-cap.is-in > * { animation: jrIn 0.8s cubic-bezier(.2, .8, .2, 1) both; }
.jr-cap.is-in > :nth-child(2) { animation-delay: 0.07s; }
.jr-cap.is-in > :nth-child(3) { animation-delay: 0.14s; }
@keyframes jrIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }

.jr-down {
  position: absolute; z-index: 2; left: 50%; bottom: 9%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 700; color: var(--maroon); letter-spacing: 1px;
}
.jr-down span { width: 26px; height: 42px; border: 2.5px solid currentColor; border-radius: 99px; position: relative; }
.jr-down span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 5px; height: 9px; margin-left: -2.5px; border-radius: 3px; background: currentColor; animation: jrWheel 1.6s ease-in-out infinite; }
@keyframes jrWheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* الجوال (تتبّع) */
.jr-phone {
  position: absolute; z-index: 2; left: 4%; top: 24%; width: 200px; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 9px;
  background: linear-gradient(145deg, #3b1018, #1c0a0e); box-shadow: 0 30px 60px rgba(59, 16, 24, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08); opacity: 0;
}
.jr-ph-scr { position: relative; height: 100%; border-radius: 26px; background: linear-gradient(#fff8ec, #fbe9cf); overflow: hidden; padding: 30px 14px 14px; text-align: center; }
.jr-ph-scr::before { content: ""; position: absolute; top: 8px; left: 50%; width: 54px; height: 14px; margin-left: -27px; border-radius: 99px; background: #1c0a0e; }
.jr-ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.jr-ph-top small { font-family: monospace; color: var(--copper-ink); }
.jr-ph-pet { width: 96px; height: 96px; margin: 18px auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; background: radial-gradient(#e7f3dc, #d3e8c3); }
.jr-ph-name { font-family: var(--font-title); font-size: 1.5rem; color: var(--maroon); }
.jr-ph-bar { height: 9px; border-radius: 99px; background: #f1e3cf; overflow: hidden; margin: 10px 4px; }
.jr-ph-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.jr-phone.is-ok .jr-ph-bar i { width: 92%; }
.jr-ph-ok { font-size: 0.8rem; font-weight: 700; color: var(--green); opacity: 0; transition: opacity 0.4s 0.6s; }
.jr-phone.is-ok .jr-ph-ok { opacity: 1; }
.jr-ph-scan { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(242, 179, 61, 0.45) 50%, transparent 55%) 0 0 / 100% 220%; animation: pidScan 1.6s linear infinite; }
.jr-phone.is-ok .jr-ph-scan { display: none; }

.jr-days {
  position: absolute; z-index: 2; left: 4%; top: 26%; padding: 12px 22px; border-radius: 20px; background: rgba(255, 250, 241, 0.92); color: var(--maroon);
  font-weight: 700; font-size: 1.1rem; box-shadow: 0 16px 34px rgba(122, 26, 44, 0.14); opacity: 0; backdrop-filter: blur(6px);
}
.jr-days b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; min-width: 3ch; }

.jr-stats {
  position: absolute; z-index: 2; left: 4%; top: 24%; display: flex; gap: 14px; align-items: center; padding: 14px 20px 14px 16px; border-radius: 24px;
  background: rgba(255, 250, 241, 0.92); box-shadow: 0 16px 34px rgba(122, 26, 44, 0.14); opacity: 0; backdrop-filter: blur(6px); font-weight: 700; color: var(--maroon);
}
.jr-ring {
  --p: 0; width: 92px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(#fffaf1 0 58%, transparent 59%), conic-gradient(var(--green) calc(var(--p) * 1%), #f1e3cf 0);
}
.jr-ring b { font-family: var(--font-title); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--green); }
.jr-ring span { font-size: 0.75rem; }
.jr-stats p b { color: var(--green); font-size: 1.2rem; }

.jr-end { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; margin-top: 18px; }
.jr-cap:not(.is-intro) { padding: 22px 26px 24px; border-radius: 28px; background: rgba(255, 250, 241, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(122, 26, 44, 0.08); text-shadow: none; }
.jr-end .btn-outline-light { color: var(--maroon); border-color: var(--maroon); background: rgba(255, 250, 241, 0.75); }

.jr-rail { position: absolute; z-index: 3; left: 22px; top: 50%; translate: 0 -50%; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.jr-rail button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(122, 26, 44, 0.25); cursor: pointer; transition: height 0.4s var(--ease-bounce), background 0.3s; }
.jr-rail button.is-done { background: rgba(122, 26, 44, 0.55); }
.jr-rail button.is-on { height: 30px; background: var(--maroon); }

@media (max-width: 760px) {
  .jr-cap { top: 12%; right: 50%; translate: 50% 0; text-align: center; width: 88vw; }
  .jr-cap.is-intro { top: 22%; }
  .jr-n:not(:empty)::after { display: none; }
  .jr-t { font-size: 2.3rem; }
  .jr-s { font-size: 0.98rem; }
  .jr-phone { left: 50%; top: 37%; width: 130px; margin-left: -65px; border-radius: 24px; padding: 6px; }
  .jr-ph-scr { border-radius: 19px; padding: 22px 8px 8px; }
  .jr-ph-scr::before { width: 36px; height: 10px; margin-left: -18px; top: 6px; }
  .jr-ph-pet { width: 60px; height: 60px; font-size: 2rem; margin: 8px auto 2px; }
  .jr-ph-name { font-size: 1.1rem; }
  .jr-ph-top { font-size: 0.7rem; }
  .jr-ph-ok { font-size: 0.65rem; }
  .jr-days, .jr-stats { left: 50%; top: 44%; translate: -50% 0; }
  .jr-days { text-align: center; }
  .jr-end { justify-content: center; }
  .jr-cap:not(.is-intro) { padding: 14px 16px 16px; }
  .jr-rail { left: 8px; gap: 7px; }
  .jr-rail button { width: 7px; height: 7px; }
  .jr-rail button.is-on { height: 20px; }
}

/* ===== تفاصيل إضافية للكبسولة ===== */
.sl-shine { opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.seed-lab[data-step="0"] .sl-shine { opacity: 1; animation: slBob 3.2s ease-in-out infinite; }
.sl-shine-r { animation: slShine 3.6s ease-in-out infinite; }
@keyframes slShine { 0%, 55% { transform: translateX(-120px) rotate(18deg); } 100% { transform: translateX(330px) rotate(18deg); } }
.sl-shine-r { transform-box: view-box; transform-origin: 200px 210px; }
.sl-dew ellipse { animation: slDew 2.2s var(--d) ease-in-out infinite; transform-origin: center; }
@keyframes slDew { 50% { opacity: 0.25; transform: scale(0.6); } }
.sl-inner { opacity: 0; transition: opacity 0.4s 0.35s; }
.sl-shell { transform-origin: 0% 100%; transition: transform 0.7s 0.3s var(--ease-bounce); }
.seed-lab[data-step="2"] .sl-inner { opacity: 1; }
.seed-lab[data-step="2"] .sl-shell { transform: translate(-2px, -9px) rotate(-22deg); }
.sl-roots path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.seed-lab[data-step="3"] .sl-roots path { transition: stroke-dashoffset 1.4s 1.1s ease-out; stroke-dashoffset: 0; }
.seed-lab[data-step="3"] .sl-roots path:nth-child(n+2) { transition-delay: 1.6s; }
.seed-lab[data-step="3"] .sl-roots path:nth-child(n+4) { transition-delay: 2.1s; }
.sl-ant { opacity: 0; transform: translate(360px, 336px); }
.sl-ant-q { opacity: 0; }
.seed-lab[data-step="1"] .sl-ant { opacity: 1; animation: slAnt 5.5s 1.3s ease-in-out both; }
.seed-lab[data-step="1"] .sl-ant-in { animation: slAntFlip 5.5s 1.3s step-end both; }
.seed-lab[data-step="1"] .sl-ant-q { animation: slAntQ 5.5s 1.3s both; }
.seed-lab[data-step="1"] .sl-ant-body { animation: slAntWalk 0.18s linear infinite; }
@keyframes slAnt { 0% { transform: translate(380px, 338px); } 40%, 52% { transform: translate(286px, 324px); } 100% { transform: translate(420px, 344px); opacity: 0; } }
@keyframes slAntFlip { 0% { transform: scaleX(1); } 52% { transform: scaleX(-1); } }
@keyframes slAntQ { 0%, 38% { opacity: 0; } 42%, 54% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes slAntWalk { 50% { transform: translateY(-0.8px); } }


/* =========================================
   ٢٦) خريطة الحياة (map.html) — js/life-map.js
   ========================================= */
.lm-page { padding: 34px 0 70px; }
.lm-head { text-align: center; }
.lm-head h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.2; }
.lm-head .page-lead { max-width: 640px; margin: 8px auto 0; }
.lm-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; margin: 22px auto 0; }
.lm-stats > div { background: #fff; border: 1px solid #f1dcc0; border-radius: 20px; padding: 12px 8px; box-shadow: 0 8px 20px rgba(122, 26, 44, 0.06); }
.lm-stats b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.lm-stats span { font-size: 0.85rem; font-weight: 700; }
.lm-stats .trk-demo { position: absolute; top: -12px; left: 8px; }

.lm-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: start; margin-top: 30px; }
.lm-mapbox { background: #fff; border: 1px solid #f1dcc0; border-radius: 30px; padding: 14px; box-shadow: 0 16px 36px rgba(122, 26, 44, 0.08); min-width: 0; }
.lm-tools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lm-filters, .lm-zoom { display: flex; gap: 6px; background: var(--cream); padding: 5px; border-radius: 999px; }
.lm-tools button { border: 0; background: transparent; font: 700 0.9rem var(--font-body); color: var(--maroon); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.lm-tools button:hover { background: #fff; }
.lm-filters button.is-on { background: var(--maroon); color: var(--cream); }
.lm-stage { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(#e3f1f4, #d3e8ee); }
.lm-svg { display: block; width: 100%; height: auto; aspect-ratio: 500 / 668; max-height: 76vh; --z: 1; }
.lm-svg .land-other { fill: #efe2cf; stroke: #e0cdb2; stroke-width: calc(1px / var(--z)); }
.lm-oman { fill-rule: evenodd; fill: #f4dcb6; stroke: #c9955e; stroke-width: calc(1.6px / var(--z)); }
.lm-g { animation: lmGrow 1.4s var(--ease-bounce) both; transform-box: fill-box; transform-origin: center; }
@keyframes lmGrow { from { transform: scale(0); opacity: 0; } }
.lm-city { font: 700 11px var(--font-body); fill: #8a5a35; opacity: 0.75; pointer-events: none; font-size: calc(11px / var(--z)); }
.lm-hq-ring { fill: rgba(122, 26, 44, 0.06); stroke: var(--maroon); stroke-width: calc(1.4px / var(--z)); stroke-dasharray: 4 3; animation: lmSpin 30s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lmSpin { to { transform: rotate(360deg); } }
.lm-dot { stroke: #fff; stroke-width: calc(1.3px / var(--z)); cursor: pointer; animation: lmPop 0.6s var(--ease-bounce) both; transform-box: fill-box; transform-origin: center; transition: r 0.2s; r: calc(4.4px / sqrt(var(--z))); }
.lm-dot:hover, .lm-dot:focus-visible { r: calc(5.5px / sqrt(var(--z))); outline: none; }
@keyframes lmPop { from { transform: scale(0); } }
.lm-dot.is-sel { stroke: var(--maroon); stroke-width: calc(2.4px / var(--z)); r: calc(6px / sqrt(var(--z))); }
.lm-camp { cursor: pointer; animation: lmPop 0.7s var(--ease-bounce) both; outline: none; }
.lm-camp > * { transform: scale(calc(1 / sqrt(var(--z)))); }
.lm-camp-bg { fill: #fff; stroke: #f1e3cf; stroke-width: 4; filter: drop-shadow(0 2px 3px rgba(94, 42, 28, 0.3)); }
.lm-camp-ring { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }
.lm-camp-n { font: 700 11px var(--font-body); fill: var(--maroon); }
.lm-camp:hover .lm-camp-bg, .lm-camp.is-sel .lm-camp-bg { fill: #fff6e6; stroke: var(--gold); }
.lm-mydot { cursor: pointer; }
.lm-mydot > * { transform: scale(calc(1 / sqrt(var(--z)))); }
.lm-my-halo { fill: rgba(78, 159, 93, 0.25); animation: lmHalo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lmHalo { to { transform: scale(2.2); opacity: 0; } }
.lm-pin > * { transform: scale(calc(1 / sqrt(var(--z)))); }
.lm-pin.is-drop > * { animation: lmDrop 0.6s var(--ease-bounce) both; }
@keyframes lmDrop { from { translate: 0 -30px; opacity: 0; } }
.lm-stage.is-placing { cursor: crosshair; box-shadow: inset 0 0 0 3px var(--gold); }
.lm-place-hint { position: absolute; top: 12px; left: 50%; translate: -50% 0; background: var(--maroon); color: var(--cream); font-weight: 700; padding: 7px 16px; border-radius: 999px; font-size: 0.9rem; white-space: nowrap; animation: slHint 1.6s ease-in-out infinite; }
.lm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-size: 0.85rem; font-weight: 700; }
.lm-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 5px; vertical-align: -1px; }
.lm-legend .lm-lg-camp { width: 14px; height: 14px; background: #fff; border: 3px solid var(--green); }

.lm-side { position: sticky; top: 100px; min-width: 0; }
.lm-card { background: #fff; border: 1px solid #f1dcc0; border-radius: 28px; padding: 24px; box-shadow: 0 16px 36px rgba(122, 26, 44, 0.08); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; animation: slIn 0.5s var(--ease-bounce) both; }
.lm-card h2 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.lm-intro { align-items: center; text-align: center; }
.lm-wuddi { width: 110px; }
.lm-tip { font-size: 0.88rem; opacity: 0.75; }
.lm-hq-note { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; font-weight: 700; color: var(--brown); background: var(--cream); padding: 6px 12px; border-radius: 999px; }
.lm-hq-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--maroon); }
.lm-back { border: 0; background: none; color: var(--copper-ink); font: 700 0.9rem var(--font-body); cursor: pointer; padding: 0; }
.lm-code { font-family: monospace; font-weight: 700; color: var(--copper-ink); letter-spacing: 1px; }
.lm-area small { opacity: 0.6; }
.lm-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--maroon); }
.lm-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.lm-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.lm-mini div { background: var(--cream); border-radius: 16px; padding: 10px 6px; text-align: center; }
.lm-mini b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.lm-mini span { font-size: 0.8rem; opacity: 0.8; }
.lm-camp-row { display: flex; gap: 16px; align-items: center; width: 100%; }
.lm-camp-row .fld-ring { width: 100px; }
.lm-counts { list-style: none; display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.lm-counts i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.lm-counts b { color: var(--copper-ink); }
.lm-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: 100%; padding: 10px; border-radius: 16px; background: linear-gradient(#f6e6cc, #efd9b8); }
.lm-grid span { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.lm-done { font-weight: 700; color: var(--green); }
.lm-field { display: grid; gap: 6px; width: 100%; font-weight: 700; font-size: 0.92rem; }
.lm-field input { font: 500 1rem var(--font-body); padding: 11px 14px; border-radius: 14px; border: 1.5px solid #ecd2ae; background: var(--cream); color: var(--maroon); }
.lm-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.25); }
.lm-loc { display: flex; gap: 8px; flex-wrap: wrap; }
.lm-loc .btn { padding: 10px 14px; font-size: 0.92rem; }
.lm-loc-msg { font-size: 0.88rem; color: var(--green); font-weight: 700; min-height: 1.2em; }
.lm-loc-msg.is-bad { color: var(--copper-ink); }
.lm-save { width: 100%; }
.lm-save:disabled { opacity: 0.45; cursor: not-allowed; }

.lm-how { margin-top: 60px; text-align: center; }
.lm-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.lm-steps li { background: #fff; border: 1px solid #f1dcc0; border-radius: 120px 120px 24px 24px; padding: 26px 18px 22px; }
.lm-steps span { font-size: 2.2rem; display: block; }
.lm-steps b { font-family: var(--font-title); font-weight: 400; font-size: 1.5rem; }
.lm-privacy { margin: 20px auto 0; max-width: 680px; background: var(--maroon); color: var(--cream); padding: 14px 20px; border-radius: 20px; }

@media (max-width: 900px) {
  .lm-wrap { grid-template-columns: 1fr; }
  .lm-side { position: static; }
  .lm-svg { max-height: none; }
}
@media (max-width: 560px) {
  .lm-stats { grid-template-columns: repeat(2, 1fr); }
  .lm-steps { grid-template-columns: 1fr; }
  .lm-tools { justify-content: center; }
  .lm-tools button { padding: 6px 10px; font-size: 0.82rem; }
  .lm-card { padding: 18px; }
}
.lm-side { scroll-margin-top: 90px; }
.pid-maplink { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green); text-decoration: none; }
.pid-maplink:hover { text-decoration: underline; }


/* =========================================
   ٢٧) تعلّم والعب (learn.html)
   ========================================= */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 50px 80px; }
.learn-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--maroon); background: #fff; border: 1px solid #f1dcc0;
  border-radius: 180px 180px 30px 30px; overflow: hidden; box-shadow: 0 18px 40px rgba(122, 26, 44, 0.08);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s;
}
.learn-card:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 26px 50px rgba(122, 26, 44, 0.16); }
.lc-art { padding: 34px 40px 10px; background: radial-gradient(circle at 50% 70%, #fbe2d0, transparent 70%); }
.lc-game .lc-art { background: radial-gradient(circle at 50% 70%, #e2f0d8, transparent 70%); }
.lc-art svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; transition: transform 0.6s var(--ease-bounce); }
.learn-card:hover .lc-art svg { transform: scale(1.06) rotate(-3deg); }
.lc-game:hover .lc-art svg { transform: rotate(90deg) scale(1.04); }
.lc-body { padding: 10px 28px 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.lc-tag { font-size: 0.85rem; font-weight: 700; color: var(--copper-ink); }
.lc-body h2 { font-family: var(--font-title); font-weight: 400; font-size: 2.2rem; line-height: 1.2; }
.lc-learn { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lc-learn li { font-size: 0.88rem; font-weight: 700; background: var(--cream); border: 1px solid #f1dcc0; padding: 4px 12px; border-radius: 999px; }
.lc-body .btn { margin-top: auto; }
@media (max-width: 760px) { .learn-grid { grid-template-columns: 1fr; padding-block: 30px 60px; } .learn-card { border-radius: 140px 140px 26px 26px; } }


/* =========================================
   ٢٨) لعبة «سنة كاملة في دقيقة» (game.html) — js/year-game.js
   ========================================= */
.yg-page { padding: 34px 0 80px; }
.yg-head { text-align: center; margin-bottom: 22px; }
.yg-head h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.2; }
.yg { max-width: 760px; margin-inline: auto; scroll-margin-top: 90px; }
.yg-card { background: #fff; border: 1px solid #f1dcc0; border-radius: 32px; overflow: hidden; box-shadow: 0 22px 50px rgba(122, 26, 44, 0.12); }
.yg-hud { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 20px; background: var(--maroon); color: var(--cream); }
.yg-month { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yg-m { font-family: var(--font-title); font-size: 1.3rem; white-space: nowrap; }
.yg-dots { list-style: none; display: flex; gap: 6px; }
.yg-dots li { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 246, 230, 0.25); transition: background 0.3s, transform 0.3s var(--ease-bounce); }
.yg-dots li.is-now { background: var(--gold); transform: scale(1.3); }
.yg-dots li.is-good { background: #6bb878; }
.yg-dots li.is-bad { background: #e0805f; }
.yg-health { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.yg-health b { width: 110px; height: 12px; border-radius: 99px; background: rgba(255, 246, 230, 0.2); overflow: hidden; }
.yg-health i { display: block; height: 100%; width: 60%; border-radius: inherit; background: var(--green); transition: width 0.7s var(--ease-bounce), background 0.4s; }
.yg-health em { font-style: normal; min-width: 2ch; font-variant-numeric: tabular-nums; }

.yg-stage { position: relative; --yg-sky-a: #f6d9b8; --yg-sky-b: #fdeed8; --yg-mtn: #d9b48a; --yg-ground: #e3c08e; }
.yg-svg { display: block; width: 100%; height: auto; }
.yg-sky-a { stop-color: var(--yg-sky-a); transition: stop-color 0.8s; }
.yg-sky-b { stop-color: var(--yg-sky-b); transition: stop-color 0.8s; }
.yg-svg path[fill="var(--yg-mtn)"], .yg-svg path[fill="var(--yg-ground)"] { transition: fill 0.8s; }
.yg-stage[data-season="winter"] { --yg-sky-a: #a9d3ec; --yg-sky-b: #eef6f2; --yg-mtn: #c7ae8a; --yg-ground: #d8bb8a; }
.yg-stage[data-season="summer"] { --yg-sky-a: #f6b26b; --yg-sky-b: #ffe4b0; --yg-mtn: #d39a62; --yg-ground: #e6bb7c; }
.yg-stage[data-season="storm"] { --yg-sky-a: #7f8b96; --yg-sky-b: #c3cacd; --yg-mtn: #9f8c74; --yg-ground: #b58f62; }
.yg-stage[data-season="green"] { --yg-sky-a: #86c2e6; --yg-sky-b: #eef7e6; --yg-mtn: #8fb184; --yg-ground: #9ccc6f; }
.yg-sun { transition: opacity 0.6s, transform 0.8s var(--ease-bounce); transform-box: fill-box; transform-origin: center; }
.yg-stage[data-season="summer"] .yg-sun { transform: scale(1.5); }
.yg-stage[data-season="storm"] .yg-sun { opacity: 0; }
.yg-cl { animation: ygCloud 18s linear infinite alternate; }
.yg-cl2 { animation-duration: 24s; }
@keyframes ygCloud { to { transform: translateX(40px); } }
.yg-stage[data-season="storm"] .yg-cl ellipse { fill: #8d979f; }
.yg-rain line { stroke: #e3f2f8; stroke-width: 1.6; stroke-linecap: round; animation: jrRain 0.6s linear infinite; opacity: 0; }
.yg-stage[data-fx="rain"] .yg-rain line { opacity: 0.9; }
.yg-stage[data-fx="drizzle"] .yg-rain line:nth-child(3n) { opacity: 0.7; }
.yg-heat { fill: none; stroke: #fff3d6; stroke-width: 2; opacity: 0; transition: opacity 0.5s; }
.yg-stage[data-fx="heat"] .yg-heat { opacity: 0.7; animation: ygHeat 1.6s ease-in-out infinite; }
@keyframes ygHeat { 50% { transform: translateY(-6px); opacity: 0.3; } }
.yg-goat { opacity: 0; transform: translateX(80px); transition: opacity 0.4s, transform 1.2s ease-out; }
.yg-stage[data-fx="goat"] .yg-goat { opacity: 1; transform: translateX(0); }
.yg-stage[data-fx="goat"].is-fenced .yg-goat { transform: translateX(50px) scaleX(-1); transform-box: fill-box; transform-origin: center; }
.yg-asphalt { opacity: 0; transition: opacity 0.5s; }
.yg-stage[data-place="asphalt"] .yg-asphalt { opacity: 1; }
.yg-fence { opacity: 0; transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform 0.6s var(--ease-bounce), opacity 0.3s; }
.yg-stage.is-fenced .yg-fence { opacity: 1; transform: none; }
.yg-tag { opacity: 0; transform: translateY(-14px); transition: opacity 0.4s, transform 0.6s var(--ease-bounce); }
.yg-stage.is-tagged .yg-tag { opacity: 1; transform: none; }
.yg-plant > g { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: bottom center; transition: opacity 0.4s, transform 0.8s var(--ease-bounce), filter 0.6s; }
.yg-stage[data-stage="0"] .yg-s0, .yg-stage[data-stage="1"] .yg-s1, .yg-stage[data-stage="2"] .yg-s2, .yg-stage[data-stage="3"] .yg-s3 { opacity: 1; transform: none; }
.yg-stage.is-weak .yg-plant > g { filter: saturate(0.25) sepia(0.5); }
.yg-stage.is-weak .yg-plant { transform: rotate(6deg); transform-box: fill-box; transform-origin: bottom center; transition: transform 0.8s; }
.yg-plant { animation: petSway 4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.yg-float { position: absolute; top: 14px; left: 50%; translate: -50% 0; pointer-events: none; }
.yg-float span { display: inline-block; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #fff; animation: ygFloat 1.6s ease-out both; box-shadow: 0 6px 14px rgba(94, 42, 28, 0.15); }
.yg-float .is-good { color: var(--green); }
.yg-float .is-bad { color: #c0502f; }
@keyframes ygFloat { 0% { opacity: 0; transform: translateY(16px) scale(0.7); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

.yg-panel { padding: 22px 24px 26px; }
.yg-q { animation: slIn 0.5s var(--ease-bounce) both; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.yg-q h2 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.yg-intro { align-items: center; text-align: center; }
.yg-kick { color: var(--copper-ink); font-weight: 700; font-size: 0.9rem; }
.yg-opts { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.yg-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; font: 700 1rem var(--font-body); color: var(--maroon);
  background: var(--cream); border: 2px solid #f1dcc0; border-radius: 18px; padding: 12px 16px; cursor: pointer;
  animation: slIn 0.5s var(--d) var(--ease-bounce) both; transition: transform 0.25s var(--ease-bounce), border-color 0.2s, background 0.2s;
}
.yg-opt span { font-size: 1.6rem; flex: none; }
.yg-opt:hover, .yg-opt:focus-visible { transform: translateX(-4px); border-color: var(--gold); background: #fff; outline: none; }
.yg-fb { border-radius: 20px; padding: 16px 18px; }
.yg-fb.is-good { background: #e8f4e2; }
.yg-fb.is-bad { background: #fbe7dc; }
.yg-verdict { font-family: var(--font-title); font-size: 1.6rem; }
.yg-fb.is-good .yg-verdict { color: #3f8a4d; }
.yg-fb.is-bad .yg-verdict { color: #b4492a; }
.yg-why { font-size: 1.05rem; }
.yg-dead { font-weight: 700; }
.yg-cert { display: flex; gap: 12px; align-items: center; background: var(--cream); border: 2px dashed #e2c49c; border-radius: 18px; padding: 12px 16px; width: 100%; }
.yg-cert span { font-size: 2rem; }
.yg-cert small { display: block; opacity: 0.75; }
.yg-result h3 { font-size: 1.1rem; margin-top: 6px; }
.yg-lessons { list-style: none; display: grid; gap: 8px; width: 100%; }
.yg-lessons li { padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; border-inline-start: 4px solid; }
.yg-lessons li.is-good { background: #eef7ea; border-color: var(--green); }
.yg-lessons li.is-bad { background: #fcefe7; border-color: #e0805f; }
.yg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 560px) {
  .yg-hud { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
  .yg-month { justify-content: space-between; }
  .yg-health b { flex: 1; }
  .yg-panel { padding: 18px 16px 22px; }
  .yg-q h2 { font-size: 1.7rem; }
  .yg-opt { font-size: 0.95rem; padding: 11px 13px; }
}


/* =========================================
   ٢٩) الحساب (account.html) + زر «دخول» — js/account.js
   ========================================= */
.header-login {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--maroon); font-weight: 700; font-size: 0.95rem; border: 1.5px solid #ecd2ae; background: #fff; transition: background 0.25s, border-color 0.25s;
  margin-inline-start: auto;
}
.header-login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-login:hover, .header-login.active { background: var(--cream); border-color: var(--gold); }
.header-inner .header-login + .header-btn { margin-inline-start: -14px; }
@media (max-width: 760px) {
  .site-header .header-inner { position: relative; }
  .header-login { position: absolute; left: max(4px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; padding: 7px 11px; font-size: 0.85rem; }
}
@media (max-width: 1100px) and (min-width: 761px) { .header-login span { display: none; } .header-login { padding: 8px; } }

.acc-page { padding: 34px 0 80px; }
.acc-head { text-align: center; margin-bottom: 24px; }
.acc-head h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.2; }
.acc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; max-width: 900px; margin-inline: auto; align-items: start; }
.acc-card { position: relative; background: #fff; border: 1px solid #f1dcc0; border-radius: 30px; padding: 26px; box-shadow: 0 18px 40px rgba(122, 26, 44, 0.08); display: flex; flex-direction: column; gap: 12px; animation: slIn 0.5s var(--ease-bounce) both; min-width: 0; }
.acc-card > .trk-demo { align-self: flex-start; }
.acc-card h2 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.acc-sub { opacity: 0.8; }
.acc-tabs { display: flex; gap: 4px; background: var(--cream); padding: 5px; border-radius: 999px; align-self: stretch; }
.acc-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font: 700 1rem var(--font-body); color: var(--maroon); cursor: pointer; }
.acc-tabs button.is-on { background: var(--maroon); color: var(--cream); }
.acc-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid #dadce0; background: #fff; font: 700 1rem var(--font-body); color: #3c4043; transition: background 0.2s, box-shadow 0.2s;
}
.acc-google:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.acc-g { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 15px Arial, sans-serif; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.acc-or { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; opacity: 0.7; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: #ecd2ae; }
.acc-form, .acc-otp { display: flex; flex-direction: column; gap: 12px; }
.acc-err { color: #b4492a; font-weight: 700; font-size: 0.9rem; min-height: 1.2em; }
.acc-err:empty { min-height: 0; }
.acc-note { font-size: 0.85rem; opacity: 0.75; }
.acc-boxes { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.acc-boxes input { width: 46px; height: 56px; text-align: center; font: 700 1.5rem monospace; border-radius: 14px; border: 2px solid #ecd2ae; background: var(--cream); color: var(--maroon); }
.acc-boxes input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.3); }
.acc-link { background: none; border: 0; padding: 0; font: 700 0.95rem var(--font-body); color: var(--copper-ink); cursor: pointer; text-decoration: none; }
.acc-link:hover { text-decoration: underline; }
.acc-side { display: grid; gap: 14px; }
.acc-mini { display: flex; gap: 12px; background: #fff; border: 1px solid #f1dcc0; border-radius: 24px; padding: 18px; }
.acc-mini > span { font-size: 1.8rem; }
.acc-mini p { font-size: 0.92rem; opacity: 0.85; margin: 2px 0 8px; }
.acc-pin { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-pin input { flex: 1; min-width: 110px; font: 700 1.05rem monospace; letter-spacing: 3px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #ecd2ae; background: var(--cream); color: var(--maroon); text-align: center; }
.acc-pin .btn { padding: 10px 16px; }
.acc-pin-msg { font-weight: 700; color: var(--green); font-size: 0.9rem; }
.acc-me { grid-column: 1 / -1; max-width: 640px; width: 100%; margin-inline: auto; }
.acc-hello { display: flex; gap: 14px; align-items: center; }
.acc-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 400 1.8rem var(--font-title); flex: none; }
.acc-me h3 { margin-top: 6px; }
.acc-plants { list-style: none; display: grid; gap: 8px; }
.acc-plants a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--cream); text-decoration: none; color: var(--maroon); }
.acc-plants b { font-family: monospace; color: var(--copper-ink); }
.acc-plants small { margin-inline-start: auto; opacity: 0.7; }
.acc-empty { background: var(--cream); padding: 14px; border-radius: 14px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 760px) { .acc { grid-template-columns: 1fr; } .acc-card { padding: 20px; } .acc-boxes input { width: 40px; height: 50px; } }

/* الرحلة داخل صفحة الفكرة + عدسة المجهر */
.jr-intro { text-align: center; padding-block: 60px 26px; }
.jr-intro p:last-child { max-width: 560px; margin: 0 auto; opacity: 0.85; }
.idea-cta { position: relative; z-index: 1; }
.jr-lens {
  --r: 200px; --ro: 1; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at 50% var(--cy, 50%), transparent calc(var(--r) - 1px), var(--maroon) var(--r));
}
.jr-lens-ring {
  position: absolute; left: 50%; top: var(--cy, 50%); width: calc(var(--r) * 2 + 18px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 3px dashed var(--gold); opacity: var(--ro); animation: lmSpin 40s linear infinite;
  box-shadow: inset 0 0 0 9px rgba(122, 26, 44, 0.85), inset 0 0 60px rgba(59, 16, 24, 0.5);
}
.jr-lens-ring::before, .jr-lens-ring::after { content: ""; position: absolute; background: rgba(242, 179, 61, 0.55); }
.jr-lens-ring::before { left: 50%; top: -14px; width: 2px; height: 26px; }
.jr-lens-ring::after { top: 50%; left: -14px; height: 2px; width: 26px; }
.jr-lens-tag { position: absolute; left: 50%; top: 8%; translate: -50% 0; color: var(--cream); font-weight: 700; font-size: 1.1rem; opacity: var(--ro); letter-spacing: 1px; }
.jr-down { z-index: 5; color: var(--cream); }

/* ===== تخفيف (٢٤ أكتوبر) ===== */
.trk-tablink { flex: none; color: var(--maroon); font: 700 1rem var(--font-body); padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: background 0.3s; }
.trk-tablink:hover { background: var(--cream); }
.lm-head .trk-tabs { margin-bottom: 18px; }
.lm-head .trk-tabs button { cursor: default; }
.lm-stats { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
.lm-privacy { text-align: center; margin-top: 26px; background: none; color: var(--maroon); opacity: 0.75; font-size: 0.92rem; padding: 0; }
.pid-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pid-links a, .pid-links button { font: 700 0.88rem var(--font-body); color: var(--maroon); background: var(--cream); border: 1px solid #f1dcc0; border-radius: 999px; padding: 6px 12px; text-decoration: none; cursor: pointer; }
.pid-links a:hover, .pid-links button:hover { border-color: var(--gold); }
@media (max-width: 560px) { .trk-tabs { grid-template-columns: repeat(3, 1fr); } .trk-tablink { padding: 9px 8px; font-size: 0.88rem; text-align: center; } }


/* =========================================
   ٣٠) الموقع الحقيقي: تحميل، نبتاتي، الحملات، الدخول
   ========================================= */
.wd-preview { position: fixed; z-index: 50; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(59, 16, 24, 0.85); color: var(--cream); font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
@media (max-width: 760px) { .wd-preview { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.trk-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; font-weight: 700; opacity: 0.7; }
.trk-loading span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #ecd2ae; border-top-color: var(--maroon); animation: lmSpin 0.8s linear infinite; }
.trk-sub { margin: 26px 0 10px; font-size: 1.15rem; }
.trk-muted { opacity: 0.7; font-size: 0.92rem; }
.trk-empty h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.8rem; }
.trk-empty .btn { margin-top: 12px; }
.my-plants { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.my-plants button { --c: #c9bba7; display: grid; gap: 2px; text-align: start; padding: 12px 14px; border-radius: 18px; border: 1px solid #f1dcc0; border-inline-start: 5px solid var(--c); background: #fff; font: 500 0.95rem var(--font-body); color: var(--maroon); cursor: pointer; transition: transform 0.25s var(--ease-bounce); }
.my-plants button:hover { transform: translateY(-3px); }
.my-plants b { font-family: monospace; color: var(--copper-ink); }
.my-plants small { opacity: 0.7; }
.pid-check { cursor: pointer; }
.pid-check.is-busy, .sample .is-busy { opacity: 0.6; pointer-events: none; }
.pid-next { font-weight: 700; color: var(--green); background: #eef7ea; padding: 8px 14px; border-radius: 14px; }
.code-form { margin-top: 18px; display: grid; gap: 8px; font-weight: 700; }
.code-form div { display: flex; gap: 8px; max-width: 360px; }
.code-form input { flex: 1; min-width: 0; font: 700 1.05rem monospace; letter-spacing: 1px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #ecd2ae; background: #fff; color: var(--maroon); }
.code-form .btn { padding: 10px 18px; }

.camp-home { display: grid; gap: 10px; }
.camp-intro { background: #fff; border: 1px solid #f1dcc0; border-radius: 28px; padding: 24px; display: grid; gap: 10px; justify-items: start; }
.camp-intro h3 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; }
.camp-form, .camp-done { background: #fff; border: 1px solid #f1dcc0; border-radius: 28px; padding: 24px; display: grid; gap: 12px; max-width: 560px; margin-inline: auto; }
.camp-form h3, .camp-done h3 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; }
.camp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.camp-total { font-weight: 700; color: var(--green); }
.camp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.camp-done { text-align: center; justify-items: center; }
.camp-pin { display: grid; gap: 4px; background: var(--maroon); color: var(--cream); padding: 16px 26px; border-radius: 22px; }
.camp-pin b { font: 700 2.4rem monospace; letter-spacing: 8px; color: var(--gold); }
.camp-pin small { opacity: 0.85; }
.camp-join { display: grid; gap: 10px; max-width: 320px; margin-top: 16px; }
.fld-qr { border: 0; cursor: pointer; font-family: var(--font-body); }
.fld-qr:hover { background: var(--copper); }
span.fld-dot { cursor: default; }
span.fld-dot:hover { transform: none; }
.row-dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(#f6e6cc, #efd9b8); }
.row-dot { --c: #e7dccb; aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 45%), var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease-bounce); }
.row-dot span { font-weight: 700; color: var(--maroon); background: rgba(255, 255, 255, 0.75); border-radius: 999px; padding: 0 7px; font-size: 0.85rem; }
.row-dot.is-pop { animation: fldPop 0.4s var(--ease-bounce); }
.sample-list { display: grid; gap: 10px; }
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--cream); border-radius: 18px; padding: 12px 16px; }
.sample label { cursor: pointer; }
.sample small { flex-basis: 100%; font-weight: 700; color: var(--green); }
.rows-sheet { background: #fff; border-radius: 24px; padding: 20px; }
.rows-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rows-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.row-card { border: 2px dashed #e2c49c; border-radius: 16px; padding: 12px; display: grid; justify-items: center; gap: 4px; text-align: center; break-inside: avoid; }
.row-qr img, .row-qr canvas, .cert-qr img, .cert-qr canvas { display: block; width: 100%; height: auto; }
.row-card b { font-family: var(--font-title); font-weight: 400; font-size: 1.4rem; }
@media print {
  body * { visibility: hidden; }
  .rows-sheet, .rows-sheet * { visibility: visible; }
  .rows-sheet { position: absolute; inset: 0; padding: 0; }
  .rows-head .btn { display: none; }
  .rows-grid { grid-template-columns: repeat(3, 1fr); }
}

.lm-stage.is-empty::after { content: "للحين ما فيه نبتات على الخريطة… كن أول واحد 🌱"; position: absolute; left: 50%; bottom: 14px; translate: -50% 0; background: rgba(255, 250, 241, 0.92); color: var(--maroon); font-weight: 700; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px rgba(94, 42, 28, 0.12); }
.lm-dot.is-mine { stroke: var(--maroon); stroke-width: calc(2px / var(--z)); }

.acc-pass { display: flex; align-items: center; gap: 6px; }
.acc-pass input { flex: 1; min-width: 0; font: 500 1rem var(--font-body); padding: 11px 14px; border-radius: 14px; border: 1.5px solid #ecd2ae; background: var(--cream); color: var(--maroon); }
.acc-pass input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.25); }
.acc-eye { border: 0; background: none; font-size: 1.1rem; cursor: pointer; padding: 6px; }
.acc-meter { height: 6px; border-radius: 99px; background: #f1e3cf; overflow: hidden; margin-top: -4px; }
.acc-meter i { display: block; height: 100%; width: 0; transition: width 0.3s, background 0.3s; }
.acc-hint { font-size: 0.82rem; opacity: 0.7; margin-top: -4px; }
.acc-google-wrap { display: grid; justify-items: center; min-height: 44px; }
.acc-gbtn:empty { display: none; }
.acc-google-wrap .acc-google { width: 100%; }

/* ===== الجوالات الضعيفة (html.lite): نخفف الأشياء الثقيلة ===== */
html.lite *, html.lite *::before, html.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .jr-cap:not(.is-intro), html.lite .jr-days, html.lite .jr-stats { background: rgba(255, 250, 241, 0.94); }
html.lite .jr-svg.is-lite { width: 50%; height: 50%; transform: scale(2); transform-origin: 0 0; left: 0; right: auto; }
html.lite .jr-drop:nth-child(2n), html.lite .yg-rain line:nth-child(2n) { display: none; }
html.lite .sl-shine, html.lite .jr-lens-ring { animation: none; }
html.lite .lm-hq-ring { animation: none; }


/* ===== ضبط الجوال (٢٤ أكتوبر) ===== */
@media (max-aspect-ratio: 1/1) { .jr-lens { --cy: 62%; } .jr-lens-tag { top: 16%; } }
.pd-about .wuddi-live { height: 200px; width: auto; flex-shrink: 0; }
.wd-preview { top: calc(92px + env(safe-area-inset-top, 0px)); bottom: auto !important; }
@media (max-width: 760px) {
  .hero-arch { margin-top: 46px; }
  .pd-about .wuddi-live { height: 150px; }
  .wd-preview { top: calc(76px + env(safe-area-inset-top, 0px)); left: 8px; font-size: 0.68rem; }
}
.lm-stage.is-empty::after { white-space: normal; text-align: center; width: max-content; max-width: 88%; }
@media (max-width: 400px) {
  .lm-stage.is-empty::after { font-size: 0.78rem; padding: 6px 12px; }
  .trk-tabs button, .trk-tablink { font-size: 0.8rem; padding: 8px 4px; }
  .sl-call { font-size: 0.72rem; }
  .row-dots { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; padding: 12px; }
}

/* ===== الفكرة مكتوبة (idea.html) ===== */
.idea-written { padding: 70px 0 30px; text-align: center; }
.iw-paper {
  position: relative; max-width: 640px; margin: 14px auto 0; padding: 30px 30px 26px; text-align: start;
  background: repeating-linear-gradient(#fffdf7 0 33px, #f1e3cf 33px 34px); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(122, 26, 44, 0.1), inset 0 0 0 1px #f1dcc0; rotate: -0.6deg;
}
.iw-paper::before { content: ""; position: absolute; top: 0; bottom: 0; right: 22px; width: 2px; background: rgba(196, 122, 74, 0.35); }
.iw-paper p { font-size: 1.15rem; line-height: 34px; padding-right: 18px; min-height: 34px; }
.iw-paper .iw-last { font-family: var(--font-title); font-size: 1.45rem; color: var(--green); margin-top: 6px; }
.iw-paper p.is-waiting { visibility: hidden; }
.iw-paper p.is-now::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-right: 2px; vertical-align: -3px; background: var(--maroon); animation: iwBlink 0.7s steps(1) infinite; }
@keyframes iwBlink { 50% { opacity: 0; } }
@media (max-width: 760px) { .iw-paper { padding: 22px 18px 18px; } .iw-paper p { font-size: 1rem; } .iw-paper .iw-last { font-size: 1.25rem; } }

/* ===== حالة المنتج + ضبط إطارات البطاقات (سفاري) ===== */
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.p-state { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.p-state.is-soon { background: var(--gold); color: var(--maroon); }
.p-state.is-out { background: #e7dccb; color: #6b5a4a; }
.btn-disabled { background: #f1e3cf; color: #6b5a4a; cursor: default; pointer-events: none; }
.p-art-link { display: block; }
.product-card .p-art, .soon-art { width: calc(100% - 28px); margin: 14px auto; align-self: center; }
.p-art-link .p-art { width: auto; margin: 14px; }

/* الجوال: زر الصوت فوق في الهيدر، وزر «فوق» يختفي (قائمة الكبسولة تكفي) */
@media (max-width: 760px) {
  .sound-toggle { top: calc(16px + env(safe-area-inset-top, 0px)); bottom: auto; right: 12px; left: auto; width: 38px; height: 38px; box-shadow: none; animation: none; }
  .to-top { display: none !important; }
}

/* ===== الخريطة: ألوان الحملات + قوائم ===== */
.lm-stats { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
.lm-camp-bg { fill: color-mix(in srgb, var(--cc, #7a1a2c) 14%, #fff); stroke: none; filter: drop-shadow(0 2px 3px rgba(94, 42, 28, 0.3)); }
.lm-camp-track { fill: none; stroke: color-mix(in srgb, var(--cc, #7a1a2c) 25%, #fff); stroke-width: 4; }
.lm-camp-ring { fill: none; stroke: var(--cc, #7a1a2c); stroke-width: 4; stroke-linecap: round; }
.lm-camp-n { fill: var(--cc, #7a1a2c); }
.lm-camp:hover .lm-camp-bg, .lm-camp.is-sel .lm-camp-bg { fill: #fff; stroke: var(--cc, #7a1a2c); stroke-width: 2; }
.lm-legend .lm-lg-camp { background: conic-gradient(#7a1a2c 0 25%, #2e86ab 0 50%, #3d9970 0 75%, #f2b33d 0); border: 0; }
.lm-list { display: grid; gap: 8px; width: 100%; max-height: 360px; overflow-y: auto; }
.lm-list button { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; text-align: start; padding: 10px 12px; border-radius: 14px; border: 1px solid #f1dcc0; background: var(--cream); font: 500 0.92rem var(--font-body); color: var(--maroon); cursor: pointer; }
.lm-list button:hover { border-color: var(--gold); background: #fff; }
.lm-list i { width: 14px; height: 14px; border-radius: 50%; }
.lm-list b { font-weight: 700; }
.lm-list small { opacity: 0.7; }
.camp-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.camp-colors label { cursor: pointer; }
.camp-colors input { position: absolute; opacity: 0; pointer-events: none; }
.camp-colors span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px #fff; border: 2px solid transparent; transition: transform 0.2s var(--ease-bounce); }
.camp-colors input:checked + span { border-color: var(--c); transform: scale(1.15); box-shadow: inset 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, 0.15); }
.camp-colors input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.camp-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); margin-left: 6px; vertical-align: -1px; }
@media (max-width: 560px) { .lm-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .lm-stats b { font-size: 1.5rem; } .lm-stats span { font-size: 0.75rem; } }
.lm-camp > * { transform: scale(calc(1.3 / sqrt(var(--z)))); }

/* ===== تقرير الفحص المفصل ===== */
.pid-guide{list-style:none;margin:.6rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem;justify-content:center;font-size:.82rem}
.pid-guide li{background:#fff6e6;border:1px solid #ecdcc3;border-radius:99px;padding:.2rem .6rem;color:#5a3a2a}
.rp{background:#fffdf8;border:1px solid #ecdcc3;border-radius:18px;padding:1rem;margin-bottom:1rem;box-shadow:0 6px 18px rgba(122,26,44,.06)}
.rp.is-new{animation:rpIn .6s ease both}
@keyframes rpIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.rp-head{display:flex;align-items:center;gap:.8rem;margin-bottom:.8rem}
.rp-head h4{margin:0;font-size:1.05rem;color:#7a1a2c}.rp-head p{margin:.1rem 0 0;font-size:.82rem;color:#7b6656}
.rp-ring{--p:0;flex:none;width:74px;height:74px;border-radius:50%;display:grid;place-items:center;align-content:center;
  background:radial-gradient(closest-side,#fffdf8 78%,transparent 80%),conic-gradient(var(--hc) calc(var(--p)*1%),#efe4d3 0)}
.rp-ring b{font-size:1.35rem;line-height:1;color:var(--hc)}.rp-ring small{font-size:.65rem;color:#9a8574}
.rp-grid{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin:0}
.rp-grid div{background:#fff;border:1px solid #f0e5d4;border-radius:12px;padding:.45rem .6rem}
.rp-grid dt{font-size:.72rem;color:#9a8574}.rp-grid dd{margin:.1rem 0 0;font-weight:700;font-size:.9rem;color:#3b2a20}
.rp-dim{font-weight:400;font-size:.75rem;color:#9a8574}
.rp-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.7rem 0 0}
.rp-chip{font-size:.78rem;padding:.2rem .6rem;border-radius:99px;background:#e6f2e7;color:#2f6b3a}
.rp-chip.is-warn{background:#fdeedd;color:#9a4a12}
.rp-cmp{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-top:.7rem;font-size:.82rem}
.rp-cmp span{padding:.15rem .55rem;border-radius:8px;background:#f3ece2}.rp-cmp .up{color:#2f6b3a}.rp-cmp .down{color:#a0402f}
.rp h5{margin:.9rem 0 .35rem;font-size:.92rem;color:#7a1a2c}
.rp-tips{margin:0;padding-inline-start:1.1rem;font-size:.88rem;line-height:1.7}
.rp-note{margin:.7rem 0 0;font-size:.72rem;color:#9a8574}
@media (max-width:420px){.rp-grid{grid-template-columns:1fr 1fr}.rp-grid dd{font-size:.82rem}}

/* ===== شاشة فحص النبتة ===== */
body.ck-open{overflow:hidden}
.ck{position:fixed;inset:0;z-index:300;background:rgba(40,16,12,.62);display:grid;place-items:center;padding:16px;animation:ckFade .25s ease}
@keyframes ckFade{from{opacity:0}}
.ck-card{position:relative;width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fffdf8;border-radius:24px;padding:1.2rem 1.1rem 1.3rem;box-shadow:0 20px 50px rgba(0,0,0,.3);animation:ckUp .35s cubic-bezier(.2,.9,.3,1.2)}
@keyframes ckUp{from{transform:translateY(24px) scale(.97);opacity:0}}
.ck-x{position:absolute;top:10px;inset-inline-end:10px;width:34px;height:34px;border-radius:50%;border:0;background:#f3ece2;color:#7a1a2c;font-size:1rem;cursor:pointer;z-index:2}
.ck-body{text-align:center}
.ck-body h3{margin:.4rem 0 .2rem;color:#7a1a2c;font-size:1.25rem}
.ck-sub{margin:0 0 1rem;color:#7b6656;font-size:.9rem}
.ck-steps{display:flex;justify-content:center;gap:.4rem;list-style:none;margin:0 0 .8rem;padding:0 2rem;font-size:.75rem}
.ck-steps li{flex:1;padding-top:.45rem;border-top:4px solid #efe4d3;color:#9a8574}
.ck-steps li.on{border-color:#7a1a2c;color:#7a1a2c;font-weight:700}.ck-steps li.done{border-color:#4e9f5d;color:#4e9f5d}
.ck-chips{display:grid;gap:.5rem}
.ck-chips button{padding:.85rem 1rem;border-radius:14px;border:2px solid #ecdcc3;background:#fff;font:inherit;font-size:1rem;cursor:pointer;color:#3b2a20;transition:.15s}
.ck-chips button:hover,.ck-chips button:focus-visible{border-color:#7a1a2c;background:#fff6e6}
.ck-skip{margin-top:.6rem;border:0;background:none;color:#9a8574;font:inherit;text-decoration:underline;cursor:pointer}
.ck-cam{position:relative;aspect-ratio:3/4;border-radius:18px;overflow:hidden;background:#2a1a14}
.ck-cam video{width:100%;height:100%;object-fit:cover;display:block}
.ck-cam.is-flash::after{content:"";position:absolute;inset:0;background:#fff;animation:ckFlash .35s ease forwards}
@keyframes ckFlash{to{opacity:0}}
.ck-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ck-frame rect{fill:none;stroke:#fff;stroke-width:2.5;stroke-dasharray:10 7;opacity:.9;vector-effect:non-scaling-stroke}
.ck-frame rect.tag{stroke:#f2b33d}
.ck-lbl{position:absolute;font-size:.72rem;color:#fff;background:rgba(0,0,0,.45);padding:.1rem .5rem;border-radius:99px}
.ck-lbl-p{top:12%;left:50%;transform:translateX(-50%)}
.ck-lbl-t{bottom:17%;right:12%;background:rgba(242,179,61,.85);color:#3b2a20}
.ck-light{position:absolute;top:10px;inset-inline-start:10px;font-size:.75rem;padding:.2rem .6rem;border-radius:99px;background:rgba(0,0,0,.5);color:#fff}
.ck-light[data-l=ok]{background:rgba(78,159,93,.9)}.ck-light[data-l=low],.ck-light[data-l=high]{background:rgba(224,169,47,.95);color:#3b2a20}
.ck-tip{margin:.7rem 0;font-size:.86rem;color:#5a3a2a}
.ck-row{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:.6rem}
.ck-shot{width:68px;height:68px;border-radius:50%;border:4px solid #7a1a2c;background:#fff;padding:5px;cursor:pointer}
.ck-shot span{display:block;width:100%;height:100%;border-radius:50%;background:#7a1a2c;transition:transform .12s}
.ck-shot:active span{transform:scale(.85)}
.ck-alt{display:inline-block;margin-top:.7rem;font-size:.85rem;color:#7a1a2c;cursor:pointer;text-decoration:underline}
.ck-alt.btn{text-decoration:none;color:#fff}
.ck-guide{background:#fff6e6;border-radius:14px;padding:.8rem 1rem;text-align:start}
.ck-guide p{margin:0 0 .3rem;font-weight:700;color:#7a1a2c}.ck-guide ul{margin:0;padding-inline-start:1rem;line-height:1.9}
.ck-prev{position:relative;border-radius:18px;overflow:hidden}
.ck-prev img,.ck-scan img{width:100%;display:block;max-height:52vh;object-fit:cover}
.ck-good,.ck-warn{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:.3rem .8rem;border-radius:99px;font-size:.82rem}
.ck-good{background:rgba(78,159,93,.92);color:#fff}.ck-warn{background:rgba(242,179,61,.95);color:#3b2a20}
.ck-scan{position:relative;border-radius:18px;overflow:hidden}
.ck-scan::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 0 0),repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 2px,transparent 2px 6px);z-index:1}
.ck-scan i{position:absolute;left:0;right:0;height:30%;top:-30%;background:linear-gradient(transparent,rgba(78,159,93,.55),transparent);border-bottom:2px solid #8be09a;animation:ckScan 1.6s ease-in-out infinite;z-index:2}
@keyframes ckScan{to{top:100%}}
.ck-line{margin:.8rem 0 0;font-weight:700;color:#7a1a2c;min-height:1.5em}
.ck-fail p{color:#5a3a2a}
html.lite .ck-scan i{animation-duration:2.4s}
@media (prefers-reduced-motion:reduce){.ck-scan i{animation:none;top:35%}}

/* إضافات التقرير */
.rp-photo{margin-inline-start:auto;width:64px;height:64px;object-fit:cover;border-radius:14px;border:3px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.rp-voice{margin:-.2rem 0 .8rem;padding:.55rem .8rem;background:#e6f2e7;border-radius:14px 14px 14px 4px;color:#2f6b3a;font-weight:700;font-size:.92rem;position:relative}
.rp-trend{margin-top:.8rem}.rp-trend span{font-size:.75rem;color:#9a8574}
.rp-trend svg{width:100%;height:60px;display:block;direction:ltr}
.rp-trend .a{fill:rgba(78,159,93,.12)}.rp-trend .l{fill:none;stroke:#4e9f5d;stroke-width:2.5;stroke-linejoin:round}
.rp-trend circle{fill:#fff;stroke:#4e9f5d;stroke-width:2}
.rp-album{margin-top:1rem}.rp-album h4{margin:0 0 .5rem;color:#7a1a2c}
.rp-strip{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.4rem;scroll-snap-type:x mandatory}
.rp-strip figure{margin:0;flex:none;width:96px;scroll-snap-align:start;text-align:center}
.rp-strip img{width:96px;height:120px;object-fit:cover;border-radius:12px;display:block;background:#efe4d3}
.rp-strip figcaption{font-size:.72rem;color:#7b6656;margin-top:.2rem}.rp-strip b{display:block;color:#2f6b3a}

/* ===== زر اللغة + الإنجليزي ===== */
html.en-wait:not(.i18n-ready) body { opacity: 0; }
.lang-btn {
  flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; margin-inline: 10px;
  border-radius: 999px; border: 1.5px solid #ecd2ae; background: #fff; color: var(--maroon);
  font: 700 0.85rem/1 var(--font-body); letter-spacing: .04em; cursor: pointer; transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: var(--cream); border-color: var(--gold); }
.lang-btn[lang=ar] { font-size: 1.05rem; letter-spacing: 0; }
@media (max-width: 760px) {
  .lang-btn { position: fixed; z-index: 60; top: calc(16px + env(safe-area-inset-top, 0px)); right: 58px; height: 38px; min-width: 38px; margin: 0; padding: 0 8px; }
  body.splash-open .lang-btn { display: none; }
}
/* الإنجليزي: الخط والمسافات */
html.en body { letter-spacing: 0; }
html.en .eyebrow { letter-spacing: .08em; }
html.en .sky { transform: scaleX(-1); }

/* ===== زر الخصوصية + صفحة الخصوصية ===== */
.header-privacy { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #ecd2ae; background: #fff; color: var(--maroon); margin-inline-start: 8px; transition: background .2s, border-color .2s; }
.header-privacy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.header-privacy:hover, .header-privacy.active { background: var(--cream); border-color: var(--gold); }
.header-inner .header-privacy + .header-btn { margin-inline-start: 8px; }
@media (max-width: 760px) {
  .header-privacy { position: fixed; z-index: 60; top: calc(16px + env(safe-area-inset-top, 0px)); right: 104px; width: 38px; height: 38px; margin: 0; }
  body.splash-open .header-privacy { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) { .header-privacy { width: 34px; height: 34px; } }
.pv-hero .container { position: relative; z-index: 1; padding: 46px 0 70px; text-align: center; }
.pv-hero h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.2; margin: 6px 0 10px; }
.pv-lead { max-width: 560px; margin: 0 auto; opacity: .92; line-height: 1.8; }
.pv-body { display: grid; gap: 16px; max-width: 760px; padding: 36px 0 80px; }
.pv-card { position: relative; background: #fff; border: 1px solid #f1dcc0; border-radius: 22px; padding: 22px 24px 20px; padding-inline-start: 74px; box-shadow: 0 6px 18px rgba(122, 26, 44, .05); }
.pv-ic { position: absolute; inset-inline-start: 20px; top: 20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); font-size: 1.25rem; }
.pv-card h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--maroon); }
.pv-card p, .pv-card li { line-height: 1.85; color: #5a3a2a; margin: 0; }
.pv-card ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 4px; }
.pv-card a { color: var(--copper-ink); font-weight: 700; }
.pv-date { margin-top: 12px !important; font-size: .82rem; color: #7b6656 !important; }
@media (max-width: 560px) { .pv-card { padding: 18px; padding-inline-start: 18px; } .pv-ic { position: static; margin-bottom: 8px; } }

/* ===== حذف الحساب ===== */
.acc-danger { margin-top: 22px; padding-top: 14px; border-top: 1px dashed #ecd2ae; text-align: center; }
.acc-del { background: none; border: 0; color: #a0402f; font: 500 .88rem var(--font-body); cursor: pointer; text-decoration: underline; opacity: .8; }
.acc-del:hover { opacity: 1; }
.acc-delcard { text-align: center; }
.acc-dellist { text-align: start; margin: 8px auto 16px; padding-inline-start: 1.2rem; max-width: 380px; line-height: 1.9; color: #5a3a2a; }
.acc-delbtn { background: #a0402f !important; border-color: #a0402f !important; }
.acc-pending { max-width: 640px; margin: 0 auto 16px; padding: 16px 20px; border-radius: 18px; background: #fdeedd; border: 1.5px solid #f2b33d; text-align: center; color: #7a3a12; }
.acc-pending b { display: block; font-size: 1.05rem; }
.acc-pending p { margin: 4px 0 10px; }

/* ===== إضافات صفحة النبتة: الطقس، الإنجازات، التذكير، الستوري ===== */
.pid-more { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.pid-more button { border: 1.5px solid #ecd2ae; background: #fff; color: var(--maroon); border-radius: 999px; padding: 7px 14px; font: 700 .85rem var(--font-body); cursor: pointer; }
.pid-more button:hover { background: var(--cream); border-color: var(--gold); }
.pid-cal { margin: 8px 0 0; font-size: .8rem; color: #5a3a2a; min-height: 0; }
.pid-cal a { color: var(--copper-ink); font-weight: 700; }
.wx { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #e8f2fb, #fdf6ea); border: 1px solid #dbe8f3; }
.wx-ic { font-size: 1.8rem; }
.wx b { display: block; color: #1b4965; font-size: .9rem; }
.wx p { margin: 2px 0 0; font-size: .85rem; color: #3b4a55; line-height: 1.6; }
.wx-t { margin-inline-start: auto; font: 400 1.6rem var(--font-title); color: #1b4965; }
.bdg { margin: 4px 0 14px; }
.bdg h4 { margin: 0 0 8px; color: var(--maroon); }
.bdg h4 small { color: #9a8574; font-weight: 400; }
.bdg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bdg-i { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: #f6efe4; text-align: center; filter: grayscale(1); opacity: .55; }
.bdg-i span { font-size: 1.5rem; }
.bdg-i small { font-size: .7rem; color: #5a3a2a; line-height: 1.3; }
.bdg-i.is-got { filter: none; opacity: 1; background: #fff6e0; box-shadow: inset 0 0 0 1.5px #f2b33d; }
.bdg-lock { position: absolute; top: 4px; inset-inline-end: 6px; font-size: .62rem; font-style: normal; }
.bdg-row { display: flex; justify-content: center; gap: 6px; font-size: 1.4rem; margin: 6px 0 2px; }
.st-card { text-align: center; }
.st-card h3 { margin: 0 0 10px; color: var(--maroon); }
.st-img { width: min(260px, 70vw); border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: block; margin: 0 auto 6px; }
@media (max-width: 420px) { .bdg-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .bdg-i small { font-size: .62rem; } }

/* ===== التطبيق ===== */
.app-btn { display: inline-block; margin-top: 10px; background: rgba(255,246,230,.12); color: var(--cream); border: 1px solid rgba(255,246,230,.35); border-radius: 999px; padding: 7px 16px; font: 700 .85rem var(--font-body); cursor: pointer; }
.app-btn:hover { background: rgba(255,246,230,.22); }
.app-card { text-align: center; }
.app-card img { border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.app-card h3 { margin: 10px 0; color: var(--maroon); }
.app-card ol { text-align: start; line-height: 2; padding-inline-start: 1.3rem; color: #3b2a20; }

/* ===== ترتيب الحملات ===== */
.rank { margin-top: 22px; }
.rank-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rank-list li { display: grid; grid-template-columns: 38px 1fr 110px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid #f1dcc0; border-inline-start: 5px solid var(--c); }
.rank-n { font-size: 1.3rem; text-align: center; font-weight: 700; color: var(--maroon); }
.rank-list b { color: var(--maroon); }
.rank-list small { display: block; color: #9a8574; font-size: .78rem; }
.rank-rate { display: grid; gap: 4px; text-align: center; }
.rank-rate b { color: #2f6b3a; font-size: 1.05rem; }
.rank-bar { display: block; height: 6px; border-radius: 6px; background: #efe4d3; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: #4e9f5d; border-radius: 6px; }
.rank-empty { padding: 14px; border-radius: 14px; background: #f6efe4; color: #7b6656; text-align: center; font-size: .9rem; }
/* الجوالات الصغيرة: أزرار الهيدر أصغر عشان ما تغطي الشعار */
@media (max-width: 400px) {
  .sound-toggle { width: 34px !important; height: 34px !important; right: 8px !important; }
  .lang-btn { right: 46px; height: 34px; min-width: 34px; padding: 0 6px; font-size: .78rem; }
  .header-privacy { right: 84px; width: 34px; height: 34px; }
  .header-privacy svg { width: 16px; height: 16px; }
  .header-login { padding: 6px 9px; font-size: .8rem; }
}

/* ===== لحظة فتح الكيس ===== */
.unbox { text-align: center; padding: 10px 0 0; }
.ub-svg { width: 200px; height: 200px; overflow: visible; }
.ub-bag { transform-origin: 120px 216px; animation: ubShake .5s ease-in-out 2; }
@keyframes ubShake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.ub-flap { transform-origin: 72px 112px; transform-box: view-box; animation: ubFlap .5s ease-in 1s forwards; }
@keyframes ubFlap { to { transform: rotate(-120deg) translate(-6px, -4px); opacity: 0; } }
.ub-cap { transform: translateY(40px); opacity: 0; animation: ubPop .8s cubic-bezier(.2, 1.6, .4, 1) 1.35s forwards; }
@keyframes ubPop { to { transform: translateY(-46px); opacity: 1; } }
.ub-spark circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ubSpark .9s ease-out 1.7s forwards; }
.ub-spark circle:nth-child(2) { animation-delay: 1.8s; } .ub-spark circle:nth-child(3) { animation-delay: 1.9s; }
@keyframes ubSpark { 0% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: scale(.6); } }
.ub-hi { margin: 4px 0 2px; font: 400 1.5rem var(--font-title); color: var(--maroon); opacity: 0; animation: ubIn .5s ease 2s forwards; }
.ub-code { display: inline-block; font-size: 1rem; letter-spacing: .1em; color: var(--copper-ink); opacity: 0; animation: ubIn .5s ease 2.2s forwards; }
@keyframes ubIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trk-empty.after-unbox { opacity: 0; animation: ubIn .5s ease 2.5s forwards; }
.trk-empty.after-unbox .trk-big, .trk-empty.after-unbox > h3:first-of-type { display: none; }
@media (prefers-reduced-motion: reduce) { .unbox *, .trk-empty.after-unbox { animation-duration: .01s !important; animation-delay: 0s !important; } }
.acc-ts { display: flex; justify-content: center; min-height: 0; margin: 4px 0 2px; }

/* ===== عداد الأثر + قائمة الخصوصية والشروط + البلاغ + التحذير ===== */
.impact { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 246, 230, .12); border: 1px solid rgba(255, 246, 230, .3); color: var(--cream); text-decoration: none; font-size: .95rem; animation: ubIn .6s ease .4s both; }
.impact b { color: var(--gold); font-size: 1.1rem; }
.impact:hover { background: rgba(255, 246, 230, .2); }
.legal-menu { position: fixed; z-index: 400; width: 190px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid #f1dcc0; box-shadow: 0 12px 30px rgba(94, 42, 28, .18); display: grid; gap: 2px; animation: ubIn .18s ease both; }
.legal-menu[hidden] { display: none; }
.legal-menu a { padding: 10px 12px; border-radius: 10px; color: var(--maroon); font-weight: 700; text-decoration: none; font-size: .92rem; }
.legal-menu a:hover, .legal-menu a:focus-visible { background: var(--cream); outline: none; }
button.header-privacy { cursor: pointer; padding: 0; font: inherit; }
.rpt { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 10px; font-size: .8rem; }
.rpt button { border: 1px solid #ecd2ae; background: #fff; color: #8a5a3a; border-radius: 999px; padding: 5px 12px; font: 500 .8rem var(--font-body); cursor: pointer; }
.rpt .rpt-open { border: 0; background: none; color: #a08670; text-decoration: underline; }
.rpt-q { color: #7b6656; }
.rpt-done { color: #2f6b3a; }
.warn-box .ck-card { text-align: center; }
.warn-box h3 { color: #9a4a12; margin: 6px 0; }
.warn-msg { line-height: 1.8; color: #3b2a20; }
.acc-note a { color: var(--copper-ink); font-weight: 700; }

/* ===== سهولة الاستخدام: أزرار أكبر للمس، وألوان أوضح ===== */
.trk-tabs button, .trk-tablink { min-height: 40px; }
.lm-tools button { min-height: 36px; }
.pv-hero .eyebrow { color: var(--gold); }
#acc { min-height: 560px; }
.acc-link { padding-block: 6px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
