/* Enroll creator page — matches landing page palette (landing.css) */
:root {
  --ec-wine: #A80F22;
  --ec-wine-hi: #E01B36;
  --ec-wine-deep: #5C0512;
  --ec-ink: #080506;
  --ec-ink-2: #120A0C;
  --ec-ink-3: #1A1012;
  --ec-ivory: #FFF6F0;
  --ec-smoke: #B3A0A3;
  --ec-line: rgba(255, 246, 240, 0.16);
}

.ec, .ec * { box-sizing: border-box; }
/* No site navbar on this page, so no top offset */
.ec { --ec-nav: 0px; padding-top: var(--ec-nav); }
body:has(.ec) { background: var(--ec-ink); }
.ec {
  background: var(--ec-ink);
  color: var(--ec-ivory);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.ec a { color: var(--ec-wine-hi); }
.ec ::selection { background: var(--ec-wine); color: var(--ec-ivory); }

.ec-shell { display: flex; flex-direction: column; min-height: calc(100vh - var(--ec-nav)); }

/* ---------- Top bar + story-style progress track ---------- */
.ec-top {
  position: sticky; top: var(--ec-nav); z-index: 10;
  padding: 14px 32px;
  background: rgba(8, 5, 6, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ec-line);
}
.ec-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; max-width: 1140px; margin: 0 auto; } /* same width as Bootstrap .container */
.ec-logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ec-ivory) !important; text-decoration: none; white-space: nowrap;
}
.ec-logo img { display: block; height: 40px; width: auto; }

.ec-top-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ec-top-login { margin-right: 8px; font-size: .82rem; color: var(--ec-smoke); white-space: nowrap; }
.ec-top-login a {
  margin-left: 4px; color: var(--ec-ivory) !important; text-decoration: none;
  font-weight: 900; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 2px solid var(--ec-wine-hi); padding-bottom: 2px;
}
.ec-top-login a:hover { color: var(--ec-wine-hi) !important; }
.ec-account:not([hidden]) ~ .ec-top-login { display: none; }
.ec-top-icon {
  flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--ec-line); color: var(--ec-ivory) !important; text-decoration: none;
  font-size: 1rem; transition: border-color .2s, background .2s, transform .16s, box-shadow .2s;
}
.ec-top-icon:hover {
  border-color: var(--ec-wine-hi); background: var(--ec-wine);
  transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ec-wine-deep);
}
.ec-logo span {
  padding: 4px 8px; border: 2px solid var(--ec-wine);
  color: var(--ec-wine-hi);
  font-size: .62rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
}

/* Progress sits in the body, above the step content */
.ec-progress { width: 100%; max-width: 640px; margin: 0 auto 48px; }
.ec-track { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ec-track li { flex: 1; min-width: 0; }
.ec-track button {
  display: block; width: 100%; padding: 0; background: none; border: 0;
  color: var(--ec-smoke); text-align: left; cursor: default; font: inherit;
}
.ec-track i {
  position: relative; display: block; height: 6px; overflow: hidden;
  background: var(--ec-line);
}
.ec-track i::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: var(--ec-wine-hi); transition: width .5s ease;
}
.ec-track span {
  display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s;
}
/* done: solid, clickable */
.ec-track .is-done i::after { width: 100%; background: var(--ec-wine); }
.ec-track .is-done button { color: var(--ec-ivory); }
.ec-track button:focus-visible { outline: 2px solid var(--ec-wine-hi); outline-offset: 4px; }
/* current: half-filled with a moving shimmer, like a story in progress */
.ec-track .is-current i::after {
  width: 50%;
  background: linear-gradient(90deg, var(--ec-wine) 0%, var(--ec-wine-hi) 70%, #ff5a6e 100%);
  box-shadow: 0 0 12px rgba(224, 27, 54, .6);
}
.ec-track .is-current i::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 240, .35), transparent);
  animation: ecShimmer 2.2s ease-in-out infinite;
}
@keyframes ecShimmer { to { left: 50%; } }
.ec-track .is-current span { color: var(--ec-ivory); }
.ec-progress.is-complete .ec-track i::after { width: 100%; background: var(--ec-wine-hi); }

