@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

#gadaj-z-ai-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2147483000;
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #0D1B2E;
  --gzai-accent: #FF6B35;
  --gzai-btn-size: 60px;
}

#gadaj-z-ai-root.gzai-pos-BL {
  right: auto;
  left: 20px;
}

#gadaj-z-ai-root *,
#gadaj-z-ai-root *::before,
#gadaj-z-ai-root *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* Bubble button */
#gadaj-z-ai-root #gzai-btn {
  width: var(--gzai-btn-size, 60px);
  height: var(--gzai-btn-size, 60px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gzai-accent, #FF6B35) 0%, #FF8A5C 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35), 0 2px 6px rgba(13, 27, 46, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  overflow: hidden;
}
#gadaj-z-ai-root #gzai-btn:hover { transform: scale(1.05); box-shadow: 0 10px 28px rgba(255, 107, 53, 0.45); }
#gadaj-z-ai-root #gzai-btn:active { transform: scale(0.97); }
#gadaj-z-ai-root.gzai-open #gzai-btn { transform: scale(0.9); opacity: 0.85; }

#gadaj-z-ai-root #gzai-btn img.gzai-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Idle bounce */
#gadaj-z-ai-root #gzai-btn.gzai-bounce {
  animation: gzai-idle-bounce 0.9s ease;
}
@keyframes gzai-idle-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(0); }
}

/* Panel — hidden by default, shown via .gzai-open on root */
#gadaj-z-ai-root #gzai-panel {
  position: absolute;
  bottom: calc(var(--gzai-btn-size, 60px) + 16px);
  right: 0;
  width: var(--emedia-chat-width, 580px);
  max-width: calc(100vw - 32px);
  transition: width 200ms ease;
  height: 760px;
  max-height: calc(100vh - 100px);
  background: #FFFFFF;
  border-radius: 7px;
  box-shadow: 0 20px 60px rgba(13, 27, 46, 0.25), 0 4px 12px rgba(13, 27, 46, 0.1);
  display: none !important;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#gadaj-z-ai-root.gzai-pos-BL #gzai-panel {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}
#gadaj-z-ai-root.gzai-open #gzai-panel {
  display: flex !important;
}

/* Entry animations */
#gadaj-z-ai-root.gzai-entry-slide-up.gzai-open #gzai-panel {
  animation: gzai-slide-in 0.24s ease forwards;
}
@keyframes gzai-slide-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#gadaj-z-ai-root.gzai-entry-scale.gzai-open #gzai-panel {
  animation: gzai-entry-scale 0.22s ease forwards;
}
@keyframes gzai-entry-scale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
#gadaj-z-ai-root.gzai-entry-fade.gzai-open #gzai-panel {
  animation: gzai-entry-fade 0.28s ease forwards;
}
@keyframes gzai-entry-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#gadaj-z-ai-root.gzai-entry-bounce.gzai-open #gzai-panel {
  animation: gzai-entry-bounce 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes gzai-entry-bounce {
  0% { opacity: 0; transform: translateY(24px) scale(0.9); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
#gadaj-z-ai-root #gzai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: linear-gradient(135deg, #0D1B2E 0%, #1A2A44 100%);
  color: #fff;
  flex-shrink: 0;
}
#gadaj-z-ai-root #gzai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gzai-accent, #FF6B35) 0%, #E5207B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
  overflow: hidden;
}
#gadaj-z-ai-root #gzai-avatar img.gzai-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#gadaj-z-ai-root #gzai-title-wrap { flex: 1; min-width: 0; }
#gadaj-z-ai-root #gzai-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
#gadaj-z-ai-root #gzai-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #B8C4D6;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#gadaj-z-ai-root .gzai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3DCC7E;
  box-shadow: 0 0 0 2px rgba(61, 204, 126, 0.25);
  animation: gzai-pulse 2s ease-in-out infinite;
}
@keyframes gzai-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(61, 204, 126, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(61, 204, 126, 0.1); }
}
#gadaj-z-ai-root #gzai-close {
  background: transparent;
  border: none;
  color: #8A9BB0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
