@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* تعريفات الخطوط المضمنة لضمان التحميل الفوري في الكانفاس */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/tajawal/v12/Iurf6YBj_oCad4k1l5qjLrY.ttf) format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/tajawal/v12/Iura6YBj_oCad4k1rzY.ttf) format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/tajawal/v12/Iurf6YBj_oCad4k1l8KiLrY.ttf) format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/tajawal/v12/Iurf6YBj_oCad4k1l4qkLrY.ttf) format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/tajawal/v12/Iurf6YBj_oCad4k1l5anLrY.ttf) format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/tajawal/v12/Iurf6YBj_oCad4k1l7KmLrY.ttf) format('truetype');
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/almarai/v19/tssoApxBaigK_hnnS-aghng.ttf) format('truetype');
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/almarai/v19/tssoApxBaigK_hnnS_qjhng.ttf) format('truetype');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8L6tjPQ.ttf) format('truetype');
}

/* ======================================================
   إيجاز | قالب إنفوجرافيك «المتبقي من أيامك المهمة»
   Eyjaz Master Infographic Card Design
   ====================================================== */

/* خطوط الأرقام والنصوص */
.en-num,
.hero-payout-num,
.card-payout-num,
.date-digits {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  direction: ltr !important;
  display: inline-block;
  unicode-bidi: isolate;
}

/* حاوية الصفحة */
.countdown-page-container {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 2rem) 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(51, 177, 201, 0.08) 0%, transparent 60%), var(--bg-primary);
}

/* الحاوية التفاعلية للأدوات وتوسيطها في الصفحة */
.tool-interactive-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.eyjaz-poster-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* شريط التحكم العلوي والأزرار */
.top-action-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  z-index: 10;
}

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00A3C4 0%, #33B1C9 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 163, 196, 0.35);
  transition: all 0.25s ease;
}

.btn-download-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 163, 196, 0.55);
}

.btn-download-hero.btn-scale-4k-hero {
  background: linear-gradient(135deg, #FF6B00 0%, #E11D48 50%, #7C3AED 100%);
  box-shadow: 0 4px 22px rgba(225, 29, 72, 0.4);
}

.btn-download-hero.btn-scale-4k-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.65);
}

[data-theme="dark"] .btn-download-hero.btn-scale-4k-hero {
  background: linear-gradient(135deg, #FF7A00 0%, #F43F5E 50%, #8B5CF6 100%);
  box-shadow: 0 4px 24px rgba(244, 63, 94, 0.45);
}

[data-theme="dark"] .btn-download-hero.btn-scale-4k-hero:hover {
  box-shadow: 0 8px 34px rgba(244, 63, 94, 0.7);
}

.btn-download-hero.btn-scale-3-hero {
  background: linear-gradient(135deg, #4F46E5 0%, #00A3C4 100%);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
}

.btn-download-hero.btn-scale-3-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.55);
}

[data-theme="dark"] .btn-download-hero.btn-scale-3-hero {
  background: linear-gradient(135deg, #6366F1 0%, #33B1C9 100%);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-download-hero.btn-scale-3-hero:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
}

.btn-share-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
  transition: all 0.25s ease;
}

.btn-share-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.55);
}

/* ======================================================
   حالة التصدير الفائقة (Master Geometry Export Lock)
   تثبيت هندسي مطلق (580x1031 للـ 9:16 أو 580x725 للـ 4:5)
   يمنع نهائياً اقتطاع الكرت أو تأثره بأبعاد شاشات الهواتف المحمولة
   ====================================================== */
.eyjaz-poster-card.is-exporting {
  width: 580px !important;
  min-width: 580px !important;
  max-width: 580px !important;
  height: 1031px !important;
  min-height: 1031px !important;
  max-height: 1031px !important;
  aspect-ratio: 9 / 16 !important;
  padding: 28px 16px !important;
  border-radius: 32px !important;
  box-sizing: border-box !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: #FFFFFF !important;
}

[data-theme="dark"] .eyjaz-poster-card.is-exporting {
  background: #0C0C0C !important;
}

.eyjaz-poster-card.is-exporting.is-wide-mode {
  height: 725px !important;
  min-height: 725px !important;
  max-height: 725px !important;
  aspect-ratio: 4 / 5 !important;
  padding: 24px 16px !important;
}

.eyjaz-poster-card.is-exporting .crop-corner {
  display: none !important;
}

/* تثبيت النطاق الآمن الداخلي أثناء التصدير */
.eyjaz-poster-card.is-exporting .poster-safe-zone-4-5 {
  width: 100% !important;
  max-width: 532px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  gap: 8px !important;
}

.eyjaz-poster-card.is-exporting.is-wide-mode .poster-safe-zone-4-5 {
  max-width: 100% !important;
}

/* ترويسة الشعار */
.eyjaz-poster-card.is-exporting .poster-top-brand {
  margin: 0 0 8px 0 !important;
  display: block !important;
  text-align: center !important;
}

.eyjaz-poster-card.is-exporting .poster-logo-img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* الإطار الداخلي المتكامل */
.eyjaz-poster-card.is-exporting .poster-inner-frame {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 24px 16px 14px !important;
  border-radius: 24px !important;
  border: 2px solid #33B1C9 !important;
  margin: 0 0 12px 0 !important;
  position: relative !important;
  background: transparent !important;
}

