/* ========================================
   AI Check — ChatGPT/Claude Style Interface
   ======================================== */

/* ---- Layout ---- */
.aicheck-main {
  display: flex;
  flex-direction: column;
  background: var(--color-light-bg, #f8f9fb);
}

.app-shell__content--aicheck {
  display: flex;
  flex-direction: column;
}

.aicheck-topbar {
  padding: 80px 0 var(--space-sm, 8px) 0;
  background: transparent;
}

.aicheck-chat-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.container--chat {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-md, 16px);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ---- Chat Messages ---- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg, 24px) 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  scroll-behavior: smooth;
}

/* ---- Chat Message ---- */
.chat-msg {
  display: flex;
  gap: 14px;
  max-width: 100%;
  opacity: 0;
  animation: chatMsgFadeIn 0.4s ease forwards;
}

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

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 80%;
}

@keyframes chatMsgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Avatar ---- */
.chat-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.chat-msg--ai .chat-msg__avatar {
  background: var(--color-accent-purple, #7243f2);
  color: #fff;
}

.chat-msg--user .chat-msg__avatar {
  background: #e5e7eb;
  color: #6b7280;
}

/* ---- Bubble ---- */
.chat-msg__bubble {
  min-width: 0;
  word-break: break-word;
}

.chat-msg--ai .chat-msg__bubble {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--color-text-primary, #1a1a2e);
  padding: 2px 0;
  font-size: 1rem;
  line-height: 1.75;
  border-radius: 0;
}

.chat-msg--user .chat-msg__bubble {
  background: rgba(114, 67, 242, 0.07);
  color: var(--color-text-primary, #1a1a2e);
  border: none;
  border-radius: 20px;
  box-shadow: none;
  padding: 12px 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.chat-msg__bubble strong {
  font-weight: 600;
}

.chat-msg__bubble .chat-feature-list {
  display: block;
  margin-top: 10px;
  line-height: 2;
  color: var(--color-text-muted, #64748b);
}

/* AI Name header in greeting */
.chat-ai-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 8px;
}

/* ---- Streaming Cursor ---- */
.streaming-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.15em;
  background: var(--color-accent-purple, #7243f2);
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: cursorBlink 0.53s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- Typing Indicator ---- */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 8px 0;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted, #9ca3af);
  animation: typingPulse 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.3); }
}

/* ---- Car Scanner Animation ---- */
.chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
}

.car-scanner {
  position: relative;
  width: 220px;
  height: 90px;
}

.car-scanner__car {
  width: 100%;
  height: 100%;
}

.car-scanner__beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, #7243f2 30%, #7243f2 70%, transparent 100%);
  border-radius: 2px;
  animation: scanBeam 2.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(114, 67, 242, 0.4);
}

