/* ⏱🎉 THE 24-HOUR CLOCK (clock.js) — Cyrus 2026-10-03: "make the 24 hour clock stand out and look festive".
   Every clock is real: the promise on sales pages, the customer's own countdown in the dashboard.
   A party card: shimmering gold-pink-teal border, gentle confetti, gold flip-clock tiles, a ribbon on top. */
@property --odc-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.odc {
  --g1: #FFD15C; --g2: #FFB627; --pink: #FF5DA2; --teal: #14B5A5; --ink: #1A0B3D;
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  max-width: 560px; margin: 0 auto; padding: 46px 20px 22px; border-radius: 26px;
  border: 4px solid transparent;
  background:
    radial-gradient(120% 90% at 50% 0%, #3B1E86 0%, #22104F 55%, #170A38 100%) padding-box,
    conic-gradient(from var(--odc-a), var(--g2), var(--pink), var(--teal), var(--g1), var(--pink), var(--g2)) border-box;
  box-shadow: 0 18px 50px rgba(26, 11, 61, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: odcSpin 7s linear infinite;
}
@keyframes odcSpin { to { --odc-a: 360deg; } }

/* confetti: twelve pieces drifting and twinkling, soft enough to read over */
.odc-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.odc-confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; opacity: .85; animation: odcFloat 5.5s ease-in-out infinite; }
.odc-confetti i:nth-child(3n)   { width: 9px; height: 9px; border-radius: 50%; }
.odc-confetti i:nth-child(1)  { left: 3%;  top: 10%; background: var(--g2);  transform: rotate(18deg); animation-delay: -.4s; }
.odc-confetti i:nth-child(2)  { left: 2%;  top: 58%; background: var(--pink); transform: rotate(-24deg); animation-delay: -1.1s; }
.odc-confetti i:nth-child(3)  { left: 5%;  top: 86%; background: var(--teal); animation-delay: -2s; }
.odc-confetti i:nth-child(4)  { left: 18%; top: 3%;  background: var(--g1);  transform: rotate(40deg); animation-delay: -3.2s; }
.odc-confetti i:nth-child(5)  { left: 30%; top: 95%; background: var(--pink); transform: rotate(-12deg); animation-delay: -.8s; }
.odc-confetti i:nth-child(6)  { left: 70%; top: 96%; background: #fff; animation-delay: -2.6s; }
.odc-confetti i:nth-child(7)  { left: 82%; top: 3%;  background: var(--g2);  transform: rotate(-35deg); animation-delay: -1.7s; }
.odc-confetti i:nth-child(8)  { left: 96%; top: 40%; background: var(--teal); transform: rotate(22deg); animation-delay: -3.8s; }
.odc-confetti i:nth-child(9)  { left: 95%; top: 12%; background: var(--pink); animation-delay: -4.4s; }
.odc-confetti i:nth-child(10) { left: 94%; top: 78%; background: var(--g1); transform: rotate(60deg); animation-delay: -2.9s; }
.odc-confetti i:nth-child(11) { left: 12%; top: 96%; background: var(--teal); opacity: .6; animation-delay: -1.3s; }
.odc-confetti i:nth-child(12) { left: 88%; top: 94%; background: #fff; transform: rotate(-50deg); animation-delay: -.2s; }
@keyframes odcFloat { 0%, 100% { translate: 0 0; opacity: .85; } 50% { translate: 0 -8px; opacity: .45; } }

/* the ribbon on top */
.odc-ribbon {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--g1), var(--g2)); color: var(--ink);
  font-family: var(--font-display, 'Archivo Black', Impact, sans-serif); font-size: .74rem; letter-spacing: .14em; white-space: nowrap;
  padding: 9px 18px 8px; border-radius: 0 0 16px 16px; box-shadow: 0 6px 16px rgba(255, 182, 39, .35);
}

/* gold flip-clock tiles */
.odc-tiles { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.odc-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.odc-tile b {
  position: relative; display: block; min-width: 1.55em; padding: 10px 8px 8px; border-radius: 16px;
  font-family: var(--font-display, 'Archivo Black', Impact, sans-serif); font-size: clamp(2.5rem, 12vw, 3.6rem); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
  background: linear-gradient(180deg, #FFE7A3 0%, var(--g1) 46%, var(--g2) 54%, #F0A21C 100%);
  box-shadow: 0 6px 0 #B97A0C, 0 12px 24px rgba(0, 0, 0, .35);
}
.odc-tile b::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(26, 11, 61, .16); }
.odc-tile small { font-family: var(--font-display, 'Archivo Black', Impact, sans-serif); font-size: .6rem; letter-spacing: .16em; color: rgba(255, 255, 255, .7); }
.odc-colon { font-style: normal; font-family: var(--font-display, 'Archivo Black', Impact, sans-serif); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.4; color: var(--g2); animation: odcBlink 1s steps(1) infinite; }
@keyframes odcBlink { 50% { opacity: .25; } }
.odc-tiles.late .odc-tile b { background: linear-gradient(180deg, #FFD0C8, #FF8A7A); box-shadow: 0 6px 0 #B5463A, 0 12px 24px rgba(0, 0, 0, .35); }

/* words */
.odc-copy { margin-top: 18px; }
.odc-s { margin: 0; color: rgba(255, 255, 255, .86); font-size: 1rem; line-height: 1.45; }
.odc-by { margin: 14px auto 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 16px; font-size: 1.02rem; line-height: 1.35; box-shadow: 0 4px 0 rgba(255, 182, 39, .9); }
.odc-by b { color: #6B2FD0; white-space: nowrap; }
.odc-g { display: inline-block; margin: 14px 0 0; background: rgba(20, 181, 165, .2); border: 1.5px solid rgba(20, 181, 165, .75); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: .95rem; }
.odc-g b, .odc-s b { color: var(--g1); }

/* dashboard countdown */
.odc-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin: 18px 0 0; overflow: hidden; }
.odc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--g2), var(--pink)); border-radius: 999px; transition: width 1s linear; }
.odc-due .odc-s { margin-top: 14px; }

/* wide screens: the clock lies down — tiles left, words right, short enough to keep the buttons in view */
@media (min-width: 760px) {
  .odc-sales { max-width: 880px; padding: 44px 30px 24px; }
  .odc-sales .odc-main { display: flex; align-items: center; justify-content: center; gap: 30px; text-align: left; }
  .odc-sales .odc-copy { margin-top: 0; max-width: 380px; }
  .odc-sales .odc-by { justify-content: flex-start; }
}
.hero .odc, .tt-hero .odc { margin-top: 28px; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .odc, .odc-confetti i, .odc-colon { animation: none; } }
