/* ========================================================
   GDS Quantum AI Multimodal Suite (HQ-Only Staging)
   imart Online Platform · GDS Freedom System
   ======================================================== */

.gds-hq-quantum-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(168,85,247,0.14));
  border: 1px solid rgba(147,51,234,0.35);
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(168,85,247,0.18);
  animation: gdsHqGlow 3s ease-in-out infinite alternate;
}

@keyframes gdsHqGlow {
  0% { box-shadow: 0 0 6px rgba(168,85,247,0.15); border-color: rgba(147,51,234,0.3); }
  100% { box-shadow: 0 0 16px rgba(168,85,247,0.45); border-color: rgba(147,51,234,0.7); }
}

/* AI Laser Scanning Effect on Receipt / Slip Preview */
.gds-slip-scan-container {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  border: 1.5px solid #334155;
  margin: 10px 0;
  box-shadow: 0 8px 24px rgba(15,23,42,0.35);
}

.gds-slip-scan-container img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.gds-slip-scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(6,182,212,0) 0%, #06b6d4 25%, #3b82f6 50%, #a855f7 75%, rgba(168,85,247,0) 100%);
  box-shadow: 0 0 14px #06b6d4, 0 0 24px #3b82f6;
  z-index: 10;
  pointer-events: none;
  animation: laserScanMove 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gds-slip-scan-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(6,182,212,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 5;
}

@keyframes laserScanMove {
  0% { top: 0%; opacity: 0.2; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 98%; opacity: 0.2; }
}

/* AI Smart Verification Card */
.gds-ai-verify-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  color: #14532d;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(16,185,129,0.12);
  animation: fadeInUp 0.3s ease-out;
}

.gds-ai-verify-card.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  color: #92400e;
}

.gds-ai-verify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.875rem;
}

.gds-ai-verify-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(22,101,52,0.15);
  font-size: 0.8125rem;
}

.gds-ai-verify-item:last-child {
  border-bottom: none;
}

/* Voice Mic & Equalizer Button */
.gds-voice-mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  outline: none;
}

.gds-voice-mic-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gds-voice-mic-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.25), 0 0 20px rgba(239,68,68,0.4);
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Wave Equalizer Animation */
.gds-wave-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
}

.gds-wave-bar {
  width: 3px;
  height: 100%;
  background: #ef4444;
  border-radius: 2px;
  animation: waveBar 1s ease-in-out infinite alternate;
}

.gds-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.gds-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.gds-wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes waveBar {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Sound Play/Stop Button on Chat Message */
.gds-chat-speak-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.gds-chat-speak-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.gds-chat-speak-btn.speaking {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
  animation: soundPulse 1.2s infinite;
}

@keyframes soundPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
