.ap-clockstack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}
.ap-flipclock {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 0.95rem 1.45rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 38%, rgba(15,23,42,0.32) 100%),
    rgba(8, 15, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 26px 52px -22px rgba(0,0,0,.72),
    0 0 0 1px rgba(12,175,96,0.14),
    inset 0 1px 0 rgba(255,255,255,0.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.ap-flipclock::before {
  content: "";
  position: absolute;
  inset: 0.38rem 0.5rem auto;
  height: 42%;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
  pointer-events: none;
  z-index: 0;
}
.ap-flipclock__face {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.42rem;
}
.ap-flipclock__pair {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.26rem;
  padding-bottom: 0.1rem;
}
.ap-flipclock__pair small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.18rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.88);
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 0 14px rgba(12,175,96,0.45);
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset;
}
.ap-flip {
  --flip-w: 2.85rem;
  --flip-h: 3.85rem;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--flip-w);
  height: var(--flip-h);
  font-family: var(--px-display, 'Bricolage Grotesque', system-ui);
  font-weight: 800;
  font-size: 2.05rem;
  line-height: 1;
  color: #f8fafc;
  perspective: 360px;
  transform-style: preserve-3d;
  border-radius: 0.52rem;
  box-shadow:
    0 14px 22px -12px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.16);
  font-variant-numeric: tabular-nums;
  overflow: visible;
}
.ap-flip__top,
.ap-flip__bot,
.ap-flip__flap {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
}
.ap-flip__top,
.ap-flip__flap--top {
  top: 0;
  border-radius: 0.52rem 0.52rem 0 0;
  background: linear-gradient(180deg, #314865 0%, #172338 100%);
}
.ap-flip__bot,
.ap-flip__flap--bot {
  bottom: 0;
  border-radius: 0 0 0.52rem 0.52rem;
  background: linear-gradient(180deg, #0d1626 0%, #070c16 100%);
}
.ap-flip__top span,
.ap-flip__flap--top span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  margin: 0 !important;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ap-flip__bot span,
.ap-flip__flap--bot span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  margin: 0 !important;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1;
  text-shadow: 0 6px 12px rgba(0,0,0,0.45);
}
.ap-flip__seam {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 6;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.72) 12%, rgba(0,0,0,0.72) 88%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12);
  pointer-events: none;
}
.ap-flip__seam::before,
.ap-flip__seam::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 5px;
  height: 8px;
  border-radius: 1px;
  background: linear-gradient(180deg, #94a3b8, #334155);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.ap-flip__seam::before { left: -2px; }
.ap-flip__seam::after { right: -2px; }
.ap-flip__flap--top {
  transform-origin: bottom center;
  backface-visibility: hidden;
  z-index: 4;
  box-shadow: 0 10px 16px -8px rgba(0,0,0,0.55);
}
.ap-flip__flap--bot {
  transform-origin: top center;
  transform: rotateX(90deg);
  backface-visibility: hidden;
  z-index: 3;
}
.ap-flip__flap--top.is-play {
  animation: apFlipTop 0.36s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
.ap-flip__flap--bot.is-play {
  animation: apFlipBot 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes apFlipTop {
  0% { transform: rotateX(0deg); filter: brightness(1); }
  80% { filter: brightness(0.72); }
  100% { transform: rotateX(-90deg); filter: brightness(0.45); }
}
@keyframes apFlipBot {
  0% { transform: rotateX(90deg); filter: brightness(0.55); }
  100% { transform: rotateX(0deg); filter: brightness(1); }
}
.ap-flipclock__colon {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0.1rem 0.18rem;
  align-self: center;
  flex: 0 0 auto;
}
.ap-flipclock__colon i {
  display: block !important;
  width: 0.4rem !important;
  height: 0.4rem !important;
  min-width: 0.4rem;
  min-height: 0.4rem;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #34d399 !important;
  box-shadow: 0 0 0 2px rgba(12,175,96,0.18), 0 0 14px rgba(12,175,96,0.45);
  animation: apColonPulse 1s steps(1) infinite;
  font-size: 0 !important;
}
@keyframes apColonPulse {
  0%, 49% { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0.28; transform: scale(0.86); }
}
.ap-flipclock__ampm {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0 0 0.2rem 0.34rem;
}
.ap-flipclock__ampm span {
  min-width: 2.45rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.42rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(248,250,252,0.42);
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: color .35s ease, background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.ap-flipclock__ampm span.is-on {
  color: #042f1c;
  background: linear-gradient(180deg, #34d399, #0CAF60);
  border-color: transparent;
  box-shadow: 0 10px 18px -10px rgba(12,175,96,0.7);
  transform: translateY(-1px);
}
.ap-flipclock__date {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.86);
}
.ap-flipclock__tz {
  display: block;
  margin-top: -0.12rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6ee7b7;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(12,175,96,0.35);
}

.home-wow__card--clock .ap-flipclock__date { color: rgba(248, 250, 252, 0.88); }
.home-wow__card--clock .ap-flipclock__tz { color: #6ee7b7; }

.ap-clockstack--dash .ap-flip {
  --flip-w: 2.15rem;
  --flip-h: 2.9rem;
  font-size: 1.52rem;
}
.ap-clockstack--dash .ap-flipclock {
  padding: 0.62rem 0.72rem 1.28rem;
}

@media (max-width: 767.98px) {
  .ap-flip {
    --flip-w: 2rem;
    --flip-h: 2.7rem;
    font-size: 1.35rem;
  }
  .ap-flipclock { padding: 0.55rem 0.62rem 1.22rem; }
  .ap-flipclock__pair small { font-size: 0.58rem; letter-spacing: 0.14em; bottom: -1.05rem; }
  .ap-flipclock__ampm span { min-width: 2.1rem; font-size: 0.62rem; }
  .ap-flipclock__date { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-flipclock__colon i,
  .ap-flip__flap--top,
  .ap-flip__flap--bot {
    animation: none !important;
  }
}
