/* ذِكرٌ وفِكر — «الأدوات» (v11+): القبلة — زمرّدي/ذهبي مجسّم */
#v-tools { padding-bottom: calc(var(--nav, 74px) + env(safe-area-inset-bottom) + 28px); overflow-x: visible; overflow-y: visible; }
.tl-acts { margin: 0 0 8px; position: relative; z-index: 1; }
.tl-hero h1 { font-size: 34px; }
.tl-cmp { padding: 18px 14px 16px; text-align: center; transition: box-shadow .4s; }
.tl-cmp.ok { box-shadow: var(--sh3), 0 0 0 3px rgba(94,240,189,.55), 0 0 34px rgba(94,240,189,.45); }
.tl-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 18px auto 6px; }
.tl-rot { width: 100%; height: 100%; transition: transform .12s linear; will-change: transform; }
.tl-dial { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(6,48,42,.35)); }
.tl-ptr { position: absolute; top: -16px; left: 50%; width: 0; height: 0; margin-left: -13px; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid #d9ab48; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); z-index: 2; }
.tl-cmp.ok .tl-ptr { border-top-color: #17b07f; }
.tl-st { margin: 10px 4px 12px; font: 800 18px/1.6 'Tajawal', sans-serif; color: var(--em); min-height: 29px; } [data-theme="night"] .tl-st { color: var(--gold2); }
.tl-cmp.ok .tl-st { color: #0b7152; } [data-theme="night"] .tl-cmp.ok .tl-st { color: #5ef0bd; }
.tl-cmp.nos .tl-st { font-size: 15px; color: var(--mut); }
.tl-acts .btn { height: 50px; padding: 0 24px; font-size: 16px; } .tl-acts .btn .ic3 { width: 28px; height: 28px; }
.tl-st3 { margin-top: 12px; } .tl-st3 b { font-size: 19px !important; }
.tl-note { margin: 8px 4px; font-size: 13.5px; font-weight: 700; color: var(--mut); text-align: center; } .tl-note .lnk { font-weight: 800; color: var(--goldd); background: none; border: 0; text-decoration: underline; cursor: pointer; font-family: inherit; font-size: inherit; }
.tl-map { display: flex; gap: 14px; align-items: center; padding: 14px; }
.tl-mapsv { flex: 0 0 132px; } .tl-mapsv .tl-dial { width: 132px; height: 132px; }
.tl-map b, .tl-sun b { display: block; font: 700 16px/1.6 'Tajawal', sans-serif; color: var(--ink); } .tl-map p, .tl-sun p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.75; font-weight: 600; color: var(--mut); }
.tl-sun { display: flex; gap: 12px; align-items: flex-start; padding: 14px; } .tl-sun > .ic3 { flex: 0 0 44px; width: 44px; height: 44px; }
.tl-sun p:first-of-type { color: var(--ink); font-weight: 700; } .tl-small { font-size: 12.5px !important; }
.tl-grid { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .tl-rot { transition: none; } }
#tl-more:not([hidden]) ~ .card.soon { display: none; }
.tl-acts .btn:disabled { opacity: .75; cursor: default; }
/* ── الإمساكية (v12) ── */
.tl-cd { text-align: center; padding: 18px 12px 14px; color: #fff8e6; background: radial-gradient(120% 90% at 50% 0%, #14936c 0%, #085a41 55%, #03291c 100%); border: 1.5px solid rgba(227,190,96,.7); position: relative; overflow: hidden; }
.tl-cd::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(243,210,122,.35); border-radius: 16px; pointer-events: none; }
.tl-cdh { margin: 0 0 10px; font: 700 21px/1.5 'Aref Ruqaa', 'Amiri', serif; color: #f7dc85; }
.tl-cdc { min-height: 74px; } .tl-cdc .dd { min-width: 120px; } .tl-cdc .dd b { font-size: 60px; }
.tl-cds { margin: 8px 6px 12px; font-size: 13.5px; font-weight: 700; color: rgba(251,243,220,.85); line-height: 1.7; }
.tl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .tl-pair > div { background: rgba(2,31,21,.45); border: 1px solid rgba(217,171,72,.55); border-radius: 14px; padding: 8px 6px; }
.tl-pair small { display: block; font-size: 12.5px; font-weight: 700; color: #e9dcae; } .tl-pair b { font-size: 22px; font-weight: 800; color: #fff8e6; font-variant-numeric: tabular-nums; }
.tl-seg { display: flex; gap: 6px; margin: 14px 0 10px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh1, 0 2px 8px rgba(0,0,0,.08)); }
.tl-seg button { flex: 1; height: 42px; border: 0; border-radius: 999px; background: none; font: 800 14.5px 'Tajawal', sans-serif; color: var(--mut); cursor: pointer; }
.tl-seg button[aria-selected="true"] { color: #fff8e6; background: linear-gradient(180deg, #17a077, #0a6047); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 8px rgba(6,60,44,.35); }
.tl-print { padding: 12px 8px 10px; } .tl-ph { text-align: center; margin-bottom: 8px; } .tl-ph b { display: block; font: 700 20px/1.5 'Aref Ruqaa', 'Amiri', serif; color: var(--em); } [data-theme="night"] .tl-ph b { color: var(--gold2); } .tl-ph small { font-size: 12px; font-weight: 700; color: var(--mut); }
.tl-tw { max-height: 62vh; overflow: auto; border-radius: 12px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.tl-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tl-tbl th { position: sticky; top: 0; z-index: 1; padding: 8px 2px; font-size: 11.5px; font-weight: 800; color: #0a3d2d; background: linear-gradient(180deg, #f7e08f, #d4a537); white-space: nowrap; }
.tl-tbl td { padding: 6px 2px; text-align: center; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tl-tbl td.dn { font-weight: 800; color: var(--goldd); font-size: 14px; } .tl-tbl td.dt b { display: block; font-size: 11.5px; } .tl-tbl td.dt small { font-size: 10.5px; color: var(--mut); font-weight: 700; }
.tl-tbl td.c-maghrib, .tl-tbl td.c-imsak { font-weight: 800; color: var(--em); } [data-theme="night"] .tl-tbl td.c-maghrib, [data-theme="night"] .tl-tbl td.c-imsak { color: var(--gold2); }
.tl-tbl tr.l10 td { background: rgba(217,171,72,.09); }
.tl-tbl tr.tday td { background: linear-gradient(180deg, rgba(23,176,127,.22), rgba(23,176,127,.12)); box-shadow: inset 0 1px 0 rgba(23,176,127,.5), inset 0 -1px 0 rgba(23,176,127,.5); }
.tl-pn { margin: 8px 4px 2px; text-align: center; color: var(--mut); font-weight: 700; line-height: 1.7; } .tl-pf { display: none; }
.tl-acts2 { margin: 12px 0 4px; }
.tl-hlink { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 2px; width: max-content; padding: 7px 18px; border-radius: 999px; background: rgba(2,31,21,.4); border: 1px solid rgba(227,190,96,.75); color: #f7dc85; font-weight: 800; font-size: 14.5px; text-decoration: none; }
.tl-hlink .ic3 { width: 24px; height: 24px; } .tl-hlink[hidden] { display: none; }
@media print {
  body.tlprint * { visibility: hidden !important; } body.tlprint { background: #fff !important; }
  body.tlprint .tl-print, body.tlprint .tl-print * { visibility: visible !important; }
  body.tlprint .tl-print { position: absolute; inset: 0 0 auto 0; margin: 0; box-shadow: none !important; border: 0 !important; background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.tlprint .tl-tw { max-height: none; overflow: visible; border: 1px solid #b8892a; }
  body.tlprint .tl-tbl { font-size: 11pt; } body.tlprint .tl-tbl td { padding: 3px 2px; color: #111 !important; } body.tlprint .tl-tbl th { position: static; }
  body.tlprint .tl-ph b { color: #0a4a39 !important; } body.tlprint .tl-pf { display: block; text-align: center; font-size: 9pt; color: #555; }
  body.tlprint .tl-tbl tr.tday td { background: none; box-shadow: none; }
  @page { size: A4 portrait; margin: 12mm; }
}
@media (max-width: 480px) { .tl-tbl .c-sunrise { display: none; } .tl-tbl th { font-size: 10.5px; padding: 8px 1px; } .tl-tbl td { font-size: 12px; padding: 6px 1px; } .tl-tbl td.dt b { font-size: 11px; } .tl-tbl td.dt small { font-size: 9.5px; } }
/* ── التقويم الهجري (v13) ── */
.hc { padding: 12px 10px 12px; }
.hc-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; text-align: center; }
.hc-nav b { display: block; font: 700 22px/1.4 'Aref Ruqaa', 'Amiri', serif; color: var(--em); } [data-theme="night"] .hc-nav b { color: var(--gold2); }
.hc-nav small { font-size: 12.5px; font-weight: 700; color: var(--mut); } .hc-nav .ic { font-size: 26px; font-weight: 800; line-height: 1; color: var(--goldd); }
.hc-wk, .hc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hc-wk span { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--goldd); padding: 4px 0; }
.hc-d { position: relative; aspect-ratio: 1 / 1.08; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(247,238,214,.6)); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-family: inherit; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 4px rgba(10,60,45,.08); }
[data-theme="night"] .hc-d { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.hc-d b { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.1; } .hc-d small { font-size: 10px; font-weight: 700; color: var(--mut); }
.hc-d.fr b { color: var(--em); } [data-theme="night"] .hc-d.fr b { color: #7fe0bd; }
.hc-d.wh { border-color: rgba(217,171,72,.7); background: linear-gradient(180deg, #fffaf0, #f8eac4); } [data-theme="night"] .hc-d.wh { background: linear-gradient(180deg, rgba(243,210,122,.18), rgba(243,210,122,.06)); }
.hc-d em { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #d4a537 60%, #8e6a1e); box-shadow: 0 0 4px rgba(217,171,72,.8); }
.hc-d.oc { border-color: #d4a537; }
.hc-d.td { background: linear-gradient(180deg, #17a077, #0a6047) !important; border-color: #f3d27a; box-shadow: 0 0 0 2px rgba(243,210,122,.6), 0 4px 10px rgba(6,60,44,.35); } .hc-d.td b { color: #fff8e6; } .hc-d.td small { color: #e9dcae; }
.hc-d.sel { outline: 2.5px solid var(--gold); outline-offset: 1px; }
.hc-lg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--mut); }
.hc-lg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 5px; vertical-align: -1px; } .hc-lg .l-oc { background: #d4a537; } .hc-lg .l-wh { background: #f8eac4; border: 1px solid #d4a537; } .hc-lg .l-td { background: #0f7d5c; }
.hc-lg .lnk { font: 800 12.5px 'Tajawal', sans-serif; color: var(--goldd); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.hc-sel { margin: 8px 4px 0; min-height: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.7; } .hc-sel:empty { display: none; }
.hc-ol { display: grid; gap: 10px; margin-bottom: 6px; }
.hc-o { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; } .hc-o > .ic3 { flex: 0 0 42px; width: 42px; height: 42px; }
.hc-o b { display: block; font: 700 16px/1.5 'Tajawal', sans-serif; color: var(--ink); } .hc-o p { margin: 4px 0 2px; font-size: 13.5px; line-height: 1.8; font-weight: 600; color: var(--ink); }
.hc-o small { font-size: 11.5px; font-weight: 800; color: var(--goldd); } .hc-dt { display: block; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.hc-dt em { font-style: normal; margin-right: 8px; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff8e6; background: linear-gradient(180deg, #17a077, #0a6047); }
.hc-cv { padding: 14px; } .hc-cv label { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.hc-cv input, .hc-cv select { font: 700 15px 'Tajawal', sans-serif; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--card); color: var(--ink); }
.hc-cv label input { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }
.hc-hr { display: grid; grid-template-columns: 70px 1fr 90px; gap: 8px; }
.hc-out { margin: 8px 0 14px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, rgba(23,160,119,.12), rgba(23,160,119,.05)); border: 1px solid rgba(23,160,119,.35); text-align: center; min-height: 24px; } .hc-out:last-child { margin-bottom: 0; }
.hc-out b { display: block; font-size: 16px; color: var(--em); } [data-theme="night"] .hc-out b { color: #7fe0bd; } .hc-out small { display: block; font-size: 12.5px; font-weight: 800; color: var(--goldd); }
/* v15: بطاقة إعلان لوحة الإدارة أعلى الرئيسية */
.vf-ann { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1.5px solid var(--gold, #c99a35); background: linear-gradient(180deg, #fffaf0, #f8efd8); }
.vf-ann-ic .ic3 { width: 40px; height: 40px; display: block; } .vf-ann-tx { flex: 1; min-width: 0; } .vf-ann-tx b { font: 700 15px 'Aref Ruqaa', 'Amiri', serif; color: var(--goldd, #8a6a1f); } .vf-ann-tx p { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.vf-ann-x { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(201,154,53,.6); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
[data-theme="night"] .vf-ann { background: linear-gradient(180deg, rgba(10,74,57,.9), rgba(4,36,27,.95)); } [data-theme="night"] .vf-ann-tx b { color: var(--gold2, #f3d27a); }
/* v66: بوصلة القبلة — تلميح المعايرة وبديل «لا يوجد حسّاس» */
.tl-cal { margin: 0 6px 10px; font-size: 13px; line-height: 1.7; font-weight: 700; color: var(--mut); }
.tl-fb { margin: 12px 2px 10px; padding: 12px 12px 10px; text-align: right; border-radius: 16px; background: rgba(217,171,72,.12); border: 1px solid rgba(217,171,72,.45); }
.tl-fb p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; font-weight: 600; color: var(--ink); }
.tl-fb-deg { text-align: center; } .tl-fb-deg b { display: block; font: 800 40px/1.2 'Tajawal', sans-serif; color: var(--em); } [data-theme="night"] .tl-fb-deg b { color: var(--gold2); }
.tl-fb-deg small { font-size: 13.5px; font-weight: 700; color: var(--mut); }
.tl-fb .tl-small { color: var(--mut); }
.tl-fb-set { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tl-fb-set small { flex: 1 0 100%; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--ink); }
.tl-fb .btn2 { margin-top: 10px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--goldd); background: transparent; color: var(--ink); font: 800 14.5px 'Tajawal', sans-serif; cursor: pointer; } .tl-fb-set .btn2 { margin-top: 0; }
