/* ====================================================
   نظام تغذية الطيبات — CSS متقدم
   يتوافق مع هوية الموقع (أخضر + ذهبي)
   ==================================================== */

/* ─── متغيرات إضافية للتغذية ─────────────────────────── */
:root {
  --nt-green:       #2D6A4F;
  --nt-green-dark:  #1B4332;
  --nt-green-light: #52B788;
  --nt-green-bg:    #D8F3DC;
  --nt-gold:        #D4A017;
  --nt-gold-dark:   #B8860B;
  --nt-gold-light:  #F4D03F;
  --nt-gold-bg:     #FEF9E7;
  --nt-teal:        #0D9488;
  --nt-teal-bg:     #CCFBF1;
  --nt-red:         #E74C3C;
  --nt-red-bg:      #FDEDEC;
  --nt-card-bg:     #FFFFFF;
  --nt-radius:      18px;
  --nt-shadow:      0 4px 24px rgba(27,67,50,0.10);
  --nt-shadow-lg:   0 12px 48px rgba(27,67,50,0.16);
  --nt-transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── صفحة الـ Onboarding ────────────────────────────── */
.onboarding-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 50%, #f0fdf4 100%);
  padding: 80px 0 60px;
}

.onboarding-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* شريط التقدم */
.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.progress-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--nt-green-bg);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #9ca3af;
  transition: var(--nt-transition);
  position: relative;
  z-index: 2;
}

.progress-step.active .progress-step-circle {
  background: var(--nt-green);
  border-color: var(--nt-green);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(45,106,79,0.15);
}

.progress-step.done .progress-step-circle {
  background: var(--nt-green-light);
  border-color: var(--nt-green-light);
  color: #fff;
}

.progress-step-label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}

.progress-step.active .progress-step-label { color: var(--nt-green); font-weight: 700; }
.progress-step.done  .progress-step-label  { color: var(--nt-green-light); }

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--nt-green-bg);
  max-width: 80px;
  margin-top: -20px;
  transition: var(--nt-transition);
}

.progress-line.done { background: var(--nt-green-light); }

/* بطاقة الخطوة */
.onboarding-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--nt-shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(45,106,79,0.08);
}

.onboarding-card-header {
  background: linear-gradient(135deg, var(--nt-green-dark), var(--nt-green));
  padding: 32px 36px 28px;
  color: #fff;
  text-align: center;
}

.onboarding-card-header .step-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.onboarding-card-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.onboarding-card-header p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

.onboarding-card-body {
  padding: 36px;
}

/* ─── نموذج الاستبيان ───────────────────────────────── */
.form-section {
  margin-bottom: 28px;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nt-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--nt-gold);
  border-radius: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-family: var(--font-primary, 'Tajawal', sans-serif);
  font-size: 0.95rem;
  color: #1a2e24;
  background: #fafafa;
  transition: var(--nt-transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--nt-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45,106,79,0.08);
}

/* خيارات الراديو المرئية */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--nt-transition);
  background: #fafafa;
  text-align: center;
}

.radio-card:hover {
  border-color: var(--nt-green-light);
  background: #f0fdf4;
}

.radio-card input[type="radio"] { display: none; }

.radio-card.selected {
  border-color: var(--nt-green);
  background: var(--nt-green-bg);
  box-shadow: 0 0 0 4px rgba(45,106,79,0.10);
}

.radio-card .rc-icon { font-size: 2rem; }
.radio-card .rc-label { font-weight: 600; font-size: 0.85rem; color: #374151; }
.radio-card .rc-desc  { font-size: 0.75rem; color: #9ca3af; line-height: 1.4; }
.radio-card.selected .rc-label { color: var(--nt-green); }

/* تشك بوكسات الحالات الصحية */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--nt-transition);
  background: #fafafa;
  font-size: 0.9rem;
  color: #374151;
}

