.circular-copy-text {
  margin: 14px 0 14px;
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.7;
}

.circular-boundary-label {
  margin: 0;
  display: grid;
  gap: 4px;
  color: rgba(255, 233, 177, 0.86);
}

.circular-panel {
  margin-top: 18px;
  padding: 28px 30px 34px;
  background:
    linear-gradient(180deg, rgba(13, 25, 42, 0.92), rgba(8, 16, 28, 0.82)),
    rgba(10, 20, 36, 0.82);
  box-shadow: 0 26px 84px rgba(5, 12, 24, 0.28);
  animation: rise-in 1080ms ease-out both;
}

.circular-clock-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: visible;
  padding: 24px 40px 72px;
}

.circular-clock {
  position: relative;
  width: min(100%, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 238, 197, 0.04), transparent 14%),
    radial-gradient(circle at 48% 55%, rgba(82, 123, 175, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(19, 34, 57, 0.18), rgba(10, 18, 30, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 0 14px rgba(255, 191, 108, 0.025),
    0 28px 64px rgba(4, 10, 20, 0.28);
  overflow: visible;
  isolation: isolate;
  --circular-gradient: conic-gradient(from 0deg, rgba(40, 29, 62, 0.95) 0deg, rgba(20, 32, 64, 0.95) 80deg, rgba(80, 121, 172, 0.95) 120deg, rgba(244, 194, 116, 0.95) 170deg, rgba(255, 237, 182, 0.95) 240deg, rgba(224, 159, 98, 0.95) 300deg, rgba(98, 63, 56, 0.95) 360deg);
}

.circular-clock::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 62%),
    var(--circular-gradient);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 212, 0.1),
    0 0 0 4px rgba(255, 244, 212, 0.01),
    inset 0 0 36px rgba(255, 214, 138, 0.04);
}

.circular-clock::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(180deg, rgba(18, 31, 52, 0.56), rgba(7, 13, 23, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.circular-major-ticks,
.circle-midnight-marker,
.circle-subuh-marker,
.circle-markers,
.circle-maghrib-toggle,
.circle-hand,
.circle-now-label,
.circle-center,
.circle-boundary-marker {
  position: absolute;
  z-index: 2;
}

.circle-maghrib-toggle {
  left: 50%;
  top: 10.5%;
  z-index: 5;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.circle-maghrib-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 244, 212, 0.84);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 245, 220, 0.95), rgba(255, 183, 107, 0.78));
  box-shadow:
    0 0 0 6px rgba(255, 210, 122, 0.06),
    0 0 18px rgba(255, 210, 122, 0.22);
  transform: translate(-50%, -50%) rotate(45deg);
}

.circle-maghrib-toggle.is-open::before {
  box-shadow:
    0 0 0 8px rgba(255, 244, 212, 0.12),
    0 0 20px rgba(255, 210, 122, 0.28);
}

.circle-maghrib-toggle:focus-visible {
  outline: none;
}

.circle-boundary-marker {
  left: 50%;
  top: 9.5%;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 244, 212, 0.14);
  border-radius: 16px;
  background: rgba(8, 18, 30, 0.86);
  color: rgba(255, 236, 191, 0.96);
  transform: translate(-50%, -100%);
  box-shadow: 0 10px 22px rgba(4, 10, 20, 0.22);
  text-align: center;
}

.circle-boundary-marker[hidden] {
  display: none;
}

.boundary-marker-name {
  color: rgba(255, 244, 220, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-marker-time {
  color: rgba(255, 236, 191, 0.96);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

.circle-midnight-marker {
  width: 1px;
  height: 26%;
  background: linear-gradient(180deg, transparent 0%, rgba(198, 220, 255, 0.08) 18%, rgba(214, 230, 255, 0.54) 50%, rgba(198, 220, 255, 0.08) 82%, transparent 100%);
  box-shadow: 0 0 8px rgba(186, 210, 255, 0.1);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.circle-subuh-marker {
  width: 4px;
  height: 41%;
  background: linear-gradient(180deg, transparent 0%, rgba(152, 194, 255, 0.14) 10%, rgba(196, 224, 255, 0.9) 42%, rgba(255, 239, 188, 0.95) 50%, rgba(196, 224, 255, 0.9) 58%, rgba(152, 194, 255, 0.14) 90%, transparent 100%);
  box-shadow:
    0 0 16px rgba(188, 221, 255, 0.28),
    0 0 32px rgba(255, 232, 170, 0.1);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.circle-markers {
  inset: 0;
}

.circle-marker {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  transform: translate(-50%, -50%);
}

.circle-marker.is-toggle {
  width: 42px;
  height: 42px;
  cursor: pointer;
  touch-action: manipulation;
}

.circle-marker.is-toggle:focus-visible {
  outline: none;
}

.circle-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 244, 212, 0.9);
  border-radius: 50%;
  background: #244a70;
  box-shadow: 0 0 0 7px rgba(255, 210, 122, 0.08);
  transform: translate(-50%, -50%);
}

.circle-marker.prayer-subuh::before {
  width: 11px;
  height: 11px;
  border-color: rgba(235, 244, 255, 0.98);
  border-radius: 50%;
  background: #406390;
  box-shadow:
    0 0 0 7px rgba(193, 222, 255, 0.12),
    0 0 18px rgba(214, 232, 255, 0.14);
}

.circle-marker.prayer-syuruk::before {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 244, 212, 0.76);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 240, 198, 0.95) 0 34%, rgba(255, 196, 109, 0.88) 35% 54%, rgba(255, 196, 109, 0) 55% 100%);
  clip-path: polygon(50% 0%, 62% 24%, 86% 14%, 76% 38%, 100% 50%, 76% 62%, 86% 86%, 62% 76%, 50% 100%, 38% 76%, 14% 86%, 24% 62%, 0% 50%, 24% 38%, 14% 14%, 38% 24%);
  box-shadow:
    0 0 0 7px rgba(255, 210, 122, 0.08),
    0 0 16px rgba(255, 200, 112, 0.18);
}

