.vm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 20, 17, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: vmFade .2s var(--ease);
}

.vm-card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: vmUp .28s var(--ease);
}

.vm-card--wide { max-width: 48rem; }

@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmUp { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }

.vm-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(100deg, #0b241f 0%, #0e3129 52%, #10382c 100%);
  color: #fff;
}

.vm-head h3 { font-size: 1.0625rem; font-weight: 800; }
.vm-head p { margin-top: .1875rem; font-size: .8125rem; color: rgba(255, 255, 255, .62); }

.vm-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.vm-x:hover { background: rgba(255, 255, 255, .22); }
.vm-x svg { width: 1.125rem; height: 1.125rem; }

.vm-body { padding: 1.5rem; }

.vm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 3.25rem;
  border: 0;
  border-radius: 2rem;
  background: linear-gradient(90deg, #2f8f2a 0%, #7cd93c 100%);
  box-shadow: 0 10px 24px rgba(90, 190, 60, .28);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: filter .2s var(--ease), transform .12s var(--ease);
}

.vm-cta:hover { filter: brightness(1.06); }
.vm-cta:active { transform: scale(.99); }
.vm-cta:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.vm-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--card);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.vm-ghost:hover { border-color: var(--green); color: var(--green-dark); }

.vcalc-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .625rem;
}

.vcalc-jaw-wrap { padding-bottom: .25rem; }
.vcalc-jaw { display: flex; justify-content: space-between; gap: .3125rem; }

