/* GapNeed VERIFY — verify.css */
:root {
  --bg:         #F8FAFC;
  --card:       #FFFFFF;
  --text:       #0F172A;
  --text-dim:   #64748B;
  --accent:     #EA580C;
  --accent-h:   #C2410C;
  --accent-soft:#FFF7ED;
  --border:     #E2E8F0;
  --ok:         #16A34A;
  --warn:       #CA8A04;
  --err:        #DC2626;
  --radius:     10px;
  --shadow:     0 1px 4px rgba(0,0,0,.07),0 4px 16px rgba(0,0,0,.05);
}

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

body {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo .nav-badge {
  margin-left: .45rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #fed7aa;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-back {
  font-size: .85rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
}
.nav-back:hover { color: var(--accent); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  font-family: inherit;
  transition: background .15s, color .15s;
}
.lang-toggle button.is-active,
.lang-toggle button:hover {
  background: var(--accent);
  color: #fff;
}

/* ── HERO ── */
.vf-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.vf-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.vf-hero .vf-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  opacity: .85;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.vf-benefits {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.benefit-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  text-align: left;
  min-width: 160px;
  max-width: 200px;
}
.benefit-card h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: #fff;
}
.benefit-card p {
  font-size: .78rem;
  opacity: .8;
  color: #fff;
}

/* ── SEARCH ── */
.vf-search {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
}
.vf-search-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: .75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.vf-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
  min-width: 140px;
}
.vf-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vf-field select,
.vf-field input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .7rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
}
.vf-field select:focus,
.vf-field input:focus { border-color: var(--accent); }

.vf-mode-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 200px;
}
.vf-mode-group label.group-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vf-radios {
  display: flex;
  gap: .5rem;
}
.vf-radio-btn {
  position: relative;
}
.vf-radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vf-radio-btn label {
  cursor: pointer;
  padding: .38rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg);
  transition: all .15s;
  user-select: none;
  display: block;
}
.vf-radio-btn input:checked + label {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.vf-radio-btn label:hover { border-color: var(--accent); color: var(--accent); }
.vf-radio-btn input:checked + label:hover { color: #fff; }

.btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.4rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  align-self: flex-end;
}
.btn-search:hover { background: var(--accent-h); }
.btn-search:disabled { opacity: .6; cursor: not-allowed; }

/* ── RESULTS ── */
.vf-results {
  max-width: 1040px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── INSPECTOR CARD ── */
.inspector-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: box-shadow .15s, transform .15s;
  position: relative;
}
.inspector-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.inspector-card.is-recommended {
  border-color: var(--accent);
  border-width: 2px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: .03em;
}
.rank-badge.recommended { background: var(--accent-soft); color: var(--accent); border: 1px solid #fed7aa; }
.rank-badge.alternative  { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.rank-badge.premium      { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.rank-badge.budget       { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }

.inspector-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.confidence-bar {
  background: var(--border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.confidence-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .4s;
}
.confidence-fill.ok   { background: var(--ok); }
.confidence-fill.warn { background: var(--warn); }
.confidence-fill.err  { background: var(--err); }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.service-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.inspector-meta {
  font-size: .78rem;
  color: var(--text-dim);
}
.inspector-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.inspector-desc {
  font-size: .82rem;
  color: var(--text-dim);
  flex: 1;
}

.btn-select {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
  margin-top: .25rem;
}
.btn-select:hover { background: var(--accent-h); }

/* ── SKELETON ── */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.skel {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.4s infinite;
}
.skel-title { height: 18px; width: 70%; }
.skel-badge { height: 18px; width: 40%; border-radius: 99px; }
.skel-bar   { height: 6px; width: 100%; border-radius: 99px; }
.skel-text  { height: 12px; width: 90%; }
.skel-text2 { height: 12px; width: 60%; }
.skel-btn   { height: 36px; width: 100%; border-radius: 6px; margin-top: .25rem; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── EMPTY ── */
.vf-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}
.vf-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.vf-empty p { font-size: .9rem; margin-bottom: 1.25rem; }
.vf-empty-cta {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: .5rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s;
}
.vf-empty-cta:hover { background: #ffedd5; }

/* ── SUCCESS BANNER ── */
.vf-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--ok);
}
.vf-success h3 { font-weight: 800; margin-bottom: .25rem; }
.vf-success p  { font-size: .9rem; }

/* ── MODAL ── */
.vf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vf-modal[hidden] { display: none; }

.vf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.vf-modal-card {
  position: relative;
  background: var(--card);
  border-radius: 12px;
  padding: 1.75rem;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.vf-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 700;
  font-family: inherit;
  transition: all .15s;
}
.vf-modal-close:hover { background: #f1f5f9; color: var(--text); }

.vf-modal-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.modal-inspector-info {
  background: var(--accent-soft);
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: .65rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin: .75rem 0 1rem;
}

#vf-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.vf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.vf-form-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.vf-form-field label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vf-form-field input,
.vf-form-field select,
.vf-form-field textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .7rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}
.vf-form-field input:focus,
.vf-form-field select:focus,
.vf-form-field textarea:focus { border-color: var(--accent); }

#vf-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .65rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: .25rem;
}
#vf-submit:hover { background: var(--accent-h); }
#vf-submit:disabled { opacity: .6; cursor: not-allowed; }

.vf-form-feedback {
  border-radius: 6px;
  padding: .65rem .9rem;
  font-size: .88rem;
  font-weight: 600;
}
.vf-form-feedback.ok  { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.vf-form-feedback.err { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }

/* ── FOOTER ── */
.vf-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
}
.vf-footer a { color: var(--text-dim); text-decoration: none; }
.vf-footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .vf-search-inner { flex-direction: column; align-items: stretch; }
  .vf-field, .vf-mode-group { min-width: 100%; }
  .btn-search { width: 100%; }
  .verify-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .vf-modal-card { padding: 1.25rem; border-radius: 12px 12px 0 0; }
  .vf-modal { align-items: flex-end; padding: 0; }
  .vf-benefits { flex-direction: column; align-items: center; }
  .benefit-card { max-width: 100%; width: 100%; }
  .vf-form-row { grid-template-columns: 1fr; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  .inspector-card { transition: none; }
  .btn-select, .btn-search, #vf-submit { transition: none; }
}
