/* ============================================
   ALAPOK - Aventra design system
   ============================================ */
:root {
  /* Slate színek - alapszín a teljes UI-hoz */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Indigo - fő akcent */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  /* Másodlagos színek */
  --blue-50: #eff6ff;
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --rose-50: #fff1f2;
  --rose-500: #f43f5e;
  --orange-500: #f97316;
  --purple-500: #a855f7;
  --neutral-900: #171717;

  /* Fő semantic változók (ezeket használjuk a kódban) */
  --bg: #ffffff;
  --bg-elevated: var(--slate-50);
  --bg-card: white;
  --ink: var(--slate-900);
  --ink-muted: var(--slate-600);
  --ink-faint: var(--slate-400);
  --line: var(--slate-200);
  --line-soft: var(--slate-100);
  --accent: var(--indigo-600);
  --accent-warm: var(--indigo-700);

  /* Tipográfia */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Geist', sans-serif;
  --display: 'Geist', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-muted);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--indigo-100); color: var(--indigo-700); }

/* ============================================
   HÁTTÉR ELEMEK - 4-oszlopos rács + ambient blob-ok
   ============================================ */
.column-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.column-grid-bg-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.column-grid-bg-inner > div {
  border-right: 1px solid var(--line-soft);
  height: 100%;
}

.column-grid-bg-inner > div:last-child { border-right: none; }

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.blob-hero-1 {
  background: var(--indigo-200);
  width: 384px;
  height: 384px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.blob-hero-2 {
  background: var(--blue-50);
  width: 800px;
  height: 800px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}

/* ============================================
   NAVBAR (glass)
   ============================================ */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--neutral-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brand-text {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand::after { display: none; }

.nav-meta {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 49;
}

.progress-bar {
  height: 100%;
  background: var(--indigo-600);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* ============================================
   FŐ LAYOUT
   ============================================ */
.app {
  position: relative;
  min-height: 100vh;
  z-index: 5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 108px 32px 80px;
  position: relative;
  z-index: 5;
}

.container-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 108px 32px 80px;
  position: relative;
  z-index: 5;
}

/* ============================================
   SCREEN ANIMÁCIÓK
   ============================================ */
.screen {
  display: none;
  animation: fadeIn 0.5s ease;
}

.screen.active { display: block; }

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

@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); transform: scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

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

/* ============================================
   INTRO/HERO SCREEN
   ============================================ */
#screen-intro { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
  animation: fadeUp 0.8s ease-out;
}

h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 32px;
  animation: blurIn 1s ease-out 0.2s both;
}

h1 em, h1 .accent {
  font-style: normal;
  color: var(--indigo-600);
}

h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

.intro-text {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto 16px;
  animation: fadeUp 1s ease-out 0.4s both;
}

.intro-text strong {
  color: var(--ink);
  font-weight: 600;
}

#screen-intro h1 + .intro-text { margin-top: -8px; }