.vtooth {
  flex: 1;
  max-width: 2.75rem;
  height: 4.375rem;
  padding: .25rem 0 .1875rem;
  border: 2px solid var(--line);
  border-radius: .375rem .375rem .625rem .625rem;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.vtooth img {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  pointer-events: none;
  padding: 0 .1875rem;
}

.vtooth.is-lower img { transform: scaleY(-1); }
.vtooth:hover { border-color: var(--green); }

.vtooth.is-on {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.vtooth.is-on::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(14, 124, 108, .16);
}

.vtooth-num {
  position: relative;
  z-index: 1;
  flex: none;
  margin-top: .125rem;
  font-size: .625rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

.vtooth.is-on .vtooth-num { color: var(--green-deep); }

.vcalc-sep {
  height: .625rem;
  margin: .375rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  background: var(--bg);
}

.vcalc-brands { display: flex; gap: .5rem; margin: 1.125rem 0 1.25rem; }

.vcalc-brand {
  flex: 1;
  padding: .625rem .5rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

.vcalc-brand:hover { border-color: var(--green); }
.vcalc-brand.is-on { border-color: var(--green); background: var(--green-tint); }

.vcalc-brand-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto .375rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
}

.vcalc-brand-icon svg { width: 1.0625rem; height: 1.0625rem; }
.vcalc-brand b { display: block; font-size: .75rem; font-weight: 700; color: var(--ink); }
.vcalc-brand .price { margin-top: .125rem; font-size: .75rem; font-weight: 700; color: var(--green); }
.vcalc-brand .note { margin-top: .125rem; font-size: .625rem; line-height: 1.3; color: var(--muted); }

.vcalc-result {
  padding: 1rem 1.125rem;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
}

.vcalc-result .count { font-size: .75rem; color: rgba(255, 255, 255, .55); margin-bottom: .25rem; }
.vcalc-result .total { font-size: 1.75rem; font-weight: 900; color: #7cd93c; line-height: 1; }
.vcalc-result .monthly { margin-top: .375rem; font-size: .8125rem; color: rgba(255, 255, 255, .78); }
.vcalc-result .monthly strong { color: #fff; }
.vcalc-result .free { margin-top: .25rem; font-size: .6875rem; color: #7cd93c; }
.vcalc-empty { padding: .5rem 0; text-align: center; font-size: .8125rem; color: rgba(255, 255, 255, .5); }

.vcalc-ctas { display: flex; gap: .5rem; margin-top: 1.125rem; }
.vcalc-reset {
  flex: none;
  padding: 0 1rem;
  border: 0;
  border-radius: 2rem;
  background: var(--bg);
  font: inherit;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.vq-progress { height: .25rem; background: var(--line-soft); }
.vq-bar { height: 100%; background: var(--green); transition: width .35s var(--ease); }

.vq-emoji { display: flex; justify-content: center; margin-bottom: .75rem; }
.vq-step { text-align: center; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .375rem; }
.vq-q { text-align: center; font-size: 1.125rem; font-weight: 800; color: var(--ink); line-height: 1.32; margin-bottom: 1.125rem; }

.vq-opts { display: flex; flex-direction: column; gap: .5rem; }

.vq-opt {
  padding: .75rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  text-align: left;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}

.vq-opt:hover { border-color: var(--green); background: var(--green-tint); }
.vq-opt.is-chosen { border-color: var(--green); background: var(--green); color: #fff; }

.vq-result { text-align: center; }
.vq-result-icon { display: flex; justify-content: center; margin-bottom: .75rem; }
.vq-result-title { font-size: 1.25rem; font-weight: 900; margin-bottom: .5rem; }
.vq-result-text { font-size: .8125rem; line-height: 1.55; color: var(--muted); margin-bottom: 1.25rem; }

.vq-clinic {
  border-radius: var(--r-lg);
  padding: .875rem;
  margin-bottom: 1.25rem;
}

.vq-clinic-name { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.vq-clinic-row { display: flex; align-items: center; justify-content: center; gap: .3125rem; font-size: .8125rem; color: var(--ink); font-weight: 600; margin-top: .1875rem; }
.vq-clinic-row svg { width: .8125rem; height: .8125rem; flex: none; }

.vq-retry {
  display: block;
  margin: .625rem auto 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .8125rem;
  color: var(--muted);
  cursor: pointer;
}

.vq-retry:hover { color: var(--text); }

.vf-field { display: block; margin-bottom: .875rem; }
.vf-field span { display: block; font-size: .75rem; font-weight: 700; color: var(--text); margin-bottom: .375rem; }

.vf-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.vf-field-top span { margin-bottom: .375rem; }

.vf-count { flex: none; font-size: .6875rem; font-weight: 600; color: var(--muted); }

.vf-input {
  width: 100%;
  box-sizing: border-box;
  padding: .75rem .875rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  font: inherit;
  font-size: .9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.vf-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.vf-input::placeholder { color: var(--muted); }

.vf-textarea { resize: vertical; min-height: 4.5rem; line-height: 1.45; font-family: inherit; }

.vf-src-label { font-size: .75rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.vf-chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1.125rem; }

.vf-chip {
  padding: .375rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: 2rem;
  background: var(--bg);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}

.vf-chip:hover { border-color: var(--green); }
.vf-chip.is-on { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); font-weight: 700; }

.vf-err {
  display: none;
  margin-bottom: .75rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #d64545;
}

.vf-note { margin-top: .75rem; font-size: .75rem; line-height: 1.5; text-align: center; color: var(--muted); }
.vf-note a { color: var(--green); font-weight: 600; }

.vsuccess { text-align: center; padding: 1.5rem 0 .5rem; }
.vsuccess svg { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; display: block; }
.vsuccess h3 { font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.vsuccess p { margin-top: .375rem; font-size: .8125rem; color: var(--muted); }

.vrev { position: relative; padding: 2.25rem 1.75rem 1.75rem; text-align: center; }

.vrev-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--muted-bg, var(--bg));
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.vrev-close:hover { background: var(--line-soft); }

.vrev-logo { height: 2.25rem; width: auto; margin: 0 auto 1.25rem; display: block; }

.vrev-title { font-size: 1.5rem; font-weight: 800; color: var(--ink); }

.vrev-sub { margin-top: .375rem; font-size: .875rem; color: var(--muted); }

.vrev-stars { display: flex; justify-content: center; gap: .625rem; margin-top: 1.5rem; }

.vrev-star {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--line);
  transition: color .15s var(--ease), transform .15s var(--ease);
}

.vrev-star svg { width: 2.25rem; height: 2.25rem; }
.vrev-star:hover { transform: scale(1.08); }
.vrev-star.is-on { color: #f5a623; }

.vrev-lead { margin-top: 1.25rem; font-size: .875rem; line-height: 1.5; color: var(--text); }

.vrev-btn { margin-top: 1.25rem; }

.vrev-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  margin-top: .875rem;
  font-size: .75rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .vm-overlay { padding: 0; align-items: flex-end; }
  .vm-card { max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94dvh; }
  .vm-head { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .vcalc-brands { flex-wrap: wrap; }
  .vcalc-brand { flex: 0 0 calc(50% - .25rem); }

  .vcalc-jaw {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .25rem;
  }

  .vtooth { max-width: none; height: 3.625rem; }
  .vtooth img { padding: 0 .125rem; }
  .vtooth-num { font-size: .5625rem; }
}
