/* Fixed YVI App button — top right (site-wide) */
.yvi-app-fab {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  bottom: auto;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem 0.65rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: #0f1f16;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f0e0b0 0%, #c4a35a 55%, #a8843a 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(196, 163, 90, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.yvi-app-fab:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 213, 163, 0.55);
}

.yvi-app-fab:active {
  transform: translateY(0);
}

.yvi-app-fab__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1e5c3a;
  box-shadow: 0 0 0 3px rgba(30, 92, 58, 0.22);
  flex-shrink: 0;
}

.yvi-app-fab__text {
  line-height: 1;
  white-space: nowrap;
}

.yvi-app-fab__text small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

@media (max-width: 480px) {
  .yvi-app-fab {
    top: max(10px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    padding: 0.6rem 0.85rem 0.6rem 0.72rem;
    font-size: 0.8rem;
  }
}

/* Hide on app page itself if style accidentally loaded */
body.yvi-app-page .yvi-app-fab {
  display: none !important;
}