.checkbox-item:hover  { border-color: var(--nt-green-light); background: #f0fdf4; }
.checkbox-item.checked { border-color: var(--nt-green); background: var(--nt-green-bg); }
.checkbox-item input { accent-color: var(--nt-green); width: 16px; height: 16px; }

/* ─── بطاقات اختيار البرنامج ────────────────────────── */
.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.program-card {
  position: relative;
  border: 2.5px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 20px;
  cursor: pointer;
  transition: var(--nt-transition);
  background: #fff;
  text-align: center;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: #e5e7eb;
  transition: var(--nt-transition);
}

.program-card[data-level="beginner"]::before     { background: var(--nt-green-light); }
.program-card[data-level="intermediate"]::before { background: var(--nt-teal); }
.program-card[data-level="advanced"]::before     { background: var(--nt-gold); }

.program-card:hover { transform: translateY(-4px); box-shadow: var(--nt-shadow-lg); }

.program-card.selected {
  border-color: var(--nt-green);
  box-shadow: 0 0 0 4px rgba(45,106,79,0.12), var(--nt-shadow-lg);
}

.program-card[data-level="advanced"].selected { border-color: var(--nt-gold); }

.program-check {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nt-green);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.program-card.selected .program-check { display: flex; }
.program-card.ai-recommended {
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.program-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.program-level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.badge-beginner     { background: #d1fae5; color: #065f46; }
.badge-intermediate { background: #ccfbf1; color: #0f766e; }
.badge-advanced     { background: #fef3c7; color: #92400e; }

.program-name { font-size: 1.1rem; font-weight: 800; color: #1a2e24; margin-bottom: 8px; }
.program-desc { font-size: 0.8rem; color: #6b7280; line-height: 1.5; }

.program-rules {
  margin-top: 16px;
  text-align: right;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.program-rules .rule-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 5px;
}

.program-rules .rule-item::before { content: '✓'; color: var(--nt-green); font-weight: 700; flex-shrink: 0; }

/* أزرار الإرسال */
.onboarding-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.btn-next {
  background: linear-gradient(135deg, var(--nt-green), var(--nt-green-dark));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--nt-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,67,50,0.25); }
.btn-next:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-back {
  background: transparent;
  color: var(--nt-green);
  border: 2px solid var(--nt-green-bg);
  padding: 14px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--nt-transition);
}

.btn-back:hover { background: var(--nt-green-bg); }

/* ─── صفحة التوليد (loading) ─────────────────────────── */
.generating-screen {
  text-align: center;
  padding: 60px 36px;
}

.generating-animation {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--nt-green-bg);
  border-top-color: var(--nt-green);
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.generating-screen h3 { font-size: 1.4rem; color: var(--nt-green-dark); margin-bottom: 8px; }
.generating-screen p  { color: #6b7280; font-size: 0.95rem; }

.generating-steps {
  list-style: none;
  margin: 28px 0 0;
  text-align: right;
  max-width: 320px;
  margin-inline: auto;
}

.generating-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #9ca3af;
  border-bottom: 1px solid #f3f4f6;
  transition: var(--nt-transition);
}

.generating-steps li.done  { color: var(--nt-green); }
.generating-steps li.active{ color: var(--nt-green-dark); font-weight: 600; }

.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  transition: var(--nt-transition);
}

.generating-steps li.done  .step-dot  { background: var(--nt-green-light); }
.generating-steps li.active .step-dot { background: var(--nt-green); box-shadow: 0 0 0 4px rgba(45,106,79,0.2); animation: pulse-dot 1s ease infinite; }

@keyframes pulse-dot { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

/* ─── لوحة الداشبورد ─────────────────────────────────── */
.dashboard-page {
  min-height: 100vh;
  background: #f8faf9;
  padding: 80px 0 60px;
}

.dashboard-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-greeting h1,
.dashboard-hero-title {
  font-size: clamp(1.35rem, 3.5vw, 1.95rem);
  font-weight: 800;
  color: var(--nt-green-dark);
  margin: 0 0 10px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.dashboard-hero-greet {
  font-weight: 600;
  color: #4b5e55;
}

.dashboard-hero-name {
  font-weight: 900;
  color: var(--nt-green-dark);
  margin-inline-start: 6px;
}

.dashboard-hero-emoji {
  margin-inline-start: 4px;
}

.dashboard-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.dashboard-greeting .greeting-sub {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-greeting .greeting-sub .day-badge {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #14532d;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-badge--fasting {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ─── قسم الإحصائيات في الداشبورد ───────────────── */
.dashboard-stats-section {
  margin-bottom: 28px;
}

.dashboard-stats-section__head {
  margin-bottom: 14px;
}

.dashboard-stats-section__title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--nt-green-dark);
  letter-spacing: -0.02em;
}

.dashboard-stats-section__sub {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #ffffff 0%, #f9fdfb 55%, #f3faf6 100%);
  border-radius: 20px;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 28px -14px rgba(27, 67, 50, 0.18);
  transition: var(--nt-transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--nt-green), #40916c);
  opacity: 0.95;
}

.stat-card--meals::before {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.stat-card--fast::before {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.stat-card--compliance::before {
  background: linear-gradient(90deg, var(--nt-gold-dark), #eab308);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 40px -18px rgba(27, 67, 50, 0.22);
}

.stat-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 20px;
}

.stat-card__iconwrap {
  flex-shrink: 0;
}

.stat-card__body {
  min-width: 0;
  flex: 1;
}

.stat-card .stat-icon {
  font-size: 1.55rem;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.06);
}

.stat-icon-green  { background: var(--nt-green-bg); }
.stat-icon-gold   { background: var(--nt-gold-bg); }
.stat-icon-teal   { background: var(--nt-teal-bg); }
.stat-icon-red    { background: var(--nt-red-bg); }

.stat-card .stat-value {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 900;
  color: var(--nt-green-dark);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat-value__suffix {
  font-size: 1.05rem;
  font-weight: 800;
  opacity: 0.75;
  margin-inline-start: 2px;
}

.stat-card .stat-label {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.35;
}

/* شبكة الداشبورد الرئيسية */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 22px 28px;
  align-items: start;
}

.dashboard-grid--main {
  margin-top: 4px;
}

@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* بطاقة الوجبات */
.meals-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px -24px rgba(27, 67, 50, 0.2);
  overflow: hidden;
  border: 1px solid rgba(45, 106, 79, 0.1);
}

.meals-card--today::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nt-gold-light), var(--nt-green-light), var(--nt-green));
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

.meals-card-header {
  position: relative;
  z-index: 1;
  background: linear-gradient(128deg, #143d2e 0%, var(--nt-green-dark) 38%, var(--nt-green) 88%);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.meals-card-title {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.meals-card-title__ic {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.meals-card-progress {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

.meals-card-progress--complete {
  background: rgba(212, 160, 23, 0.28);
  border-color: rgba(250, 250, 250, 0.45);
  color: #fffbeb;
}

.fasting-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
}

.meals-card-body {
  position: relative;
  z-index: 1;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #fbfcfb 0%, #fff 28%);
}

/* عنصر الوجبة */
.meal-item {
  padding: 0;
  border: none;
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f8faf9 100%);
  border: 1px solid rgba(45, 106, 79, 0.09);
  box-shadow: 0 2px 14px rgba(27, 67, 50, 0.05);
  transition: var(--nt-transition);
}

.meal-item:hover {
  border-color: rgba(45, 106, 79, 0.16);
  box-shadow: 0 6px 22px rgba(27, 67, 50, 0.08);
  transform: translateY(-1px);
}

.meal-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}

.meal-type-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.meal-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.06);
}

.meal-type-icon.morning  { background: #fef3c7; }
.meal-type-icon.breakfast{ background: var(--nt-green-bg); }
.meal-type-icon.lunch    { background: var(--nt-teal-bg); }
.meal-type-icon.dinner   { background: #ede9fe; }
.meal-type-icon.snacks   { background: #fff1f2; }

.meal-type-text .meal-name {
  font-weight: 800;
  color: #1a2e24;
  font-size: 0.95rem;
  line-height: 1.45;
}

.meal-name__sep {
  color: #94a3b8;
  font-weight: 500;
  margin-inline: 2px;
}

.meal-name__detail {
  font-weight: 600;
  color: #64748b;
}

.meal-type-text .meal-time {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.meal-complete-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--nt-transition);
  font-size: 0.92rem;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(27, 67, 50, 0.06);
}

.meal-complete-btn:hover {
  border-color: var(--nt-green);
  color: var(--nt-green);
  background: #fff;
}

.meal-complete-btn.completed {
  background: linear-gradient(145deg, var(--nt-green), #1e5c3e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
}

.meal-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.meal-item-tag {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  color: #1e3a2f;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(45, 106, 79, 0.1);
}

.meal-item-tag .tag-amount { color: #64748b; font-weight: 500; }

.meal-note {
  margin: 0 18px 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fffbeb, var(--nt-gold-bg));
  border-right: 4px solid var(--nt-gold-dark);
  border-radius: 0 12px 12px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #92400e;
  line-height: 1.55;
}

.meal-blocked {
  margin: 0 18px 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 14px;
  font-size: 0.88rem;
  color: #92400e;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* أزرار حالة عدم وجود خطة */
.empty-plan-state__text {
  margin: 0 0 16px;
  line-height: 1.75;
  color: #64748b;
  font-size: 0.92rem;
}

.empty-plan-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-dash-retry,
.btn-dash-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--nt-transition);
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.btn-dash-retry {
  background: linear-gradient(135deg, var(--nt-green), #1e5c3e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.28);
}

.btn-dash-retry:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-dash-refresh {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.btn-dash-refresh:hover {
  background: #e2e8f0;
}

/* قائمة نشاط المساعد في الشريط الجانبي */
.dashboard-ai-feed {
  margin-top: 4px;
}

.dashboard-ai-feed__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nt-green-dark);
}

.dashboard-ai-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dashboard-ai-feed__item {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-ai-feed__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboard-ai-feed__topic {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1B4332;
  margin-bottom: 4px;
}

.dashboard-ai-feed__time {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.dashboard-ai-feed__preview {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #475569;
}

.rules-list__mark {
  flex-shrink: 0;
  color: #52b788;
  font-weight: 800;
  width: 1.4em;
  text-align: center;
}

.rules-list__mark--gold {
  color: var(--nt-gold-dark);
}

/* الجانب الأيمن للداشبورد */
.dashboard-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* بطاقة النصيحة اليومية */
.tip-card {
  background: linear-gradient(135deg, var(--nt-green-dark), #1a5c40);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '💡';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 5rem;
  opacity: 0.08;
}

.tip-card .tip-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nt-gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.tip-card .tip-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

/* بطاقة التحفيز */
.motivation-card {
  background: var(--nt-gold-bg);
  border: 2px solid var(--nt-gold-light);
  border-radius: 20px;
  padding: 20px 22px;
}

.motivation-card .mot-icon { font-size: 2rem; margin-bottom: 8px; }
.motivation-card .mot-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #92400e;
  font-weight: 500;
}

/* بطاقة تقدم البرنامج */
.program-progress-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--nt-shadow);
  border: 1px solid rgba(45,106,79,0.06);
}

.program-progress-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-wrap {
  background: var(--nt-green-bg);
  border-radius: 20px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nt-green-light), var(--nt-green));
  border-radius: 20px;
  transition: width 1s ease;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
}

.progress-bar-label .current { color: var(--nt-green); font-weight: 700; }

/* دائرة الالتزام */
.compliance-ring {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.ring-chart {
  width: 64px;
  height: 64px;
  position: relative;
  flex-shrink: 0;
}

.ring-chart svg { transform: rotate(-90deg); }

.ring-chart .ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--nt-green-dark);
  transform: rotate(0deg);
}

.ring-info .ring-label  { font-size: 0.8rem; color: #6b7280; }
.ring-info .ring-sublabel { font-size: 0.72rem; color: #9ca3af; }

/* ─── صفحة سجل الوجبات ────────────────────────────── */
.meals-history-page { padding: 80px 0 60px; min-height: 100vh; background: #f8faf9; }

.meals-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: #6b7280;
  cursor: pointer;
  transition: var(--nt-transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--nt-green);
  border-color: var(--nt-green);
  color: #fff;
}

.day-history-card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--nt-shadow);
  border: 1px solid rgba(45,106,79,0.06);
}

.day-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--nt-green-bg);
  cursor: pointer;
}

