@keyframes btn-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  55%       { transform: translateX(4px); }
}

@keyframes btn-signal {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  65%  { opacity: 0.80; }
  100% { opacity: 0; }
}

@keyframes btn-dot-breathe {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

.btn-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: visible;
}

.btn-advisor svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  animation: btn-arrow-nudge 2s ease-in-out infinite;
}

.btn-advisor:hover svg,
.btn-advisor:focus-visible svg {
  animation-duration: 0.7s;
}

.btn-icon-dot {
  animation: btn-dot-breathe 1.4s ease-in-out infinite;
}

.btn-icon-s1 {
  opacity: 0;
  animation: btn-signal 1.4s ease-in-out infinite;
}
.btn-icon-s2 {
  opacity: 0;
  animation: btn-signal 1.4s ease-in-out 0.28s infinite;
}
.btn-icon-s3 {
  opacity: 0;
  animation: btn-signal 1.4s ease-in-out 0.56s infinite;
}

/* Hover: faster pulse */
.btn-advisor:hover .btn-icon-s1,
.btn-advisor:focus-visible .btn-icon-s1 { animation-duration: 1.1s; }
.btn-advisor:hover .btn-icon-s2,
.btn-advisor:focus-visible .btn-icon-s2 { animation-duration: 1.1s; animation-delay: 0.22s; }
.btn-advisor:hover .btn-icon-s3,
.btn-advisor:focus-visible .btn-icon-s3 { animation-duration: 1.1s; animation-delay: 0.44s; }

/* Click: rapid burst */
.btn-advisor:active .btn-icon-s1,
.btn-advisor:active .btn-icon-s2,
.btn-advisor:active .btn-icon-s3 { animation-duration: 0.45s; }

/* --- 1. CTA Button --- */

.btn-advisor {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}


/* --- 2. Body lock --- */

body.advisor-open { overflow: hidden; }

/* --- 3. Overlay & Backdrop --- */

.advisor-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 44px);
  visibility: hidden;
  pointer-events: none;
  /* visibility se opožďuje, aby děti stihly dokončit fade animaci */
  transition: visibility 0s linear 0.45s;
}

.advisor-overlay.is-open {
  visibility: visible;
  pointer-events: all;
  transition: visibility 0s linear 0s;
}

/* bg a modal se fadují odděleně — backdrop-filter jinak skáče */
.advisor-bg {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 14, 0.22); /* 0.62 */
  backdrop-filter: blur(28px) saturate(140%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.advisor-overlay.is-open .advisor-bg {
  opacity: 1;
}

/* --- 4. Modal Panel --- */

@keyframes adv-blob-drift {
  0%   { background-position: 25% 0%, 80% 100%; }
  33%  { background-position: 35% 15%, 70% 90%; }
  66%  { background-position: 20% 5%, 85% 105%; }
  100% { background-position: 25% 0%, 80% 100%; }
}

@keyframes adv-edge-sweep {
  0%   { opacity: 0; transform: translateX(-100%); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

.advisor-modal {
  position: relative;
  width: min(660px, 100%);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(150deg,
      rgba(215,228,255,0.076) 0%,
      rgba(200,218,255,0.028) 50%,
      rgba(185,210,255,0.016) 100%);
  border: 1px solid rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.20);
  border-left-color: rgba(255,255,255,0.14);
  border-radius: 36px;
  box-shadow:
    0 80px 160px rgba(0,0,0,0.82),
    0 28px 72px  rgba(0,0,0,0.54),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0  1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 1px 0 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(60px) saturate(200%) brightness(1.04);
  max-height: min(780px, calc(100svh - 40px));
  opacity: 0;
  transform: scale(0.82) translateY(42px);
  transition:
    transform 0.58s cubic-bezier(0.34, 1.72, 0.64, 1),
    opacity   0.38s ease;
  overflow: hidden;
}

.advisor-overlay.is-open .advisor-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.advisor-modal::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 25% 0%, rgba(255,106,61,0.10) 0%, transparent 100%),
    radial-gradient(ellipse 50% 45% at 80% 100%, rgba(100,130,255,0.09) 0%, transparent 100%);
  background-size: 100% 100%;
  animation: adv-blob-drift 12s ease-in-out infinite;
  border-radius: inherit;
}

