/* ==========================================================================
   IPTV Pro Québec - AI Sales Chat Widget Styles (Glassmorphism & CRO Bar)
   ========================================================================== */

:root {
  --ai-primary: #00f0ff;
  --ai-primary-dark: #0066ff;
  --ai-bg-dark: #090d16;
  --ai-card-bg: rgba(14, 22, 38, 0.94);
  --ai-border: rgba(0, 240, 255, 0.22);
  --ai-text-main: #f1f5f9;
  --ai-text-muted: #94a3b8;
  --ai-online: #10b981;
}

/* Floating Launcher Button */
.ai-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-dark));
  border: none;
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  color: #020617;
}

.ai-chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.6);
}

.ai-chat-launcher:active {
  transform: scale(0.96);
}

.ai-chat-launcher-icon {
  width: 28px;
  height: 28px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chat-launcher.is-active .ai-chat-launcher-open {
  display: none;
}

.ai-chat-launcher:not(.is-active) .ai-chat-launcher-close {
  display: none;
}

/* Online Pulse Dot */
.ai-chat-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: var(--ai-online);
  border: 2px solid #090d16;
  border-radius: 50%;
}

.ai-chat-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-color: var(--ai-online);
  opacity: 0.7;
  animation: aiPulseAnim 2s infinite ease-out;
}

@keyframes aiPulseAnim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Teaser Notification Bubble */
.ai-chat-teaser {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ai-border);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
  z-index: 99989;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  animation: aiSlideUp 0.35s ease forwards;
  cursor: pointer;
}

.ai-chat-teaser-close {
  background: none;
  border: none;
  color: var(--ai-text-muted);
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
}

.ai-chat-teaser-close:hover {
  color: #ffffff;
}

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

/* Chat Main Window */
.ai-chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: var(--ai-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ai-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99995;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  font-family: inherit;
}

.ai-chat-window.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
}

/* Chat Header */
.ai-chat-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(9, 13, 22, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  display: block;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.ai-chat-avatar-status-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background-color: var(--ai-online);
  border: 2px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
}

.ai-chat-title-group {
  display: flex;
  flex-direction: column;
}

.ai-chat-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.ai-chat-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--ai-online);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--ai-online);
}

.ai-chat-close-btn {
  background: none;
  border: none;
  color: var(--ai-text-muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.ai-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Chat Messages Container */
.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Chat Bubbles */
.ai-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: aiMsgFadeIn 0.25s ease-out;
}

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

.ai-chat-msg.is-assistant {
  align-self: flex-start;
}

.ai-chat-msg.is-user {
  align-self: flex-end;
}

.ai-chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.ai-chat-msg.is-assistant .ai-chat-bubble {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--ai-text-main);
  border-bottom-left-radius: 4px;
}

.ai-chat-msg.is-admin .ai-chat-bubble {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(19, 36, 60, 0.95));
  border: 1px solid #00f0ff;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.22);
  color: #ffffff;
}

.ai-chat-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ai-chat-unread-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #090d16;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: aiPulseAnim 1.5s infinite;
}

.ai-chat-msg.is-user .ai-chat-bubble {
  background: linear-gradient(135deg, #0077ff, #0055d4);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.ai-chat-whatsapp-link,
.ai-chat-bubble a {
  color: #25d366 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  word-break: break-all;
  display: inline-block;
  margin-top: 4px;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: all 0.2s ease;
}

.ai-chat-whatsapp-link:hover,
.ai-chat-bubble a:hover {
  color: #1ebea5 !important;
  text-decoration: underline !important;
  opacity: 0.95;
  transform: translateY(-1px);
}

.ai-chat-time {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.7);
  margin-top: 4px;
  padding: 0 4px;
}

.ai-chat-msg.is-user .ai-chat-time {
  text-align: right;
}

/* Typing Indicator (Simulation de frappe réaliste : Alex est en train d'écrire...) */
.ai-chat-typing {
  align-self: flex-start;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: aiMsgFadeIn 0.2s ease-out;
}

.ai-chat-typing-text {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.1px;
}

.ai-chat-dots-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-dot {
  width: 5px;
  height: 5px;
  background: var(--ai-primary);
  border-radius: 50%;
  animation: aiBounce 1.4s infinite ease-in-out both;
}

.ai-chat-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-chat-dot:nth-child(2) { animation-delay: -0.16s; }
.ai-chat-dot:nth-child(3) { animation-delay: 0s; }

@keyframes aiBounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.35; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Quick Chips Container */
.ai-chat-chips-wrap {
  padding: 6px 14px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
  transition: all 0.25s ease-out;
}

.ai-chat-chips-wrap.is-hidden,
.quick-chips.is-hidden,
.chat-chips.is-hidden {
  display: none !important;
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.ai-chat-chips-wrap::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-chips-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}

.ai-chat-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: #e2e8f0;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
}

.ai-chat-chip:hover,
.ai-chat-chip:active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--ai-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   STICKY CRO BAR (Verrouillée directement au-dessus du champ d'entrée)
   ========================================================================== */
.ai-chat-sticky-cro-bar {
  padding: 8px 12px;
  background: rgba(9, 13, 22, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  gap: 8px;
}

.ai-chat-cro-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}

.ai-chat-cro-btn:active {
  transform: scale(0.97);
}

/* Bouton 1 : Voir les forfaits (Secondaire) */
.ai-chat-cro-btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

.ai-chat-cro-btn-secondary:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  color: #ffffff;
}