.day-history-header .date-info .date-day { font-weight: 800; color: var(--nt-green-dark); }
.day-history-header .date-info .date-label { font-size: 0.78rem; color: #6b7280; }

.compliance-pills {
  display: flex;
  gap: 4px;
}

.compliance-pill {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
}

.compliance-pill.done { background: var(--nt-green-light); }

/* ─── صفحة التقدم ──────────────────────────────────── */
.progress-page { padding: 80px 0 60px; min-height: 100vh; background: #f8faf9; }

.progress-chart-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--nt-shadow);
  margin-bottom: 24px;
  border: 1px solid rgba(45,106,79,0.06);
}

.progress-chart-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nt-green-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* شبكة التقويم */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--nt-transition);
}

.cal-day.empty  { background: transparent; }
.cal-day.future { background: #f9fafb; color: #d1d5db; }
.cal-day.today  { background: var(--nt-green); color: #fff; box-shadow: 0 0 0 3px rgba(45,106,79,0.2); }
.cal-day.done   { background: var(--nt-green-bg); color: var(--nt-green); }
.cal-day.partial { background: #e0f2fe; color: #0369a1; }
.cal-day.fasting{ background: #fef3c7; color: #92400e; }
.cal-day.missed { background: #fee2e2; color: #991b1b; }
.cal-day.header-day { background: transparent; color: #9ca3af; font-size: 0.72rem; cursor: default; }

/* ─── صفحة الملف الصحي (Profile) ─────────────────── */
.profile-page { padding: 80px 0 60px; min-height: 100vh; background: #f8faf9; }

.profile-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  border: 1px solid transparent;
}
.profile-alert-success { background:#d1fae5; border-color:#6ee7b7; color:#065f46; }
.profile-alert-error { background:#fee2e2; border-color:#fca5a5; color:#991b1b; }

.profile-hero {
  background: linear-gradient(135deg, var(--nt-green-dark), var(--nt-green));
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: var(--nt-shadow);
}
.profile-hero-user { display: flex; align-items: center; gap: 14px; }
.profile-hero-user h1 { color:#fff; font-size:1.4rem; margin:0 0 4px; }
.profile-hero-user p { color:rgba(255,255,255,0.85); margin:0; font-size:0.9rem; }
.profile-program-chip {
  margin-top: 10px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
}
.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.profile-mini-stat {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px;
}
.profile-mini-stat span { display:block; font-size:0.75rem; color:rgba(255,255,255,0.8); }
.profile-mini-stat strong { display:block; font-size:0.95rem; color:#fff; margin-top:4px; }


.profile-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--nt-shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(45,106,79,0.06);
  max-width: 720px;
  margin: 0 auto;
}

.profile-card-header {
  background: linear-gradient(135deg, var(--nt-green-dark), var(--nt-green));
  padding: 32px;
  color: #fff;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 14px;
}
.profile-logo-icon {
  width: 56px;
  height: 56px;
  margin: 0;
  box-shadow: none;
}

.profile-card-header h2 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.profile-card-header p  { color: rgba(255,255,255,0.75); font-size: 0.88rem; }

.profile-card-body { padding: 32px; }
.bmi-meta { font-size:0.8rem;color:#6b7280;margin-top:3px; }
.profile-submit-wrap { margin-top:28px; }
.profile-save-btn { width:100%; justify-content:center; }


/* BMI عرض */
.bmi-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.bmi-display.normal    { background: var(--nt-green-bg); }
.bmi-display.overweight{ background: var(--nt-gold-bg); }
.bmi-display.obese     { background: var(--nt-red-bg); }

.bmi-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.bmi-display.normal     .bmi-value { color: var(--nt-green); }
.bmi-display.overweight .bmi-value { color: var(--nt-gold-dark); }
.bmi-display.obese      .bmi-value { color: var(--nt-red); }

/* ─── شريط التنقل للداشبورد ──────────────────────── */
.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #fff;
  padding: 4px;
  border-radius: 14px;
  box-shadow: var(--nt-shadow);
  margin-bottom: 28px;
  border: 1px solid rgba(45,106,79,0.06);
  /* لا تستخدم overflow-x:auto هنا — يقصّ القائمة المنسدلة لـ <details> */
  overflow: visible;
  position: sticky;
  top: 76px;
  z-index: 100;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dashboard-nav a {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: var(--nt-transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dashboard-nav a:hover  { background: #f3f4f6; color: #374151; }
.dashboard-nav a.active {
  background: var(--nt-green);
  color: #fff;
}

/* قائمة «المزيد» — تفاصيل بدون جافاسكربت */
.dashboard-nav-more {
  position: relative;
  flex-shrink: 0;
  align-self: center;
}

.dashboard-nav-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4b5563;
  background: rgba(45, 106, 79, 0.06);
  border: 1px solid rgba(45, 106, 79, 0.12);
  transition: var(--nt-transition);
  user-select: none;
}

.dashboard-nav-more > summary::-webkit-details-marker {
  display: none;
}

.dashboard-nav-more > summary:hover {
  background: rgba(45, 106, 79, 0.1);
  color: var(--nt-green-dark);
}

.dashboard-nav-more[open] > summary {
  background: rgba(45, 106, 79, 0.14);
  color: var(--nt-green-dark);
}

.dashboard-nav-more--contains-active > summary {
  border-color: rgba(45, 106, 79, 0.28);
  box-shadow: 0 0 0 1px rgba(45, 106, 79, 0.12);
}

.dashboard-nav-more__chev {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.dashboard-nav-more[open] .dashboard-nav-more__chev {
  transform: rotate(-180deg);
}

.dashboard-nav-more__panel {
  position: absolute;
  z-index: 2000;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: min(100vw - 40px, 260px);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 79, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 48px -12px rgba(27, 67, 50, 0.22);
}

.dashboard-nav-more__panel a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--nt-transition);
}

.dashboard-nav-more__panel a:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.dashboard-nav-more__panel a.active {
  background: var(--nt-green);
  color: #fff;
}

.dashboard-nav-restart {
  flex-shrink: 0;
  margin-inline-start: auto;
  align-self: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--nt-transition);
}

.dashboard-nav-restart:hover {
  color: #6b7280;
  background: #f9fafb;
}

.dashboard-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(45, 106, 79, 0.06) 0%, transparent 52%),
    radial-gradient(80% 100% at 100% 100%, rgba(212, 160, 23, 0.06) 0%, transparent 48%),
    linear-gradient(168deg, #ffffff 0%, #f6fbf8 42%, #eef6f1 100%);
  border: 1px solid rgba(45, 106, 79, 0.14);
  border-radius: 24px;
  padding: 22px 24px 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 44px -18px rgba(27, 67, 50, 0.22);
}

.dashboard-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -32deg,
    rgba(45, 106, 79, 0.03) 0 1px,
    transparent 1px 14px
  );
  pointer-events: none;
  opacity: 0.35;
  border-radius: inherit;
}

.dashboard-hero-top {
  position: relative;
  z-index: 1;
}

.dashboard-hero-card .dashboard-header {
  margin-bottom: 0;
  align-items: flex-start;
  gap: 20px 24px;
}

.dashboard-hero-side {
  flex-shrink: 0;
}

.dashboard-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 106, 79, 0.14);
  box-shadow: 0 2px 14px rgba(27, 67, 50, 0.07);
  max-width: min(280px, 100%);
}

.dashboard-program-pill__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.dashboard-program-pill__text {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--nt-green-dark);
  line-height: 1.35;
}

.dashboard-hero-progress {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 106, 79, 0.1);
}

.dashboard-hero-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dashboard-hero-progress-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: none;
}

.dashboard-hero-progress-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--nt-green);
  font-variant-numeric: tabular-nums;
}