.advisor-modal::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0.32) 50%,
    rgba(255,255,255,0.10) 80%,
    transparent 100%);
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.advisor-modal .adv-noise {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

.advisor-overlay.is-open .advisor-modal {
  box-shadow:
    0 80px 160px rgba(0,0,0,0.82),
    0 28px 72px  rgba(0,0,0,0.54),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 60px -10px rgba(100,130,255,0.08),
    inset 0  1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 1px 0 0 rgba(255,255,255,0.06);
}

/* --- 5. Header --- */

.advisor-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px 16px;
  flex-shrink: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.06) 40%, transparent 75%);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: bottom left;
}

.advisor-progress {
  display: flex;
  align-items: center;
  gap: 16px;
}

.advisor-progress-track {
  display: flex;
  align-items: center;
  gap: 7px;
}

.adv-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  transition:
    width  0.40s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.30s ease,
    box-shadow 0.30s ease;
}

.adv-dot.visited  { background: rgba(255,106,61,0.45); }
.adv-dot.current  { width: 22px; background: var(--accent); box-shadow: 0 0 10px rgba(255,106,61,0.55); }

.advisor-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.advisor-close {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.20s ease, transform 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.advisor-close:hover {
  color: var(--text);
  transform: scale(1.12) rotate(90deg);
}

.advisor-close svg { width: 13px; height: 13px; }

/* --- 6. Body & Steps --- */

.advisor-body {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow: hidden;
  min-height: 380px;
}

.adv-step {
  position: absolute;
  inset: 0;
  padding: 26px 26px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition:
    opacity   0.42s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.07) transparent;
}

.adv-step::-webkit-scrollbar { width: 3px; }
.adv-step::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 2px; }

.adv-step.adv-step-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.adv-step.adv-step-prev {
  opacity: 0;
  transform: translateX(-28px);
}



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

.adv-step-title .adv-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: adv-cursor-blink 0.7s ease infinite;
  opacity: 0;
  transition: opacity 0.1s;
}

.adv-step-title .adv-cursor.is-typing { opacity: 1; }

.adv-step-title {
  font-size: clamp(18px, 3.5vw, 23px);
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6px;
}

.adv-step-sub {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* --- 7. Problem Cards (Step 1) --- */

.adv-problem-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adv-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.022);
  cursor: pointer;
  text-align: left;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  position: relative;
  overflow: hidden;
  width: 100%;
  transition:
    border-color 0.26s ease,
    background   0.26s ease,
    transform    0.24s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow   0.26s ease,
    color        0.22s ease;
  font-family: inherit;
}

.adv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.adv-card:hover::before,
.adv-card.is-selected::before { opacity: 1; }

.adv-card:hover {
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.040);
  color: var(--accent-2);
  transform: translateX(2px);
}

.adv-card.is-selected {
  border-color: rgba(255,106,61,0.38);
  background: rgba(255,106,61,0.065);
  color: var(--text);
  box-shadow: 0 8px 26px rgba(255,106,61,0.10);
}

.adv-card-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.30);
  transition: color 0.22s ease;
}

.adv-card:hover .adv-card-icon,
.adv-card.is-selected .adv-card-icon {
  color: var(--accent-2);
}

.adv-card-icon svg { width: 20px; height: 20px; display: block; }

/* --- 8. Step 2: Response --- */