.ec-track-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 14px 0 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ec-smoke);
}
.ec-track-meta b { color: var(--ec-wine-hi); font-weight: 900; }
.ec-track-meta strong { color: var(--ec-ivory); font-weight: 900; }
.ec-track-next { text-align: right; }

.ec-trust { margin: 0; padding: 0 16px 28px; text-align: center; font-size: .8rem; color: var(--ec-smoke); }

/* ---------- Main ---------- */
.ec-main { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 48px 24px 56px; }
.ec-panel { width: 100%; max-width: 520px; animation: ecIn .35s ease; }
@keyframes ecIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ec-kicker { font-size: .72rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-wine-hi); }
.ec-panel h2 { margin: 10px 0 10px; font-size: 2.2rem; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.ec-lede { margin: 0 0 32px; color: var(--ec-smoke); line-height: 1.5; }

.ec-label {
  display: flex; justify-content: space-between; margin: 20px 0 8px;
  font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
}
.ec-label small { color: var(--ec-smoke); letter-spacing: 0; font-weight: 500; }
.ec-input {
  width: 100%; padding: 14px 16px;
  background: var(--ec-ink-3); color: var(--ec-ivory);
  border: 2px solid var(--ec-line); border-radius: 0;
  font: 500 1rem "Inter", sans-serif; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ec-input::placeholder { color: rgba(179, 160, 163, .55); }
.ec-input:focus { border-color: var(--ec-wine-hi); box-shadow: 4px 4px 0 var(--ec-wine-deep); }
textarea.ec-input { resize: vertical; }
.ec-row { display: flex; gap: 10px; }
.ec-row .ec-input { width: 80px; text-align: center; }
.ec-row .ec-grow { flex: 1; }

.ec-prefix { display: flex; }
.ec-prefix span {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--ec-ink-2); border: 2px solid var(--ec-line); border-right: 0;
  color: var(--ec-smoke); font-size: .9rem; white-space: nowrap;
}

.ec-userhint { margin: 8px 0 0; min-height: 1.2em; font-size: .85rem; font-weight: 700; color: var(--ec-smoke); }
.ec-userhint.is-ok { color: #3ecf8e; }
.ec-userhint.is-bad { color: var(--ec-wine-hi); }

.ec-error { display: none; margin: 10px 0 0; color: var(--ec-wine-hi); font-size: .85rem; font-weight: 700; }
.ec-error.is-shown { display: block; }

/* ---------- Account bar ---------- */
.ec-account {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 4px 4px 4px 12px;
  background: var(--ec-ink-2); border: 2px solid var(--ec-line);
  font-size: .82rem;
}
.ec-account[hidden] { display: none; }
.ec-account > i { color: var(--ec-wine-hi); font-size: 1.1rem; }
.ec-account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ec-account-logout {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 2px solid var(--ec-line);
  color: var(--ec-ivory) !important; text-decoration: none;
  font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.ec-account-logout:hover { border-color: var(--ec-wine-hi); background: var(--ec-wine); }

/* ---------- Buttons ---------- */
.ec-btn, .ec-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  margin-top: 28px; padding: 1.05rem 2rem;
  font: 900 .78rem "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase;
  border: 2px solid var(--ec-wine); border-radius: 0; cursor: pointer; text-decoration: none;
  background: var(--ec-wine); color: var(--ec-ivory) !important;
  transition: transform .16s ease, background .2s, border-color .2s, box-shadow .2s;
}
.ec-btn:hover, .ec-btn:focus-visible {
  background: var(--ec-wine-hi); border-color: var(--ec-wine-hi);
  transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ec-wine-deep);
}
.ec-btn-ghost { background: transparent; border-color: var(--ec-line); }
.ec-btn-ghost:hover { border-color: var(--ec-ivory); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 rgba(255, 246, 240, .18); }
.ec-nav { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Email step ---------- */
.ec-hl { color: var(--ec-wine-hi); }
.ec-card {
  position: relative; padding: 28px;
  background: var(--ec-ink-2); border: 2px solid var(--ec-line);
  box-shadow: 8px 8px 0 var(--ec-wine-deep);
}
.ec-card::before {
  content: ""; position: absolute; top: -2px; left: -2px; width: 64px; height: 4px;
  background: var(--ec-wine-hi);
}
.ec-card .ec-label:first-child { margin-top: 0; }
.ec-field { position: relative; }
.ec-field > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ec-smoke); font-size: 1.05rem; pointer-events: none; transition: color .2s;
}
.ec-field .ec-input { padding-left: 46px; }
.ec-field:focus-within > i { color: var(--ec-wine-hi); }
.ec-btn-block { width: 100%; margin-top: 20px; }
.ec-btn.is-busy { opacity: .6; cursor: wait; pointer-events: none; }
.ec-fine { margin: 14px 0 0; font-size: .8rem; color: var(--ec-smoke); text-align: center; }
/* reCAPTCHA: notice text is shown in the card, so the floating badge can be hidden (allowed by Google's terms) */
.ec-captcha-note { margin-top: 6px; font-size: .72rem; opacity: .8; }
body:has(.ec) .grecaptcha-badge { visibility: hidden; }

