/* ============================================================================
   Comunata AI Team — Avataruri umane premium + Chat UI
   Familie vizuală: 8 tineri profesioniști (20-25 ani) — Ander, Erwin, Daria, Mara, Mateo, Nora, Nexa, Nova
   ============================================================================ */

/* ── Avatar container ───────────────────────────────────────────────────── */
.cta-avatar {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.cta-avatar svg { width: 100%; height: 100%; display: block; }

/* Variante mărime */
.cta-avatar-lg { width: 200px; height: 200px; }
.cta-avatar-md { width: 80px;  height: 80px; }
.cta-avatar-sm { width: 56px;  height: 56px; }
.cta-avatar-xs { width: 32px;  height: 32px; }

/* ── Human avatar (premium 3D portraits) ─────────────────────────────────── */
.cta-human-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--agent-glow, #06b6d4) 18%, #0a1628) 0%, #0a1628 100%);
  border: 2px solid var(--agent-accent, #06b6d4);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 4px 16px color-mix(in srgb, var(--agent-accent, #06b6d4) 30%, transparent),
    0 0 30px color-mix(in srgb, var(--agent-glow, #00E5FF) 18%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-human-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.cta-human-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 90%, transparent 60%, color-mix(in srgb, var(--agent-accent, #06b6d4) 22%, transparent) 100%);
  pointer-events: none;
  opacity: 0.7;
}

/* Când avatarul e în stări active (listening/thinking/speaking), pulsează ușor */
.cta-state-listening .cta-human-avatar,
.cta-state-thinking .cta-human-avatar,
.cta-state-speaking .cta-human-avatar {
  animation: cta-human-glow 2s ease-in-out infinite;
}
@keyframes cta-human-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.12),
      0 4px 16px color-mix(in srgb, var(--agent-accent, #06b6d4) 30%, transparent),
      0 0 30px color-mix(in srgb, var(--agent-glow, #00E5FF) 18%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.18),
      0 6px 24px color-mix(in srgb, var(--agent-accent, #06b6d4) 45%, transparent),
      0 0 50px color-mix(in srgb, var(--agent-glow, #00E5FF) 30%, transparent);
  }
}

/* Variante mărime pentru human avatar — păstrează proporțiile */
.cta-avatar-sm .cta-human-avatar { border-width: 2px; }
.cta-avatar-md .cta-human-avatar { border-width: 2.5px; }
.cta-avatar-lg .cta-human-avatar { border-width: 3px; }

/* ── Stări animație ─────────────────────────────────────────────────────── */

/* IDLE — respiră ușor */
@keyframes cta-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
.cta-state-idle .cta-avatar-body {
  animation: cta-breathe 4s ease-in-out infinite;
  transform-origin: center;
}

/* IDLE — ochii luminează (pulsație subtilă) */
@keyframes cta-eye-glow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
.cta-state-idle .cta-eye {
  animation: cta-eye-glow 3s ease-in-out infinite;
}

/* LISTENING — ochii pulsează albastru */
@keyframes cta-eye-pulse {
  0%, 100% { fill: #06b6d4; opacity: 0.7; }
  50% { fill: #0ea5e9; opacity: 1; filter: drop-shadow(0 0 6px #06b6d4); }
}
.cta-state-listening .cta-eye {
  animation: cta-eye-pulse 1.2s ease-in-out infinite;
}

/* THINKING — lumină circulară AI în jurul capului */
@keyframes cta-thinking-ring {
  0% { stroke-dashoffset: 0; opacity: 0.3; transform: rotate(0deg); }
  50% { opacity: 0.8; }
  100% { stroke-dashoffset: -50; opacity: 0.3; transform: rotate(360deg); }
}
.cta-state-thinking .cta-thinking-ring {
  animation: cta-thinking-ring 2s linear infinite;
  transform-origin: center;
}

/* HAPPY — ochii zâmbesc (arc) */
.cta-state-happy .cta-eye-happy { display: block; }
.cta-state-happy .cta-eye { display: none; }

/* Antenă — lumină cyan pulsantă în stările active */
@keyframes cta-antenna-glow {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 3px #06b6d4); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px #06b6d4); }
}
.cta-state-listening .cta-antenna-led,
.cta-state-thinking .cta-antenna-led {
  animation: cta-antenna-glow 1.5s ease-in-out infinite;
}

/* ── Homepage Section wrapper (card container cu fundal) ───────────────── */
.cta-hero-section {
  background: linear-gradient(135deg, #020c1e 0%, #0c4a6e 50%, #020c1e 100%);
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.12);
  overflow: hidden;
  position: relative;
}
.cta-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Homepage Hero cu Ander ─────────────────────────────────────────────── */
.cta-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 48px 32px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-hero-copy { max-width: 560px; }
.cta-hero-copy h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-hero-copy p {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0 0 24px;
}
.cta-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-hero-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cta-hero-actions button.primary {
  background: #06b6d4;
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}
.cta-hero-actions button.primary:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}
.cta-hero-actions button.ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 2px solid rgba(255,255,255,.2);
}
.cta-hero-actions button.ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #06b6d4;
}

.cta-hero-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-hero-avatar-label {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.cta-hero-avatar-label b { color: #fff; }

/* ── Mobil FAB (buton flotant Ander) — Premium sci-fi voice interface ────── */
/* Design: inel cromat exterior + arce cyan segmentate rotative + dom sticlă
   întunecat cu avatar înăuntru + glow cyan + dot matrix LED-uri laterale. */
.cta-fab {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 8px 24px rgba(0, 4, 12, 0.55));
  /* Ensure tap target meets 48px minimum */
  min-width: 48px;
  min-height: 48px;
}
.cta-fab:hover { transform: scale(1.06); }
.cta-fab:active { transform: scale(0.96); }
.cta-fab:focus-visible {
  outline: 2px solid #00D4FF;
  outline-offset: 6px;
}

/* ── Pulse ripple (expanding ring on idle) ──────────────────────────────── */
.cta-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #00D4FF;
  opacity: 0;
  animation: cta-fab-ripple 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes cta-fab-ripple {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.45); }
}

/* ── Chrome outer ring (polished metallic bevel) ────────────────────────── */
.cta-fab-chrome {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 215deg,
      #4a5568 0deg,
      #e2e8f0 60deg,
      #f7fafc 90deg,
      #cbd5e0 130deg,
      #718096 200deg,
      #2d3748 260deg,
      #a0aec0 320deg,
      #4a5568 360deg);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* ── Segmented cyan arcs (4 arcs rotating around the dome) ──────────────── */
.cta-fab-arcs {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  pointer-events: none;
  animation: cta-fab-arcs-spin 12s linear infinite;
}
.cta-fab-arcs i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.85))
          drop-shadow(0 0 12px rgba(0, 212, 255, 0.45));
}
/* 4 arc segments at top / right / bottom / left, each ~50deg */
.cta-fab-arcs i:nth-child(1) {
  border-top-color: #00D4FF;
  border-right-color: rgba(0, 212, 255, 0.6);
  transform: rotate(-25deg);
}
.cta-fab-arcs i:nth-child(2) {
  border-top-color: #00D4FF;
  border-right-color: rgba(0, 212, 255, 0.6);
  transform: rotate(65deg);
}
.cta-fab-arcs i:nth-child(3) {
  border-top-color: #00D4FF;
  border-right-color: rgba(0, 212, 255, 0.6);
  transform: rotate(155deg);
}
.cta-fab-arcs i:nth-child(4) {
  border-top-color: #00D4FF;
  border-right-color: rgba(0, 212, 255, 0.6);
  transform: rotate(245deg);
}
@keyframes cta-fab-arcs-spin {
  to { transform: rotate(360deg); }
}

/* ── Dot matrix LED indicators (left + right columns) ───────────────────── */
.cta-fab-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  z-index: 4;
}
.cta-fab-dots-left  { left: 14px; }
.cta-fab-dots-right { right: 14px; }
.cta-fab-dots i {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #00D4FF;
  box-shadow: 0 0 4px rgba(0, 212, 255, 0.9);
  opacity: 0.75;
  animation: cta-fab-dots-blink 3s ease-in-out infinite;
}
.cta-fab-dots i:nth-child(1) { animation-delay: 0s; }
.cta-fab-dots i:nth-child(2) { animation-delay: 0.4s; }
.cta-fab-dots i:nth-child(3) { animation-delay: 0.8s; }
@keyframes cta-fab-dots-blink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ── Glass dome core (dark glassmorphic with avatar) ────────────────────── */
.cta-fab-core {
  position: relative;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 30%, #151B23 0%, #0A0F14 70%, #02060a 100%);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.18),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(0, 212, 255, 0.35),
    0 0 12px rgba(0, 212, 255, 0.45);
}
.cta-fab-glass {
  position: absolute;
  top: 6%;
  left: 14%;
  width: 36%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 80%);
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 5;
}
.cta-fab-core .cta-avatar {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  position: relative;
  z-index: 4;
}
.cta-fab-core .cta-avatar img,
.cta-fab-core .cta-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

/* ── Small "AI" badge top-right (signals AI assistant) ──────────────────── */
.cta-fab-hint {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
  color: #02060a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 6px;
  z-index: 6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 212, 255, 0.7);
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: none;
  /* Allow emoji labels to render wider */
  min-width: 14px;
  text-align: center;
}

@media (min-width: 901px) {
  .cta-fab { display: none; }
}

/* ── Mobile P1: reduce FAB to 60px on small screens ────────────────────── */
@media (max-width: 767px) {
  .cta-fab {
    width: 60px;
    height: 60px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
  .cta-fab-core {
    width: 42px;
    height: 42px;
  }
  .cta-fab-core .cta-avatar {
    width: 42px !important;
    height: 42px !important;
  }
  .cta-fab-pulse {
    inset: -4px;
  }
  .cta-fab-chrome {
    inset: 0;
  }
  .cta-fab-arcs {
    inset: 3px;
  }
  .cta-fab-dots-left  { left: 8px; }
  .cta-fab-dots-right { right: 8px; }
  .cta-fab-dots i {
    width: 1.5px;
    height: 1.5px;
  }
  .cta-fab-hint {
    font-size: 8px;
    padding: 1px 4px;
    top: -1px;
    right: -1px;
  }
  .cta-fab-glass {
    top: 5%;
    left: 12%;
    width: 34%;
    height: 22%;
  }
}

/* ── Chat panel (sheet care se deschide la click pe FAB sau hero) ───────── */
.cta-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 30, 0.4);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.cta-chat-overlay.open {
  display: block;
  opacity: 1;
}
.cta-chat-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 80vh;
  max-height: 640px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(2, 12, 30, 0.2);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.cta-chat-overlay.open .cta-chat-panel {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .cta-chat-panel {
    border-radius: 20px;
    bottom: 24px;
    right: 24px;
    height: 70vh;
  }
}

.cta-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #020c1e 0%, #0c4a6e 100%);
  border-radius: 20px 20px 0 0;
  color: #fff;
}
.cta-chat-header .cta-avatar { width: 44px; height: 44px; }
.cta-chat-header-info { flex: 1; }
.cta-chat-header-info b { font-size: 16px; display: block; }
.cta-chat-header-info span { font-size: 12px; opacity: 0.8; }
.cta-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0.7;
}
.cta-chat-close:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.cta-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}
.cta-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.cta-msg.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.cta-msg.user {
  align-self: flex-end;
  background: #020c1e;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cta-msg.typing {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-style: italic;
}