/* Meta row */
.meta-row {
  display: flex;
  gap: 32px;
  margin: 32px auto 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 580px;
  animation: fadeUp 1s ease-out 0.6s both;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.intro-actions { animation: fadeUp 1s ease-out 0.8s both; }

/* ============================================
   QUESTION SCREEN ALAPJAI
   ============================================ */
.question-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.question-num strong {
  color: var(--indigo-600);
  font-weight: 600;
}

.q-content { max-width: 600px; }

.question-helper {
  color: var(--ink-muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* ============================================
   INPUTS
   ============================================ */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.option {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-weight: 400;
}

.option:hover {
  border-color: var(--indigo-200);
  background: var(--bg-elevated);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.15);
}

.option-marker {
  font-family: var(--display);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  width: 24px;
  flex-shrink: 0;
  font-weight: 500;
}

.option:hover .option-marker { color: var(--indigo-600); }

.option.selected {
  border-color: var(--indigo-600);
  background: var(--indigo-50);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.option.selected .option-marker { color: var(--indigo-600); }

textarea, input[type="text"], input[type="email"], input[type="number"], select {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  padding-right: 56px;
  cursor: pointer;
}

/* ============================================
   GOMBOK
   ============================================ */
.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

#screen-intro .btn-row { justify-content: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-600);
  color: white;
  border: none;
  padding: 14px 32px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
  box-shadow: 0 24px 48px -12px rgba(79, 70, 229, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary::after {
  content: '↗';
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn-primary:hover::after { transform: translate(2px, -2px); }

/* ============================================
   PROGRESS GOMB — spinner + cycling szöveg
   ============================================ */
.btn-primary.btn-progress,
.btn-secondary.btn-progress {
  opacity: 1 !important;
  cursor: wait !important;
}

.btn-progress::after {
  display: none;
}

.btn-progress-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: btn-progress-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-progress-spin {
  to { transform: rotate(360deg); }
}

.btn-progress-text {
  display: inline-block;
  font-size: 14px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-progress-text-out {
  opacity: 0;
  transform: translateY(-4px);
}

.btn-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--slate-700);
  border: 1px solid var(--line);
  padding: 14px 32px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

.btn-back {
  background: transparent;
  color: var(--ink-faint);
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 32px;
  padding: 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.btn-back:hover { color: var(--indigo-600); }
.btn-back::before { content: '←'; font-size: 14px; }

.skip-link {
  display: inline-block;
  margin-top: 16px;
  background: transparent;
  color: var(--ink-faint);
  border: none;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  font-family: inherit;
  transition: color 0.2s ease;
}

.skip-link:hover { color: var(--indigo-600); }

/* ============================================
   AI FOLLOW-UP DOBOZ
   ============================================ */
.llm-followup {
  margin-top: -8px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 14px;
  display: none;
  animation: slideIn 0.4s ease;
}

.llm-followup.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.llm-followup-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.llm-followup-label::before { content: '◆'; font-size: 8px; }

.llm-followup-text {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 12px;
}

.llm-followup textarea {
  background: white;
  margin-bottom: 0;
}

/* ============================================
   ÉLŐ GONDOLKODÁS BLOKK
   ============================================ */
.thinking-block {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
  margin-bottom: 48px;
  transition: opacity 0.6s ease, max-height 0.6s ease, padding 0.6s ease, margin 0.6s ease, min-height 0.6s ease;
  overflow: hidden;
  background: transparent;
  border: none;
}

.thinking-block.fading { opacity: 0.4; }

.thinking-block.collapsed {
  opacity: 0;
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

/* Forgó töltő */
.thinking-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  position: relative;
}

.thinking-spinner::before,
.thinking-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.thinking-spinner::before {
  border-top-color: var(--indigo-600);
  border-right-color: var(--indigo-300);
  animation: thinking-spin 1.1s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

.thinking-spinner::after {
  border-bottom-color: var(--indigo-200);
  border-left-color: var(--indigo-100);
  animation: thinking-spin 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

@keyframes thinking-spin {
  to { transform: rotate(360deg); }
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.thinking-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0.8;
}

.thinking-label::before {
  display: none;
}

.thinking-text {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  max-width: 640px;
  min-height: 1.4em;
  margin: 0 auto;
}

/* Soronkénti megjelenítés animációja:
   0.5s fade-in → 1.8s tart → 0.5s fade-out (összesen 2.8s) */
.thinking-text.thinking-fade {
  animation: thinking-line-cycle 2.8s ease forwards;
}

@keyframes thinking-line-cycle {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  18% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  82% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(2px);
  }
}

.thinking-text.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

/* ============================================
   RIPORT
   ============================================ */
.report-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 20px;
}

.report-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--indigo-600);
}

.report-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease;
}

.report-cards .report-block {
  opacity: 0;
  transform: translateY(12px);
  animation: report-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.report-cards .report-block:nth-child(1) { animation-delay: 0ms; }
.report-cards .report-block:nth-child(2) { animation-delay: 100ms; }
.report-cards .report-block:nth-child(3) { animation-delay: 200ms; }
.report-cards .report-block:nth-child(4) { animation-delay: 300ms; }

.report-cards .report-card {
  opacity: 0;
  transform: translateY(12px);
  animation: report-card-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.report-cards .report-card:nth-child(1) { animation-delay: 0ms; }
.report-cards .report-card:nth-child(2) { animation-delay: 100ms; }
.report-cards .report-card:nth-child(3) { animation-delay: 200ms; }
.report-cards .report-card:nth-child(4) { animation-delay: 300ms; }

@keyframes report-card-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ÚJ KOMPAKT RIPORT-BLOKKOK
   ============================================ */
.report-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.report-block:hover {
  border-color: var(--indigo-200);
  box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.12);
}

.report-block-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-block-label .block-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

/* A) KPI-pirula rács */
.kpi-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kpi-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-pill-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.kpi-pill-value {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.report-quote {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 16px;
  border-left: 2px solid var(--indigo-200);
  background: var(--bg-elevated);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.report-quote:empty { display: none; }

.report-quote::before {
  content: '\201E';
  position: absolute;
  top: -4px;
  left: 8px;
  font-size: 24px;
  color: var(--indigo-300);
  line-height: 1;
  font-family: var(--display);
}

@media (max-width: 700px) {
  .kpi-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .report-block { padding: 18px 20px; }
}

/* B) Szűk keresztmetszet — egy kompakt mondat */
.bottleneck-text {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.bottleneck-text.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

/* C) Az időd ára — hero szám-blokk */
.cost-hero {
  text-align: center;
  padding: 28px 16px 20px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, transparent 100%);
  border-radius: 16px;
}

.cost-hero-value {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}

.cost-hero-value sup {
  font-size: 0.4em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-left: 4px;
  vertical-align: super;
}

.cost-hero-meta {
  font-size: 14px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* D) Vision — most vs. később */
.vision-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.vision-side {
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  border: 1px solid var(--line-soft);
}

.vision-side.vision-now {
  background: var(--rose-50);
  border-color: rgba(244, 63, 94, 0.15);
}

.vision-side.vision-later {
  background: var(--emerald-50);
  border-color: rgba(16, 185, 129, 0.15);
}

.vision-side-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 8px;
}

.vision-now .vision-side-label { color: var(--rose-500); }
.vision-later .vision-side-label { color: var(--emerald-600); }

.vision-side-stat {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.vision-side-stat:last-child { margin-bottom: 0; }

.vision-arrow {
  font-size: 22px;
  color: var(--ink-faint);
  font-family: var(--display);
  font-weight: 400;
}

/* Megtakarítás-badge: a két oldal közt — explicit kiemelés */
.vision-savings-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
  background: var(--emerald-500);
  border-radius: 16px;
  color: white;
  box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.45), 0 0 0 4px rgba(16, 185, 129, 0.1);
  position: relative;
}

.vision-savings-badge::before,
.vision-savings-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--emerald-500);
  opacity: 0.4;
  transform: translateY(-50%);
}

.vision-savings-badge::before { right: 100%; }
.vision-savings-badge::after { left: 100%; }

.vision-savings-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 2px;
}

.vision-savings-value {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: white;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vision-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: center;
  padding: 0 8px;
}

.vision-summary.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

@media (max-width: 700px) {
  .vision-compare { grid-template-columns: 1fr; gap: 12px; }
  .vision-arrow { transform: rotate(90deg); margin: 0 auto; }
  .vision-savings-badge { width: fit-content; margin: 0 auto; padding: 12px 22px; flex-direction: row; gap: 16px; }
  .vision-savings-badge::before,
  .vision-savings-badge::after { display: none; }
  .vision-savings-label { display: none; }
  .vision-savings-value { font-size: 16px; }
}

/* MEGOLDÁS — chip-folyamat */
.solution-chips {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 16px 0 8px;
}

.solution-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.solution-chip-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 4px;
}

.solution-chip-value {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

.solution-chip-arrow {
  font-size: 18px;
  color: var(--ink-faint);
  font-family: var(--display);
}

@media (max-width: 700px) {
  .solution-chips { grid-template-columns: 1fr; }
  .solution-chip-arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* ============================================
   SKELETON LOADER — toltheto helykitolto
   ============================================ */
@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-line,
.skeleton-block {
  position: relative;
  display: block;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--line-soft) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

.skeleton-line {
  min-height: 14px;
  margin: 4px 0;
}

.skeleton-block {
  min-height: 48px;
  margin: 10px 0;
}

/* A solution-chip-value mint skeleton — kicsit kompaktabb */
.solution-chip-value.skeleton-line {
  min-height: 16px;
  width: 80%;
}

/* A solution-savings mint skeleton — keskeny */
.solution-savings.skeleton-line {
  width: 60%;
}

/* ============================================
   DEMO-BLOCK LOADING — amig a demo-plan keszul
   ============================================ */
.demo-block.demo-block-loading .demo-block-content,
.demo-block.demo-block-loading [id^="demo-"] {
  display: none !important;
}

.demo-block.demo-block-loading::before {
  content: '';
  display: block;
  height: 320px;
  margin: 24px 0;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--line-soft) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 400px 100%;
  background-repeat: no-repeat;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

.demo-block.demo-block-loading::after {
  content: 'Készítjük az egyedi demódat...';
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: -16px;
  padding-bottom: 16px;
  font-family: var(--display);
  letter-spacing: 0.01em;
  font-weight: 500;
  animation: pulse-text 1.6s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.report-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.report-card:hover {
  border-color: var(--indigo-200);
  box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.12);
}

.report-card-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--display);
}