.circle-marker.prayer-syuruk .circle-marker-label {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(7, 16, 29, 0.48);
  box-shadow: 0 6px 16px rgba(5, 12, 24, 0.12);
}

.circle-marker.prayer-syuruk .circle-marker-name {
  color: rgba(255, 244, 220, 0.72);
}

.circle-marker.prayer-syuruk .circle-marker-time {
  color: rgba(255, 244, 220, 0.6);
}

.circle-marker.prayer-zohor::before {
  width: 12px;
  height: 12px;
  border-color: rgba(255, 244, 212, 0.92);
  border-radius: 3px;
  background: #31557b;
  box-shadow:
    0 0 0 7px rgba(255, 210, 122, 0.08),
    0 0 14px rgba(126, 174, 230, 0.12);
}

.circle-marker.prayer-asar::before {
  width: 14px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 240, 198, 0.98), rgba(255, 171, 96, 0.82));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  box-shadow:
    0 0 0 7px rgba(255, 210, 122, 0.07),
    0 0 16px rgba(255, 179, 104, 0.14);
}

.circle-marker.prayer-isyak::before {
  width: 15px;
  height: 13px;
  border-color: rgba(232, 226, 255, 0.9);
  border-radius: 0;
  background: #473a78;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow:
    0 0 0 7px rgba(160, 146, 234, 0.08),
    0 0 16px rgba(137, 126, 225, 0.14);
}

.circle-marker.is-toggle.is-open::before {
  box-shadow:
    0 0 0 8px rgba(255, 244, 212, 0.12),
    0 0 18px rgba(255, 210, 122, 0.26);
}

.circle-marker-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 3px;
  min-width: 84px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 16, 29, 0.8);
  box-shadow: 0 10px 24px rgba(5, 12, 24, 0.18);
  backdrop-filter: blur(10px);
  text-align: center;
}

.circle-marker-label[hidden] {
  display: none;
}

.circle-marker-label.anchor-top {
  transform: translate(-50%, calc(-100% - 16px));
}

.circle-marker-label.anchor-right {
  transform: translate(16px, -50%);
  text-align: left;
}

.circle-marker-label.anchor-bottom {
  transform: translate(-50%, 16px);
}

.circle-marker-label.anchor-left {
  transform: translate(calc(-100% - 16px), -50%);
  text-align: right;
}

.circle-marker-name {
  color: #fff8ea;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.05;
}

.circle-marker-time {
  color: rgba(255, 244, 220, 0.86);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1;
}

.circle-hand {
  left: 50%;
  top: 50%;
  width: 4px;
  height: 24%;
  z-index: 4;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 245, 220, 0.95), rgba(255, 157, 87, 0.82));
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 50% 100%;
  box-shadow: 0 0 18px rgba(255, 210, 122, 0.36);
}

.circle-hand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 244, 212, 0.78);
  border-radius: 50%;
  background: rgba(255, 157, 87, 0.84);
  box-shadow: 0 0 10px rgba(255, 157, 87, 0.12);
  transform: translateX(-50%);
}

.circle-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 235, 196, 0.72), rgba(255, 235, 196, 0.14));
  transform: translateX(-50%);
}

.circle-now-label {
  left: 50%;
  top: 8%;
  z-index: 5;
  padding: 8px 10px;
  border: 1px solid rgba(255, 244, 212, 0.14);
  border-radius: 12px;
  background: rgba(8, 18, 30, 0.92);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(5, 12, 24, 0.22);
}

.circle-center {
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 4px solid rgba(255, 244, 212, 0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 249, 236, 0.42), rgba(255, 157, 87, 0.92));
  box-shadow:
    0 0 0 12px rgba(255, 210, 122, 0.08),
    0 0 20px rgba(255, 157, 87, 0.2);
  transform: translate(-50%, -50%);
}

@media (max-width: 720px) {
  .circular-panel {
    padding: 24px 18px;
  }

  .circular-clock-wrap {
    padding: 34px 24px 56px;
  }

  .circle-boundary-marker {
    font-size: 0.74rem;
    padding: 7px 9px;
  }

  .circle-marker-label {
    min-width: 0;
    padding: 5px 7px;
  }

  .circle-marker-name {
    font-size: 0.74rem;
  }

  .circle-marker-time {
    font-size: 0.7rem;
  }

  .circle-now-label {
    font-size: 0.76rem;
    padding: 7px 8px;
  }
}