.dashboard-hero-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.1);
  overflow: hidden;
}

.dashboard-hero-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nt-green) 0%, #40916c 50%, var(--nt-gold-dark) 100%);
  transition: width 0.45s ease;
}

.dashboard-top-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(45, 106, 79, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: #1e3d2f;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--nt-transition);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.dashboard-chip__ic {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.dashboard-chip__tx {
  line-height: 1.25;
}

.dashboard-chip:hover {
  background: var(--nt-green);
  color: #fff;
  border-color: var(--nt-green);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.22);
}

.dashboard-chip--accent {
  border-color: rgba(212, 160, 23, 0.45);
  background: linear-gradient(135deg, #fffbeb, #fef9e7);
}

.dashboard-chip--accent:hover {
  background: linear-gradient(135deg, var(--nt-gold-dark), #b8860b);
  border-color: var(--nt-gold-dark);
  color: #fff;
}

.dashboard-soft-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 24px rgba(27,67,50,0.08);
  border: 1px solid rgba(45,106,79,0.08);
}

.dashboard-soft-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.dashboard-soft-muted {
  margin: 4px 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.dashboard-soft-link {
  margin: 10px 0 0;
}

.dashboard-soft-link a {
  color: #2D6A4F;
  font-weight: 700;
  text-decoration: none;
}

/* بطاقة Web Push — لوحة اليوم */
.nt-push-opt-in-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 22px;
  border: 1px solid rgba(45, 106, 79, 0.14);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(45, 106, 79, 0.07) 0%, transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f4fbf7 50%, #ecfdf5 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 36px -20px rgba(27, 67, 50, 0.2);
}

.nt-push-opt-in-card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -70px;
  left: -50px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.nt-push-opt-in-card__inner {
  position: relative;
  z-index: 1;
  padding: 20px 22px 18px;
}

.nt-push-opt-in-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.nt-push-opt-in-card__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.06);
}

