.swap-wrap {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.idm-headline {
  font-family: inherit !important;
  font-size: 45px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
}

.word-old {
  display: inline-block !important;
  position: relative !important;
  color: #ffffff !important;
  transition: opacity 0.6s ease;
}
.word-old::after {
  content: '';
  position: absolute;
  left: 0;
  top: 52%;
  width: 0%;
  height: 3px;
  background: #f7ab05;
  transition: width 1.2s ease;
}
.word-old.strike::after { width: 100%; }
.word-old.fade-out { opacity: 0 !important; }

.word-new {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 0 !important;
  opacity: 0 !important;
  white-space: nowrap;
  padding-bottom: 5px;
  color: #f7ab05 !important;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.word-new::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #f7ab05;
  transition: width 1.2s ease 0.4s;
}
.word-new.fade-in { opacity: 1 !important; }
.word-new.fade-in::after { width: 100%; }

@media (max-width: 768px) {
  .idm-headline {
    font-size: 28px !important;
  }
}

/* ── Typing service animation ── */
.typing-service {
  color: #f7ab05;
  border-right: 3px solid #f7ab05;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%,100% { border-color: #f7ab05; }
  50%      { border-color: transparent; }
}

/* ── About page cursor ── */
.idm-about-cursor {
  display: inline-block;
  width: 3px;
  background: #ffffff;
  margin-left: 4px;
  vertical-align: middle;
  height: 0.85em;
  animation: aboutBlink 0.8s step-end infinite;
}

@keyframes aboutBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── IDM Difference underline ── */
#idmDifference.underline-active #idmUnderline {
  width: 100% !important;
}