/* Genie in a Lamp — landing page styling.
   Midnight blue + gold, minimal. No external dependencies. */

:root {
  --bg-top: #141a3a;
  --bg: #090c1c;
  --card: #131732;
  --gold: #d4af37;
  --gold-soft: #f0c75e;
  --text: #f6f6fb;
  --muted: #9aa0c0;
  --field: #0f1228;
  --err: #ff8585;
}

* { box-sizing: border-box; }

/* The whole UI toggles visibility via the `hidden` attribute (el.hidden = …).
   Author display rules like `.modal{display:flex}` otherwise override the UA
   `[hidden]{display:none}`, leaving "hidden" elements stuck on screen (the
   auth modal would not close). Make `hidden` authoritative everywhere. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% -10%, var(--bg-top) 0%, var(--bg) 55%);
  color: var(--text);
}

/* ---- auth status badge (visible debug) ---- */
.auth-badge {
  width: min(100%, 560px);
  padding: 6px 12px;
  margin: 4px auto 4px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.4px;
  border: 1px solid rgba(154, 160, 192, 0.30);
  background: rgba(154, 160, 192, 0.08);
  color: #9aa0c0;
  border-radius: 8px;
  text-align: center;
}

/* ---- JS-loaded marker (debug aid) ---- */
.js-marker {
  position: fixed;
  top: 6px;
  right: 8px;
  z-index: 60;
  background: rgba(40, 130, 70, 0.85);
  color: #fff;
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
}

/* ---- top bar (auth + nav) ---- */
.topbar {
  width: min(100%, 560px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 24px;
  font-size: 13px;
}
.topbar-brand {
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-right: 6px;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.topbar-spacer { flex: 1; min-width: 4px; }
.topbar-link {
  width: auto;
  margin: 0;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.0);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  box-shadow: none;
}
.topbar-link:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-soft);
  box-shadow: none;
}
.topbar-link.is-active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-soft);
}
.topbar-hello { font-size: 12px; color: var(--gold-soft); margin-right: 6px; }
.topbar-account { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.wish-card {
  width: min(92vw, 520px);
  text-align: center;
}

/* --- lamp --- */
.lamp {
  width: 132px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
  animation: float 5s ease-in-out infinite;
  transition: filter 0.4s ease;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Extra smoke wisps only visible while the genie is working. */
.lamp .wisp-a, .lamp .wisp-b { opacity: 0; }

body.working .lamp {
  filter: drop-shadow(0 0 30px rgba(240, 199, 94, 0.75));
  animation: float 2.6s ease-in-out infinite;
}
body.working .lamp .wisp-base { animation: wisp-rise 1.8s ease-in-out infinite; }
body.working .lamp .wisp-a    { animation: wisp-rise 2.3s ease-in-out infinite 0.3s; }
body.working .lamp .wisp-b    { animation: wisp-rise 2.0s ease-in-out infinite 0.6s; }

@keyframes wisp-rise {
  0%   { opacity: 0;    transform: translate(0, 6px); }
  40%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(2px, -14px); }
}

.genie-status {
  margin: -6px auto 14px;
  text-align: center;
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 0.3px;
}
.genie-status::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

/* --- form --- */
label {
  display: block;
  text-align: left;
  margin: 18px 0 7px;
  font-size: 13px;
  color: var(--muted);
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: #5d637f; }

textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.45;
}

/* the glowing title field — was #item */
#title {
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 0 22px rgba(212, 175, 55, 0.35);
}

