/* ============================================================
   landing.css — صفحة «نظم»
   الهوية: خلفية بيضاء + نصوص سوداء/رمادية، ولون الإبراز الهادئ #3B82F6
   للـ CTA والتفاصيل الصغرى (بتدرج مخفف 10%–15% للكروت والأيقونات)
   شبكة مسافات 8pt · حركة موحّدة 200ms ease-out
   ============================================================ */
/* ---------- 1) التوكنز ---------- */

:root {
  /* البراند — إبراز أزرق سماوي + أبيض/أسود */
  --navy: #000000;
  --navy-2: #111111;
  --blue: #097fe8;
  --blue-deep: #086fce;
  --blue-soft: #e3f2fe;
  /* خلفية الأقسام المتبادلة: أزرق فاتح هادئ بدل الرمادي */
  --band: #f3f8ff;
  --blue-tint: rgba(9, 127, 232, 0.12);
  --blue-glow: rgba(9, 127, 232, 0.28);

  /* النيوترال — أبيض في كل حاجة */
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-soft: #edf1f6;
  --ink: #000000;
  --ink-2: #414d5c;
  --ink-3: #94a3b8;

  /* الشريط الداكن */
  --dark: #0b1120;
  --dark-2: #111c33;
  --dark-line: #223052;
  --dark-text: #dbe4f0;
  --dark-sub: #8fa0b8;

  /* الموك-أب (ألوان التطبيق بالهوية الجديدة) */
  --mk-bg: #f6f8fb;
  --mk-line: #e5eaf1;
  --mk-ink: #0f172b;
  --mk-sub: #64748b;
  --c-study: #0284c7;
  --c-work: #0f172b;
  --c-meet: #7c3aed;
  --c-habit: #16a34a;
  --c-read: #d97706;
  --mk-green: #16a34a;
  --mk-amber: #d97706;
  --mk-red: #dc2626;

  /* الخطوط */
  --font-display: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-mk: "Almarai", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-latin: "Satoshi", Cairo, sans-serif;

  /* المسافات — شبكة 8pt */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* الأنصاف */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;

  /* الظلال */
  --shadow-sm: 0 1px 2px rgba(15, 23, 43, 0.05);
  --shadow-md: 0 16px 40px -20px rgba(15, 23, 43, 0.22);
  --shadow-lg: 0 48px 100px -48px rgba(15, 23, 43, 0.35);
  --shadow-blue: 0 12px 28px -10px rgba(9, 127, 232, 0.42);

  /* الحركة */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 240ms;
}
/* الإنجليزية (LTR): خطوط لاتينية مخصصة (نفس هوية التطبيق) — العربي يفضل كما هو */
[dir="ltr"] {
  --font-display: "Cal Sans", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Satoshi", "Inter", sans-serif;
}
/* ---------- 2) الأساس ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* /ar: نخفي الإنجليزية الثابتة حتى تُطبَّق العربية (landing-head.js + applyLandingLang). */
html.lp-lang-pending body { visibility: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol { list-style: none; }

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

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--blue-soft); color: var(--navy); }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }


/* حاوية موحدة لكل الصفحة: نفس العرض والحشو الجانبي في كل السكاشن —
   أي بلوك جوه سكشن يملأ الحاوية (100%) بدل عرض مخصص، عشان الحواف تتطابق */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 80px; }

@media (max-width: 1100px) {
  .container { padding-inline: 64px; }
}

@media (max-width: 760px) {
  .container { padding-inline: 24px; }
}

.digits { font-family: var(--font-latin); font-feature-settings: "tnum"; letter-spacing: 0.01em; direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .digits { unicode-bidi: plaintext; }
/* الأيقونات SVG */

.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* ---------- 3) عناصر مشتركة ---------- */


.sec-head { text-align: start; max-width: 100%; margin-inline: 0; margin-bottom: var(--s6); }

.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 800; line-height: 1.25;
}

.sec-lead { color: var(--ink-2); margin-top: var(--s2); font-size: 1.02rem; max-width: 62ch; margin-inline: 0; }


.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  font-weight: 700; font-size: 0.95rem; font-family: var(--font-body);
  border-radius: 12px; border: none;
  transition: background var(--t-med) ease, border-color var(--t-med) ease;
}

.btn-primary { background: linear-gradient(135deg, #1a93f2, var(--blue-deep)); color: #fff; box-shadow: var(--shadow-blue); }

.btn-primary:hover { background: linear-gradient(135deg, #35a0f0, var(--blue)); box-shadow: 0 10px 28px var(--blue-glow); }

.btn-primary:active { transform: scale(0.98); }

.btn-primary::after { content: none; }

.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }

.btn-ghost:hover { border-color: var(--ink-3); }

.btn-lg { padding: 14px 32px; }

.btn-xl { padding: 18px 48px; font-size: 1.05rem; border-radius: 14px; }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* أزرار الهيرو والهيدر والختام: دائرية كاملة (pill) بدون ظل */
.nav .btn, .hero .btn, .finale .btn { border-radius: 999px; box-shadow: none; }


.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: var(--ad, 0s); }

.reveal.is-visible { opacity: 1; transform: none; }

.anim { opacity: 0; transform: translateY(20px); animation: rise-in 0.85s var(--ease) forwards; animation-delay: var(--ad, 0s); }

@keyframes rise-in { to { opacity: 1; transform: none; } }




body.menu-open { overflow: hidden; }

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

.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease;
}

.nav.is-scrolled { border-bottom-color: transparent; box-shadow: none; }

.nav-inner { display: flex; align-items: center; gap: var(--s4); padding-block: 12px; border-radius: 18px; border: 1px solid transparent; transition: padding var(--t-med) ease, background var(--t-med) ease, box-shadow var(--t-med) ease, border-color var(--t-med) ease, margin var(--t-med) ease, max-width var(--t-med) ease; }

.nav.is-scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: 0 8px 32px -20px rgba(15, 23, 43, 0.2);
  padding-block: 9px;
  margin-top: 10px;
}
/* الهيدر العائم بعرض كارت الختام وكروت الأقسام نفسه (1116 على الشاشات الواسعة) */
.nav.is-scrolled .nav-inner { max-width: 1116px; margin-inline: auto; }
/* على الشاشات الأضيق يُزاح بمقدار هامش الأقسام نفسه ليبقى عائمًا */
@media (max-width: 1180px) {
  .nav.is-scrolled .nav-inner { max-width: none; width: auto; margin-inline: 32px; }
}
@media (max-width: 900px) {
  .nav.is-scrolled .nav-inner { margin-inline: 24px; }
}
@media (max-width: 560px) {
  .nav.is-scrolled .nav-inner { margin-inline: 18px; }
}
@media (max-width: 760px) {
  .nav.is-scrolled .nav-inner { gap: 12px; overflow: hidden; }
  .nav.is-scrolled .nav-actions { min-width: 0; gap: 8px; }
}

.nav.is-scrolled .nav-inner { padding-block: 9px; }

.nav-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }

.logo-mark { height: 42px; width: 42px; object-fit: contain; display: block; object-position: center; transition: height var(--t-med) ease; image-rendering: -webkit-optimize-contrast; }

.nav.is-scrolled .logo-mark { height: 38px; width: 38px; }
/* إبقاء .logo-word للتوافق لو أُعيدت الكلمة، مخفي افتراضيًا */

.nav-links { display: flex; gap: var(--s3); margin-inline-start: var(--s1); }

.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); position: relative; padding-block: 4px; transition: color var(--t-fast) ease; }

.nav-links a::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: center;
  transition: transform var(--t-med) var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--s2); margin-inline-start: auto; }

.nav-login { font-size: 0.9rem; font-weight: 700; color: var(--ink-2); transition: color var(--t-fast) ease; }

.nav-login:hover { color: var(--ink); }

.nav-burger { display: none; color: var(--ink); padding: 4px; }

.nav-burger .ic { width: 24px; height: 24px; }

/* زرار اللغة (أيقونة كوكب) في الهيدر */
.nav-lang-btn {
  width: 38px; height: 38px; aspect-ratio: 1 / 1;
  padding: 0;
  display: inline-grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-2);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}

.nav-lang-btn:hover { border-color: var(--blue); color: var(--blue); }

.nav-lang-btn .ic { width: 19px; height: 19px; }

.nav-lang-mobile { width: 100%; height: auto; border-radius: 12px; padding: 12px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  gap: 32px;
  padding: 96px 32px 48px;
  overflow-y: auto;
  z-index: 200;
}

.nav-mobile-group { display: flex; flex-direction: column; gap: 4px; }

.nav-mobile-label { font-size: 0.75rem; font-weight: 500; color: rgba(94, 108, 128, 0.8); letter-spacing: 0.04em; text-transform: uppercase; padding-bottom: 4px; }

.nav-mobile-group a { font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.4; padding: 6px 0; transition: color var(--t-fast) ease; }

.nav-mobile-group a:hover { color: var(--blue); background: none; }

.nav-burger { position: relative; z-index: 201; }

.nav.is-open .nav-burger { color: var(--ink); }

.nav.is-open {
  inset: 0;
  bottom: 0;
  height: auto;
  background: transparent;
}

/* الهيدر العائم بيدي .nav-inner تأثير backdrop-filter، والتأثير ده بيبني
   stacking context بره المنيو (z-index 200) فوق الهيدر كله فبيخفي زرار
   الغلق (z-index 201 جوه الـ nav-inner). بنسحب التمويه طول ما القائمة
   مفتوحة أو في أنيميشن القفل — المنيو مغطي الشاشة أصلاً، فمفيش تأثير بيضيع. */
.nav.is-open .nav-inner,
.nav.is-closing .nav-inner {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.is-open .nav-mobile { display: flex; animation: navSlideIn 300ms var(--ease) forwards; }

.nav.is-closing .nav-mobile { display: flex; animation: navSlideOut 250ms var(--ease) forwards; }

@keyframes navSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes navSlideOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(-20px); }
}

.nav.is-closing .nav-mobile-group { animation: none; opacity: 1; }

.nav.is-open .nav-mobile-group { opacity: 0; animation: navGroupFade 400ms var(--ease) forwards; }
.nav.is-open .nav-mobile-group:nth-child(1) { animation-delay: 80ms; }
.nav.is-open .nav-mobile-group:nth-child(2) { animation-delay: 140ms; }
.nav.is-open .nav-mobile-group:nth-child(3) { animation-delay: 200ms; }

@keyframes navGroupFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (min-width: 881px) {
  .nav-mobile { display: none !important; }
}
/* ---------- 5) الهيرو ---------- */

.hero { position: relative; padding-top: clamp(140px, 16vh, 176px); padding-bottom: 0; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }

.hero-aura {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 340px at 50% -90px, rgba(9, 127, 232, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(9, 127, 232, 0.09), transparent 62%);
}

.hero-dots { display: none; }

.hero-inner { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 700; line-height: 1.08;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-block: 0.04em;
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(1.7rem, 8.2vw, 2.35rem); line-height: 1.28; }
  /* العربي أصغر ~85% على الموبايل أيضًا مع مساحة تنفس أكبر */
  html[dir="rtl"] .hero-title { font-size: clamp(1.45rem, 7vw, 2rem); line-height: 1.4; } }
/* ضبط العنوان للعربية: الحرف العربي أكبر بصريًا — حجم ~85% من الإنجليزي،
   وارتفاع سطر مريح للنقط والحروف، وتباعد حروف صفري، وتوازن الأسطر */
html[dir="rtl"] .hero-title {
  font-weight: 700;
  font-size: clamp(2.1rem, 5.1vw, 3.75rem);
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title .line { display: block; overflow: visible; padding-block: 0.02em; }
/* سطر العنوان الثاني فارغ حاليًا (العنوان سطر واحد) — إخفاؤه لئلا يترك فراغًا */
.hero-title .line:has(> span:empty) { display: none; }

.hero-title .line > span { display: inline-block; padding-block: 0.02em; }

.hero-title em { font-style: normal; color: var(--ink); }

.hero-title .dot { color: var(--ink); }

.hero-sub { max-width: 600px; margin: var(--s3) auto 0; color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.12rem); }

.hero-cta { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }

.hero-trust {
  display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap;
  margin-top: var(--s3);
}

.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }

.hero-trust .ic { width: 16px; height: 16px; color: var(--blue); }
/* حاوية اللقطة */

.hero-media-wrap { position: relative; margin-top: clamp(40px, 6vh, 64px); }

.hero-media { position: relative; }
/* بلا ظل أرضي — الصورة ملتصقة بحافة الهيرو السفلية */

/* لقطة الهيرو الحقيقية */

.hero-shot {
  position: relative; z-index: 2;
  border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75); border-bottom: none;
  box-shadow: 0 -8px 24px -16px rgba(15, 23, 43, 0.15);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: -1px;
  padding: 6px 6px 0;
}

.hero-shot img {
  width: 100%; height: auto; display: block;
  border-radius: 8px 8px 0 0;
  image-rendering: -webkit-optimize-contrast;
}
/* ---------- 6) نظام الموك-أب (واجهة التطبيق) ---------- */

@keyframes frame-settle { from { opacity: 0; transform: rotateX(7deg) translateY(46px); } to { opacity: 1; transform: rotateX(3deg) translateY(0); } }

@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); } }
/* كارت موك-أب عام */

.mk-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  font-family: var(--font-mk); color: var(--mk-ink); text-align: right;
}

.mk-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--mk-line); }

.mk-head strong { font-size: 0.98rem; font-weight: 700; }

.mk-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--mk-bg); border: 1px solid var(--mk-line); color: var(--mk-ink); margin-inline-start: auto; }

.mk-ic .ic { width: 17px; height: 17px; }

.mk-ic.pdf { background: var(--blue); border-color: var(--blue); color: #fff; }
/* ---------- 7) التنظيم — مطابق للصور الحقيقية ---------- */
/* البطاقة اليمنى — اليوم */
/* القطعة بين البطاقات — ثابتة ومتماثلة */
/* إبقاء ستايلات قديمة للتوافق */
/* ---------- نَظْم كمركز — تناثر مميزات حول عبارة واحدة ---------- */

#features { padding-block: clamp(96px, 12vh, 140px); }

/* ——— Premium banner: بألوان الموقع ——— */
.orbital {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  min-height: 560px;
  padding: 80px 48px 96px;
  background: #ffffff;
  border: 1px solid rgba(9, 127, 232, 0.16);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.orbital-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000 62%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000 62%, transparent 92%);
  pointer-events: none;
}

.orbital-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 680px;
  padding-block: 8px;
}

.orbital-icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  background: var(--blue-tint);
  border: 1px solid rgba(9, 127, 232, 0.18);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(9, 127, 232, 0.14);
}
.orbital-icon img { width: 40px; height: 40px; object-fit: contain; }

.orbital-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: #09090b;
  text-wrap: balance;
}
.orbital-title span { color: var(--blue); }

.orbital-sub {
  font-size: 0.98rem;
  font-weight: 500;
  color: #71717a;
  margin-top: 4px;
  line-height: 1.7;
}

.orbital-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-size: 0.92rem; font-weight: 600; color: #18181b;
  white-space: nowrap;
  transition: border-color 200ms ease-out;
  cursor: pointer;
}
.orbital-tag:hover { border-color: rgba(9, 127, 232, 0.22); }
.orbital-tag .ic { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* positions — مبعثرة حول العنوان */
.tag-1 { top: 8%; left: 10%; }
.tag-2 { top: 8%; right: 6%; }
.tag-3 { top: 32%; left: 5%; }
.tag-4 { top: 32%; right: 5%; }
.tag-5 { bottom: 10%; left: 8%; }
.tag-6 { top: 58%; right: 6%; }
.tag-7 { bottom: 10%; right: 8%; }
.tag-8 { top: 58%; left: 6%; }
/* ---------- 7b) كيف يعمل — تخطيط الخطوات ---------- */

/* هيدر مقسوم: عنوان ووصف جنب بعض (يُستخدم في stats وغيره) */
.split-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  text-align: start;
}

.split-head h2 { max-width: 24ch; }

.split-head .sec-lead { margin: 0; }

@media (max-width: 760px) {
  .split-head { grid-template-columns: 1fr; }
}

/* ---------- 7c) كيف يعمل — خطوات مرقمة ---------- */

.how-head { margin-bottom: var(--s5); }

.how-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800; line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ============================================================================
/* ============================================================================
/* ============================================================================
   7d) "كيف يعمل" — ديمو الواجهة الحقيقي
   الفكرة: الموك مش شكل متخيّله — ده عناصر التطبيق الحقيقية بالكلاسات
   الحقيقية (side-nav / date-nav / bank-wrap / add-row / keyword-row /
   section-title / task-list / task-row / timer-panel / timer-item)نسخناها
   من app/index.html و app/js/render.js، وCSS بتاعها متنسخ من app/css
   ومنسوب بـ .dm-app عشان ما يتسرّبش لصفحة اللاندينج.
   الحركات بس هي اللي حية: الكتابة، ضغط +، ظهور الصف، البلوك، التايمر، العدّادات.
   ========================================================================= */

/* خط Material Icons نفسه اللي بيستخدمه التطبيق (ملف محلي في المستودع) */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/app/fonts/material-icons.woff2') format('woff2');
}

.how-demo { margin-top: var(--s5); }

/* المسرح: ارتفاع = ارتفاع الكانفس × نسبة التكبير.
   ملاحظة: --dm-s هنا fallback فقط — الـ JS (fitDemoScale في landing.js) بيحسب
   المقياس الدقيق من عرض المسرح الفعلي (عرض المسرح ÷ 1426) كمصدر حقيقة، عشان
   أي نسبة ثابتة أكبر من اللازم بتقص ~70px من عمود التايمر يمينًا. */
.dm-stage {
  --dm-s: 0.71;
  --dm-h: 780px;
  position: relative;
  width: 100%;
  height: calc(var(--dm-h) * var(--dm-s));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: height 0.4s var(--ease);
}
/* المسرح ثابت في المشاهد الأربعة (--dm-h واحد للكل) — مشهد الإحصائيات بيملا
   نفس الارتفاع (flex) بدل ما المسرح يكبر له. */
/* قيم fallback محافظة (أصغر من المحسوب) عشان بلا JS مفيش قصّ أبدًا */
@media (max-width: 1300px) { .dm-stage { --dm-s: 0.65; } }
@media (max-width: 1000px) { .dm-stage { --dm-s: 0.43; } }
@media (max-width: 760px)  { .dm-stage { --dm-s: 0.34; } }
@media (max-width: 560px)  { .dm-stage { --dm-s: 0.22; } }

/* الكانفس: بحجم نافذة التطبيق الحقيقية، متصغّر بـ transform */
.dm-canvas {
  width: 1426px;
  height: var(--dm-h, 780px);
  display: flex;
  align-items: flex-start;
  transform-origin: 0 0;
  transform: scale(var(--dm-s));
  pointer-events: none;      /* الموك شكل — مش تفاعلي */
  user-select: none;

  /* باليتة التطبيق الحقيقية (BASE_LIGHT + لون blue من theme.js) — القواعد
     المنسوبة بتستخدم متغيرات التطبيق مش اللاندينج، فلازم تتعرف هنا
     عشان الألوان تطلع مطابقة. بتطبق جوه الموك بس. */
  --pen: #3a6fa5; --pen-soft: #dbe6f1;
  --paper: #f4f5f7; --paper-line: #e2e4e8;
  --ink: #1f2328; --ink-soft: #6b7280;
  --card: #ffffff;
  --done: #3e7a5c; --done-soft: #dce9e0;
  --missed: #c5382e; --missed-soft: #f4dedb;
  --popup: #ffffff; --popup-border: #d5d8dd;
  --task-c0: #3a6fa5; --task-c1: #2f7d76; --task-c2: #b4728a; --task-c3: #b07a2a;
  --task-c4: #6b5b95; --task-c5: #a6565c; --task-c6: #5c6672; --task-c7: #8a6a4f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 18, 22, 0.05), 0 4px 12px rgba(15, 18, 22, 0.04);
  --transition: 0.2s ease;
}

.dm-canvas, .dm-canvas * { box-sizing: border-box; }

/* ===== ترتيب المشاهد: اليوم (٠ و٢) / الجدول (١) / الإحصائيات (٣) =====
   المشاهد التلاتة فوق بعض (absolute stack) وبيتبدلوا بتلاشي متقاطع
   (crossfade) بدل القطع الحاد بتاع display:none — زي الفيديو.
   .main-col بياخد أقل ارتفاع ثابت عشان المطلق ميصفّرش الحاوية. */
.dm-app .main-col { position: relative; }
.dm-scene-day, .dm-scene-tb, .dm-scene-stats {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}
.how-demo[data-scene="0"] .dm-scene-day,
.how-demo[data-scene="2"] .dm-scene-day,
.how-demo[data-scene="1"] .dm-scene-tb,
.how-demo[data-scene="3"] .dm-scene-stats {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease;
}
.how-demo[data-scene="1"] .dm-scene-tb,
.how-demo[data-scene="3"] .dm-scene-stats {
  position: absolute;
  inset: 16px;
  overflow: hidden;
}
/* عمود المؤقتات ظاهر فقط في مشهدَي اليوم (01 دوّن و03 ركّز) — ومخفي في
   الجدول والإحصائيات (02 خطّط و04 تابع) مثل التطبيق الحقيقي تمامًا
   (week-view-active يخفي timer-col عند فتح timeBlock/stats). */
.how-demo[data-scene="1"] .dm-app .timer-col,
.how-demo[data-scene="3"] .dm-app .timer-col { display: none !important; }
/* المشهدان 1 و3 يملآن العرض كله بعد إخفاء المؤقتات — بلا قصّ خارج المسرح */
.how-demo[data-scene="1"] .dm-app .app-main,
.how-demo[data-scene="3"] .dm-app .app-main,
.how-demo[data-scene="1"] .dm-app .main-layout,
.how-demo[data-scene="3"] .dm-app .main-layout,
.how-demo[data-scene="1"] .dm-app .main-col,
.how-demo[data-scene="3"] .dm-app .main-col {
  flex: 1 1 auto;
  max-width: none;
  width: auto;
  min-width: 0;
}
/* الديمو كانفس بمقياس ثابت (1426px → scale) فيعرض دائمًا تخطيط الديسكتوب جنبًا
   لجنب مهما صغرت شاشة الصفحة — استعلامات التطبيق (1236px/640px) كانت تقلب
   main-layout عموديًا وتخفي side-nav وتحوّل task-list عموديًا داخل الكانفس نفسه،
   فينزل التايمر تحت المحتوى ويتقص بارتفاع المسرح الثابت فيبدو مفقودًا. */
.how-demo .dm-app .app-shell { display: flex !important; flex-direction: row !important; }
.how-demo .dm-app .main-layout { flex-direction: row !important; align-items: stretch !important; }
.how-demo .dm-app .main-col { width: auto !important; padding: 16px !important; height: 780px; }
.how-demo .dm-app .timer-col {
  flex: 0 0 380px !important; width: auto !important; position: static !important;
  max-height: none !important; overflow: visible !important;
  border-inline-start: 1px solid var(--paper-line) !important; border-top: none !important;
}
.how-demo .dm-app .side-nav { display: flex !important; }
.how-demo .dm-app .task-list { flex-direction: row !important; flex-wrap: wrap !important; }
.how-demo .dm-app .task-row { width: auto !important; flex: 0 1 auto !important; }
.how-demo .dm-app .keyword-row { width: auto !important; flex: 0 1 auto !important; }

/* ===== حركات الديمو (فوق قواعد التطبيق) ===== */

/* الكتابة: الـ input الحقيقي بتتغيّر قيمته من JS (مفيش caret — التطبيق مالوش caret) */
.dm-canvas input { pointer-events: none; }

/* ضغط زر الإضافة */
.how-demo.at-press .dm-canvas .add-keyword-btn { transform: scale(0.9); background: var(--pen-soft); }

/* إبراز واضح للزرار اللي "اتداس" — وميض خلفية + نبضة خفيفة بتخلص على الثبات */
@keyframes dm-press {
  0% { background-color: transparent; transform: scale(1); }
  25% { background-color: var(--pen-soft); transform: scale(0.96); }
  60% { background-color: var(--pen-soft); transform: scale(1); }
  100% { background-color: var(--pen-soft); transform: scale(1); }
}
.how-demo .dm-app .dm-hit {
  animation: dm-press 0.62s ease;
  color: var(--pen) !important;
}
.how-demo .dm-app .dm-hit .material-icons { color: var(--pen) !important; }

/* منيو الديمو أوسع من الافتراضي عشان "Repeat & move" متتضغطش —
   (في التطبيق بس، مش تغيير على المنتج الحقيقي) */
.how-demo .dm-app #dmMoreDrop { min-width: 170px; }

/* ظهور صف المهمة الجديدة في "اليوم" — display:none عشان متحجزش مكان فاضي */
#dmNewRow { display: none; }
.how-demo.has-task #dmNewRow, .how-demo.dm-static #dmNewRow { display: flex; animation: dm-row-in 0.45s var(--ease); }
@keyframes dm-row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* البلوك: ينزل ثم تتّسع مدّته */
#dmBlock { opacity: 0; transform: translateY(-8px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), height 0.55s var(--ease); }
.how-demo.at-tb-drop #dmBlock, .how-demo.dm-static #dmBlock { opacity: 1; transform: none; }
.how-demo.at-tb-resize #dmBlock { height: 125px !important; }