/* ── Rate limit message ─────────────────────────────────────────────────── */
.cta-rate-limit-msg {
  text-align: center;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.cta-rate-limit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta-rate-limit-icon {
  width: 36px;
  height: 36px;
  color: #06b6d4;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}
.cta-rate-limit-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.cta-rate-limit-content p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.cta-rate-limit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 28px;
  background: #06b6d4;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.35);
}
.cta-rate-limit-btn:hover {
  background: #22d3ee;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}
.cta-rate-limit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.cta-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 20px 4px;
}
.cta-suggestion {
  padding: 6px 12px;
  background: #ecfeff;
  border: 1px solid #06b6d4;
  color: #0c4a6e;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cta-suggestion:hover {
  background: #06b6d4;
  color: #fff;
}

.cta-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0 0 20px 20px;
}
.cta-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.cta-chat-input input:focus { border-color: #06b6d4; }
.cta-chat-input button {
  padding: 10px 18px;
  background: #020c1e;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cta-chat-input button:hover { background: #06b6d4; }
.cta-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Voice mic button — Premium circular glow design ─────────────────────── */
.cta-voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  background: #0a1628;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.cta-voice-btn:hover { transform: scale(1.05); }
.cta-voice-btn:active { transform: scale(0.95); }
.cta-voice-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }

/* ── Outer glow ring (neon border) ─────────────────────────────────────── */
.cta-mic-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #1e3a5f;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* ── Core (dark glass with mic icon) ───────────────────────────────────── */
.cta-mic-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #162d50 0%, #0a1628 100%);
  color: #38bdf8;
  transition: color 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.08);
}
.cta-mic-core svg {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.3));
  transition: filter 0.3s ease;
}

