/* ====== نوار تاریخ و ساعت ====== */
.datebar{--c-gold:#d4ae55;--c-hi:#f7e6ad;--c-txt:#f4ecd8;--c-mut:#958a72;--c-line:rgba(232,207,139,.18);
  display:inline-flex;align-items:center;gap:.85rem;padding:.42rem .95rem .42rem .8rem;border-radius:99px;
  background:linear-gradient(180deg,rgba(255,244,214,.07),rgba(255,244,214,.025));border:1px solid var(--c-line);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 rgba(255,240,200,.07),0 10px 30px -18px rgba(0,0,0,.9);
  color:var(--c-txt);white-space:nowrap;font-size:.84rem;line-height:1.35}
.db-item{display:inline-flex;align-items:center;gap:.5rem;min-width:0}
.db-txt{display:flex;flex-direction:column}
.db-txt small{display:inline-flex;align-items:center;gap:.25rem;font-size:.68rem;color:var(--c-mut);font-weight:600}
.db-txt>span{font-weight:700}
.db-g .db-txt{font-family:ui-sans-serif,system-ui,"Segoe UI",Roboto,sans-serif;letter-spacing:.01em}
.db-g .db-txt small{font-weight:500}
.db-time{font-variant-numeric:tabular-nums;min-width:4.6em;color:var(--c-hi)}
.db-sep{width:1px;height:26px;background:linear-gradient(transparent,var(--c-line),transparent);flex:none}
.db-ic{position:relative;width:30px;height:30px;flex:none;display:grid;place-items:center}
.db-ic svg{width:100%;height:100%;overflow:visible}

/* تقویم شمسی با عدد روز */
.cal-body{fill:rgba(212,174,85,.1);stroke:var(--c-gold);stroke-width:1.6}
.cal-top{fill:var(--c-gold)}
.cal-line{stroke:var(--c-gold);stroke-width:1}
.cal-ring{stroke:var(--c-hi);stroke-width:2.4;stroke-linecap:round}
.db-cal b{position:absolute;inset:auto 0 3px 0;text-align:center;font-size:.72rem;font-weight:900;color:var(--c-hi);line-height:1}
.db-cal svg{animation:calSwing 5s ease-in-out infinite;transform-origin:50% 10%}

/* کره زمین چرخان (میلادی) */
.gl-o{fill:rgba(120,170,230,.12);stroke:var(--c-gold);stroke-width:1.6}
.gl-m,.gl-m2{fill:none;stroke:var(--c-hi);stroke-width:1.1;opacity:.85}
.gl-m{animation:globeA 4s linear infinite}
.gl-m2{animation:globeB 4s linear infinite}
.gl-l{stroke:var(--c-gold);stroke-width:1;opacity:.7}

/* ساعت عقربه‌ای واقعی */
.ck-face{fill:rgba(212,174,85,.1);stroke:var(--c-gold);stroke-width:1.6}
.ck-ticks path{stroke:var(--c-hi);stroke-width:1.6;stroke-linecap:round}
.ck-h,.ck-m,.ck-s{transform-origin:16px 16px;stroke-linecap:round}
.ck-h{stroke:var(--c-hi);stroke-width:2.4}
.ck-m{stroke:var(--c-txt);stroke-width:1.7;transition:transform .5s ease}
.ck-s{stroke:#ef6a4f;stroke-width:1;transition:transform .35s cubic-bezier(.34,1.8,.64,1)}
.ck-c{fill:var(--c-gold)}
.db-sun,.db-moon{width:12px;height:12px;flex:none}
.db-sun{fill:#f4c64e;stroke:#f4c64e;stroke-width:1.3;stroke-linecap:round;animation:sunSpin 12s linear infinite}
.db-moon{display:none;fill:#cfdcff}
.is-night .db-sun{display:none}
.is-night .db-moon{display:block;animation:moonGlow 3s ease-in-out infinite}

@keyframes calSwing{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-8deg)}90%{transform:rotate(6deg)}95%{transform:rotate(-3deg)}}
@keyframes globeA{0%{rx:12px}50%{rx:0px}100%{rx:12px}}
@keyframes globeB{0%{rx:0px;opacity:0}50%{rx:12px;opacity:.85}100%{rx:0px;opacity:0}}
@keyframes sunSpin{to{transform:rotate(360deg)}}
@keyframes moonGlow{50%{filter:drop-shadow(0 0 3px #cfdcff)}}
.db-sun{transform-origin:8px 8px;transform-box:view-box}

/* نسخه روشن (پنل مدیریت) */
.datebar.light{--c-gold:#b48a32;--c-hi:#8a6516;--c-txt:#3d362b;--c-mut:#8a8274;--c-line:#e6dcc8;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);backdrop-filter:none}
.datebar.light .db-time{color:#5b4410}
.datebar.light .gl-o{fill:rgba(80,130,200,.08)}

/* فشرده */
.datebar.compact{gap:.6rem;padding:.3rem .75rem;font-size:.8rem}
.datebar.compact .db-ic{width:24px;height:24px}
.datebar.compact .db-cal b{font-size:.6rem;bottom:2px}
.datebar.compact small{display:none}

@media (max-width:560px){
  .datebar{gap:.45rem;padding:.35rem .6rem;font-size:.74rem}
  .db-item{gap:.3rem}
  .db-ic{width:24px;height:24px}
  .db-cal b{font-size:.6rem;bottom:2px}
  .db-txt small{font-size:.6rem}
  .db-sep{height:22px}
  .db-time{min-width:4.5em}
}
@media (max-width:370px){.db-g small{display:none}}
@media (prefers-reduced-motion:reduce){.datebar *{animation:none!important}}