#gadaj-z-ai-root #gzai-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Messages area */
#gadaj-z-ai-root #gzai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background-color: #F5F7FA;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='240' viewBox='0 0 360 240'><g fill='none' stroke='%23D6DCE5' stroke-width='1.2' stroke-linecap='round' opacity='0.55'><path d='M-20 40 Q 40 10 90 38 T 200 32 T 320 48 T 420 30'/><path d='M-20 95 Q 55 72 110 98 T 230 90 T 340 108 T 440 90'/><path d='M-20 150 Q 48 128 100 152 T 220 144 T 330 162 T 430 146'/><path d='M-20 205 Q 60 182 120 208 T 240 200 T 350 218 T 450 202'/></g><g fill='none' stroke='%23C2CAD5' stroke-width='0.8' stroke-linecap='round' opacity='0.4'><path d='M-10 65 Q 65 50 130 72 T 260 62 T 380 78'/><path d='M-10 178 Q 70 160 140 182 T 270 172 T 390 188'/></g></svg>");
  background-repeat: repeat;
  background-size: 360px 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
#gadaj-z-ai-root .gzai-msg {
  display: flex;
  max-width: 85%;
  animation: gzai-msg-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gzai-msg-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
#gadaj-z-ai-root .gzai-assistant .gzai-bubble { animation: gzai-bubble-in 800ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 120ms; }
@keyframes gzai-bubble-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Per-message bot persona: avatar + name above each assistant bubble */
#gadaj-z-ai-root .gzai-assistant .gzai-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-left: 2px;
  animation: gzai-meta-in 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gzai-meta-in {
  0%   { opacity: 0; transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}
#gadaj-z-ai-root .gzai-assistant .gzai-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gzai-accent, #FF6B35) 0%, #E5207B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(13, 27, 46, 0.15);
}
#gadaj-z-ai-root .gzai-assistant .gzai-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#gadaj-z-ai-root .gzai-assistant .gzai-msg-avatar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
#gadaj-z-ai-root .gzai-assistant .gzai-msg-name {
  font-size: 12px;
  font-weight: 600;
  color: #4A5568;
  letter-spacing: 0.01em;
}

/* Streaming caret — blinking cursor at end of bubble while text is being typed */
#gadaj-z-ai-root .gzai-bubble.gzai-streaming::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: text-bottom;
  margin-left: 3px;
  background: var(--gzai-accent, #FF6B35);
  animation: gzai-caret-blink 1s steps(2) infinite;
  border-radius: 1px;
}
@keyframes gzai-caret-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
#gadaj-z-ai-root .gzai-user { align-self: flex-end; justify-content: flex-end; }
#gadaj-z-ai-root .gzai-assistant { align-self: stretch; justify-content: flex-start; flex-direction: column; align-items: stretch; max-width: 100%; }
#gadaj-z-ai-root .gzai-assistant .gzai-bubble { max-width: 85%; }
#gadaj-z-ai-root .gzai-assistant .emedia-chat-cards { width: 100%; margin-top: 10px; }
#gadaj-z-ai-root .gzai-bubble {
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(13, 27, 46, 0.06);
}
#gadaj-z-ai-root .gzai-user .gzai-bubble {
  background: linear-gradient(135deg, var(--gzai-accent, #FF6B35) 0%, #FF8A5C 100%);
  color: #fff;
  border-bottom-right-radius: 2px;
}
#gadaj-z-ai-root .gzai-assistant .gzai-bubble {
  background: #fff;
  color: #0D1B2E;
  border: 1px solid #E5E9EF;
  border-bottom-left-radius: 2px;
}

/* Typing indicator */
#gadaj-z-ai-root .gzai-bubble.gzai-typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
#gadaj-z-ai-root .gzai-bubble.gzai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8A9BB0;
  animation: gzai-bounce 1.2s infinite ease-in-out;
}
#gadaj-z-ai-root .gzai-bubble.gzai-typing span:nth-child(2) { animation-delay: 0.15s; }
#gadaj-z-ai-root .gzai-bubble.gzai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes gzai-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Consent overlay (RODO 'overlay' mode) — full-panel modal that fades to
   welcome on accept. Sits above messages but below header so user can still
   close the panel via header X button. */