.adv-thinking {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 18px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 300;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.adv-thinking.is-fading {
  opacity: 0;
  transform: translateY(-7px);
}

@keyframes adv-think-text {
  0%, 100% { opacity: 0.36; }
  55%       { opacity: 0.75; }
}
.adv-thinking > span {
  animation: adv-think-text 1.7s ease-in-out infinite;
}

.adv-thinking-dots {
  display: flex; gap: 6px;
  flex-shrink: 0;
}

@keyframes adv-dotpulse {
  0%, 100% {
    opacity: 0.14;
    transform: scale(0.72);
    box-shadow: none;
  }
  42%, 58% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(255,106,61,0.70), 0 0 14px rgba(255,106,61,0.28);
  }
}

.adv-thinking-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: adv-dotpulse 0.88s ease-in-out infinite;
}
.adv-thinking-dots span:nth-child(2) { animation-delay: 0.20s; }
.adv-thinking-dots span:nth-child(3) { animation-delay: 0.40s; }

.adv-response {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.50s cubic-bezier(0.4, 0, 0.2, 1), transform 0.50s cubic-bezier(0.4, 0, 0.2, 1);
}
.adv-response.is-visible { opacity: 1; transform: translateY(0); }

.adv-response-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 13px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.36s ease 0.10s, transform 0.36s ease 0.10s;
}
.adv-response.is-visible .adv-response-label { opacity: 1; transform: none; }

.adv-response-reason {
  margin-top: 18px;
  margin-bottom: 16px;
  padding: 0 0 0 16px;
  border-left: 2px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.36s ease 0.20s, transform 0.36s ease 0.20s;
}
.adv-response.is-visible .adv-response-reason { opacity: 1; transform: none; }

.adv-response-block-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.adv-response-reason p,
.adv-response-solution p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.72;
  font-weight: 300;
}

.adv-response-solution {
  padding: 0 0 0 16px;
  border-left: 2px solid rgba(255,106,61,0.40);
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.36s ease 0.33s, transform 0.36s ease 0.33s;
}
.adv-response.is-visible .adv-response-solution { opacity: 1; transform: none; }
.adv-response-solution .adv-response-block-label {
  color: rgba(255,106,61,0.90);
  font-size: 11px;
  letter-spacing: 2px;
}
.adv-response-solution p { color: var(--text); }

/* --- 9. Size Cards (Step 3) --- */

.adv-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.adv-size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 10px 18px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  background: rgba(255,255,255,0.020);
  cursor: pointer;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  transition:
    border-color 0.28s ease,
    background   0.28s ease,
    transform    0.32s cubic-bezier(0.34, 1.50, 0.64, 1),
    box-shadow   0.28s ease,
    color        0.22s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.adv-size-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
  transition: opacity 0.28s ease;
  opacity: 0;
}

.adv-size-card:hover::before,
.adv-size-card.is-selected::before { opacity: 1; }

.adv-size-card:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.042);
  color: var(--text);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.adv-size-card.is-selected {
  border-color: rgba(255,106,61,0.38);
  background: rgba(255,106,61,0.060);
  color: var(--text);
  box-shadow: 0 0 28px rgba(255,106,61,0.10), inset 0 1px 0 rgba(255,106,61,0.12);
}

.adv-size-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.30);
  transition: color 0.22s ease;
  flex-shrink: 0;
}

.adv-size-card:hover .adv-size-icon,
.adv-size-card.is-selected .adv-size-icon {
  color: var(--accent-2);
}

.adv-size-icon svg { width: 24px; height: 24px; display: block; }

.adv-size-card span {
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

/* --- 10. Step 4: Recommendation --- */

#advRec4 .adv-rec-headline {
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.36s ease 0.06s, transform 0.36s ease 0.06s;
}
#advRec4.is-revealed .adv-rec-headline { opacity: 1; transform: none; }

#advRec4 .adv-rec-context {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.36s ease 0.16s, transform 0.36s ease 0.16s;
}
#advRec4.is-revealed .adv-rec-context { opacity: 1; transform: none; }