.report-card-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-right: 60px;
  font-weight: 600;
}

.report-card-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  font-family: var(--sans);
}

.report-card-text.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

.report-card-numbers .cost-display-inline { margin: 4px 0 8px; }

.report-card-numbers .cost-display-inline .cost-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 600;
}

.report-card-numbers .cost-display-inline .cost-value {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  color: var(--indigo-600);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.report-card-numbers .cost-display-inline .cost-value sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--ink-faint);
  margin-left: 4px;
  font-weight: 400;
}

.report-card-numbers .cost-display-inline .cost-value .cost-num {
  display: inline;
}

.report-card-numbers .benchmark-row { margin: 12px 0 16px; }

.report-card-heard .report-card-icon { background: rgba(99, 102, 241, 0.1); color: var(--indigo-600); }
.report-card-bottleneck .report-card-icon { background: rgba(244, 63, 94, 0.1); color: var(--rose-500); }
.report-card-numbers .report-card-icon { background: var(--emerald-50); color: var(--emerald-500); }
.report-card-vision .report-card-icon { background: rgba(168, 85, 247, 0.1); color: var(--purple-500); }

/* ============================================
   COST DISPLAY (megtartva fallbackként)
   ============================================ */
.cost-display {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cost-display::before { display: none; }

.cost-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 600;
}

.cost-value {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 80px);
  line-height: 1;
  color: var(--indigo-600);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cost-value sup {
  font-size: 0.35em;
  vertical-align: super;
  color: var(--ink-faint);
  margin-left: 4px;
  font-weight: 400;
}

.cost-context {
  font-size: 15px;
  color: var(--ink-muted);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   BENCHMARK ROW
   ============================================ */
.benchmark-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.benchmark {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line-soft);
}

.benchmark-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
  font-weight: 600;
}

.benchmark-value {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.benchmark-value strong { color: var(--indigo-600); }

/* ============================================
   MEGOLDÁS-VÁZLAT
   ============================================ */
.solution-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line-soft);
  animation: fadeUp 0.6s ease;
}

.solution-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 16px;
}

.solution-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--indigo-600);
}

.solution-card {
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px -16px rgba(79, 70, 229, 0.15);
}

.solution-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.solution-name.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 4px;
}

.solution-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.solution-description.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

.solution-savings {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1px solid var(--indigo-200);
  border-left: 3px solid var(--indigo-600);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--indigo-800);
  font-weight: 500;
  margin-top: 4px;
}

.solution-savings::before {
  content: '⏱';
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
  opacity: 0.7;
}

.solution-savings.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
}

/* ============================================
   DEMO BLOKK ÉS ELEMEK
   ============================================ */
.demo-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line-soft);
}

.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 16px;
}

.demo-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--indigo-600);
}

.demo-personal-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--indigo-50) 0%, rgba(199, 210, 254, 0.3) 100%);
  border: 1px solid var(--indigo-100);
  border-radius: 14px;
  margin-bottom: 24px;
}

.demo-personal-banner-icon {
  font-size: 18px;
  color: var(--indigo-600);
  line-height: 1.3;
  flex-shrink: 0;
}

.demo-personal-banner-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.demo-personal-banner-text strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.demo-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.demo-widget { margin-top: 24px; }

/* ============================================
   NO MATCH BLOCK — őszinte, kedves CTA-üzenet
   amikor nem találtunk illeszkedő demo-sablont
   ============================================ */
.demo-no-match {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  margin-top: 24px;
  animation: fadeUp 0.6s ease-out;
}

.no-match-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-match-icon {
  font-size: 40px;
  line-height: 1;
  opacity: 0.9;
}

.no-match-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.no-match-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.no-match-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 32px;
  background: var(--indigo-600);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 12px 28px -8px rgba(79, 70, 229, 0.3);
}
.no-match-cta::after {
  content: '↗';
  transition: transform 0.2s ease;
}
.no-match-cta:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
}
.no-match-cta:hover::after {
  transform: translate(2px, -2px);
}

.no-match-fineprint {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .demo-no-match { padding: 32px 20px; }
  .no-match-title { font-size: 22px; }
  .no-match-message { font-size: 15px; }
  .no-match-cta { padding: 14px 28px; font-size: 15px; }
}

.demo-input-section { margin-bottom: 20px; }

.demo-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-weight: 600;
}

.demo-input-wrapper { position: relative; }

.demo-textarea {
  margin-bottom: 12px;
  min-height: 120px;
  font-family: var(--sans);
}

.demo-sample-btn {
  position: absolute;
  bottom: 24px;
  right: 12px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12px;
  font-family: var(--display);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-sample-btn:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
  color: var(--indigo-600);
}

.demo-input-wrapper.has-sample .demo-textarea {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
}

.demo-input-wrapper.has-sample::after {
  content: 'MINTA';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--indigo-300);
  pointer-events: none;
  font-weight: 700;
}

.demo-output-section { margin-top: 24px; }

.demo-output {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  font-family: var(--sans);
  min-height: 80px;
}

.demo-output.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

.demo-run-btn {
  width: 100%;
  justify-content: center;
}

.demo-run-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   DASHBOARD VARIÁNS
   ============================================ */
.demo-dashboard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.dashboard-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dashboard-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--emerald-600);
  font-weight: 500;
}

.dashboard-pulse span {
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border-radius: 50%;
  position: relative;
}

.dashboard-pulse span::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald-500);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
}

.kpi-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 600;
}

.kpi-value {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-change {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
}

.kpi-change.up { color: var(--emerald-600); }
.kpi-change.down { color: var(--rose-500); }

.dashboard-table-section { margin-bottom: 24px; }

.dashboard-table-title {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  background: var(--bg-elevated);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.dashboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-muted);
}

.dashboard-table tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.status-pill.ok {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.status-pill.alert {
  background: var(--rose-50);
  color: var(--rose-500);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-alert {
  background: var(--rose-50);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dashboard-alert-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--rose-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--display);
}

.dashboard-alert-title {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 15px;
}

.dashboard-alert-message {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.dashboard-action-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-table { font-size: 12px; }
  .dashboard-table th, .dashboard-table td { padding: 10px 8px; }
}

/* ============================================
   WORKFLOW VARIÁNS (vízszintes flow-diagram)
   ============================================ */
.demo-workflow {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
  flex-wrap: wrap;
}

.workflow-context {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.workflow-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-faint);
}