.nt-push-opt-in-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nt-green-dark);
  letter-spacing: -0.02em;
}

.nt-push-opt-in-card__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #475569;
}

.nt-push-opt-in-card__warn {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #b45309;
  line-height: 1.65;
}

.nt-push-opt-in-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.nt-push-btn-primary {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--nt-green) 0%, #1e5c3e 100%);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-family: inherit;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.28);
  transition: var(--nt-transition);
}

.nt-push-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(45, 106, 79, 0.32);
}

.nt-push-opt-in-card__status {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #059669;
  line-height: 1.5;
  flex: 1;
  min-width: 160px;
}

.nt-push-opt-in-card__hint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ملخص الحساب — صفوف تعريف */
.dashboard-account-card {
  padding: 0;
  overflow: hidden;
}

.dashboard-account-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(45, 106, 79, 0.08);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.65) 0%, transparent 100%);
}

.dashboard-account-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: 0 2px 10px rgba(27, 67, 50, 0.05);
}

.dashboard-soft-card.dashboard-account-card h3.dashboard-account-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nt-green-dark);
}

.dashboard-account-card__sub {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.dashboard-kv {
  margin: 0;
  padding: 6px 20px 4px;
}

.dashboard-kv__row {
  display: grid;
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  align-items: baseline;
}

.dashboard-kv__row:last-of-type {
  border-bottom: none;
}

.dashboard-kv dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: none;
}

.dashboard-kv dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

.dashboard-kv__ltr {
  text-align: right;
  unicode-bidi: plaintext;
}

.dashboard-account-card__foot {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(45, 106, 79, 0.08);
  background: rgba(248, 250, 252, 0.6);
}

.dashboard-account-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nt-green);
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 10px;
  transition: var(--nt-transition);
}

.dashboard-account-card__cta:hover {
  color: var(--nt-green-dark);
  background: rgba(45, 106, 79, 0.06);
}

.achievement-card {
  background: linear-gradient(145deg,#f0fdf4,#ecfdf5);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #bbf7d0;
}

.achievement-list {
  margin: 0;
  padding: 0 18px 0 0;
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.9;
}

/* بطاقة رؤية اليوم — المساعد الذكي */
.ai-insight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 38%, #f0fdf9 100%);
  border-radius: 22px;
  padding: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 40px -22px rgba(30, 64, 175, 0.12),
    0 8px 28px -18px rgba(27, 67, 50, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.ai-insight-card--daily::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0d9488, var(--nt-green));
  opacity: 0.95;
}

.ai-insight-card__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 72%);
  pointer-events: none;
}

.ai-insight-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.ai-insight-card__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 12px rgba(30, 64, 175, 0.08);
}

.ai-insight-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nt-green-dark);
  letter-spacing: -0.02em;
}

.ai-insight-card__meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.5;
}

.ai-insight-card__panel {
  position: relative;
  z-index: 1;
  padding: 16px 20px 10px;
  min-height: 120px;
}

.ai-insight-tagline {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9), rgba(236, 253, 245, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-right: 4px solid var(--nt-green);
}

.ai-insight-tagline[hidden] {
  display: none !important;
}

.ai-insight-body-wrap {
  position: relative;
}

.ai-insight-body {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.9;
  font-weight: 500;
}

.ai-insight-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.75);
}

.ai-insight-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--nt-green);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(45, 106, 79, 0.2);
  background: rgba(255, 255, 255, 0.9);
  transition: var(--nt-transition);
}

.ai-insight-card__link:hover {
  background: var(--nt-green);
  color: #fff;
  border-color: var(--nt-green);
}

.ai-insight-card__hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.4;
}

/* تحميل الرؤية اليومية */
.ai-insight-card.is-loading .ai-insight-body {
  color: #64748b;
}

.ai-insight-card.is-loading .ai-insight-body-wrap::after {
  display: none;
}

@keyframes ai-insight-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ai-insight-card.is-loading .ai-insight-body-wrap::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(
    90deg,
    rgba(226, 232, 240, 0.4) 0%,
    rgba(148, 163, 184, 0.45) 40%,
    rgba(226, 232, 240, 0.4) 80%
  );
  background-size: 200% 100%;
  animation: ai-insight-shimmer 1.2s ease-in-out infinite;
}

.ai-insight-card.is-error {
  border-color: rgba(251, 191, 36, 0.55);
}