.adv-rec-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.adv-rec-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 6px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
#advRec4.is-revealed .adv-rec-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.14s; }
#advRec4.is-revealed .adv-rec-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.23s; }
#advRec4.is-revealed .adv-rec-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.32s; }

.adv-rec-num {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: rgba(255,106,61,0.15);
  border: 1px solid rgba(255,106,61,0.28);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.adv-rec-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.52;
}

#advRec4 .adv-rec-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  padding-top: 12px;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.36s ease 0.44s;
}
#advRec4.is-revealed .adv-rec-note { opacity: 1; }

/* --- 11. Shared next button --- */

.adv-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(255,106,61,0.26);
  margin-top: 22px;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity    0.36s ease 0.48s,
    transform  0.36s ease 0.48s,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.adv-response.is-visible .adv-next-btn,
#advRec4.is-revealed .adv-next-btn {
  opacity: 1; transform: none;
}

.adv-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255,106,61,0.36);
}

.adv-next-btn svg { width: 14px; height: 14px; display: block; }
.adv-email-btn svg { width: 14px; height: 14px; display: block; flex-shrink: 0; }

/* --- 12. Step 5: Final CTA --- */

.adv-final {
  text-align: center;
  padding: 0 8px 5px;
}

.adv-final-icon {
  width: 54px; height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,106,61,0.22);
  background: rgba(255,106,61,0.08);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  margin: -15px auto 16px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.40s ease 0.08s, transform 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
}
.adv-step-active .adv-final-icon { opacity: 1; transform: scale(1); }

.adv-final-title {
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s ease 0.18s, transform 0.36s ease 0.18s;
}
.adv-step-active .adv-final-title { opacity: 1; transform: none; }

.adv-final-sub {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.65;
  max-width: 400px;
  margin: 0 auto 24px;
  opacity: 0;
  transition: opacity 0.36s ease 0.28s;
}
.adv-step-active .adv-final-sub { opacity: 1; }

.adv-final-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.36s ease 0.37s, transform 0.36s ease 0.37s;
}
.adv-step-active .adv-final-btns { opacity: 1; transform: none; }

.adv-final-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 14px 40px rgba(255,106,61,0.30), inset 0 1px 0 rgba(255,255,255,0.16);
  position: relative;
  overflow: hidden;
}

.adv-final-primary::before {
  content: "";
  position: absolute;
  top: -10%; left: -80%;
  width: 60%; height: 120%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.38) 50%,
    transparent 80%
  );
  pointer-events: none;
  transform: skewX(-15deg);
  transition: left 0.50s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
  opacity: 0;
}

.adv-final-primary:hover::before {
  left: 130%;
  opacity: 1;
}

.adv-final-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(255,106,61,0.40), inset 0 1px 0 rgba(255,255,255,0.20);
}

.adv-final-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.22s ease;
  backdrop-filter: blur(10px);
}

.adv-final-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  color: var(--text);
  transform: translateY(-2px);
}

/* --- 13. Progress line --- */

.adv-progress-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.adv-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255,106,61,0.55);
}

/* --- 14. Breadcrumb --- */

.adv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 26px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.32s ease, padding 0.38s ease;
  flex-shrink: 0;
}

.adv-breadcrumb.is-visible {
  max-height: 46px;
  opacity: 1;
  padding: 12px 26px;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.04) 35%, transparent 68%);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: bottom left;
}

/* schovat chip když ještě není vybrána velikost firmy */
.adv-bc-item:empty { display: none; }

.adv-bc-item {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.28s ease;
}

.adv-bc-item.is-set {
  color: rgba(255,106,61,0.80);
}

.adv-bc-arrow {
  font-size: 10px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.28s ease;
  flex-shrink: 0;
}

.adv-bc-arrow.is-visible { opacity: 1; }

/* --- 15. Card bounce --- */

@keyframes adv-card-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.96); }
  68%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.adv-card.is-bouncing,