.ec-otp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ec-otp-head .ec-sent { margin: 0; line-height: 1.5; }
.ec-otp-icon {
  flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--ec-wine); font-size: 1.3rem; box-shadow: 4px 4px 0 var(--ec-wine-deep);
}

.ec-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 36px 0 0; padding: 0; }
.ec-perks li { padding: 16px 14px; border: 2px solid var(--ec-line); }
.ec-perks i { display: block; margin-bottom: 10px; color: var(--ec-wine-hi); font-size: 1.3rem; }
.ec-perks strong { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ec-perks small { display: block; margin-top: 4px; color: var(--ec-smoke); font-size: .8rem; line-height: 1.4; }
.ec-legal { margin: 20px 0 0; font-size: .78rem; color: var(--ec-smoke); text-align: center; }

/* ---------- OTP ---------- */
.ec-sent { color: var(--ec-smoke); margin: 0 0 20px; }
.ec-sent strong { color: var(--ec-ivory); }
.ec-otp { display: flex; gap: 10px; }
.ec-otp input {
  width: 100%; max-width: 64px; aspect-ratio: 1; text-align: center;
  background: var(--ec-ink-3); color: var(--ec-ivory);
  border: 2px solid var(--ec-line); border-radius: 0;
  font: 900 1.6rem "Inter", sans-serif; outline: none;
  transition: border-color .2s, box-shadow .2s, transform .16s;
}
.ec-otp input:focus { border-color: var(--ec-wine-hi); box-shadow: 4px 4px 0 var(--ec-wine-deep); transform: translate(-2px, -2px); }
.ec-otp input.is-filled { border-color: var(--ec-wine); }
.ec-resend { margin: 18px 0 0; font-size: .85rem; color: var(--ec-smoke); }

/* ---------- Checkbox ---------- */
.ec-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; color: var(--ec-smoke); font-size: .9rem; line-height: 1.45; cursor: pointer; }
.ec-check input { position: absolute; opacity: 0; }
.ec-check span { flex: 0 0 20px; height: 20px; border: 2px solid var(--ec-line); display: grid; place-items: center; }
.ec-check input:checked + span { background: var(--ec-wine); border-color: var(--ec-wine); }
.ec-check input:checked + span::after { content: "\2713"; font-weight: 900; color: var(--ec-ivory); font-size: 12px; }
.ec-check input:focus-visible + span { box-shadow: 3px 3px 0 var(--ec-wine-deep); }