/* عنوان اليوم والأيقونة العائمة */
.eyjaz-poster-card.is-exporting .floating-calendar-badge {
  width: 44px !important;
  height: 44px !important;
  top: -22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.eyjaz-poster-card.is-exporting .floating-calendar-badge svg {
  width: 22px !important;
  height: 22px !important;
}

.eyjaz-poster-card.is-exporting .poster-main-heading {
  margin-top: 4px !important;
  margin-bottom: 12px !important;
  text-align: center !important;
}

.eyjaz-poster-card.is-exporting .heading-black {
  font-size: 32px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

/* صف بطاقات التواريخ والراتب */
.eyjaz-poster-card.is-exporting .poster-dates-row {
  display: grid !important;
  grid-template-columns: 1.15fr 1.25fr 1.15fr !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.eyjaz-poster-card.is-exporting .date-pill-box {
  min-height: 130px !important;
  padding: 10px 6px 8px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.eyjaz-poster-card.is-exporting .date-icon-circle {
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto 4px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.eyjaz-poster-card.is-exporting .date-icon-circle svg {
  width: 17px !important;
  height: 17px !important;
}

.eyjaz-poster-card.is-exporting .date-type-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
}

.eyjaz-poster-card.is-exporting .date-digits-formatted {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  margin-bottom: 2px !important;
}

.eyjaz-poster-card.is-exporting .date-sub-label {
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.eyjaz-poster-card.is-exporting .hero-counter-box {
  min-height: 130px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
}

.eyjaz-poster-card.is-exporting .hero-counter-header {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.eyjaz-poster-card.is-exporting .hero-counter-body {
  padding: 6px 6px !important;
}

.eyjaz-poster-card.is-exporting .hero-payout-label,
.eyjaz-poster-card.is-exporting .hero-payout-text {
  font-size: 15px !important;
  font-weight: 800 !important;
  gap: 6px !important;
  margin-bottom: 2px !important;
}

.eyjaz-poster-card.is-exporting .hero-payout-num {
  font-size: 34px !important;
  font-weight: 900 !important;
  margin: 0 auto 2px auto !important;
}

.eyjaz-poster-card.is-exporting .hero-payout-unit {
  font-size: 12px !important;
}

.eyjaz-poster-card.is-exporting .hero-payout-icon {
  width: 24px !important;
  height: 24px !important;
}

.eyjaz-poster-card.is-exporting .hero-payout-icon svg {
  width: 15px !important;
  height: 15px !important;
}

/* شبكة بطاقات الصرف المصغرة */
.eyjaz-poster-card.is-exporting .payout-cards-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

.eyjaz-poster-card.is-exporting .cards-row-two {
  display: contents !important;
}

.eyjaz-poster-card.is-exporting .mini-payout-card {
  padding: 8px 12px !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.eyjaz-poster-card.is-exporting .card-title-text {
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

.eyjaz-poster-card.is-exporting .card-payout-num {
  font-size: 20px !important;
  font-weight: 900 !important;
}

.eyjaz-poster-card.is-exporting .card-unit-label {
  font-size: 11px !important;
}

.eyjaz-poster-card.is-exporting .card-icon-circle {
  width: 28px !important;
  height: 28px !important;
  margin-right: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.eyjaz-poster-card.is-exporting .card-icon-circle svg,
.eyjaz-poster-card.is-exporting .saudi-flag-circle-img {
  width: 16px !important;
  height: 16px !important;
}

/* شريط التواصل السفلي */
.eyjaz-poster-card.is-exporting .poster-social-bottom {
  margin: 10px auto 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 !important;
  width: 100% !important;
}

.eyjaz-poster-card.is-exporting .poster-handle-text {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.eyjaz-poster-card.is-exporting .poster-social-icons {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
}

.eyjaz-poster-card.is-exporting .poster-social-circle {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.eyjaz-poster-card.is-exporting .poster-social-circle svg {
  width: 14px !important;
  height: 14px !important;
}



/* ======================================================
   بطاقة إنفوجرافيك إيجاز الرئيسية (The Master Card)
   ====================================================== */
/* ======================================================
   إطار القص اليدوي بنسبة 9:16 (Manual 9:16 Crop Guide)
   وشريط أدوات التحكم بالإطار وزوايا الكرت
   ====================================================== */
.crop-guide-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  width: 100%;
  max-width: 580px;
}

.crop-guide-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crop-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #00A3C4;
  background: rgba(0, 163, 196, 0.08);
  border: 1.5px dashed rgba(0, 163, 196, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
}

[data-theme="dark"] .crop-guide-pill {
  color: #5DE0E6;
  background: rgba(51, 177, 201, 0.12);
  border-color: rgba(93, 224, 230, 0.4);
}

.crop-guide-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-crop-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(0, 163, 196, 0.35);
  color: #1A202C;
  font-family: 'Tajawal', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.22s ease;
  user-select: none;
}

.btn-crop-action:hover {
  background: #F0F9FB;
  border-color: #00A3C4;
  color: #00A3C4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 163, 196, 0.18);
}

.btn-crop-action.active {
  background: linear-gradient(135deg, rgba(0, 163, 196, 0.18) 0%, rgba(0, 163, 196, 0.08) 100%);
  border-color: #00A3C4;
  color: #0087A3;
  box-shadow: 0 0 10px rgba(0, 163, 196, 0.25);
}

[data-theme="dark"] .btn-crop-action {
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(51, 177, 201, 0.35);
  color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-crop-action:hover {
  background: rgba(51, 177, 201, 0.18);
  border-color: #5DE0E6;
  color: #5DE0E6;
}

[data-theme="dark"] .btn-crop-action.active {
  background: linear-gradient(135deg, rgba(51, 177, 201, 0.25) 0%, rgba(51, 177, 201, 0.12) 100%);
  border-color: #5DE0E6;
  color: #5DE0E6;
  box-shadow: 0 0 12px rgba(51, 177, 201, 0.3);
}

/* زر الاقتصاص التلقائي الفوري 9:16 البارز */
.btn-crop-action.btn-auto-crop {
  background: linear-gradient(135deg, #00A3C4 0%, #0087A3 100%);
  color: #FFFFFF;
  border-color: #00A3C4;
  box-shadow: 0 4px 14px rgba(0, 163, 196, 0.35);
  font-weight: 800;
}

.btn-crop-action.btn-auto-crop:hover {
  background: linear-gradient(135deg, #05B3D6 0%, #009BB8 100%);
  border-color: #05B3D6;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 196, 0.5);
}

.btn-crop-action.btn-auto-crop:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 163, 196, 0.4);
}

[data-theme="dark"] .btn-crop-action.btn-auto-crop {
  background: linear-gradient(135deg, #33B1C9 0%, #007A93 100%);
  color: #FFFFFF;
  border-color: #33B1C9;
  box-shadow: 0 4px 18px rgba(51, 177, 201, 0.4);
}

[data-theme="dark"] .btn-crop-action.btn-auto-crop:hover {
  background: linear-gradient(135deg, #5DE0E6 0%, #008FA8 100%);
  border-color: #5DE0E6;
  color: #0C0C0C;
  box-shadow: 0 6px 22px rgba(93, 224, 230, 0.55);
}

/* زر الاقتصاص التلقائي الفوري 3K (Scale 3) الفاخر */
.btn-crop-action.btn-auto-crop-scale3 {
  background: linear-gradient(135deg, #4F46E5 0%, #00A3C4 100%);
  color: #FFFFFF;
  border-color: #4F46E5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  font-weight: 800;
}

.btn-crop-action.btn-auto-crop-scale3:hover {
  background: linear-gradient(135deg, #6366F1 0%, #05B3D6 100%);
  border-color: #6366F1;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-crop-action.btn-auto-crop-scale3:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

[data-theme="dark"] .btn-crop-action.btn-auto-crop-scale3 {
  background: linear-gradient(135deg, #6366F1 0%, #33B1C9 100%);
  color: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-crop-action.btn-auto-crop-scale3:hover {
  background: linear-gradient(135deg, #818CF8 0%, #5DE0E6 100%);
  border-color: #818CF8;
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.6);
}

/* زر التبديل بين الوضع القياسي والوضع العريض 4:5 المتوسع */
.btn-crop-action.btn-toggle-layout {
  border-color: #00A3C4;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-crop-action.btn-toggle-layout:hover {
  background: #E8F7FA;
  border-color: #0087A3;
  color: #0087A3;
}

.btn-crop-action.btn-toggle-layout.active {
  background: linear-gradient(135deg, #00A3C4 0%, #0087A3 100%);
  border-color: #00A3C4;
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(0, 163, 196, 0.35);
}

[data-theme="dark"] .btn-crop-action.btn-toggle-layout {
  border-color: rgba(51, 177, 201, 0.5);
  color: #E2E8F0;
}

[data-theme="dark"] .btn-crop-action.btn-toggle-layout:hover {
  background: rgba(51, 177, 201, 0.2);
  border-color: #5DE0E6;
  color: #5DE0E6;
}

[data-theme="dark"] .btn-crop-action.btn-toggle-layout.active {
  background: linear-gradient(135deg, #33B1C9 0%, #007A93 100%);
  border-color: #33B1C9;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(51, 177, 201, 0.45);
}

.crop-frame-box {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* علامات تحديد زوايا القص الأربع */
.crop-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #00A3C4;
  border-style: solid;
  pointer-events: none;
  z-index: 10;
  transition: border-radius 0.25s ease, opacity 0.25s ease;
}

[data-theme="dark"] .crop-corner {
  border-color: #33B1C9;
}

.crop-corner.top-right {
  top: -4px;
  right: -4px;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 6px;
}

.crop-corner.top-left {
  top: -4px;
  left: -4px;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 6px;
}

.crop-corner.bottom-right {
  bottom: -4px;
  right: -4px;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 6px;
}

.crop-corner.bottom-left {
  bottom: -4px;
  left: -4px;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 6px;
}

/* إخفاء إطار وعلامات القص */
.crop-frame-box.hide-crop-guide .crop-corner {
  display: none !important;
}

.crop-frame-box.hide-crop-guide .eyjaz-poster-card {
  border-style: solid !important;
  border-color: transparent !important;
}

.eyjaz-poster-card {
  width: 100%;
  max-width: 580px;
  background: #FFFFFF;
  border-radius: 32px;
  min-height: auto;
  aspect-ratio: 9 / 16;
  border: 2px dashed #00A3C4;
  padding: 28px 16px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 40px rgba(51, 177, 201, 0.15);
  position: relative;
  overflow: hidden;
  direction: rtl;
  color: #1A202C;
  font-family: 'Tajawal', 'Almarai', sans-serif;
  user-select: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, border-radius 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* تبديل حواف الكرت لزاوية قائمة 90 درجة */
.eyjaz-poster-card.sharp-corners,
.eyjaz-poster-card.is-exporting.sharp-corners {
  border-radius: 0px !important;
}

.crop-frame-box.sharp-corners .crop-corner {
  border-radius: 0px !important;
}

/* نطاق الأمان المركزي المخصص لنسبة 4:5 داخل الكادر 9:16 */
.poster-safe-zone-4-5 {
  width: 100%;
  max-width: 532px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  margin: 0 auto;
}

.eyjaz-poster-card::before,
.eyjaz-poster-card::after {
  display: none !important;
}

/* --- شعار الهمزة في أعلى اليسار --- */
.poster-hamza-top-left {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 72px;
  height: auto;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 16px rgba(51, 177, 201, 0.35));
}

/* ترويسة البوستر والشعار */
.poster-top-brand {
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.poster-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.poster-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.poster-brand-slogan {
  font-size: 15px;
  font-weight: 700;
  color: #1A202C;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.poster-brand-slogan .slogan-cyan {
  color: #00A3C4;
}

.slogan-hamza-dot {
  width: 14px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ======================================================
   تكيّف البوستر مع الوضع المظلم (Dark Theme Adaptation)
   ====================================================== */
[data-theme="dark"] .eyjaz-poster-card {
  background: #0C0C0C;
  border: 2px dashed #33B1C9;
  color: #FFFEFA;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(51, 177, 201, 0.15);
}

[data-theme="dark"] .poster-brand-slogan {
  color: #E2E8F0;
}

[data-theme="dark"] .poster-inner-frame {
  background: #121212;
  border-color: rgba(51, 177, 201, 0.5);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .heading-black {
  color: #FFFFFF;
}

[data-theme="dark"] .date-pill-box {
  background: #181818;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

[data-theme="dark"] .date-type-title,
[data-theme="dark"] .date-digits-formatted {
  color: #FFFEFA;
}

[data-theme="dark"] .date-icon-circle {
  background: rgba(51, 177, 201, 0.12);
  border-color: rgba(51, 177, 201, 0.35);
  color: #5DE0E6;
}

[data-theme="dark"] .hero-counter-box {
  background: #181818;
  border-color: #33B1C9;
  box-shadow: 0 4px 20px rgba(51, 177, 201, 0.25);
}

[data-theme="dark"] .hero-payout-label {
  color: #FFFEFA;
}

[data-theme="dark"] .hero-payout-unit {
  color: #E2E8F0;
}

[data-theme="dark"] .mini-payout-card {
  background: #181818;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .mini-payout-card:hover {
  border-color: #33B1C9;
  background: #1E1E1E;
}

[data-theme="dark"] .card-title-text,
[data-theme="dark"] .card-payout-num {
  color: #FFFEFA;
}

[data-theme="dark"] .card-icon-circle {
  background: rgba(51, 177, 201, 0.12);
  border-color: rgba(51, 177, 201, 0.35);
  color: #5DE0E6;
}



[data-theme="dark"] .poster-handle-text {
  color: #33B1C9;
}

[data-theme="dark"] .poster-social-circle {
  border-color: rgba(255, 255, 255, 0.25);
  color: #E2E8F0;
}

[data-theme="dark"] .poster-social-circle:hover {
  border-color: #33B1C9;
  color: #33B1C9;
}

/* ======================================================
   الحاوية المحيطة بالتقويم والمواعيد
   ====================================================== */
.poster-inner-frame {
  border: 1.8px solid #54BCD3;
  border-radius: 24px;
  padding: 22px 16px 16px;
  position: relative;
  background: #FFFFFF;
  margin-bottom: 12px;
}

/* أيقونة التقويم العائمة في أعلى الإطار */
.floating-calendar-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #00A3C4;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 163, 196, 0.35);
  z-index: 5;
}

.floating-calendar-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* عنوان "المتبقي" / اسم اليوم الرئيسي */
.poster-main-heading {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 22px;
  position: relative;
  z-index: 5;
}

.heading-black {
  font-size: 26px;
  font-weight: 900;
  color: #000000;
  margin: 0;
  line-height: 1.15;
  letter-spacing: normal !important;
  display: inline-block;
}

/* ======================================================
   شريط الأعمدة الثلاثة (هجري - بطل الصرف - ميلادي)
   ====================================================== */
.poster-dates-row {
  display: grid;
  grid-template-columns: 1.14fr 1.1fr 1.14fr;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 12px;
}

/* عمود التاريخ (ميلادي أو هجري) */
.date-pill-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 8px 4px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 114px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.date-pill-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.date-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F0F9FB;
  border: 1px solid #B8E4ED;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00A3C4;
  margin: 0 auto 4px auto;
  flex-shrink: 0;
}

.date-icon-circle svg {
  width: 17px;
  height: 17px;
  display: block;
  margin: 0 !important;
  flex-shrink: 0;
}

.date-type-title {
  font-size: 16px;
  font-weight: 800;
  color: #1A202C;
  margin-bottom: 2px;
  letter-spacing: normal !important;
  line-height: 1.2;
}

.date-digits-formatted {
  font-size: 15.5px;
  font-weight: 800;
  color: #1A202C;
  margin-bottom: 2px;
  white-space: nowrap;
  letter-spacing: 0.25px;
  line-height: 1.2;
}

.date-sub-label {
  font-size: 16px;
  font-weight: 800;
  color: #00A3C4;
  margin-top: 1px;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  line-height: 1.2;
}

/* العمود الأوسط: بطل الأيام المتبقية (Hero Counter) */
.hero-counter-box {
  border: 1.5px solid #00A3C4;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 163, 196, 0.12);
  min-height: 114px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.hero-counter-header {
  background: #00A3C4;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 6px;
  letter-spacing: normal !important;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  white-space: nowrap !important;
}

.hero-counter-header span,
.hero-header-text {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1.5px);
  white-space: nowrap !important;
  /* رفع دقيق للتعويض عن الإزاحة الرأسية للخطوط العربية */
}

.hero-counter-body {
  padding: 8px 4px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-payout-label,
.hero-payout-text {
  font-size: 15.5px;
  font-weight: 800;
  color: #1A202C;
  margin: 0 0 4px 0 !important;
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: normal !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-payout-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F9FB;
  border: 1.2px solid #54BCD3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00A3C4;
  flex-shrink: 0;
  box-sizing: border-box;
}

.hero-payout-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

[data-theme="dark"] .hero-payout-icon {
  background: rgba(0, 163, 196, 0.15);
  border-color: rgba(51, 177, 201, 0.35);
  color: #33B1C9;
}

.hero-number-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-payout-num {
  font-size: 34px;
  font-weight: 900;
  color: #00A3C4;
  line-height: 1.1 !important;
  display: block !important;
  margin: 0 auto 3px auto !important;
  padding: 0 !important;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.hero-payout-unit {
  font-size: 12px;
  font-weight: 800;
  color: #1A202C;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  display: block !important;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

/* ختم الصندوق الأوسط الرئيسي عند اليوم صفر */
.hero-disbursed-stamp {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 16px 6px;
  border-radius: 10px;
  border: 2px solid #059669;
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #065F46;
  font-family: 'Tajawal', 'Almarai', sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap !important;
  pointer-events: none;
  z-index: 5;
  box-shadow: 
    0 4px 16px rgba(5, 150, 105, 0.22),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.6),
    inset 0 0 0 3px rgba(5, 150, 105, 0.35);
}

.hero-counter-box.is-disbursed .hero-disbursed-stamp {
  display: inline-flex;
  animation: heroStampPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-counter-box.is-disbursed .hero-payout-num,
.hero-counter-box.is-disbursed .hero-payout-unit {
  opacity: 0.18;
  filter: grayscale(1);
}

.hero-counter-box.is-disbursed {
  border-color: #059669 !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2) !important;
}

.hero-counter-box.is-disbursed .hero-counter-header {
  background: #059669 !important;
}

/* ======================================================
   شبكة بطاقات المواعيد السبعة
   ====================================================== */
.payout-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cards-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* البطاقة الفردية */
.mini-payout-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-payout-card:hover {
  border-color: #54BCD3;
  transform: translateY(-2px);
}

.mini-payout-card.full-width {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 18px;
}

/* ======================================================
   بطاقة اليوم الوطني السعودي المميزة (Saudi National Day Theme)
   ====================================================== */
.mini-payout-card[data-id="saudi_national_day"],
.mini-payout-card.national-day-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FAF4 100%) !important;
  border: 1.5px solid #16A34A !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12) !important;
}

.mini-payout-card[data-id="saudi_national_day"]:hover,
.mini-payout-card.national-day-card:hover {
  border-color: #006C35 !important;
  box-shadow: 0 6px 18px rgba(0, 108, 53, 0.2) !important;
}

.mini-payout-card[data-id="saudi_national_day"] .card-title-text,
.mini-payout-card.national-day-card .card-title-text {
  color: #006C35 !important;
  font-weight: 800;
}

.mini-payout-card[data-id="saudi_national_day"] .card-payout-num,
.mini-payout-card.national-day-card .card-payout-num {
  color: #006C35 !important;
}

.mini-payout-card[data-id="saudi_national_day"] .card-unit-label,
.mini-payout-card.national-day-card .card-unit-label {
  color: #15803D !important;
}

.mini-payout-card[data-id="saudi_national_day"] .card-icon-circle,
.mini-payout-card.national-day-card .card-icon-circle {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.saudi-flag-circle-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 108, 53, 0.25);
}

/* الوضع الداكن لبطاقة اليوم الوطني */
[data-theme="dark"] .mini-payout-card[data-id="saudi_national_day"],
[data-theme="dark"] .mini-payout-card.national-day-card {
  background: linear-gradient(135deg, #0D2617 0%, #08170F 100%) !important;
  border: 1.5px solid #059669 !important;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.25) !important;
}

[data-theme="dark"] .mini-payout-card[data-id="saudi_national_day"] .card-title-text,
[data-theme="dark"] .mini-payout-card.national-day-card .card-title-text {
  color: #34D399 !important;
}

[data-theme="dark"] .mini-payout-card[data-id="saudi_national_day"] .card-payout-num,
[data-theme="dark"] .mini-payout-card.national-day-card .card-payout-num {
  color: #34D399 !important;
}

[data-theme="dark"] .mini-payout-card[data-id="saudi_national_day"] .card-unit-label,
[data-theme="dark"] .mini-payout-card.national-day-card .card-unit-label {
  color: #A7F3D0 !important;
}

[data-theme="dark"] .mini-payout-card[data-id="saudi_national_day"] .card-icon-circle,
[data-theme="dark"] .mini-payout-card.national-day-card .card-icon-circle {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

[data-theme="dark"] .saudi-flag-circle-img {
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}

/* محتوى البطاقة الداخلي */
.card-content-side {
  text-align: right;
  flex: 1;
}

.card-title-text {
  font-size: 15.5px;
  font-weight: 800;
  color: #1A202C;
  margin-bottom: 3px;
  white-space: nowrap;
  letter-spacing: normal !important;
  line-height: 1.2;
}

.card-number-wrapper {
  display: inline-flex;
  align-items: baseline;
  direction: rtl;
}

.card-payout-num {
  font-size: 26px;
  font-weight: 900;
  color: #1A202C;
  line-height: 1;
  display: inline-block;
  direction: ltr !important;
  margin-left: 6px;
}

.card-unit-label {
  font-size: 12px;
  font-weight: 700;
  color: #00A3C4;
  display: inline-block;
}

/* أيقونة الدائرة للبرنامج */
.card-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F9FB;
  border: 1.2px solid #54BCD3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00A3C4;
  flex-shrink: 0;
  margin-right: 8px;
}

.card-icon-circle svg {
  width: 20px;
  height: 20px;
}

/* ======================================================
   ختم "تم الصرف" الأخضر الشفاف لكروت المواعيد عند اليوم صفر
   ====================================================== */
.mini-payout-card {
  position: relative;
  overflow: hidden;
}

.card-number-wrapper {
  position: relative;
}

.mini-payout-card.is-disbursed {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.12) !important;
}

.card-number-wrapper.has-disbursed-stamp,
.mini-payout-card.is-disbursed .card-number-wrapper {
  visibility: hidden;
}

.disbursed-stamp {
  position: absolute;
  right: 14px;
  bottom: 9px;
  transform: rotate(-3deg);
  transform-origin: right center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3.5px 10px 4px;
  border-radius: 8px;
  border: 1.8px solid #059669;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.08) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #065F46;
  font-family: 'Tajawal', 'Almarai', sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.25px;
  white-space: nowrap !important;
  pointer-events: none;
  z-index: 4;
  box-shadow: 
    0 3px 10px rgba(5, 150, 105, 0.16),
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.6),
    inset 0 0 0 2.4px rgba(5, 150, 105, 0.35);
  animation: miniStampPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stamp-seal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
}

.stamp-seal-badge svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  display: block;
}

.stamp-text {
  display: inline-block;
  transform: translateY(-0.5px);
  letter-spacing: 0.2px;
}

/* الوضع الداكن للختم (Dark Theme) */
[data-theme="dark"] .hero-counter-box.is-disbursed {
  border-color: #10B981 !important;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .hero-counter-box.is-disbursed .hero-counter-header {
  background: #065F46 !important;
}

[data-theme="dark"] .hero-disbursed-stamp {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  box-shadow: 
    0 4px 20px rgba(16, 185, 129, 0.35),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    inset 0 0 0 3px rgba(52, 211, 153, 0.4);
}

[data-theme="dark"] .mini-payout-card.is-disbursed {
  background: linear-gradient(135deg, #181818 0%, #082A1A 100%) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18) !important;
}

[data-theme="dark"] .disbursed-stamp {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  box-shadow: 
    0 3px 14px rgba(16, 185, 129, 0.3),
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2.4px rgba(52, 211, 153, 0.4);
}

/* توافق الوضع العريض للختم (Wide Mode) */
.eyjaz-poster-card.is-wide-mode .disbursed-stamp {
  font-size: 14px;
  padding: 4px 11px 4.5px;
  right: 14px;
  bottom: 10px;
  transform: rotate(-3deg);
}

.eyjaz-poster-card.is-wide-mode .hero-disbursed-stamp {
  font-size: 16.5px;
  padding: 5.5px 17px 6.5px;
}

/* تعطيل الأنيميشن أثناء التصدير لضمان اللقطة النقية */
.is-exporting .disbursed-stamp,
.is-exporting .hero-disbursed-stamp {
  animation: none !important;
  opacity: 1 !important;
}

@keyframes heroStampPopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-20deg) scale(1.3);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

@keyframes miniStampPopIn {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(1.15);
  }
  100% {
    opacity: 1;
    transform: rotate(-3.5deg) scale(1);
  }
}

/* ======================================================
   شريط وسائل التواصل السفلي
   ====================================================== */
.poster-social-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0 0;
  position: relative;
  z-index: 3;
  direction: ltr;
  /* لترتيب المعرف والأيقونات بانسيابية */
  margin: 0 auto;
  flex-wrap: wrap;
}

.poster-handle-text {
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1A202C;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.handle-username {
  display: inline;
  letter-spacing: inherit;
}

.handle-brand-cyan {
  color: #00A3C4;
  font-weight: 800;
  transition: color 0.2s ease;
}

[data-theme="dark"] .handle-brand-cyan {
  color: #33B1C9;
}

.poster-handle-text::after {
  content: '|';
  color: #CBD5E1;
  font-weight: 400;
  font-size: 13px;
  margin-left: 8px;
}

.poster-social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.poster-social-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #A0AEC0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A202C;
  transition: all 0.2s ease;
  text-decoration: none;
}

.poster-social-circle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ======================================================
   الوضع العريض (4:5) المتوسع أفقياً (Wide Mode 4:5)
   الكادر الخارجي يظل ستوري كامل 9:16 بأبعاده القياسية (580px)
   والتوسع يكون للإطار الأزرق وكروت الصرف يميناً ويساراً بالداخل
   ====================================================== */
.crop-guide-header.is-wide-mode {
  max-width: 580px;
}

.crop-frame-box.is-wide-mode {
  max-width: 580px;
}

.eyjaz-poster-card.is-wide-mode {
  max-width: 580px;
  aspect-ratio: 9 / 16;
  padding: 24px 8px;
}

/* استغلال العرض الأفقي الكامل لنطاق الأمان 4:5 داخل الكادر */
.crop-frame-box.is-wide-mode .poster-safe-zone-4-5,
.eyjaz-poster-card.is-wide-mode .poster-safe-zone-4-5 {
  max-width: 100%;
  width: 100%;
}

/* ترويسة البوستر والشعار في الوضع العريض */
.eyjaz-poster-card.is-wide-mode .poster-top-brand {
  margin-bottom: 14px;
}

.eyjaz-poster-card.is-wide-mode .poster-logo-img {
  height: 52px;
}

/* إطار التقويم الداخلي المتوسع يميناً ويساراً (مطابق للمستطيل الأحمر) */
.eyjaz-poster-card.is-wide-mode .poster-inner-frame {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 8px 14px;
  border-radius: 24px;
  margin-bottom: 12px;
}

/* أيقونة التقويم العائمة */
.eyjaz-poster-card.is-wide-mode .floating-calendar-badge {
  width: 44px;
  height: 44px;
  top: -22px;
}

.eyjaz-poster-card.is-wide-mode .floating-calendar-badge svg {
  width: 22px;
  height: 22px;
}

/* عنوان اليوم الرئيسي في الوضع العريض */
.eyjaz-poster-card.is-wide-mode .poster-main-heading {
  margin-top: 4px;
  margin-bottom: 22px;
}

.eyjaz-poster-card.is-wide-mode .heading-black {
  font-size: 29px;
  font-weight: 900;
}

/* شريط الأعمدة الثلاثية (هجري - بطل الصرف - ميلادي) */
.eyjaz-poster-card.is-wide-mode .poster-dates-row {
  grid-template-columns: 1.1fr 1.16fr 1.1fr;
  gap: 7px;
  margin-bottom: 10px;
}

/* بطاقات التاريخ الهجري والميلادي */
.eyjaz-poster-card.is-wide-mode .date-pill-box {
  padding: 8px 4px 6px;
  min-height: 114px;
  border-radius: 16px;
}

.eyjaz-poster-card.is-wide-mode .date-icon-circle {
  width: 34px;
  height: 34px;
  margin: 0 auto 4px auto;
}

.eyjaz-poster-card.is-wide-mode .date-icon-circle svg {
  width: 18px;
  height: 18px;
}

.eyjaz-poster-card.is-wide-mode .date-type-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.2;
}

.eyjaz-poster-card.is-wide-mode .date-digits-formatted {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.eyjaz-poster-card.is-wide-mode .date-sub-label {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap !important;
  line-height: 1.2;
}

/* العمود الأوسط: بطل الأيام المتبقية */
.eyjaz-poster-card.is-wide-mode .hero-counter-box {
  min-height: 114px;
  border-radius: 16px;
}

.eyjaz-poster-card.is-wide-mode .hero-counter-header {
  height: 33px;
  font-size: 14.5px;
  white-space: nowrap !important;
}

.eyjaz-poster-card.is-wide-mode .hero-counter-body {
  padding: 8px 4px 10px;
}

.eyjaz-poster-card.is-wide-mode .hero-payout-label,
.eyjaz-poster-card.is-wide-mode .hero-payout-text {
  font-size: 16.5px;
  margin: 0 0 3px 0 !important;
  gap: 8px;
}

.eyjaz-poster-card.is-wide-mode .hero-payout-icon {
  width: 38px;
  height: 38px;
}

.eyjaz-poster-card.is-wide-mode .hero-payout-icon svg {
  width: 21px;
  height: 21px;
}

.eyjaz-poster-card.is-wide-mode .hero-payout-num {
  font-size: 38px;
  margin: 0 auto 2px auto !important;
}

.eyjaz-poster-card.is-wide-mode .hero-payout-unit {
  font-size: 12.5px;
}

/* شبكة بطاقات المواعيد السبعة في الوضع العريض (كروت أعرض وأكبر حجماً وخطاً) */
.eyjaz-poster-card.is-wide-mode .payout-cards-grid {
  gap: 8px;
}

.eyjaz-poster-card.is-wide-mode .cards-row-two {
  gap: 8px;
}

.eyjaz-poster-card.is-wide-mode .mini-payout-card {
  padding: 9px 12px;
  min-height: 56px;
  border-radius: 14px;
  box-sizing: border-box;
}

.eyjaz-poster-card.is-wide-mode .mini-payout-card.full-width {
  padding: 9px 16px;
}

.eyjaz-poster-card.is-wide-mode .card-title-text {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: normal !important;
  line-height: 1.2;
}

.eyjaz-poster-card.is-wide-mode .card-payout-num {
  font-size: 28px;
  margin-left: 7px;
}

.eyjaz-poster-card.is-wide-mode .card-unit-label {
  font-size: 13px;
  font-weight: 700;
}

.eyjaz-poster-card.is-wide-mode .card-icon-circle {
  width: 38px;
  height: 38px;
  margin-right: 10px;
}

.eyjaz-poster-card.is-wide-mode .card-icon-circle svg {
  width: 21px;
  height: 21px;
}

.eyjaz-poster-card.is-wide-mode .saudi-flag-circle-img {
  width: 34px;
  height: 34px;
}

/* شريط وسائل التواصل في الوضع العريض */
.eyjaz-poster-card.is-wide-mode .poster-social-bottom {
  gap: 12px;
  padding: 4px 0 0;
}

.eyjaz-poster-card.is-wide-mode .poster-handle-text {
  font-size: 14.5px;
}

.eyjaz-poster-card.is-wide-mode .poster-social-icons {
  gap: 6px;
}

.eyjaz-poster-card.is-wide-mode .poster-social-circle {
  width: 28px;
  height: 28px;
}

.eyjaz-poster-card.is-wide-mode .poster-social-circle svg {
  width: 14px;
  height: 14px;
}

/* ======================================================
   التجاوب مع الشاشات
   ====================================================== */
@media (max-width: 520px) {
  .countdown-page-container {
    padding: calc(var(--nav-height) + 1rem) 8px 3rem;
  }

  .eyjaz-poster-card {
    min-height: auto;
    aspect-ratio: 9 / 16;
    padding: 24px 10px;
    border-radius: 24px;
  }

  .poster-safe-zone-4-5 {
    width: 100%;
    max-width: 100%;
  }

  .poster-hamza-top-left {
    top: 14px;
    left: 14px;
    width: 48px;
  }

  .poster-inner-frame {
    padding: 20px 8px 16px;
    border-radius: 18px;
  }

  .poster-main-heading {
    margin-top: 4px;
    margin-bottom: 22px;
  }

  .heading-black {
    font-size: 25px;
    letter-spacing: normal !important;
  }

  .poster-dates-row {
    grid-template-columns: 1.14fr 1.1fr 1.14fr;
    gap: 6px;
    margin-bottom: 18px;
  }

  .date-pill-box {
    padding: 8px 3px 6px;
    min-height: 124px;
    border-radius: 14px;
  }

  .date-icon-circle {
    width: 28px;
    height: 28px;
    margin: 0 auto 3px auto;
  }

  .date-icon-circle svg {
    width: 15px;
    height: 15px;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .date-type-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: normal !important;
    line-height: 1.2;
  }

  .date-digits-formatted {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 2px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .date-sub-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    line-height: 1.2;
  }

  .hero-counter-box {
    min-height: 124px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
  }

  .hero-counter-header {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 4px;
    font-size: 13.5px;
    line-height: 1;
    letter-spacing: normal !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap !important;
  }

  .hero-counter-body {
    padding: 8px 4px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-payout-label,
  .hero-payout-text {
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: normal !important;
    margin: 0 0 4px 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .hero-payout-icon {
    width: 32px;
    height: 32px;
  }

  .hero-payout-icon svg {
    width: 17px;
    height: 17px;
  }

  .hero-payout-num {
    font-size: 32px;
    line-height: 1.1 !important;
    margin: 0 auto 4px auto !important;
    display: block !important;
  }

  .hero-payout-unit {
    font-size: 11px;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .cards-row-two {
    gap: 8px;
  }

  .mini-payout-card {
    padding: 10px 10px;
    border-radius: 14px;
  }

  .card-title-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: normal !important;
    line-height: 1.2;
  }

  .card-payout-num {
    font-size: 24px;
  }

  .card-unit-label {
    font-size: 11px;
  }

  .card-icon-circle {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }

  .card-icon-circle svg {
    width: 17px;
    height: 17px;
  }



  .poster-social-bottom {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .poster-handle-text {
    font-size: 13px;
    gap: 0;
  }

  .poster-handle-text::after {
    display: none;
  }

  .poster-social-icons {
    gap: 6px;
    justify-content: center;
  }

  .poster-social-circle {
    width: 26px;
    height: 26px;
  }

  .poster-social-circle svg {
    width: 13px;
    height: 13px;
  }

  /* دعم الوضع العريض على شاشات الجوال (تمدد أفقياً بنسبة 100% مع تكبير الكروت) */
  .crop-guide-header.is-wide-mode,
  .crop-frame-box.is-wide-mode {
    max-width: 100%;
  }

  .eyjaz-poster-card.is-wide-mode {
    max-width: 100%;
    padding: 20px 6px;
    border-radius: 22px;
  }

  .eyjaz-poster-card.is-wide-mode .poster-inner-frame {
    padding: 20px 8px 14px;
    border-radius: 20px;
  }

  .eyjaz-poster-card.is-wide-mode .heading-black {
    font-size: 28px;
  }

  .eyjaz-poster-card.is-wide-mode .poster-dates-row {
    grid-template-columns: 1.1fr 1.16fr 1.1fr;
    gap: 6px;
    margin-bottom: 14px;
  }

  .eyjaz-poster-card.is-wide-mode .date-pill-box {
    padding: 8px 3px 6px;
    min-height: 122px;
    border-radius: 14px;
  }

  .eyjaz-poster-card.is-wide-mode .date-icon-circle {
    width: 32px;
    height: 32px;
  }

  .eyjaz-poster-card.is-wide-mode .date-icon-circle svg {
    width: 17px;
    height: 17px;
  }

  .eyjaz-poster-card.is-wide-mode .date-type-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .eyjaz-poster-card.is-wide-mode .date-digits-formatted {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .eyjaz-poster-card.is-wide-mode .date-sub-label {
    font-size: 15.5px;
    font-weight: 800;
    white-space: nowrap !important;
    line-height: 1.2;
  }

  .eyjaz-poster-card.is-wide-mode .hero-counter-box {
    min-height: 122px;
    border-radius: 14px;
  }

  .eyjaz-poster-card.is-wide-mode .hero-counter-header {
    height: 32px;
    font-size: 14px;
    white-space: nowrap !important;
  }

  .eyjaz-poster-card.is-wide-mode .hero-payout-label,
  .eyjaz-poster-card.is-wide-mode .hero-payout-text {
    font-size: 15.5px;
  }

  .eyjaz-poster-card.is-wide-mode .hero-payout-num {
    font-size: 36px;
  }

  .eyjaz-poster-card.is-wide-mode .mini-payout-card {
    padding: 9px 12px;
    min-height: 58px;
    border-radius: 14px;
  }

  .eyjaz-poster-card.is-wide-mode .card-title-text {
    font-size: 15.5px;
    font-weight: 800;
  }

  .eyjaz-poster-card.is-wide-mode .card-payout-num {
    font-size: 26px;
  }

  .eyjaz-poster-card.is-wide-mode .card-icon-circle {
    width: 34px;
    height: 34px;
    margin-right: 8px;
  }
}

/* ======================================================
   قواعد ظهور اللوقو داخل البوستر (مستقلة عن style.css)
   ====================================================== */
.eyjaz-poster-card .logo-for-light {
  display: none !important;
}

.eyjaz-poster-card .logo-for-dark {
  display: inline-block !important;
}

[data-theme="light"] .eyjaz-poster-card .logo-for-light {
  display: inline-block !important;
}

[data-theme="light"] .eyjaz-poster-card .logo-for-dark {
  display: none !important;
}

/* ======================================================
   إشعار تفاعلي عند التصدير والتحميل (Toast Notification)
   ====================================================== */
.eyjaz-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #141414;
  color: #FFFFFF;
  border: 1.5px solid #00A3C4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 163, 196, 0.35);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  direction: rtl;
  font-family: 'Tajawal', 'Almarai', sans-serif;
  max-width: 90vw;
  box-sizing: border-box;
}

.eyjaz-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ======================================================
   شريط التبديل بين الأقسام (Section Switcher Pills)
   ====================================================== */
.countdown-section-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(51, 177, 201, 0.25);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 2rem;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 95vw;
  flex-wrap: wrap;
  justify-content: center;
}

.switcher-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.switcher-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.switcher-tab-btn.active {
  background: linear-gradient(135deg, rgba(51, 177, 201, 0.25) 0%, rgba(51, 177, 201, 0.10) 100%);
  color: #FFFEFA;
  border-color: rgba(51, 177, 201, 0.7);
  box-shadow: 0 0 16px rgba(51, 177, 201, 0.25);
}

.switcher-pill-new {
  background: #33B1C9;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 0 8px rgba(51, 177, 201, 0.6);
}

/* ======================================================
   حاوية محتوى التبويب (Tab Panes)
   ====================================================== */
.countdown-tab-pane {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInPane 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   لوحة أداة تغيير ومحاكاة التاريخ (Date Controller Tool)
   توجد خارج بطاقة التصميم تماماً ولا تظهر في التصدير
   ====================================================== */
.date-controller-panel {
  width: 100%;
  max-width: 680px;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(51, 177, 201, 0.32);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 0 auto 1.85rem auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(51, 177, 201, 0.08);
  transition: all 0.3s ease;
  direction: rtl;
  font-family: var(--font-heading);
}

.date-controller-panel:hover {
  border-color: rgba(51, 177, 201, 0.55);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(51, 177, 201, 0.15);
}

.date-controller-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.date-controller-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.date-controller-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFEFA;
}

.date-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D5DB;
  transition: all 0.25s ease;
}

.date-status-badge.sim-active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #FBBF24;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.live {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.status-dot.sim {
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

.btn-toggle-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A6A6A6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-panel:hover {
  background: rgba(51, 177, 201, 0.2);
  color: #33B1C9;
  border-color: #33B1C9;
}

.date-controller-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.date-controller-body.collapsed {
  display: none;
}

.date-controller-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-input-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sim-date-picker {
  background: #141414;
  color: #FFFEFA;
  border: 1.5px solid rgba(51, 177, 201, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color-scheme: dark;
}

.sim-date-picker:focus {
  border-color: #33B1C9;
  box-shadow: 0 0 12px rgba(51, 177, 201, 0.4);
}

.date-step-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFEFA;
  font-family: 'JetBrains Mono', var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step:hover {
  background: rgba(51, 177, 201, 0.18);
  border-color: #33B1C9;
  color: #33B1C9;
  transform: translateY(-1px);
}

.btn-reset-real-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-real-date:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.18) 100%);
  border-color: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.date-presets-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.presets-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.presets-chips {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(51, 177, 201, 0.22);
  color: #D1D5DB;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: rgba(51, 177, 201, 0.18);
  color: #33B1C9;
  border-color: #33B1C9;
  transform: translateY(-1px);
}

/* ======================================================
   قسم عدّادات المؤتمرات وإطلاق الأجهزة التقنية
   ====================================================== */
.tech-section-header {
  text-align: center;
  max-width: 720px;
  margin-bottom: 2rem;
  direction: rtl;
}

.tech-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51, 177, 201, 0.10);
  border: 1px solid rgba(51, 177, 201, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #33B1C9;
  margin-bottom: 12px;
}

.tech-section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #FFFEFA;
  margin-bottom: 10px;
  line-height: 1.4;
}

.tech-section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-toolbar-container {
  margin-bottom: 2.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.tech-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-filter-btn {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tech-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.tech-filter-btn.active {
  background: rgba(51, 177, 201, 0.18);
  border-color: #33B1C9;
  color: #33B1C9;
  box-shadow: 0 0 12px rgba(51, 177, 201, 0.25);
}

.tech-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  direction: rtl;
}

.tech-event-card {
  background: linear-gradient(180deg, #161616 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.tech-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #33B1C9), transparent);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.tech-event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(51, 177, 201, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(51, 177, 201, 0.15);
}

.tech-event-card:hover::before {
  opacity: 1;
}

.tech-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tech-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFEFA;
}

.tech-brand-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.tech-card-status {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(51, 177, 201, 0.15);
  color: #33B1C9;
  border: 1px solid rgba(51, 177, 201, 0.35);
}

.tech-event-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFEFA;
  margin-bottom: 6px;
  line-height: 1.4;
}

.tech-event-subtitle {
  font-family: 'JetBrains Mono', var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  direction: ltr;
  text-align: right;
}

.tech-event-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tech-counter-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(51, 177, 201, 0.25);
  border-radius: 14px;
  padding: 12px 6px;
  margin-bottom: 16px;
  text-align: center;
}

.tech-unit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-unit-num {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.45rem;
  font-weight: 800;
  color: #33B1C9;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tech-unit-lbl {
  font-family: var(--font-heading);
  font-size: 0.70rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.tech-event-highlights {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tech-highlights-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tech-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-highlights-list li {
  font-size: 0.8rem;
  color: #D1D5DB;
  line-height: 1.5;
  position: relative;
  padding-right: 14px;
}

.tech-highlights-list li::before {
  content: '▪';
  position: absolute;
  right: 0;
  color: #33B1C9;
  font-size: 0.9rem;
}

.tech-event-actions {
  display: flex;
  gap: 8px;
}

.btn-tech-cal {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFEFA;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tech-cal:hover {
  background: rgba(51, 177, 201, 0.2);
  border-color: #33B1C9;
  color: #33B1C9;
  transform: translateY(-1px);
}

.btn-tech-share {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFEFA;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tech-share:hover {
  background: rgba(51, 177, 201, 0.2);
  border-color: #33B1C9;
  color: #33B1C9;
}

/* ======================================================
   مواءمة الوضع الفاتح (Light Mode Support)
   ====================================================== */
[data-theme="light"] .date-controller-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(51, 177, 201, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .date-controller-title {
  color: #0E0E0E;
}

[data-theme="light"] .sim-date-picker {
  background: #F4F4F4;
  color: #000000;
  border-color: rgba(51, 177, 201, 0.5);
  color-scheme: light;
}

[data-theme="light"] .btn-step {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0E0E0E;
}

[data-theme="light"] .preset-chip {
  background: rgba(0, 0, 0, 0.04);
  color: #333333;
}

[data-theme="light"] .tech-section-title {
  color: #0E0E0E;
}

[data-theme="light"] .tech-event-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tech-event-title {
  color: #0E0E0E;
}

[data-theme="light"] .tech-counter-matrix {
  background: rgba(51, 177, 201, 0.05);
  border-color: rgba(51, 177, 201, 0.2);
}

[data-theme="light"] .tech-highlights-list li {
  color: #4B5563;
}

[data-theme="light"] .btn-tech-cal,
[data-theme="light"] .btn-tech-share {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0E0E0E;
}

/* التجاوب للشاشات الصغيرة */
@media (max-width: 600px) {
  .countdown-section-switcher {
    border-radius: 16px;
    padding: 4px;
  }

  .switcher-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .date-controller-row {
    flex-direction: column;
    align-items: stretch;
  }

  .date-picker-wrap {
    justify-content: space-between;
  }

  .date-step-buttons {
    justify-content: space-between;
  }

  .btn-step {
    flex: 1;
    text-align: center;
  }

  .tech-events-grid {
    grid-template-columns: 1fr;
  }

  .crop-guide-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .crop-guide-pill {
    justify-content: center;
  }

  .crop-guide-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 6px;
    flex-wrap: wrap;
  }

  .btn-crop-action {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ======================================================
   إيجاز | تنسيقات حاسبة العمر التفصيلية المزدوجة والمناسبات
   Eyjaz Dual Age Calculator & Occasions Suite
   ====================================================== */

.age-calculator-container,
.occasions-section-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.tool-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.8rem 0 0.5rem;
  line-height: 1.3;
}

.tool-section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* بطاقة الحاسبة الرئيسية */
.age-calc-card {
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(51, 177, 201, 0.25);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* محدد نمط الإدخال (ميلادي / هجري) */
.calc-mode-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 2rem;
  gap: 6px;
}

.calc-mode-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-mode-btn.active {
  background: linear-gradient(135deg, rgba(51, 177, 201, 0.3) 0%, rgba(51, 177, 201, 0.12) 100%);
  color: #FFFEFA;
  border-color: rgba(51, 177, 201, 0.6);
  box-shadow: 0 2px 14px rgba(51, 177, 201, 0.2);
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.calc-date-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(51, 177, 201, 0.35);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Tajawal', sans-serif;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.25s ease;
}

.calc-date-input:focus {
  border-color: #33B1C9;
  box-shadow: 0 0 16px rgba(51, 177, 201, 0.3);
}

/* حقول الهجري المتعددة */
.hijri-selects-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr;
  gap: 12px;
}

.select-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-sublabel {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.calc-select {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(51, 177, 201, 0.35);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.calc-select:focus {
  border-color: #33B1C9;
}

.calc-select option {
  background: #141414;
  color: #FFFEFA;
}

/* أزرار الإجراء */
.calc-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.btn-calc-submit {
  flex: 2;
  padding: 14px 24px;
  background: linear-gradient(135deg, #33B1C9 0%, #268FA3 100%);
  color: #000000;
  border: none;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(51, 177, 201, 0.35);
}

.btn-calc-submit:hover {
  background: linear-gradient(135deg, #5DE0E6 0%, #33B1C9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(51, 177, 201, 0.5);
}

.btn-calc-reset {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-calc-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* حاوية النتائج */
.calc-results-wrapper {
  border-top: 1px solid rgba(51, 177, 201, 0.2);
  padding-top: 2rem;
  animation: fadeInResults 0.4s ease forwards;
}

@keyframes fadeInResults {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-top-banner {
  text-align: center;
  margin-bottom: 1.5rem;
}

.results-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(51, 177, 201, 0.15);
  border: 1px solid rgba(51, 177, 201, 0.4);
  border-radius: 999px;
  color: #33B1C9;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.results-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
}

/* الأركان الثلاثة للعمر */
.age-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 1.5rem;
}

.age-metric-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s;
}

.age-metric-card.primary-cyan {
  border-color: rgba(51, 177, 201, 0.5);
  background: linear-gradient(180deg, rgba(51, 177, 201, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.age-metric-card .metric-val {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: #33B1C9;
}

.age-metric-card .metric-lbl {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* بطاقة اللحظات (تحديث حي) */
.moments-breakdown-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(51, 177, 201, 0.3);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.moments-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.moment-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 8px 4px;
}

.moment-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFEFA;
  letter-spacing: -0.5px;
}

.moment-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* بطاقات المعلومات الإضافية */
.age-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1.8rem;
}

.insight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
}

.insight-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(51, 177, 201, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insight-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.insight-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.insight-val.highlight-cyan {
  color: #33B1C9;
}

.insight-sub {
  font-size: 0.76rem;
  color: #5DE0E6;
  font-weight: 600;
}

/* شريط المشاركة */
.calc-share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action-share {
  flex: 1;
  min-width: 140px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-action-share:hover {
  background: rgba(51, 177, 201, 0.15);
  border-color: #33B1C9;
  color: #33B1C9;
}

.btn-action-share.btn-wa:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25D366;
  color: #25D366;
}

.btn-action-share.btn-x:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* شبكة بطاقات المناسبات والتقويم */
.occasions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.occasion-card {
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.occasion-card:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 177, 201, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.occasion-card.national-featured {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 18, 18, 0.95) 40%);
}

.occasion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.occasion-badge-type {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(51, 177, 201, 0.12);
  color: #33B1C9;
  border: 1px solid rgba(51, 177, 201, 0.3);
}

.occasion-badge-type.national {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.occasion-badge-type.school {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.3);
}

.occasion-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.occasion-icon {
  font-size: 1.6rem;
}

.occasion-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.occasion-dates {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.occasion-countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(51, 177, 201, 0.2);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.occasion-countdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.occasion-countdown-digits {
  font-size: 1.15rem;
  font-weight: 800;
  color: #33B1C9;
  direction: ltr;
}

.occasion-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.occasion-footer-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.btn-occasion-share {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-occasion-share:hover {
  background: rgba(51, 177, 201, 0.15);
  border-color: #33B1C9;
  color: #33B1C9;
}

/* وضع الثيم الفاتح (Light Mode) */
[data-theme="light"] .age-calc-card,
[data-theme="light"] .occasion-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .calc-mode-selector {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .calc-date-input,
[data-theme="light"] .calc-select {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0F172A;
}

[data-theme="light"] .calc-select option {
  background: #FFFFFF;
  color: #0F172A;
}

[data-theme="light"] .age-metric-card,
[data-theme="light"] .insight-card,
[data-theme="light"] .moments-breakdown-card,
[data-theme="light"] .occasion-countdown-box {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .moment-num {
  color: #0F172A;
}

[data-theme="light"] .btn-calc-reset,
[data-theme="light"] .btn-action-share {
  background: #F1F5F9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
}

@media (max-width: 650px) {
  .hijri-selects-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .age-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .age-insights-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .calc-actions-row {
    flex-direction: column;
  }
}