#gadaj-z-ai-root #gzai-consent-overlay {
  position: absolute;
  top: 64px;  /* below header */
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
  animation: gzai-consent-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gzai-consent-in {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
#gadaj-z-ai-root #gzai-consent-overlay.gzai-consent-overlay-leaving {
  animation: gzai-consent-out 320ms cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes gzai-consent-out {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
#gadaj-z-ai-root .gzai-consent-card {
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#gadaj-z-ai-root .gzai-consent-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gzai-accent, #FF6B35) 0%, #E5207B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(229, 32, 123, 0.18);
}
#gadaj-z-ai-root .gzai-consent-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#gadaj-z-ai-root .gzai-consent-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}
#gadaj-z-ai-root .gzai-consent-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0D1B2E;
  letter-spacing: -0.01em;
}
#gadaj-z-ai-root .gzai-consent-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4A5568;
}
#gadaj-z-ai-root .gzai-consent-policy {
  font-size: 12px;
  color: var(--gzai-accent, #FF6B35);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#gadaj-z-ai-root .gzai-consent-policy:hover {
  text-decoration-thickness: 2px;
}
#gadaj-z-ai-root .gzai-consent-accept {
  margin-top: 6px;
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gzai-accent, #FF6B35) 0%, #E5207B 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms;
}
#gadaj-z-ai-root .gzai-consent-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}
#gadaj-z-ai-root .gzai-consent-accept:active {
  transform: translateY(0);
}

/* Consent block (RODO 'banner' mode — legacy inline checkbox) */
#gadaj-z-ai-root #gzai-consent {
  padding: 10px 12px;
  background: #F5F7FA;
  border-top: 1px solid #E5E9EF;
  font-size: 12px;
  color: #4A5568;
  flex-shrink: 0;
}
#gadaj-z-ai-root #gzai-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  line-height: 1.4;
}
#gadaj-z-ai-root #gzai-consent input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--gzai-accent, #FF6B35);
}
#gadaj-z-ai-root #gzai-consent a {
  color: var(--gzai-accent, #FF6B35);
  text-decoration: underline;
}

/* Form */
#gadaj-z-ai-root #gzai-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #E5E9EF;
  flex-shrink: 0;
}
#gadaj-z-ai-root #gzai-input {
  flex: 1;
  resize: none;
  border: 1px solid #D6DCE5;
  border-radius: 5px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  min-height: 38px;
  max-height: 120px;
  color: #0D1B2E;
  background: #F5F7FA;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#gadaj-z-ai-root #gzai-input::placeholder { color: #8A9BB0; }
#gadaj-z-ai-root #gzai-input:focus {
  border-color: var(--gzai-accent, #FF6B35);
  background: #fff;
}
#gadaj-z-ai-root #gzai-input:disabled {
  background: #EEF1F5;
  color: #8A9BB0;
  cursor: not-allowed;
}
#gadaj-z-ai-root #gzai-send {
  width: 44px;
  height: 38px;
  border-radius: 5px;
  background: var(--gzai-accent, #FF6B35);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}
#gadaj-z-ai-root #gzai-send:hover { filter: brightness(0.9); }
#gadaj-z-ai-root #gzai-send:active { transform: scale(0.95); }
#gadaj-z-ai-root #gzai-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Actions row */
#gadaj-z-ai-root #gzai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
  background: #fff;
  flex-shrink: 0;
}
#gadaj-z-ai-root #gzai-actions button {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #D6DCE5;
  background: #fff;
  color: #0D1B2E;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease;
}
#gadaj-z-ai-root #gzai-actions button:hover {
  border-color: var(--gzai-accent, #FF6B35);
  color: var(--gzai-accent, #FF6B35);
}

/* Mobile */
@media (max-width: 480px) {
  #gadaj-z-ai-root { bottom: 16px; right: 16px; }
  #gadaj-z-ai-root.gzai-pos-BL { right: auto; left: 16px; }
  #gadaj-z-ai-root #gzai-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
    bottom: calc(var(--gzai-btn-size, 60px) + 12px);
    right: -4px;
  }
  #gadaj-z-ai-root.gzai-pos-BL #gzai-panel {
    right: auto;
    left: -4px;
  }
}

/* ===================================================================
   Faza G — FAB shape + pulse animations (Task 13)
   =================================================================== */

/* FAB shape override (default is 50% circle from line 32) */
#gadaj-z-ai-root.gzai-fab-rounded #gzai-btn { border-radius: 6px; }
#gadaj-z-ai-root.gzai-fab-rounded #gzai-btn img.gzai-avatar-img { border-radius: 6px; }

