body[data-page="dashboard"] .floating-install {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom));
  display: grid;
  width: min(210px, calc(100vw - 138px));
  min-height: 58px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #ff8a00 0%, #ff5e5e 52%, #ff2d80 100%);
  box-shadow: 0 16px 38px rgba(255, 45, 128, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body[data-page="dashboard"] .floating-install::before {
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  content: "";
}

body[data-page="dashboard"] .floating-install:hover {
  filter: saturate(1.08);
  box-shadow: 0 18px 44px rgba(255, 45, 128, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateX(-50%) translateY(-2px);
}

body[data-page="dashboard"] .floating-install:active {
  transform: translateX(-50%) scale(0.96);
}

body[data-page="dashboard"] .floating-install-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body[data-page="dashboard"] .floating-install-icon svg { width: 21px; height: 21px; stroke-width: 2.25; }
body[data-page="dashboard"] .floating-install-copy { min-width: 0; text-align: left; }
body[data-page="dashboard"] .floating-install-copy strong,
body[data-page="dashboard"] .floating-install-copy small { display: block; color: #fff; white-space: nowrap; }
body[data-page="dashboard"] .floating-install-copy strong { overflow: hidden; font-size: 12px; font-weight: 850; letter-spacing: -0.01em; text-overflow: ellipsis; }
body[data-page="dashboard"] .floating-install-copy small { margin-top: 1px; font-size: 9px; font-weight: 650; opacity: 0.78; }

body[data-page="dashboard"] .floating-install.is-installed {
  background: linear-gradient(120deg, #059669, #10b981);
  pointer-events: none;
}

body[data-page="dashboard"] .floating-support {
  position: fixed !important;
  z-index: 121 !important;
  right: max(12px, calc((100vw - 720px) / 2 + 12px)) !important;
  bottom: calc(99px + env(safe-area-inset-bottom)) !important;
  display: grid !important;
  width: 58px !important;
  height: 58px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(145deg, #111827 5%, #293449 58%, #ff2d80 145%) !important;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.3), 0 0 0 6px rgba(255, 45, 128, 0.08) !important;
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
}

body[data-page="dashboard"] .floating-support::before {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 1px solid rgba(255, 45, 128, 0.24);
  border-radius: 50%;
  content: "";
  animation: novaSupportPulse 2.2s ease-out infinite;
}

body[data-page="dashboard"] .floating-support::after {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
  content: "";
  box-shadow: 0 2px 7px rgba(34, 197, 94, 0.42);
}

body[data-page="dashboard"] .floating-support:hover { transform: translateY(-2px) scale(1.03); }
body[data-page="dashboard"] .floating-support:active { transform: scale(0.91); }
body[data-page="dashboard"] .floating-support svg { width: 25px !important; height: 25px !important; stroke-width: 2.1; }

.a2hs-guide {
  position: fixed;
  z-index: 700;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
}

.a2hs-guide.hidden { display: none; }
.a2hs-guide-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, 0.56); backdrop-filter: blur(8px); }
.a2hs-guide-card {
  position: relative;
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  animation: a2hsGuideUp 220ms ease-out both;
}

.a2hs-guide-head { display: flex; gap: 13px; align-items: center; }
.a2hs-guide-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #ff8a00, #ff2d80); box-shadow: 0 10px 24px rgba(255, 45, 128, 0.22); }
.a2hs-guide-icon svg { width: 23px; height: 23px; }
.a2hs-guide h2 { margin: 0; color: #111827; font-size: 18px; }
.a2hs-guide p { margin: 5px 0 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.a2hs-guide-steps { display: grid; gap: 9px; margin-top: 18px; }
.a2hs-guide-step { display: grid; min-height: 48px; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 15px; color: #334155; background: #f8fafc; font-size: 12px; font-weight: 700; }
.a2hs-guide-step b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: #111827; font-size: 11px; }
.a2hs-guide-close { width: 100%; min-height: 46px; margin-top: 16px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(120deg, #ff8a00, #ff2d80); font-weight: 850; }

.interaction-toast {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: calc(176px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.interaction-toast.error { background: rgba(190, 24, 93, 0.96); }
body[data-page="profile"] #installApp.is-installed { opacity: 0.68; }

@keyframes novaSupportPulse { 0% { opacity: 0.7; transform: scale(0.82); } 75%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes a2hsGuideUp { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 360px) {
  body[data-page="dashboard"] .floating-install { width: calc(100vw - 132px); min-height: 54px; padding-right: 10px; }
  body[data-page="dashboard"] .floating-install-icon { width: 38px; height: 38px; }
  body[data-page="dashboard"] .floating-install-copy strong { font-size: 10px; }
  body[data-page="dashboard"] .floating-support { right: 9px !important; width: 54px !important; height: 54px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="dashboard"] .floating-support::before,
  .a2hs-guide-card { animation: none; }
}