/* ---------- Age gate ---------- */
.ec-gate { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ec-line); }
.ec-gate li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 16px; }
.ec-gate li + li { border-top: 2px solid var(--ec-line); }
.ec-gate i { font-size: 1.3rem; color: var(--ec-wine-hi); }
.ec-gate strong { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.ec-gate small { color: var(--ec-smoke); font-size: .88rem; }

/* Waiting for a Didit result */
.ec-checking { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px; border: 2px solid var(--ec-wine); background: rgba(168, 15, 34, .1); }
.ec-checking[hidden] { display: none; }
.ec-checking strong { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ec-checking small { color: var(--ec-smoke); font-size: .85rem; }
.ec-spin { flex: 0 0 22px; width: 22px; height: 22px; border: 3px solid var(--ec-line); border-top-color: var(--ec-wine-hi); border-radius: 50%; animation: ecSpin .8s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }
.ec-attempts { align-self: center; color: var(--ec-smoke); font-size: .8rem; }

/* ---------- Socials ---------- */
.ec-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ec-social {
  display: flex; align-items: center; gap: 12px; padding: 18px 16px;
  background: var(--ec-ink-3); color: var(--ec-ivory);
  border: 2px solid var(--ec-line); border-radius: 0; cursor: pointer;
  font: 700 .95rem "Inter", sans-serif; text-align: left;
  transition: transform .16s, border-color .2s, box-shadow .2s, background .2s;
}
.ec-social i { font-size: 1.3rem; }
.ec-social span { flex: 1; }
.ec-social em { font-style: normal; font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-smoke); }
.ec-social:hover { border-color: var(--ec-ivory); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(255, 246, 240, .18); }
.ec-social.is-on { border-color: var(--ec-wine); background: rgba(168, 15, 34, .15); }
.ec-social.is-on em { color: var(--ec-wine-hi); }
.ec-social:disabled,
.ec-social[aria-disabled="true"]:not(.is-on) { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ec-social:disabled:hover,
.ec-social[aria-disabled="true"]:not(.is-on):hover { border-color: inherit; transform: none; box-shadow: none; }
.ec-social.is-on { cursor: default; }

/* ---------- Avatar ---------- */
.ec-avatar {
  position: relative; display: grid; place-items: center;
  width: 96px; height: 96px; overflow: hidden; cursor: pointer;
  background: var(--ec-ink-3); border: 2px dashed var(--ec-line);
  font-size: 1.6rem; color: var(--ec-smoke);
  transition: border-color .2s;
}
.ec-avatar:hover { border-color: var(--ec-wine-hi); color: var(--ec-ivory); }
.ec-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cover + profile photo (profile header) ---------- */
.ec-media { position: relative; margin-bottom: 56px; }
.ec-cover {
  position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 1; width: 100%;
  background: var(--ec-ink-3); border: 2px dashed var(--ec-line);
  transition: border-color .2s;
}
.ec-cover:hover { border-color: var(--ec-wine-hi); }
.ec-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-cover-hint { display: grid; justify-items: center; gap: 4px; padding: 0 16px 0 140px; text-align: center; color: var(--ec-smoke); } /* clear of the avatar */
.ec-cover-hint i { font-size: 1.6rem; color: var(--ec-wine-hi); }
.ec-cover-hint strong { color: var(--ec-ivory); font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.ec-cover-hint small { font-size: .78rem; }
.ec-media-edit {
  position: absolute; right: 10px; bottom: 10px; display: none; align-items: center; gap: 6px; padding: 6px 10px;
  background: rgba(8, 5, 6, .8); border: 2px solid var(--ec-line); color: var(--ec-ivory);
  font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
/* Upload progress (like the profile page): bar along the cover, % over the avatar */
.ec-cover-progress { position: absolute; left: 0; bottom: 0; z-index: 2; display: none; height: 4px; width: 0; background: var(--ec-wine-hi); transition: width .2s; }
.ec-avatar-progress {
  position: absolute; inset: 0; z-index: 2; display: none; place-items: center;
  background: rgba(8, 5, 6, .75); color: var(--ec-ivory); font-size: .9rem; font-weight: 900;
}
.ec-media-edit.is-busy { pointer-events: none; opacity: .8; }
.ec-cover.has-img { border-style: solid; }
.ec-cover.has-img .ec-cover-hint { display: none; }
.ec-cover.has-img .ec-media-edit { display: inline-flex; }

/* profile photo overlaps the bottom-left of the cover */
.ec-media .ec-avatar {
  position: absolute; left: 20px; bottom: -48px; z-index: 1;
  width: 104px; height: 104px; background: var(--ec-ink-2);
  border: 3px solid var(--ec-ink); outline: 2px dashed var(--ec-line); outline-offset: -5px;
  box-shadow: 5px 5px 0 var(--ec-wine-deep);
}
.ec-media .ec-avatar:hover { outline-color: var(--ec-wine-hi); }
.ec-media .ec-avatar.has-img { outline: none; border-color: var(--ec-ink); }
.ec-media .ec-avatar.has-img > i { display: none; }
.ec-media-note { margin: 0 0 4px 140px; color: var(--ec-smoke); font-size: .78rem; }
@media (max-width: 420px) {
  .ec-media .ec-avatar { width: 84px; height: 84px; bottom: -40px; left: 14px; }
  .ec-media-note { margin-left: 108px; }
  .ec-cover-hint { padding: 0 10px 0 104px; }
  .ec-cover-hint small { display: none; }
}

/* ---------- Identity ---------- */
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-chip {
  padding: 10px 16px; background: transparent; color: var(--ec-smoke);
  border: 2px solid var(--ec-line); border-radius: 0; cursor: pointer;
  font: 900 .7rem "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.ec-chip.is-active { background: var(--ec-wine); border-color: var(--ec-wine); color: var(--ec-ivory); }
.ec-uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.ec-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 140px; padding: 16px 10px; text-align: center; cursor: pointer;
  background: var(--ec-ink-3); border: 2px dashed var(--ec-line);
  transition: border-color .2s, background .2s;
}
.ec-drop i { font-size: 1.6rem; color: var(--ec-smoke); }
.ec-drop strong { font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ec-drop small { font-size: .75rem; color: var(--ec-smoke); word-break: break-all; }
.ec-drop:hover { border-color: var(--ec-wine-hi); }
.ec-drop.is-on { border-style: solid; border-color: var(--ec-wine); background: rgba(168, 15, 34, .15); }
.ec-drop.is-on i { color: var(--ec-wine-hi); }

/* ---------- Identity states ---------- */
.ec-status { text-align: center; }
.ec-status .ec-lede { margin-left: auto; margin-right: auto; }
.ec-stamp-wait { animation: ecPulse 2s ease-in-out infinite; }
.ec-stamp-reject { background: var(--ec-ink-3) !important; border: 2px solid var(--ec-wine-hi); color: var(--ec-wine-hi); }
.ec-stamp-ok { background: #2f9e5b !important; box-shadow: 8px 8px 0 #17502e !important; }
@keyframes ecPulse { 50% { box-shadow: 4px 4px 0 var(--ec-wine-deep); transform: translate(2px, 2px); } }

/* Under review card */
.ec-rv { padding: 24px; }
.ec-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ec-rv-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: rgba(224, 27, 54, .12); border: 2px solid var(--ec-wine);
  font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
}
.ec-rv-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ec-wine-hi); animation: ecLive 1.6s ease-in-out infinite; }
@keyframes ecLive { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 27, 54, .6); } 50% { box-shadow: 0 0 0 6px rgba(224, 27, 54, 0); } }
.ec-rv-eta { font-size: .82rem; color: var(--ec-smoke); }

.ec-rv-track { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 28px 0 24px; padding: 0; }
.ec-rv-track li { position: relative; text-align: center; color: var(--ec-smoke); }
.ec-rv-track li:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--ec-line);
}
.ec-rv-track li.is-done::after { background: var(--ec-wine); }
.ec-rv-track span {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px;
  border: 2px solid var(--ec-line); background: var(--ec-ink-3); font-size: 1rem;
}
.ec-rv-track strong { display: block; font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ec-rv-track small { display: block; margin-top: 4px; font-size: .78rem; }
.ec-rv-track .is-done, .ec-rv-track .is-current { color: var(--ec-ivory); }
.ec-rv-track .is-done span { background: var(--ec-wine); border-color: var(--ec-wine); }
.ec-rv-track .is-current span { border-color: var(--ec-wine-hi); color: var(--ec-wine-hi); box-shadow: 4px 4px 0 var(--ec-wine-deep); }

.ec-rv-details { margin: 0; border-top: 2px solid var(--ec-line); }
.ec-rv-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ec-line); }
.ec-rv-details div:last-child { border-bottom: 0; padding-bottom: 0; }
.ec-rv-details dt { font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-smoke); }
.ec-rv-details dd { margin: 0; font-size: .9rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ec-timeline { list-style: none; display: inline-flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 24px; text-align: left; border: 2px solid var(--ec-line); }
.ec-timeline li { display: flex; align-items: center; gap: 12px; color: var(--ec-smoke); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ec-timeline span { width: 14px; height: 14px; border: 2px solid var(--ec-line); }
.ec-timeline .is-done { color: var(--ec-ivory); }
.ec-timeline .is-done span { background: var(--ec-wine); border-color: var(--ec-wine); }
.ec-timeline .is-current { color: var(--ec-ivory); }
.ec-timeline .is-current span { border-color: var(--ec-wine-hi); animation: ecBlink 1.2s steps(2) infinite; }
@keyframes ecBlink { 50% { background: var(--ec-wine-hi); } }

.ec-alert { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; padding: 16px; text-align: left; border: 2px solid; }
.ec-alert i { font-size: 1.3rem; }
.ec-alert strong { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ec-alert p { margin: 6px 0 0; color: var(--ec-ivory); line-height: 1.5; font-size: .92rem; }
.ec-alert-reject { border-color: var(--ec-wine-hi); background: rgba(224, 27, 54, .1); }
.ec-alert-reject i { color: var(--ec-wine-hi); }
.ec-alert-ok { border-color: #2f9e5b; background: rgba(47, 158, 91, .1); }
.ec-alert-ok i { color: #3ccf75; }
.ec-alert-wait { border-color: var(--ec-line); background: var(--ec-ink-2); }
.ec-alert-wait i { color: var(--ec-smoke); }
[data-age-state] .ec-alert, [data-id-state] .ec-alert { margin: 24px 0 0; }

/* ---------- Age result cards (under review / rejected) ---------- */
.ec-av {
  --av: var(--ec-wine-hi);
  position: relative; margin-top: 8px; padding: 32px 28px 26px; text-align: center;
  background: var(--ec-ink-2); border: 2px solid var(--ec-line);
  box-shadow: 8px 8px 0 var(--ec-wine-deep);
}
.ec-av::before { content: ""; position: absolute; top: -2px; left: -2px; right: -2px; height: 4px; background: var(--av); }
.ec-av h3 { margin: 14px 0 8px; font-size: 1.35rem; font-weight: 900; line-height: 1.15; text-transform: uppercase; }
.ec-av > p { max-width: 400px; margin: 0 auto; color: var(--ec-smoke); line-height: 1.5; }

.ec-av-emblem {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px;
  background: var(--ec-ink-3); border: 2px solid var(--av); color: var(--av); font-size: 2rem;
}
.ec-av-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border: 2px solid var(--av); color: var(--ec-ivory);
  font-size: .64rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
}
.ec-av-badge > i { width: 8px; height: 8px; border-radius: 50%; background: var(--av); }

/* Under review: amber accent, scanning ring + live dot */
.ec-av-review { --av: var(--ec-wine-hi); box-shadow: 8px 8px 0 var(--ec-wine-deep); }
.ec-av-ring { position: absolute; inset: -9px; border: 2px dashed rgba(224, 27, 54, .5); animation: ecAvSpin 9s linear infinite; }
.ec-av-review .ec-av-emblem::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; top: 10px;
  background: var(--av); box-shadow: 0 0 10px var(--av); animation: ecAvScan 2.2s ease-in-out infinite alternate;
}
.ec-av-review .ec-av-badge > i { animation: ecAvLive 1.6s ease-in-out infinite; }
@keyframes ecAvSpin { to { transform: rotate(360deg); } }
@keyframes ecAvScan { to { top: 70px; } }
@keyframes ecAvLive { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 27, 54, .7); } 50% { box-shadow: 0 0 0 6px rgba(224, 27, 54, 0); } }

.ec-av-why {
  display: flex; gap: 12px; align-items: baseline; max-width: 420px; margin: 18px auto 0; padding: 12px 14px;
  background: var(--ec-ink-3); border: 2px solid var(--ec-line); border-left: 4px solid var(--av); text-align: left;
}
.ec-av-why[hidden] { display: none; }
.ec-av-why strong { flex: 0 0 auto; color: var(--av); font-size: .64rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.ec-av-why span { color: var(--ec-ivory); font-size: .9rem; line-height: 1.45; }

.ec-av-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 26px 0 22px; padding: 0; }
.ec-av-steps li { position: relative; color: var(--ec-smoke); font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ec-av-steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--ec-line); }
.ec-av-steps li.is-done::after { background: var(--av); }
.ec-av-steps span { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 8px; border: 2px solid var(--ec-line); background: var(--ec-ink-3); font-size: .9rem; }
.ec-av-steps .is-done, .ec-av-steps .is-current { color: var(--ec-ivory); }
.ec-av-steps .is-done span { background: var(--av); border-color: var(--av); color: var(--ec-ivory); }
.ec-av-steps .is-current span { border-color: var(--av); color: var(--av); box-shadow: 3px 3px 0 var(--ec-wine-deep); }

