/* Iran Time tool — distinctive Tehran clock */
.it-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(14, 116, 144, 0.14), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #eef6f5 45%, #f1f5f9 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.it-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.55;
}
.it-shell > * { position: relative; z-index: 1; }

.it-clock {
  position: relative;
  width: min(300px, 72vw);
  height: min(300px, 72vw);
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, #f1f5f9 42%, #dbe7e6 100%);
  border: 10px solid #0f766e;
  box-shadow:
    inset 0 0 28px rgba(15, 118, 110, 0.14),
    0 0 0 6px rgba(15, 118, 110, 0.12),
    0 16px 36px rgba(15, 23, 42, 0.18);
  animation: it-clock-glow 4.5s ease-in-out infinite;
}
@keyframes it-clock-glow {
  0%, 100% { box-shadow: inset 0 0 28px rgba(15, 118, 110, 0.14), 0 0 0 6px rgba(15, 118, 110, 0.12), 0 16px 36px rgba(15, 23, 42, 0.18); }
  50% { box-shadow: inset 0 0 28px rgba(15, 118, 110, 0.2), 0 0 0 8px rgba(20, 184, 166, 0.2), 0 18px 40px rgba(15, 23, 42, 0.2); }
}
.it-clock__center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.25);
  z-index: 5;
}
.it-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 6px;
  background: #0f172a;
  z-index: 3;
}
.it-hand--hour {
  width: 7px;
  height: 28%;
  background: linear-gradient(180deg, #134e4a, #0f766e);
}
.it-hand--min {
  width: 4px;
  height: 38%;
  background: #1e293b;
}
.it-hand--sec {
  width: 2px;
  height: 44%;
  background: #ef4444;
  z-index: 4;
  transition: none;
}
.it-marker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 2px;
  height: 10px;
  background: #94a3b8;
  transform-origin: 50% calc(min(150px, 36vw) - 12px);
}
.it-marker.heavy {
  width: 3px;
  height: 15px;
  background: #0f766e;
}
.it-digital {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-weight: 800;
  background: linear-gradient(90deg, #0f766e, #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.it-date-card {
  border-radius: 1.15rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.it-date-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.it-date-card--jalali {
  background: linear-gradient(145deg, #ccfbf1, #f0fdfa);
  border-color: rgba(15, 118, 110, 0.18);
}
.it-date-card--gregorian,
.it-date-card--hijri {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(6px);
}
.it-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #134e4a;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.it-action-btn:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}
.it-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 118, 110, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
}
.it-sync-pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #94a3b8;
}
.it-sync-pill .dot.is-ok {
  background: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
  animation: it-pulse 1.8s ease-in-out infinite;
}
.it-sync-pill .dot.is-err { background: #f87171; }
@keyframes it-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
.it-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 50% 30%, rgba(20, 184, 166, 0.16), transparent 45%),
    #f8fafc;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.it-fullscreen.is-open { display: flex; }
.it-holiday { display: none; }
.it-holiday.is-visible { display: inline-flex; }