/* Position relative on #gzai-btn so ::before/::after anchor correctly.
   Also allow overflow:visible for radar rings which scale past button edge. */
#gadaj-z-ai-root #gzai-btn { position: relative; }
#gadaj-z-ai-root.gzai-pulse-radar #gzai-btn { overflow: visible; }

/* Pulse: radar — two expanding rings */
#gadaj-z-ai-root.gzai-pulse-radar #gzai-btn::before,
#gadaj-z-ai-root.gzai-pulse-radar #gzai-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--gzai-accent, #FF6B35);
  opacity: 0;
  animation: gzai-radar 1200ms ease-out infinite;
  pointer-events: none;
}
#gadaj-z-ai-root.gzai-pulse-radar #gzai-btn::after { animation-delay: 400ms; }
@keyframes gzai-radar {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0;   }
}

/* Pulse: breathe */
#gadaj-z-ai-root.gzai-pulse-breathe #gzai-btn {
  animation: gzai-breathe 2000ms ease-in-out infinite;
}
@keyframes gzai-breathe {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.06); }
}

/* Pulse: bounce — 2 bounces per 8s */
#gadaj-z-ai-root.gzai-pulse-bounce #gzai-btn {
  animation: gzai-bounce 8000ms ease-in-out infinite;
}
@keyframes gzai-bounce {
  0%, 10%, 20%, 100% { transform: translateY(0); }
  5%, 15%            { transform: translateY(-6px); }
}

/* Reduced motion — kill all FAB animations */
@media (prefers-reduced-motion: reduce) {
  #gadaj-z-ai-root #gzai-btn,
  #gadaj-z-ai-root #gzai-btn::before,
  #gadaj-z-ai-root #gzai-btn::after {
    animation: none !important;
  }
  #gadaj-z-ai-root .gzai-msg,
  #gadaj-z-ai-root .gzai-msg-meta,
  #gadaj-z-ai-root .gzai-assistant .gzai-bubble,
  #gadaj-z-ai-root .gzai-bubble.gzai-streaming::after {
    animation: none !important;
  }
  #gadaj-z-ai-root .gzai-bubble.gzai-streaming::after {
    opacity: 1;
  }
}

/* Pulse disabled once user has opened the panel (sticky per session).
   Separate from .gzai-open (which toggles panel visibility) because we
   only want to suppress the pulse, not panel show/hide. */
#gadaj-z-ai-root.gzai-opened-once #gzai-btn { animation: none !important; }
#gadaj-z-ai-root.gzai-opened-once #gzai-btn::before,
#gadaj-z-ai-root.gzai-opened-once #gzai-btn::after {
  animation: none !important;
  opacity: 0;
}

/* ===================================================================
   Faza G — Splash screen (Task 14)
   Overlays the panel body for ~1.5 s on first open in the session.
   =================================================================== */

#gadaj-z-ai-root #gzai-splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(180deg, #0A0F1E 0%, #101830 50%, #0D1225 100%);
  border-radius: 7px;
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}
#gadaj-z-ai-root #gzai-splash[data-visible="1"] { opacity: 1; }

#gadaj-z-ai-root .gzai-splash-logo img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
#gadaj-z-ai-root .gzai-splash-title {
  font: 600 18px/1.4 Outfit, system-ui, sans-serif;
  color: #ffffff;
  text-align: center;
}
#gadaj-z-ai-root .gzai-splash-company {
  font: 400 13px/1.4 Outfit, system-ui, sans-serif;
  color: #8A9BB0;
  text-align: center;
}

#gadaj-z-ai-root .gzai-splash-anim {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gadaj-z-ai-root .gzai-splash-anim-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 3px;
  border-radius: 50%;
  background: #FF6B35;
  animation: gzai-splash-dot 1200ms ease-in-out infinite;
}
#gadaj-z-ai-root .gzai-splash-anim-dots span:nth-child(2) { animation-delay: 200ms; }
#gadaj-z-ai-root .gzai-splash-anim-dots span:nth-child(3) { animation-delay: 400ms; }
@keyframes gzai-splash-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-4px); }
}