.ec-av-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 2px solid var(--ec-line); color: var(--ec-smoke); font-size: .8rem; }
.ec-av-foot i { color: var(--av); }

/* Rejected: wine accent, attempt meter, tips; locked when no attempts left */
.ec-av-reject .ec-av-emblem { background: rgba(224, 27, 54, .12); font-size: 2.2rem; animation: ecAvShake .5s ease 1; }
@keyframes ecAvShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.ec-av-meter { display: inline-flex; align-items: center; gap: 12px; margin: 20px 0 6px; padding: 8px 14px; border: 2px solid var(--ec-line); }
.ec-av-meter small { color: var(--ec-smoke); font-size: .78rem; }
.ec-av-pips { display: inline-flex; gap: 6px; }
.ec-av-pips i { width: 26px; height: 8px; background: #3ccf75; }
.ec-av-pips i.is-used { background: var(--ec-line); }

.ec-av-tips { display: grid; gap: 8px; max-width: 360px; margin: 16px auto 0; padding: 0; list-style: none; text-align: left; }
.ec-av-tips li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ec-ink-3); border-left: 3px solid var(--av); font-size: .88rem; }
.ec-av-tips i { color: var(--av); font-size: 1rem; }

.ec-av-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.ec-av-actions .ec-btn, .ec-av-actions .ec-btn-ghost { margin-top: 22px; }

