/* --- سكشن محول التاريخ (يدعم الوضعين الداكن والفاتح) --- */
.hijri-section {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    padding: 0 15px;
    direction: rtl;
  }
  
  /* عنوان السكشن - أصبح متغير اللون */
  .section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .section-header h2 {
    color: var(--text); /* لون النص بيتغير تلقائياً حسب المود */
    font-size: 20px;
    font-weight: 700;
    margin: 0;
  }
  
  /* الكارت الرئيسي */
  .hijri-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  
  /* كارت تاريخ اليوم */
  .today-banner {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
  }
  
  .today-tag {
    font-size: 11px;
    color: var(--green);
    font-weight: bold;
    margin-bottom: 6px;
  }
  
  .today-hijri-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
  }
  
  .today-greg-text {
    font-size: 13px;
    color: var(--text-dim);
  }
  
  /* التبويبات */
  .converter-tabs {
    display: flex;
    background: var(--surface-2);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  
  .tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  .tab-btn.active {
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  
  /* حقول المدخلات */
  .converter-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .input-label {
    font-size: 13px;
    color: var(--text); /* يتغير تلقائياً في الوضع الفاتح والداكن */
    font-weight: 600;
  }
  
  .custom-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
  }
  
  .custom-input:focus {
    border-color: var(--green);
  }
  
  .hijri-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);
    gap: 8px;
  }
  
  /* الزرار الرئيسي */
  .btn-primary {
    width: 100%;
    background: var(--green);
    color: #ffffff;
    border: none;
    padding: 11px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 5px;
    transition: opacity 0.2s;
  }
  
  .btn-primary:hover {
    opacity: 0.9;
  }
  
  /* كارت النتيجة */
  .result-card {
    background: var(--surface-2);
    border: 1px dashed var(--green);
    color: var(--green);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin-top: 5px;
  }
  .tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
  }
  /* 1. محاذاة العناوين في الشبكة */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
  }
  
  /* 2. توحيد ارتفاع الهيدر لتتساوى الألقاب */
  .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 15px;
  }
  
  .section-header h2 {
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
  }
  /* مفتاح التبديل لوضع عدم الإزعاج */
.dnd-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
  }
  
  .dnd-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .dnd-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e74c3c; /* أحمر عند إيقاف التفعيل */
    transition: .3s;
    border-radius: 22px;
  }
  
  .dnd-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
  }
  
  input:checked + .dnd-slider {
    background-color: #2ecc71; /* أخضر عند التفعيل */
  }
  
  input:checked + .dnd-slider:before {
    transform: translateX(22px);
  }
  
  /* نص حالة التفعيل */
  .dnd-status-text {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
  }
  
  .dnd-status-text.status-on {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
  }
  
  .dnd-status-text.status-off {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
  }
  /* إلغاء أي هوامش علوية ناتجة عن المتصفح لضمان المحاذاة */
.tools-container > section {
  margin-top: 0 !important;
}

/* توحيد ارتفاع وهامش العناوين */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px; /* يضمن مساحة ثابتة للعنوان حتى لو سطر أو سطرين */
  margin-top: 0;
  margin-bottom: 15px;
}

.section-header h2 {
  margin: 0 !important;
  font-size: 18px;
  line-height: 1.3;
}
 /* تنسيق مربعات العد التنازلي */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    direction: ltr; /* لضمان ترتيب الأيام ثم الساعات من اليسار لليمين */
  }
  
  .time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 55px;
    height: 55px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  .time-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--green); /* لون الأرقام */
  }
  
  .time-text {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
  }
  .cal-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    background: var(--surface-2);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  
  .cal-title {
    font-size: 13px;
    color: var(--green);
    margin: 0;
    font-weight: bold;
  }
  
  .cal-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .cal-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
  }
  
  .cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    text-align: center;
    font-size: 10px;
    color: var(--text-dim);
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 5px;
  }
  
  .cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    transition: 0.2s;
  }
  
  .cal-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
  }
  
  /* تنسيق اليوم الحالي بالأصفر كما طلبته */
  .cal-cell.today {
    background: #f1c40f !important;
    color: #000 !important;
    font-weight: bold;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
  }
  
  .cal-cell:not(.empty):hover {
    background: var(--surface-2);
    border-color: var(--green);
  }
  /* --- تنسيقات مفكرة العادات --- */