/* كارت المؤقت: ينزلق ثم يشتغل — display:none عشان متحجزش مكان فاضي */
#dmTimerItem { display: none; }
.how-demo.at-timer-in #dmTimerItem, .how-demo.dm-static #dmTimerItem { display: block; animation: dm-timer-in 0.45s var(--ease); }
@keyframes dm-timer-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ===== مشهد الإحصائيات: رسوم SVG/CSS أصلية جوّه .chart-card-body ===== */
/* دخول الكروت نفسها متدرج مع دخول المشهد — عشان لحظة الوصول تبان حتى لو
   حد بص متأخر على الرسوم */
@keyframes dm-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.how-demo.at-stats .dm-app .chart-card { animation: dm-card-in 0.55s var(--ease) backwards; }
.how-demo.at-stats .dm-app .chart-card:nth-child(2) { animation-delay: 0.1s; }
.how-demo.at-stats .dm-app .chart-card:nth-child(3) { animation-delay: 0.2s; }
.how-demo.at-stats .dm-app .chart-card:nth-child(4) { animation-delay: 0.3s; }
/* مشهد الإحصائيات يملا ارتفاعه المتاح (flex) — الشبكة صفّان متساويان وأجسام
   الكروت تتمدد (flex:1) فالرسوم الأصلية تملا الكارت بلا فراغ زائد ولا قصّ.
   (القاعدة القديمة بارتفاع ثابت كانت بتخلي الرسوم مضغوطة وصغيرة بمساحات
   فاضية لأن الكروت أعرض بعد إخفاء التايمر.) */
.how-demo .dm-scene-stats .stats-view { height: 100%; display: flex; flex-direction: column; }
/* ضغط الكروم العلوي لأقصى درجة عشان أكبر مساحة ممكنة تروح للرسوم نفسها */
.how-demo .dm-app .stats-view-header { margin-bottom: 8px; padding: 4px 8px 4px 12px; }
.how-demo .dm-app .stats-summary-row { margin-bottom: 8px; gap: 8px; }
.how-demo .dm-app .stats-summary-pill { padding: 8px 6px; gap: 1px; }
.how-demo .dm-app .stats-summary-pill strong { font-size: 1.15rem; }
.how-demo .dm-app .stats-summary-pill small { font-size: 0.7rem; }
.how-demo .dm-app .stats-summary-pill .material-icons { font-size: 18px; }
.how-demo .dm-app .chart-grid { flex: 1 1 auto; min-height: 0; grid-template-rows: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.how-demo .dm-app .chart-card { min-height: 0; min-width: 0; padding: 10px 12px 12px; }
.how-demo .dm-app .chart-card-title { font-size: 0.85rem; margin-bottom: 6px; }
.how-demo .dm-app .chart-card-body { flex: 1 1 auto; min-height: 0; height: auto; }

/* تكبير نصوص الإحصائيات في الديمو للقراءة (الهيكل والألوان مطابقة للتطبيق) */
.dm-app .stats-summary-pill strong { font-size: 1.35rem; }
.dm-app .stats-summary-pill small { font-size: 0.8rem; }
.dm-app .chart-card-title { font-size: 0.95rem; }

/* ===== الكابشن والتحكم (بره الكانفس) ===== */
.dm-bar-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.dm-captions { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-cap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-family: inherit; font-size: 0.85rem; font-weight: 700;
  color: var(--ink-3); cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.dm-cap:hover { color: var(--ink); }
.dm-cap.is-on { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.dm-cap-num { font-size: 0.75em; }
.dm-cap-t { line-height: 1.35; }
.dm-controls { display: flex; gap: 8px; }
.dm-ctrl {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dm-ctrl:hover { background: var(--paper); color: var(--ink); }
.dm-ctrl .ic { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .dm-bar-strip { flex-direction: column; align-items: stretch; }
  .dm-captions { display: none; }
  .dm-controls { justify-content: center; }
}

.dm-app .material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }

.dm-app .dark-mode .timer-toggle-btn.is-running { background: #3d1f1f; color: #ff6b6b; }

.dm-app .dark-mode .timer-delete-btn:hover { background: #3d1f1f; color: #ff6b6b; }

.dm-app .date-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom:10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px; transition: box-shadow var(--transition); }

.dm-app .nav-btn { background: transparent; border: none; color: var(--ink); font-size: 1.3rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }

.dm-app .nav-btn:hover { background: var(--paper); }

.dm-app .nav-btn:disabled { opacity: 0.25; cursor: default; }

.dm-app .date-display { text-align: center; flex: 1; }

.dm-app .date-display .day-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--pen); margin-bottom: 6px; }

.dm-app .date-display .day-sub { font-size: 0.78rem; line-height: 1.4; color: var(--ink-soft); }

.dm-app .today-btn { display: block; margin: 0 auto 14px; background: var(--card); border: 1.5px solid var(--pen); color: var(--pen); font-family: "Inter", "Almarai"; font-weight: 700; font-size: 0.82rem; padding: 6px 16px; border-radius: 20px; cursor: pointer; }

.dm-app .today-btn:hover { background: var(--pen-soft); }

.dm-app .task-list .task-row.task-in { animation: taskIn 0.35s ease backwards; animation-delay: calc(var(--task-order, 0) * 55ms); }

.dm-app .bank-search-info,
.dm-app .keyword-name,
.dm-app .keyword-meta,
.dm-app .empty-state-title,
.dm-app .empty-state-hint,
.dm-app .task-name,
.dm-app .stat-list-name,
.dm-app .notif-setting-title,
.dm-app .notif-setting-desc,
.dm-app .filter-more-label,
.dm-app .timer-name { text-align: start; }

.dm-app .stats-summary-pill strong,
.dm-app .stats-summary-pill small,
.dm-app .day-sub { text-align: center; }

.dm-app .nav-btn .material-icons { transform: scaleX(-1); }

.dm-app .timeline-block { margin-left: 0; margin-right: auto; }

.dm-app .task-more-dropdown { left: auto; right: 0; min-width: 174px; }

.dm-app .task-more-dropdown.task-more-up { left: auto; right: 0; }

.dm-app .bank-search input { padding-left: 16px; padding-right: 40px; }

.dm-app .bank-search-clear { left: auto; right: 8px; }

.dm-app .add-row input { padding-left: 14px; padding-right: 40px; }

.dm-app .stats-tab-dropdown { left: 0; right: auto; }

.dm-app .clock-choice-popover { right: calc(100% + 8px); left: auto; transform: translateX(6px); }

.dm-app .clock-choice-popover.open { transform: translateX(0); }

.dm-app .priority-popover.open { transform: translateX(0); }

.dm-app .tb-range-menu { left: 0; right: auto; }

.dm-app .header-top-bar,
.dm-app .bank-section-title,
.dm-app .timer-panel-title,
.dm-app .stats-title { font-family: var(--font-heading); }

.dm-app .section-title { font-family: "Inter", "Almarai"; padding: 14px 16px; background-color: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 800; font-size: 1.1rem; color: var(--ink); margin: 12px 0 8px; display: flex; align-items: center; gap: 8px; transition: box-shadow var(--transition); }

.dm-app .day-filter-btn .material-icons { font-size: 17px; }

.dm-app .day-filter-btn.active { background: var(--pen-soft); border-color: var(--pen); color: var(--pen); }

.dm-app .day-filter-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dm-app .day-actions-wrap { position: relative; display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }

.dm-app .day-actions-toggle { display: flex; align-items: center; justify-content: center; border-radius: 10px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; position: relative; padding: 4px; }

.dm-app .day-actions-toggle .material-icons { font-size: 20px; }

.dm-app .day-actions-toggle:hover { color: var(--pen); }

.dm-app .day-actions-toggle.open { background: transparent; border-color: transparent; color: var(--pen); }

@media (max-width: 640px) {
.dm-app .day-actions-toggle[data-action="toggle-day-view"] { display: none; }
}

.dm-app .day-actions-panel.open { display: flex; }

.dm-app .day-actions-panel .day-filter-dropdown:not(.open) { display: none; }

.dm-app .day-actions-panel .day-filter-dropdown.open { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 130; opacity: 1; transform: none; pointer-events: auto; min-width: 0; }

.dm-app .bank-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow var(--transition), background-color var(--transition); }

.dm-app .bank-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: transparent; box-shadow: none; border: none; border-radius: 0; cursor: pointer; text-align: right; padding: 14px 16px; font-family: "Inter", "Almarai"; font-weight: 800; font-size: 1.1rem; color: var(--ink); }

.dm-app .bank-toggle:hover { background: var(--paper); border-radius: var(--radius); }

.dm-app .bank-wrap:has(.bank-content) .bank-toggle:hover { border-radius: var(--radius) var(--radius) 0 0; }

.dm-app .bank-toggle-label { display: flex; align-items: center; flex: 1; }

.dm-app .bank-toggle-arrow { display: inline-flex; transition: transform 0.2s ease; flex: 0 0 auto; margin-right: 8px; }

.dm-app .bank-toggle-arrow .material-icons { font-size: 22px; }

.dm-app .bank-toggle-arrow.open { transform: rotate(180deg); }

.dm-app .bank-content { margin: 0; padding: 0 16px 16px; border-top: 1px solid var(--paper-line); padding-top: 14px; transform-origin: top; }

.dm-app .bank-content.animate-in { animation: bankSlideDown 0.28s ease; }

.dm-app .bank-content.animate-out { animation: bankSlideUp 0.22s ease forwards; }

.dm-app .bank-filters-toggle { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--paper-line); background: var(--paper); color: var(--ink-soft); cursor: pointer; position: relative; }

.dm-app .bank-filters-toggle .material-icons { font-size: 20px; }

.dm-app .bank-filters-toggle:hover { background: var(--paper); color: var(--pen); }

.dm-app .bank-filters-toggle.open { background: var(--pen-soft); border-color: var(--pen); color: var(--pen); }

.dm-app .filter-chip.bank-filters-toggle { width: auto; height: auto; border-radius: 999px; padding: 6px 12px; }

.dm-app .filter-chip.bank-filters-toggle .material-icons { font-size: 18px; }

.dm-app .bank-filters-toggle.has-active::after { content: ""; position: absolute; top: 6px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--pen); border: 2px solid var(--card); }

.dm-app .bank-search { position: relative; display: flex; align-items: center; margin-bottom: 14px; margin-top: 12px; }

.dm-app .bank-add-task-row { margin-bottom: 12px; }

.dm-app .bank-search-divider-wrap { position: relative; margin-bottom: 18px; }

.dm-app .bank-search-divider-wrap .bank-filters-divider { margin-bottom: 18px; }

.dm-app .bank-search-reveal { position: absolute; top: -12px; inset-inline-end: 0px; translate: 0 -50%; width: 46px; height: 26px; display: grid; place-items: center; border-radius: 12px 12px 0 0; background: var(--card); border: 1px solid var(--paper-line); border-bottom: none; color: var(--ink-soft); cursor: pointer; z-index: 10; }

.dm-app .bank-search-reveal .material-icons { font-size: 20px; }

.dm-app .bank-search-reveal:hover { color: var(--pen); }

.dm-app .bank-search-reveal.open { color: var(--pen); border-color: var(--pen); }

.dm-app .bank-search-collapsible { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s ease, opacity 0.25s ease; }

.dm-app .bank-search-collapsible.open { grid-template-rows: 1fr; opacity: 1; }

.dm-app .bank-search-collapsible-inner { overflow: hidden; min-height: 0; }

.dm-app .bank-search input { width: 100%; border: 1px solid var(--paper-line); border-radius: 10px; padding: 14px 16px 14px 40px; font-family: inherit; font-size: 0.92rem; background: var(--paper); color: var(--ink); }

.dm-app .bank-search input:focus { border-color: var(--pen); }

.dm-app .bank-search-clear { position: absolute; left: 8px; background: transparent; border: none; cursor: pointer; color: var(--ink-soft); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.dm-app .bank-search-clear:hover { background: var(--paper); color: var(--pen); }

.dm-app .bank-search-clear .material-icons { font-size: 16px; }

.dm-app .task-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.dm-app .task-list.view-list { flex-direction: column; flex-wrap: nowrap; }

.dm-app .task-list.view-list .task-row { flex: 0 0 auto; width: 100%; }

.dm-app .task-inline-meta { display: none; }

@media (min-width: 641px) {
.dm-app .task-list.view-list .task-inline-meta { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 0; }
.dm-app .task-inline-chip { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 0.78rem; color: var(--ink-soft); background: var(--paper); border: none; border-radius: 999px; padding: 2px 8px; white-space: nowrap; font-family: inherit; }
.dm-app .task-inline-chip .material-icons { font-size: 16px; }
}

.dm-app .task-row { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 10px; display: flex; flex: 0 1 auto; min-width: 0; max-width: 100%; box-sizing: border-box; align-items: center; gap: 8px; transition: opacity 0.15s ease, box-shadow var(--transition), transform var(--transition); }

.dm-app .keyword-row[draggable="true"],
.dm-app .task-row[draggable="true"] { cursor: default; }

.dm-app .keyword-row.dragging,
.dm-app .task-row.dragging { opacity: 0.4; }

.dm-app .keyword-row.drag-over,
.dm-app .task-row.drag-over { box-shadow: 0 0 0 2px var(--pen), var(--shadow); transform: scale(1.02); }

.dm-app .task-check { flex: 0 0 auto; width: 26px; height: 26px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); border-radius: 50%; padding: 0; line-height: 1; transition: color 0.15s ease, background 0.15s ease; }

.dm-app .task-check .material-icons { font-size: 22px; }

.dm-app .task-check:hover { color: var(--done); background: var(--done-soft); }

.dm-app .task-check.checked { color: var(--done); }

.dm-app .task-row.done .task-check { color: var(--done); }

.dm-app .task-row.missed .task-check { color: var(--missed); }

.dm-app .task-name-btn { min-width: 0; flex: 1 1 auto; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 2px 4px; border-radius: 6px; font-family: inherit; text-align: right; color: var(--ink); transition: background 0.15s ease; overflow: hidden; }

.dm-app .task-name-btn:hover { background: var(--paper); }

.dm-app .task-name-btn .task-name { min-width: 0; flex: 1 1 auto; font-size: 0.95rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: break-word; overflow-wrap: anywhere; }

.dm-app .task-type-icon { display: inline-flex; align-items: center; flex-shrink: 0; }

.dm-app .task-type-icon .material-icons { font-size: 1rem; }

.dm-app .task-type-task,
.dm-app .task-type-habit,
.dm-app .task-type-hobby,
.dm-app .tc-task.material-icons,
.dm-app .tc-habit.material-icons,
.dm-app .tc-hobby.material-icons,
.dm-app .template-modal-row > .material-icons { color: var(--pen); }

.dm-app .task-row.done { background: var(--done-soft); }

.dm-app .task-row.done .task-name { text-decoration: line-through; color: var(--ink-soft); }

.dm-app .task-row.missed { background: var(--missed-soft); }

.dm-app .task-row.missed .task-name { text-decoration: line-through; color: var(--missed); }

.dm-app .task-row.priority-high { border: 1px solid var(--missed); }

.dm-app .task-row.priority-medium { border: 1px solid #d98c15; }

.dm-app .task-row.priority-low { border: 1px solid var(--done); }

.dm-app .dark-mode .task-row.priority-medium { border-color: #f0ab2e; }

.dm-app .clock-btn .material-icons { font-size: 18px; }

.dm-app .duration-badge-actual-only .material-icons { font-size: 15px; }

.dm-app .note-btn .material-icons { font-size: 18px; }

.dm-app .td-head .task-check { width: 30px; height: 30px; }

.dm-app .td-head .task-check .material-icons { font-size: 26px; }

.dm-app .td-title.done { text-decoration: line-through; color: var(--ink-soft); }

.dm-app .td-sublist li.done .td-sub-name { text-decoration: line-through; color: var(--ink-soft); }

.dm-app .td-sub-check .material-icons { font-size: 20px; }

.dm-app .td-sublist li.done .td-sub-check { color: var(--done); }

.dm-app .duration-popover.open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; animation: popupIn 0.18s ease; }

.dm-app .duration-popover-label .material-icons { font-size: 15px; }

.dm-app .time-choice-submenu-wrap { position: relative; }

.dm-app .td-more-menu-wrap .priority-popover,
.dm-app .td-more-menu-wrap .clock-choice-popover { position: fixed; top: auto; right: auto; left: auto; z-index: 150; }

.dm-app .clock-choice-popover.flip,
.dm-app .priority-popover.flip,
.dm-app .type-popover.flip { left: auto; right: calc(100% + 8px); }

.dm-app .clock-choice-popover.flip,
.dm-app .priority-popover.flip,
.dm-app .type-popover.flip { right: auto; left: calc(100% + 8px); }

.dm-app .clock-choice-popover { position: absolute; top: -6px; left: calc(100% + 8px); z-index: 110; background: var(--popup); border: 1px solid var(--popup-border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; display: flex; flex-direction: column; gap: 3px; opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }

.dm-app .clock-choice-popover.open { opacity: 1; transform: translateX(0); pointer-events: auto; }

.dm-app .clock-choice-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: none; border-radius: 8px; padding: 9px 10px; font-family: "Inter", "Almarai", sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--ink); cursor: pointer; text-align: right; width: 100%; }

.dm-app .clock-choice-btn:hover { background: var(--paper); }

.dm-app .clock-choice-btn .material-icons { font-size: 17px; color: var(--pen); }

.dm-app .priority-btn .material-icons { font-size: 18px; }

.dm-app .priority-popover.open { opacity: 1; transform: translateX(0); pointer-events: auto; }

.dm-app .priority-choice-btn .material-icons { font-size: 17px; }

.dm-app .priority-choice-high .material-icons { color: var(--missed); }