@keyframes scanBeam {
  0%   { left: 0; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

.chat-loading__text {
  font-weight: 500;
  color: var(--color-text-primary, #1a1a2e);
  font-size: 0.9375rem;
  animation: loadPulse 2s ease-in-out infinite;
  margin: 0;
}

.chat-loading__sub {
  font-size: var(--fs-xs, 0.8125rem);
  color: var(--color-text-muted, #64748b);
  margin: 0;
}

@keyframes loadPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- Score Ring ---- */
.chat-result-score {
  display: flex;
  align-items: center;
  gap: var(--space-lg, 24px);
}

.score-ring {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  position: relative;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring__track {
  fill: none;
  stroke: #eef0f4;
  stroke-width: 8;
}

.score-ring__progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring__progress--green { stroke: #22c55e; }
.score-ring__progress--yellow { stroke: #f0a500; }
.score-ring__progress--red { stroke: #ef4444; }

.score-ring__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring__number {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-primary, #1a1a2e);
}

.score-ring__label {
  font-size: 0.7rem;
  color: var(--color-text-muted, #64748b);
  margin-top: 2px;
}

.chat-result-score__text {
  line-height: 1.5;
}

.chat-result-score__text strong {
  display: block;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: var(--fs-md, 1.0625rem);
  margin-bottom: 4px;
}

.chat-result-score__text .text-muted {
  color: var(--color-text-muted, #64748b);
  font-size: var(--fs-sm, 0.9375rem);
}

/* ---- Result Sections ---- */
.result-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.result-section-title svg {
  flex-shrink: 0;
  color: var(--color-accent-purple, #7243f2);
  stroke: var(--color-accent-purple, #7243f2);
}

/* Structure items */
.structure-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs, 6px);
  padding: 6px 0;
  font-size: var(--fs-sm, 0.9375rem);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.structure-item:last-child { border-bottom: 0; }

.structure-item__icon--found {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.structure-item__icon--missing {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* Gap items */
.gap-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(240, 165, 0, 0.06);
  border-left: 3px solid #f0a500;
  border-radius: 0 8px 8px 0;
  font-size: var(--fs-sm, 0.9375rem);
}

.gap-item:last-child { margin-bottom: 0; }

.gap-item__category {
  font-weight: 600;
  font-size: var(--fs-xs, 0.8125rem);
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.gap-item__detail {
  color: var(--color-text-primary, #1a1a2e);
}

/* Formula items */
.formula-item {
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: var(--fs-sm, 0.9375rem);
}

.formula-item:last-child { margin-bottom: 0; }

.formula-item--ok {
  color: #15803d;
  background: rgba(34, 197, 94, 0.06);
}

.formula-item--issue {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.06);
}

/* Recommendation items */
.rec-item {
  display: flex;
  gap: var(--space-xs, 6px);
  padding: 8px 0;
  font-size: var(--fs-sm, 0.9375rem);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.rec-item:last-child { border-bottom: 0; }

.rec-item::before {
  content: attr(data-num);
  font-weight: 700;
  color: var(--color-accent-purple, #7243f2);
  flex-shrink: 0;
  width: 24px;
}

.result-empty {
  color: var(--color-text-muted, #64748b);
  font-style: italic;
  margin: 0;
}

/* ---- File Bubble ---- */
.chat-file-bubble {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 8px);
}

.chat-file-bubble__name {
  font-weight: 600;
}

.chat-file-bubble__size {
  opacity: 0.7;
  font-size: var(--fs-xs, 0.8125rem);
}

/* ---- Buttons inside chat ---- */
.btn--new-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-accent-purple, #7243f2);
  color: #fff;
  border: none;
  font-family: inherit;
}

.btn--new-check:hover {
  background: #6234d9;
  box-shadow: 0 2px 12px rgba(114, 67, 242, 0.25);
}

/* ---- Input Wrapper (always visible) ---- */
.aicheck-input-wrapper {
  flex-shrink: 0;
  padding-bottom: 80px;
}

@media (max-width: 576px) {
  .aicheck-input-wrapper {
    padding-bottom: 90px;
  }
}

/* ---- Input Area ---- */
.chat-input-area {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--color-light-bg, #f8f9fb) 75%, transparent);
  padding: 20px 0 28px;
  border-top: none;
  z-index: 10;
}

.chat-upload-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chat-upload-zone:hover {
  border-color: var(--color-accent-purple, #7243f2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chat-upload-zone.dragover {
  border-color: var(--color-accent-purple, #7243f2);
  background: rgba(114, 67, 242, 0.03);
  box-shadow: 0 4px 20px rgba(114, 67, 242, 0.12);
}

.chat-upload-zone__icon {
  flex-shrink: 0;
}

.chat-upload-zone__text {
  display: flex;
  flex-direction: column;
}

.chat-upload-zone__title {
  font-weight: 600;
  font-size: var(--fs-sm, 0.9375rem);
  color: var(--color-text-primary, #1a1a2e);
}

.chat-upload-zone__subtitle {
  font-size: var(--fs-xs, 0.8125rem);
  color: var(--color-text-muted, #64748b);
}

/* File preview */
.chat-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chat-file-preview__info {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 8px);
}

.chat-file-preview__name {
  font-weight: 600;
  font-size: var(--fs-sm, 0.9375rem);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-file-preview__size {
  font-size: var(--fs-xs, 0.8125rem);
  color: var(--color-text-muted, #64748b);
}

.chat-file-preview__remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--color-text-muted, #64748b);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.chat-file-preview__remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

/* Send button */
.chat-send-btn {
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--color-accent-purple, #7243f2);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: var(--fs-base, 1rem);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(114, 67, 242, 0.15);
}

.chat-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-send-btn:not(:disabled):hover {
  box-shadow: 0 4px 16px rgba(114, 67, 242, 0.25);
  transform: translateY(-1px);
}

.chat-send-btn:not(:disabled):active {
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .container--chat {
    padding: 0 16px;
  }

  .chat-msg {
    max-width: 100%;
  }

  .chat-msg--user {
    max-width: 95%;
  }

  .chat-msg__avatar {
    width: 24px;
    height: 24px;
  }

  .chat-msg__avatar svg {
    width: 14px;
    height: 14px;
  }

  .chat-msg--ai .chat-msg__bubble {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .chat-msg--user .chat-msg__bubble {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  .car-scanner {
    width: 170px;
    height: 70px;
  }

  .score-ring {
    width: 80px;
    height: 80px;
  }

  .score-ring__number {
    font-size: 1.3rem;
  }

  .chat-result-score {
    gap: var(--space-md, 16px);
  }

  .chat-upload-zone {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .chat-upload-zone__text {
    align-items: center;
  }

  .chat-file-preview__name {
    max-width: 160px;
  }

  .chat-file-preview,
  .chat-send-btn {
    border-radius: 20px;
  }
}

/* ============================================
   AI Check — Welcome Hero Screen
   ============================================ */
.aicheck-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 32px;
  flex: 1;
  min-height: 0;
  animation: welcomeFadeIn 0.8s ease-out;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.aicheck-welcome--hidden {
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  pointer-events: none;
  position: absolute;
}

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

/* ---- Brain Container ---- */
.aicheck-welcome__brain {
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
  position: relative;
  animation: aiBrainBreathe 6s ease-in-out infinite;
}

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

/* Brain SVG styles (compact version) */
.aicheck-welcome__brain .brain-svg {
  width: 100%;
  height: 100%;
}

.aicheck-welcome__brain .brain-line {
  stroke: rgba(114, 67, 242, 0.2);
  stroke-width: 1.2;
  animation: aiLineBreathe 4s ease-in-out infinite;
}

.aicheck-welcome__brain .brain-line--1 { animation-delay: 0s; }
.aicheck-welcome__brain .brain-line--2 { animation-delay: 0.2s; }
.aicheck-welcome__brain .brain-line--3 { animation-delay: 0.4s; }
.aicheck-welcome__brain .brain-line--4 { animation-delay: 0.6s; }
.aicheck-welcome__brain .brain-line--5 { animation-delay: 0.8s; }
.aicheck-welcome__brain .brain-line--6 { animation-delay: 1s; }
.aicheck-welcome__brain .brain-line--7 { animation-delay: 1.2s; }
.aicheck-welcome__brain .brain-line--8 { animation-delay: 0.3s; }
.aicheck-welcome__brain .brain-line--9 { animation-delay: 0.5s; }
.aicheck-welcome__brain .brain-line--10 { animation-delay: 0.7s; }
.aicheck-welcome__brain .brain-line--11 { animation-delay: 0.9s; }
.aicheck-welcome__brain .brain-line--12 { animation-delay: 1.1s; }
.aicheck-welcome__brain .brain-line--16 { animation-delay: 0.15s; }
.aicheck-welcome__brain .brain-line--20 { animation-delay: 0.35s; }
.aicheck-welcome__brain .brain-line--21 { animation-delay: 0.55s; }

@keyframes aiLineBreathe {
  0%, 100% { stroke-opacity: 0.2; }
  50% { stroke-opacity: 0.5; }
}

/* Nodes */
.aicheck-welcome__brain .brain-node--core {
  fill: #7243f2;
  animation: aiCorePulse 3s ease-in-out infinite;
}

.aicheck-welcome__brain .brain-node--mid {
  fill: rgba(114, 67, 242, 0.6);
  animation: aiNodePulse 3.5s ease-in-out infinite;
}

.aicheck-welcome__brain .brain-node--inner {
  fill: rgba(114, 67, 242, 0.4);
  animation: aiNodePulse 4s ease-in-out infinite;
}

.aicheck-welcome__brain .brain-node--out {
  fill: rgba(114, 67, 242, 0.3);
  animation: aiNodePulse 4.5s ease-in-out infinite;
}

@keyframes aiCorePulse {
  0%, 100% { r: 12; fill-opacity: 1; }
  50% { r: 14; fill-opacity: 0.8; }
}

@keyframes aiNodePulse {
  0%, 100% { fill-opacity: 0.4; }
  50% { fill-opacity: 0.8; }
}

/* Pulse signals */
.aicheck-welcome__brain .brain-pulse {
  fill: #a78bfa;
  opacity: 0;
}

.aicheck-welcome__brain .brain-pulse--1 {
  animation: aiPulse1 4s ease-in-out infinite 0s;
}
.aicheck-welcome__brain .brain-pulse--2 {
  animation: aiPulse2 4.5s ease-in-out infinite 0.8s;
}
.aicheck-welcome__brain .brain-pulse--3 {
  animation: aiPulse3 5s ease-in-out infinite 1.6s;
}
.aicheck-welcome__brain .brain-pulse--4 {
  animation: aiPulse4 4.2s ease-in-out infinite 2.4s;
}
.aicheck-welcome__brain .brain-pulse--5 {
  animation: aiPulse5 4.8s ease-in-out infinite 3.2s;
}

@keyframes aiPulse1 {
  0%, 100% { cx: 200; cy: 80; opacity: 0; }
  10% { opacity: 1; }
  50% { cx: 120; cy: 160; opacity: 1; }
  90% { opacity: 0; }
  95% { cx: 80; cy: 260; }
}

@keyframes aiPulse2 {
  0%, 100% { cx: 200; cy: 80; opacity: 0; }
  10% { opacity: 1; }
  50% { cx: 280; cy: 160; opacity: 1; }
  90% { opacity: 0; }
  95% { cx: 320; cy: 260; }
}

@keyframes aiPulse3 {
  0%, 100% { cx: 120; cy: 160; opacity: 0; }
  10% { opacity: 1; }
  50% { cx: 160; cy: 260; opacity: 1; }
  90% { opacity: 0; }
  95% { cx: 200; cy: 340; }
}

@keyframes aiPulse4 {
  0%, 100% { cx: 280; cy: 160; opacity: 0; }
  10% { opacity: 1; }
  50% { cx: 240; cy: 260; opacity: 1; }
  90% { opacity: 0; }
  95% { cx: 260; cy: 340; }
}

@keyframes aiPulse5 {
  0%, 100% { cx: 200; cy: 180; opacity: 0; }
  10% { opacity: 1; }
  50% { cx: 160; cy: 260; opacity: 1; }
  90% { opacity: 0; }
  95% { cx: 140; cy: 340; }
}

/* Glow rings */
.aicheck-welcome__brain .brain-ring {
  fill: none;
  stroke: rgba(114, 67, 242, 0.15);
  stroke-width: 1;
}

.aicheck-welcome__brain .brain-ring--1 {
  animation: aiRing1 3s ease-in-out infinite;
}

.aicheck-welcome__brain .brain-ring--2 {
  animation: aiRing2 3.5s ease-in-out infinite 0.5s;
}

@keyframes aiRing1 {
  0%, 100% { r: 20; stroke-opacity: 0.15; }
  50% { r: 26; stroke-opacity: 0.3; }
}

@keyframes aiRing2 {
  0%, 100% { r: 32; stroke-opacity: 0.08; }
  50% { r: 40; stroke-opacity: 0.2; }
}

/* ---- Label ---- */
.aicheck-welcome__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #7243f2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  opacity: 0;
  animation: chipSlideUp 0.5s ease-out 0.3s forwards;
}

/* ---- Title ---- */
.aicheck-welcome__title {
  font-size: 2rem;
  font-weight: 800;
  color: #1d1729;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  animation: chipSlideUp 0.5s ease-out 0.4s forwards;
}

/* ---- Subtitle ---- */
.aicheck-welcome__subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 28px;
  opacity: 0;
  animation: chipSlideUp 0.5s ease-out 0.5s forwards;
}

/* ---- Feature Chips ---- */
.aicheck-welcome__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.aicheck-welcome__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.2s;
  opacity: 0;
  animation: chipSlideUp 0.4s ease-out forwards;
}

.aicheck-welcome__chip:nth-child(1) { animation-delay: 0.6s; }
.aicheck-welcome__chip:nth-child(2) { animation-delay: 0.7s; }
.aicheck-welcome__chip:nth-child(3) { animation-delay: 0.8s; }
.aicheck-welcome__chip:nth-child(4) { animation-delay: 0.9s; }

.aicheck-welcome__chip:hover {
  border-color: rgba(114, 67, 242, 0.3);
  color: #7243f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(114, 67, 242, 0.1);
}

.aicheck-welcome__chip svg {
  flex-shrink: 0;
  opacity: 0.6;
}

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

/* ---- Upload zone pulse (idle) ---- */
.aicheck-welcome ~ .aicheck-chat-wrapper .chat-upload-zone,
.aicheck-welcome__upload-hint .chat-upload-zone {
  animation: uploadPulse 3s ease-in-out infinite;
}

@keyframes uploadPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
  50% { box-shadow: 0 2px 20px rgba(114, 67, 242, 0.12); }
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
  .aicheck-welcome {
    padding: 32px 16px 24px;
  }

  .aicheck-welcome__brain {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
  }

  .aicheck-welcome__title {
    font-size: 1.5rem;
  }

  .aicheck-welcome__subtitle {
    font-size: 0.875rem;
  }

  .aicheck-welcome__chip {
    padding: 6px 12px;
    font-size: 11px;
  }
}