.adv-size-card.is-bouncing {
  animation: adv-card-bounce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 16. Email capture (step 5) --- */

.adv-email-wrap {
  width: 100%;
  max-width: 390px;
  margin: 0 auto 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.36s ease 0.44s, transform 0.36s ease 0.44s;
}

.adv-step-active .adv-email-wrap { opacity: 1; transform: none; }

.adv-email-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
}

.adv-email-row {
  display: flex;
  gap: 8px;
}

.adv-email-input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease;
  min-width: 0;
}

.adv-email-input::placeholder { color: var(--muted); }

.adv-email-input:focus {
  border-color: rgba(255,106,61,0.55);
  background: rgba(255,255,255,0.09);
}

.adv-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.20s ease, box-shadow 0.20s ease, opacity 0.20s ease;
  box-shadow: 0 6px 20px rgba(255,106,61,0.30);
  flex-shrink: 0;
}

.adv-email-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255,106,61,0.42); }
.adv-email-btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.adv-email-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13px;
  color: #4ade80;
  font-weight: 500;
}

/* --- 17. Footer --- */

.advisor-footer {
  position: relative;
  z-index: 2;
  padding: 12px 26px 15px;
  flex-shrink: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.05) 38%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top left;
}

.adv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 9px 18px;
  font-family: inherit;
  transition: background 0.20s ease, border-color 0.20s ease, color 0.20s ease;
  visibility: hidden;
}
.adv-back:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}
.adv-back svg { width: 14px; height: 14px; display: block; }

/* --- 18. Responsive --- */