#gadaj-z-ai-root .gzai-splash-anim-fade-greeting {
  animation: gzai-fade-in 600ms ease-out both;
  font: 600 20px/1 Outfit, system-ui, sans-serif;
  color: #ffffff;
}
@keyframes gzai-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#gadaj-z-ai-root .gzai-typewriter {
  border-right: 2px solid #FF6B35;
  white-space: nowrap;
  overflow: hidden;
  animation: gzai-type 1200ms steps(8) 1 both;
  font: 600 20px/1 Outfit, system-ui, sans-serif;
  color: #ffffff;
  display: inline-block;
}
@keyframes gzai-type {
  from { width: 0; }
  to   { width: 7ch; }
}

@media (prefers-reduced-motion: reduce) {
  #gadaj-z-ai-root #gzai-splash { transition: none; }
  #gadaj-z-ai-root .gzai-splash-anim-dots span,
  #gadaj-z-ai-root .gzai-typewriter,
  #gadaj-z-ai-root .gzai-splash-anim-fade-greeting {
    animation: none !important;
  }
}

/* ===================================================================
   Faza G — Welcome cards (Task 15)
   3 suggested-question cards rendered below the greeting on first open.
   =================================================================== */

#gadaj-z-ai-root .gzai-welcome-cards {
  display: grid;
  gap: 8px;
  padding: 8px 12px 4px;
  transition: opacity 150ms ease-out;
}
#gadaj-z-ai-root .gzai-welcome-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  background: rgba(13, 27, 46, 0.04);
  border: 1px solid rgba(13, 27, 46, 0.12);
  border-radius: 6px;
  color: #0D1B2E;
  text-align: left;
  font: 500 14px/1.4 Outfit, system-ui, sans-serif;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
#gadaj-z-ai-root .gzai-welcome-card:hover {
  background: rgba(0, 191, 255, 0.08);
  border-color: #00BFFF;
}
#gadaj-z-ai-root .gzai-welcome-card-icon {
  color: #FF6B35;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  #gadaj-z-ai-root .gzai-welcome-cards { transition: none; }
}

/* ===================================================================
   Faza H — Rich catalog cards (Task 27)
   =================================================================== */

.emedia-chat-cards { display: grid; gap: 10px; margin: 8px 0; }
.emedia-chat-card { position: relative; background: #0D1B2E; border: 1px solid #1a2540; border-radius: 6px; overflow: hidden; cursor: pointer; min-height: 320px; max-height: 380px; display: flex; flex-direction: column; transition: border-color 150ms ease, transform 200ms ease; font-family: Outfit, system-ui, sans-serif; color: #fff; animation: gzai-card-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.emedia-chat-card:nth-child(1) { animation-delay: 120ms; }
.emedia-chat-card:nth-child(2) { animation-delay: 260ms; }
.emedia-chat-card:nth-child(3) { animation-delay: 400ms; }
.emedia-chat-card:nth-child(4) { animation-delay: 540ms; }
.emedia-chat-card:nth-child(5) { animation-delay: 680ms; }
.emedia-chat-card:nth-child(n+6) { animation-delay: 820ms; }
@keyframes gzai-card-in {
  0%   { opacity: 0; transform: translateY(12px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.emedia-chat-card:hover { border-color: #00BFFF; }
.emedia-chat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.emedia-chat-card__badge { position: absolute; top: 8px; right: 8px; background: #E5207B; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.emedia-chat-card__body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.emedia-chat-card__body h4 { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.3; }
.emedia-chat-card__subtitle { font-size: 12px; color: #8A9BB0; margin: 0; }
.emedia-chat-card__desc { font-size: 12px; color: #c0cada; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.emedia-chat-card__price { color: #FF6B35; font-weight: 600; font-size: 14px; margin-top: auto; }
.emedia-chat-card__cta { background: #FF6B35; color: #0D1B2E; border: none; padding: 8px 12px; border-radius: 5px; font-weight: 600; cursor: pointer; min-height: 40px; font-family: inherit; font-size: 13px; }
@media (min-width: 480px) { .emedia-chat-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* ===================================================================
   Faza H — Widget width: pro+catalog 480px, default 380px (Task 28)
   Mobile override: always fill available viewport width.
   =================================================================== */
@media (max-width: 768px) {
  #gadaj-z-ai-root #gzai-panel {
    width: calc(100vw - 16px) !important;
  }
}