.ai-insight-card.is-error::before {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.dashboard-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.sidebar-card-lite {
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 4px 24px rgba(27,67,50,0.08);
  border:1px solid rgba(45,106,79,0.08);
}

.sidebar-card-lite h3 {
  font-size:0.92rem;
  font-weight:700;
  color:#374151;
  margin-bottom:10px;
}

.sidebar-list {
  margin:0;
  padding:0 16px 0 0;
  color:#4b5563;
  font-size:0.84rem;
  line-height:1.9;
}

.rescue-card {
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:18px;
  padding:18px;
}

.rescue-card h3 {
  font-size:0.92rem;
  font-weight:700;
  color:#9a3412;
  margin-bottom:8px;
}

.rescue-body {
  font-size:0.83rem;
  color:#7c2d12;
  line-height:1.8;
}

.vision-card {
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 4px 24px rgba(27,67,50,0.08);
  border:1px solid rgba(45,106,79,0.06);
  margin-bottom:16px;
}

.vision-form {
  display: grid;
  gap: 8px;
}

.vision-form .btn-block-vision {
  width: 100%;
  justify-content: center;
}

.vision-input {
  width:100%;
  padding:8px;
  border:1px solid #e5e7eb;
  border-radius:8px;
}

.vision-result {
  font-size:0.82rem;
  color:#4b5563;
  margin-top:8px;
}

.progress-quick-links {
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.progress-quick-link {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:#f8faf9;
  border-radius:10px;
  text-decoration:none;
  color:#374151;
  font-size:0.85rem;
  font-weight:600;
  transition:background 0.2s;
}

.rules-card {
  background:#fff;
  border-radius:18px;
  padding:20px;
  box-shadow:0 4px 24px rgba(27,67,50,0.08);
  border:1px solid rgba(45,106,79,0.06);
}

.rules-list {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rules-list li {
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:0.83rem;
  color:#6b7280;
}

/* ─── صفحة البدء (Nutrition Landing) ──────────────── */
.nutrition-landing { overflow-x: hidden; }

.nl-hero {
  background: linear-gradient(135deg, var(--nt-green-dark) 0%, var(--nt-green) 60%, #1a5c40 100%);
  padding: 100px 0 80px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(212,160,23,0.15) 0%, transparent 70%);
}

.nl-hero-content { position: relative; z-index: 1; }
.nl-hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; color: #fff; }
.nl-hero h1 span { color: var(--nt-gold-light); }
.nl-hero p  { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; }

.nl-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.nl-hero .btn-start {
  background: var(--nt-gold);
  color: var(--nt-green-dark);
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 16px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--nt-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nl-hero .btn-start:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(212,160,23,0.35); }

/* ─── بطاقات ميزات النظام ────────────────────────── */
.nl-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.nl-feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--nt-shadow);
  border: 1px solid rgba(45,106,79,0.06);
  transition: var(--nt-transition);
}

.nl-feature-card:hover { transform: translateY(-4px); box-shadow: var(--nt-shadow-lg); }
.nl-feature-card .f-icon { font-size: 2rem; margin-bottom: 12px; }
.nl-feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--nt-green-dark); margin-bottom: 6px; }
.nl-feature-card p  { font-size: 0.85rem; color: #6b7280; line-height: 1.6; }

/* ─── إشعار Push (نافذة الإذن) ─────────────────── */
.push-permission-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--nt-green-dark);
  color: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  animation: slide-up 0.4s ease;
}

@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.push-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.push-banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.push-banner-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.push-banner-text p  { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

.push-banner-actions { display: flex; gap: 10px; }

.btn-allow-push {
  flex: 1;
  background: var(--nt-gold);
  color: var(--nt-green-dark);
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--nt-transition);
}

.btn-allow-push:hover { background: var(--nt-gold-light); }

.btn-dismiss-push {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--nt-transition);
}

.btn-dismiss-push:hover { background: rgba(255,255,255,0.15); }

/* ─── حالة عدم وجود خطة ─────────────────────────── */
.empty-plan-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-plan-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-plan-state h3 { font-size: 1.2rem; color: var(--nt-green-dark); margin-bottom: 8px; }

.empty-plan-state--card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
  max-width: 520px;
  margin-inline: auto;
}

.empty-plan-state--card p {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── هيكل تحميل بطاقة AI (أشرطة) ───────────────── */
.ai-insight-skeleton {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 4px;
}

.ai-insight-card.is-loading .ai-insight-skeleton {
  display: flex;
}

.ai-insight-card.is-loaded .ai-insight-skeleton,
.ai-insight-card.is-error .ai-insight-skeleton {
  display: none !important;
}

.ai-insight-skeleton__bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e2e8f0 0%,
    #f1f5f9 35%,
    #cbd5e1 50%,
    #f1f5f9 65%,
    #e2e8f0 100%
  );
  background-size: 200% 100%;
  animation: ai-insight-shimmer 1.35s ease-in-out infinite;
}

.ai-insight-skeleton__bar--w100 { width: 100%; }
.ai-insight-skeleton__bar--w92 { width: 92%; }
.ai-insight-skeleton__bar--w78 { width: 78%; }
.ai-insight-skeleton__bar--w65 { width: 65%; }

.ai-insight-card.is-loading .ai-insight-body-wrap::before {
  display: none;
}

.ai-insight-card.is-loading .ai-insight-body {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-insight-card.is-loaded .ai-insight-body,
.ai-insight-card.is-error .ai-insight-body {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ─── Toast إشعارات ─────────────────────────────── */
.nt-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--nt-green-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.nt-toast.success { background: var(--nt-green); }
.nt-toast.error   { background: #dc2626; }
.nt-toast.warning { background: var(--nt-gold-dark); }

/* ─── رأس صفحات لوحة التحكم الموحّد ───────────────── */
.dashboard-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
}

.dashboard-page-header__main {
  flex: 1;
  min-width: min(100%, 280px);
}

.dashboard-page-header__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--nt-green-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.dashboard-page-header__sub {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 52ch;
}

.dashboard-page-header__actions {
  flex-shrink: 0;
}

.dashboard-page-header__btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page-header__btn {
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ─── لوحة اليوم: روابط سطرية + عمود جانبي مضغوط ─── */
.dashboard-inline-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 106, 79, 0.1);
  font-size: 0.84rem;
}

.dashboard-inline-quick__title {
  font-weight: 800;
  color: var(--nt-green-dark);
  margin-inline-end: 4px;
}

.dashboard-inline-quick a {
  color: var(--nt-green);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(45, 106, 79, 0.35);
}

.dashboard-inline-quick a:hover {
  color: var(--nt-green-dark);
  border-bottom-color: var(--nt-green-dark);
}

.dashboard-inline-quick__sep {
  color: #cbd5e1;
  user-select: none;
}

.dashboard-grid--today {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 22px 24px;
}

@media (max-width: 900px) {
  .dashboard-grid--today {
    grid-template-columns: 1fr;
  }
}

.dashboard-today-aside {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(45, 106, 79, 0.1);
  box-shadow: 0 8px 28px -14px rgba(27, 67, 50, 0.15);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 140px;
}

@media (max-width: 900px) {
  .dashboard-today-aside {
    position: static;
  }
}

.dashboard-today-aside__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nt-green-dark);
}