button {
  width: 100%;
  margin-top: 28px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: #1a1500;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
button:hover { filter: brightness(1.06); box-shadow: 0 0 24px rgba(212, 175, 55, 0.4); }
button:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

#result { margin-top: 20px; font-size: 14px; min-height: 20px; }
.ok  { color: var(--gold-soft); }
.err { color: var(--err); }

/* ---- image stage: drop-zone, sketch, preview ---- */

.drop-zone {
  position: relative;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 28px 18px;
  background: var(--field);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.drop-zone:hover, .drop-zone:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.drop-zone.dragover {
  border-color: var(--gold-soft);
  border-style: solid;
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
}
.drop-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.drop-prompt strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.drop-prompt .muted { color: var(--muted); font-size: 13px; }
.drop-prompt .small { font-size: 11px; opacity: 0.75; }

.image-actions {
  text-align: center;
  margin-top: 10px;
}

button.link {
  width: auto;
  margin: 0;
  padding: 0 2px;
  background: none;
  border: none;
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.35);
  cursor: pointer;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: none;
}
button.link:hover { filter: brightness(1.15); box-shadow: none; }

/* ---- sketch ---- */
.sketch-pane {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  background: var(--field);
}
#sketch-canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border-radius: 10px;
  touch-action: none; /* keep mobile from scrolling while drawing */
  cursor: crosshair;
}
.sketch-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.tool-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.tool-label input[type="range"] {
  width: 110px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* ---- uploaded / sketched preview ---- */
.image-preview {
  margin-top: 4px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  background: var(--field);
  text-align: center;
}
.image-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 8px;
}

/* ---- market scrub: verdict + comp listings ---- */
.market { margin-top: 18px; text-align: left; }

.verdict {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid;
}
.verdict .muted { color: var(--muted); }
.verdict .small { font-size: 11px; }

.verdict-easy {
  background: rgba(102, 200, 130, 0.08);
  border-color: rgba(102, 200, 130, 0.45);
  color: #b5e8c5;
}
.verdict-realistic {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
}
.verdict-tight {
  background: rgba(232, 160, 70, 0.10);
  border-color: rgba(232, 160, 70, 0.50);
  color: #f3c684;
}
.verdict-unrealistic {
  background: rgba(255, 100, 100, 0.10);
  border-color: rgba(255, 100, 100, 0.45);
  color: #ffb3b3;
}
.verdict-unknown {
  background: rgba(154, 160, 192, 0.06);
  border-color: rgba(154, 160, 192, 0.30);
  color: var(--muted);
}

/* ---- market intel summary (no source links — keeps the service the service) ---- */
.intel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  background: var(--field);
}
.intel-head {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.intel-label {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.intel-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.intel-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

/* ---- clarifier (follow-up questions on thin scrubs) ---- */
.clarify {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.04);
}
.clarify-head {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.clarify-body {
  display: grid;
  gap: 10px;
}
.clarify-label {
  margin: 6px 0 4px;
  font-size: 12px;
  color: var(--muted);
}
.clarify-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: var(--field);
  color: var(--text);
  font-size: 14px;
}
.clarify-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.clarify-go {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: #1a1500;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.clarify-go:disabled { opacity: 0.6; cursor: default; }
.clarify-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
}

/* ---- form: inline label-helper text + opt-in row ---- */
label .muted.small {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  font-size: 13px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  background: var(--field);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

/* ---- email preview panel ---- */
.email-preview {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 14px;
  background: var(--field);
  text-align: left;
}
.email-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.email-tag {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.email-meta {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 10px 0;
  margin-bottom: 10px;
}
.email-meta > div { margin: 2px 0; }
.email-label {
  display: inline-block;
  width: 60px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 10px;
}
.email-val { color: var(--text); }

.email-text {
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.55;
}
.email-frame {
  width: 100%;
  min-height: 480px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  background: #090c1c;
}

/* ---- reveal mode ("your wish has been granted") ----
   On submit success, the form folds away, the lamp throws thicker smoke,
   and the granted banner fades up out of thin air. The result panels
   appear below it after a beat. */
body.granted-mode #wish-form,
body.granted-mode #genie-status {
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  margin: 0;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin 0.22s ease;
}
body.granted-mode #page-h1,
body.granted-mode .lamp {
  /* Keep the lamp + brand, drop the form/tagline */
}
body.granted-mode .lamp {
  animation: float 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 36px rgba(240, 199, 94, 0.9));
}
body.granted-mode .lamp .wisp-base,
body.granted-mode .lamp .wisp-a,
body.granted-mode .lamp .wisp-b {
  animation-duration: 2.4s;
}
body.granted-mode .lamp .wisp-base { animation: wisp-rise 2.4s ease-in-out infinite; }
body.granted-mode .lamp .wisp-a    { animation: wisp-rise 2.9s ease-in-out infinite 0.4s; }
body.granted-mode .lamp .wisp-b    { animation: wisp-rise 2.6s ease-in-out infinite 0.8s; }

.granted {
  margin: 4px auto 18px;
  text-align: center;
  pointer-events: none;
}
.granted-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(240, 199, 94, 0.65));
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  animation: granted-in 0.7s ease-out 0.1s forwards;
}
@keyframes granted-in {
  0%   { opacity: 0; transform: translateY(10px) scale(0.94); filter: blur(4px) drop-shadow(0 0 0 rgba(240,199,94,0)); }
  55%  { opacity: 1; filter: blur(0) drop-shadow(0 0 24px rgba(240,199,94,0.9)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 18px rgba(240,199,94,0.65)); }
}

