:root {
  --udo-bg: #f6f8fb;
  --udo-surface: #ffffff;
  --udo-ink: #0f172a;
  --udo-muted: #64748b;
  --udo-line: #dfe7ef;
  --udo-soft: #f1f5f9;
  --udo-primary: #10a884;
  --udo-primary-hover: #0c8f71;
  --udo-dark: #111827;
  --udo-danger: #b91c1c;
  --udo-success: #047857;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(16, 168, 132, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--udo-bg) 44%, #eef4f8 100%);
  color: var(--udo-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.verify-shell {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--udo-ink);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--udo-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.dashboard-btn,
.back-link,
.download-btn,
.hash-box button,
.qr-btn {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary,
.dashboard-btn,
.hash-box button,
.download-btn {
  background: var(--udo-primary);
  color: #ffffff;
}

.btn-primary:hover,
.dashboard-btn:hover,
.hash-box button:hover,
.download-btn:hover {
  background: var(--udo-primary-hover);
}

.btn-secondary,
.back-link,
.download-btn.secondary {
  background: #ffffff;
  border-color: var(--udo-line);
  color: #334155;
}

.btn-secondary:hover,
.back-link:hover,
.download-btn.secondary:hover {
  background: var(--udo-soft);
}

.verify-main {
  flex: 1;
  width: 100%;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

.hero-panel,
.search-panel,
.card,
.info-panel {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--udo-primary-hover);
}

.hero-title,
.page-title,
.title,
h2 {
  margin: 12px 0 0;
  color: var(--udo-ink);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.page-title,
.title,
h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.hero-copy,
.subtitle,
.lead {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--udo-muted);
  font-size: 15px;
  line-height: 1.7;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.trust-item {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--udo-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.trust-item strong {
  display: block;
  color: var(--udo-ink);
  font-size: 14px;
}

.trust-item span {
  display: block;
  margin-top: 6px;
  color: var(--udo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.search-panel,
.card {
  padding: clamp(20px, 4vw, 32px);
}

.search-panel {
  align-self: start;
}

.panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--udo-ink);
}

.hash-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 22px;
}

.hash-box input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--udo-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--udo-ink);
  outline: none;
}

.hash-box input:focus {
  border-color: var(--udo-primary);
  box-shadow: 0 0 0 3px rgba(16, 168, 132, 0.16);
}

.hash-box button {
  padding: 0 18px;
}

.qr-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border-color: var(--udo-line);
  color: #334155;
}

.qr-btn:hover {
  border-color: var(--udo-primary);
  background: rgba(16, 168, 132, 0.06);
  color: var(--udo-primary-hover);
}

.qr-btn img {
  width: 18px;
  height: 18px;
}

#qr-preview {
  position: relative;
  display: none;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
}

#qr-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

#scanner-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 2px;
  background: var(--udo-primary);
  animation: scan-line 1.8s ease-in-out infinite alternate;
}

@keyframes scan-line {
  from { transform: translateY(0); }
  to { transform: translateY(220px); }
}

#result,
#status,
.download-status,
.notice {
  margin-top: 16px;
  color: var(--udo-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.verify-card-page {
  max-width: 960px;
  margin: 0 auto;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--udo-line);
}

.section-title {
  margin: 0 0 14px;
  color: var(--udo-ink);
  font-size: 15px;
  font-weight: 800;
}

.field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(223, 231, 239, 0.75);
}

.field:last-child {
  border-bottom: none;
}

.label {
  color: var(--udo-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value {
  min-width: 0;
  color: #263244;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.verified {
  background: rgba(16, 168, 132, 0.12);
  color: var(--udo-primary-hover);
}

.badge.unverified {
  background: #fee2e2;
  color: var(--udo-danger);
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 28px;
  border: 1px dashed #b8c5d4;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--udo-muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--udo-primary);
  background: rgba(16, 168, 132, 0.06);
}

.file-item {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--udo-line);
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
}

.file-name {
  color: var(--udo-ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.file-hash {
  margin-top: 5px;
  color: var(--udo-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ok {
  color: var(--udo-success);
}

.fail {
  color: var(--udo-danger);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  margin-top: 16px;
}

.site-footer {
  padding: 20px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--udo-muted);
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 820px) {
  .verify-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .dashboard-btn,
  .back-link {
    width: 100%;
  }

  .dashboard-btn,
  .back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hash-box {
    grid-template-columns: 1fr;
  }

  .hash-box button {
    width: 100%;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