.habit-tracker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.habit-item:hover {
  background: var(--surface-2);
  border-color: var(--green);
}

/* تكبير وتلوين صندوق الاختيار */
.habit-item input[type="checkbox"] {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* عمل خط على النص وتخفيف لونه عند تحديد المربع */
.habit-item input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--text-dim);
}

/* --- تنسيقات نتيجة حاسبة القرآن --- */
.quran-result-box {
  margin-top: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  animation: fadeIn 0.4s ease;
}

.quran-total {
  font-size: 13px;
  margin-bottom: 8px;
}

.quran-total b {
  color: var(--green);
  font-size: 16px;
}

.quran-prayer {
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

.quran-prayer b {
  color: #f1c40f; /* لون أصفر مميز */
  font-size: 14px;
}
/* =============== 8. مفكرة العادات اليومية (يدوية) =============== */
.habits-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.habit-row{
  display:flex; align-items:center; gap:12px;
  background: var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:12px 14px;
}
.habit-text{ flex:1; font-size:.88rem; color: var(--text); }
.habit-row.done .habit-text{ text-decoration: line-through; color: var(--text-dim); }

.habit-checkbox{
  width:26px; height:26px; border-radius:6px; border:2px solid var(--border);
  background: var(--surface); display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; transition: all .2s ease; font-size:.9rem; color:transparent;
}
.habit-row.done .habit-checkbox{ background: var(--green); border-color: var(--green); color:#fff; }

.habit-spacer{ width: 28px; flex-shrink:0; } /* المساحة الفاضية جنب المربع */

.habit-del-btn{
  background: var(--danger, #c0524a); color:#fff; border:none; border-radius:8px;
  padding: 6px 12px; font-size:.75rem; font-weight:700; cursor:pointer; flex-shrink:0;
  transition: opacity .2s ease;
}
.habit-del-btn:hover{ opacity:.85; }

.habit-add-row{ display:flex; gap:8px; }
.habit-add-row .custom-input{ flex:1; }
/* =============== التقويم الهجري "الفاخر" =============== */
.hijri-cal-wrap{
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 26px 20px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent), var(--shadow);
  overflow: hidden;
}
.hijri-cal-wrap::before{
  content:''; position:absolute; inset:8px; border:1px dashed color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius: 16px; pointer-events:none;
}
.hijri-cal-ornament-top, .hijri-cal-ornament-bottom{
  text-align:center; color: var(--gold); letter-spacing:10px; font-size:.8rem; opacity:.7; margin-bottom:6px;
}
.hijri-cal-ornament-bottom{ margin-top:14px; margin-bottom:0; }
.hijri-cal-title-main{
  text-align:center; font-family: var(--font-display); font-size:1.3rem; color: var(--gold-bright);
  font-weight:900; margin-bottom:18px;
}
.hijri-cal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:10px; }
.hijri-nav-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--gold); background: var(--surface-2);
  color: var(--gold-bright); font-size:1.3rem; font-weight:900; cursor:pointer; transition: all .25s ease;
  display:flex; align-items:center; justify-content:center;
}
.hijri-nav-btn:hover{ background: var(--gold); color:#171203; transform: scale(1.1); }
.hijri-cal-title{ font-family: var(--font-display); font-size:1.15rem; color: var(--text); font-weight:700; text-align:center; flex:1; }
.hijri-cal-weekdays{
  display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap:6px; margin-bottom:10px;
  text-align:center; font-size:.75rem; color: var(--gold-bright); font-weight:900;
}
.hijri-cal-grid{ display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap:6px; }
.hijri-cal-day{
  aspect-ratio: 1; display:flex; align-items:center; justify-content:center;
  border-radius: 12px; font-size:.9rem; color: var(--text); font-weight:700;
  background: var(--surface-2); border: 1px solid var(--border); transition: all .2s ease;
}
.hijri-cal-day.empty{ background: transparent; border-color: transparent; }
.hijri-cal-day.today{
  background: radial-gradient(circle, var(--gold-bright), var(--gold));
  color:#171203; font-weight:900; border: 2px solid #fff8e0;
  transform: scale(1.12);
  animation: hijriTodayGlow 1.8s ease-in-out infinite;
  z-index: 2;
}
@keyframes hijriTodayGlow{
  0%, 100%{ box-shadow: 0 0 8px 2px color-mix(in srgb, var(--gold) 70%, transparent); }
  50%{ box-shadow: 0 0 20px 8px color-mix(in srgb, var(--gold) 90%, transparent); }
}

/* ===================================================================
   شبكة الأدوات (tools-ui.js) + حالات الفراغ
=================================================================== */
.tl-head{ max-width:720px; margin:6px auto 4px; padding:0 15px; text-align:center; }
.tl-h1{ font-family:var(--font-display); font-size:1.7rem; color:var(--gold-bright); margin:0 0 2px; }
[data-theme="light"] .tl-h1{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
.tl-sub{ color:var(--text-dim); font-size:.85rem; margin:0 0 12px; }
.tl-head[hidden], .tl-grid[hidden], .tl-bar[hidden]{ display:none; }

.tl-grid{ max-width:720px; margin:0 auto 40px; padding:0 15px; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; direction:rtl; }
@media (min-width:640px){ .tl-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; } }
.tl-tile{
  position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:132px; padding:16px 14px 14px;
  border-radius:var(--radius, 18px); text-decoration:none; color:var(--text);
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 65%),
    var(--surface);
  border:1px solid var(--border); box-shadow:var(--shadow);
  transition:transform .18s ease, border-color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color:transparent;
}
.tl-tile:hover{ border-color:var(--gold); transform:translateY(-2px); }
.tl-tile:active{ transform:scale(.97); }
.tl-tile:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.tl-ico{
  width:46px; height:46px; border-radius:14px; display:grid; place-items:center; font-size:1.55rem; margin-bottom:8px;
  background:var(--surface-2); border:1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
}
.tl-name{ font-family:var(--font-display); font-weight:700; font-size:1.06rem; line-height:1.4; color:var(--gold-bright); }
[data-theme="light"] .tl-name{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
.tl-meta{ font-size:.76rem; color:var(--text-dim); line-height:1.5; }
.tl-tile::after{ content:'‹'; position:absolute; top:14px; left:14px; font-size:1.2rem; color:var(--text-dim); transition:transform .2s ease, color .2s ease; }
.tl-tile:hover::after{ transform:translateX(-3px); color:var(--gold-bright); }

/* وضع "أداة مفتوحة" */
body.tl-open .tools-container{ grid-template-columns:minmax(0,1fr); max-width:640px; margin-top:4px; }
.tools-container > .tl-off{ display:none !important; }
.tl-bar{ position:sticky; top:0; z-index:30; max-width:640px; margin:0 auto; padding:8px 15px 4px; }
.tl-back{
  display:inline-flex; align-items:center; gap:6px; padding:8px 16px 8px 12px; border-radius:99px; cursor:pointer;
  font-family:inherit; font-weight:800; font-size:.85rem; color:var(--text);
  background:color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid var(--border); box-shadow:var(--shadow);
}
.tl-back span{ font-size:1.15rem; line-height:1; color:var(--gold-bright); }
.tl-back:hover{ border-color:var(--gold); }
.tools-container > .tl-in{ animation:tlIn .3s ease both; }
@keyframes tlIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
body.tl-open .big-back-wrap{ display:none; }
@media (prefers-reduced-motion:reduce){ .tools-container > .tl-in{ animation:none; } .tl-tile{ transition:none; } }
[data-reduce-motion="1"] .tools-container > .tl-in{ animation:none; }

/* حالة فاضية: مفكرة العادات */
.habits-empty{ text-align:center; padding:20px 10px 8px; border:1px dashed var(--border); border-radius:14px; background:color-mix(in srgb, var(--surface-2) 60%, transparent); }
.he-ico{ font-size:2.2rem; margin-bottom:4px; }
.he-title{ font-family:var(--font-display); font-size:1.12rem; color:var(--gold-bright); margin-bottom:4px; }
[data-theme="light"] .he-title{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
.he-sub{ font-size:.78rem; color:var(--text-dim); line-height:1.7; margin-bottom:10px; }
.he-chips{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.he-chip{
  font-family:inherit; font-weight:700; font-size:.8rem; cursor:pointer; padding:7px 13px; border-radius:99px;
  border:1px solid var(--border); background:var(--surface); color:var(--text); transition:border-color .2s ease, background .2s ease;
}
.he-chip:hover{ border-color:var(--gold); background:var(--surface-2); }
.habits-progress{ margin-top:4px; }
.hp-bar{ height:7px; border-radius:99px; background:color-mix(in srgb, var(--gold) 18%, transparent); overflow:hidden; }
.hp-bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(270deg, var(--gold-bright), var(--gold)); transition:width .4s ease; }
.hp-lbl{ margin-top:6px; font-size:.78rem; color:var(--text-dim); text-align:center; }
.habits-progress.all .hp-lbl{ color:var(--gold-bright); font-weight:800; }
[data-theme="light"] .habits-progress.all .hp-lbl{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
.habit-checkbox:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

/* زرار "رجوع لهذا الشهر" في التقويم */
.hijri-today-btn{
  display:block; margin:12px auto 0; padding:7px 16px; border-radius:99px; cursor:pointer; font-family:inherit; font-weight:800; font-size:.8rem;
  background:transparent; border:1px solid var(--gold); color:var(--gold-bright);
}
.hijri-today-btn[hidden]{ display:none; }
[data-theme="light"] .hijri-today-btn{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
@media print{ .tl-grid, .tl-head, .tl-bar{ display:none !important; } .tools-container > .tl-off{ display:block !important; } }

/* ===== الجمعة: من غير أي أخضر في الأدوات (ذهبي بدل الأخضر) ===== */
html.is-friday body, html.is-friday body[data-theme]{ --green: var(--gold); --green-bright: var(--gold-bright); }
html.is-friday .btn-primary, html.is-friday .tab-btn.active{ background: linear-gradient(145deg, var(--gold-bright), var(--gold)); color:#1b1405; box-shadow:none; }
html.is-friday .today-tag, html.is-friday .time-number, html.is-friday .quran-total b{ color: var(--gold-bright); }
html.is-friday [data-theme="light"] .today-tag, html.is-friday [data-theme="light"] .time-number, html.is-friday [data-theme="light"] .quran-total b,
html.is-friday body[data-theme="light"] .today-tag, html.is-friday body[data-theme="light"] .time-number, html.is-friday body[data-theme="light"] .quran-total b{ color: color-mix(in srgb, var(--gold-bright) 55%, #000); }
html.is-friday .habit-row.done .habit-checkbox{ background: var(--gold); border-color: var(--gold); color:#1b1405; }

/* =============== المواسم والنفحات (مناسبات تلقائية من التقويم الهجري) =============== */
.season-wrap{ display:flex; flex-direction:column; gap:12px; }
.season-hero{
  text-align:center; padding:16px 12px 14px; border-radius:16px;
  border:1px solid color-mix(in srgb, var(--gold, #c9a24b) 45%, var(--border));
  background:radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--gold, #c9a24b) 17%, var(--surface-2)), var(--surface-2));
}
.season-today{ font-size:.78rem; color:var(--text-dim); font-weight:700; margin-bottom:8px; min-height:1.2em; }
.season-hero .widget-title{ margin:0 0 4px !important; font-family:var(--font-display); font-size:1.2rem !important; color:var(--gold-bright); }
.season-dua{ font-size:.78rem; color:var(--text-dim); margin:0 0 12px; }
.season-hero .countdown-container{ gap:8px; flex-wrap:nowrap; }
.season-hero .time-box{ width:68px; height:64px; background:var(--surface); border-color:color-mix(in srgb, var(--gold, #c9a24b) 35%, var(--border)); }
.season-hero .time-number{ color:var(--gold-bright); font-size:22px; font-variant-numeric:lining-nums; }
.season-eta{ margin-top:10px; font-size:.78rem; color:var(--text-dim); line-height:1.7; }
.ram-now{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:92px; padding:10px 14px; border-radius:14px; background:var(--surface); border:1px solid color-mix(in srgb, var(--gold, #c9a24b) 45%, var(--border)); }
.ram-now b{ font-size:1.9rem; font-weight:900; line-height:1.1; color:var(--gold-bright); }
.ram-now span{ font-size:.74rem; color:var(--text-dim); font-weight:700; margin-top:2px; }
.occ-title{ margin:4px 0 0 !important; text-align:start; font-size:1rem !important; color:var(--gold-bright); }
.occ-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.occ-row{ display:flex; align-items:center; gap:10px; padding:10px 12px; background:var(--surface-2); border:1px solid var(--border); border-radius:14px; }
.occ-ic{ flex:0 0 auto; width:38px; height:38px; display:grid; place-items:center; font-size:1.2rem; border-radius:50%; background:color-mix(in srgb, var(--gold, #c9a24b) 16%, var(--surface)); }
.occ-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; text-align:start; }
.occ-name{ font-weight:800; font-size:.92rem; color:var(--text); }
.occ-when{ font-size:.75rem; color:var(--text-dim); }
.occ-tag{ flex:0 0 auto; font-size:.7rem; font-weight:800; padding:4px 10px; border-radius:99px; border:1px solid var(--border); background:var(--surface); color:var(--gold-bright); white-space:nowrap; }
.occ-row.occ-soon{ border-color:color-mix(in srgb, var(--gold, #c9a24b) 70%, var(--border)); }
.occ-row.occ-soon .occ-when{ color:var(--gold-bright); font-weight:700; }
.occ-row.occ-today{ background:color-mix(in srgb, var(--gold, #c9a24b) 22%, var(--surface-2)); border-color:var(--gold, #c9a24b); }
.occ-note{ margin:0; font-size:.72rem; color:var(--text-dim); line-height:1.8; text-align:center; }
[data-theme="light"] .season-hero .widget-title, [data-theme="light"] .season-hero .time-number, [data-theme="light"] .ram-now b,
[data-theme="light"] .occ-title, [data-theme="light"] .occ-tag, [data-theme="light"] .occ-row.occ-soon .occ-when{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
html.is-friday .season-hero .time-number, html.is-friday .ram-now b{ color:var(--gold-bright); }
@media (max-width:380px){ .season-hero .time-box{ width:58px; height:58px; } .season-hero .time-number{ font-size:19px; } }

/* =============== حاسبة الختمة: مدد جاهزة + زرار الورد =============== */
.khatma-presets{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.khatma-chip{ font-family:inherit; font-weight:800; font-size:.74rem; cursor:pointer; padding:5px 11px; border-radius:99px; border:1px solid var(--border); background:var(--surface-2); color:var(--text); transition:background .15s ease, border-color .15s ease; }
.khatma-chip:hover{ border-color:var(--gold, #c9a24b); }
.khatma-chip.on{ background:var(--gold, #c9a24b); color:#171203; border-color:var(--gold, #c9a24b); }
.khatma-eta{ margin-top:10px; padding-top:8px; border-top:1px dashed var(--border); font-size:.78rem; color:var(--text-dim); line-height:1.8; }
.khatma-actions{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:10px; }
.khatma-wird-btn{ flex:1 1 150px; padding:9px 12px !important; font-size:.85rem !important; font-weight:800; }
.khatma-wird-btn.is-set, .khatma-wird-btn:disabled{ opacity:.75; cursor:default; }
.khatma-link{ font-size:.78rem; font-weight:800; color:var(--gold-bright); text-decoration:none; padding:8px 10px; }
.khatma-link:hover{ text-decoration:underline; }
.khatma-cur{ margin-top:8px; font-size:.72rem; color:var(--text-dim); }
[data-theme="light"] .khatma-link{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