.dm-app .priority-choice-medium .material-icons { color: #d98c15; }

.dm-app .priority-choice-low .material-icons { color: var(--done); }

.dm-app .priority-choice-none .material-icons { color: var(--ink-soft); }

.dm-app .dark-mode .priority-choice-medium .material-icons { color: #f0ab2e; }

.dm-app .task-name { font-size: 0.95rem; line-height: 1.3; white-space: nowrap; }

.dm-app .task-row.done .task-name { color: var(--done); text-decoration: line-through; text-decoration-color: rgba(62, 122, 92, 0.5); }

.dm-app .icon-btn { background: transparent; border: none; color: var(--ink-soft); cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

.dm-app .icon-btn .material-icons { font-size: 18px; }

.dm-app .icon-btn:hover { background: var(--paper); color: var(--pen); }

.dm-app .filter-chips-wrap { overflow: hidden; position: relative; z-index: 5; }

.dm-app .filter-chips-wrap.mobile-closed { max-height: 0; opacity: 0; margin-bottom: 0; }

.dm-app .filter-chips-wrap.mobile-closed-anim { animation: filtersSlideUp 0.22s ease forwards; }

.dm-app .filter-chips-wrap.mobile-opening { max-height: none; overflow: hidden; animation: filtersSlideDown 0.22s ease forwards; }

.dm-app .filter-chips-wrap:has(.filter-more-dropdown.open) { overflow: visible; z-index: 60; }

.dm-app .filter-chips-wrap:has(.filter-add-popover.open) { overflow: visible; z-index: 60; }

.dm-app .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.dm-app .filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-family: inherit; cursor: pointer; color: var(--ink); }

.dm-app .filter-chip.active { background: var(--pen); border-color: var(--pen); color: #fff; }

.dm-app .filter-chip-wrap { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 999px; overflow: hidden; padding-right: 10px; padding-left: 10px; }

.dm-app .filter-chip-wrap.active { background: var(--pen); border-color: var(--pen); }

.dm-app .filter-chip-label { border: none; background: transparent; font-family: inherit; font-size: 0.85rem; padding: 6px 4px; cursor: pointer; color: var(--ink); }

.dm-app .filter-chip-wrap.active .filter-chip-label { color: #fff; }

.dm-app .bank-filters-panel-wrap { position: relative; flex-shrink: 0; }

.dm-app .filter-add-popover { display: none; position: absolute; top: calc(100% + 4px); inset-inline-start: 0; inset-inline-end: auto; width: 200px; max-width: min(200px, calc(100vw - 24px)); z-index: 130; background: var(--popup); border: 1px solid var(--popup-border); box-shadow: var(--shadow); border-radius: 12px; padding: 8px; }

.dm-app .filter-add-popover.open { display: block; }

.dm-app .filter-add-popover input { width: 100%; border: 1px solid var(--paper-line); background: var(--paper); border-radius: 8px; padding: 9px 10px; font-family: inherit; font-size: 0.9rem; color: var(--ink); }

.dm-app .filter-add-popover input:focus { border-color: var(--pen); outline: none; }

.dm-app .bank-filters-divider { height: 1px; background: var(--paper-line); border: none; margin: 0 0 18px; }

.dm-app .filter-chip-outer { position: relative; display: inline-flex; }

.dm-app .filter-chip-more { border: none; background: transparent; display: flex; align-items: center; opacity: 0.7; padding: 4px; cursor: pointer; color: var(--ink-soft); }

.dm-app .filter-chip-more .material-icons { font-size: 16px; }

.dm-app .filter-chip-wrap.active .filter-chip-more { color: #fff; }

.dm-app .filter-chip-more:hover { opacity: 1; }

.dm-app .filter-more-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dm-app .filter-chip-edit .icon-btn { padding: 2px; }

.dm-app .filter-chip-edit .icon-btn .material-icons { font-size: 17px; }

.dm-app .custom-select.open .custom-select-trigger { border-color: var(--pen); outline: 2px solid var(--pen-soft); outline-offset: 1px; }

.dm-app .custom-select.open .custom-select-caret { transform: rotate(180deg); }

.dm-app .custom-select.open .custom-select-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dm-app .custom-select-option.active { background: var(--done-soft); color: var(--done); font-weight: 700; }

.dm-app .keyword-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }

.dm-app .keyword-row { background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 6px 8px 6px 10px; display: flex; flex: 0 1 auto; min-width: 0; max-width: 100%; box-sizing: border-box; align-items: center; gap: 6px; transition: box-shadow var(--transition), transform var(--transition); }

.dm-app .bank-content.animate-in .keyword-row,
.dm-app .keyword-list.animate-in .keyword-row { animation: keywordFadeIn 0.25s ease; }

.dm-app .add-to-day-btn { flex: 0 0 auto; background: transparent; color: var(--done); border: none; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.12s ease; }

.dm-app .add-to-day-btn .material-icons { font-size: 18px; }

.dm-app .add-to-day-btn:hover { background: var(--done-soft); color: var(--done); }

.dm-app .add-to-day-btn.added { background: transparent; color: var(--ink-soft); opacity: 0.5; cursor: default; }

.dm-app .add-to-day-btn.added:hover { background: transparent; color: var(--ink-soft); }

.dm-app .keyword-main { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 6px; }

.dm-app .keyword-icons { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }

.dm-app .keyword-name { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.dm-app .keyword-streak { display: inline-flex; align-items: center; gap: 1px; font-size: 0.72rem; font-weight: 800; color: var(--pen); background: var(--pen-soft); border-radius: 20px; padding: 1px 6px 1px 7px; flex: 0 0 auto; white-space: nowrap; }

.dm-app .keyword-streak .material-icons { font-size: 13px; }

.dm-app .empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--ink-soft); padding: 28px 16px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--paper-line); font-size: 0.92rem; }

.dm-app .empty-state.animate-in { animation: emptyStateIn 0.3s ease; }

.dm-app .empty-state-btn .material-icons { font-size: 18px; }

.dm-app .bank-content .empty-state,
.dm-app .modal-body .empty-state { background: var(--paper); }

.dm-app .timer-panel .empty-state { padding: 18px 10px; box-shadow: none; }

.dm-app .timer-panel .empty-state-icon { font-size: 26px; }

.dm-app .timer-panel .empty-state-title { font-size: 0.9rem; }

.dm-app .add-row { display: flex; gap: 8px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 5px; min-width: 0; /* في عنصر الـ grid، عشان يقدر يضيق مش يخرج من الكرت */ transition: border-color 0.12s ease; }

.dm-app .add-row:focus-within { border-color: var(--pen); }

.dm-app .add-row input { flex: 1; min-width: 0; border: none; background: transparent; border-radius: 8px; padding: 10px 12px; font-family: "Inter", "Almarai"; font-size: 0.95rem; color: var(--ink); outline: none; }

.dm-app .add-btn { background: var(--pen); color: #fff; border: none; border-radius: 8px; padding: 0 18px; font-family: "Inter", "Almarai"; font-weight: 700; font-size: 0.92rem; cursor: pointer; }

.dm-app .add-btn:hover { filter: brightness(0.94); }

.dm-app .add-btn.icon-only { width: 42px; height: 42px; padding: 0; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }

.dm-app .add-btn.icon-only .material-icons { font-size: 22px; }

.dm-app .add-arrow-wrap { position: relative; flex: 0 0 auto; }

.dm-app .add-arrow-btn { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 8px; color: var(--pen); cursor: pointer; transition: background 0.12s ease; }

.dm-app .add-arrow-btn .material-icons { font-size: 20px; }

.dm-app .add-arrow-btn:hover,
.dm-app .add-arrow-btn.open { background: var(--pen-soft); }

.dm-app .add-btn.add-keyword-btn { background: transparent; border: none; color: var(--pen); width: 36px; height: 36px; flex: 0 0 36px; }

.dm-app .add-btn.add-keyword-btn:hover { background: var(--pen-soft); filter: none; }

.dm-app .add-arrow-popover.open { display: flex; }

.dm-app .add-arrow-head .material-icons { font-size: 18px; color: var(--ink-soft); }

.dm-app .add-arrow-sub.open { opacity: 1; transform: translateX(0); pointer-events: auto; }

.dm-app .add-arrow-sub.open { transform: translateX(0); }

.dm-app .add-arrow-opt.active { background: var(--pen-soft); color: var(--pen); font-weight: 700; }

.dm-app .add-arrow-opt .material-icons { font-size: 18px; color: var(--ink-soft); }

.dm-app .add-arrow-opt.active .material-icons { color: var(--pen); }

@media (max-width: 640px) {
.dm-app .filter-chips-wrap { margin-bottom: 16px; }
}

.dm-app .template-modal-row .material-icons { font-size: 20px; flex-shrink: 0; }

.dm-app .main-layout { flex: 1 1 0; display: flex; align-items: stretch; gap: 0; margin-top: 0; }

.dm-app .main-col { flex: 1 1 0; min-width: 0; padding: 16px; }

.dm-app .timer-col { flex: 0 0 380px; position: sticky; top: 10px; align-self: stretch; border-inline-start: 1px solid var(--paper-line); padding: 16px; max-height: calc(100vh - 20px); overflow-y: auto; scroll-behavior: smooth; }

.dm-app .timer-panel-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

.dm-app .timer-panel-title { font-family: "Inter", "Almarai"; font-weight: 800; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.dm-app .timer-panel-title .material-icons { font-size: 20px; color: var(--pen); }

.dm-app .timer-add-row { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 5px; transition: border-color 0.12s ease; }

.dm-app .timer-add-row:focus-within { border-color: var(--pen); }

.dm-app .timer-add-row input { flex: 1; min-width: 0; border: none; border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: 0.9rem; background: transparent; color: var(--ink); outline: none; }

.dm-app .timer-add-btn { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; border: none; background: transparent; color: var(--pen); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.12s ease; }

.dm-app .timer-add-btn:hover { background: var(--pen-soft); }

.dm-app .timer-add-btn .material-icons { font-size: 20px; }

.dm-app .timer-add-wrap { position: relative; flex: 0 0 auto; }

.dm-app .timer-type-popover.open { display: flex; }

.dm-app .timer-type-option .material-icons { font-size: 20px; color: var(--pen); }

.dm-app .timer-list { display: flex; flex-direction: column; gap: 10px; }

.dm-app .timer-item { background: var(--card); border: 1px solid var(--paper-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; animation: timerFadeIn 0.25s ease; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }

.dm-app .timer-item.running { border-color: var(--done); box-shadow: 0 0 0 3px var(--done-soft); }

.dm-app .timer-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.dm-app .timer-name { flex: 1 1 auto; min-width: 0; font-size: 0.92rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

.dm-app .timer-target-label .material-icons { font-size: 13px; }

.dm-app .timer-item.countdown-ended { border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }

.dm-app .timer-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); flex: 0 0 auto; }

.dm-app .timer-item.running .timer-status-dot { background: var(--done); animation: timerPulse 1.4s ease-in-out infinite; }

.dm-app .timer-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.dm-app .timer-clock { font-family: "Almarai", monospace; font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: 0.5px; direction: ltr; }

.dm-app .timer-controls { display: flex; gap: 6px; }

.dm-app .timer-btn { width: 34px; height: 34px; border-radius: 9px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, transform 0.1s ease; }

.dm-app .timer-btn:active { transform: scale(0.92); }

.dm-app .timer-btn .material-icons { font-size: 19px; }

.dm-app .timer-toggle-btn { background: var(--done-soft); color: var(--done); }

.dm-app .timer-toggle-btn:hover { background: var(--done); color: #fff; }

.dm-app .timer-toggle-btn.is-running { background: #fdecea; color: #c0392b; }

.dm-app .timer-toggle-btn.is-running:hover { background: #c0392b; color: #fff; }

.dm-app .timer-focus-btn { background: var(--pen-soft); color: var(--pen); }

.dm-app .timer-focus-btn:hover { background: var(--pen); color: #fff; }

.dm-app .timer-delete-btn { background: transparent; color: var(--ink-soft); }

.dm-app .timer-delete-btn:hover { background: #fdecea; color: #c0392b; }

.dm-app .app-shell { flex: 1 1 0; display: flex; align-items: stretch; gap: 0; }

.dm-app .side-nav { flex: 0 0 64px; position: sticky; top: 10px; align-self: stretch; z-index: 50; background: transparent; border-inline-end: 1px solid var(--paper-line); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; /* أنيميشن الطي والتوسيع */ transition: flex-basis 0.32s cubic-bezier(0.4, 0, 0.2, 1); }

.dm-app .side-nav-btn { width: 46px; height: 46px; border: none; border-radius: 12px; background: transparent; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease; }

.dm-app .side-nav-btn:hover { background: var(--paper); color: var(--ink); }

.dm-app .side-nav-btn:active { transform: scale(0.92); }

.dm-app .side-nav-btn.active { background: transparent; color: var(--pen); box-shadow: none; }

.dm-app .side-nav-btn.active:hover { background: var(--paper); color: var(--pen); }

.dm-app .side-nav-btn .material-icons { font-size: 22px; }

.dm-app .side-nav-label { display: none; font-size: 0.84rem; font-weight: 700; white-space: nowrap; line-height: 1; }

.dm-app .side-nav-head { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }

.dm-app .side-nav-collapse-btn { display: none; }

@media (min-width: 1350px) {
.dm-app .side-nav:not(.collapsed) .side-nav-head { flex-direction: row-reverse; }
.dm-app .side-nav-collapse-btn { display: flex; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
.dm-app .side-nav-collapse-btn .material-icons { font-size: 19px; transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.dm-app .side-nav.collapsed .side-nav-collapse-btn .material-icons { transform: rotate(180deg); }
.dm-app .side-nav-collapse-btn .material-icons { transform: rotate(180deg); }
.dm-app .side-nav.collapsed .side-nav-collapse-btn .material-icons { transform: rotate(0deg); }
}

@media (min-width: 1350px) {
.dm-app .side-nav:not(.collapsed) { flex-basis: 212px; align-items: stretch; padding: 12px 10px; }
.dm-app .side-nav:not(.collapsed) .side-nav-btn { width: 100%; justify-content: flex-start; gap: 12px; padding-inline: 13px; }
.dm-app .side-nav:not(.collapsed) .side-nav-head .side-nav-btn:last-child { flex: 1; }
.dm-app .side-nav-btn .side-nav-label { display: inline; max-width: 0; opacity: 0; overflow: hidden; vertical-align: middle; transition: max-width 0.28s ease, opacity 0.22s ease; }
.dm-app .side-nav:not(.collapsed) .side-nav-btn .side-nav-label { max-width: 150px; opacity: 1; }
.dm-app .side-nav:not(.collapsed) .side-nav-divider { width: 100%; }
}

.dm-app .side-nav-divider { width: 30px; height: 1px; background: var(--ink-soft); opacity: 0.2; margin: 6px 0; flex: 0 0 auto; transition: width 0.28s ease; }

.dm-app .app-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 0; }

.dm-app .header-actions-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dm-app .header-menu-item .material-icons { font-size: 20px; color: var(--ink-soft); flex-shrink: 0; }

.dm-app .header-menu-item:hover .material-icons { color: var(--pen); }

@media (max-width: 640px) {
.dm-app .bottom-tabbar-btn .material-icons { font-size: 22px; }
.dm-app .bottom-tabbar-btn.active { color: var(--pen); }
}

@media (hover: hover) {
.dm-app .task-row:not(.dragging):not(.drag-over):hover,
.dm-app .keyword-row:not(.dragging):not(.drag-over):hover { background-color: var(--paper); }
}

.dm-app .onboarding-step.active { display: flex; animation: onboardingStepIn 0.3s ease; }

.dm-app .onboarding-icon .material-icons { font-size: 42px; }

.dm-app .onboard-feature .material-icons { font-size: 24px; color: var(--pen); }

.dm-app .goal-chip.active { border-color: var(--pen); background: var(--pen-soft); }

.dm-app .goal-chip.active .goal-chip-check { display: inline; }

.dm-app .ob-trial-badge .material-icons { font-size: 15px; }

.dm-app .header-card,
.dm-app .date-nav,
.dm-app .section-title,
.dm-app .bank-wrap,
.dm-app .timer-panel-card,
.dm-app .week-day-card { box-shadow: var(--shadow); border: 1px solid var(--paper-line); background-color: var(--card); }

.dm-app .task-row { box-shadow: none; border: 1px solid var(--paper-line); background-color: var(--card); }

.dm-app .keyword-row { box-shadow: none; border: 1px solid var(--paper-line); background-color: var(--paper); }

@media (max-width: 640px) {
.dm-app .task-more-dropdown { max-width: calc(100vw - 24px); }
.dm-app .task-more-menu-wrap.open-up .task-more-dropdown { top: calc(100% + 4px); bottom: auto; transform: translateY(-5px); }
.dm-app .task-more-menu-wrap.open-up .task-more-dropdown.open { transform: translateY(0); }
.dm-app .task-more-dropdown .priority-popover.open,
.dm-app .task-more-dropdown .clock-choice-popover.open,
.dm-app .task-more-dropdown .type-popover.open { position: fixed; top: auto; bottom: 0; left: 0; right: 0; min-width: 0; max-height: 60vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); transform: none; z-index: 220; }
}

.dm-app .bank-toggle,
.dm-app .date-display .day-name,
.dm-app .section-title,
.dm-app .modal-header h2,
.dm-app .stats-view-header h2,
.dm-app .timer-panel-title { font-family: var(--font-heading); }

@media (max-width: 900px) {
.dm-app .priority-popover,
.dm-app .clock-choice-popover { right: auto; left: calc(100% + 8px); }
.dm-app .priority-popover,
.dm-app .clock-choice-popover { left: auto; right: calc(100% + 8px); }
.dm-app .add-arrow-sub.open,
.dm-app .add-arrow-sub.open { transform: translateY(0); }
}

.dm-app .week-task-row.done .week-task-name { text-decoration: line-through; color: var(--ink-soft); }

.dm-app .main-layout.week-view-active .timer-col { display: none; }

.dm-app .tb-date-nav { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 12px 15px 6px; margin-bottom: 0; background: transparent; border: none; box-shadow: none; border-radius: 0; }

.dm-app .tb-month-label { font-size: 1.25rem; font-weight: 700; color: var(--ink); white-space: nowrap; flex-shrink: 0; }

.dm-app .tb-nav-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; background: var(--card); border: 1.5px solid var(--v-line); border-radius: 12px; height: 36px; padding: 0 2px; }

.dm-app .tb-day-label { font-family: "Inter", "Almarai", sans-serif; font-size: 1rem; font-weight: 600; color: var(--pen); white-space: nowrap; background: none; border: none; cursor: pointer; padding: 4px 6px; border-radius: 8px; transition: background 0.15s ease; }

.dm-app .tb-day-label:hover { background: var(--paper-line); }

.dm-app .tb-actions-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; }

.dm-app .tb-range-dropdown { position: relative; flex-shrink: 0; }

.dm-app .tb-range-drop-btn { display: inline-flex; align-items: center; gap: 2px; background: var(--card); border: 1.5px solid var(--v-line); border-radius: 10px; height: 36px; padding: 0 10px; font-family: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: background 0.15s ease; }

.dm-app .tb-range-drop-btn:hover { background: var(--paper); }

.dm-app .tb-drop-arrow { transition: transform 0.2s ease; font-size: 1rem !important; }

.dm-app .tb-range-menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 110px; background: var(--popup); border: 1px solid var(--popup-border); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 4px; z-index: 40; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.96); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease; }

.dm-app .tb-range-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.dm-app .tb-range-menu-item.active { background: var(--pen); color: #fff; }

.dm-app .tb-today-btn { flex-shrink: 0; background: var(--pen); color: #fff; border: none; border-radius: 10px; height: 36px; padding: 0 14px; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }

.dm-app .tb-today-btn.current { background: var(--paper); color: var(--pen); border: 1px solid var(--pen); }

.dm-app .tb-today-btn:hover { opacity: 0.85; }

.dm-app .tb-unscheduled-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1.5px solid var(--v-line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; transition: background 0.15s ease; flex-shrink: 0; }

@media (hover: hover) { .dm-app .tb-unscheduled-icon-btn:hover { background: var(--done-soft); border-color: var(--done); color: var(--done); } }

.dm-app .tb-unscheduled-icon-btn .material-icons { font-size: 1.15rem; }

.dm-app .tb-unscheduled-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--done); color: #fff; font-size: 0.65rem; font-weight: 700; line-height: 16px; text-align: center; }



.dm-app .tbw-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)) 56px; margin-top: 16px; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--card); overflow-x: clip; }

@media (max-width: 1100px) {
.dm-app .tbw-grid { overflow-x: auto; }
}

.dm-app .tbw-grid.tbw-single { grid-template-columns: minmax(0, 1fr) 56px; margin-top: 0; }

.dm-app .tbw-grid.tbw-single .tbw-col { border-inline-end: none; }

.dm-app .tbw-grid.tbw-single .tbw-col-head { cursor: default; }

.dm-app .tbw-col { display: flex; flex-direction: column; min-width: 0; background: transparent; border-inline-end: 1px solid var(--paper-line); }

.dm-app .tbw-col:nth-child(7) { border-inline-end: none; }

.dm-app .tbw-col.today { background: transparent; }

.dm-app .tbw-col.weekend .tbw-col-head { background: color-mix(in srgb, var(--card) 94%, var(--ink)); }

.dm-app .tbw-col-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; padding: 0 4px; border: none; border-bottom: 1px solid var(--paper-line); background: var(--card); color: var(--ink); font-family: inherit; cursor: pointer; }

.dm-app .tbw-col-head.today .tbw-col-num { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--pen); color: #fff; font-size: 0.92rem; font-weight: 700; }

.dm-app .tbw-col-num { font-size: 1.05rem; font-weight: 800; }

.dm-app .tbw-col-track { position: relative; cursor: pointer; }

.dm-app .tbw-hours { display: flex; flex-direction: column; background: transparent; border-inline-start: 1px solid var(--paper-line); }

.dm-app .tbw-hours-head { height: 54px; border-bottom: 1px solid var(--paper-line); }

.dm-app .tbw-hours-track { position: relative; }

.dm-app .tbw-hour-label { position: absolute; right: 6px; font-size: 0.68rem; color: var(--ink-soft); white-space: nowrap; user-select: none; }

.dm-app .tbw-hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--paper-line); pointer-events: none; }

.dm-app .timeline-block.tbw-block { cursor: pointer; /* نفس عرض اليوم: touch-action:none عشان سحب البلوك والريسايز باللمس يوصلوا للـ JS بدل ما المتصفح يخطف الإيماءة للسكرول — السكرول بيفضل شغال من الأماكن الفاضية في العمود وعمود الساعات والعناوين */ touch-action: none; }

.dm-app .addtl-time-btn .material-icons { color: var(--pen); font-size: 18px; }

.dm-app .addtl-duration-chip.active { background: var(--pen); border-color: var(--pen); color: #fff; }

.dm-app .addtl-actions .tl-task-btn.primary .material-icons { color: #fff; }

.dm-app .timeblock-layout { position: relative; display: flex; gap: 22px; align-items: flex-start; margin-top: 8px; }

.dm-app .timeblock-layout .tbw-grid { margin-top: 0; }

.dm-app .timeblock-calendar-col { flex: 1 1 auto; min-width: 0; }

.dm-app .timeblock-side.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }

.dm-app .tb-side-close-btn .material-icons { font-size: 1.1rem; }

.dm-app .timeline-now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--missed); z-index: 5; pointer-events: none; }

.dm-app .timeline-now-dot { position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--missed); }

.dm-app .timeline-block { position: absolute; background: var(--blk, var(--pen)); border: none; border-radius: 6px; padding: 4px 8px; overflow: hidden; cursor: grab; touch-action: none; display: flex; flex-direction: column; gap: 1px; transition: box-shadow 0.15s ease; }

.dm-app .timeline-block:hover { box-shadow: var(--shadow); }

.dm-app .timeline-block.dragging,
.dm-app .timeline-block.resizing { cursor: grabbing; box-shadow: var(--shadow); z-index: 20; opacity: 0.92; }

.dm-app .timeline-block.done { background: var(--done); opacity: 0.78; }

.dm-app .timeline-block.done .timeline-block-name { text-decoration: line-through; }

.dm-app .timeline-block-time { font-size: 0.68rem; color: rgba(255, 255, 255, 0.82); white-space: nowrap; }

.dm-app .timeline-block.short { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }

.dm-app .timeline-block.short .timeline-block-time { flex-shrink: 0; }

.dm-app .timeline-block.short .timeline-block-name { flex: 1 1 auto; min-width: 0; }

.dm-app .timeline-block-name { font-size: 0.8rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dm-app .timeline-block-resize-handle { position: absolute; bottom: 0; left: 0; right: 0; height: 9px; cursor: ns-resize; touch-action: none; }

.dm-app .timeline-block-resize-handle::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.5); }

@media (pointer: coarse) {
.dm-app .timeline-block-resize-handle { height: 20px; }
.dm-app .timeline-block-resize-handle::after { width: 44px; height: 5px; bottom: 7px; }
.dm-app .timeline-block { touch-action: pan-y; user-select: none; -webkit-touch-callout: none; }
}

.dm-app .timeline-drop-preview { position: absolute; left: 0; right: 0; height: 2px; background: var(--pen); z-index: 15; pointer-events: none; }

.dm-app .timeline-drop-preview::before { content: attr(data-label); position: absolute; top: -9px; right: 4px; background: var(--pen); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }

.dm-app .main-col.tb-stretch { display: flex; flex-direction: column; }

.dm-app .main-col.tb-stretch #content { flex: 1; display: flex; flex-direction: column; min-height: 0; }

@media (max-width: 1236px) {
.dm-app .main-layout.tb-stretch .main-col { flex: 1 1 auto; }
.dm-app .main-layout.tb-stretch .timer-col { flex: 0 0 auto; }
}

@media (max-width: 640px) {
.dm-app .app-shell.tb-stretch { display: flex; flex-direction: column; }
}

.dm-app .tb-full-height .tb-date-nav { flex-shrink: 0; }

.dm-app .tb-full-height .timeblock-layout:not(.timeblock-layout-month) { flex: 1; display: flex; /* لازم stretch مش flex-start (القيمة الأصلية): مع flex-start العمود بياخد طول المحتوى كله (1472px) وبيتقص من غير أي سكرول، ومع stretch بيتحصر في ارتفاع الشاشة والسكرول الداخلي بيشتغل */ align-items: stretch; min-height: 0; overflow: hidden; }

.dm-app .tb-full-height .timeblock-calendar-col { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.dm-app .timeblock-calendar-col .tbw-col-head,
.dm-app .timeblock-calendar-col .tbw-hours-head { position: sticky; top: 0; z-index: 6; }

.dm-app .timeblock-calendar-col .tbw-hours-head { background: var(--card); }

.dm-app .tbm-event.done { opacity: 0.55; }

.dm-app .tbm-event.done .tbm-event-name { text-decoration: line-through; }

.dm-app .tbm-more-item.done { opacity: 0.55; }

.dm-app .tbm-more-item.done .tbm-event-name { text-decoration: line-through; }

@media (max-width: 900px) {
.dm-app .timeblock-layout { position: relative; flex-direction: column; align-items: stretch; }
.dm-app .timeblock-side-backdrop.open { opacity: 1; visibility: visible; }
.dm-app .timeblock-side.open { transform: translateY(0); visibility: visible; opacity: 1; }
.dm-app .timeblock-calendar-col { width: 100%; }
.dm-app .tb-date-nav { flex-wrap: nowrap; }
.dm-app .tb-nav-group { gap: 4px; padding: 2px; flex-shrink: 1; min-width: 0; overflow: hidden; }
.dm-app .nav-btn { padding: 4px; flex-shrink: 0; }
.dm-app .tb-day-label { font-size: 0.82rem; padding: 4px 4px; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dm-app .tb-actions-group { flex-shrink: 1; min-width: 0; }
.dm-app .tb-today-btn { display: none; }
.dm-app .tb-today-fab .material-icons { font-size: 18px; }
}

.dm-app .view-head-action-btn .material-icons { font-size: 16px; color: var(--pen); }

.dm-app .smart-tab .material-icons { font-size: 16px; color: var(--ink-soft); }

.dm-app .smart-tab.active { border-color: var(--pen); color: var(--pen); background: var(--pen-soft); }

.dm-app .smart-tab.active .material-icons { color: var(--pen); }

.dm-app .smart-tab.active .smart-tab-count { color: var(--card); background: var(--pen); }

.dm-app .smart-task-row.done { opacity: 0.55; }

.dm-app .smart-task-row.done .smart-task-name { text-decoration: line-through; }

.dm-app .smart-done-btn .material-icons { font-size: 22px; }

.dm-app .smart-task-time .material-icons { font-size: 13px; }

.dm-app .smart-to-day-btn .material-icons { font-size: 20px; }

.dm-app .task-more-menu-wrap { position: relative; display: flex; flex-shrink: 0; }

.dm-app .task-more-btn { color: var(--ink-soft); transition: color 0.15s ease, background 0.15s ease; }

.dm-app .task-more-btn:hover { color: var(--ink); background: var(--paper); }

.dm-app .task-more-dropdown { position: absolute; top: calc(100% + 4px); left: 0; background: var(--popup); border: 1px solid var(--popup-border); box-shadow: var(--shadow); border-radius: 10px; padding: 6px; z-index: 100; display: flex; flex-direction: column; min-width: 140px; opacity: 0; transform: translateY(-5px); pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }

.dm-app .task-more-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 640px) {
.dm-app .task-more-menu-wrap .task-more-dropdown.open { position: fixed; top: auto; bottom: auto; left: auto; right: auto; margin: 0; z-index: 200; }
}

.dm-app .task-more-menu-wrap.open-up .task-more-dropdown { top: auto; bottom: calc(100% + 4px); left: 0; transform: translateY(5px); }

.dm-app .task-more-menu-wrap.open-up .task-more-dropdown.open { transform: translateY(0); }

.dm-app .task-more-dropdown:not(.open),
.dm-app .priority-popover:not(.open),
.dm-app .clock-choice-popover:not(.open) { display: none; }

.dm-app .task-more-menu-wrap.open-up .priority-popover,
.dm-app .task-more-menu-wrap.open-up .clock-choice-popover { top: auto; bottom: -6px; }

.dm-app .tmd-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; background: transparent; border: none; border-radius: 6px; color: var(--ink); font-family: inherit; font-size: 0.88rem; cursor: pointer; transition: background 0.1s ease, color 0.1s ease; }

.dm-app .tmd-btn:hover { background: var(--paper); }

.dm-app .tmd-btn .material-icons { font-size: 18px; color: var(--pen); }

.dm-app .tmd-btn.active { color: var(--done); background: var(--done-soft); }

.dm-app .tmd-btn.active .material-icons { color: var(--done); }

