/* Laatste stap: account bevestigen en website maken */

.finish {
  max-width: 720px;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.finish-step { position: relative; animation: finish-in .45s ease both; }
.finish-step__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(201, 166, 107, .18);
}
.finish-step__icon .icon { width: 26px; height: 26px; }
.finish-step__icon--ok { background: var(--gold-grad); color: var(--espresso); }
.finish-step__lede { margin: .5rem 0 1.5rem; font-size: 1.075rem; line-height: 1.65; color: var(--ink-soft); }
.finish-step__lede strong { color: var(--ink); word-break: break-all; }

.finish-form { display: grid; gap: 1.25rem; justify-items: start; }
.finish-form > .field,
.finish-form > .name-choice,
.finish-form > .address-card,
.finish-form > .build,
.finish-form > .build-error { width: 100%; }

.finish-alert {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--danger);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}
.finish-alert .icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: .1rem; }

.btn.is-loading { opacity: .7; cursor: wait; }
.btn[disabled] { pointer-events: none; }

/* Wachtwoord */
.password { position: relative; }
.password .field__input { padding-right: 6.5rem; }
.password__toggle {
  position: absolute;
  top: 50%; right: .5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 38px;
  padding: .35rem .75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gold-deep);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.password__toggle:hover { background: rgba(201, 166, 107, .15); }
.password__toggle:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.password__toggle .icon { width: 18px; height: 18px; }

.strength {
  height: 6px;
  margin-top: .7rem;
  border-radius: 6px;
  background: #efe6d8;
  overflow: hidden;
}
.strength__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width .3s ease, background-color .3s ease;
}
.strength__bar.is-medium { background: #c98a2b; }
.strength__bar.is-strong { background: var(--ok); }

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .35rem 1rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--ink-soft);
}
.rules li { position: relative; padding-left: 1.6rem; transition: color .2s ease; }
.rules li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 1.05em; height: 1.05em;
  border: 1.5px solid #cbb99f;
  border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease;
}
.rules li.is-ok { color: var(--ink); }
.rules li.is-ok::before {
  border-color: var(--ok);
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Code */
.code-input {
  max-width: 240px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .6em;
  text-align: center;
  padding-left: calc(1rem + .6em);
  font-variant-numeric: tabular-nums;
}
.code-input::placeholder { letter-spacing: .6em; color: #cbb99f; }

.testcode {
  margin: 0 0 1.25rem;
  padding: .75rem 1rem;
  border: 1px dashed var(--gold-deep);
  border-radius: 12px;
  background: #fff8ea;
  font-size: .95rem;
}

.finish-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #efe6d8;
}
.link-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-deep);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--espresso); }
.link-button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
.link-button[disabled] { color: var(--ink-soft); text-decoration: none; cursor: default; }
.link-button .icon { width: 18px; height: 18px; }
.finish-note { margin: .75rem 0 0; color: var(--ok); font-weight: 600; }
.finish-note:empty { display: none; }

/* Adres van de website */
.address-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--espresso);
  color: var(--cream);
}
.address-card > .icon { flex-shrink: 0; width: 30px; height: 30px; color: var(--gold); }
.address-card__label { margin: 0; font-size: .85rem; color: rgba(250, 246, 239, .7); }
.address-card__url {
  margin: .15rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 700;
  color: var(--gold-light);
  word-break: break-all;
}
.finish-step--done .address-card { margin-bottom: 1.5rem; }

.name-choice .warning { margin-top: 0; margin-bottom: 1.25rem; }
.slug-field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  overflow: hidden;
}
.slug-field:focus-within { border-color: var(--gold-deep); background: var(--white); box-shadow: 0 0 0 4px rgba(201, 166, 107, .25); }
.is-invalid .slug-field { border-color: var(--danger); background: var(--danger-soft); }
.slug-field .field__input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding-inline: .25rem; }
.slug-field__prefix,
.slug-field__suffix {
  display: flex;
  align-items: center;
  padding-inline: .9rem .1rem;
  color: var(--ink-soft);
  font-size: .95rem;
  white-space: nowrap;
}
.slug-field__suffix { padding-inline: .1rem .9rem; }
@media (max-width: 480px) {
  .slug-field__prefix { font-size: .85rem; padding-left: .7rem; }
}