.workflow-status-pill.running {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
  color: var(--indigo-700);
}

.workflow-status-pill.running::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-600);
  animation: pulse-dot 1.5s infinite;
}

.workflow-status-pill.done {
  background: var(--emerald-50);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--emerald-600);
}

.workflow-status-pill.done::before {
  content: '✓';
}

.workflow-trigger {
  margin-bottom: 24px;
}

.workflow-trigger-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.workflow-trigger-label::before {
  content: '◆';
  color: var(--indigo-600);
  font-size: 8px;
}

.workflow-run-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* ---- Vízszintes flow ---- */
.workflow-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 24px 0;
  overflow-x: auto;
  padding: 8px 4px;
}

.workflow-node {
  flex: 1;
  min-width: 140px;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
}

.workflow-node.active {
  opacity: 1;
  border-color: var(--indigo-600);
  background: var(--indigo-50);
  box-shadow: 0 0 0 1px var(--indigo-600), 0 8px 24px -8px rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.workflow-node.active::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 1px solid var(--indigo-600);
  pointer-events: none;
  animation: workflow-node-pulse 2s infinite;
}

@keyframes workflow-node-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.workflow-node.done {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--emerald-50);
}

.workflow-node-num {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.workflow-node.active .workflow-node-num { color: var(--indigo-600); }
.workflow-node.done .workflow-node-num { color: var(--emerald-600); }

.workflow-node-icon {
  font-size: 28px;
  line-height: 1;
  margin: 4px 0;
}

.workflow-node.done .workflow-node-icon {
  position: relative;
}

.workflow-node.done .workflow-node-icon::after {
  content: '✓';
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.workflow-node-name {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.workflow-node-timestamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  min-height: 12px;
}

.workflow-node.done .workflow-node-timestamp {
  color: var(--emerald-600);
}

/* ---- Csomópontok közti nyíl ---- */
.workflow-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  align-self: center;
  position: relative;
  height: 2px;
}

.workflow-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
}

.workflow-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--indigo-600);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-arrow.active::after,
.workflow-arrow.done::after {
  transform: scaleX(1);
}

.workflow-arrow.done::after {
  background: var(--emerald-500);
}

.workflow-arrow > span {
  position: absolute;
  right: -8px;
  font-size: 12px;
  color: var(--line);
  z-index: 2;
}

.workflow-arrow.active > span,
.workflow-arrow.done > span {
  color: var(--indigo-600);
}

.workflow-arrow.done > span {
  color: var(--emerald-500);
}

/* ---- Részletes panel az aktív lépésnél ---- */
.workflow-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 8px;
  animation: fadeUp 0.4s ease;
}

.workflow-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.workflow-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.workflow-detail-info { flex: 1; }

.workflow-detail-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.workflow-detail-description {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.5;
}

.workflow-detail-output {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  min-height: 60px;
}

.workflow-detail-output.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

/* ---- Befejezés ---- */
.workflow-completion {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--emerald-50);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  animation: fadeUp 0.4s ease;
}

.workflow-completion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  font-family: var(--display);
}

.workflow-completion-text {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

/* ---- Responsive: mobilon függőleges flow ---- */
@media (max-width: 700px) {
  .workflow-flow {
    flex-direction: column;
    overflow-x: hidden;
  }
  .workflow-node {
    min-width: 0;
    flex: none;
  }
  .workflow-arrow {
    width: 100%;
    height: 24px;
    transform: rotate(90deg);
  }
}

/* ============================================
   DATA EXTRACTOR VARIÁNS
   ============================================ */
.demo-extractor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.extractor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
  flex-wrap: wrap;
}

.extractor-doc-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.extractor-edit-btn {
  padding: 8px 16px !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.extractor-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ---- Dokumentum preview (bal) ---- */
.extractor-document {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--sans);
  position: relative;
}

/* "Papír"-érzet vékony lapélekkel */
.extractor-document::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--indigo-200), var(--indigo-100), var(--indigo-200));
}

/* Highlight a forrás-szövegben (mező pop-in-kor) */
.extractor-document mark {
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-700);
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.5s ease;
}

.extractor-textarea {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  min-height: 320px;
  margin-bottom: 0;
}