/* Bouton 2 : Commander maintenant (Primaire / High-Converting Hook) */
.ai-chat-cro-btn-primary {
  background: linear-gradient(135deg, #00f0ff, #0066ff);
  border: none;
  color: #030712;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.35);
}

.ai-chat-cro-btn-primary:hover {
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.55);
  filter: brightness(1.08);
}

/* Chat Input Form */
.ai-chat-input-wrap {
  padding: 10px 14px;
  background: rgba(7, 11, 20, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.ai-chat-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.ai-chat-input:focus {
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.15);
}

.ai-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-dark));
  border: none;
  color: #030712;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  transform: scale(1.05);
}

.ai-chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.ai-chat-send-icon {
  width: 17px;
  height: 17px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .ai-chat-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 82vh;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }

  .ai-chat-chips-wrap {
    padding: 6px 10px 8px;
    gap: 5px;
    max-height: 135px;
  }

  .ai-chat-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  .ai-chat-launcher {
    bottom: 76px;
    right: 18px;
    width: 54px;
    height: 54px;
  }

  .ai-chat-teaser {
    bottom: 138px;
    right: 18px;
  }
}

/* ==========================================================================
   BOUTON INTERACTIF ESSAI GRATUIT DANS LE CHAT
   ========================================================================== */
.ai-chat-action-btn-wrap {
  margin-top: 8px;
  width: 100%;
}

.ai-chat-trial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: inherit;
  outline: none;
}

.ai-chat-trial-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  border-color: #38bdf8;
}

.ai-chat-trial-btn:active {
  transform: translateY(0);
}

.ai-chat-trial-btn-icon {
  font-size: 15px;
}

/* ==========================================================================
   MODALE POP-UP ESSAI GRATUIT 24H (LEAD CAPTURE)
   ========================================================================== */
.ai-chat-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ai-chat-modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ai-chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ai-chat-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0b1329;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.12);
  color: #f8fafc;
  font-family: inherit;
  animation: aiModalZoom 0.25s ease-out;
}

@keyframes aiModalZoom {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ai-chat-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  gap: 12px;
}

.ai-chat-modal-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 9999px;
  margin-bottom: 6px;
}

.ai-chat-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.ai-chat-modal-close-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-chat-modal-close-btn:hover {
  background: #334155;
  color: #ffffff;
}

.ai-chat-modal-body {
  padding: 20px 24px 24px;
}

.ai-chat-modal-desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.ai-chat-trial-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-chat-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-chat-form-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.ai-chat-form-req {
  color: #ef4444;
}

.ai-chat-form-opt {
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
}

.ai-chat-form-input,
.ai-chat-form-select {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ai-chat-form-input:focus,
.ai-chat-form-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
  background: #111d38;
}

.ai-chat-form-input::placeholder {
  color: #64748b;
}

.ai-chat-form-select option {
  background: #0f172a;
  color: #ffffff;
}

.ai-chat-form-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.ai-chat-form-error {
  padding: 9px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.ai-chat-form-error.is-hidden {
  display: none;
}

.ai-chat-modal-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  margin-top: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #38bdf8;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
}

.ai-chat-modal-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

.ai-chat-modal-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ai-chat-btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-btn-spinner.is-hidden,
.ai-chat-btn-label.is-hidden {
  display: none;
}

.ai-spinner-svg {
  width: 16px;
  height: 16px;
  animation: aiSpin 0.9s linear infinite;
}

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

/* ==========================================================================
   ÉTAT DE SUCCÈS MODALE
   ========================================================================== */
.ai-chat-trial-success {
  text-align: center;
  padding: 24px 8px 12px;
}

.ai-chat-trial-success.is-hidden {
  display: none;
}

.ai-chat-success-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-success-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.ai-chat-success-desc {
  margin: 0 0 22px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
}

.ai-chat-success-close-btn {
  padding: 10px 20px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chat-success-close-btn:hover {
  background: #334155;
  border-color: #64748b;
}

/* ==========================================================================
   ÉTAT DE RESTRICTION : ESSAI DÉJÀ UTILISÉ (BOUTON DE TARIFS)
   ========================================================================== */
.ai-chat-trial-duplicate {
  text-align: center;
  padding: 20px 8px 12px;
  animation: aiModalZoom 0.2s ease-out;
}

.ai-chat-trial-duplicate.is-hidden {
  display: none;
}

.ai-chat-duplicate-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.ai-chat-duplicate-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.ai-chat-duplicate-desc {
  margin: 0 0 22px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
}

.ai-chat-duplicate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.ai-chat-duplicate-plans-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
  color: #030712;
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.ai-chat-duplicate-plans-btn:hover {
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.6);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ai-chat-duplicate-plans-btn:active {
  transform: translateY(0);
}

.ai-chat-duplicate-close-btn {
  padding: 10px 20px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: inherit;
}

.ai-chat-duplicate-close-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #64748b;
}

.ai-chat-dup-retry-link {
  font-size: 11px;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
  transition: color 0.2s ease;
}

.ai-chat-dup-retry-link:hover {
  color: #00f0ff;
}

@media (max-width: 480px) {
  .ai-chat-modal-card {
    max-height: 94vh;
    border-radius: 16px;
  }
  .ai-chat-modal-header {
    padding: 16px 18px 14px;
  }
  .ai-chat-modal-body {
    padding: 16px 18px 20px;
  }
}
