/* QR Code Modal Styles - Premium Creative Design System */

.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.qr-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18), 0 0 30px rgba(0, 0, 0, 0.06);
  padding: 36px 32px 30px 32px;
  width: 90%;
  max-width: 390px;
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.qr-modal-overlay.active .qr-modal-content {
  transform: translateY(0) scale(1);
}

/* Close Button */
.qr-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.qr-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #111;
  transform: scale(1.08);
}

/* Typography */
.qr-modal-header {
  margin-bottom: 22px;
}

.qr-modal-title {
  font-family: var(--font-family, sans-serif);
  font-size: 21px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px 0;
  letter-spacing: -0.025em;
}

.qr-modal-desc {
  font-family: var(--font-family, sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
  font-weight: 400;
  margin: 0;
}

/* QR Code Outer Card */
.qr-code-outer-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff !important;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-top: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-outer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scan Hint Chip */
.qr-scan-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qr-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Floating AI Action Button */
.floating-ai-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 42px rgba(138, 43, 226, 0.7), 0 0 36px rgba(255, 42, 133, 0.55), 0 0 18px rgba(0, 242, 254, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  background-color: #111;
  animation: btnBouncePopIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.floating-ai-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 54px rgba(138, 43, 226, 0.85), 0 0 46px rgba(255, 42, 133, 0.7), 0 0 24px rgba(0, 242, 254, 0.55);
}

.floating-ai-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff2a85 0%,
    #8a2be2 25%,
    #00f2fe 50%,
    #4169e1 75%,
    #ff2a85 100%
  );
  animation: spinLiquid 2.5s linear infinite;
  z-index: 0;
  filter: blur(6px);
}

.floating-ai-btn svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

@keyframes spinLiquid {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes btnBouncePopIn {
  0% {
    opacity: 0;
    transform: translateY(180px);
  }
  55% {
    opacity: 1;
    transform: translateY(-16px);
  }
  75% {
    transform: translateY(6px);
  }
  88% {
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slick Professional AI Tooltip Bubble */
.ai-tooltip-bubble {
  position: fixed;
  bottom: 114px;
  right: 32px;
  z-index: 9901;
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F5F7;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.ai-tooltip-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-tooltip-bubble:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-2px) scale(1.02) !important;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(24, 24, 28, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-arrow {
  position: absolute;
  bottom: -5px;
  right: 24px;
  width: 8px;
  height: 8px;
  background: rgba(18, 18, 22, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ai-tooltip-bubble:hover .tooltip-arrow {
  background: rgba(24, 24, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.24);
}

.tooltip-icon {
  width: 13px;
  height: 13px;
  fill: var(--color-primary-blue, #5AA4F9);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ai-tooltip-bubble:hover .tooltip-icon {
  transform: scale(1.12);
}

/* Dark Mode Creative Overrides */
.dark-mode .qr-modal-content {
  background-color: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(138, 43, 226, 0.18);
}

.dark-mode .qr-modal-badge {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(58, 134, 255, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.dark-mode .qr-modal-title {
  color: #ffffff !important;
}

.dark-mode .qr-modal-desc {
  color: #f4f4f5 !important;
  font-weight: 500;
}

.dark-mode .qr-modal-subdesc {
  color: #a1a1aa !important;
}

.dark-mode .qr-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.dark-mode .qr-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dark-mode .qr-code-outer-card {
  background-color: #ffffff !important;
  border-color: #27272a;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .qr-scan-hint {
  color: #374151;
}
