html[data-sitehub-pending] .app-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-sitehub-ready] .app-shell {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.sitehub-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
}

html[data-sitehub-ready] .sitehub-loading {
  display: none;
}

.sitehub-loading__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e5e7eb;
  border-top-color: #45a43c;
  border-radius: 50%;
  animation: sitehubSpin 0.75s linear infinite;
}

.sitehub-loading__text {
  font-family: "Open Sans", "Poppins", sans-serif;
  font-size: 14px;
  color: #64748b;
}

@keyframes sitehubSpin {
  to {
    transform: rotate(360deg);
  }
}

.sitehub-anchor-flash {
  outline: 3px solid rgba(69, 164, 60, 0.95) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 4px rgba(69, 164, 60, 0.35);
  border-radius: 8px;
  animation: sitehubAnchorFlash 1.2s ease-in-out infinite;
  z-index: 5;
  position: relative;
}

@keyframes sitehubAnchorFlash {
  0%,
  100% {
    outline-color: rgba(69, 164, 60, 0.45);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(69, 164, 60, 0.2);
  }
  50% {
    outline-color: rgba(69, 164, 60, 1);
    outline-offset: 6px;
    box-shadow: 0 0 0 6px rgba(69, 164, 60, 0.4);
  }
}

[data-sitehub="ios_steps_images"],
[data-sitehub="android_steps_images"] {
  overflow: visible !important;
  height: auto !important;
  touch-action: pan-x pan-y;
}

html,
body.downloadIOS,
body.downloadIOS .app-shell,
#hero_hdios,
#hero_hdios .container {
  touch-action: pan-x pan-y;
}

[data-sitehub="ios_steps_images"] > [class*="col-"],
[data-sitehub="android_steps_images"] > [class*="col-"] {
  position: relative;
  overflow: visible;
  transition: z-index 0s;
}

[data-sitehub="ios_steps_images"] > [class*="col-"]:hover,
[data-sitehub="android_steps_images"] > [class*="col-"]:hover {
  z-index: 20;
}

[data-sitehub="ios_steps_images"] img,
[data-sitehub="android_steps_images"] img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
  touch-action: pan-x pan-y;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) and (pointer: fine) {
  [data-sitehub="ios_steps_images"] img,
  [data-sitehub="android_steps_images"] img {
    transition: transform 0.25s ease-out;
  }

  [data-sitehub="ios_steps_images"] > [class*="col-"]:hover img,
  [data-sitehub="android_steps_images"] > [class*="col-"]:hover img {
    transform: scale(1.02);
  }
}

/* Lightbox xem trước ảnh steps */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.img-lightbox.is-open {
  display: block;
}

.img-lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px 56px;
  box-sizing: border-box;
}

.img-lightbox__img {
  display: block;
  margin: 0 auto;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.img-lightbox button.img-lightbox__close,
.img-lightbox button.img-lightbox__nav {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #111 !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font: 0 / 0 a !important;
  cursor: pointer;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.img-lightbox button.img-lightbox__close:focus,
.img-lightbox button.img-lightbox__nav:focus,
.img-lightbox button.img-lightbox__close:focus-visible,
.img-lightbox button.img-lightbox__nav:focus-visible {
  outline: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.img-lightbox button.img-lightbox__close {
  top: 16px;
  right: 16px;
}

.img-lightbox button.img-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.img-lightbox button.img-lightbox__prev {
  left: 16px;
}

.img-lightbox button.img-lightbox__next {
  right: 16px;
}

.img-lightbox button.img-lightbox__nav.is-disabled,
.img-lightbox button.img-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.img-lightbox button.img-lightbox__close::before,
.img-lightbox button.img-lightbox__nav::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.img-lightbox button.img-lightbox__close::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.img-lightbox button.img-lightbox__prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E");
}

.img-lightbox button.img-lightbox__next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

.img-lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-family: "Open Sans", "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}

@media screen and (max-width: 600px) {
  .img-lightbox__stage {
    padding: 56px 48px 48px;
  }

  .img-lightbox button.img-lightbox__nav {
    width: 40px !important;
    height: 40px !important;
  }

  .img-lightbox button.img-lightbox__prev {
    left: 8px;
  }

  .img-lightbox button.img-lightbox__next {
    right: 8px;
  }

  .img-lightbox button.img-lightbox__close {
    width: 38px !important;
    height: 38px !important;
    top: 10px;
    right: 10px;
  }
}
