.scent-advisor-floating-btn {
  position: fixed;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--surface-contrast);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scent-advisor-floating-btn.pos-left,
.scent-advisor-floating-btn:not(.pos-right) {
  bottom: 24px;
  left: 24px;
  right: auto;
}

.scent-advisor-floating-btn.pos-right {
  bottom: 80px;
  right: 24px;
  left: auto;
}

.scent-advisor-floating-btn.pos-right.pos-bottom-solo {
  bottom: 24px;
}

.scent-advisor-floating-btn:hover {
  background: var(--accent-coffee);
  color: #ffffff;
  border-color: var(--accent-coffee);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.scent-advisor-floating-btn svg,
.scent-advisor-floating-btn i {
  transition: transform 0.3s ease;
  font-size: 16px;
  line-height: 1;
}

.scent-advisor-floating-btn:hover svg,
.scent-advisor-floating-btn:hover i {
  transform: rotate(45deg);
}

.scent-advisor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 24, 19, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.scent-advisor-overlay.active {
  opacity: 1;
  visibility: visible;
}

.scent-advisor-center-modal {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-modal);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-popup);
  padding: 34px 36px 30px;
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.scent-advisor-overlay.active .scent-advisor-center-modal {
  transform: scale(1) translateY(0);
}

.advisor-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-soft, #f8f6f3);
  color: var(--text-muted, #7c7267);
  border: 1px solid var(--border-light, #eae4dc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.advisor-modal-close-btn i,
.advisor-modal-close-btn svg {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 1em;
  height: 1em;
}

.advisor-modal-close-btn:hover {
  background: var(--accent-coffee-soft, #f3ece6);
  color: var(--accent-coffee, #5c3d2e);
  border-color: var(--accent-coffee-border, #dacbc0);
  transform: scale(1.06);
}

.advisor-top-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 16px auto;
  width: 100%;
}

.advisor-icon-wrap {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--accent-coffee, #5c3d2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 6px;
  box-shadow: none;
}

.advisor-icon-wrap i,
.advisor-icon-wrap svg {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 1em;
  height: 1em;
  margin: 0;
  padding: 0;
}

.advisor-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #7b4f34;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-right: -0.12em;
  line-height: 1.2;
  display: block;
}

.advisor-question-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--surface-contrast);
  text-align: center;
  line-height: 1.3;
  margin: 0 auto 12px auto;
  padding: 0 8px;
}

.advisor-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 20px auto;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ded5cb;
  transition: all 0.25s ease;
}

.step-dot.active {
  width: 26px;
  height: 8px;
  background: #5c3d2e;
  box-shadow: 0 2px 6px rgba(92, 61, 46, 0.22);
}

.advisor-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 8px 8px 8px 4px;
}

.advisor-row-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--surface-contrast);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(36, 24, 19, 0.02);
  cursor: pointer;
}

.advisor-row-btn:hover {
  border-color: var(--accent-coffee-border);
  background: var(--accent-coffee-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(90, 67, 52, 0.1);
}

.advisor-row-btn.active {
  border-color: var(--accent-coffee);
  background: var(--accent-coffee-soft);
  color: var(--accent-coffee);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(90, 67, 52, 0.12);
}

.advisor-opt-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fbf8f5;
  color: #7b5843;
  border: 1px solid #ebdcd2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.advisor-opt-icon i,
.advisor-opt-icon svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.advisor-row-btn:hover .advisor-opt-icon,
.advisor-row-btn.active .advisor-opt-icon {
  background: #5c3d2e;
  color: #ffffff;
  border-color: #5c3d2e;
  box-shadow: 0 3px 8px rgba(92, 61, 46, 0.25);
}

.advisor-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 13px;
  color: var(--text-light);
}

.advisor-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.advisor-back-btn:hover {
  color: var(--surface-contrast);
}

.advisor-note-text {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
}

.advisor-step-panel {
  animation: stepFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.advisor-final-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 6px 0 16px;
  width: 100%;
  animation: finalCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes finalCardIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.advisor-budget-notice {
  width: 100%;
  max-width: 420px;
  background: #fff8eb;
  border: 1px solid #fbd38d;
  color: #975a16;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 14px;
  border-radius: 12px;
  margin: 0 auto 14px auto;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.final-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-coffee-soft);
  color: var(--accent-coffee);
  border: 1px solid var(--accent-coffee-border);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin: 6px auto 20px auto;
}

.final-perfume-img {
  width: 170px;
  height: 170px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 26px auto;
  box-shadow: 0 10px 30px rgba(90, 67, 52, 0.09);
}

.final-perfume-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(36, 24, 19, 0.12));
}

.final-perfume-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--surface-contrast);
  margin: 0 auto 10px auto;
  line-height: 1.35;
  text-align: center;
  max-width: 380px;
}

.final-perfume-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
  margin: 0 auto 16px auto;
  text-align: center;
}

.final-perfume-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-coffee);
  margin: 0 auto 22px auto;
  text-align: center;
  line-height: 1;
}

.final-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 12px;
}

.final-actions .btn {
  flex: 1;
}

@media (max-width: 576px) {
  .scent-advisor-overlay {
    padding: 12px;
  }
  .scent-advisor-center-modal {
    padding: 26px 18px 20px;
    border-radius: 20px;
    max-width: 100%;
    max-height: 92vh;
  }
  .advisor-modal-close-btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }
  .advisor-icon-wrap {
    width: auto;
    height: auto;
    font-size: 34px;
    margin-bottom: 5px;
    background: transparent;
    box-shadow: none;
  }
  .advisor-question-title {
    font-size: 19px;
    margin-bottom: 10px;
  }
  .advisor-step-dots {
    margin-bottom: 16px;
  }
  .advisor-options-list {
    gap: 10px;
    padding: 4px 2px;
  }
  .advisor-row-btn {
    padding: 12px 14px;
    gap: 12px;
    font-size: 14.5px;
    border-radius: 14px;
  }
  .advisor-opt-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }
}

