/* Floating bottom-right dock: "Download App" QR + WhatsApp support.
   Standalone file so every home-v2 page can load it regardless of which other sheets it uses. */
.fab-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s;
}
.fab-btn:hover { transform: translateY(-3px); }
.fab-btn svg { width: 26px; height: 26px; }
.fab-dl {
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 16px 40px -12px rgba(59, 114, 255, 0.75);
}
.fab-wa {
  background: linear-gradient(180deg, #2bd366, #128c4b);
  box-shadow: 0 16px 40px -12px rgba(37, 211, 102, 0.6);
}

.fab-card {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 270px;
  padding: 24px 20px 20px;
  border-radius: var(--r-l);
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, var(--card), var(--card-2)), var(--bg-1);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--glow);
  text-align: center;
  font-family: var(--f-body);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}
.fab-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fab-close:hover { border-color: var(--cyan); color: var(--text); }

.fab-title {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 14px;
}
.fab-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dim);
}
.fab-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* QR needs a light backing for reliable scanning */
.fab-qr { background: #fff; border-radius: var(--r-s); padding: 10px; display: inline-block; }
.fab-qr img { display: block; width: 150px; height: 150px; }

.fab-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 100px;
  white-space: nowrap;
  background: linear-gradient(180deg, #2bd366, #128c4b);
  color: #fff;
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: filter 0.2s;
}
.fab-wa-cta:hover { filter: brightness(1.08); }
.fab-wa-cta svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .fab-dock { right: 16px; bottom: 16px; gap: 12px; }
  .fab-btn { width: 50px; height: 50px; }
  .fab-card { width: min(270px, calc(100vw - 32px)); }
  .fab-qr img { width: 130px; height: 130px; }
}