/* ---- Kinyert mezők (jobb) ---- */
.extractor-fields-list {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.extractor-field {
  padding: 12px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.extractor-field.pending {
  opacity: 0.5;
}

.extractor-field.filled {
  border-color: var(--indigo-200);
  background: var(--indigo-50);
  opacity: 0;
  transform: translateX(8px);
  animation: extractor-field-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes extractor-field-in {
  to { opacity: 1; transform: translateX(0); }
}

.extractor-field.low-confidence {
  border-color: rgba(180, 83, 9, 0.2);
  background: #fef3c7;
}

.extractor-field.empty {
  border-color: var(--line);
  background: var(--bg-elevated);
  opacity: 0.7;
}

.extractor-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.extractor-field-name {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.extractor-field-confidence {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--ink-faint);
}

.extractor-field.filled .extractor-field-confidence {
  background: white;
  color: var(--indigo-600);
}

.extractor-field.low-confidence .extractor-field-confidence {
  background: white;
  color: #b45309;
}

.extractor-field-confidence::before {
  content: '◆ ';
  font-size: 8px;
}

.extractor-field-value {
  font-size: 14px;
  color: var(--ink-faint);
  font-style: italic;
}

.extractor-field.filled .extractor-field-value {
  color: var(--ink);
  font-style: normal;
}

.extractor-field.empty .extractor-field-value::before {
  content: '— nem található —';
  color: var(--ink-faint);
  font-style: italic;
}

.extractor-field.filled .extractor-field-value.is-list {
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.extractor-run-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 700px) {
  .extractor-grid {
    grid-template-columns: 1fr;
  }
  .extractor-document, .extractor-textarea {
    min-height: 200px;
  }
  .extractor-fields-list {
    min-height: auto;
  }
}

/* ============================================
   CHAT VARIÁNS
   ============================================ */
.demo-chat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.chat-context {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 20px;
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  animation: chatFadeIn 0.3s ease;
}

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

.chat-message.from-customer {
  align-self: flex-start;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-message.from-ai {
  align-self: flex-end;
  background: var(--indigo-600);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message-from {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.7;
  font-weight: 600;
}

.chat-message.streaming .chat-message-text::after {
  content: '▊';
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

.chat-input-section .demo-input-wrapper { margin-bottom: 12px; }
.chat-textarea { min-height: 60px; }
.chat-send-btn { width: 100%; justify-content: center; }

/* ============================================
   OPTIN ROW (a riport végén)
   ============================================ */
.optins {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.optins.optins-revealed {
  opacity: 1;
  transform: translateY(0);
}

.optin-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.optin-row:hover {
  border-color: var(--indigo-200);
  background: var(--bg-elevated);
}

.optin-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--indigo-600);
  flex-shrink: 0;
}

.optin-content { flex: 1; }

.optin-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.optin-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.optin-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--rose-50);
  color: var(--rose-500);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ============================================
   LEAD KANBAN VARIÁNS
   ============================================ */
.demo-kanban {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
  flex-wrap: wrap;
}

.kanban-context {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.kanban-run-btn {
  flex-shrink: 0;
}

/* ---- 4 oszlopos board ---- */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-height: 400px;
  overflow-x: auto;
}

.kanban-column {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}

.kanban-column-icon {
  font-size: 16px;
  line-height: 1;
}

.kanban-column-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  flex: 1;
}

.kanban-column-count {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  min-width: 24px;
  text-align: center;
}

/* Oszlop-specifikus borderek */
.kanban-column-hot .kanban-column-header { border-bottom-color: rgba(244, 63, 94, 0.3); }
.kanban-column-warm .kanban-column-header { border-bottom-color: rgba(245, 158, 11, 0.3); }
.kanban-column-cold .kanban-column-header { border-bottom-color: rgba(99, 102, 241, 0.3); }

.kanban-column-hot .kanban-column-title { color: var(--rose-500); }
.kanban-column-warm .kanban-column-title { color: #d97706; }
.kanban-column-cold .kanban-column-title { color: var(--indigo-600); }

.kanban-column-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}

/* ---- Lead kártya ---- */
.kanban-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: default;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.kanban-card-company {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.kanban-card-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.kanban-card-contact {
  font-size: 11px;
  color: var(--ink-muted);
}

.kanban-card-request {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 4px;
}

/* Score + indoklás megjelenik amikor pontozott */
.kanban-card-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.kanban-card-score-value {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kanban-card.scored.hot .kanban-card-score-value { color: var(--rose-500); }
.kanban-card.scored.warm .kanban-card-score-value { color: #d97706; }
.kanban-card.scored.cold .kanban-card-score-value { color: var(--indigo-600); }

.kanban-card-score-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.kanban-card-reasoning {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.5;
  font-style: italic;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-soft);
}

.kanban-card-action {
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--indigo-700);
  font-weight: 500;
  margin-top: 4px;
}

.kanban-card-action::before {
  content: '→ ';
  font-weight: 700;
}

.kanban-card-value {
  font-family: var(--display);
  font-size: 11px;
  color: var(--emerald-600);
  font-weight: 600;
  margin-top: 2px;
}

/* Pop-in és átmozgatás animáció */
.kanban-card.entering {
  opacity: 0;
  transform: scale(0.9);
  animation: kanban-card-pop-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes kanban-card-pop-in {
  to { opacity: 1; transform: scale(1); }
}

.kanban-card.analyzing {
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 1px var(--indigo-600), 0 12px 32px -8px rgba(79, 70, 229, 0.3);
  transform: scale(1.02);
}

.kanban-card.analyzing::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  border: 1px solid var(--indigo-600);
  pointer-events: none;
  animation: kanban-pulse 1.5s infinite;
}

@keyframes kanban-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Overlay (pulzáló elemzés-állapot) */
.kanban-overlay {
  margin-top: 20px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 0.3s ease;
}

.kanban-overlay-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--indigo-700);
  font-weight: 600;
  font-family: var(--display);
}

.kanban-overlay-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--indigo-200);
  border-top-color: var(--indigo-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.kanban-overlay-card {
  background: white;
  border: 1px solid var(--indigo-200);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kanban-overlay-card .kanban-card-meta,
.kanban-overlay-card .kanban-card-contact,
.kanban-overlay-card .kanban-card-request {
  /* öröklik */
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   QUOTE BUILDER VARIÁNS
   ============================================ */
.demo-quote {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
  flex-wrap: wrap;
}

.quote-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* "A te logód" placeholder — minden mintán, ahol a kitöltő márkáját jelképezi */
.brand-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1.5px dashed var(--indigo-300);
  background: var(--indigo-50);
  color: var(--indigo-600);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  padding: 4px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-logo-placeholder:hover {
  border-color: var(--indigo-600);
  background: white;
  color: var(--indigo-700);
}

/* Kisebb méret: dashboard, kanban, chat fejlécen */
.brand-logo-placeholder-small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 8px;
  padding: 2px;
}

/* Fejléc-sor elrendezések, hogy a kis logo a cím mellett legyen */
.dashboard-title-row,
.kanban-context-row,
.chat-context-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-company-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.quote-company-tagline {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.quote-context {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.quote-input-section {
  margin-bottom: 20px;
}

.quote-build-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* ---- Ajánlat-blokk ---- */
.quote-output {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  animation: fadeUp 0.5s ease;
}

.quote-output-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-output-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.quote-output-validity {
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--mono);
}

/* ---- Tételek táblázat ---- */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.quote-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  background: var(--bg-elevated);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.quote-table th.quote-col-qty,
.quote-table th.quote-col-price,
.quote-table th.quote-col-total {
  text-align: right;
}

.quote-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14px;
}

.quote-table tr:last-child td {
  border-bottom: none;
}

.quote-table td.quote-col-qty,
.quote-table td.quote-col-price,
.quote-table td.quote-col-total {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.quote-table td.quote-col-total {
  font-weight: 600;
  color: var(--ink);
}

.quote-table tbody tr {
  opacity: 0;
  transform: translateY(8px);
  animation: quote-row-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes quote-row-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Összegzés ---- */
.quote-summary {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;
}

.quote-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.quote-summary-row span:last-child {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
}

.quote-summary-gross {
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
  padding-top: 14px;
}

.quote-summary-gross span {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--indigo-600) !important;
}

/* ---- Szállítás + kísérőlevél ---- */
.quote-delivery {
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 20px;
}

.quote-delivery::before {
  content: '🚚 ';
  margin-right: 4px;
}

.quote-cover-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.quote-cover-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 600;
}

.quote-cover-letter {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
}

.quote-cover-letter.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

.quote-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- PDF Preview Modal ---- */
.quote-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: quote-modal-fade 0.3s ease;
}

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

.quote-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 72px 56px 48px;
  position: relative;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
  animation: quote-modal-slide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes quote-modal-slide {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

.quote-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--ink-faint);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quote-modal-close:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}

/* PDF nézet stílus a modálban */
.quote-pdf-doc {
  font-family: var(--sans);
}

.quote-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 32px;
}

