:root {
  --bg-1: #f4f7fc;
  --bg-2: #edf3fb;
  --bg-3: #fbfdff;
  --text-main: #18212d;
  --text-sub: #5f6c7b;
  --text-strong: #29425c;
  --text-muted: #8a97a8;
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-bg-strong: rgba(255, 255, 255, 0.95);
  --surface-base: #fff;
  --surface-soft: rgba(248, 250, 255, 0.96);
  --surface-overlay: rgba(255, 255, 255, 0.97);
  --border: rgba(33, 43, 57, 0.12);
  --accent: #1267d6;
  --accent-strong: #0f4ca7;
  --accent-soft: #e7f0ff;
  --accent-ring: rgba(18, 103, 214, 0.16);
  --danger: #c94d52;
  --success: #2f8f64;
  --logo-blue: #1364fc;
  --shadow-sm: 0 10px 24px rgba(16, 31, 56, 0.1);
  --shadow-md: 0 14px 26px rgba(19, 36, 62, 0.18);
  --shadow-lg: 0 22px 52px rgba(20, 42, 73, 0.12);
  --shadow-accent: 0 8px 18px rgba(18, 103, 214, 0.2);
  --shadow-accent-strong: 0 16px 28px rgba(18, 103, 214, 0.24);
  --shadow-accent-strong-hover: 0 20px 34px rgba(18, 103, 214, 0.27);
  --accent-gradient: linear-gradient(140deg, #0f5fce, #2e86ff);
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-base: 15px;
  --font-size-lg: 16px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --top-bar-height: 64px;
  --top-bar-offset: 12px;
  --top-bar-side-offset: 12px;
}

* {
  box-sizing: border-box;
}

html[data-i18n-ready="false"] body {
  visibility: hidden;
}

.page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  min-height: calc(100vh - var(--top-bar-height) - var(--top-bar-offset) - env(safe-area-inset-top));
  padding: 28px 0 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.logo {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: var(--radius-2xl);
  object-fit: contain;
  background: var(--surface-base);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.intro {
  margin: 0 auto;
  max-width: 680px;
  color: var(--text-sub);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}

.content-grid {
  width: min(760px, 100%);
  margin: 0 auto;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-bg-strong), var(--panel-bg));
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.32), transparent 42%);
  pointer-events: none;
}

.verifier-panel {
  padding: 28px;
}

.panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.panel-copy {
  margin: 0;
  color: var(--text-sub);
  font-size: var(--font-size-md);
  line-height: 1.7;
}

.verify-form,
.status-card {
  position: relative;
  z-index: 1;
}

.verify-form {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: var(--font-size-md);
  font-weight: 700;
}

.field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.email-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(21, 42, 73, 0.12);
  border-radius: var(--radius-2xl);
  background: var(--surface-soft);
  color: var(--text-main);
  font: inherit;
  font-size: var(--font-size-lg);
  box-shadow: inset 0 1px 1px rgba(17, 31, 51, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-base);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.email-input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 77, 82, 0.14);
}

.submit-btn {
  min-height: 56px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-2xl);
  background: var(--accent-gradient);
  color: var(--surface-base);
  font: inherit;
  font-size: var(--font-size-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-accent-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent-strong-hover);
}

.submit-btn:disabled {
  opacity: 0.8;
  cursor: wait;
}

.helper-text {
  margin: 0;
  color: var(--text-sub);
  font-size: var(--font-size-sm);
  line-height: 1.65;
}

.status-stack {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(18, 103, 214, 0.14);
  background: linear-gradient(160deg, rgba(242, 247, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.status-card[data-status-kind="pending"] {
  border-color: rgba(18, 103, 214, 0.2);
  background: linear-gradient(160deg, rgba(235, 244, 255, 0.98), rgba(252, 254, 255, 0.92));
}

.status-card[data-status-kind="success"] {
  border-color: rgba(76, 154, 114, 0.24);
  background: linear-gradient(160deg, rgba(233, 251, 243, 0.98), rgba(250, 255, 252, 0.92));
}

.status-card[data-status-kind="error"] {
  border-color: rgba(201, 77, 82, 0.22);
  background: linear-gradient(160deg, rgba(255, 242, 242, 0.98), rgba(255, 250, 250, 0.92));
}

.status-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--surface-base);
  color: var(--accent-strong);
  font-size: var(--font-size-base);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(17, 31, 51, 0.06);
}

.status-card[data-status-kind="success"] .status-icon {
  color: var(--success);
}

.status-card[data-status-kind="error"] .status-icon {
  color: var(--danger);
}

.status-card[data-status-kind="pending"] .status-icon {
  animation: pulseGlow 1.35s ease-in-out infinite;
}

.status-label {
  margin: 2px 0 6px;
  font-size: var(--font-size-base);
  font-weight: 700;
}

.status-text {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--font-size-md);
  line-height: 1.7;
}

.status-card[data-status-followup-card] {
  align-items: center;
}

.status-followup-copy {
  min-width: 0;
}

.status-card[data-status-followup-card] .status-label {
  margin-top: 0;
}

.status-action-link {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(17, 31, 51, 0.08),
    0 10px 22px rgba(18, 103, 214, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-action-link:hover,
.status-action-link:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(17, 31, 51, 0.08),
    0 14px 28px rgba(18, 103, 214, 0.16);
}

.status-action-link:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 3px;
}

.status-action-image {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-1 {
  animation-delay: 0.05s;
}

.reveal-2 {
  animation-delay: 0.14s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 1px rgba(17, 31, 51, 0.06);
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      inset 0 0 0 1px rgba(17, 31, 51, 0.06),
      0 0 0 6px rgba(18, 103, 214, 0.08);
  }
}

@media (max-width: 760px) {
  :root {
    --top-bar-height: 58px;
    --top-bar-offset: 8px;
    --top-bar-side-offset: 8px;
  }

  .page {
    padding: 18px 0 30px;
  }

  .hero {
    margin-bottom: 20px;
  }

  .field-wrap {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .verifier-panel {
    padding: 20px;
  }

  .logo {
    width: 58px;
    height: 58px;
  }

  .status-card {
    grid-template-columns: 1fr;
  }

  .status-action-link {
    width: 76px;
    height: 76px;
  }

  .status-action-image {
    width: 52px;
    height: 52px;
  }
}