/* Desktop — větší modal a větší text */
@media (min-width: 768px) {
  .advisor-modal    { width: min(840px, 100%); max-height: min(860px, calc(100svh - 50px)); }
  .advisor-body     { min-height: 520px; }
  .adv-step         { padding: 34px 36px 28px; }
  .advisor-header   { padding: 24px 34px 18px; }
  .advisor-footer   { padding: 16px 34px 20px; }

  .adv-step-title   { font-size: clamp(24px, 3vw, 32px); }
  .adv-step-sub     { font-size: 19px; margin-bottom: 24px; }

  .adv-card         { padding: 15px 20px; font-size: 18px; gap: 16px; }
  .adv-card-icon    { width: 34px; height: 34px; }
  .adv-card-icon svg { width: 22px; height: 22px; }

  .adv-size-grid    { gap: 14px; }
  .adv-size-card    { padding: 24px 14px; font-size: 16px; gap: 12px; }
  .adv-size-icon    { width: 44px; height: 44px; }
  .adv-size-icon svg { width: 28px; height: 28px; }

  .adv-thinking     { font-size: 16px; padding: 32px 0 22px; }

  .adv-response-label  { font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
  .adv-response-block-label { font-size: 11px; margin-bottom: 8px; }
  .adv-response-reason  { padding: 18px 20px; margin-bottom: 11px; border-radius: 16px; }
  .adv-response-solution { padding: 18px 20px; border-radius: 16px; }
  .adv-response-reason p,
  .adv-response-solution p { font-size: 17px; }
  .adv-next-btn     { font-size: 16px; padding: 13px 28px; margin-top: 26px; }
  .adv-next-btn svg { width: 16px; height: 16px; }

  #advRec4 .adv-rec-headline { font-size: 21px; }
  #advRec4 .adv-rec-context  { font-size: 17px; margin-bottom: 20px; }
  .adv-rec-item     { padding: 15px 18px; border-radius: 14px; }
  .adv-rec-num      { width: 24px; height: 24px; font-size: 12px; }
  .adv-rec-text     { font-size: 17px; }
  #advRec4 .adv-rec-note { font-size: 15px; padding-top: 14px; margin-bottom: 20px; }

  .adv-final-icon   { width: 66px; height: 66px; border-radius: 22px; margin-bottom: 22px; }
  .adv-final-icon svg { width: 38px; height: 38px; }
  .adv-final-title  { font-size: clamp(22px, 3vw, 27px); margin-bottom: 12px; }
  .adv-final-sub    { font-size: 17px; margin-bottom: 30px; max-width: 500px; }
  .adv-final-primary { min-height: 58px; padding: 0 38px; font-size: 17px; }

  .adv-back         { font-size: 15px; padding: 10px 22px; }

  .adv-breadcrumb   { padding: 0 34px; }
  .adv-breadcrumb.is-visible { padding: 12px 34px; max-height: 48px; }
  .adv-bc-item      { font-size: 12px; padding: 4px 12px; }

  .adv-email-wrap   { max-width: 440px; }
  .adv-email-label  { font-size: 12px; }
  .adv-email-input  { font-size: 15px; height: 50px; }
  .adv-email-btn    { height: 50px; font-size: 15px; padding: 0 22px; }
}

@media (max-width: 600px) {
  .advisor-overlay   { padding: 14px 10px; }
  .advisor-modal     { border-radius: 32px; max-height: calc(100svh - 28px); width: 97%; }
  .advisor-header    { padding: 16px 20px 13px; }
  .advisor-body      { min-height: 470px; }
  .adv-step          { padding: 20px 20px 16px; }
  .advisor-footer    { padding: 12px 20px 16px; }

  .adv-step-title    { font-size: 21px; }
  .adv-step-sub      { font-size: 16px; }
  .adv-card          { font-size: 16px; padding: 13px 14px; }
  .adv-response-reason   { margin-bottom: 22px; }
  .adv-response-reason p,
  .adv-response-solution p { font-size: 15px; }
  #advRec4 .adv-rec-headline { font-size: 17px; }
  .adv-rec-text      { font-size: 15px; }
  .adv-final-title   { font-size: 21px; }
  .adv-final-sub     { font-size: 16px; }
  .adv-next-btn      { font-size: 16px; }

  /* na mobilu je overlay lehčí, jinak blur přečuhuje za okraje */
  .advisor-bg { background: rgba(2, 5, 17, 0.4); }

  .adv-breadcrumb   { padding: 0 20px; }
  .adv-breadcrumb.is-visible { padding: 11px 20px; max-height: 46px; }

  .adv-email-wrap   { margin-bottom: 16px; }
  .adv-email-input  { height: 48px; font-size: 16px; }
  .adv-email-btn    { height: 48px; font-size: 15px; padding: 0 16px; }

  .adv-size-grid       { gap: 6px; grid-template-columns: 1fr; }
  .adv-size-card       { flex-direction: row; align-items: center; padding: 12px 14px; font-size: 16px; gap: 12px; text-align: left; }
  .adv-size-card span  { min-height: unset; justify-content: flex-start; text-align: left; }
  .adv-size-card span br { display: none; }
  .adv-size-icon       { width: 30px; height: 30px; flex-shrink: 0; }
  .adv-size-icon svg   { width: 18px; height: 18px; }
  .adv-final         { padding: 10px 4px 4px; }
}

@keyframes hero-btn-ripple {
  0% {
    box-shadow:
      0 0 0  0px rgba(255, 106, 61, 0.31),
      0 0 0  0px rgba(255, 106, 61, 0.13),
      0 10px 24px rgba(255, 106, 61, .18);
  }
  38% {
    box-shadow:
      0 0 0 18px rgba(255, 106, 61, 0),
      0 0 0 36px rgba(255, 106, 61, 0),
      0 10px 24px rgba(255, 106, 61, .18);
  }
  100% {
    box-shadow:
      0 0 0 18px rgba(255, 106, 61, 0),
      0 0 0 36px rgba(255, 106, 61, 0),
      0 10px 24px rgba(255, 106, 61, .18);
  }
}

#btnAdvisor {
  animation: hero-btn-ripple 4s ease-out infinite;
}

/* Na hover/focus nechej CSS hover styl převzít čistě */
#btnAdvisor:hover,
#btnAdvisor:focus-visible {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  #btnAdvisor { animation: none; }
}