.ec-av-reject.is-locked { --av: var(--ec-smoke); box-shadow: 8px 8px 0 rgba(0, 0, 0, .5); }
.ec-av-reject.is-locked .ec-av-emblem { animation: none; background: var(--ec-ink-3); }

/* ---------- Handoff (phone back from Didit) ---------- */
#ecHandoff { max-width: 480px; }
.ec-handoff { --av: var(--ec-wine-hi); }
.ec-handoff.is-review { --av: var(--ec-ivory); }
.ec-handoff.is-declined { --av: var(--ec-smoke); box-shadow: 8px 8px 0 rgba(0, 0, 0, .5); }

.ec-handoff-devices { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 20px; }
.ec-handoff-device {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--ec-ink-3); border: 2px solid var(--ec-line); color: var(--ec-ivory); font-size: 1.7rem;
}
.ec-handoff-device:first-child { border-color: var(--av); }
.ec-handoff-device b {
  position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--av); color: var(--ec-ink); font-size: .85rem; box-shadow: 3px 3px 0 var(--ec-wine-deep);
}
.ec-handoff:not(.is-review):not(.is-declined) .ec-handoff-device b { color: var(--ec-ivory); }
.ec-handoff-flow { display: inline-flex; gap: 6px; }
.ec-handoff-flow i { width: 8px; height: 8px; background: var(--av); opacity: .25; animation: ecFlow 1.2s ease-in-out infinite; }
.ec-handoff-flow i:nth-child(2) { animation-delay: .2s; }
.ec-handoff-flow i:nth-child(3) { animation-delay: .4s; }
@keyframes ecFlow { 50% { opacity: 1; transform: translateX(3px); } }