body.granted-mode #result {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.make-another {
  margin-top: 28px;
  width: auto;
  padding: 11px 22px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-soft);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.make-another:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}

/* ---- modal (sign in / sign up) ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 28, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}
.modal-card {
  width: min(100%, 380px);
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 16px;
  padding: 18px 18px 14px;
  text-align: left;
}
.modal-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  padding-bottom: 8px;
}
.modal-tab {
  width: auto;
  margin: 0;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: none;
  letter-spacing: 0.2px;
}
.modal-tab.is-active { color: var(--gold-soft); background: rgba(212, 175, 55, 0.10); }
.modal-close {
  margin-left: auto;
  width: auto;
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.modal-form label {
  text-transform: none;
  letter-spacing: 0;
}
.modal-form input { margin-bottom: 2px; }
.modal-go {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: #1a1500;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.modal-error {
  margin-top: 10px;
  font-size: 12px;
  color: var(--err);
  min-height: 14px;
}

/* ---- My wishes view ---- */
.mine-card {
  width: min(96vw, 560px);
  text-align: left;
}
.mine-card h1 {
  text-align: center;
  margin: 0 0 20px;
  font-size: 26px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mine-list { display: grid; gap: 12px; }
.mine-row {
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  background: var(--card);
}
.mine-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.mine-row-title { font-size: 15px; font-weight: 600; color: var(--text); }
.mine-row-desc { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
.mine-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.mine-row-verdict {
  margin-top: 8px;
  font-size: 12px;
  font-style: italic;
  color: var(--gold-soft);
}

.mine-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.status-pending     { color: #f3c684; border-color: rgba(232, 160, 70, 0.5); background: rgba(232, 160, 70, 0.08); }
.status-hunting     { color: #b5e8c5; border-color: rgba(102, 200, 130, 0.5); background: rgba(102, 200, 130, 0.08); }
.status-found       { color: var(--gold-soft); border-color: rgba(212, 175, 55, 0.5); background: rgba(212, 175, 55, 0.12); }
.status-purchased   { color: #b8d6ff; border-color: rgba(120, 170, 240, 0.5); background: rgba(120, 170, 240, 0.10); }
.status-closed      { color: var(--muted); border-color: rgba(154, 160, 192, 0.4); background: rgba(154, 160, 192, 0.06); }
.status-cancelled   { color: var(--err); border-color: rgba(255, 100, 100, 0.45); background: rgba(255, 100, 100, 0.06); }

/* ---- email verification panel (first-time customers) ---- */
.verify-panel {
  margin-top: 20px;
  padding: 18px 16px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.05);
  text-align: left;
}
.verify-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.verify-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.verify-email { color: var(--text); font-weight: 600; }
.verify-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.verify-input {
  flex: 1;
  width: auto;
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 12px 14px;
}
.verify-go {
  width: auto;
  margin: 0;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: #1a1500;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
}
.verify-go:disabled { opacity: 0.6; cursor: default; }
.verify-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.verify-status {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  flex: 1;
  min-height: 16px;
}
.verify-status.err { color: var(--err); }
.verify-done {
  font-size: 14px;
  font-weight: 600;
  color: #b5e8c5;
  text-align: center;
  padding: 4px 0;
}

/* ---- site footer ---- */
.site-footer {
  width: min(92vw, 520px);
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
  color: var(--muted);
}
.footer-trust {
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.footer-links {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s ease;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-dot { opacity: 0.5; }
.footer-fine {
  margin-top: 10px;
  font-size: 11px;
  color: #5d637f;
}
/* Footer fades with the form during the reveal so it doesn't distract. */
body.granted-mode .site-footer { opacity: 0.35; transition: opacity 0.3s ease; }
