/* =============================================================
   FLIP COUNTER COMPONENT STYLES (PRECISE 3D FLIP ANIMATED)
   ============================================================= */

.tick {
  font-size: 0.9rem;
  white-space: nowrap;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.tick-group {
  margin: 0 0.25em;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #f1f3f5;
  border: 1px solid #e9ecef;
  padding: 0.35rem 0.5rem 0.25rem;
  border-radius: 6px;
}

.tick-flip-card {
  display: flex;
  gap: 3px;
}

/* FLIP DIGIT BOX */
.tick-flip-digit {
  position: relative;
  width: 28px;
  height: 38px;
  background: rgb(59, 61, 59);
  color: rgb(255, 255, 255);
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  perspective: 400px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* Horizontal Crease Line through Center */
.tick-flip-digit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* BASE STATIC NUMBER DISPLAY */
.tick-num-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: rgb(255, 255, 255);
  z-index: 1;
}

/* FLAP LEAVES FOR 3D ANIMATION */
.tick-flap-top,
.tick-flap-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: rgb(59, 61, 59);
  backface-visibility: hidden;
  z-index: 2;
}

.tick-flap-top {
  top: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transform-origin: 50% 100%;
}

.tick-flap-bottom {
  bottom: 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  transform-origin: 50% 0%;
}

/* Precise Inner Text Placement for Top & Bottom Leaves */
.tick-flap-top span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: rgb(255, 255, 255);
}

.tick-flap-bottom span {
  position: absolute;
  top: -19px;
  left: 0;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: rgb(255, 255, 255);
}

/* SMOOTH FLIP ANIMATIONS */
.tick-flip-digit.flip-anim .tick-flap-top {
  animation: flapFoldTop 0.22s ease-in forwards;
}

.tick-flip-digit.flip-anim .tick-flap-bottom {
  animation: flapUnfoldBottom 0.22s ease-out 0.22s forwards;
}

@keyframes flapFoldTop {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-90deg); }
}

@keyframes flapUnfoldBottom {
  0% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

.tick-label {
  margin-top: 0.25em;
  font-size: 0.62rem;
  color: rgb(90, 93, 99) !important;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tick-colon {
  font-size: 1.2rem;
  font-weight: 900;
  color: rgb(90, 93, 99);
  margin: 0 0.15em 0.7em;
}
