* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--theme-html-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--theme-content-text);
  background: var(--theme-body-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  inset: var(--theme-body-before-inset);
  top: var(--theme-body-before-top);
  right: var(--theme-body-before-right);
  bottom: var(--theme-body-before-bottom);
  left: var(--theme-body-before-left);
  width: var(--theme-body-before-width);
  height: var(--theme-body-before-height);
  border-radius: var(--theme-body-before-radius);
  background: var(--theme-body-before-bg);
  opacity: var(--theme-body-before-opacity);
  filter: var(--theme-body-before-filter);
}

body::after {
  inset: var(--theme-body-after-inset);
  top: var(--theme-body-after-top);
  right: var(--theme-body-after-right);
  bottom: var(--theme-body-after-bottom);
  left: var(--theme-body-after-left);
  width: var(--theme-body-after-width);
  height: var(--theme-body-after-height);
  border-radius: var(--theme-body-after-radius);
  background: var(--theme-body-after-bg);
  opacity: var(--theme-body-after-opacity);
  filter: var(--theme-body-after-filter);
}

.verify-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto;
  gap: 22px;
  min-height: 100vh;
  padding: 2rem 1rem;
  place-items: center;
}

.verify-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--theme-panel-border);
  border-radius: 32px;
  background: var(--theme-panel-surface);
  box-shadow: var(--theme-panel-shadow);
}

.verify-page--invalid .verify-panel {
  border-color: rgba(180, 35, 24, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 247, 0.94)),
    var(--theme-panel-surface);
  box-shadow:
    0 0 0 1px rgba(180, 35, 24, 0.08),
    0 28px 64px rgba(180, 35, 24, 0.18);
}

.verify-page--valid .verify-panel {
  border-color: rgba(42, 108, 74, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 255, 250, 0.94)),
    var(--theme-panel-surface);
  box-shadow:
    0 0 0 1px rgba(42, 108, 74, 0.08),
    0 28px 64px rgba(42, 108, 74, 0.18);
}

.brand-row {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.brand-logo {
  display: block;
  margin-inline: auto;
  width: min(100%, 300px);
  height: auto;
}

.status-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: var(--theme-accent);
  border: 8px solid var(--theme-panel-surface);
}

.verify-page--valid .status-mark {
  background: var(--theme-success);
  box-shadow: 0 0 0 2px rgba(42, 108, 74, 0.24);
}

.verify-page--valid h1 {
  color: var(--theme-success);
}

.verify-page--valid .summary {
  color: var(--theme-success);
  font-weight: 700;
}

.verify-page--invalid .status-mark,
.verify-page--unavailable .status-mark {
  background: var(--theme-danger);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.24);
}

.verify-page--invalid h1 {
  color: var(--theme-danger);
}

.verify-page--invalid .summary {
  color: #8f1d16;
  font-weight: 700;
}

.status-label {
  margin: 0 0 0.4rem;
  color: var(--theme-content-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.summary {
  margin: 1rem 0 0;
  color: var(--theme-content-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.verification-details {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.verification-details div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--theme-input-border);
}

.verification-details dt,
.verification-details dd {
  min-width: 0;
  margin: 0;
}

.verification-details dt {
  color: var(--theme-content-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.verification-details dd {
  overflow-wrap: anywhere;
  color: var(--theme-content-text);
  font-weight: 700;
}

.privacy-note {
  margin: 1.75rem 0 0;
  padding: 1rem;
  border: 1px solid var(--theme-feedback-border);
  border-radius: 8px;
  color: var(--theme-feedback-color);
  background: var(--theme-feedback-bg);
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: 1rem;
  padding: 14px 24px;
  border: 1px solid var(--theme-input-border);
  border-radius: 999px;
  color: var(--theme-content-text);
  background: var(--theme-input-bg);
  box-shadow: var(--theme-input-inset-shadow);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.home-action:hover,
.home-action:focus-visible {
  outline: none;
  border-color: var(--theme-focus-border);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 5px var(--theme-focus-ring),
    0 12px 24px var(--theme-focus-shadow);
}

.site-footer {
  width: min(100%, 760px);
  text-align: center;
  color: var(--theme-footer-text);
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer small {
  display: inline-block;
  padding: 0 12px;
}

@media (max-width: 38rem) {
  .verify-shell {
    align-items: start;
    padding: 1rem;
  }

  .verification-details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .verify-panel {
    border-radius: 24px;
  }
}