.quote-pdf-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-pdf-company-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.quote-pdf-company-tagline {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.quote-pdf-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
}

.quote-pdf-date {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
  text-align: right;
}

.quote-pdf-letter {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 32px;
  white-space: pre-wrap;
}

.quote-pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.quote-pdf-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
}

.quote-pdf-table th:nth-child(2),
.quote-pdf-table th:nth-child(3),
.quote-pdf-table th:nth-child(4) {
  text-align: right;
}

.quote-pdf-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink);
}

.quote-pdf-table td:nth-child(2),
.quote-pdf-table td:nth-child(3),
.quote-pdf-table td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.quote-pdf-summary {
  margin-top: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
}

.quote-pdf-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px;
  font-size: 13px;
}

.quote-pdf-summary-gross {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  margin-top: 8px;
  padding-top: 12px;
}

.quote-pdf-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .quote-modal-content { padding: 32px 24px; }
  .quote-pdf-header { flex-direction: column; gap: 12px; }
}

/* ============================================
   SUCCESS MODAL (inbox - email kiküldve)
   ============================================ */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: success-modal-fade 0.3s ease;
}

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

.success-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 48px 40px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
  animation: success-modal-slide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.success-modal-content::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, var(--indigo-50), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.8;
}

.success-modal-content > * {
  position: relative;
  z-index: 2;
}

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

.success-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.4);
  animation: success-modal-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.success-modal-icon svg {
  width: 36px;
  height: 36px;
  animation: success-modal-check-draw 0.5s ease-out 0.5s both;
}

@keyframes success-modal-icon-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes success-modal-check-draw {
  from { stroke-dasharray: 50; stroke-dashoffset: 50; }
  to { stroke-dasharray: 50; stroke-dashoffset: 0; }
}

.success-modal-icon svg path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: success-modal-check-draw 0.5s ease-out 0.5s forwards;
}

.success-modal-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  animation: success-modal-fade-up 0.5s ease 0.3s both;
}

.success-modal-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 14px;
  animation: success-modal-fade-up 0.5s ease 0.4s both;
}

.success-modal-text:last-of-type {
  margin-bottom: 28px;
}

.success-modal-question {
  color: var(--ink);
  font-weight: 500;
  animation: success-modal-fade-up 0.5s ease 0.5s both;
}

.success-modal-emoji {
  display: inline-block;
  font-size: 18px;
  animation: success-modal-wave 1s ease-in-out 0.8s both;
}

@keyframes success-modal-wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

@keyframes success-modal-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-modal-btn {
  animation: success-modal-fade-up 0.5s ease 0.5s both;
}

@media (max-width: 500px) {
  .success-modal-content { padding: 36px 28px 28px; }
  .success-modal-title { font-size: 24px; }
}

/* ============================================
   INBOX TRIAGE VARIÁNS
   ============================================ */
.demo-inbox {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.inbox-context {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.inbox-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  min-height: 480px;
}

/* ---- bal: email lista ---- */
.inbox-list {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 600px;
  overflow-y: auto;
}

.inbox-email-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(-8px);
  animation: inbox-email-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes inbox-email-in {
  to { opacity: 1; transform: translateX(0); }
}

.inbox-email-card:hover {
  border-color: var(--indigo-200);
  transform: translateX(2px);
}

.inbox-email-card.active {
  border-color: var(--indigo-600);
  background: var(--indigo-50);
  box-shadow: 0 0 0 1px var(--indigo-600);
}

.inbox-email-card-from {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.inbox-email-card-subject {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-email-card-preview {
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-email-card-received {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ---- jobb: email detail ---- */
.inbox-detail {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px 22px;
  overflow-y: auto;
}

.inbox-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--ink-faint);
  gap: 12px;
  padding: 40px 20px;
}

.inbox-detail-empty-icon {
  font-size: 48px;
  opacity: 0.4;
}

.inbox-detail-empty-text {
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---- email tartalom ---- */
.inbox-email {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.inbox-email-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.inbox-email-from {
  font-size: 14px;
  color: var(--ink);
}

.inbox-email-from strong {
  font-family: var(--display);
  font-weight: 600;
}

.inbox-email-received {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-family: var(--mono);
}

.inbox-email-subject {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.inbox-email-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---- AI elemzés blokk ---- */
.inbox-analysis {
  animation: fadeUp 0.4s ease;
}

.inbox-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inbox-analysis-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
}

.inbox-analysis-status {
  font-size: 11px;
  color: var(--ink-faint);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.inbox-analysis-status.done {
  color: var(--emerald-600);
}

.inbox-analysis-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 28px;
}

.inbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--display);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  animation: inbox-badge-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes inbox-badge-in {
  to { opacity: 1; transform: translateY(0); }
}

.inbox-badge-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.inbox-badge-category {
  background: var(--indigo-50);
  border-color: var(--indigo-100);
  color: var(--indigo-700);
}

.inbox-badge-urgency-1, .inbox-badge-urgency-2 {
  background: var(--emerald-50);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--emerald-600);
}

.inbox-badge-urgency-3 {
  background: #fef3c7;
  border-color: rgba(180, 83, 9, 0.2);
  color: #b45309;
}

.inbox-badge-urgency-4, .inbox-badge-urgency-5 {
  background: var(--rose-50);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--rose-500);
}

.inbox-badge-sentiment-pozitív {
  background: var(--emerald-50);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--emerald-600);
}

.inbox-badge-sentiment-negatív {
  background: var(--rose-50);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--rose-500);
}

.inbox-analysis-insight {
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 16px;
}

.inbox-response-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.inbox-response {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  margin-bottom: 16px;
  min-height: 80px;
}

