@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700&display=swap');

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

.vp-wrap {
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 4rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.vp-inner { width: 100%; max-width: 540px; }

/* ── Page header ── */
.vp-page-header {
  text-align: center;
  margin-bottom: 2rem;
}
.vp-page-header .vp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #EBF3FF;
  margin-bottom: 0.75rem;
}
.vp-page-header .vp-logo svg { width: 24px; height: 24px; }
.vp-page-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}
.vp-page-header p {
  font-size: 14px;
  color: #6b7280;
}

/* ── Card ── */
.vp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── Status bar ── */
.vp-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.75rem;
  font-size: 14px;
  font-weight: 500;
}
.vp-status-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vp-status-icon svg { width: 11px; height: 11px; }

.vp-status.verified  { background: #f0fdf4; color: #166534; }
.vp-status.verified  .vp-status-icon { background: #16a34a; }

.vp-status.pending   { background: #fffbeb; color: #92400e; }
.vp-status.pending   .vp-status-icon { background: #d97706; }

.vp-status.cancelled { background: #fef2f2; color: #991b1b; }
.vp-status.cancelled .vp-status-icon { background: #dc2626; }

/* ── Cert issuer header ── */
.vp-issuer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
}
.vp-issuer-seal {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #EBF3FF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vp-issuer-seal svg { width: 22px; height: 22px; }
.vp-issuer-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}
.vp-issuer-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Field grid ── */
.vp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.vp-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
}
.vp-field-value {
  font-size: 14px;
  color: #111;
  line-height: 1.4;
}
.vp-field-mono {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: #1d4ed8;
}

/* ── Divider ── */
.vp-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 1.25rem 0;
}

/* ── Download button ── */
.vp-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.vp-btn-download:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.vp-btn-download svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Notice text (pending / cancelled) ── */
.vp-notice {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 0.25rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}
.vp-notice.pending  { background: #fffbeb; color: #92400e; }
.vp-notice.cancelled { background: #fef2f2; color: #991b1b; }

/* ── Lookup / not-found form ── */
.vp-lookup-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.35rem;
}
.vp-lookup-sub {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 1.25rem;
}
.vp-not-found {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 0.9rem;
  background: #fef2f2;
  border-radius: 8px;
  font-size: 14px;
  color: #991b1b;
  margin-bottom: 1.25rem;
}
.vp-not-found svg { width: 16px; height: 16px; flex-shrink: 0; }
.vp-form-row {
  display: flex;
  gap: 8px;
}
.vp-form-row input[type="text"] {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.vp-form-row input[type="text"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.vp-form-row button {
  padding: 0.65rem 1.2rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.vp-form-row button:hover { background: #374151; }

@media (max-width: 480px) {
  .vp-fields { grid-template-columns: 1fr; }
  .vp-card   { padding: 1.25rem; }
}