/* ── Waveform bars (hidden by default, shown when active) ──────────────── */
.cta-mic-waveform {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.cta-mic-waveform i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: #38bdf8;
  transition: height 0.15s ease;
}

/* ── STATE: Idle (off / dark) ──────────────────────────────────────────── */
.cta-voice-btn:not(.cta-voice-active):not(.cta-voice-speaking):not(.cta-voice-processing) .cta-mic-ring {
  border-color: #1e3a5f;
  box-shadow: none;
}
.cta-voice-btn:not(.cta-voice-active):not(.cta-voice-speaking):not(.cta-voice-processing) .cta-mic-core {
  color: #38bdf8;
}
.cta-voice-btn:not(.cta-voice-active):not(.cta-voice-speaking):not(.cta-voice-processing) .cta-mic-core svg {
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.2));
}

/* ── STATE: Active / Recording (blue glow ON + waveform) ───────────────── */
.cta-voice-active .cta-mic-ring {
  border-color: #38bdf8;
  box-shadow:
    0 0 8px rgba(56, 189, 248, 0.5),
    0 0 20px rgba(56, 189, 248, 0.25),
    0 0 40px rgba(56, 189, 248, 0.1);
  animation: cta-mic-ring-pulse 2s ease-in-out infinite;
}
.cta-voice-active .cta-mic-core {
  color: #7dd3fc;
  background: radial-gradient(circle at 40% 35%, #1a3a60 0%, #0d1f38 100%);
}
.cta-voice-active .cta-mic-core svg {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}
.cta-voice-active .cta-mic-waveform {
  opacity: 1;
}
.cta-voice-active .cta-mic-waveform i {
  animation: cta-waveform-bars 0.8s ease-in-out infinite alternate;
}
.cta-voice-active .cta-mic-waveform i:nth-child(1) { height: 3px; animation-delay: 0s; }
.cta-voice-active .cta-mic-waveform i:nth-child(2) { height: 6px; animation-delay: 0.1s; }
.cta-voice-active .cta-mic-waveform i:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.cta-voice-active .cta-mic-waveform i:nth-child(4) { height: 5px; animation-delay: 0.15s; }
.cta-voice-active .cta-mic-waveform i:nth-child(5) { height: 4px; animation-delay: 0.05s; }

@keyframes cta-mic-ring-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(56, 189, 248, 0.5),
      0 0 20px rgba(56, 189, 248, 0.25);
  }
  50% {
    box-shadow:
      0 0 12px rgba(56, 189, 248, 0.7),
      0 0 30px rgba(56, 189, 248, 0.35),
      0 0 50px rgba(56, 189, 248, 0.12);
  }
}
@keyframes cta-waveform-bars {
  0%   { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ── STATE: Speaking (gentler glow, cyan breathe) ──────────────────────── */
.cta-voice-speaking .cta-mic-ring {
  border-color: #22d3ee;
  box-shadow:
    0 0 6px rgba(34, 211, 238, 0.4),
    0 0 16px rgba(34, 211, 238, 0.15);
  animation: cta-mic-breathe 2.5s ease-in-out infinite;
}
.cta-voice-speaking .cta-mic-core {
  color: #67e8f9;
}
.cta-voice-speaking .cta-mic-core svg {
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}
.cta-voice-speaking .cta-mic-waveform {
  opacity: 0.6;
}
.cta-voice-speaking .cta-mic-waveform i {
  animation: cta-waveform-speak 1.2s ease-in-out infinite alternate;
}
.cta-voice-speaking .cta-mic-waveform i:nth-child(1) { height: 4px; animation-delay: 0s; }
.cta-voice-speaking .cta-mic-waveform i:nth-child(2) { height: 7px; animation-delay: 0.15s; }
.cta-voice-speaking .cta-mic-waveform i:nth-child(3) { height: 5px; animation-delay: 0.3s; }
.cta-voice-speaking .cta-mic-waveform i:nth-child(4) { height: 8px; animation-delay: 0.1s; }
.cta-voice-speaking .cta-mic-waveform i:nth-child(5) { height: 3px; animation-delay: 0.25s; }

@keyframes cta-mic-breathe {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 211, 238, 0.4), 0 0 16px rgba(34, 211, 238, 0.15); }
  50%       { box-shadow: 0 0 10px rgba(34, 211, 238, 0.55), 0 0 24px rgba(34, 211, 238, 0.22); }
}
@keyframes cta-waveform-speak {
  0%   { transform: scaleY(0.4); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ── STATE: Processing (spinner ring) ──────────────────────────────────── */
.cta-voice-processing .cta-mic-ring {
  border-color: #38bdf8;
  border-top-color: transparent;
  animation: cta-voice-spinner 0.8s linear infinite;
}
.cta-voice-processing .cta-mic-core {
  color: #7dd3fc;
}
@keyframes cta-voice-spinner {
  to { transform: rotate(360deg); }
}

/* ── STATE: Error (red flash) ──────────────────────────────────────────── */
.cta-voice-error .cta-mic-ring {
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}
.cta-voice-error .cta-mic-core {
  color: #f87171;
}
.cta-voice-error .cta-mic-core svg {
  filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.6));
}

