/* ---------------------------------------------------------
   Badge (floating button)
--------------------------------------------------------- */

.vs-badge {
  position: fixed;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.vs-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.vs-badge-icon {
  width: 26px;
  height: 26px;
  background: #000;
  mask-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M3 3h6v6H3V3zm2 2v2h2V5H5zm10-2h6v6h-6V3zm2 2v2h2V5h-2zM3 15h6v6H3v-6zm2 2v2h2v-2H5zm10-2h6v6h-6v-6zm2 2v2h2v-2h-2z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Badge positions */
.vs-pos-1 { bottom: 24px; right: 24px; }
.vs-pos-2 { bottom: 24px; left: 24px; }
.vs-pos-3 { top: 24px; right: 24px; }
.vs-pos-4 { top: 24px; left: 24px; }

/* ---------------------------------------------------------
   Modal Backdrop
--------------------------------------------------------- */

.vs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vsFadeIn .18s ease;
}

@keyframes vsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------
   Modal Window
--------------------------------------------------------- */

.vs-modal {
  width: 320px;
  max-width: 90%;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  animation: vsPop .22s cubic-bezier(.18,.89,.32,1.28);
}

@keyframes vsPop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Close button */
.vs-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  line-height: 26px;
  cursor: pointer;
  color: #444;
  transition: color .15s ease;
}

.vs-modal-close:hover {
  color: #000;
}

/* Title */
.vs-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
  color: #111;
}

/* URL text */
.vs-modal-url {
  font-size: 13px;
  color: #444;
  text-align: center;
  margin-bottom: 14px;
  word-break: break-all;
}

/* QR container */
.vs-modal-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* Footer */
.vs-modal-footer {
  text-align: center;
  font-size: 12px;
  color: #777;
}