.ec-handoff-steps { display: grid; gap: 8px; max-width: 360px; margin: 22px auto 18px; padding: 0; list-style: none; text-align: left; }
.ec-handoff-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ec-ink-3); font-size: .88rem; }
.ec-handoff-steps span {
  flex: 0 0 24px; display: grid; place-items: center; height: 24px;
  border: 2px solid var(--av); color: var(--av); font-size: .72rem; font-weight: 900;
}
.ec-handoff-alt { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .ec-handoff-flow i { animation: none; opacity: .7; } }

@media (max-width: 420px) {
  .ec-av { padding: 26px 16px 20px; }
  .ec-av-actions > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-av-ring, .ec-av-review .ec-av-emblem::after, .ec-av-review .ec-av-badge > i, .ec-av-reject .ec-av-emblem { animation: none; }
}

.ec-demo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 2px dashed var(--ec-line); }
.ec-demo small { color: var(--ec-smoke); margin-right: 6px; }

/* ---------- W-9 ---------- */
.ec-grid2, .ec-grid3 { display: grid; gap: 12px; }
.ec-grid2 { grid-template-columns: 2fr 1fr; }
.ec-grid3 { grid-template-columns: 2fr 1fr 1fr; }
.ec-secret { position: relative; margin-top: 12px; }
.ec-secret .ec-input { padding-right: 52px; letter-spacing: .2em; }
.ec-secret button { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 48px; background: none; border: 0; color: var(--ec-smoke); cursor: pointer; font-size: 1.1rem; }
.ec-secret button:hover { color: var(--ec-ivory); }
.ec-cert { padding: 14px 16px; background: var(--ec-ink-2); border: 2px solid var(--ec-line); color: var(--ec-smoke); font-size: .85rem; line-height: 1.5; }
.ec-cert p { margin: 0 0 6px; }
.ec-cert ol { margin: 0; padding-left: 20px; }
.ec-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.4rem; padding-top: 10px; padding-bottom: 10px; }
.ec-note { margin: 20px 0 0; font-size: .85rem; color: var(--ec-smoke); }