.dm-app .tmd-btn.delete { color: #e74c3c; }

.dm-app .tmd-btn.delete .material-icons { color: #e74c3c; }

.dm-app .tmd-btn.delete:hover { background: #fadbd8; }

.dm-app .task-more-dropdown .priority-btn { opacity: 1; }

.dm-app .task-more-dropdown .priority-btn.priority-high { color: var(--missed); }

.dm-app .task-more-dropdown .priority-btn.priority-high .material-icons { color: var(--missed); }

.dm-app .task-more-dropdown .priority-btn.priority-medium { color: #d98c15; }

.dm-app .task-more-dropdown .priority-btn.priority-medium .material-icons { color: #d98c15; }

.dm-app .task-more-dropdown .priority-btn.priority-low { color: var(--done); }

.dm-app .task-more-dropdown .priority-btn.priority-low .material-icons { color: var(--done); }

.dm-app .dark-mode .task-more-dropdown .priority-btn.priority-medium,
.dm-app .dark-mode .task-more-dropdown .priority-btn.priority-medium .material-icons { color: #f0ab2e; }

.dm-app .recurrence-day-chip.active { background: var(--pen); border-color: var(--pen); color: #fff; }

.dm-app .recurrence-preset.active { background: var(--pen-soft); border-color: var(--pen); color: var(--pen); }

.dm-app .subtask-item.done .subtask-title { text-decoration: line-through; opacity: 0.6; }

.dm-app .global-search-result-status.done { color: var(--done); }

.dm-app .notif-setting-title .material-icons { font-size: 18px; color: var(--pen); }

.dm-app .account-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.dm-app .ap-section-title .material-icons { font-size: 16px; color: var(--pen); }

.dm-app .ap-icon-btn .material-icons { font-size: 20px; }

.dm-app .ap-btn .material-icons { font-size: 18px; color: var(--pen); }

.dm-app .ap-btn-danger .material-icons { color: var(--missed); }

.dm-app .lang-switch-btn .material-icons { font-size: 16px; color: var(--pen); }

.dm-app .ap-data-icon-btn .material-icons { font-size: 22px; }

.dm-app .ap-btn-subtle .material-icons { color:var(--ink-soft) }

.dm-app .ap-btn-subtle:hover .material-icons { color:var(--pen) }

.dm-app .ap-danger-link .material-icons { font-size:16px }

.dm-app .ap-mode-btn .material-icons { font-size: 17px; }

.dm-app .ap-mode-btn.active { border-color: var(--pen); background: var(--pen-soft); color: var(--pen); }

.dm-app .ap-swatch.active { border-color: var(--pen); }

.dm-app .ap-swatch.active::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--pen); border-radius: 50%; opacity: 0.4; }

@media (max-width: 640px) {
.dm-app .account-panel.open { transform: translateY(0); }
}

.dm-app .stats-view,
.dm-app .day-view.animate-in,
.dm-app .week-view.animate-in,
.dm-app .timeblock-view.animate-in,
.dm-app .smart-view.animate-in { animation: statsFadeIn 0.25s ease; }

.dm-app .stats-view-header { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 2px solid var(--paper-line); border-radius: 18px; padding: 8px 8px 8px 14px; margin-bottom: 14px; }

.dm-app .stats-view-header h2 { font-family: "Inter", "Almarai", sans-serif; font-size: 1.25rem; margin: 0; color: var(--ink); }

.dm-app .stats-summary-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.dm-app .stats-summary-pill { flex: 1 1 0; background: var(--card); border: 1px solid var(--paper-line); border-radius: 14px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }

.dm-app .stats-summary-pill .material-icons { font-size: 20px; color: var(--pen); }

.dm-app .stats-summary-pill strong { font-size: 1.2rem; color: var(--ink); line-height: 1.2; }

.dm-app .stats-summary-pill small { font-size: 0.72rem; color: var(--ink-soft); line-height: 1.2; }

.dm-app .stats-tab-dropdown-wrap { position: relative; }

.dm-app .stats-tab-trigger { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--popup); border: 1px solid var(--paper-line); border-radius: 10px; cursor: pointer; transition: background 0.15s ease; }

.dm-app .stats-tab-trigger:hover { background: var(--paper); }

.dm-app .stats-tab-trigger .material-icons { font-size: 20px; color: var(--pen); }

.dm-app .stats-tab-trigger-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.dm-app .stats-tab-arrow { font-size: 18px !important; color: var(--ink-soft) !important; transition: transform 0.2s ease; }

.dm-app .stats-tab-dropdown-wrap.open .stats-tab-arrow { transform: rotate(180deg); }

.dm-app .stats-tab-dropdown { display: flex; flex-direction: column; gap: 2px; position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; background: var(--popup); border: 1px solid var(--popup-border); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); z-index: 100; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }

.dm-app .stats-tab-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dm-app .stats-tab-option { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; color: var(--ink); font-family: inherit; font-size: 0.85rem; font-weight: 600; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; text-align: right; }

.dm-app .stats-tab-option .material-icons { font-size: 18px; color: var(--pen); }

.dm-app .stats-tab-option:hover { background: var(--paper); color: var(--ink); }

.dm-app .stats-tab-option.active { background: var(--pen-soft); color: var(--pen); font-weight: 700; }

.dm-app .stats-tab-option.active .material-icons { color: var(--pen); }

.dm-app .stats-range-toggle { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--paper-line); border-radius: 12px; padding: 4px; }

.dm-app .stats-range-btn { border: none; background: transparent; color: var(--ink-soft); font-family: inherit; font-size: 0.85rem; font-weight: 700; padding: 7px 20px; border-radius: 9px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }

.dm-app .stats-range-btn:hover { color: var(--ink); }

.dm-app .stats-range-btn.active { background: var(--pen); color: #fff; }

.dm-app .stats-range-btn .stats-lock-icon { font-size: 15px; vertical-align: -3px; margin-inline-end: 3px; opacity: 0.8; }

.dm-app .compare-section-title .material-icons { font-size: 18px; color: var(--pen); }

.dm-app .compare-card-label .material-icons { font-size: 16px; }

.dm-app .compare-card-delta .material-icons { font-size: 13px; }

.dm-app .chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }

.dm-app .chart-card { background: var(--card); border: 1px solid var(--paper-line); border-radius: 14px; padding: 12px 14px 14px; display: flex; flex-direction: column; }

.dm-app .chart-card-title { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

.dm-app .chart-card-title .material-icons { font-size: 16px; color: var(--pen); }

.dm-app .chart-card-body { position: relative; height: 220px; }

.dm-app .chart-card-body canvas { max-width: 100%; }

.dm-app .dm-chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dm-app .dm-grid line { stroke: var(--paper-line); stroke-width: 1; }
.dm-app .dm-bars rect { fill: var(--ink-soft); opacity: 0.26; }
.dm-app .dm-line { fill: none; stroke: var(--pen); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dm-app .dm-area { fill: url(#dmTrendFill); }
.dm-app .dm-dots circle { fill: var(--pen); stroke: var(--card); stroke-width: 2; }
.dm-app .dm-x-labels text { fill: var(--ink-soft); font-family: inherit; font-size: 11px; font-weight: 600; text-anchor: middle; }

.dm-app .dm-donut-wrap { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.dm-app .dm-donut { position: relative; width: min(158px, 66%); aspect-ratio: 1; }
.dm-app .dm-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dm-app .dm-donut-track { fill: none; stroke: var(--paper-line); stroke-width: 10; }
.dm-app .dm-donut-fill { fill: none; stroke: var(--pen); stroke-width: 10; stroke-linecap: round; }
.dm-app .dm-donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.dm-app .dm-donut-label strong { color: var(--ink); font-family: "Inter", "Almarai", sans-serif; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.dm-app .dm-donut-label span { color: var(--ink-soft); font-size: 0.66rem; font-weight: 700; }
.dm-app .dm-donut-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--ink-soft); font-size: 0.68rem; font-weight: 700; }
.dm-app .dm-donut-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dm-app .dm-donut-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dm-app .dm-donut-legend i.done { background: var(--pen); }
.dm-app .dm-donut-legend i.rest { background: var(--paper-line); }
.dm-app .dm-donut-legend b { color: var(--ink); font-weight: 800; }

.dm-app .dm-rank-list { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.dm-app .dm-rank-row { display: flex; flex-direction: column; gap: 4px; }
.dm-app .dm-rank-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 0.7rem; font-weight: 700; }
.dm-app .dm-rank-top b { color: var(--ink-soft); font-size: 0.64rem; font-weight: 800; }
.dm-app .dm-rank-track { height: 6px; border-radius: 999px; background: var(--paper-line); overflow: hidden; }
.dm-app .dm-rank-track span { display: block; height: 100%; border-radius: 999px; background: var(--pen); opacity: 0.55; }

@media (max-width: 720px) and (min-width: 9000px) {
.dm-app .chart-grid { grid-template-columns: 1fr; }
.dm-app .chart-card-body { height: 200px; }
}

@media (max-width: 480px) and (min-width: 9000px) {
.dm-app .stats-summary-row { gap: 8px; }
.dm-app .stats-summary-pill { flex: 0 0 calc(50% - 4px); padding: 10px 8px; min-width: 0; }
.dm-app .stats-summary-pill strong { font-size: 1rem; }
.dm-app .stats-summary-pill small { font-size: 0.68rem; }
}

@media (max-width: 1236px) {
.dm-app .main-layout { flex-direction: column; align-items: stretch; }
.dm-app .main-col { width: 100%; }
.dm-app .timer-col { flex: 1 1 auto; width: 100%; position: static; border-inline-start: none; border-top: 1px solid var(--paper-line); }
}

@media (max-width: 640px) {
.dm-app .app-shell { display: block; }
.dm-app .main-col { padding: 16px 10px; }
.dm-app .side-nav { display: none; }
.dm-app .date-nav { padding: 8px; }
.dm-app .nav-btn { width: 38px; height: 38px; font-size: 1.15rem; }
.dm-app .date-display .day-name { font-size: 1.05rem; }
.dm-app .bank-toggle { padding: 12px 14px; font-size: 1rem; }
.dm-app .section-title { font-size: 1rem; }
.dm-app .add-row { flex-wrap: wrap; padding: 5px; }
.dm-app .add-row input { flex: 1 1 100%; }
.dm-app .add-btn { flex: 1 1 auto; }
.dm-app .bank-add-task-row { flex-wrap: nowrap; }
.dm-app .bank-add-task-row input { flex: 1 1 auto; }
.dm-app .bank-add-task-row .add-keyword-btn { flex: 0 0 36px; }
.dm-app .bank-add-task-row .add-arrow-wrap { flex: 0 0 36px; }
.dm-app .task-list { flex-direction: column; }
.dm-app .task-row { width: 100%; flex: 1 1 100%; align-items: flex-start; }
.dm-app .task-name-btn { flex: 1 1 auto; min-width: 0; }
.dm-app .task-name-btn .task-name { flex: 1 1 auto; }
.dm-app .keyword-row { width: 100%; flex: 1 1 100%; align-items: center; }
.dm-app .keyword-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-app .keyword-icons { flex: 0 0 auto; }
.dm-app .keyword-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dm-app .keyword-name.expanded { overflow: visible; text-overflow: unset; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.dm-app .task-name { width: 100%; min-width: 0; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.dm-app .task-row,
.dm-app .keyword-row { max-width: 100%; }
.dm-app .keyword-row.editing { flex-wrap: wrap; }
.dm-app .keyword-row.editing .edit-input,
.dm-app .keyword-row.editing .custom-select { min-width: 0; }
}

@media (max-width: 380px) {
.dm-app .task-row,
.dm-app .keyword-row { padding: 6px 8px; }
}

@media (max-width: 640px) {
.dm-app .bank-filters-toggle { display: flex; }
.dm-app .stats-view-header { padding: 6px 6px 6px 10px; gap: 4px; }
.dm-app .stats-tab-trigger-label,
.dm-app .stats-tab-arrow { display: none; }
.dm-app .stats-tab-trigger { padding: 0; width: 38px; justify-content: center; }
.dm-app .stats-range-toggle { gap: 0; }
.dm-app .stats-range-btn { padding: 6px 10px; font-size: 0.8rem; }
}

.dm-app .heat-cell.done { background:var(--done);opacity:1 }

.dm-app .heat-cell.missed { background:var(--missed);opacity:.55 }

/* ---------- 8) التخطيط ---------- */

.band-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section { padding-block: clamp(88px, 11vh, 128px); }


.tb-tabs { display: inline-flex; background: var(--mk-bg); border-radius: 11px; padding: 3px; gap: 3px; margin-inline-start: auto; }

.tb-tab {
  border-radius: 8px; padding: 6px 18px;
  font-weight: 700; font-size: 0.82rem; color: var(--mk-sub);
  transition: all var(--t-med) ease;
}

.tb-tab:hover { color: var(--mk-ink); }

.tb-tab.on { background: var(--blue); color: #fff; box-shadow: 0 4px 12px -4px rgba(9, 127, 232, 0.5); }
/* تبويبات الجدول الحقيقي — منفصلة عن الصورة */

.tb-real { overflow: hidden; background: #fff; max-width: 100%; margin-inline: auto; border-radius: 10px; }

.tb-tabs-overlay { display: flex; justify-content: flex-start; gap: 6px; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.tb-tabs-overlay .tb-tab { flex: 0 0 auto; }

/* أسهم التنقل بين عروض الجدول الزمني (نفس سطر الوصف) */
.tb-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--s2); }

.tb-head-row .sec-lead { flex: 1; min-width: 0; margin-top: 0; }

.tb-head-row .tb-nav { margin-top: 0; flex-shrink: 0; }

.tb-nav { display: flex; align-items: center; gap: 12px; margin-top: var(--s3); }

.tb-arrow {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-2);
  border: 1.5px solid var(--line);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, background var(--t-fast) ease;
}

.tb-arrow:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }

.tb-arrow .ic { width: 20px; height: 20px; }

.tb-nav .tb-arrow:first-child .ic { transform: rotate(-90deg); }

.tb-nav .tb-arrow:last-child .ic { transform: rotate(90deg); }

@media (max-width: 640px) {
  .tb-head-row { flex-direction: column; align-items: flex-start; }
}


.tb-pane { display: none; padding: 0; }

.tb-pane.on { display: block; animation: pane-in 0.35s var(--ease); }

@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }


.tb-shot-img { overflow: hidden; background: #fff; line-height: 0; }

.tb-shot-img img { width: 100%; height: auto; display: block; }


.stats-shot-img { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; line-height: 0; max-width: 100%; margin-inline: auto; }

.stats-shot-img img { width: 100%; height: auto; display: block; }


/* ---------- 9) التنفيذ ---------- */

.focus-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.focus-copy .sec-lead { margin-inline: 0; }

.focus-copy h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.25; margin-top: var(--s1); }

.check-points { margin-top: var(--s3); display: flex; flex-direction: column; gap: 14px; }

.check-points li { display: flex; align-items: center; gap: 11px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }

.check-points .ic { width: 21px; height: 21px; color: var(--blue); }


.focus-visual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: stretch; padding: 8px; }

.duo-timers { box-shadow: var(--shadow-sm); min-height: 440px; display: flex; flex-direction: column; }

.duo-timers .ti-input { margin-bottom: 8px; }

.ti-input { display: flex; align-items: center; justify-content: space-between; margin: 14px 20px 4px; background: var(--mk-bg); border: 1px solid var(--mk-line); border-radius: var(--r-md); padding: 10px 12px 10px 10px; }

.ti-add-btn { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: #e0f2fe; color: #0369a1; }

.ti-add-btn .ic { width: 18px; height: 18px; }

.ti-ph { color: var(--mk-sub); font-size: 0.82rem; }

.timer-item { margin: 10px 16px 0; background: #fff; border: 1px solid #e8eaf1; border-radius: 12px; padding: 12px 14px; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }

.timer-item:last-child { margin-bottom: 16px; }

.ti-top { display: flex; align-items: center; gap: 8px; }

.ti-top strong { font-size: 0.92rem; flex: 1; }

.ti-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa3b5; flex-shrink: 0; }

.ti-dur { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: #5b6b7e; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }

.ti-dur .ic { width: 12px; height: 12px; }

.ti-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.ti-clock { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.02em; }

.ti-btns { display: flex; gap: 6px; align-items: center; }

.tib { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid #e2e8f0; color: #64748b; background: #fff; }

.tib .ic { width: 15px; height: 15px; }

.tib.play { background: #e6f4ea; border-color: #c3e6cb; color: #1e8449; }

.tib.full { background: #f5f5f5; border-color: #d0d0d0; color: #111111; }

.tib.trash { background: #fff; border-color: #e2e8f0; color: #94a3b8; }

.tib.pause { background: #fdecec; border-color: rgba(220, 38, 38, 0.28); color: var(--mk-red); }

.timer-item.running { border-color: rgba(22, 163, 74, 0.45); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }


.phone-shot {
  position: relative; width: min(280px, 100%); margin-inline: auto; align-self: stretch;
  background: #0f172b; border-radius: 34px; border: 6px solid #223052;
  box-shadow: var(--shadow-sm); color: #fff; text-align: center;
  padding: 44px 22px 28px; font-family: var(--font-mk); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 420px;
}

.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50%; width: 80px; height: 20px; border-radius: 99px; background: #223052; }

.ph-task { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 0.78rem; font-weight: 700; color: #d7e3f2; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 6px 14px; width: auto; max-width: fit-content; align-self: center; }

.ph-task .ic { width: 14px; height: 14px; color: #7fb8dd; }

.ph-digits { font-size: clamp(3rem, 6.5vw, 4rem); font-weight: 700; line-height: 1.15; margin-top: 14px; font-variant-numeric: tabular-nums; }

.ph-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 8px; align-self: stretch; }

.ph-bar i { display: block; height: 100%; width: var(--w, 60%); border-radius: 99px; background: #0284c7; }

.ph-scale { width: 100%; display: flex; justify-content: space-between; font-size: 0.66rem; color: #8ba0bd; margin-top: 7px; align-self: stretch; }

.ph-actions { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 24px; }

.ph-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 12px; padding: 10px 17px; font-size: 0.82rem; font-weight: 700; }

.ph-btn .ic { width: 16px; height: 16px; }

.ph-btn.ghost { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); color: #e7eef7; }

.ph-btn.main { width: 46px; height: 46px; justify-content: center; padding: 0; border-radius: 50%; background: #0284c7; color: #fff; }
/* ---------- 10) القياس ---------- */
/* ---------- 11) Bento ---------- */
/* توهج الحدود يتبع الماوس */
/* mini calendar — مطابق للتطبيق */
/* ---------- 11b) المميزات — شريط الكروت ---------- */

.feat-strip { max-width: 100%; margin-inline: auto; }

.fs-viewport {
  overflow: hidden;
  padding-block: 10px;
  /* تلاشي ناعم على الحافتين بدل القص الحاد للبطاقات الجانبية */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.fs-track {
  display: flex; align-items: center; gap: 16px; direction: rtl;
  will-change: transform;
  transition: transform 0.6s var(--ease);
}
.fs-track.no-trans { transition: none; }

.fs-card {
  direction: rtl; flex: 0 0 calc((100% - 16px) / 2 - 48px); min-width: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 18px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: opacity var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.fs-card:not(.on) { opacity: 0.55; }
.fs-card:hover { opacity: 1; }
.fs-card.on {
  opacity: 1; border-color: var(--blue);
  box-shadow: 0 16px 30px -16px rgba(9, 127, 232, 0.4);
  transform: translateY(-5px);
}

.fsc-shot {
  width: 100%; height: 440px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.fsc-shot img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 43, 0.25);
}

.fsc-body {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; text-align: right;
}
.fsc-chip {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue-tint); color: var(--blue);
  margin-top: 2px;
}
.fsc-chip .ic { width: 18px; height: 18px; }
.fsc-copy { flex: 1; min-width: 0; }
.fsc-name { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.fsc-desc { font-size: 0.8rem; color: var(--ink-2); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fs-controls {
  display: flex; align-items: center; justify-content: center;
  margin-top: var(--s3);
}

.fs-dots { display: flex; align-items: center; gap: 8px; }
.fs-dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--ink-3); opacity: 0.45;
  transition: width var(--t-med) var(--ease), opacity var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.fs-dot.on { width: 26px; opacity: 1; background: var(--blue); }
.fs-dot:not(.on):hover { opacity: 0.8; }

@media (max-width: 900px) {
  .fs-viewport { padding-block: 6px; }
  .fs-card { flex-basis: calc((100% - 16px) / 2); }
  .fsc-shot { height: 360px; }
  .fs-controls { margin-top: 18px; }
}

@media (max-width: 560px) {
  .fs-card { flex-basis: 100%; }
  .fsc-shot { height: 300px; }
  .fs-dot { width: 8px; height: 8px; }
  .fs-dot.on { width: 20px; }
  /* البطاقة بعرض الشاشة — قناع التلاشي كان يأكل من أطرافها */
  .fs-viewport { -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-track { transition: none; }
  .fs-card { transition: none; }
}

/* ---------- 11c) بنتو الأدوات: شبكة متفاوتة بموكات مطابقة للتطبيق ---------- */
#more, #features { border-top: 1px solid var(--line); }
/* إخفاء مؤقت لسكشن الديمو (#how) — موجود في الـ DOM والكود، يُعاد بإزالة السطر */
#how { display: none; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.mg-card {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.mg-card.mg-hero { grid-column: span 3; }
.mg-card.mg-wide { grid-column: span 6; flex-direction: row; align-items: center; gap: 20px; }
.mg-card.mg-wide .fsc-copy { flex: 1; }
.mg-card.mg-wide .mg-wave { flex: 1.4; }
/* المعاينات تتحاذى من تحت في صفوف الكروت المتفاوتة */
.mg-card > .mg-mock:last-child,
.mg-card > .mg-themebox:last-child,
.mg-card > .mg-voicecol:last-child { margin-top: auto; }
/* منع أي خروج عن الكارت في الشبكة */
.mg-card, .mg-mock { min-width: 0; }
.mg-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
/* كروت زجاجية: خلفية شفافة مع تمويه — تُرى فوق الغسيل المتدرج للسكشن */
#more {
  background:
    radial-gradient(720px 340px at 12% 0%, rgba(9, 127, 232, 0.09), transparent 70%),
    radial-gradient(680px 320px at 88% 100%, rgba(9, 127, 232, 0.07), transparent 70%),
    linear-gradient(180deg, transparent, rgba(9, 127, 232, 0.04) 30%, rgba(9, 127, 232, 0.04) 70%, transparent);
}
.mg-card {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(9, 127, 232, 0.1);
}
.mg-head { display: flex; align-items: flex-start; gap: 12px; }
.mg-head .fsc-chip { margin-top: 0; flex: none; }
.mg-card .fsc-copy { min-width: 0; }
.mg-card .fsc-desc { white-space: normal; overflow: visible; line-height: 1.7; }
.mg-hero .fsc-name { font-size: 1.05rem; }
.mg-pro {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; line-height: 1;
  color: #fff; background: var(--blue);
  border-radius: 999px; padding: 4px 9px;
  vertical-align: 2px; white-space: nowrap;
}
[dir="ltr"] .mg-card { text-align: left; }

/* منطقة الموك: نفس أرضية التطبيق الفاتحة */
.mg-mock {
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
/* صفوف القوائم الذكية — نفس شكل صفوف التطبيق */
.mini-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--mk-ink);
}
.mini-check {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.8px solid var(--ink-3);
}
.mini-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* داخل نوافذ الكروت v2: اسم المهمة يلتف سطرين بدل القص عشان يفضل مطابقًا للتطبيق */
.pv-win .mini-name {
  white-space: normal;
  overflow: visible;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* تبويبات القوائم الذكية المصغرة */
.mini-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-tab {
  font-size: 0.72rem; font-weight: 700; color: var(--mk-sub);
  background: #fff; border: 1px solid var(--mk-line);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.mini-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.mini-tab b { font-weight: 800; opacity: 0.85; }
.mini-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mini-sub { font-size: 0.7rem; font-weight: 500; color: var(--mk-sub); }
.mini-time {
  flex: none; font-size: 0.7rem; font-weight: 800; color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid rgba(9, 127, 232, 0.3);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
/* شات المساعد — فقاعات التطبيق */
.mg-chat { gap: 8px; }
.mini-user {
  align-self: flex-start;
  background: var(--blue); color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 8px 14px; font-size: 0.82rem; font-weight: 600;
  max-width: 90%;
}
.mini-bot {
  align-self: flex-end;
  background: #fff; color: var(--mk-ink);
  border: 1px solid var(--mk-line);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 14px; font-size: 0.82rem;
  max-width: 95%;
  display: flex; flex-direction: column; gap: 6px;
}
[dir="ltr"] .mini-user { border-radius: 14px 14px 14px 4px; }
[dir="ltr"] .mini-bot { border-radius: 14px 14px 4px 14px; }
.mini-sugs { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-sug {
  font-size: 0.7rem; font-weight: 700; color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 999px;
  padding: 4px 10px; white-space: nowrap;
}
.mini-input {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--blue);
  border-radius: 12px; padding: 8px 12px;
  font-size: 0.75rem; color: var(--mk-sub);
}
.mini-input span:first-child { flex: 1; }
.mini-send {
  flex: none; width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-inline-start: 9px solid var(--blue);
}
/* أعمدة أيام الأسبوع */
.mg-weekcols { flex-direction: row; gap: 8px; }
.mini-wcol {
  flex: 1; min-width: 0;
  background: #fff; border: 1px solid var(--mk-line);
  border-radius: 10px; padding: 8px 6px;
  display: flex; flex-direction: column; gap: 6px;
}
.mini-whead { font-size: 0.72rem; font-weight: 800; color: var(--mk-ink); text-align: center; }
.mini-wdone { font-size: 0.65rem; font-weight: 600; color: var(--mk-sub); text-align: center; }
.mini-wtask {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 600; color: var(--mk-ink);
  min-width: 0;
}
.mini-wtask span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-box {
  flex: none; width: 12px; height: 12px; border-radius: 4px;
  border: 1.6px solid var(--ink-3);
}
/* شيبات التنظيم */
.mg-chips { flex-direction: row; flex-wrap: nowrap; gap: 8px; background: none; border: none; padding: 0; }
.mini-chip {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-size: 0.72rem; font-weight: 700; color: var(--mk-ink);
  background: #fff; border: 1px solid var(--mk-line);
  border-radius: 999px; padding: 7px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* أيام التكرار المصغرة */
.mg-days { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.mini-day {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-size: 0.7rem; font-weight: 700; color: var(--mk-sub);
  background: #fff; border: 1px solid var(--mk-line);
  border-radius: 9px; padding: 6px 2px; white-space: nowrap;
}
.mini-day.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.mini-movelabel { font-size: 0.72rem; font-weight: 700; color: var(--mk-sub); }
.mini-seg { font-size: 0.75rem; }
.mini-seg span { padding: 8px 4px; }
/* صف الصوت: الموجة + زرار المايك + سطر النص */
.mg-voicecol { flex: 1.4; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mg-voicerow { flex-direction: row; align-items: center; gap: 10px; }
.mg-voicerow .mg-wave { flex: 1; }
.mini-micbtn {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
}
.mini-micbtn .ic { width: 18px; height: 18px; }
/* مفتاح الثيم */
.mg-seg {
  flex: none; display: flex; gap: 4px;
  background: var(--mk-bg); border: 1px solid var(--mk-line);
  border-radius: 14px; padding: 4px; min-width: 0;
}
.mg-seg span {
  flex: 1; min-width: 0; text-align: center;
  font-size: 0.8rem; font-weight: 700; color: var(--mk-sub);
  border-radius: 10px; padding: 8px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mg-seg span.on { background: #fff; color: var(--mk-ink); box-shadow: var(--shadow-sm); }
/* صندوق الثيم: معاينة داكنة حقيقية (أسود مزرق) تبيع الميزة بصريًا */
.mg-themebox {
  background: #101828;
  border: 1px solid #1d2939;
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.mini-applabel { font-size: 0.75rem; font-weight: 800; color: #e8eaee; }
.mg-themebox .mg-seg { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.mg-themebox .mg-seg span { color: #98a2b3; }
.mg-themebox .mg-seg span.on { background: var(--blue); color: #fff; box-shadow: none; }
.mg-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-swatches span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sw, var(--ink-3));
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.mg-swatches span.on { outline: 2px solid var(--blue); outline-offset: 2px; }
/* موجة الصوت */
.mg-wave { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; min-height: 64px; }
.mg-wave span {
  width: 5px; border-radius: 3px; background: var(--blue);
  animation: mg-wave 1.2s ease-in-out infinite;
}
.mg-wave span:nth-child(1), .mg-wave span:nth-child(9) { height: 12px; }
.mg-wave span:nth-child(2), .mg-wave span:nth-child(8) { height: 22px; animation-delay: 0.1s; }
.mg-wave span:nth-child(3), .mg-wave span:nth-child(7) { height: 32px; animation-delay: 0.2s; }
.mg-wave span:nth-child(4), .mg-wave span:nth-child(6) { height: 42px; animation-delay: 0.3s; }
.mg-wave span:nth-child(5) { height: 50px; animation-delay: 0.4s; }
@keyframes mg-wave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1000px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-card { grid-column: span 1; }
  .mg-card.mg-hero, .mg-card.mg-wide { grid-column: span 2; }
  .mg-card.mg-wide { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .mg-card, .mg-card.mg-hero, .mg-card.mg-wide { grid-column: span 1; padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-card { transition: none; }
  .mg-wave span { animation: none; }
}
/* ---------- الأسعار ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 100%; margin-inline: auto; align-items: stretch; }

.price-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 24px 20px; text-align: right;
  display: flex; flex-direction: column;
  transition: border-color var(--t-med) ease;
}

.price-card:hover { border-color: var(--ink-3); }

.price-card.featured { border: 1.5px solid var(--blue); background: var(--surface); }

.price-card.featured:hover { border-color: var(--blue-deep); }

.price-badge {
  position: absolute; top: -14px; inset-inline-start: 50%; translate: 50% 0;
  font-size: 0.74rem; font-weight: 700; color: #fff;
  background: var(--blue); border-radius: 999px; padding: 4px 14px;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink-2); }

.price-num { margin-top: 10px; display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; }

.price-num .digits { font-family: var(--font-latin); font-size: clamp(2rem, 3.2vw, 2.4rem); font-weight: 700; color: var(--ink); }

.price-num small { font-size: 0.85rem; color: var(--ink-2); }

.price-for { color: var(--ink-2); font-size: 0.85rem; margin-top: 4px; }

.price-feats { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: start; flex: 1; }

.price-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.85rem; font-weight: 400; color: var(--ink-2); }

.price-feats .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--mk-green); stroke-width: 2.5; flex: none; }

.price-btn { width: 100%; margin-top: 18px; }

/* شارة الخطة الحالية للمشترك (بدل زر اشتراك — غير قابلة للنقر) */
.current-plan-btn { opacity: 0.7; cursor: default; pointer-events: none; }
/* ---------- 15) الأسئلة الشائعة ---------- */

/* استثناء: الأسئلة الشائعة بعرض أضيق للقراءة */
.faq-list { max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }

/* استثناءات التمريك: الأسئلة الشائعة — في المنتصف كما هي */
#faq .sec-head { text-align: center; }

#faq .sec-lead { margin-inline: auto; }

/* استثناءات التمريك: سيكشن الكاروسيل */
#features .sec-head { text-align: start; }

#features .sec-lead { margin-inline: 0; }

.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; transition: border-color var(--t-fast) ease; }

.faq-list details:hover { border-color: var(--ink-3); }

.faq-list summary {
  list-style: none; cursor: pointer; padding-block: 16px;
  font-weight: 700; font-size: 0.96rem; position: relative;
  padding-inline-end: 40px; display: flex; align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-ic { position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--blue); transition: transform var(--t-med) var(--ease); }

.faq-list details[open] .faq-ic { transform: rotate(180deg); }

.faq-list details p { padding-bottom: 16px; color: var(--ink-2); font-size: 0.92rem; }
/* ---------- 16) الختام ---------- */

.finale { position: relative; text-align: center; padding-block: clamp(64px, 9vh, 96px); overflow: hidden; background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }

.finale .container { position: relative; }

.finale h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.3; }

.finale .btn { margin-top: var(--s4); }

.finale-lines { margin-top: var(--s4); display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--ink-2); line-height: 2.1; font-size: 0.98rem; }

.finale-lines span { display: inline-flex; align-items: center; }

.finale-lines span:not(:last-child)::after { content: "·"; margin-inline-start: 16px; color: var(--line); }

.finale-strong { color: var(--blue); font-weight: 800; font-size: inherit; }
/* ---------- 17) الفوتر ---------- */

.footer { background: var(--surface); color: var(--ink-2); border-top: 1px solid var(--line); padding-block: 44px 20px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; align-items: start; }

.footer-brand-block { display: flex; flex-direction: column; gap: 12px; }

.footer-brand { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }

.footer-brand .logo-mark { height: 40px; width: 40px; object-fit: contain; }

.footer-brand-text { font-size: .88rem; color: var(--ink-2); line-height: 1.7; max-width: 28ch; }

.footer-col h4 { font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; text-transform: uppercase; }

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }

.footer-col a { font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: color var(--t-fast) ease; }

.footer-col a:hover { color: var(--blue); }

.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap; align-items: center; text-align: right; }

.footer-copy { font-size: .78rem; color: #71717a; text-align: right; width: 100%; }

.footer-legal-inline { display: flex; gap: 14px; flex-wrap: wrap; }

.footer-legal-inline a { font-size: .78rem; color: var(--ink-3); font-weight: 600; }

.footer-legal-inline a:hover { color: var(--ink-2); }
/* ---------- 18) الاستجابة ---------- */
@media (max-width: 1100px) {
  .focus-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 880px) {
  .nav-links, .nav-login, .nav-actions .btn { display: none; }
  .nav-burger { display: block; }
  .pricing-grid { grid-template-columns: 1fr; }
  .focus-visual { grid-template-columns: 1fr; }
  .phone-shot { transform: none; } }
@media (max-width: 760px) {
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; max-width: none; padding: 13px 8px; font-size: 0.85rem; white-space: nowrap; }
  .orbital { min-height: auto; padding: 28px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; place-items: center; }
  .orbital-core { grid-column: 1 / -1; position: static; gap: 10px; padding-block: 4px; }
  .orbital-title { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .orbital-tag { position: static; width: 100%; justify-content: center; font-size: 0.82rem; padding: 9px 12px; transform: none !important; }
  .tag-8 { transform: none !important; }
  .sec-head h2, .focus-copy h2 { font-size: 1.4rem; }
  .finale h2 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: right; gap: 10px; }
}
@media (max-width: 375px) {
  .orbital { padding: 22px 12px; gap: 8px; }
  .orbital-title { font-size: 1.25rem; line-height: 1.35; }
  .orbital-tag { font-size: 0.78rem; padding: 8px 10px; gap: 6px; }
  .orbital-tag .ic { width: 14px; height: 14px; }
  .sec-head h2, .focus-copy h2 { font-size: 1.3rem; }
  .finale h2 { font-size: 1.2rem; }
}
/* ---------- 19) تقليل الحركة وبدون JS ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .frame, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .btn-primary::after, .bcard, .bcard::after, .price-card, .pg-dot, .pg-pill { transition: none !important; }
  /* ديمو "كيف يعمل": مع تقليل الحركة تتقفل كل الانتقالات وبيشتغل النسخة الساكنة */
  .dm-app *, .dm-tb-block, .dm-timer-item { transition: none !important; animation: none !important; }
}

/* ---------- 20) الإنجليزية (LTR): عكس المحاذاة اليمين لليسار ---------- */
[dir="ltr"] .sec-head,
[dir="ltr"] .fsc-body,
[dir="ltr"] .price-card,
[dir="ltr"] .footer-copy,
[dir="ltr"] .footer-bottom { text-align: left; }

[dir="ltr"] .price-badge { translate: -50% 0; }

[dir="ltr"] .tb-nav .tb-arrow:first-child .ic { transform: rotate(90deg); }

[dir="ltr"] .tb-nav .tb-arrow:last-child .ic { transform: rotate(-90deg); }

[dir="ltr"] .fs-track { direction: ltr; }

[dir="ltr"] .fs-card { direction: ltr; }

/* ---------- 21) المؤقّت ووضع التركيز (عرض تفاعلي) ---------- */
.tfs-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  margin-top: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 48px -32px rgba(15, 23, 43, 0.18);
  overflow: hidden;
}
.tfs-panel {
  padding: 26px;
  background: #f6f8fb;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tfs-panel h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.tfs-panel h3 .ic { width: 18px; height: 18px; color: var(--blue); }
.tfs-add { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 12px; transition: border-color var(--t-fast); }
.tfs-add:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.tfs-add input { flex: 1; border: 0; background: none; outline: 0; padding: 8px 4px; font-size: 0.85rem; font-family: inherit; min-width: 0; color: var(--ink); }
.tfs-add input::placeholder { color: var(--ink-3); }
.tfs-plus { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--blue); border: 0; background: none; cursor: pointer; transition: background var(--t-fast); }
.tfs-plus:hover { background: var(--blue-tint); }
.tfs-plus .ic { width: 18px; height: 18px; }
.tfs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color 0.25s, box-shadow 0.25s; }
.tfs-card.sel { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.tfs-name { font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.tfs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: tfs-pulse 1.4s infinite; }
@keyframes tfs-pulse { 50% { opacity: 0.3; } }
.tfs-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; min-width: 0; gap: 8px; }
.tfs-time { font-size: clamp(1.15rem, 5vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; direction: ltr; flex: none; }
.tfs-card:not(.run) .tfs-time { color: var(--ink-2); }
.tfs-btns { display: flex; gap: 6px; }
.tfs-btns button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: #fff; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.tfs-btns button:hover { background: #f6f8fb; color: var(--ink); }
.tfs-btns button:active { transform: scale(0.94); }
.tfs-btns button.on { background: var(--blue-tint); color: var(--blue); border-color: transparent; }
.tfs-btns .ic { width: 16px; height: 16px; }
/* شاشة التركيز */
.tfs-screen { position: relative; margin: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line-soft); color: var(--ink); min-height: 440px; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 30px 20px; text-align: center; }
.tfs-screen::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(9, 127, 232, 0.1), transparent); top: -210px; left: 50%; transform: translateX(-50%); z-index: -1; }
.tfs-x { position: absolute; top: 14px; inset-inline-start: 14px; color: var(--ink-3); display: grid; place-items: center; width: 30px; height: 30px; }
.tfs-x .ic { width: 16px; height: 16px; }
.tfs-pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 16px; font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.tfs-pill .tfs-dot { background: var(--blue); }
.tfs-screen.paused .tfs-pill .tfs-dot { animation: none; background: var(--ink-3); }
.tfs-big { font-size: clamp(50px, 8vw, 80px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; direction: ltr; line-height: 1.1; margin-top: 20px; color: var(--ink); transition: opacity 0.3s; }
.tfs-screen.paused .tfs-big { opacity: 0.45; }
.tfs-goal { width: min(320px, 80%); margin: 20px auto 0; }
.tfs-goal .tfs-goal-lbl { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-2); margin-bottom: 8px; }
.tfs-goal .tfs-goal-track { height: 4px; border-radius: 9px; background: var(--line-soft); overflow: hidden; }
.tfs-goal .tfs-goal-track i { display: block; height: 100%; background: var(--blue); border-radius: 9px; transition: width 1s linear; }
.tfs-ctl { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 26px; }
.tfs-fin { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 20px; font-size: 0.9rem; font-family: inherit; cursor: pointer; transition: background 0.15s; font-weight: 600; }
.tfs-fin:hover { background: var(--line-soft); }
.tfs-pp { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; transition: transform 0.15s; box-shadow: 0 12px 28px -10px rgba(9, 127, 232, 0.5); }
.tfs-pp:hover { transform: scale(1.06); }
.tfs-pp:active { transform: scale(0.96); }
.tfs-pp .ic { width: 20px; height: 20px; }
.tfs-toast { position: absolute; bottom: 44px; inset-inline: 0; font-size: 0.8rem; color: var(--blue-deep); opacity: 0; transform: translateY(6px); transition: 0.4s; pointer-events: none; }
.tfs-toast.on { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .tfs-stage { grid-template-columns: 1fr; }
  .tfs-panel { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tfs-panel { padding: 18px 14px; }
  .tfs-btns { gap: 4px; }
  .tfs-btns button { width: 30px; height: 30px; }
  .tfs-big { font-size: 44px; }
  .tfs-ctl { gap: 10px; }
  .tfs-fin { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tfs-dot { animation: none; }
  .tfs-goal .tfs-goal-track i { transition: none; }
}

/* ---------- لوحة الإحصائيات (الهوية الجديدة: sq-*) ----------
   نفس أشكال الرسوم الموجودة في التطبيق (gauge مقسّم + donut + twin bars + heat map)
   لكن بتوكنز الهبوط وألوانه. */
.sq-band { background: var(--mk-bg); border-block: 1px solid var(--line); }
.sq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }

.sq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.sq-card.reveal.is-visible { opacity: 1; transform: none; }
.sq-card.span4 { grid-column: span 4; }
.sq-card.span8 { grid-column: span 8; }

.sq-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.sq-icon .ic { width: 18px; height: 18px; }
.sq-label { margin: 0; min-width: 0; color: var(--ink); font-size: .86rem; font-weight: 800; letter-spacing: -.01em; }
.sq-muted { margin-inline-start: auto; color: var(--ink-3); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sq-pill {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.sq-kpi-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sq-big {
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ===== الإنجاز: gauge مقسّم (نفس شكل التطبيق) ===== */
.sq-gauge { position: relative; width: min(100%, 240px); margin: 4px auto 0; }
.sq-gauge svg { display: block; width: 100%; height: auto; }
.sq-gauge-seg {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sqGaugeIn .42s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 24ms);
}
@keyframes sqGaugeIn { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
.sq-gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}
.sq-gauge-label strong {
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sq-gauge-label span { color: var(--ink-3); font-size: .72rem; font-weight: 700; }

/* ===== النشاط الأسبوعي: أعمدة + خط الإنجاز ===== */
.sq-chart { position: relative; flex: 1 1 auto; min-height: 168px; margin-top: 4px; }
.sq-chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.sq-chart-grid i { display: block; height: 1px; background: var(--line); }
.sq-chart-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; clip-path: inset(-2px 100% -2px -2px); transition: clip-path 1.15s var(--ease) .2s; }
.sq-chart-line path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.sq-card.is-visible .sq-chart-line { clip-path: inset(-2px); }
.sq-cols { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; gap: 10px; }
.sq-col { position: relative; flex: 1 1 0; height: 100%; min-width: 0; }
.sq-col-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  height: var(--h, 50%);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #4aa9f6, var(--blue));
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.sq-card.is-visible .sq-col-bar { transform: scaleY(1); }
.sq-col-val {
  position: absolute;
  bottom: calc(var(--h, 50%) + 7px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--ink-2);
  font-size: .6rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sq-chart-days { display: flex; gap: 10px; }
.sq-chart-days span { flex: 1 1 0; min-width: 0; text-align: center; color: var(--ink-3); font-size: .68rem; font-weight: 700; }

/* ===== توزيع الوقت: donut ===== */
.sq-donut { position: relative; width: min(100%, 210px); margin: 2px auto 0; aspect-ratio: 1; }
.sq-donut svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.sq-card.is-visible .sq-donut svg { animation: sqDonutIn .75s var(--ease) both; }
@keyframes sqDonutIn {
  from { opacity: 0; transform: rotate(-90deg) scale(.82); }
  to { opacity: 1; transform: rotate(-90deg) scale(1); }
}
.sq-donut-track { fill: none; stroke: var(--line-soft); stroke-width: 14; }
.sq-donut-arc { fill: none; stroke-width: 14; stroke-linecap: butt; }
.sq-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}
.sq-donut-center strong {
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sq-donut-center span { color: var(--ink-3); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* ===== المخطط مقابل الفعلي: twin bars ===== */
.sq-pair { display: flex; align-items: stretch; gap: 12px; flex: 1 1 auto; min-height: 168px; padding-top: 20px; }
.sq-pair-item { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.sq-pair-plot { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; flex: 1 1 auto; min-height: 116px; }
.sq-pair-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; height: 100%; }
.sq-pair-bar {
  position: relative;
  width: min(34%, 16px);
  border-radius: 6px 6px 2px 2px;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform .55s var(--ease);
}
.sq-card.is-visible .sq-pair-bar { transform: scaleY(1); }
.sq-pair-bar.goal {
  height: var(--goal);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #dfe5ec, #cbd3de);
}
.sq-pair-bar.actual {
  height: var(--h);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tone) 16%, transparent);
}
.sq-pair-pct {
  position: absolute;
  left: 50%;
  bottom: calc(var(--top, 0%) + 8px);
  transform: translateX(-50%);
  direction: ltr;
  color: var(--tone);
  font-family: var(--font-latin);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sq-pair-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-2);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sq-pair-time { color: var(--ink-3); font-size: .6rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.sq-pair-time b { color: var(--ink-2); font-weight: 800; }

/* ===== خريطة الالتزام: ٣ أسابيع × ٧ أيام ===== */
.sq-heat-sub { margin: 0; color: var(--ink-3); font-size: .72rem; font-weight: 600; }
.sq-heat-wrap { margin-top: auto; }
.sq-heat-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  direction: ltr;
}
.sq-heat-days span {
  text-align: center;
  color: var(--ink-3);
  font-size: .56rem;
  font-weight: 700;
  white-space: nowrap;
}
.sq-heat {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  direction: ltr;
}
.sq-heat i {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  background: var(--line);
  color: var(--ink-3);
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  opacity: .35;
}
.sq-heat i.done { background: var(--blue); color: #fff; opacity: 1; }
.sq-heat i.missed { background: var(--mk-red); color: #fff; opacity: .8; }
.sq-heat i.rest { background: #cbd5e1; color: #64748b; opacity: 1; }
.sq-heat i.today { box-shadow: 0 0 0 2px rgba(9, 127, 232, .4); }
.sq-card.is-visible .sq-heat i {
  animation: sqHeatIn .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes sqHeatIn {
  from { opacity: 0; transform: scale(.5); }
}
.sq-heat-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: .68rem;
  font-weight: 700;
}
.sq-heat-sum span { display: inline-flex; align-items: center; gap: 5px; }
.sq-heat-sum i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.sq-heat-sum i.missed { background: var(--mk-red); }
.sq-heat-sum i.rest { background: #cbd5e1; }
.sq-heat-sum b { color: var(--ink); font-weight: 800; }

/* ===== legends ===== */
.sq-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
}
.sq-legend li { display: flex; align-items: center; gap: 8px; }
.sq-legend b {
  margin-inline-start: auto;
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .sq-legend b { margin-left: 0; margin-right: auto; }
.sq-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.sq-dot.done { background: var(--blue); }
.sq-dot.missed { background: var(--mk-red); }
.sq-dot.rest { background: #cbd5e1; }
.sq-dot.c-work { background: #097fe8; }
.sq-dot.c-study { background: #4aa9f6; }
.sq-dot.c-sport { background: #d97706; }

@media (hover: hover) {
  .sq-card { transition: opacity .55s var(--ease), transform .3s ease, box-shadow .3s ease; }
  .sq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
@media (max-width: 1080px) {
  .sq-card.span4, .sq-card.span8 { grid-column: span 6; }
}
@media (max-width: 720px) {
  .sq-grid { gap: 14px; }
  .sq-card.span4, .sq-card.span8 { grid-column: 1 / -1; }
  .sq-card { padding: 18px; border-radius: var(--r-md); }
  .sq-gauge { width: min(100%, 210px); }
  .sq-donut { width: min(100%, 190px); }
  .sq-chart { min-height: 150px; }
  .sq-cols, .sq-chart-days { gap: 6px; }
  .sq-col-val { font-size: .54rem; }
  .sq-heat, .sq-heat-days { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sq-card,
    .sq-donut svg,
    .sq-heat i,
    .sq-gauge-seg,
    .sq-col-bar,
    .sq-pair-bar,
    .sq-chart-line,
    .sq-chart-line path {
    animation: none !important;
    transition: none !important;
  }
  .sq-card { opacity: 1; transform: none; }
  .sq-card:hover { transform: none; }
  .sq-gauge-seg { opacity: 1; }
  .sq-col-bar, .sq-pair-bar { transform: scaleY(1); }
  .sq-chart-line { clip-path: inset(-2px); }
}

/* ============================================================
   الطبقة الجديدة — تصميم صفحة الهبوط (١٩ أكتوبر ٢٠٢٦)
   Hero mock · trust strip · features · timeline · privacy · finale
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue-deep);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow-dot {
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #5db5ff);
  flex: none;
}
.eyebrow-light { color: #9fd2ff; }
.eyebrow-light .eyebrow-dot { background: linear-gradient(90deg, #7cc7ff, #d9efff); }

/* ---------- الهيرو ---------- */
.hero {
  padding-bottom: clamp(56px, 8vh, 88px);
  background:
    radial-gradient(900px 460px at 50% -200px, rgba(9, 127, 232, 0.14), transparent 70%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 72%);
}
.hero-aura {
  background:
    radial-gradient(520px 280px at 50% 10%, rgba(9, 127, 232, 0.16), transparent 70%),
    radial-gradient(380px 220px at 12% 42%, rgba(93, 181, 255, 0.12), transparent 70%),
    radial-gradient(420px 240px at 88% 36%, rgba(9, 127, 232, 0.09), transparent 70%);
}
.hero-inner { max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  margin-bottom: 24px;
  border: 1px solid rgba(9, 127, 232, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px -18px rgba(9, 127, 232, 0.45);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.hero-badge:hover { background: #fff; border-color: rgba(9, 127, 232, 0.45); }
.hero-badge .ic { width: 14px; height: 14px; transform: rotate(180deg); }
[dir="ltr"] .hero-badge .ic { transform: none; }
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  flex: none;
}

.hero-title { font-weight: 800; }
.hero-title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(120deg, var(--blue) 8%, #36a7ff 55%, #0a6cc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[dir="rtl"] .hero-title { text-wrap: balance; }
.hero-sub { color: #536174; }
.hero-cta { gap: 12px; }
.hero-trust { gap: 10px 22px; margin-top: 26px; }
.hero-trust li { font-size: 0.8rem; color: #536174; gap: 6px; }
.hero-trust .ic { width: 15px; height: 15px; color: #0c8be8; }

.hero-visual-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(38px, 6vh, 62px);
  perspective: 1800px;
}
.hero-app {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  text-align: start;
  font-family: var(--font-mk);
  color: var(--mk-ink);
  transform: rotateX(1.7deg);
  transform-origin: top center;
  transition: transform 500ms var(--ease);
}
.hero-app:hover { transform: rotateX(0deg); }
.ha-window {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 0 #fff inset,
    0 28px 70px -32px rgba(15, 23, 43, 0.42),
    0 8px 24px -20px rgba(9, 127, 232, 0.32);
}
.ha-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 14px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(180deg, #fbfdff, #f6f9fd);
}
.ha-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: #0f172b; }
.ha-brand img { width: 20px; height: 20px; object-fit: contain; }
.ha-brand b { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; }
.ha-sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
}
.ha-sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}
.ha-topdots { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.ha-topdots i { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }

.ha-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.ha-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-inline-end: 1px solid #e8eef6;
  background: #f8fafc;
}
.ha-rail-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #94a3b8;
}
.ha-rail-btn .ic { width: 16px; height: 16px; }
.ha-rail-btn.on { background: #e5f2ff; color: var(--blue); }
.ha-rail-sep { width: 18px; height: 1px; background: #e2e8f0; margin-block: 3px; }

.ha-main { min-width: 0; }
.ha-datebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #edf1f6;
}
.ha-chev { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #e2e8f0; border-radius: 7px; color: #94a3b8; }
.ha-chev .ic { width: 12px; height: 12px; }
.ha-datecopy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ha-datecopy b { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; color: #0f172b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-datecopy span { font-size: 0.62rem; color: #7c8ba1; white-space: nowrap; }
.ha-dateprog { width: 78px; height: 6px; margin-inline-start: auto; border-radius: 999px; background: #e9eff7; overflow: hidden; flex: none; }
.ha-dateprog i { display: block; width: var(--w, 75%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5db5ff, var(--blue)); }

.ha-cols {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 215px;
  min-height: 330px;
  background: #fff;
}
.ha-timers, .ha-day, .ha-bank { min-width: 0; padding: 12px; }
.ha-timers { border-inline-end: 1px solid #eef2f7; background: #fbfcfe; display: flex; flex-direction: column; gap: 8px; }
.ha-day { display: flex; flex-direction: column; }
.ha-bank { border-inline-start: 1px solid #eef2f7; background: #fbfcfe; }
.ha-colhead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 8px;
  font-size: 0.67rem;
  font-weight: 800;
  color: #334155;
}
.ha-count, .ha-dateprog + * { flex: none; }
.ha-count {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 999px;
  background: #e8f3ff;
  color: var(--blue);
  font-size: 0.58rem;
  font-weight: 800;
}
.ha-more { margin-inline-start: auto; color: #94a3b8; letter-spacing: 1px; }
.ha-viewbtns { display: inline-flex; gap: 3px; margin-inline-start: auto; color: #94a3b8; }
.ha-viewbtns .ic { width: 13px; height: 13px; }

.ha-timer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #fff;
}
.ha-timer.is-running { background: #f4faff; border-color: #b9defe; box-shadow: 0 4px 14px -12px rgba(9, 127, 232, 0.5); }
.ha-timer-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ha-timer-top b { font-size: 0.68rem; font-weight: 700; color: #233047; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-timer-top .ic { width: 13px; height: 13px; margin-inline-start: auto; color: #94a3b8; flex: none; }
.ha-live { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex: none; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
.ha-live.idle { background: #cbd5e1; box-shadow: none; }
.ha-clock { font-size: 0.88rem; font-weight: 700; color: #64748b; letter-spacing: 0.02em; }
.ha-timer.is-running .ha-clock { color: var(--blue); }

.ha-tasks { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ha-tasks li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 4px 3px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.7rem;
  font-weight: 600;
  color: #233047;
}
.ha-tasks li > span:nth-last-child(2) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1.7px solid #cbd5e1;
  border-radius: 50%;
  flex: none;
}
.ha-check .ic { width: 9px; height: 9px; stroke-width: 3; }
.ha-tasks li.done .ha-check { border-color: var(--blue); background: var(--blue); color: #fff; }
.ha-type { display: grid; place-items: center; color: var(--blue); flex: none; }
.ha-type .ic { width: 13px; height: 13px; }
.ha-tasks li.done { color: #7c8ba1; }
.ha-meta { margin-inline-start: auto; font-size: 0.56rem; font-weight: 600; color: #94a3b8; white-space: nowrap; flex: none; }
.ha-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 7px 9px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fbfcfe;
  color: #94a3b8;
  font-size: 0.63rem;
}
.ha-plus {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  flex: none;
}

.ha-chips { display: flex; gap: 4px; margin-bottom: 8px; }
.ha-chips span {
  padding: 3px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.ha-chips span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ha-banklist { display: flex; flex-direction: column; gap: 5px; }
.ha-banklist li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
  font-size: 0.64rem;
  font-weight: 600;
  color: #334155;
}
.ha-banklist li > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-addbtn {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  border: 1px solid #cfe4fb;
  border-radius: 50%;
  color: var(--blue);
  font-size: 0.72rem;
  line-height: 1;
  flex: none;
}
.ha-addbtn.added { background: #e8f3ff; border-color: #c4e2ff; }
.ha-addbtn.added .ic { width: 9px; height: 9px; stroke-width: 3; }

.ha-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #e2eaf4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px -22px rgba(15, 23, 43, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.7rem;
  color: #475569;
}
.ha-float-a { inset-inline-start: -24px; top: 33%; flex-direction: row; }
.ha-float-b { inset-inline-end: -20px; bottom: 36px; }
.ha-float-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eaf5ff;
  color: var(--blue);
  flex: none;
}
.ha-float-ico .ic { width: 16px; height: 16px; }
.ha-float-copy { display: flex; flex-direction: column; line-height: 1.4; }
.ha-float-copy span { font-size: 0.6rem; color: #7c8ba1; }
.ha-float-copy b { font-size: 0.8rem; color: #0f172b; font-weight: 800; }
.ha-float-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12); flex: none; }
.ha-float-b .ic { width: 13px; height: 13px; color: #22c55e; margin-inline-start: 3px; }

/* ---------- شبكة المميزات ---------- */
.features-section {
  background:
    radial-gradient(720px 380px at 15% 0%, rgba(9, 127, 232, 0.06), transparent 70%),
    radial-gradient(620px 320px at 92% 22%, rgba(93, 181, 255, 0.06), transparent 70%),
    #fff;
}
.sec-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 40px;
  text-align: start;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.sec-head-main h2 { margin-top: 10px; }
.sec-split .sec-lead { margin: 0; max-width: 46ch; }
#features .sec-head.sec-split { max-width: 100%; text-align: start; margin-inline: 0; }
#features .sec-split .sec-lead { margin-inline: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.fcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 43, 0.03);
  text-align: start;
  transition: border-color var(--t-med) ease, transform var(--t-med) var(--ease), box-shadow var(--t-med) ease;
}
.fcard:hover { border-color: rgba(9, 127, 232, 0.4); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(9, 127, 232, 0.4); }
.fcard-head { display: flex; align-items: center; gap: 10px; }
.fcard-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ebf5ff;
  color: var(--blue);
  flex: none;
}
.fcard-ico .ic { width: 19px; height: 19px; }
.fcard h3 { font-family: var(--font-display); font-size: 1.01rem; font-weight: 800; line-height: 1.35; }
.fcard p { color: #5b6b7f; font-size: 0.86rem; line-height: 1.7; }
.fcard-pro {
  display: inline-block;
  margin-inline-start: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf5ff;
  color: var(--blue-deep);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.fcard-mock {
  margin-top: auto;
  padding: 11px;
  border: 1px solid #e8eef6;
  border-radius: 13px;
  background: #f7f9fc;
  color: #334155;
  font-size: 0.7rem;
  overflow: hidden;
}
.fm-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  padding: 5px 7px;
  margin-bottom: 5px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}
.fm-row:last-child { margin-bottom: 0; }
.fm-row > span:nth-last-child(2), .fm-row > span:first-child { min-width: 0; }
.fm-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-check {
  width: 14px;
  height: 14px;
  border: 1.7px solid #cbd5e1;
  border-radius: 50%;
  flex: none;
}
.fm-check.done { display: grid; place-items: center; border-color: var(--blue); background: var(--blue); color: #fff; }
.fm-check.done .ic { width: 8px; height: 8px; stroke-width: 3; }
.fm-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.65rem;
}
.fm-plus {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  flex: none;
}
.fm-chips { display: flex; gap: 4px; margin-bottom: 7px; }
.fm-chips span {
  padding: 3px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 700;
}
.fm-chips span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.fm-addbtn {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  border: 1px solid #cfe4fb;
  border-radius: 50%;
  color: var(--blue);
  font-size: 0.7rem;
  line-height: 1;
  flex: none;
}
.fm-addbtn.added { background: #e8f3ff; }
.fm-addbtn .ic { width: 8px; height: 8px; stroke-width: 3; }
.fm-type {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #ebf5ff;
  color: var(--blue);
  flex: none;
}
.fm-type .ic { width: 12px; height: 12px; }
.fm-tag {
  margin-inline-start: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.55rem;
  font-weight: 800;
  flex: none;
}
.fm-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.fm-days span {
  display: grid;
  place-items: center;
  height: 25px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.55rem;
  font-weight: 700;
}
.fm-days span.on { background: #e8f3ff; border-color: #c4e2ff; color: var(--blue); }
.fm-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.fm-prio { display: inline-flex; align-items: center; gap: 4px; color: #dc2626; font-size: 0.6rem; font-weight: 800; }
.fm-prio .ic { width: 12px; height: 12px; }
.fm-time { font-size: 0.6rem; color: #64748b; font-weight: 700; }
.fm-sub { display: flex; align-items: center; gap: 6px; padding: 4px 2px; font-size: 0.63rem; color: #475569; }
.fm-box { width: 13px; height: 13px; border: 1.6px solid #cbd5e1; border-radius: 4px; flex: none; }
.fm-box.on { display: grid; place-items: center; background: var(--blue); border-color: var(--blue); color: #fff; }
.fm-box.on .ic { width: 8px; height: 8px; stroke-width: 3; }
.fm-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 6px 8px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.61rem;
}
.fm-note .ic { width: 12px; height: 12px; color: #94a3b8; }
.fm-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  margin-bottom: 6px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.63rem;
}
.fm-search .ic { width: 12px; height: 12px; }
.fm-row.result { font-size: 0.63rem; }
.fm-drafts {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.57rem;
  font-weight: 600;
}
.fm-drafts .ic { width: 11px; height: 11px; color: #94a3b8; }
.fm-restore { margin-inline-start: auto; color: var(--blue); font-weight: 800; }
.fm-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.fm-note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 84px;
  padding: 9px;
  border: 1px solid #e8eef6;
  border-radius: 9px;
  background: #fff;
}
.fm-pin { color: #f59e0b; }
.fm-pin .ic { width: 11px; height: 11px; }
.fm-note-card b { font-size: 0.62rem; color: #233047; }
.fm-note-card > span:last-child { font-size: 0.54rem; line-height: 1.5; color: #94a3b8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-tpl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  margin-bottom: 6px;
  border: 1px solid #e8eef6;
  border-radius: 9px;
  background: #fff;
  font-size: 0.58rem;
}
.fm-tpl:last-child { margin-bottom: 0; }
.fm-tpl-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #ebf5ff; color: var(--blue); flex: none; }
.fm-tpl-ico .ic { width: 12px; height: 12px; }
.fm-tpl div { display: flex; flex-direction: column; min-width: 0; }
.fm-tpl b { font-size: 0.62rem; color: #233047; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-tpl div span { font-size: 0.52rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-apply { margin-inline-start: auto; padding: 3px 7px; border-radius: 999px; background: #e8f3ff; color: var(--blue); font-size: 0.52rem; font-weight: 800; flex: none; }

/* ---------- الجدول الزمني ---------- */
.plan-section { overflow: hidden; }
.split-block {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.split-copy { text-align: start; }
.split-copy h2 { margin-top: 10px; }
.split-copy .sec-lead { margin-top: 16px; }
.check-points { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.check-points li { display: flex; align-items: flex-start; gap: 9px; color: #536174; font-size: 0.91rem; line-height: 1.65; }
.check-points .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.pro-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: #536174; font-size: 0.8rem; font-weight: 600; }
.pro-badge { padding: 3px 8px; border-radius: 999px; background: #e8f3ff; color: var(--blue-deep); font-size: 0.6rem; font-weight: 800; }
.tl-mock {
  min-width: 0;
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 56px -34px rgba(15, 23, 43, 0.34);
  overflow: hidden;
  text-align: start;
  font-family: var(--font-mk);
}
.tl-top { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #eef2f7; background: #fbfdff; }
.tl-tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #e5ebf3; border-radius: 9px; background: #fff; }
.tl-tab { padding: 4px 11px; border-radius: 6px; color: #7c8ba1; font-size: 0.64rem; font-weight: 700; line-height: 1.5; }
.tl-tab.on { background: var(--blue); color: #fff; }
.tl-range { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; color: #64748b; font-size: 0.62rem; font-weight: 600; white-space: nowrap; }
.tl-range .ic { width: 11px; height: 11px; color: #94a3b8; transform: rotate(180deg); }
[dir="ltr"] .tl-range .ic { transform: none; }
.tl-frame { display: grid; grid-template-columns: minmax(0, 1fr) 196px; min-height: 372px; }
.tl-cal { min-width: 0; position: relative; }
.tl-pane { display: none; height: 100%; }
.tl-pane.on { display: block; }
.tl-daygrid { display: grid; grid-template-columns: 48px minmax(0, 1fr); height: 100%; padding: 10px 12px 12px 0; }
[dir="rtl"] .tl-daygrid { padding: 10px 0 12px 12px; }
.tl-hours { display: flex; flex-direction: column; justify-content: space-between; padding: 0 7px 7px; color: #9aa7b8; font-size: 0.52rem; font-weight: 600; text-align: end; }
.tl-slots {
  position: relative;
  border-inline-start: 1px solid #eef2f7;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(12.5% - 1px), #f0f4f9 calc(12.5% - 1px), #f0f4f9 12.5%);
}
.tl-block {
  position: absolute;
  inset-inline: 5px;
  top: var(--top);
  height: var(--h);
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 9px;
  border-inline-start: 3px solid currentColor;
  background: #eef7ff;
  color: #0878d6;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.tl-block b { font-size: 0.63rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block span { font-size: 0.52rem; font-weight: 600; opacity: 0.8; white-space: nowrap; }
.tl-block.c-violet { background: #f3efff; color: #6d3dd1; }
.tl-block.c-green { background: #eaf8f0; color: #15803d; }
.tl-block.c-amber { background: #fff7e8; color: #b45309; }
.tl-week { height: 100%; padding: 12px; }
.tl-week-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding-bottom: 7px; color: #94a3b8; font-size: 0.52rem; font-weight: 700; text-align: center; }
.tl-week-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; height: 300px; }
.tl-wcol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #eef2f7;
  border-radius: 7px;
  background: #fcfdff;
}
.tl-wblock {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  height: var(--h);
  padding: 4px;
  border-inline-start: 2px solid currentColor;
  border-radius: 5px;
  background: #eef7ff;
  color: #0878d6;
  overflow: hidden;
}
.tl-wblock span { font-size: 0.47rem; font-weight: 700; line-height: 1.4; overflow: hidden; }
.tl-wblock.c-violet { background: #f3efff; color: #6d3dd1; }
.tl-wblock.c-green { background: #eaf8f0; color: #15803d; }
.tl-wblock.c-amber { background: #fff7e8; color: #b45309; }
.tl-month { height: 100%; padding: 12px; }
.tl-month-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding-bottom: 6px; color: #94a3b8; font-size: 0.52rem; font-weight: 700; text-align: center; }
.tl-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tl-month-grid span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 35px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fbfcfe;
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 700;
}
.tl-month-grid span.has { background: #f4f9ff; color: #233047; }
.tl-month-grid span.has::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.tl-month-grid span.c-blue { color: #0878d6; }
.tl-month-grid span.c-green { color: #15803d; }
.tl-month-grid span.c-violet { color: #6d3dd1; }
.tl-month-grid span.c-amber { color: #b45309; }
.tl-month-grid span.today { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(9, 127, 232, 0.12); }
.tl-side { padding: 12px; border-inline-start: 1px solid #eef2f7; background: #fbfcfe; }
.tl-side-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #334155; font-size: 0.64rem; font-weight: 800; }
.tl-side-count { display: grid; place-items: center; min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 999px; background: #e8f3ff; color: var(--blue); font-size: 0.54rem; font-weight: 800; }
.tl-side-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 5px;
  padding: 7px 8px;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.59rem;
  font-weight: 600;
}
.tl-side-item > span:nth-child(2) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot.c-green { background: #22c55e; }
.dot.c-amber { background: #f59e0b; }
.dot.c-blue { background: var(--blue); }
.dot.c-violet { background: #8b5cf6; }
.tl-grip { margin-inline-start: auto; color: #cbd5e1; flex: none; }
.tl-grip .ic { width: 11px; height: 11px; }
.tl-side-hint { display: flex; align-items: center; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #eef2f7; color: #94a3b8; font-size: 0.54rem; font-weight: 600; }
.tl-side-hint .ic { width: 11px; height: 11px; }

/* ---------- الإحصاءات والتركيز ---------- */
#stats .sec-head { margin-bottom: 20px; }
.stats-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 28px;
  color: #536174;
  font-size: 0.82rem;
  font-weight: 600;
}
.stats-points li { display: inline-flex; align-items: center; gap: 6px; }
.stats-points .ic { width: 15px; height: 15px; color: var(--blue); }
#focus .sec-head { max-width: 760px; margin-inline: 0; text-align: start; }
#focus .sec-lead { margin-inline: 0; }
.focus-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 930px;
  margin: 0 auto 26px;
}
.focus-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #536174;
  font-size: 0.82rem;
  line-height: 1.6;
}
.focus-step-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f3ff;
  color: var(--blue);
  font-family: var(--font-latin);
  font-size: 0.66rem;
  font-weight: 800;
  flex: none;
}
#more .sec-head { max-width: 760px; margin-inline: 0; margin-bottom: 36px; text-align: start; }
#more .sec-lead { margin-inline: 0; }

/* ---------- شريط الخصوصية ---------- */
.privacy-band {
  position: relative;
  padding-block: clamp(80px, 10vh, 116px);
  background:
    radial-gradient(680px 360px at 12% 8%, rgba(9, 127, 232, 0.26), transparent 70%),
    radial-gradient(600px 340px at 88% 92%, rgba(14, 165, 233, 0.16), transparent 70%),
    #07111f;
  color: #fff;
  overflow: hidden;
  border-block: 1px solid #12243a;
}
.privacy-band .sec-head { max-width: 720px; margin-inline: 0; margin-bottom: 38px; text-align: start; }
.privacy-band h2 { color: #fff; }
.privacy-band .sec-lead { margin-inline: 0; color: #9fb0c6; }
.pv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pv-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: start;
  transition: border-color var(--t-med) ease, background var(--t-med) ease, transform var(--t-med) var(--ease);
}
.pv-card:hover { border-color: rgba(124, 199, 255, 0.36); background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.pv-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  border: 1px solid rgba(124, 199, 255, 0.24);
  border-radius: 11px;
  background: rgba(9, 127, 232, 0.16);
  color: #8fd0ff;
}
.pv-ico .ic { width: 19px; height: 19px; }
.pv-card h3 { color: #f3f8ff; font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; line-height: 1.4; }
.pv-card p { margin-top: 7px; color: #9fb0c6; font-size: 0.82rem; line-height: 1.7; }
.pv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pv-chips span { display: inline-flex; align-items: center; gap: 6px; color: #b8c7d9; font-size: 0.76rem; font-weight: 600; }
.pv-chips .ic { width: 15px; height: 15px; color: #7cc7ff; }
.pv-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eaf5ff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}
.pv-link:hover { background: rgba(9, 127, 232, 0.18); border-color: rgba(124, 199, 255, 0.4); }
.pv-link .ic { width: 13px; height: 13px; }

/* ---------- الأسعار والختام ---------- */
#pricing .sec-head.sec-split { max-width: 100%; margin-bottom: 44px; }
#pricing .sec-split .sec-lead { margin-inline: 0; }
#faq .sec-head { max-width: 760px; margin-inline: auto; }
.finale {
  padding-block: clamp(88px, 12vh, 128px);
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(9, 127, 232, 0.32), transparent 68%),
    radial-gradient(520px 320px at 90% 100%, rgba(14, 165, 233, 0.14), transparent 70%),
    #06101f;
  color: #fff;
  border-top: 0;
}
.finale-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(600px 380px at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(600px 380px at 50% 30%, #000 20%, transparent 80%);
}
.finale-inner { position: relative; z-index: 1; max-width: 820px; }
.finale .eyebrow { margin-bottom: 16px; }
.finale h2 { max-width: 760px; margin-inline: auto; color: #fff; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.2; }
.finale-sub { max-width: 620px; margin: 18px auto 0; color: #a9bbd0; font-size: 1rem; line-height: 1.8; }
.finale-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.finale .finale-actions .btn { margin-top: 0; }
.finale-ghost { background: rgba(255, 255, 255, 0.07); color: #eaf5ff; border: 1.5px solid rgba(255, 255, 255, 0.22); box-shadow: none; }
.finale-ghost:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.11); }
.finale-note { display: block; margin-top: 18px; color: #8da2bb; font-size: 0.78rem; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-cols { grid-template-columns: 172px minmax(0, 1fr) 198px; }
}
@media (max-width: 1000px) {
  .split-block { grid-template-columns: 1fr; gap: 32px; }
  .tl-mock { max-width: 720px; margin-inline: auto; }
  .tl-frame { grid-template-columns: minmax(0, 1fr) 178px; }
  .ha-cols { grid-template-columns: 165px minmax(0, 1fr) 185px; }
  .ha-float-a { inset-inline-start: -12px; }
  .ha-float-b { inset-inline-end: -10px; }
}
@media (max-width: 900px) {
  .ha-bank { display: none; }
  .ha-cols { grid-template-columns: 168px minmax(0, 1fr); }
  .ha-float { display: none; }
  .sec-split { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .sec-split .sec-lead { max-width: 62ch; }
  #features .sec-split .sec-lead { margin-inline: 0; }
  .focus-steps { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 42px; }
  .hero-badge { font-size: 0.74rem; margin-bottom: 20px; }
  .hero-trust { gap: 8px 16px; }
  .hero-trust li { font-size: 0.74rem; }
  .hero-visual-wrap { margin-top: 32px; }
  .hero-app { transform: none; }
  .ha-body { grid-template-columns: 46px minmax(0, 1fr); }
  .ha-rail { padding-block: 9px; }
  .ha-rail-btn { width: 28px; height: 28px; }
  .ha-cols { grid-template-columns: 150px minmax(0, 1fr); min-height: 306px; }
  .ha-timers, .ha-day { padding: 10px; }
  .ha-datebar { padding: 9px 12px; }
  .ha-dateprog { width: 58px; }
  .ha-float { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .features-section { padding-block: clamp(72px, 9vh, 96px); }
  .fcard { padding: 20px; }
  .privacy-band { padding-block: 72px; }
  .pv-grid { grid-template-columns: 1fr; }
  .pv-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pv-chips { gap: 8px 14px; }
  .tl-frame { grid-template-columns: 1fr; }
  .tl-side { display: none; }
  .tl-top { flex-wrap: wrap; gap: 8px; }
  .tl-range { font-size: 0.58rem; }
  .tl-daygrid { padding: 8px 10px 10px 0; }
  [dir="rtl"] .tl-daygrid { padding: 8px 0 10px 10px; }
  .tl-week { padding: 9px; }
  .tl-week-cols { height: 260px; }
  .tl-month { padding: 9px; }
  .tl-month-grid span { min-height: 31px; }
  .stats-points { font-size: 0.77rem; gap: 7px 16px; }
  .finale h2 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .finale-sub { font-size: 0.92rem; }
}
@media (max-width: 640px) {
  .ha-timers { display: none; }
  .ha-cols { grid-template-columns: 1fr; min-height: 288px; }
  .ha-day { padding: 10px 12px; }
  .ha-topdots { display: none; }
  .ha-dateprog { width: 48px; }
  .ha-datecopy b { font-size: 0.75rem; }
  .ha-datecopy span { font-size: 0.57rem; }
  .ha-tasks li { min-height: 34px; font-size: 0.66rem; }
  .fcard h3 { font-size: 0.96rem; }
  .tl-daygrid { grid-template-columns: 42px minmax(0, 1fr); }
  .tl-hours { font-size: 0.47rem; }
  .tl-block { padding: 5px 7px; }
  .tl-block b { font-size: 0.56rem; }
  .tl-block span { font-size: 0.47rem; }
  .tl-month-grid span { min-height: 28px; font-size: 0.51rem; }
  .tl-month-head { font-size: 0.47rem; }
  .tl-tab { padding: 4px 9px; font-size: 0.6rem; }
  .finale-actions { gap: 10px; }
  .finale-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; font-size: 0.9rem; white-space: nowrap; }
}
@media (max-width: 560px) {
  .ha-body { grid-template-columns: 1fr; }
  .ha-rail { display: none; }
  .ha-topbar { min-height: 38px; }
  .hero-title { font-size: clamp(1.7rem, 8.2vw, 2.35rem); }
  .hero-badge { padding: 6px 11px 6px 8px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { justify-content: center; }
  .ha-dateprog { display: none; }
  .tl-range { display: none; }
  .tl-tabs { width: 100%; }
  .tl-tab { flex: 1; text-align: center; }
  .tl-month-grid span { min-height: 25px; }
  .tl-week-cols { height: 220px; }
  .tl-week-head { gap: 3px; font-size: 0.45rem; }
  .tl-wcol { padding: 2px; }
  .tl-wblock { padding: 3px; }
  .tl-wblock span { font-size: 0.42rem; }
  .privacy-band .sec-head { text-align: start; }
  .privacy-band .sec-lead { margin-inline: 0; }
  .pv-link { width: 100%; justify-content: center; }
  .stats-points { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .ha-datebar { gap: 7px; }
  .ha-chev { display: none; }
  .ha-meta { display: none; }
  .tl-daygrid { grid-template-columns: 36px minmax(0, 1fr); }
  .tl-block b { font-size: 0.52rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-app { transform: none !important; }
  .fcard, .pv-card { transition: none; }
}

/* ============================================================
   الطبقة المرجعية — تدفّق هادئ وألوان مضبوطة (٢٣ أكتوبر ٢٠٢٦)
   White · ink · one blue accent · soft blue tints · short copy
   ============================================================ */

.container {
  max-width: 1180px;
  padding-inline: 32px;
}

.section {
  padding-block: clamp(76px, 8.5vw, 104px);
}

/* مساحة أمان أعلى الأقسام: تمنع الهيدر الثابت من تغطية العنوان عند الانتقال بالروابط */
section[id], .finale[id] { scroll-margin-top: 92px; }

.sec-head {
  max-width: 760px;
  margin: 0 0 clamp(36px, 4.5vw, 48px);
  text-align: start;
}
.sec-head h2 {
  margin-top: 12px;
  font-size: clamp(1.95rem, 3.4vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sec-lead {
  max-width: 580px;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #5b6b7f;
}
.sec-head .eyebrow { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #d9eaff;
  border-radius: 999px;
  background: #f1f8ff;
  color: var(--blue-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  box-shadow: none;
}
.eyebrow-light {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-deep);
}

/* ---------- الهيرو ---------- */
.hero {
  padding-top: clamp(132px, 15vh, 164px);
  padding-bottom: 0;
  background:
    radial-gradient(1000px 520px at 50% -12%, #dcefff 0%, rgba(220, 239, 255, 0) 68%),
    linear-gradient(180deg, #f2f9ff 0%, #fbfdff 58%, #ffffff 100%);
  border-bottom: 0;
}
.hero-aura {
  background:
    radial-gradient(420px 220px at 16% 20%, rgba(134, 198, 255, 0.28), transparent 70%),
    radial-gradient(500px 260px at 84% 16%, rgba(177, 219, 255, 0.24), transparent 72%),
    radial-gradient(760px 360px at 50% 0%, rgba(9, 127, 232, 0.1), transparent 72%);
  filter: blur(2px);
}
.hero-inner { max-width: 980px; }
.hero-badge {
  margin-bottom: 26px;
  padding: 7px 13px 7px 9px;
  border-color: rgba(9, 127, 232, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px -20px rgba(9, 127, 232, 0.36);
  font-size: 0.76rem;
  font-weight: 600;
}
.hero-badge .ic { transform: none; }
[dir="ltr"] .hero-badge .ic { transform: rotate(180deg); }
.hero-badge-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(9, 127, 232, 0.1);
}
.hero-title {
  max-width: 960px;
  margin-inline: auto;
  font-size: clamp(2.45rem, 4.6vw, 3.95rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title em {
  color: var(--blue);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
html[dir="rtl"] .hero-title {
  max-width: 860px;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.32;
  letter-spacing: 0;
}
.hero-sub {
  max-width: 560px;
  margin-top: 20px;
  color: #556579;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}
.hero-cta { margin-top: 28px; gap: 10px; }
.hero-cta .btn { padding-inline: 24px; }
.hero-visual-wrap {
  margin-top: clamp(44px, 5vw, 62px);
  perspective: none;
}
.hero-app {
  max-width: 1116px;
  transform: none;
}
.hero-app:hover { transform: none; }
.ha-window {
  border-color: #d9e7f5;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 40px 90px -58px rgba(15, 60, 110, 0.42),
    0 12px 30px -24px rgba(15, 60, 110, 0.18);
}
.ha-float {
  border-color: #e1edf9;
  box-shadow: 0 18px 40px -30px rgba(15, 60, 110, 0.35);
}
.ha-float-a { inset-inline-start: -18px; }
.ha-float-b { inset-inline-end: -14px; }

/* ---------- المميزات ---------- */
.features-section,
#more,
#faq,
#stats {
  background: #fff;
}
#features,
#more { border-top: 0; }
.feature-grid { gap: 18px; }
.fcard {
  gap: 11px;
  padding: 23px;
  border-color: #e6eef8;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.fcard:hover {
  border-color: #cfe2f6;
  box-shadow: 0 20px 44px -38px rgba(15, 60, 110, 0.3);
  transform: translateY(-2px);
}
.fcard-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff7ff;
  color: var(--blue);
}
.fcard-ico .ic { width: 18px; height: 18px; }
.fcard h3 { font-size: 1rem; line-height: 1.4; }
.fcard p { color: #5f6f82; font-size: 0.85rem; line-height: 1.65; }
.fcard-mock {
  margin-top: 10px;
  border-color: #e7eff9;
  border-radius: 12px;
  background: #f8fbff;
}
.fcard-pro {
  background: #edf6ff;
  color: var(--blue-deep);
}

/* ---------- الجدول الزمني ---------- */
.band-alt {
  background: var(--band);
  border-block: 0;
}
.plan-section { padding-block: clamp(76px, 8.5vw, 104px); }
.split-block {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 5vw, 64px);
}
.split-copy .sec-lead { max-width: 44ch; line-height: 1.7; }
.check-points { gap: 10px; margin-top: 22px; }
.check-points li { color: #5b6b7f; font-size: 0.89rem; line-height: 1.6; }
.check-points .ic { color: var(--blue); }
.pro-note { margin-top: 22px; color: #6b7b8f; font-size: 0.76rem; }
.tl-mock {
  border-color: #dce8f6;
  border-radius: 18px;
  box-shadow: 0 30px 64px -48px rgba(15, 60, 110, 0.38);
}
.tl-block.c-violet,
.tl-block.c-green,
.tl-block.c-amber { background: #eef7ff; color: #0a6fca; }
.tl-wblock.c-violet,
.tl-wblock.c-green,
.tl-wblock.c-amber { background: #eef7ff; color: #0a6fca; }
.tl-month-grid span.c-green,
.tl-month-grid span.c-violet,
.tl-month-grid span.c-amber { color: #1d7dd6; }
.dot.c-green { background: #6cb8f8; }
.dot.c-amber { background: #a6d4ff; }
.dot.c-violet { background: #3f9ff0; }
.tl-range .ic { transform: none; }
[dir="ltr"] .tl-range .ic { transform: rotate(180deg); }

/* ---------- الإحصاءات ---------- */
.sq-band {
  background: #fff;
  border-block: 0;
}
.sq-grid { gap: 18px; }
.sq-card {
  border-color: #e6eef8;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.sq-card:hover { box-shadow: none; transform: none; }
.sq-legend .c-sport { background: #9ed3ff; }
.sq-donut-track { stroke: #eef4fb; }
.sq-head { padding-bottom: 12px; }
.sq-chart { margin-top: 14px; }
.sq-chart-days { margin-top: 10px; }

/* ---------- التركيز ---------- */
#focus .sec-head { margin-bottom: 38px; }
.tfs-stage {
  margin-top: 0;
  border-color: #e0ebf7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 60px -48px rgba(15, 60, 110, 0.36);
}
.tfs-panel { background: #f8fbff; }
.tfs-screen { background: #fff; }

/* ---------- أدوات إضافية ---------- */
#more .sec-head { max-width: 720px; }
#more .sec-head h2 { margin-top: 0; }
.bento-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.mg-card,
.mg-card.mg-hero,
.mg-card.mg-wide {
  padding: 24px;
  border: 1px solid #e6eef8;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.mg-card.mg-wide {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.mg-card:hover {
  border-color: #cfe2f6;
  box-shadow: 0 20px 44px -38px rgba(15, 60, 110, 0.3);
  transform: translateY(-2px);
}
.mg-card .fsc-name { font-size: 1.02rem; }
.mg-card .fsc-desc { color: #5f6f82; font-size: 0.85rem; line-height: 1.65; }
#more {
  background:
    radial-gradient(760px 380px at 50% 0%, rgba(9, 127, 232, 0.04), transparent 72%),
    #fff;
}

/* ---------- الخصوصية ---------- */
.privacy-band {
  padding-block: clamp(76px, 8.5vw, 104px);
  border-block: 1px solid #e8f0fa;
  background: #f7fbff;
  color: var(--ink);
}
.privacy-band .sec-head { margin-bottom: 38px; }
.privacy-band h2 { color: var(--ink); }
.privacy-band .sec-lead { color: #5b6b7f; }
.pv-grid { gap: 14px; }
.pv-card {
  padding: 21px;
  border-color: #e4edf8;
  border-radius: 16px;
  background: #fff;
}
.pv-card:hover {
  border-color: #cfe2f6;
  background: #fff;
  transform: translateY(-2px);
}
.pv-ico {
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border-color: #d8eaff;
  background: #eef7ff;
  color: var(--blue);
}
.pv-card h3 { color: var(--ink); font-size: 0.95rem; }
.pv-card p { color: #5f6f82; font-size: 0.81rem; line-height: 1.65; }
.pv-foot { border-top-color: #dce8f6; }
.pv-chips span { color: #5c6c80; }
.pv-chips .ic { color: var(--blue); }
.pv-link {
  border-color: #d8e6f5;
  background: #fff;
  color: var(--blue-deep);
}
.pv-link:hover { border-color: #b9d8f5; background: #f4faff; }
.pv-link .ic { transform: none; }
[dir="ltr"] .pv-link .ic { transform: rotate(180deg); }

/* ---------- الأسعار ---------- */
#pricing { padding-block: clamp(76px, 8.5vw, 104px); }
#pricing .sec-head { margin-bottom: 42px; }
.pricing-grid { gap: 18px; max-width: 1080px; margin-inline: auto; }

/* سطر توضيحي أسفل الكروت: العملة + نهاية التجربة + الإلغاء */
.pricing-foot {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.9;
  text-align: center;
  text-wrap: balance;
}
.pricing-foot a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.price-card {
  padding: 26px 24px;
  border-color: #e4edf8;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}
.price-card:hover { border-color: #cfe2f6; }
.price-card.featured {
  border-color: #b9dcff;
  background: #f4faff;
  box-shadow: 0 24px 56px -46px rgba(9, 127, 232, 0.5);
}
.price-badge {
  background: #edf6ff;
  color: var(--blue-deep);
}
.price-card h3 { color: #46566b; }
.price-num span { letter-spacing: -0.03em; }
.price-for { min-height: 0; }
.price-feats { min-height: 0; }
.price-btn { margin-top: 22px; }
#faq .sec-head { max-width: 700px; margin-bottom: 34px; }
.faq-list { max-width: 860px; gap: 8px; }
.faq-list details {
  border-color: #e6eef8;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.faq-list details:hover { border-color: #cfe2f6; }
.faq-list summary { padding-block: 18px; }

/* ---------- الختام ---------- */
.finale {
  /* هامش جانبي مساوٍ لهامش الحاوية: يمنع التصاق الكارت بحواف الشاشة */
  padding: 0 32px clamp(76px, 9vw, 104px);
  background: var(--surface);
  color: var(--ink);
  border-top: 0;
}
.finale-aura { display: none; }
.finale-inner {
  position: relative;
  overflow: hidden;
  /* بعرض كروت الأقسام نفسه لا أعرض — الهيدر العائم يتبعه */
  max-width: 1116px;
  margin-inline: auto;
  padding-block: clamp(56px, 7vw, 84px);
  border: 1px solid #d5e9ff;
  border-radius: 28px;
  background:
    radial-gradient(520px 280px at 12% 100%, rgba(255, 255, 255, 0.72), transparent 70%),
    linear-gradient(135deg, #eaf5ff 0%, #dceeff 100%);
}
.finale-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(360px 180px at 88% 8%, rgba(255, 255, 255, 0.66), transparent 70%),
    radial-gradient(300px 160px at 20% 0%, rgba(9, 127, 232, 0.08), transparent 72%);
}
.finale-inner > * { position: relative; z-index: 1; }
.finale h2 {
  max-width: 700px;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.finale-sub {
  max-width: 520px;
  margin-top: 14px;
  color: #5b6b7f;
  font-size: 0.98rem;
  line-height: 1.7;
}
.finale-actions { margin-top: 28px; }
.finale-ghost {
  border-color: #cfe2f6;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.finale-ghost:hover { border-color: #b9d8f5; background: #fff; }
.finale-note { color: #6b7c90; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .split-block { grid-template-columns: 1fr; gap: 34px; }
  .tl-mock { max-width: 720px; margin-inline: auto; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-card { grid-column: span 1; }
  .mg-card.mg-hero, .mg-card.mg-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .container { padding-inline: 24px; }
  .sq-grid > .sq-card { grid-column: span 12; }
  .finale { padding-inline: 24px; }
  .finale-inner { border-radius: 24px; }
}

@media (max-width: 760px) {
  .section { padding-block: 72px; }
  .hero { padding-top: 118px; }
  .hero-visual-wrap { margin-top: 36px; }
  .hero-badge { margin-bottom: 20px; }
  .hero-title { font-size: clamp(1.9rem, 7.6vw, 2.5rem); }
  html[dir="rtl"] .hero-title { font-size: clamp(1.7rem, 6.8vw, 2.25rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .features-section { padding-block: 72px; }
  .fcard { padding: 21px; }
  .pv-grid { grid-template-columns: 1fr; }
  .pv-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .finale { padding-bottom: 72px; }
  .finale-inner { padding-block: 56px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .finale { padding-inline: 18px; }
  .hero-title,
  html[dir="rtl"] .hero-title { padding-inline: 2px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .bento-grid { grid-template-columns: 1fr; }
  .mg-card, .mg-card.mg-hero, .mg-card.mg-wide { grid-column: span 1; }
  .tl-range { display: none; }
  .pv-link { width: 100%; justify-content: center; }
  .finale-actions { flex-wrap: nowrap; }
}

/* Hero: one clear message and the real product */
.hero {
  padding-top: clamp(122px, 13.5vh, 152px);
  padding-bottom: clamp(56px, 8vh, 88px);
  border-bottom: 1px solid #eaf2fb;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(rgba(27, 74, 122, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(620px 340px at 50% 8%, #000 0%, transparent 76%);
  mask-image: radial-gradient(620px 340px at 50% 8%, #000 0%, transparent 76%);
}
.hero-title {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(2.55rem, 4.8vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
html[dir="rtl"] .hero-title {
  max-width: 900px;
  font-size: clamp(2.25rem, 4.15vw, 3.55rem);
  line-height: 1.32;
  letter-spacing: 0;
}
.hero-title .line {
  display: block;
  overflow: visible;
}
.hero-title .line > span {
  display: inline;
  padding-block: 0;
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.hero-sub {
  max-width: 580px;
  margin-top: 20px;
  color: #556579;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}
.hero-cta {
  margin-top: 28px;
  gap: 10px;
}
.hero-cta .btn {
  padding-inline: 26px;
}
.hero-shot-wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: clamp(42px, 6vh, 64px) auto 0;
}
.hero-shot-wrap::before {
  content: "";
  position: absolute;
  inset: -18px -24px 0;
  z-index: -1;
  border-radius: 38px;
  background: radial-gradient(70% 62% at 50% 38%, rgba(9, 127, 232, 0.14), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe7f4;
  border-radius: 14px 14px 0 0;
  background: #f6f9fe;
  box-shadow:
    0 1px 0 #fff inset,
    0 42px 90px -46px rgba(15, 43, 75, 0.42),
    0 14px 36px -30px rgba(9, 127, 232, 0.3);
}
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2880 / 1514;
  object-fit: cover;
}
.hero-shot .hero-shot-ar {
  display: none;
}
html[lang="ar"] .hero-shot .hero-shot-en {
  display: none;
}
html[lang="ar"] .hero-shot .hero-shot-ar {
  display: block;
}

@media (max-width: 900px) {
  .hero-shot-wrap {
    width: calc(100% - 36px);
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 52px;
  }
  .hero-title {
    font-size: clamp(2.1rem, 8.8vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  html[dir="rtl"] .hero-title {
    font-size: clamp(1.85rem, 7.4vw, 2.45rem);
    line-height: 1.34;
  }
  .hero-sub {
    max-width: 34ch;
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.7;
  }
  .hero-shot-wrap {
    width: calc(100% - 24px);
    margin-top: 32px;
  }
  .hero-shot {
    border-radius: 14px 14px 0 0;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(2rem, 9.4vw, 2.55rem);
  }
  html[dir="rtl"] .hero-title {
    font-size: clamp(1.78rem, 7.8vw, 2.35rem);
  }
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .hero-cta .btn {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding: 13px 20px;
    font-size: 0.88rem;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-top: 104px;
  }
  .hero-shot-wrap {
    width: calc(100% - 16px);
  }
}

/* ============================================================
   32) طبقة 2026 — بطاقات Premium وموجات هادئة (البنية الجديدة)
  .hover بـ translate عشان ما نكسرش انتقالات reveal على transform،
   وممنوع أي حد منقط/متقطع (قرار المالك).
   ============================================================ */

:root {
  --r-card: 22px;
  --r-inner: 16px;
  --line-card: #e4ebf4;
  --shadow-card: 0 1px 2px rgba(15, 23, 43, 0.05), 0 16px 40px -24px rgba(15, 23, 43, 0.18);
  --shadow-lift: 0 3px 6px rgba(15, 23, 43, 0.06), 0 32px 64px -32px rgba(15, 23, 43, 0.34);
}

/* ——— لغة الكارت الموحدة ——— */
.fcard, .mg-card, .sq-card, .cozy-mock, .focus-card {
  border-radius: var(--r-card);
  border-color: var(--line-card);
  box-shadow: var(--shadow-card);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), translate 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.fcard:hover, .mg-card:hover, .sq-card:hover {
  translate: 0 -4px;
  transform: none;
  box-shadow: var(--shadow-lift);
  border-color: #cfdff3;
}
.fcard h3, .fsc-name { font-family: var(--font-display); }

/* ——— رؤوس الأقسام: وسطية بلا eyebrow (قرار المالك) ——— */
#features .sec-head { margin-bottom: 48px; }
#plan .sec-head, #stats .sec-head, #assist .sec-head, #cozy .sec-head { margin-bottom: 44px; }

/* ——— موجة الأقسام الهادئة ——— */
.band-alt { border-block: 0; }

/* ——— الهيرو ——— */
.hero { border-bottom: 1px solid var(--line); padding-bottom: 0; }
.hero-aura {
  /* أزرق واحد فقط، بتدرّج من أعلى الصفحة إلى أسفلها — بلا لمسات بنفسجية أو خضراء */
  background: linear-gradient(
    180deg,
    rgba(9, 127, 232, 0.16) 0,
    rgba(9, 127, 232, 0.05) 420px,
    rgba(255, 255, 255, 0) 860px
  );
}
.hero-shot {
  border-color: #d8e4f2;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #fbfdff, #f3f8fd);
  box-shadow: 0 1px 0 #fff inset;
}

/* الشارات العائمة حول اللقطة */
.fchip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 42px -18px rgba(15, 23, 43, 0.3), 0 2px 6px rgba(15, 23, 43, 0.06);
  animation: fchipFloat 6s ease-in-out infinite alternate;
}
.fchip .ic { width: 15px; height: 15px; color: var(--blue); }
.fchip-a { inset-inline-start: -2.4%; top: 17%; }
.fchip-b { inset-inline-end: -2.1%; bottom: 21%; animation-delay: -3s; }
@keyframes fchipFloat { from { translate: 0 -7px; } to { translate: 0 7px; } }
@media (prefers-reduced-motion: reduce) { .fchip { animation: none; } }

/* ——— الجدول الزمني ——— */
#plan .pro-note { margin-top: 16px; }

/* ——— المساعد 2×2 ——— */
.assist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mg-chat .mg-voicebar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f8fbff;
}
.mg-voicebar .mg-wave { min-height: 30px; gap: 4px; }
.mg-voicebar .mg-wave span:nth-child(1), .mg-voicebar .mg-wave span:nth-child(9) { height: 7px; }
.mg-voicebar .mg-wave span:nth-child(2), .mg-voicebar .mg-wave span:nth-child(8) { height: 12px; }
.mg-voicebar .mg-wave span:nth-child(3), .mg-voicebar .mg-wave span:nth-child(7) { height: 17px; }
.mg-voicebar .mg-wave span:nth-child(4), .mg-voicebar .mg-wave span:nth-child(6) { height: 22px; }
.mg-voicebar .mg-wave span:nth-child(5) { height: 26px; }

/* ——— بنتو القياس ——— */
.focus-card { padding: clamp(14px, 2.6vw, 26px); margin-bottom: 22px; }
.sq-icon { border-radius: 12px; }
.sq-pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ——— تجربة مرتاحة ——— */
.cozy-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.cozy-mock { max-width: 460px; width: 100%; margin-inline: auto; padding: clamp(18px, 3vw, 26px); }
.cozy-copy .check-points { gap: 18px; }
.cozy-copy .check-points li { font-size: 0.95rem; line-height: 1.7; color: #536174; }
.cozy-copy .check-points .ic { width: 20px; height: 20px; }

/* ——— الأسعار ——— */
.price-card { box-shadow: var(--shadow-card); }
.price-card.featured {
  border-color: #b3d4f7;
  background: linear-gradient(180deg, #e9f3ff 0%, #f6faff 58%, #ffffff 100%);
  box-shadow: 0 50px 100px -48px rgba(9, 127, 232, 0.5), var(--shadow-card);
  translate: 0 -8px;
}
.price-card.featured:hover { translate: 0 -10px; border-color: #93c5f1; }
.price-badge { background: linear-gradient(135deg, #1a93f2, #086fce); color: #fff; }

/* ——— الأسئلة الشائعة ——— */
.faq-list { gap: 12px; }
.faq-list details { box-shadow: var(--shadow-card); }
.faq-list details[open] { border-color: #cfe2f6; }

/* ——— الختام: كارت متدرّج ——— */
.finale-inner {
  border-color: transparent;
  background:
    radial-gradient(560px 300px at 85% -60px, rgba(255, 255, 255, 0.3), transparent 62%),
    radial-gradient(520px 320px at 8% 110%, rgba(96, 176, 255, 0.24), transparent 60%),
    linear-gradient(158deg, #0a3d80 0%, #0c55b4 46%, #1573e0 100%);
  box-shadow: 0 30px 64px -44px rgba(9, 92, 190, 0.34);
}
.finale-inner::before {
  background:
    radial-gradient(360px 180px at 88% 8%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(300px 160px at 16% 0%, rgba(255, 255, 255, 0.14), transparent 72%);
}
.finale-inner h2 { color: #fff; }
.finale-inner .btn-primary { background: #fff; color: #0a3d80; box-shadow: 0 18px 40px -16px rgba(3, 28, 64, 0.5); }
.finale-inner .btn-primary:hover { background: #eef6ff; }
.finale-inner .finale-ghost { background: rgba(255, 255, 255, 0.1); color: #eaf5ff; border-color: rgba(255, 255, 255, 0.38); }
.finale-inner .finale-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.55); }

/* ——— الفوتر الفاتح (بنفس هوية الموقع) ——— */
.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); padding-block: 54px 24px; }
.footer-col h4 { color: var(--ink); }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--blue); }
.footer-brand-text { color: var(--ink-2); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-copy { color: var(--mk-sub); }
.footer-legal-inline a { color: var(--mk-sub); }
.footer-legal-inline a:hover { color: var(--blue); }

/* ——— استجابة الطبقة ——— */
@media (max-width: 1000px) {
  .fchip { display: none; }
}
@media (max-width: 900px) {
  .assist-grid, .cozy-grid { grid-template-columns: 1fr; }
  .cozy-copy .check-points { max-width: 640px; }
}
@media (max-width: 640px) {
  .sq-pairs { grid-template-columns: 1fr; }
  .price-card.featured { translate: 0 0; }
  .focus-card { padding: 14px; }
}

/* ============================================================
   33) إعادة البناء — أقسام مستقلة، كروت Premium، وموك الجدول
   ============================================================ */

/* ——— شبكة الكروت ——— */
.prem-grid { display: grid; gap: 22px; align-items: stretch; }
.prem-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prem-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pcard,
.acard,
.xcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line-card);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 70% at 50% -26%, rgba(9, 127, 232, 0.11), transparent 62%),
    linear-gradient(180deg, #f2f8ff 0%, #f9fcff 48%, #ffffff 100%);
  box-shadow: var(--shadow-card);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), translate 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.pcard:hover,
.acard:hover,
.xcard:hover {
  translate: 0 -4px;
  border-color: #cfdff3;
  box-shadow: var(--shadow-lift);
}
.acard { padding: clamp(22px, 2.8vw, 32px); }

/* ——— رأس الكارت ——— */
.phead { display: flex; align-items: flex-start; gap: 12px; }
.phead > div { min-width: 0; }
.pico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d9e8fa;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #e8f3ff);
  color: var(--blue-deep);
  box-shadow: 0 8px 16px -12px rgba(9, 127, 232, 0.55);
}
.pico .ic { width: 19px; height: 19px; }
.pcard h3,
.acard h3,
.xcard h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pcard > p,
.pdesc {
  margin: 0;
  color: #5c6b7e;
  font-size: 0.86rem;
  line-height: 1.68;
}
.pdesc { margin-top: 5px; }

/* ——— النافذة الداخلية البيضاء ——— */
.pwin {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e4edf7;
  border-radius: var(--r-inner);
  background: #ffffff;
  box-shadow: 0 22px 42px -30px rgba(15, 23, 43, 0.32), 0 1px 0 #ffffff inset;
  font-family: var(--font-mk);
  overflow: hidden;
  text-align: start;
}
.pcard .pwin,
.acard .pwin,
.xcard .pwin { flex: 1; margin-top: 6px; }
.acard .pwin { flex: 1; }
.fm-types { justify-content: space-between; gap: 7px; }
.fm-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--blue);
}
.fm-ico .ic { width: 12px; height: 12px; }
.pwin .fm-chips { margin-bottom: 2px; }

/* ——— نافذة المحادثة والملاحظات ——— */
.chatwin { gap: 10px; }
.chatwin .mini-user {
  align-self: flex-end;
  border-radius: 14px 14px 14px 4px;
}
.chatwin .mini-bot {
  align-self: flex-start;
  border-radius: 14px 14px 4px 14px;
}
[dir="ltr"] .chatwin .mini-user { border-radius: 14px 14px 4px 14px; }
[dir="ltr"] .chatwin .mini-bot { border-radius: 14px 14px 14px 4px; }
.chatwin .mini-input { margin-top: 0; }
.chatwin .mg-voicebar { margin-top: auto; }
.mg-voicebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  background: #f7fbff;
}
html[dir="rtl"] .mg-voicebar { padding: 6px 12px 6px 8px; }
.mg-voicebar .mg-wave { flex: 1; min-height: 28px; gap: 4px; }
.mg-voicebar .mg-wave span:nth-child(1),
.mg-voicebar .mg-wave span:nth-child(9) { height: 7px; }
.mg-voicebar .mg-wave span:nth-child(2),
.mg-voicebar .mg-wave span:nth-child(8) { height: 12px; }
.mg-voicebar .mg-wave span:nth-child(3),
.mg-voicebar .mg-wave span:nth-child(7) { height: 17px; }
.mg-voicebar .mg-wave span:nth-child(4),
.mg-voicebar .mg-wave span:nth-child(6) { height: 22px; }
.mg-voicebar .mg-wave span:nth-child(5) { height: 26px; }
.mg-voicebar .mini-micbtn { width: 34px; height: 34px; }
.mg-voicebar .mini-micbtn .ic { width: 16px; height: 16px; }
.noteswin {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
}
.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 92px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  background: #fbfdff;
}
.note-card b { font-size: 0.68rem; font-weight: 800; color: #233047; }
.note-card > span:not(.note-pin):not(.note-convert) {
  font-size: 0.56rem;
  line-height: 1.55;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-pin {
  position: absolute;
  inset-inline-end: 8px;
  top: 8px;
  color: #c3d1e2;
}
.note-pin .ic { width: 11px; height: 11px; }
.note-convert { margin-top: auto; align-self: flex-end; color: var(--blue); }
.note-convert .ic { width: 13px; height: 13px; }
.note-card.note-add {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 6px;
  border-color: #e2ecf7;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
}
.note-add .ic { width: 12px; height: 12px; color: var(--blue); }

/* ——— قائمة الراحة داخل كارت التجربة ——— */
.comfort-list { display: flex; flex-direction: column; gap: 8px; }
.comfort-list > span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #5b6b80;
  font-size: 0.62rem;
  line-height: 1.6;
}
.comfort-list .ic { flex: none; width: 13px; height: 13px; margin-top: 2px; color: var(--blue); }
.pwin .mg-themebox { border-radius: 12px; }

/* ——— رؤوس الأقسام الجديدة ——— */
#assist .sec-head,
#more .sec-head { margin-bottom: 44px; }
#more { background: var(--surface); border-block: 0; }

/* ——— الجدول الزمني: رسم اليوم ——— */
#plan .sec-lead { max-width: 74ch; }
.tlsec-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface) 40%, var(--blue-soft));
}
.tlsec-art { padding: 28px 28px 8px; }
.tlsec-art svg { display: block; width: 100%; height: auto; }
/* اتجاه LTR داخل الرسم حتى يبدأ النص من إحداثي x المحدد بدلًا من الامتداد يسارًا في RTL */
.tlsec-art svg text { direction: ltr; font-family: var(--font-mk); }
.tlsec-art svg.tlsec-mobile { display: none; max-width: 420px; margin-inline: auto; }
.tlsec-txt { padding: 12px 28px 28px; }
.tlsec-txt h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.tlsec-txt p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}
/* شارات العروض المتاحة داخل بطاقة الجدول: يومي / أسبوعي / شهري */
.tlsec-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tlsec-view {
  padding: 6px 14px;
  border: 1px solid rgba(9, 127, 232, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.tlsec-view.is-active {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

@media (max-width: 760px) {
  .tlsec-card { border-radius: 18px; }
  .tlsec-art { padding: 20px 12px 8px; }
  .tlsec-art svg.tlsec-desktop { display: none; }
  .tlsec-art svg.tlsec-mobile { display: block; }
  .tlsec-txt { padding: 8px 20px 24px; }
}

/* ——— استعادة شكل الإحصائيات الأصلي ——— */
.sq-band { background: #ffffff; border-block: 0; }
.sq-grid { gap: 18px; }
.sq-card {
  border-color: #e6eef8;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.sq-card:hover {
  translate: 0 0;
  transform: none;
  border-color: #e6eef8;
  box-shadow: none;
}
.sq-icon { border-radius: 10px; }

/* ——— استجابة الطبقة ——— */
@media (max-width: 1080px) {
  .tbm-rail { display: none; }
}
@media (max-width: 1024px) {
  /* الأعمدة على حاوية واحدة — نفس حافة العنوان (مفيش توسيط بعرض أصغر) */
  .prem-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .prem-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .tbm-week,
  .tbm-month { min-width: 700px; }
  .tbm-weekhead,
  .tbm-weekbody { grid-template-columns: repeat(7, minmax(0, 1fr)) 58px; }
}
@media (max-width: 720px) {
  .tbm-top { flex-wrap: wrap; row-gap: 8px; }
  .tbm-date { order: -1; width: 100%; justify-content: center; }
  .tbm-views { flex: 1; }
  .tbm-views .tl-tab { flex: 1; justify-content: center; }
  .tbm-tools { margin-inline-start: auto; }
  .tbm-board { padding: 12px 12px 14px; min-height: 390px; }
  .tbm-daygrid { height: 306px; grid-template-columns: minmax(0, 1fr) 56px; }
  .tbm-weekbody { height: 312px; }
  .tbm-monthgrid { grid-auto-rows: 60px; }
  .tbm-weekhead,
  .tbm-weekbody { grid-template-columns: repeat(7, minmax(0, 1fr)) 52px; }
}
@media (max-width: 560px) {
  .pcard,
  .acard,
  .xcard { padding: 18px; }
  .pwin { padding: 11px; }
  .pico { width: 36px; height: 36px; border-radius: 11px; }
  .pcard h3,
  .acard h3,
  .xcard h3 { font-size: 0.98rem; }
  .noteswin { grid-template-columns: minmax(0, 1fr); }
  .note-card.note-add { grid-column: auto; }
  .tbm-daybtn { display: none; }
  .tbm-board { padding: 10px 10px 12px; }
  .tbm-block { padding: 4px 18px 4px 6px; }
  html[dir="rtl"] .tbm-block { padding: 4px 6px 4px 18px; }
  .tbm-block span { display: none; }
}

/* ============================================================
   موبايل: تصغير العناوين (كانت كبيرة على الشاشات الصغيرة)
   — الكتلة دي في الآخر عشان تغلب على قواعد الـ clamp المتأخرة
============================================================ */
@media (max-width: 760px) {
  .sec-head h2,
  .focus-copy h2 { font-size: clamp(1.4rem, 6.6vw, 1.7rem); }
  .hero-title { font-size: clamp(1.95rem, 8.4vw, 2.4rem); }
  html[dir="rtl"] .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .finale h2 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
}

@media (max-width: 560px) {
  .sec-head h2,
  .focus-copy h2 { font-size: clamp(1.3rem, 6.4vw, 1.6rem); }
  .hero-title { font-size: clamp(1.85rem, 8.4vw, 2.3rem); }
  html[dir="rtl"] .hero-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .finale h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
}

/* ============================================================
   34) كارت v2 — لوحة بصرية (Mock حقيقي أو رسمة مفهوم) فوق
       + العنوان والوصف تحت. قالب واحد لكل الكروت الجديدة.
============================================================ */
.pcard.v2 {
  padding: 10px;
  gap: 0;
  overflow: hidden;
  background: #ffffff;
}

/* ——— اللوحة المشتركة ——— */
.pv-panel {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  min-height: clamp(196px, 24vw, 290px);
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    radial-gradient(120% 92% at 50% 0%, rgba(9, 127, 232, 0.10), transparent 62%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
  overflow: hidden;
}
/* شبكة نقط خفيفة بتتلاشى لتحت — بتدي عمق للّوحة */
.pv-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(9, 127, 232, 0.18) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 72%);
  pointer-events: none;
}
.pv-panel > * { position: relative; z-index: 1; }
.pv-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 8px 8px;
}
.pv-body .pdesc { margin-top: 0; }

/* ——— نافذة الـ Mock (واجهة حقيقية داخل إطار) ——— */
.pv-win {
  position: relative;
  width: min(100%, 520px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 21px 13px 13px;
  border: 1px solid #e4edf7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 44px -30px rgba(15, 23, 43, 0.4), 0 1px 0 #ffffff inset;
  font-family: var(--font-mk);
  font-size: 0.86rem;
  overflow: hidden;
  text-align: start;
}
/* دوائر شريط النافذة — بـ pseudo-element عشان ما تدخلش في تخطيط الشبكات (ملاحظة الملاحظات) */
.pv-win::before {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline-start: 13px;
  width: 31px;
  height: 7px;
  background:
    radial-gradient(circle 3.4px at 3.5px 3.5px, #d7e2ef 96%, transparent 100%),
    radial-gradient(circle 3.4px at 15.5px 3.5px, #d7e2ef 96%, transparent 100%),
    radial-gradient(circle 3.4px at 27.5px 3.5px, #d7e2ef 96%, transparent 100%);
}
.pv-win .fm-add,
.pv-win .fm-search,
.pv-win .fm-drafts { margin-bottom: 0; }
.pv-win .fm-row { margin-bottom: 0; }

/* ——— تفاصيل داخل موكّات البنك والتفاصيل (كالواجهة الحقيقية) ——— */
.fm-name { flex: 1; min-width: 0; }
.fm-row.fm-indent {
  position: relative;
  margin-inline-start: 14px;
  padding-inline-start: 24px;
  font-size: 0.94em;
  font-weight: 600;
  color: #64748b;
}
.fm-row.fm-indent::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: -7px;
  bottom: 50%;
  width: 10px;
  border-inline-start: 1.5px solid #dbe5f1;
  border-bottom: 1.5px solid #dbe5f1;
  border-end-start-radius: 8px;
}
.pv-win .fm-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.pv-win .fm-time .ic { width: 11px; height: 11px; color: #94a3b8; }
.fm-dtitle { display: flex; align-items: center; gap: 9px; padding-bottom: 1px; }
.fm-dtitle b { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; color: #16233a; }
.fm-tchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #dbe7f6;
  border-radius: 99px;
  background: #f2f7fd;
  color: #3b7ac0;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
}
.fm-tchip .ic { width: 11px; height: 11px; }

/* ——— رسمة المفهوم: كل نوع صفّ (أيقونة + مثال + قاعدة التكرار) ——— */
.pv-concept { min-height: clamp(232px, 32vw, 344px); }
.d-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 340px);
}
.d-trow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #dfe9f6;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 12px 24px -22px rgba(15, 23, 43, 0.55);
}
.d-trow.hot {
  border-color: var(--blue);
  box-shadow: 0 14px 28px -18px rgba(9, 127, 232, 0.5);
}
.d-tico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d9e8fa;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #eaf3ff);
  color: var(--blue);
}
.d-tico .ic { width: 18px; height: 18px; }
.d-tcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-tcol b { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.d-tcol span {
  font-size: 0.74rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-trep {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue-deep);
  background: #eaf3ff;
  border: 1px solid #d5e6fb;
  padding: 5px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.d-cap {
  font-size: 0.76rem;
  color: var(--ink-3);
  text-align: center;
  max-width: 340px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .pcard.v2 { padding: 8px; }
  .pv-body { padding: 12px 6px 6px; }
  .pv-win { font-size: 0.82rem; padding: 20px 11px 11px; }
}

/* ═══════════════════════════════════════════════════════════
   موكّات الواجهات الحقيقية (mi-*) — مطابقة لشاشات التطبيق
   ═══════════════════════════════════════════════════════════ */

/* ——— عناصر مشتركة: رأس النافذة والأزرار المصغّرة ——— */
.mi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
.mi-head b {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #16233a;
}
.mi-head.center { justify-content: center; }
.mi-head b { flex: 1; }
.mi-head.center b { flex: 0 1 auto; }
.mi-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(180deg, #2f8bf0, #097fe8);
  color: #fff;
  box-shadow: 0 6px 12px -7px rgba(9, 127, 232, 0.8);
}
.mi-avatar .ic { width: 15px; height: 15px; }
.mi-back, .mi-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #7c8ba1;
}
.mi-back .ic, .mi-x .ic { width: 15px; height: 15px; }
.mi-count {
  flex: none;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3f9;
  color: #7c8ba1;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}
.mi-ibtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.mi-ibtn .ic { width: 14px; height: 14px; }
.mi-ibtn.sq {
  background: #fff;
  border: 1px solid #e3eaf3;
  color: #8695ab;
}
.mi-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #93a1b5;
  letter-spacing: 0.01em;
}
.mi-sub {
  font-size: 0.72rem;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}

/* ——— حقول الإدخال داخل الموكّات ——— */
.mi-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #e3eaf3;
  border-radius: 11px;
  background: #fff;
  min-height: 34px;
}
.mi-input .mi-ph {
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
  color: #9aa5b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mi-chev { flex: none; width: 14px; height: 14px; color: #9aa5b5; }
.mi-file { flex: none; width: 14px; height: 14px; color: #8695ab; }
.mi-addbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.mi-addbtn .ic { width: 14px; height: 14px; }

/* ——— شريط الفلاتر (قائمة المهام) ——— */
.mi-filters { display: flex; align-items: center; gap: 6px; }
.mi-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mk-sub);
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.mi-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.mi-filters .mi-ibtn.sq { margin-inline-start: auto; }

/* ——— صفوف المهام ——— */
.mi-rows { display: flex; flex-direction: column; gap: 6px; }
.mi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mk-ink);
}
.mi-row .mi-name { flex: 1; min-width: 0; }
.mi-add { flex: none; display: grid; place-items: center; width: 18px; height: 18px; color: var(--blue); }
.mi-add .ic { width: 15px; height: 15px; }
.mi-row.done .mi-name { text-decoration: line-through; color: #9aa5b5; }
.mi-row.done .mi-add { color: var(--done, #3e7a5c); }

/* ——— نافذة المساعد: رأس + فقاعات + إدخال ——— */
.sc-chat { gap: 9px; }
.sc-chat .mini-input {
  border-color: #e3eaf3;
  border-radius: 11px;
  padding: 7px 9px;
}
.sc-chat .mini-input span:first-child { font-size: 0.74rem; }
.mini-mic {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f1f5fa;
  color: #7c8ba1;
}
.mini-mic .ic { width: 13px; height: 13px; }
.sc-chat .mini-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.sc-chat .mini-send .ic { width: 14px; height: 14px; }

/* ——— نافذة الملاحظات ——— */
.sc-notes { gap: 9px; }
.mi-note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 11px 9px;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
}
.mi-note .mi-pin {
  position: absolute;
  top: 8px;
  inset-inline-end: 9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.mi-note .mi-pin .ic { width: 13px; height: 13px; }
.mi-note p {
  margin: 0;
  padding-inline-end: 20px;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--mk-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mi-note b { font-size: 0.8rem; font-weight: 800; color: var(--mk-ink); padding-inline-end: 20px; }
.mi-body { font-size: 0.74rem; line-height: 1.6; color: var(--mk-sub); }
.mi-more {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
}
.mi-date { font-size: 0.66rem; font-weight: 600; color: #9aa5b5; }

/* ——— القوائم الذكية ——— */
.sc-smart { gap: 9px; }
.mi-chips6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mi-schip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--mk-ink);
  min-width: 0;
}
.mi-schip > span:not(.mi-sico) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-schip b { flex: none; font-size: 0.68rem; font-weight: 800; color: var(--blue); }
.mi-schip.on { background: var(--blue-tint); border-color: rgba(9, 127, 232, 0.45); }
.mi-sico {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--blue-tint);
  color: var(--blue);
}
.mi-sico.red { background: #fdeceb; color: var(--missed); }
.mi-sico .ic { width: 11px; height: 11px; }
.mi-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: #f5f8fc;
  border: 1px solid #e6edf6;
  border-radius: 10px;
}
.mi-gico {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
}
.mi-gico .ic { width: 13px; height: 13px; }
.mi-gcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mi-gcol b { font-size: 0.78rem; font-weight: 800; color: var(--mk-ink); }
.mi-gcol span { font-size: 0.66rem; color: var(--mk-sub); }
.mi-gcount { font-size: 0.78rem; font-weight: 800; color: var(--blue); }
.mi-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
}
.mi-check2 {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
}
.mi-check2::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-inline-start: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.mi-tico2 {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--blue-tint);
  color: var(--blue);
}
.mi-tico2 .ic { width: 12px; height: 12px; }
.mi-row2 .mi-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mi-row2 .mi-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mk-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mi-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
}
.mi-time .ic { width: 11px; height: 11px; }

/* ——— القوالب ——— */
.sc-tpl { gap: 9px; }
.mi-searchrow { display: flex; align-items: center; gap: 7px; }
.mi-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #e3eaf3;
  border-radius: 10px;
  background: #fff;
  font-size: 0.74rem;
  color: #9aa5b5;
}
.mi-search .ic { flex: none; width: 13px; height: 13px; }
.mi-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-drop {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid #e3eaf3;
  border-radius: 10px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mk-ink);
  white-space: nowrap;
}
.mi-drop .ic { width: 13px; height: 13px; color: #8695ab; }
.mi-tpl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
}
.mi-tico {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue-tint);
  color: var(--blue);
}
.mi-tico .ic { width: 13px; height: 13px; }
.mi-tpl b {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mk-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mi-tact {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f3f6fa;
  color: #7c8ba1;
}
.mi-tact .ic { width: 13px; height: 13px; }
.mi-tact:first-of-type { background: var(--blue-tint); color: var(--blue); }

/* ——— المظهر: مبدّل الوضع + ١٦ لونًا ——— */
.sc-theme { gap: 10px; }
.mi-seg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #f1f5fa;
  border: 1px solid #e6edf6;
  border-radius: 11px;
}
.mi-seg2 > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #7c8ba1;
}
.mi-seg2 > span .ic { width: 14px; height: 14px; }
.mi-seg2 > span.on { background: var(--blue); color: #fff; box-shadow: 0 6px 12px -8px rgba(9, 127, 232, 0.9); }
.mi-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.mi-swatches > span {
  height: 24px;
  border-radius: 8px;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 43, 0.08);
}
.mi-swatches > span.on {
  box-shadow: inset 0 0 0 2px #ffffff, 0 0 0 2px var(--blue);
}

/* ============================================================
   قسم «مكان واحد ليومك» (All-in-one)
   ============================================================ */
.allinone-section {
  --aio-line: var(--line);
  --aio-muted: var(--ink-2);
}

.aio-card {
  padding: 24px;
  border: 1px solid var(--aio-line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 50%, var(--blue-soft) 0, var(--surface) 62%);
  overflow: hidden;
}
.aio-card svg { display: block; width: 100%; height: auto; }
/* اتجاه LTR داخل الرسم حتى يبدأ النص من إحداثي x المحدد بدلًا من الامتداد يسارًا في RTL */
.aio-card svg text { direction: ltr; font-family: var(--font-mk); }

/* النسخة الرأسية: المحور أعلى ثم العناصر بالطول — للموبايل فقط */
.aio-card .aio-v {
  display: none;
  max-width: 420px;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .aio-card { padding: 16px; }
  /* الرسم الأفقي العريض يفسح المجال للنسخة الرأسية */
  .aio-card > svg:not(.aio-v) { display: none; }
  .aio-card .aio-v { display: block; }
}

/* ============================================================
   قسم «السحب السريع» (Capture bento)
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cap-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 40%, var(--blue-soft));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.cap-a { grid-column: span 4; }
.cap-b { grid-column: span 2; }
.cap-c { grid-column: span 2; }
.cap-d { grid-column: span 4; }
.cap-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 8px;
}
.cap-art svg { width: 100%; height: auto; max-height: 260px; display: block; }
/* اتجاه LTR داخل الرسم حتى يبدأ النص من إحداثي x المحدد بدلًا من الامتداد يسارًا في RTL */
.cap-art svg text { direction: ltr; font-family: var(--font-mk); }
.cap-txt { padding: 12px 28px 28px; }
.cap-txt h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.cap-txt p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  /* أوسع قليلًا في البطاقات العريضة، وتبقى البطاقات الضيقة كما هي */
  max-width: 64ch;
}

@media (max-width: 760px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-a, .cap-b, .cap-c, .cap-d { grid-column: auto; }
}

/* ============================================================
   قسم «المساعد والملاحظات» (Assistant + Notes)
   ============================================================ */
#assist .sec-lead { max-width: 64ch; }
.asst-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.asst-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface) 40%, var(--blue-soft));
}
.asst-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 8px;
}
.asst-art svg { display: block; width: 100%; height: auto; max-width: 440px; }
/* اتجاه LTR داخل الرسم حتى يبدأ النص من إحداثي x المحدد بدلًا من الامتداد يسارًا في RTL */
.asst-art svg text { direction: ltr; font-family: var(--font-mk); }
.asst-txt { padding: 12px 28px 28px; }
.asst-txt h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.asst-txt p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 44ch;
}

@media (max-width: 760px) {
  .asst-grid { grid-template-columns: 1fr; }
  .asst-art { padding: 20px 16px 8px; }
  .asst-txt { padding: 8px 20px 24px; }
}

/* ============================================================
   قسم «أكثر من قائمة مهام» (More than a to-do list)
   ============================================================ */
.yw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.yw-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  /* تدرّج أزرق خفيف جدًّا لأسفل البطاقة — أهدأ من --blue-soft */
  background: linear-gradient(180deg, var(--surface) 42%, #f1f8fe 100%);
}
.yw-sl { grid-column: 1 / 3; }
.yw-cl { grid-column: 3; }
.yw-se { grid-column: 4; }
.yw-ap { grid-column: 1; }
.yw-rm { grid-column: 2; }
.yw-ex { grid-column: 3 / 5; }
.yw-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 4px;
}
.yw-art svg { display: block; width: 100%; height: auto; }
.yw-sl .yw-art svg,
.yw-ex .yw-art svg { max-width: 520px; }
.yw-cl .yw-art svg,
.yw-se .yw-art svg,
.yw-ap .yw-art svg,
.yw-rm .yw-art svg { max-width: 300px; }
/* اتجاه LTR داخل الرسم حتى يبدأ النص من إحداثي x المحدد بدلًا من الامتداد يسارًا في RTL */
.yw-art svg text { direction: ltr; font-family: var(--font-mk); }
.yw-fade-cal {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.yw-fade-search {
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.yw-txt { padding: 8px 22px 20px; }
.yw-txt h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.yw-txt p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .yw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-sl, .yw-ex { grid-column: 1 / 3; }
  .yw-cl, .yw-se, .yw-ap, .yw-rm { grid-column: auto; }
}

@media (max-width: 560px) {
  .yw-grid { grid-template-columns: 1fr; }
  .yw-sl, .yw-ex, .yw-cl, .yw-se, .yw-ap, .yw-rm { grid-column: auto; }
  /* الرسوم العريضة تُقاس على عرض الكارت (بلا تمرير أفقي) */
  .yw-sl .yw-art,
  .yw-ex .yw-art { justify-content: center; overflow: visible; direction: ltr; }
  .yw-sl .yw-art svg,
  .yw-ex .yw-art svg { width: 100%; min-width: 0; max-width: 100%; }
}