.dashboard-today-aside__metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-today-aside__metric {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.compliance-ring--compact {
  padding: 8px 0 4px;
}

.dashboard-today-aside__more-h {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.dashboard-today-aside__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-today-aside__nav a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--nt-green);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(45, 106, 79, 0.06);
  transition: var(--nt-transition);
}

.dashboard-today-aside__nav a:hover {
  background: rgba(45, 106, 79, 0.12);
  color: var(--nt-green-dark);
}

.dashboard-today-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-today-more-card {
  margin: 0;
}

.dashboard-today-more-back {
  margin: 0 0 40px;
}

.dashboard-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
}

.dashboard-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-tools-vision {
  max-width: 100%;
}

.dashboard-notifications-lead {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  max-width: 56ch;
}

.dashboard-notifications-profile {
  margin: 0 0 20px;
}

.dashboard-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .dashboard-account-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-account-card__foot--row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-account-card__foot--row .btn {
  flex: 1 1 auto;
  min-width: 140px;
  justify-content: center;
}

.dashboard-inline-link {
  color: var(--nt-green);
  font-weight: 700;
  text-decoration: none;
}

.dashboard-inline-link:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .onboarding-card-header { padding: 24px 20px 20px; }
  .onboarding-card-body   { padding: 20px; }
  .onboarding-actions     { flex-direction: column-reverse; }
  .btn-next, .btn-back    { width: 100%; justify-content: center; }
  .radio-cards            { grid-template-columns: 1fr 1fr; }
  .program-cards          { grid-template-columns: 1fr; }
  .nl-hero h1             { font-size: 1.8rem; }
  .dashboard-header       { flex-direction: column; align-items: flex-start; }
  .dashboard-page-header  { flex-direction: column; align-items: flex-start; }
  .dashboard-page-header__actions { width: 100%; }
  .dashboard-page-header__btnrow  { width: 100%; }
  .dashboard-hero-side     { width: 100%; }
  .dashboard-program-pill {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }
  .dashboard-top-actions   { grid-template-columns: 1fr 1fr; }
  .dashboard-nav-more__panel {
    inset-inline-start: 0;
    inset-inline-end: auto;
  }
  .meals-card-header      { flex-direction: column; gap: 8px; align-items: flex-start; }
  .profile-hero { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .dashboard-top-actions { grid-template-columns: 1fr; }
  .dashboard-kv__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .nt-push-opt-in-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nt-push-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .ai-insight-card__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .ai-insight-card__link {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   تطوير لوحة التحكم — Dashboard v2 Modern  (إضافة 2026)
   ══════════════════════════════════════════════════════════════ */

/* ── Hero Card محسَّن ─────────────────────────────────────── */
.dashboard-hero-card {
  border-radius: 28px !important;
  padding: 26px 28px 22px !important;
  background:
    radial-gradient(ellipse 70% 80% at 0% -10%, rgba(45,106,79,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 110%, rgba(212,160,23,0.08) 0%, transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f3fbf6 50%, #eaf5ee 100%) !important;
}

/* ── شريط التنقل ─────────────────────────────────────────── */
.dashboard-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(45,106,79,0.13);
  border-radius: 18px;
  box-shadow: 0 4px 20px -8px rgba(27,67,50,0.14), 0 1px 0 rgba(255,255,255,0.9) inset;
}

.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.dashboard-nav a:hover {
  background: rgba(45,106,79,0.08);
  color: var(--nt-green-dark);
  border-color: rgba(45,106,79,0.12);
}

.dashboard-nav a.active {
  background: var(--nt-green);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px -4px rgba(45,106,79,0.45);
}

.dashboard-nav-restart {
  margin-inline-start: auto;
  font-size: 0.8rem !important;
  color: #9ca3af !important;
  padding: 7px 12px !important;
  border: 1px dashed rgba(156,163,175,0.5) !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

.dashboard-nav-restart:hover {
  color: var(--nt-red) !important;
  border-color: rgba(231,76,60,0.35) !important;
  background: rgba(231,76,60,0.05) !important;
}

/* ── بطاقات الإحصائيات ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.stat-card {
  border-radius: 22px !important;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease !important;
  cursor: default;
  will-change: transform;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 40px -12px rgba(27,67,50,0.26) !important;
}

.stat-card:active {
  transform: translateY(-2px) scale(0.99) !important;
}

.stat-value {
  font-size: clamp(1.65rem,3.5vw,2.1rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
}

/* ── بطاقة الوجبات ──────────────────────────────────────── */
.meals-card {
  border-radius: 22px !important;
}

.meal-item {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(45,106,79,0.08);
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: 10px;
}

.meal-item:last-child {
  margin-bottom: 0;
}

.meal-item:hover {
  border-color: rgba(45,106,79,0.18);
  box-shadow: 0 4px 16px -6px rgba(27,67,50,0.14);
}

.meal-item.has-completed {
  border-color: rgba(82,183,136,0.30);
  background: linear-gradient(135deg,#f0fdf4,#ecfdf5);
}

/* ── زر إكمال الوجبة (محسَّن) ──────────────────────────── */
.meal-complete-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
  flex-shrink: 0;
  position: relative;
  outline: none;
}

/* الـ checkmark SVG داخل الزر */
.meal-complete-btn::after {
  content: '';
  display: block;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid #d1d5db;
  border-bottom: 2.5px solid #d1d5db;
  transform: rotate(-45deg) translateY(-2px);
  transition: border-color 0.22s ease;
}

.meal-complete-btn:hover {
  border-color: var(--nt-green);
  background: rgba(45,106,79,0.06);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(45,106,79,0.10);
}

.meal-complete-btn:hover::after {
  border-color: var(--nt-green);
}

.meal-complete-btn:active {
  transform: scale(0.94);
}

.meal-complete-btn.completed {
  background: var(--nt-green) !important;
  border-color: var(--nt-green) !important;
  box-shadow: 0 4px 14px -4px rgba(45,106,79,0.50) !important;
  animation: nt-pop-check 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

.meal-complete-btn.completed::after {
  border-color: #fff !important;
}

@keyframes nt-pop-check {
  0%   { transform: scale(0.7); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ── الشريط الجانبي ─────────────────────────────────────── */
.dashboard-today-aside {
  border-radius: 22px !important;
  background: linear-gradient(160deg,#ffffff 0%,#f4fbf7 60%,#ecfdf5 100%) !important;
  border: 1px solid rgba(45,106,79,0.12) !important;
  padding: 22px 20px !important;
}

/* ── بطاقة Push Notifications ───────────────────────────── */
.nt-push-opt-in-card {
  border-radius: 22px !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
}

.nt-push-opt-in-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px !important;
}

.nt-push-opt-in-card__header {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0 !important;
  gap: 12px !important;
}

.nt-push-opt-in-card__badge {
  font-size: 2rem !important;
  flex-shrink: 0;
  animation: nt-pulse-bell 2.5s ease-in-out infinite;
}

@keyframes nt-pulse-bell {
  0%, 100% { transform: rotate(0deg); }
  10%       { transform: rotate(12deg); }
  20%       { transform: rotate(-8deg); }
  30%       { transform: rotate(8deg); }
  40%       { transform: rotate(0deg); }
}

.nt-push-btn-primary {
  padding: 11px 24px !important;
  border-radius: 14px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--nt-green) 0%, #40916c 100%) !important;
  box-shadow: 0 4px 16px -6px rgba(45,106,79,0.50) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nt-push-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px -6px rgba(45,106,79,0.55) !important;
}

.nt-push-opt-in-card__actions {
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap;
}

/* ── Skeleton Loader شامل ──────────────────────────────── */
@keyframes nt-shimmer {
  0%   { background-position: -900px 0; }
  100% { background-position: 900px 0; }
}

.nt-skeleton {
  background: linear-gradient(90deg, #f0f4f2 25%, #e8eeea 50%, #f0f4f2 75%);
  background-size: 900px 100%;
  animation: nt-shimmer 1.6s ease-in-out infinite;
  border-radius: 10px;
  display: block;
}

/* الهيكل العظمي لبطاقة الوجبة */
.meal-item--loading {
  background: linear-gradient(90deg, #f0f4f2 25%, #e6ede9 50%, #f0f4f2 75%);
  background-size: 900px 100%;
  animation: nt-shimmer 1.6s ease-in-out infinite;
  border-color: transparent !important;
  min-height: 72px;
  border-radius: 16px;
}

/* هيكل بطاقة الإحصائية */
.stat-card--skeleton .stat-card__inner {
  padding: 18px;
}
.stat-card--skeleton .stat-card__iconwrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.stat-card--skeleton .stat-value,
.stat-card--skeleton .stat-label,
.stat-card--skeleton .stat-card__iconwrap {
  background: linear-gradient(90deg, #f0f4f2 25%, #e6ede9 50%, #f0f4f2 75%);
  background-size: 900px 100%;
  animation: nt-shimmer 1.6s ease-in-out infinite;
  color: transparent !important;
  border-radius: 8px;
  user-select: none;
}

/* الـ loading overlay للداشبورد */
#nt-dashboard-loading {
  position: fixed;
  inset: 0;
  background: rgba(248,250,249,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 8888;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.4s ease;
}

#nt-dashboard-loading.nt-hidden {
  opacity: 0;
  pointer-events: none;
}

.nt-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(45,106,79,0.15);
  border-top-color: var(--nt-green);
  border-radius: 50%;
  animation: nt-spin 0.8s linear infinite;
}

@keyframes nt-spin {
  to { transform: rotate(360deg); }
}

.nt-spinner-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nt-green-dark);
  letter-spacing: 0.01em;
}

/* ── بطاقة Quick Actions حديثة ──────────────────────────── */
.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
  gap: 10px;
  margin-top: 14px;
}

.dashboard-quick-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(45,106,79,0.10);
  text-decoration: none;
  color: #1e3d2f;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px -4px rgba(27,67,50,0.12);
}

.dashboard-quick-chip__ic {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}

.dashboard-quick-chip {
  will-change: transform;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.dashboard-quick-chip:hover {
  background: var(--nt-green);
  color: #fff;
  border-color: var(--nt-green);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px -8px rgba(45,106,79,0.45);
}

.dashboard-quick-chip:active {
  transform: translateY(-1px) scale(0.97);
}

.dashboard-quick-chip--gold {
  background: linear-gradient(135deg, #fffbeb, #fef9e7);
  border-color: rgba(212,160,23,0.30);
}

.dashboard-quick-chip--gold:hover {
  background: linear-gradient(135deg, var(--nt-gold-dark), #a07710);
  border-color: var(--nt-gold-dark);
  color: #fff;
}

/* ── بطاقة Streak ────────────────────────────────────────── */
.dash-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffbeb, #fef9e7);
  border: 1px solid rgba(212,160,23,0.35);
  font-size: 0.88rem;
  font-weight: 800;
  color: #92400e;
}

.dash-streak-badge__fire {
  font-size: 1.1rem;
}

/* ── Responsive v2 ──────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-quick-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .dashboard-nav { gap: 2px; padding: 4px; }
  .dashboard-nav a { padding: 8px 12px; font-size: 0.82rem; }
  .nt-push-opt-in-card__inner { flex-direction: column; align-items: flex-start; }
  .dashboard-quick-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dashboard-nav a { padding: 7px 10px; font-size: 0.78rem; }
}
