/* =========================================================
   نظام التصميم الأساسي
   ========================================================= */

:root{
  --forest-950: #0F2A22;
  --forest-800: #17423A;
  --forest-700: #1F5348;
  --green-500:  #2F9E63;
  --green-400:  #46B87A;
  --green-300:  #8FD6A8;
  --mint-100:   #E3F3E8;
  --paper:      #F5F7F4;
  --paper-alt:  #EDF2EE;
  --card:       #FFFFFF;
  --ink-900:    #16231E;
  --ink-700:    #33453D;
  --ink-500:    #64756C;
  --line:       #DCE4DE;
  --amber-600:  #B5622B;
  --amber-100:  #FBEEE2;
  --gold-400:   #D4A373;
  --gold-300:   #E8C99B;

  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15,42,34,0.06);
  --shadow-md: 0 12px 32px rgba(15,42,34,0.10);
  --shadow-lg: 0 20px 50px rgba(15,42,34,0.15);
  --container: 1080px;
  --transition-smooth: all 0.3s cubic-bezier(.25,.46,.45,.94);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-900);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5{ font-family: var(--font-display); margin: 0; }
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
img{ max-width: 100%; display: block; }

.mono{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

/* ===== أزرار ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  letter-spacing: 0.02em;
}
.btn--primary{
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  border: none;
  color: #0F2A22;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(70,184,122,0.4);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: inherit;
}
.btn--ghost:hover{ background: rgba(255,255,255,0.08); }
.btn--outline{
  background: transparent;
  border: 2px solid var(--line);
  color: var(--ink-700);
}
.btn--outline:hover{
  background: var(--mint-100);
  border-color: var(--green-400);
}
.btn--danger{
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
}
.btn--danger:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(231,76,60,0.4);
}
.section .btn--ghost{ border-color: var(--line); }
.section .btn--ghost:hover{ background: var(--paper-alt); }

/* ===== شريط التنقل ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,247,244,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--forest-800);
  flex-shrink: 0;
}
.brand__mark{ color: var(--green-500); display: inline-flex; }
.brand__text{ display: flex; align-items: baseline; gap: 8px; }
.brand__sub{ font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; color: var(--ink-500); }
.nav{
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav__link{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: var(--transition-smooth);
}
.nav__link:hover, .nav__link.is-active{
  background: var(--mint-100);
  color: var(--forest-800);
}
.nav__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--forest-800);
  border-radius: 2px;
}

/* ===== البطل ===== */
.hero{
  position: relative;
  background: var(--forest-950);
  color: #EFF6F1;
  overflow: hidden;
  padding: 76px 24px 40px;
}
.hero__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(70,184,122,0.25), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(143,214,168,0.1), transparent 50%);
  pointer-events: none;
}
.hero__inner{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--green-300);
  text-transform: none;
  margin-bottom: 18px;
}
.hero__title{
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  max-width: 16ch;
}
.hero__title span{ color: var(--green-300); }
.hero__lead{
  margin-top: 22px;
  max-width: 58ch;
  font-size: 1.08rem;
  color: #D3E4D9;
}
.hero__actions{
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* مسار المرحلتين */
.pathway{
  margin-top: 64px;
  padding-top: 8px;
}
.pathway__track{
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 0 10px;
}
.pathway__fill{
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(90deg, var(--green-500), #8FD6A8, var(--green-400));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}
.pathway__stop{
  position: absolute;
  top: 50%;
  inset-inline-start: var(--pos);
  transform: translate(50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pathway__dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--forest-950);
  border: 2px solid var(--green-300);
}
.pathway__dot--phase{
  width: 18px;
  height: 18px;
  background: var(--green-400);
  border-color: var(--green-300);
  box-shadow: 0 0 0 6px rgba(70,184,122,0.18);
}
.pathway__label{
  margin-top: 14px;
  font-size: 0.78rem;
  color: #C7DACD;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}
.pathway__label small{ color: #93AB9C; font-weight: 500; }
.pathway__stop--phase .pathway__label{ color: var(--green-300); }

/* ===== الأقسام ===== */
.section{
  padding: 80px 24px;
}
.section--alt{
  background: linear-gradient(145deg, var(--paper-alt) 0%, #E8F0EA 100%);
  position: relative;
}
.section--alt::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--green-300) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}
.section__inner{
  max-width: var(--container);
  margin: 0 auto;
}
.section__eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-500);
  font-weight: 600;
  margin-bottom: 10px;
}
.section__eyebrow::before { content: "✦ "; color: var(--green-400); font-weight: 400; }
.section__title{
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--forest-800);
}
.section__lead{
  margin-top: 14px;
  max-width: 68ch;
  color: var(--ink-500);
  font-size: 1.02rem;
}

/* ===== بطاقات الملخص ===== */
.stat-grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.stat-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-card__num{
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--forest-800);
  position: relative;
  display: inline-block;
}
.stat-card__num::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--green-400);
  border-radius: 4px;
}
.stat-card__num small{ font-size: 1rem; font-weight: 600; color: var(--ink-500); }
.stat-card__label{ font-weight: 700; font-size: 0.98rem; }
.stat-card__sub{ font-size: 0.85rem; color: var(--ink-500); }

