.jm-funnel-root {
  position: fixed;
  inset: 0;
  z-index: 1060;
}

.jm-funnel-root.is-open {
  display: block !important;
}

.jm-funnel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
}

.jm-funnel-modal {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.jm-funnel-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.jm-funnel-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.jm-funnel-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.jm-funnel-header {
  padding: 28px 28px 18px;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: #fff;
}

.jm-funnel-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
}

.jm-funnel-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.jm-funnel-subtitle {
  color: rgba(255, 255, 255, 0.86);
}

.jm-funnel-progress-wrap {
  padding: 18px 28px 0;
}

.jm-funnel-progress {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.jm-funnel-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
  transition: width 0.25s ease;
}

.jm-funnel-step-label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #6b7280;
}

.jm-funnel-body {
  padding: 24px 28px 28px;
}

.jm-funnel-screen {
  display: none;
}

.jm-funnel-screen.active {
  display: block;
}

.jm-funnel-intro-icon {
  font-size: 48px;
}

.jm-funnel-options {
  display: grid;
  gap: 12px;
}

.jm-funnel-option {
  width: 100%;
  text-align: left;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.18s ease;
  cursor: pointer;
}

.jm-funnel-option:hover,
.jm-funnel-option:focus {
  border-color: #0d6efd;
  background: #f8fbff;
  transform: translateY(-1px);
}

.jm-funnel-result-list {
  display: grid;
  gap: 14px;
}

.jm-funnel-result-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px;
  background: #fff;
}

.jm-funnel-result-card.recommended {
  border: 2px solid #0d6efd;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.08);
}

.jm-funnel-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jm-funnel-result-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.jm-funnel-logo-wrap {
  width: 120px;
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.jm-funnel-logo {
  max-width: 100%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.jm-funnel-brand-text {
  min-width: 0;
}

.jm-funnel-operator {
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
  line-height: 1.2;
}

.jm-funnel-plan {
  color: #4b5563;
  font-size: 0.95rem;
  margin-top: 2px;
  line-height: 1.3;
}

.jm-funnel-price {
  text-align: right;
  flex-shrink: 0;
}

.jm-funnel-price-main {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
  color: #111827;
}

.jm-funnel-price-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

.jm-funnel-price-old {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: line-through;
  margin-top: 2px;
}

.jm-funnel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 14px;
}

.jm-funnel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
}

.jm-funnel-reco-badge {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: #0d6efd;
  padding: 6px 10px;
  border-radius: 999px;
}

.jm-funnel-card .btn-dark,
.jm-funnel-card .btn-outline-secondary,
.jm-funnel-card .btn-success {
  border-radius: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-weight: 700;
}

@media (max-width: 576px) {
  .jm-funnel-header,
  .jm-funnel-progress-wrap,
  .jm-funnel-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .jm-funnel-title {
    font-size: 1.4rem;
  }

  .jm-funnel-result-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .jm-funnel-result-brand {
    width: 100%;
  }

  .jm-funnel-logo-wrap {
    width: 96px;
    min-width: 96px;
    height: 34px;
  }

  .jm-funnel-logo {
    max-height: 26px;
  }

  .jm-funnel-price {
    text-align: left;
  }
}