/* ---------- Review ---------- */
.ec-review { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ec-line); }
.ec-review li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; }
.ec-review li + li { border-top: 2px solid var(--ec-line); }
.ec-review b { font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-smoke); }
.ec-review span { flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-review a { font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

/* ---------- Done ---------- */
.ec-done { text-align: center; }
.ec-stamp {
  display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 24px;
  background: var(--ec-wine); font-size: 2rem; box-shadow: 8px 8px 0 var(--ec-wine-deep);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .ec-top { padding: 14px 16px 12px; }
  .ec-logo img { height: 32px; }
  .ec-progress { margin-bottom: 28px; }
  .ec-card { padding: 20px; box-shadow: 5px 5px 0 var(--ec-wine-deep); }
  .ec-perks { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
  .ec-perks li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; }
  .ec-perks i { grid-row: span 2; margin: 0; }
  .ec-perks small { margin-top: 2px; }
  .ec-track { gap: 4px; }
  .ec-track i { height: 4px; }
  .ec-track span { display: none; }          /* segments only; caption below names the step */
  .ec-track-meta { margin-top: 10px; font-size: .66rem; }
  .ec-main { align-items: flex-start; padding: 32px 16px 40px; }
  .ec-account { max-width: 60%; }
  .ec-account-logout span { display: none; } /* icon-only log out */
  .ec-panel h2 { font-size: 1.7rem; }
  .ec-uploads { grid-template-columns: 1fr; }
  .ec-grid2, .ec-grid3 { grid-template-columns: 1fr; }
  .ec-drop { min-height: 96px; flex-direction: row; gap: 12px; justify-content: flex-start; text-align: left; }
  .ec-nav .ec-btn { flex: 1; }
}
@media (max-width: 420px) {
  .ec-logo span { display: none; }
  .ec-track-next { display: none; }
  .ec-top-login { display: none; }
  .ec-top-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .ec-socials { grid-template-columns: 1fr; }
  .ec-otp { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-panel, .ec-btn, .ec-btn-ghost, .ec-otp input, .ec-social { animation: none; transition: none; }
  .ec-track i::before { display: none; }
  .ec-track i::after { transition: none; }
}