/* Bouwen */
.build {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid #efe6d8;
  text-align: center;
}
.build__spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(201, 166, 107, .25);
  border-top-color: var(--gold-deep);
  animation: finish-spin 1s linear infinite;
}
.build__title { margin: 1rem 0 .25rem; font-size: 1.2rem; font-weight: 700; }
.build__note { margin: 0 0 1.25rem; color: var(--ink-soft); }
.build__steps {
  display: grid;
  gap: .6rem;
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.build__steps li {
  position: relative;
  padding-left: 2rem;
  color: #a99a8a;
  transition: color .3s ease;
}
.build__steps li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 1.2em; height: 1.2em;
  border-radius: 50%;
  border: 2px solid #ddd0bd;
  box-sizing: border-box;
}
.build__steps li.is-active { color: var(--ink); font-weight: 600; }
.build__steps li.is-active::before { border-color: var(--gold-deep); border-top-color: transparent; animation: finish-spin .9s linear infinite; }
.build__steps li.is-done { color: var(--ink); }
.build__steps li.is-done::before {
  border-color: var(--ok);
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.build-error .warning { margin-top: 0; }

/* Klaar: link delen en inloggen */
.btn--dark { background: var(--espresso); color: var(--cream); }
.btn--dark:hover { background: #3a2d24; }
.btn--ghost-dark { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn--ghost-dark:hover { background: var(--espresso); color: var(--cream); }

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.share__url {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--gold-deep);
  font-weight: 700;
  word-break: break-all;
}
.share__copy { min-height: 52px; }
.share__copy.is-copied { background: var(--ok); }

.login-cta {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid #efe6d8;
}
.login-cta__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-light);
}
.login-cta__icon .icon { width: 20px; height: 20px; }
.login-cta__text { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; }
.finish-note--soft { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }

/* Extra's (upsell) */
.upsell { margin-top: 2rem; text-align: left; }
.upsell__title { margin: 0; font-size: 1.15rem; line-height: 1.5; }

.extras {
  display: grid;
  gap: .9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.extra {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1px solid #efe6d8;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.extra:hover { border-color: var(--gold-light); box-shadow: var(--shadow); }
.extra__icon { width: 56px; height: 56px; align-self: start; }
.extra__titel { margin: 0 0 .3rem; font-size: 1.02rem; line-height: 1.4; }
.extra__info { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }
.extra__koop {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  min-width: 11rem;
  text-align: right;
}
.extra__koop form { margin: 0; }
.extra__prijs { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.extra__prijs small { font-weight: 500; font-size: .8rem; color: var(--ink-soft); }
.extra--link .extra__prijs, .extra--offerte .extra__prijs { font-size: .95rem; color: var(--gold-deep); }
.extra__koop .btn { white-space: nowrap; }
.extra__gekocht { margin: 0; padding: .35rem .8rem; border-radius: 999px; background: #e7f4ea; color: #1f6b35; font-weight: 700; font-size: .9rem; white-space: nowrap; }

@media (max-width: 640px) {
  .extra { grid-template-columns: 44px 1fr; }
  .extra__icon { width: 44px; height: 44px; }
  .extra__koop {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
  }
}

.upsell__dees {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.5rem 1.4rem;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid #efe6d8;
}
.upsell__foto {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--gold-light);
}
.upsell__dees-tekst { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.upsell__whatsapp {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.2em;
  margin-left: .15rem;
  color: var(--gold-deep);
  text-decoration: none;
}
.upsell__whatsapp:hover { color: var(--espresso); }
.upsell__whatsapp .icon { width: 1.25em; height: 1.25em; }
@media (max-width: 480px) {
  .upsell__dees { flex-direction: column; text-align: center; }
  .upsell__foto { width: 120px; height: 120px; }
}

.bestel { max-width: 720px; padding-block: 4rem; }
.bestel__knoppen { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

@keyframes finish-spin { to { transform: rotate(360deg); } }
@keyframes finish-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .finish-step { animation: none; }
  .build__spinner, .build__steps li.is-active::before { animation-duration: 3s; }
}