.inbox-response.editable {
  background: white;
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.inbox-response.streaming::after {
  content: '▊';
  color: var(--indigo-600);
  animation: cursor-blink 0.9s infinite;
  margin-left: 2px;
}

.inbox-response-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- responsive ---- */
@media (max-width: 768px) {
  .inbox-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .inbox-list {
    max-height: 280px;
  }
}

/* ============================================
   EMAIL BLOKK (a riport végén az optinok mellett)
   ============================================ */
.email-block {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  transition: opacity 0.3s ease;
}

.email-block.hidden { display: none; }

/* Szürkített, kattinthatatlan állapot, amíg nincs check-elve */
.email-block.email-block-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.email-block input[type="text"],
.email-block input[type="email"] {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}

.email-block input[type="text"] {
  max-width: 200px;
}

.email-block input:disabled {
  background: var(--bg-elevated);
  cursor: not-allowed;
}

.email-block .btn-primary { flex-shrink: 0; }

.email-block .btn-primary:disabled {
  opacity: 1; /* már a parent szürkítve van, itt nem kell duplán */
}

/* GDPR checkbox a form-on */
.gdpr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}
.gdpr-checkbox:hover { border-color: var(--ink-faint); }
.gdpr-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--indigo-600);
}
.gdpr-checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
}
.gdpr-checkbox span { flex: 1; }
.gdpr-checkbox a {
  color: var(--indigo-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gdpr-checkbox a:hover { color: var(--indigo-700); }
.email-block-disabled .gdpr-checkbox {
  opacity: 0.5;
  cursor: not-allowed;
}

/* GDPR figyelmeztetes animacio: finom shake + piros keret 2.4 mp-ig */
@keyframes gdpr-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}
.gdpr-checkbox.gdpr-checkbox-error {
  animation: gdpr-shake 0.7s ease-in-out;
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* "Visszafogott" gomb-stilus — kattinthato marad, de jelzi hogy hianyzik valami */
.email-block .btn-primary.btn-needs-consent {
  opacity: 0.55;
  cursor: pointer;
}
.email-block .btn-primary.btn-needs-consent:hover {
  opacity: 0.7;
}

/* "Köszönöm, ennyi elég volt" gomb — diszkrétebb skip-link */
.optin-skip-row {
  margin-top: 24px;
  text-align: center;
}

.btn-skip {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.btn-skip:hover {
  color: var(--ink);
  background: var(--bg-elevated);
}

.email-block-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.email-block-text {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-form input[type="email"] { margin-bottom: 0; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--indigo-600);
}

.checkbox-row label {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  cursor: pointer;
  flex: 1;
}

.checkbox-row label strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 600px) {
  .email-block { flex-direction: column; align-items: stretch; }
}

/* ============================================
   KÖSZÖNŐ SCREEN
   ============================================ */
.thank-you {
  text-align: center;
  padding: 60px 0;
}

.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -8px rgba(16, 185, 129, 0.35);
  animation: thanks-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.thanks-icon svg {
  width: 36px;
  height: 36px;
}

.thanks-icon svg path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: thanks-icon-check-draw 0.5s ease-out 0.4s forwards;
}

@keyframes thanks-icon-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes thanks-icon-check-draw {
  to { stroke-dashoffset: 0; }
}

.thank-you h2 { margin-bottom: 24px; }

.thank-you p {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

.signature {
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

#personal-link-block {
  background: white !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  margin-top: 48px;
  box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.1);
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.personal-link-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 12px;
}

.personal-link-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--indigo-600);
}

#personal-link-btn { display: inline-flex; }

/* ============================================
   FOGLALÁS CTA (forró lead, köszönő screen)
   ============================================ */
#booking-cta-block {
  margin-top: 36px;
}

.booking-cta-card {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.booking-cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.booking-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-300);
  margin-bottom: 16px;
  position: relative;
}

.booking-cta-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--indigo-300);
}

.booking-cta-headline {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 14px;
  color: white;
  position: relative;
}

.booking-cta-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.booking-cta-btn {
  display: inline-flex !important;
  background: white !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  position: relative;
}

.booking-cta-btn:hover {
  background: var(--indigo-50) !important;
  color: var(--indigo-700) !important;
}

.booking-cta-meta {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

/* ============================================
   PROBLÉMA-TÜKÖR (jelenlegi folyamat)
   ============================================ */
.current-process-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line-soft);
  animation: fadeUp 0.6s ease;
}

.current-process-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 620px;
}

.current-process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-row-gap: 12px;
  align-items: stretch;
  margin-bottom: 32px;
  position: relative;
}

.process-step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  opacity: 0;
  transform: translateY(12px);
  animation: process-step-in 0.5s ease forwards;
}

/* Tabletre 2 oszlop, mobilra 1 */
@media (max-width: 900px) {
  .current-process-flow {
    grid-template-columns: 1fr auto 1fr;
    grid-row-gap: 12px;
  }
}

@media (max-width: 560px) {
  .current-process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@keyframes process-step-in {
  to { opacity: 1; transform: translateY(0); }
}

.process-step-card.bottleneck {
  border-color: var(--rose-500);
  background: var(--rose-50);
  box-shadow: 0 0 0 1px var(--rose-500), 0 8px 24px -8px rgba(244, 63, 94, 0.25);
}

.process-step-card.bottleneck::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 1px solid var(--rose-500);
  pointer-events: none;
  animation: bottleneck-pulse 2s infinite;
}

@keyframes bottleneck-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.process-step-num {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.process-step-card.bottleneck .process-step-num {
  color: var(--rose-500);
}

.process-step-label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.process-step-card.bottleneck .process-step-label {
  color: var(--slate-900);
}

.process-step-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.process-step-card.bottleneck .process-step-meta {
  border-top-color: rgba(244, 63, 94, 0.2);
}

.process-step-duration {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.process-step-card.bottleneck .process-step-duration {
  color: var(--rose-500);
}

.process-step-tool {
  font-size: 11px;
  color: var(--ink-faint);
  font-family: var(--mono);
  padding: 2px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}

.process-step-card.bottleneck .process-step-tool {
  background: white;
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--rose-500);
}

/* Nyíl-elválasztó a kártyák között */
.process-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: var(--ink-faint);
  font-size: 18px;
  opacity: 0;
  animation: process-step-in 0.4s ease forwards;
  user-select: none;
}

@media (max-width: 900px) {
  .process-step-arrow { display: none; }
}

/* Összegzés a flow alatt */
.current-process-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.process-summary-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.process-summary-stat.highlight {
  border-color: var(--rose-500);
  background: var(--rose-50);
}

.process-summary-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.process-summary-stat-value {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.process-summary-stat.highlight .process-summary-stat-value {
  color: var(--rose-500);
}

@media (max-width: 700px) {
  .current-process-flow {
    flex-direction: column;
    gap: 8px;
  }
  .process-step-card { min-width: 0; width: 100%; }
  .process-step-arrow {
    width: 100%;
    height: 24px;
    transform: rotate(90deg);
  }
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 32px;
  padding-top: 8px;
}

.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-divider span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  font-family: var(--display);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .container, .container-wide {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 100px;
  }
  .meta-row { flex-direction: column; gap: 16px; max-width: 100%; }
  .navbar-inner { padding: 0 20px; }
  .report-card { padding: 20px 22px; }
  .report-card-icon { top: 18px; right: 20px; width: 30px; height: 30px; font-size: 14px; }
  .report-card-label { padding-right: 44px; }
  .solution-card { padding: 24px 24px; }
  .demo-dashboard, .demo-workflow, .demo-extractor, .demo-chat { padding: 20px; }
  .benchmark-row { grid-template-columns: 1fr; }
}

