:root {
  --bg: #06070a;
  --ink: #f7f7fb;
  --muted: #989eaa;
  --card: #0b0d12;
  --accent: #9f62ff;
  --accent-strong: #8a4dff;
  --line: rgba(255, 255, 255, 0.1);
  --button-dark: #11141c;
  --ok: #26e69a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 0%, rgba(159, 98, 255, 0.22) 0%, transparent 28%),
    radial-gradient(circle at 100% 15%, rgba(38, 230, 154, 0.14) 0%, transparent 34%),
    linear-gradient(180deg, #07090f 0%, #06070a 68%),
    var(--bg);
}

html {
  -webkit-text-size-adjust: 100%;
}

a,
button,
input,
textarea,
label {
  touch-action: manipulation;
}

.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 14px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d1118;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9f62ff, #7f44de);
  box-shadow: 0 0 0 5px rgba(159, 98, 255, 0.2);
}

.topbar-links {
  display: inline-flex;
  gap: 8px;
}

.topbar-links a {
  text-decoration: none;
  font-weight: 700;
  color: #ced3df;
  font-size: 0.9rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: #161c28;
}

.top {
  margin-bottom: 12px;
}

.top h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.intro {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-strip {
  border: 1px solid #cde5ee;
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(180deg, #0d121b, #0a0e16);
}

.hero-title {
  margin: 0 0 10px;
  font-weight: 800;
  color: #f2f4fc;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #acb3c2;
  font-size: 0.93rem;
}

.trust-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 230, 154, 0.16);
  color: #26e69a;
  font-size: 0.8rem;
  font-weight: 800;
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-track {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: #181d27;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent), #26e69a);
  transition: width 0.25s ease;
}

.progress-text {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-dots {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.dot {
  height: 5px;
  border-radius: 999px;
  background: #202633;
}

.dot.active {
  background: linear-gradient(90deg, var(--accent), #26e69a);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.step {
  display: none;
  animation: reveal 0.22s ease;
}

.step.active {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  margin: 0 0 14px;
  font-size: 1.38rem;
  letter-spacing: -0.01em;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.93rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
}

.check-row input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #2a3140;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #0f141f;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(159, 98, 255, 0.28);
  border-color: #9f62ff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.address-search-wrap {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #131820;
  border: 1px solid #2a3140;
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}

.address-suggestions.hidden {
  display: none;
}

.address-suggestions li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s;
}

.address-suggestions li:hover,
.address-suggestions li.active {
  background: rgba(159, 98, 255, 0.15);
  color: #c49aff;
}

.upload-grid {
  display: grid;
  gap: 10px;
}

.upload-grid label {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #0f141f;
}

.example-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
}

.example-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid #2a3140;
  margin-top: 8px;
  margin-bottom: 6px;
  background: #0f141f;
}

.example-note {
  display: inline-block;
  font-size: 0.8rem;
  color: #b8bfd0;
  margin-bottom: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 5, 9, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox-image {
  max-width: min(96vw, 1100px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #111826;
  color: #f7f7fb;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.hint {
  margin: 0 0 12px;
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px;
  font: inherit;
  font-weight: 700;
  background: var(--button-dark);
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.btn.ghost {
  background: #171d2a;
  color: #e2e7f4;
}

.btn:active {
  transform: none;
}

.hidden {
  display: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status {
  min-height: 20px;
  font-size: 0.93rem;
  font-weight: 700;
}

.status.ok {
  color: var(--ok);
}

.status.err {
  color: #b4421b;
}

.success-card {
  margin-top: 16px;
  border: 1px solid rgba(38, 230, 154, 0.28);
  background: linear-gradient(180deg, #0d1514, #0a1112);
}

.success-badge {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ok);
  font-weight: 800;
}

.success-card h2 {
  margin-bottom: 8px;
}

.success-ref {
  font-weight: 700;
  color: #b4bdd0;
  margin: 0 0 14px;
}

@media (min-width: 680px) {
  .app-shell {
    padding: 24px 18px 40px;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .upload-grid {
    grid-template-columns: 1fr 1fr;
  }

  .example-image {
    height: 220px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 8px 10px;
  }

  .topbar-links a {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  .example-image {
    height: 260px;
  }
}

/* Variant full-width logo (replaces topbar for non-doorsecure) */
.variant-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 12px;
}
.variant-logo-wrap img {
  height: 80px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