/* ── Speaking avatar state ─────────────────────────────────────────────── */
@keyframes cta-speaking-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6));
  }
}
.cta-state-speaking .cta-avatar-body {
  animation: cta-speaking-glow 1.2s ease-in-out infinite;
}
.cta-state-speaking .cta-antenna-led {
  animation: cta-antenna-glow 0.6s ease-in-out infinite;
}
.cta-state-speaking .cta-eye {
  animation: cta-eye-pulse 0.8s ease-in-out infinite;
}

/* ── Badge Erwin "Verificat de Erwin AI" ────────────────────────────────── */
.erwin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #020c1e 0%, #1e3a5f 100%);
  border: 1px solid #fbbf24;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.erwin-badge svg { width: 14px; height: 14px; }
.erwin-badge-check {
  color: #10b981;
  font-size: 13px;
}

.erwin-verify-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
}
.erwin-verify-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #020c1e;
  margin-bottom: 8px;
}
.erwin-verify-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #475569;
}
.erwin-verify-list li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.erwin-verify-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: 900;
  font-size: 13px;
}

/* ── Pagina "ComunaTa AI" (despre echipa AI) ────────────────────────────── */
.cta-team-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}
.cta-team-hero {
  text-align: center;
  margin-bottom: 32px;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, rgba(15, 31, 58, 0.8) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cta-team-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-team-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #4DD0E1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.cta-team-hero p {
  font-size: 15px;
  color: #8FA3C7;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
}
.cta-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.cta-team-card {
  background: linear-gradient(180deg, rgba(15, 31, 58, 0.8) 0%, rgba(10, 22, 40, 0.9) 100%);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 14px;
  padding: 14px 14px 12px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cta-team-card:hover {
  transform: translateY(-4px);
  border-color: #00E5FF;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4),
              0 0 28px rgba(0, 229, 255, 0.18);
}
.cta-team-card .cta-avatar { margin: 0 auto 10px; width: 52px !important; height: 52px !important; }
.cta-team-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}
.cta-team-card .role {
  font-size: 11px;
  font-weight: 600;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.cta-team-card p {
  font-size: 11.5px;
  color: #8FA3C7;
  line-height: 1.45;
  margin: 0;
}

.cta-erwin-banner {
  background: linear-gradient(135deg, #0A1628 0%, #0F1F3A 50%, #0A1628 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.cta-erwin-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-erwin-banner h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #FFFFFF;
  position: relative;
}
.cta-erwin-banner p {
  font-size: 13px;
  color: #8FA3C7;
  max-width: 600px;
  margin: 0 auto 20px;
  position: relative;
  opacity: 1;
}
.cta-erwin-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.cta-erwin-stat {
  text-align: center;
}
.cta-erwin-stat b {
  font-size: 26px;
  font-weight: 800;
  color: #fbbf24;
  display: block;
  margin-bottom: 2px;
}
.cta-erwin-stat span {
  font-size: 11px;
  color: #8FA3C7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cta-hero-section { margin: 0 12px; border-radius: 16px; }
  .cta-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 16px;
    gap: 24px;
  }
  .cta-hero-copy h1 { font-size: 32px; }
  .cta-hero-copy p { font-size: 16px; }
  .cta-hero-actions { justify-content: center; }
  .cta-hero-avatar { order: -1; }
  .cta-team-grid { grid-template-columns: 1fr; }
  .cta-erwin-stats { gap: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FAZA 2 — Handoff Badge (tranziție între agenți)
   ══════════════════════════════════════════════════════════════════════════ */

.cta-handoff-badge {
  margin: 12px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cta-handoff-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-handoff-badge.fading {
  opacity: 0;
  transform: translateY(-4px);
}

.cta-handoff-badge-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.cta-handoff-from,
.cta-handoff-to {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.cta-handoff-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 0 12px currentColor;
}

.cta-handoff-arrow {
  font-size: 18px;
  color: #06b6d4;
  font-weight: 700;
  animation: cta-handoff-pulse 1s ease-in-out infinite;
}

@keyframes cta-handoff-pulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(4px); opacity: 0.7; }
}

.cta-handoff-label {
  font-size: 11px;
  color: #8FA3C7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Animație pentru schimbarea header-ului în timp de handoff */
.cta-chat-header {
  transition: background 0.4s ease;
}

.cta-chat-header.handoff-transition {
  animation: cta-header-flash 0.6s ease;
}

@keyframes cta-header-flash {
  0% { background: rgba(6, 182, 212, 0.08); }
  50% { background: rgba(6, 182, 212, 0.18); }
  100% { background: transparent; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FAZA 2.7 #5 — Buton Anulează pentru handoff reversal
   ══════════════════════════════════════════════════════════════════════════ */

.cta-handoff-cancel {
  margin-left: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(192, 57, 43, 0.85);
  border: 1px solid rgba(192, 57, 43, 0.9);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-handoff-cancel:hover {
  background: rgba(192, 57, 43, 1);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.4);
}

.cta-handoff-cancel:active {
  transform: scale(0.95);
}

.cta-handoff-badge.cancelled .cta-handoff-badge-inner {
  opacity: 0.4;
  text-decoration: line-through;
}

.cta-handoff-badge.cancelled .cta-handoff-label {
  color: #c0392b;
}

.cta-handoff-badge.cancelled .cta-handoff-label::before {
  content: "✗ ";
  font-weight: 700;
}

/* Sugestii contextuale — subtil mai mici pentru a încăpea mai multe */
.cta-suggestion {
  font-size: 12px;
  padding: 6px 12px;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   FAZA 3.1 — Carduri premium pentru Echipa AI + Modal cu sugestii
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Secțiunea AI pe homepage ────────────────────────────────────────────── */
.ai-team-section {
  max-width: 1200px;
  margin: 64px auto;
  padding: 0 24px;
}

.ai-team-premium {
  background: linear-gradient(180deg, rgba(15, 31, 58, 0.6) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 24px;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}

.ai-team-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ai-team-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.ai-team-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #00E5FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ai-team-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #4DD0E1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-team-header p {
  font-size: 15px;
  color: #8FA3C7;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Grid de carduri ─────────────────────────────────────────────────────── */
.ai-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ── Card individual ─────────────────────────────────────────────────────── */
.ai-card {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 16, 35, 0.95) 0%, rgba(5, 10, 25, 0.98) 100%);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 16px;
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.1), border-color 0.3s ease, box-shadow 0.35s ease;
  overflow: visible;
}

.ai-card:hover {
  transform: translateY(-6px);
  border-color: var(--agent-color, #00E5FF);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5),
              0 0 40px color-mix(in srgb, var(--agent-color, #00E5FF) 22%, transparent);
}

.ai-card-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--agent-color, #00E5FF) 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ai-card:hover .ai-card-glow {
  opacity: 0.2;
}

.ai-card-avatar {
  width: 72px;
  height: 72px;
  margin: -36px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ai-card-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(2, 12, 30, 0.18), 0 0 0 3px color-mix(in srgb, var(--agent-color, #06b6d4) 12%, transparent);
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ai-card:hover .ai-card-avatar img {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--agent-color, #06b6d4);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--agent-color, #06b6d4) 35%, transparent), 0 0 0 4px color-mix(in srgb, var(--agent-color, #06b6d4) 18%, transparent);
}

.ai-card-avatar .cta-avatar {
  width: 52px !important;
  height: 52px !important;
}

.ai-card-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.ai-card-name {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.ai-card-role {
  text-align: center;
  font-size: 11px;
  color: var(--agent-color, #00E5FF);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.ai-card-examples {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.ai-card-examples li {
  font-size: 11px;
  color: #8FA3C7;
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.35;
}

.ai-card-examples li::before {
  content: '›';
  position: absolute;
  left: 3px;
  top: 3px;
  color: var(--agent-color, #00E5FF);
  font-weight: 700;
  font-size: 12px;
}

.ai-card-btn {
  width: 100%;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--agent-color, #00E5FF) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--agent-color, #00E5FF) 35%, transparent);
  border-radius: 10px;
  color: var(--agent-color, #00E5FF);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.ai-card-btn:hover {
  background: color-mix(in srgb, var(--agent-color, #00E5FF) 22%, transparent);
  border-color: var(--agent-color, #00E5FF);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--agent-color, #00E5FF) 20%, transparent);
  transform: translateY(-1px);
}

/* ── Footer secțiune ─────────────────────────────────────────────────────── */
.ai-team-footer {
  text-align: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.ai-team-cta-link {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ai-team-cta-link:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: #00E5FF;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL cu sugestii per agent
   ══════════════════════════════════════════════════════════════════════════ */

.ai-suggestions-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 30, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ai-modal-fade-in 0.25s ease;
}

@keyframes ai-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-suggestions-card {
  background: linear-gradient(180deg, #0F1F3A 0%, #0A1628 100%);
  border: 1px solid color-mix(in srgb, var(--agent-color, #00E5FF) 25%, transparent);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 60px color-mix(in srgb, var(--agent-color, #00E5FF) 15%, transparent);
  animation: ai-modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes ai-modal-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ai-suggestions-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8FA3C7;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.ai-suggestions-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.ai-suggestions-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-suggestions-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.ai-suggestions-avatar .cta-avatar {
  width: 56px !important;
  height: 56px !important;
}

.ai-suggestions-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.ai-suggestions-header p {
  font-size: 13px;
  color: var(--agent-color, #00E5FF);
  font-weight: 500;
}

.ai-suggestions-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.ai-suggestions-label {
  font-size: 12px;
  color: #8FA3C7;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.ai-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-suggestion-item {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 10px;
  color: #C7D7E8;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-suggestion-item::after {
  content: '→';
  color: var(--agent-color, #00E5FF);
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-suggestion-item:hover {
  background: color-mix(in srgb, var(--agent-color, #00E5FF) 12%, transparent);
  border-color: var(--agent-color, #00E5FF);
  color: #FFFFFF;
  transform: translateX(4px);
}

.ai-suggestion-item:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.ai-suggestions-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.ai-suggestions-footer p {
  font-size: 12.5px;
  color: #8FA3C7;
  text-align: center;
}

.ai-suggestions-custom {
  background: none;
  border: none;
  color: var(--agent-color, #00E5FF);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-suggestions-custom:hover {
  color: #00E5FF;
  text-decoration-thickness: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ai-team-premium { padding: 32px 16px; }
  .ai-team-header h2 { font-size: 24px; }
  .ai-team-grid { grid-template-columns: 1fr; }
  .ai-suggestions-card { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FAZA 3.3 — Daria UX: layout grid /inscriere + draft banner + mobile
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Banner draft Daria (peste formular) ─────────────────────────────────── */
.daria-draft-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(0, 229, 255, 0.06) 100%);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #C7D7E8;
  line-height: 1.5;
}
.daria-draft-banner strong {
  color: #ec4899;
}

/* ── Layout grid pe /inscriere când chat Daria e deschis ─────────────────── */
/* Desktop: formular stânga + chat dreapta */
body.inscriere-chat-open #app {
  display: grid !important;
  grid-template-columns: 1fr 420px !important;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  padding-right: 444px;
}

/* Când chat-ul e deschis pe /inscriere, overlay NU mai acoperă tot ecranul */
body.inscriere-chat-open .cta-chat-overlay {
  position: fixed;
  inset: auto;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: transparent;
  z-index: 100;
  display: block !important;
  opacity: 1 !important;
  pointer-events: none;
}

body.inscriere-chat-open .cta-chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 420px;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  pointer-events: auto;
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
}

/* ── Mobile: chat full-screen, NU acoperă formularul ────────────────────── */
@media (max-width: 767px) {
  /* Pe mobil, chat-ul devine full-screen panou separat */
  body.inscriere-chat-open .cta-chat-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 12, 30, 0.5);
    z-index: 10000;
    pointer-events: auto;
  }

  body.inscriere-chat-open .cta-chat-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }

  /* Pe mobil, formularul NU se mută — rămâne sub overlay */
  body.inscriere-chat-open #app {
    display: block !important;
    padding-right: 0 !important;
  }
}

/* ── Desktop ≥768px: chat panel pe /inscriere fără overlay ──────────────── */
@media (min-width: 768px) {
  body.inscriere-chat-open .cta-chat-overlay {
    background: transparent;
  }
}

/* ============================================================================
   Category Page Premium FAB — Ander Floating Assistant
   Activ pe: /afaceri, /producatori, /anunturi, /servicii, /turism
   Design: avatar uman Ander + inel cyan puls + glow discret
   ============================================================================ */

/* ── Ascunde sci-fi FAB pe pagini categorie (toate ecranele) ───────────── */
body.cat-fab-active #ctaFab {
  display: none !important;
}

/* ── Premium FAB container ────────────────────────────────────────────── */
.cta-cat-fab {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 20px rgba(0, 20, 40, 0.45));
  -webkit-tap-highlight-color: transparent;
  /* Ensure tap target meets 48px minimum */
  min-width: 48px;
  min-height: 48px;
}
.cta-cat-fab:hover {
  transform: scale(1.1);
}
.cta-cat-fab:active {
  transform: scale(0.94);
}
.cta-cat-fab:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 6px;
}

/* ── Ambient glow behind avatar ──────────────────────────────────────── */
.cta-cat-fab::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  animation: cta-cat-glow-breathe 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes cta-cat-glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* ── Inel cyan puls (2 inele în fază alternativă) ──────────────────────── */
.cta-cat-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.5);
  pointer-events: none;
  animation: cta-cat-ring-expand 4s ease-out infinite;
  z-index: 1;
}
.cta-cat-fab-ring:nth-child(2) {
  animation-delay: 2s;
}
@keyframes cta-cat-ring-expand {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.65); }
}

/* ── Avatar container ──────────────────────────────────────────────────── */
.cta-cat-fab-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 3;
  border: 2px solid rgba(6, 182, 212, 0.45);
  background: radial-gradient(circle at 40% 30%, #0f172a 0%, #020617 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(6, 182, 212, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-cat-fab:hover .cta-cat-fab-avatar {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(6, 182, 212, 0.45);
}
.cta-cat-fab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* ── Badge "AI" ────────────────────────────────────────────────────────── */
.cta-cat-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.5), 0 0 12px rgba(6, 182, 212, 0.3);
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: none;
  /* Allow emoji labels */
  padding: 0 4px;
  text-align: center;
}

/* ── Welcome bubble ────────────────────────────────────────────────────── */
.cta-welcome-bubble {
  position: fixed;
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  width: 290px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 12px 40px rgba(0, 20, 40, 0.18),
    0 4px 12px rgba(6, 182, 212, 0.1),
    0 0 0 1px rgba(6, 182, 212, 0.08);
  padding: 18px 20px 16px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.cta-welcome-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Caret (săgeată) spre FAB */
.cta-welcome-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 4px 4px 8px rgba(0, 20, 40, 0.06);
}

.cta-welcome-bubble-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 14px;
}
.cta-welcome-bubble-text strong {
  color: #0e7490;
  font-weight: 700;
}

.cta-welcome-bubble-actions {
  display: flex;
  gap: 8px;
}
.cta-welcome-bubble-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.3;
}
.cta-welcome-bubble-btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
}
.cta-welcome-bubble-btn-primary:hover {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}
.cta-welcome-bubble-btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.cta-welcome-bubble-btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

/* ── Mobile responsive ─────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .cta-welcome-bubble {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 100px;
  }
  .cta-welcome-bubble::after {
    right: 40px;
  }
  .cta-cat-fab {
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
  }
  .cta-cat-fab-avatar {
    width: 44px;
    height: 44px;
  }
  .cta-welcome-bubble {
    bottom: 92px;
  }
}

/* ── Desktop ≥901px: category FAB rămâne vizibil ───────────────────────── */
@media (min-width: 901px) {
  .cta-cat-fab {
    display: flex !important;
  }
}

/* ============================================================================
   AI Result Cards — Rezultate interactive în chat
   ============================================================================ */

/* ── Container rezultate ───────────────────────────────────────────── */
.ai-results-container {
  margin: 6px 0;
  width: 100%;
}
.ai-results-intro {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ai-results-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.ai-results-count {
  background: #06b6d4;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.ai-results-location {
  color: #64748b;
}

/* ── Card individual ───────────────────────────────────────────────── */
.ai-results-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-result-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}
.ai-result-card:hover {
  background: #f1f5f9;
  border-color: #06b6d4;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

/* ── Card imagine ──────────────────────────────────────────────────── */
.ai-card-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}
.ai-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* ── Card body ─────────────────────────────────────────────────────── */
.ai-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ai-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-card-category {
  font-size: 11px;
  color: #06b6d4;
  font-weight: 500;
}
.ai-card-location {
  font-size: 11px;
  color: #64748b;
}

/* ── Verification badge ────────────────────────────────────────────── */
.ai-card-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 2px;
}
.ai-card-badge-premium {
  background: #fef3c7;
  color: #92400e;
}
.ai-card-badge-verified {
  background: #d1fae5;
  color: #065f46;
}
.ai-card-badge-basic {
  background: #f1f5f9;
  color: #64748b;
}

/* ── CTA link ──────────────────────────────────────────────────────── */
.ai-card-cta {
  font-size: 11px;
  color: #06b6d4;
  font-weight: 600;
  margin-top: 4px;
}
.ai-result-card:hover .ai-card-cta {
  text-decoration: underline;
}