/* ============================================
   TOAST (rövid üzenetek a képernyő alján)
   ============================================ */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--neutral-900);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--display);
  letter-spacing: -0.01em;
  z-index: 1000;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast-error {
  background: var(--rose-500);
}

.app-toast-success {
  background: var(--emerald-500);
}

/* ============================================
   GARBAGE SCREEN (értelmetlen kitöltés)
   ============================================ */
.garbage-block {
  max-width: 580px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  text-align: center;
  animation: fadeUp 0.5s ease;
}

.garbage-emoji {
  font-size: 64px;
  margin-bottom: 24px;
  display: inline-block;
  animation: garbage-bounce 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  line-height: 1;
}

@keyframes garbage-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.garbage-emoji-inline {
  display: inline-block;
  margin-left: 2px;
}

.garbage-block h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.15;
  text-wrap: balance;
}

.garbage-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.garbage-text-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-faint);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.garbage-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   DEMO: SCHEDULER (időpont-foglalás asszisztens)
   3-oszlopos: bal=kérések, közép=kiválasztott + AI ajánlat
   ============================================ */
.demo-scheduler {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.scheduler-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.scheduler-context {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Szolgáltatás pill (mit foglalnak) */
.scheduler-service-row {
  margin-bottom: 20px;
}
.scheduler-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}
.scheduler-service-icon {
  font-size: 16px;
  line-height: 1;
}
.scheduler-service-name {
  font-weight: 600;
  font-family: var(--display);
  letter-spacing: -0.01em;
}
.scheduler-service-duration {
  color: var(--ink-faint);
  font-size: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line-soft);
}

/* Grid: kérések lista | részletes nézet */
.scheduler-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  min-height: 500px;
}

/* ----- BAL: kérések listája ----- */
.scheduler-list {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 620px;
  overflow-y: auto;
}

.scheduler-request-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scheduler-request-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.scheduler-request-card.active {
  background: var(--indigo-50, #eef2ff);
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.scheduler-request-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.scheduler-request-card-from {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.scheduler-request-card-received {
  font-size: 11px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.scheduler-request-card-channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}
.scheduler-request-card-channel::before {
  content: '◆';
  font-size: 8px;
  color: var(--indigo-600);
}
.scheduler-request-card-preview {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- KÖZÉP: részletes nézet ----- */
.scheduler-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.scheduler-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-faint);
}
.scheduler-detail-empty-icon {
  font-size: 42px;
  opacity: 0.5;
}
.scheduler-detail-empty-text {
  font-size: 14px;
  font-family: var(--display);
}

/* Kérés részletei */
.scheduler-request {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.scheduler-request-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.scheduler-request-from {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.scheduler-request-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.scheduler-request-received {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.scheduler-request-message {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

/* AI javaslat blokk */
.scheduler-suggestion {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 20px;
  animation: fadeUp 0.5s ease-out;
}
.scheduler-suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.scheduler-suggestion-label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-600);
  letter-spacing: 0.02em;
}
.scheduler-suggestion-status {
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
}
.scheduler-suggestion-reply {
  background: var(--bg-elevated);
  border-left: 3px solid var(--indigo-600);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
}
.scheduler-suggestion-label-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Heti naptár-grid (napi oszlopok, Cal.com-stílus) */
.scheduler-slot-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.scheduler-day-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scheduler-day-head {
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line-soft);
}
.scheduler-day-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.scheduler-day-date {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.scheduler-slot-btn {
  appearance: none;
  width: 100%;
  padding: 11px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo-600);
  text-align: center;
  transition: all 0.18s ease;
}
.scheduler-slot-btn:hover {
  border-color: var(--indigo-600);
  background: white;
  transform: translateY(-1px);
}
.scheduler-slot-btn.suggested {
  border-color: var(--indigo-600);
  background: rgba(79, 70, 229, 0.06);
}
.scheduler-slot-btn.selected {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
  color: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

/* Akció gombok */
.scheduler-action-row {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

/* Reszponzív */
@media (max-width: 768px) {
  .scheduler-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .scheduler-list {
    max-height: 280px;
  }
  .scheduler-detail {
    padding: 18px;
  }
}


/* ============================================
   SCHEDULER ügyfélnézet — 3 lépés: form / naptár / megerősítés
   ============================================ */

.scheduler-step {
  padding: 4px 2px 2px;
}
.scheduler-step-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.scheduler-step-sub {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

/* Mini-form */
.scheduler-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}
.scheduler-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scheduler-form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scheduler-form-input {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.scheduler-form-input:focus {
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.scheduler-form-error {
  min-height: 18px;
  font-size: 13px;
  color: #b91c1c;
}
.scheduler-form-submit {
  align-self: flex-start;
  margin-top: 4px;
}

/* Megerősítés-képernyő */
.scheduler-confirm-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 12px;
  margin-bottom: 20px;
}
.scheduler-confirm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--indigo-600);
  color: white;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.scheduler-confirm-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.scheduler-confirm-sub {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* Mock e-mail kártya */
.scheduler-email-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.scheduler-email-head {
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scheduler-email-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.scheduler-email-key {
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.scheduler-email-val {
  color: var(--ink);
  word-break: break-word;
}
.scheduler-email-body {
  padding: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.scheduler-email-body p {
  margin: 0 0 10px;
}
.scheduler-email-body ul {
  margin: 8px 0 12px;
  padding-left: 18px;
}
.scheduler-email-body li {
  margin: 4px 0;
}

/* Naptár-kártya */
.scheduler-cal-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
}
.scheduler-cal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scheduler-cal-event {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
}
.scheduler-cal-event-bar {
  width: 4px;
  border-radius: 3px;
  background: var(--indigo-600);
  flex-shrink: 0;
}
.scheduler-cal-event-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scheduler-cal-event-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.scheduler-cal-event-when {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--indigo-600);
  font-weight: 600;
}
.scheduler-cal-event-with {
  font-size: 13px;
  color: var(--ink-faint);
}
.scheduler-cal-sync {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
}

/* Reszponzív finomítás */
@media (max-width: 768px) {
  .scheduler-email-row {
    grid-template-columns: 60px 1fr;
  }
  .scheduler-step-title {
    font-size: 19px;
  }
}
</content>
<parameter name="mode">append