/* ===== لوحة المغذيات ===== */
.macro-panel{
  margin-top: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.macro-panel__title{ font-size: 1.1rem; margin-bottom: 22px; color: var(--forest-800); }
.macro-bars{ display: flex; flex-direction: column; gap: 18px; }
.macro-bar__head{
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.macro-bar__track{
  height: 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  overflow: hidden;
}
.macro-bar__fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.macro-bar__fill--protein{ background: linear-gradient(90deg, var(--green-500), var(--green-400)); }
.macro-bar__fill--carb{ background: linear-gradient(90deg, #4A8FB8, #7BB8DB); }
.macro-bar__fill--fat{ background: linear-gradient(90deg, var(--amber-600), #E0A05F); }
.macro-panel__note{
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-500);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* ===== بطاقات قابلة للتوسيع ===== */
.card--expand{
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.card--expand:hover { box-shadow: var(--shadow-md); }
.card__toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest-800);
  text-align: right;
}
.card__toggle-title small{ font-weight: 500; color: var(--ink-500); font-size: 0.82rem; }
.card__toggle-icon{
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--forest-800);
  font-size: 1.2rem;
  transition: transform .25s ease;
}
.card__toggle[aria-expanded="true"] .card__toggle-icon{ transform: rotate(45deg); }
.card__body{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
}
.card__body.is-open{ padding: 0 24px 26px; }

/* ===== تبويبات ===== */
.tabs{ margin-top: 36px; }
.tabs__list{
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tabs__btn{
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-700);
  transition: var(--transition-smooth);
}
.tabs__btn.is-active{
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: #EFF6F1;
  box-shadow: 0 4px 12px rgba(15,42,34,0.2);
}
.tabs__panel{ display: none; }
.tabs__panel.is-active{ display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn{ from{ opacity: 0; transform: translateY(6px);} to{ opacity: 1; transform: translateY(0);} }

/* ===== جداول ===== */
.table-wrap{
  margin-top: 24px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
.table th{
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  color: #EAF3EC;
  text-align: right;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.table td{
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
}
.table tbody tr:hover{ background: var(--paper-alt); }

/* ===== لوحة الماء ===== */
.water-panel{
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.water-panel__text h3{ font-size: 1.05rem; color: var(--forest-800); margin-bottom: 6px; }
.water-panel__text p{ color: var(--ink-500); font-size: 0.92rem; }
.water-glasses{
  display: flex;
  gap: 6px;
}
.water-glasses span{
  width: 14px;
  height: 22px;
  border-radius: 0 0 4px 4px;
  border: 2px solid var(--green-400);
  border-top: none;
  background: linear-gradient(to top, var(--green-300) 70%, transparent 70%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}

/* ===== خط الوجبات الزمني ===== */
.meal-timeline{
  margin-top: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.meal-timeline::before{
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 63px;
  width: 2px;
  background: var(--line);
}
.meal-item{
  display: flex;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}
.meal-item__time{
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  font-weight: 700;
  color: var(--forest-800);
  font-size: 0.95rem;
  position: relative;
}
.meal-item__time::after{
  content: "";
  position: absolute;
  right: -1px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-400);
  border: 3px solid var(--paper);
  transform: translateX(50%);
}
.meal-item__time small{ display: block; font-size: 0.7rem; font-weight: 500; color: var(--ink-500); }
.meal-item__body{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}
.meal-item__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.meal-item__head h4{ font-size: 1rem; color: var(--forest-800); }
.meal-item__wake{ font-weight: 500; font-size: 0.76rem; color: var(--ink-500); }
.meal-kcal{
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-500);
  background: var(--mint-100);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.meal-options{ display: flex; flex-direction: column; gap: 4px; }
.meal-option{
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px 6px;
}
.meal-option__head{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}
.meal-option__head h5{ font-size: 0.9rem; color: var(--forest-800); flex: 1; min-width: 140px; }
.meal-option__head > .mono{ font-size: 0.8rem; color: var(--green-500); font-weight: 700; }
.meal-option__tag{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--forest-800);
  background: var(--mint-100);
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.meal-option__divider{
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-500);
  padding: 2px 0;
}
.ingredient-list li{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-700);
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}
.ingredient-list li:first-child{ border-top: none; }
.ingredient-list li span:last-child{ color: var(--ink-500); flex-shrink: 0; }
.meal-total{
  margin-top: 26px;
  margin-right: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--forest-800);
  color: #EAF3EC;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1rem;
}
.meal-total .mono{ color: var(--green-300); font-size: 1.05rem; }

/* ===== نصائح إضافية ===== */
.tips-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 6px 0 22px;
}
.tip{ text-align: center; }
.tip__icon{ font-size: 1.6rem; display: block; margin-bottom: 8px; }
.tip h5{ font-size: 0.92rem; color: var(--forest-800); margin-bottom: 4px; }
.tip p{ font-size: 0.82rem; color: var(--ink-500); }

/* ===== المرحلة الثانية ===== */
.split{
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.split__col{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.split__col:hover { box-shadow: var(--shadow-md); }
.split__title{ font-size: 1.05rem; color: var(--forest-800); margin-bottom: 18px; }
.check-list li{
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 14px;
  font-size: 0.94rem;
  color: var(--ink-700);
}
.check-list li::before{
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--green-500);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list--accent li::before{ background: var(--forest-800); color: var(--green-300); }

/* ===== السلامة ===== */
.section--safety{ background: var(--forest-950); color: #E9F2EB; }
.section--safety .section__title{ color: #FFFFFF; }
.section--safety .section__eyebrow{ color: var(--green-300); }
.safety-grid{
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.safety-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: var(--transition-smooth);
}
.safety-card:hover { background: rgba(255,255,255,0.08); }
.safety-card h4{ color: var(--green-300); font-size: 1rem; margin-bottom: 10px; }
.safety-card p{ font-size: 0.9rem; color: #CBDCD1; }
.disclaimer{
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(181,98,43,0.16);
  border: 1px solid rgba(224,160,95,0.4);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.disclaimer__icon{ font-size: 1.3rem; color: #E0A05F; flex-shrink: 0; }
.disclaimer p{ font-size: 0.92rem; color: #F3E4D4; line-height: 1.75; }

/* ===== المتابعة ===== */
.table--tracking td small{ display: block; color: var(--ink-500); font-size: 0.75rem; font-weight: 500; }
.cell-input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--ink-900);
  transition: var(--transition-smooth);
}
.cell-input:focus{
  border-color: var(--green-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(70,184,122,0.18);
}
.tracking-actions{
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tracking-status{
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
  padding: 6px 14px;
  border-radius: 8px;
}
.tracking-status.error { color: #c0392b; background: #fde8e8; }

/* ===== تذييل ===== */
.footer{
  background: var(--forest-950);
  color: #9FB6A6;
  text-align: center;
  padding: 34px 24px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer p{ margin: 4px 0; }
.footer__note{ color: #6E8A79; font-size: 0.8rem; }

/* ===== سكرول ريفيل ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== خلفية عائمة ===== */
.ambient{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient__blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float-blob 22s ease-in-out infinite;
}
.ambient__blob--1{
  width: 420px; height: 420px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, var(--green-300), transparent 70%);
}
.ambient__blob--2{
  width: 500px; height: 500px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle, var(--mint-100), transparent 70%);
  animation-duration: 28s;
  animation-delay: -6s;
}
@keyframes float-blob{
  0%, 100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(30px,-40px) scale(1.08); }
  66%{ transform: translate(-25px,25px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce){
  .ambient__blob{ animation: none; }
}

/* ===== البطل - ظهور تدريجي ===== */
.reveal-hero{
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.eyebrow.reveal-hero{ animation-delay: .05s; }
.hero__title.reveal-hero{ animation-delay: .15s; }
.hero__lead.reveal-hero{ animation-delay: .32s; }
.hero__actions.reveal-hero{ animation-delay: .46s; }
.pathway.reveal-hero{ animation-delay: .6s; }
@keyframes hero-in{
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .reveal-hero{ animation: none; opacity: 1; transform: none; }
}

/* ===== مؤشر التمرير ===== */
.hero__scroll{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.hero__scroll span{
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  position: relative;
}
.hero__scroll span::before{
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--green-300);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot{
  0%{ opacity: 1; transform: translate(-50%, 0); }
  70%{ opacity: 0; transform: translate(-50%, 14px); }
  100%{ opacity: 0; transform: translate(-50%, 14px); }
}

/* ===== ملاحظة المبتدئة ===== */
.beginner-note{
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--amber-100);
  border: 1px solid rgba(181,98,43,0.25);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.beginner-note__icon{ font-size: 1.3rem; flex-shrink: 0; }
.beginner-note h4{ font-size: 0.96rem; color: var(--amber-600); margin-bottom: 6px; }
.beginner-note p{ font-size: 0.88rem; color: var(--ink-700); line-height: 1.75; }

/* ===== شبكة التمارين ===== */
.exercise-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.exercise-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.exercise-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(47, 158, 99, 0.15), 0 0 0 2px var(--green-300);
}
.exercise-card__video{
  position: relative;
  aspect-ratio: 16/9;
  background: var(--forest-950);
  overflow: hidden;
}
.exercise-card__video-link { display: block; }
.exercise-card__thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.exercise-card:hover .exercise-card__thumb{
  transform: scale(1.06);
  filter: brightness(0.85);
}
.exercise-card__play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15,42,34,0.72);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  padding-inline-start: 3px;
  pointer-events: none;
}
.exercise-card__video-link:hover .exercise-card__play{
  transform: scale(1.15);
  background: var(--green-500);
  box-shadow: 0 0 30px rgba(70,184,122,0.5);
}
.exercise-card__body{
  padding: 14px 16px 18px;
}
.exercise-card__body h4{
  font-size: 0.94rem;
  color: var(--forest-800);
  margin-bottom: 5px;
  line-height: 1.4;
}
.exercise-card__body h4::before { content: "💪 "; font-size: 1.1em; }
.exercise-card__meta{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-500);
  margin-bottom: 3px;
}
.exercise-card__note{
  font-size: 0.8rem;
  color: var(--ink-500);
}
.list-note{
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--ink-500);
}
.cardio-note{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--mint-100), #D4EDDA);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--forest-800);
  font-weight: 600;
  border: 1px solid rgba(47, 158, 99, 0.2);
}
.cardio-note__icon{ font-size: 1.2rem; }

/* ===== عدّاد ===== */
.counter{ display: inline-block; }

/* ===== إدارة ===== */
.admin-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.admin-header h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--forest-800), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.admin-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
  color: #fff;
  padding: 16px 20px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-align: right;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--paper);
  transition: var(--transition-smooth);
  width: 100%;
}
.admin-table input:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 4px rgba(70,184,122,0.15);
  outline: none;
}
.btn-delete-row {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.btn-delete-row:hover {
  background: #fde8e8;
  transform: scale(1.1);
}
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  align-items: center;
}
.status-msg {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--mint-100);
  border-right: 6px solid var(--green-400);
  margin-top: 20px;
  transition: var(--transition-smooth);
}
.status-msg.error {
  background: #fde8e8;
  border-right-color: #e74c3c;
  color: #c0392b;
}

/* ===== استجابة ===== */
@media (max-width: 900px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); }
  .tips-grid{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .safety-grid{ grid-template-columns: 1fr; }
  .exercise-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
  .nav{
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 20px 18px;
    display: none;
    gap: 2px;
  }
  .nav.is-open{ display: flex; }
  .nav__link{ width: 100%; padding: 12px 14px; }
  .nav__toggle{ display: flex; }
  .hero{ padding-top: 100px; }
  .pathway__label{ font-size: 0.68rem; white-space: normal; width: 70px; }
  .meal-timeline::before{ right: 46px; }
  .meal-item__time{ width: 46px; font-size: 0.82rem; }

  /* جداول الإدارة */
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table thead { display: none; }
  .admin-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
  }
  .admin-table td {
    border: none;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--forest-800);
    margin-left: 10px;
  }
  .admin-table td:last-child { justify-content: flex-end; }
  .admin-table td:last-child::before { display: none; }
}

@media (max-width: 560px){
  .section{ padding: 56px 18px; }
  .stat-grid{ grid-template-columns: 1fr; }
  .tips-grid{ grid-template-columns: 1fr; }
  .table{ min-width: 480px; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .hero__actions .btn{ text-align: center; }
  .exercise-grid{ grid-template-columns: 1fr; }
  .meal-total{ margin-right: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .meal-item__head{ flex-direction: column; align-items: flex-start; gap: 6px; }
}