/* ============================================
   Invite Bar Mitzvah — Wizard styles
   ============================================ */

:root {
  --bg: #fdfaf3;
  --bg-alt: #ffffff;
  --bg-dark: #14213d;
  --bg-dark-2: #1d2c52;
  --text: #14213d;
  --text-soft: #5a6378;
  --text-on-dark: #fdfaf3;
  --accent: #c8a04a;
  --accent-deep: #a4822f;
  --accent-soft: #f4ead4;
  --rose: #e8a598;
  --error: #c0392b;
  --success: #2e8b57;
  --border: rgba(20, 33, 61, 0.12);
  --border-strong: rgba(20, 33, 61, 0.2);
  --shadow-sm: 0 2px 12px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 8px 32px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 720px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  color: var(--accent-deep);
}

/* ============ HEADER ============ */
.wz-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.wz-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wz-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wz-logo img { width: 50px; height: 50px; object-fit: contain; }
.wz-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wz-logo__name {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
  font-weight: 700;
}
.wz-logo__sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

.wz-exit {
  font-size: 14px;
  color: var(--error);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(192, 57, 43, 0.25);
  background: rgba(192, 57, 43, 0.06);
  transition: all 0.2s var(--ease);
}
.wz-exit:hover {
  background: var(--error);
  color: var(--bg-alt);
  border-color: var(--error);
}

/* ============ PROGRESS ============ */
.wz-progress {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.wz-progress__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wz-progress__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.wz-progress__step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.wz-progress__step--done { background: var(--accent); }
.wz-progress__step--current { background: var(--accent-soft); }
.wz-progress__step--current::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  width: var(--progress, 0%);
  transition: width 0.4s var(--ease);
}
.wz-progress__label {
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wz-progress__label strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ EMAIL REMINDER BANNER ============ */
.wz-reminder {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 14px;
}
.wz-reminder__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wz-reminder__text {
  flex: 1;
  min-width: 220px;
  color: var(--text);
}
.wz-reminder__form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.wz-reminder__input {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: var(--bg-alt);
  min-width: 220px;
  font-family: inherit;
  color: var(--text);
}
.wz-reminder__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.15);
}
.wz-reminder__btn {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.wz-reminder__btn:hover {
  background: var(--bg-dark-2);
}
.wz-reminder__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wz-reminder__success {
  color: var(--success);
  font-weight: 500;
}

/* ============ MAIN ============ */
.wz-main {
  flex: 1;
  padding: 48px 0 120px;
}
.wz-main__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wz-step {
  display: none;
}
.wz-step--active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

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

.wz-step__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 12px;
}
.wz-step__title {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 12px;
}
.wz-step__lede {
  font-size: 17px;
  color: var(--text-soft);
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ============ FIELDS ============ */
.wz-field {
  margin-bottom: 28px;
}
.wz-field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.wz-field__hint {
  font-size: 13px;
  color: var(--text-soft);
  margin: 4px 0 8px;
}
.wz-field__optional {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 13px;
  margin-left: 6px;
}
.wz-field__input,
.wz-field__textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s var(--ease);
}
.wz-field__input:focus,
.wz-field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.15);
}
.wz-field__textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============ TOGGLE (Bar / Bat) ============ */
.wz-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wz-toggle__option {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 16px;
  background: var(--bg-alt);
  text-align: center;
  transition: all 0.2s var(--ease);
}
.wz-toggle__option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.wz-toggle__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wz-toggle__option--checked {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}
.wz-toggle__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.wz-toggle__sub {
  font-size: 13px;
  color: var(--text-soft);
}

/* ============ FILE UPLOAD ============ */
.wz-upload {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.wz-upload:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wz-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.wz-upload__icon {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.wz-upload__text {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.wz-upload__hint {
  font-size: 13px;
  color: var(--text-soft);
}
.wz-upload__preview {
  margin-top: 16px;
  display: none;
  align-items: center;
  gap: 12px;
}
.wz-upload__preview--shown { display: flex; }
.wz-upload__preview img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}
.wz-upload__preview-info {
  flex: 1;
  font-size: 14px;
  color: var(--text-soft);
}
.wz-upload__remove {
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
}

/* ============ FIELD ROW ============ */
.wz-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wz-field-row .wz-field { margin-bottom: 28px; }

/* ============ ADDRESS AUTOCOMPLETE ============ */
.wz-autocomplete {
  position: relative;
}
.wz-autocomplete__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
}
.wz-autocomplete__item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wz-autocomplete__item:hover,
.wz-autocomplete__item:focus {
  background: var(--accent-soft);
  outline: none;
}
.wz-autocomplete__label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.wz-autocomplete__context {
  font-size: 12px;
  color: var(--text-soft);
}
.wz-autocomplete__status {
  font-size: 13px;
  color: var(--text-soft);
  margin: 6px 0 0;
  min-height: 18px;
}
.wz-autocomplete__status--ok {
  color: var(--success);
  font-weight: 500;
}

/* ============ FAMILY BLOCKS ============ */
.wz-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.wz-blocks__empty {
  color: var(--text-soft);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  margin: 0;
}

.wz-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}
.wz-block:hover {
  border-color: var(--border-strong);
}
.wz-block__body {
  flex: 1;
  min-width: 0;
}
.wz-block__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 4px;
}
.wz-block__names {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.wz-block__tribute {
  font-style: italic;
  color: var(--text-soft);
  font-size: 14px;
  margin: 4px 0 0;
}
.wz-block__sub {
  font-size: 14px;
  color: var(--text);
  margin: 4px 0 0;
}
.wz-block__address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  margin: 6px 0 0;
}
.wz-block__address-icon { flex-shrink: 0; }
.wz-block__verified {
  color: var(--success);
  font-weight: 700;
  margin-left: 4px;
}
.wz-block__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.wz-block__action {
  font-size: 13px;
  color: var(--text-soft);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.wz-block__action:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.wz-block__action--danger:hover {
  color: var(--error);
  background: rgba(192, 57, 43, 0.08);
}

/* ============ ADD BUTTON ============ */
.wz-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.wz-add-btn[hidden] { display: none; }
.wz-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.wz-add-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

/* ============ INLINE FORM CARD ============ */
.wz-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.wz-form-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--text);
}
.wz-form-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.wz-form-card__actions .wz-btn {
  padding: 10px 18px;
  font-size: 14px;
}

select.wz-field__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2314213d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* ============ RSVP (1.4) ============ */
.wz-rsvp-fixed {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.wz-rsvp-fixed__title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 10px;
}
.wz-rsvp-fixed__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wz-rsvp-fixed__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.wz-rsvp-fixed__list li:last-child { margin-bottom: 0; }
.wz-rsvp-fixed__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.wz-rsvp-section-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin: 0 0 16px;
}

.wz-rsvp-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.2s var(--ease);
}
.wz-rsvp-option:hover {
  border-color: var(--border-strong);
}
.wz-rsvp-option__body {
  flex: 1;
  min-width: 0;
}
.wz-rsvp-option__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text);
}
.wz-rsvp-option__desc {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ============ FIELD ERROR ============ */
.wz-field__error {
  font-size: 13px;
  color: var(--error);
  margin: 6px 0 0;
  min-height: 18px;
}

/* ============ VERSION ACTIONS ============ */
.wz-version__actions {
  display: flex;
  gap: 4px;
}

/* ============ VERSION CARDS (1.5) ============ */
.wz-version {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.wz-version__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.wz-version__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 4px;
}
.wz-version__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
.wz-version__badge {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wz-version__desc {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.wz-version__events {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}
.wz-version__event {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
}
.wz-version__event-check {
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
}
.wz-version__hint {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 8px;
}
.wz-version__hint code {
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-deep);
}
.wz-version__empty {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}
.wz-version__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.wz-version__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.wz-version__url {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wz-version__url-label {
  font-weight: 600;
  color: var(--text);
}
.wz-version__url code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

/* ============ TOGGLE SWITCH ============ */
.wz-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.wz-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.wz-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.wz-switch__slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: var(--bg-alt);
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.wz-switch input:checked + .wz-switch__slider {
  background: var(--accent);
}
.wz-switch input:checked + .wz-switch__slider::before {
  transform: translateX(20px);
}
.wz-switch input:focus-visible + .wz-switch__slider {
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.25);
}

/* ============ CHOICE (2.0) ============ */
.wz-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.wz-choice {
  background: var(--bg-alt);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.wz-choice:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--accent-soft);
}
.wz-choice__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wz-choice__icon svg { width: 26px; height: 26px; }
.wz-choice:hover .wz-choice__icon {
  background: var(--accent);
  color: white;
}
.wz-choice__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
.wz-choice__desc {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.wz-choice__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-top: 4px;
}

/* ============ MODELS (2.M) ============ */
.wz-models__current {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 160, 74, 0.3);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 500;
  min-height: 0;
}
.wz-models__current:empty {
  display: none;
}
.wz-models__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.wz-model {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: pointer;
  padding: 0;
  text-align: left;
  overflow: hidden;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.wz-model:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.wz-model--applied {
  animation: wzModelApplied 0.6s ease;
}
.wz-model--selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.15);
}
.wz-model--selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 5;
}
@keyframes wzModelApplied {
  0%, 100% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 24px rgba(46, 139, 87, .3); }
}
.wz-model__preview {
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: wzGradientShift 12s ease-in-out infinite;
}
.wz-model__symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wz-model__symbol {
  position: absolute;
  width: 22px;
  height: 22px;
  color: rgba(253, 224, 71, 0.55);
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.35));
}
.wz-model__symbol:nth-child(1) { top: 12%; left: 8%; transform: rotate(-12deg); }
.wz-model__symbol:nth-child(2) { top: 60%; right: 10%; transform: rotate(15deg); }
.wz-model__symbol:nth-child(3) { bottom: 14%; left: 30%; transform: rotate(-6deg); }
.wz-model__symbol svg { width: 100%; height: 100%; }
.wz-model__preview-name {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  z-index: 2;
  position: relative;
  text-align: center;
  padding: 0 12px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wz-model__gender {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  z-index: 3;
  backdrop-filter: blur(6px);
}
.wz-model--bar .wz-model__gender { color: #1e40af; }
.wz-model--bat .wz-model__gender { color: #be185d; }
.wz-model__body {
  padding: 12px 14px;
}
.wz-model__title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px;
  color: var(--text);
}
.wz-model__desc {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.4;
}

/* ============ DESIGN STEP (2.1) ============ */
.wz-design-section {
  margin-bottom: 40px;
}
.wz-design-section__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--text);
}
.wz-design-section__hint {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 18px;
  line-height: 1.5;
}

.wz-gradient-preview {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wz-gradient-preview--animated {
  animation: wzGradientShift 8s ease-in-out infinite;
}
@keyframes wzGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.wz-gradient-preview__label {
  color: white;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ============ EVENT COLOR CARDS (2.3) ============ */
.wz-event-color-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.wz-event-color-card__preview {
  width: 100%;
  height: 130px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wz-event-color-card__script {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  margin: 0 0 4px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.wz-event-color-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.wz-event-color-card__date {
  font-size: 13px;
  margin: 6px 0 0;
  opacity: 0.92;
  letter-spacing: 0.04em;
}

.wz-color-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wz-color-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.wz-color-trigger:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.wz-color-trigger__swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 1px 2px rgba(255,255,255,.3);
  flex-shrink: 0;
}
.wz-color-trigger__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wz-color-trigger__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.wz-color-trigger__hex {
  font-family: 'Inter', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ============ SYMBOLS GRID ============ */
.wz-symbols-counter {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.wz-symbols-counter span {
  color: var(--text);
  font-weight: 600;
}
.wz-symbols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}
.wz-symbol {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.wz-symbol:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: var(--accent-soft);
}
.wz-symbol__icon {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wz-symbol__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wz-symbol__check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s var(--ease);
}
.wz-symbol--selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.wz-symbol--selected .wz-symbol__check {
  opacity: 1;
  transform: scale(1);
}
.wz-symbol--disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ============ COLOR PICKER POPOVER ============ */
.wz-color-popover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wz-color-popover[hidden] {
  display: none;
}
.wz-color-popover__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.wz-color-popover__inner {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wz-color-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wz-color-popover__scroll {
  padding: 18px 24px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.wz-color-popover__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
.wz-color-popover__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.wz-color-popover__close:hover {
  background: var(--border-strong);
  color: var(--text);
}
.wz-color-popover__picker {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
/* ============ RGB SLIDERS ============ */
.wz-color-popover__sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.wz-color-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wz-color-slider__label {
  width: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  flex-shrink: 0;
}
.wz-color-slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  border-radius: 999px;
  background: var(--track, var(--border-strong));
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.wz-color-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: grab;
}
.wz-color-slider input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.wz-color-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: grab;
}

.wz-color-slider--r input[type="range"] { background: var(--track, linear-gradient(to right, #000, #f00)); }
.wz-color-slider--g input[type="range"] { background: var(--track, linear-gradient(to right, #000, #0f0)); }
.wz-color-slider--b input[type="range"] { background: var(--track, linear-gradient(to right, #000, #00f)); }

/* ============ PRESET PALETTE ============ */
.wz-color-popover__section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin: 0 0 10px;
}
.wz-color-presets {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}
.wz-color-preset {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s var(--ease);
}
.wz-color-preset:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  z-index: 2;
}
.wz-color-popover__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  flex-shrink: 0;
}
.wz-color-popover__actions .wz-btn {
  padding: 10px 18px;
  font-size: 14px;
}

/* ============ PREVIEW FRAME (3.1) ============ */
.wz-preview-frame-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}
.wz-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
}
.wz-preview-toolbar__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wz-preview-toolbar__url {
  flex: 1;
  margin-left: 12px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-soft);
  font-family: 'Inter', monospace;
  text-align: center;
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wz-preview-toolbar__fs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-left: 8px;
  background: var(--bg-dark);
  color: var(--bg-alt);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.wz-preview-toolbar__fs:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.wz-preview-toolbar__fs svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 600px) {
  .wz-preview-toolbar__url { font-size: 10px; }
  .wz-preview-toolbar__fs { padding: 5px 10px; font-size: 11px; }
  .wz-preview-toolbar__fs svg { width: 11px; height: 11px; }
}
.wz-preview-frame {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  border: 0;
  display: block;
  background: var(--bg);
}

/* ============ FINALIZATION (3.2) ============ */
.wz-password-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.wz-password-row .wz-field__input {
  flex: 1;
  font-family: 'Inter', monospace;
  letter-spacing: 0.04em;
}
.wz-password-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.wz-password-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wz-password-action svg {
  width: 16px;
  height: 16px;
}

.wz-finalization-summary {
  background: var(--accent-soft);
  border: 1px solid rgba(200, 160, 74, 0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 32px;
}
.wz-finalization-summary__title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--accent-deep);
}
.wz-finalization-summary__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wz-finalization-summary__list li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid rgba(200, 160, 74, 0.18);
}
.wz-finalization-summary__list li:last-child {
  border-bottom: none;
}
.wz-finalization-summary__list code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Inter', monospace;
  font-size: 13px;
  color: var(--accent-deep);
}
.wz-finalization-summary__password {
  font-family: 'Inter', monospace;
  font-weight: 600;
  background: var(--bg-alt);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}
.wz-finalization-summary__warning {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
}

/* ============ FOOTER NAV ============ */
.wz-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  z-index: 10;
}
.wz-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.wz-btn--primary {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.wz-btn--primary:hover:not(:disabled) {
  background: var(--bg-dark-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.wz-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wz-btn--ghost {
  color: var(--text-soft);
  padding: 14px 20px;
}
.wz-btn--ghost:hover {
  color: var(--text);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .wz-reminder__inner { flex-direction: column; align-items: stretch; }
  .wz-reminder__form { width: 100%; }
  .wz-reminder__input { flex: 1; min-width: 0; }
  .wz-toggle { grid-template-columns: 1fr; }
  .wz-main { padding: 32px 0 140px; }
  .wz-footer__inner { flex-direction: column-reverse; gap: 8px; }
  .wz-btn { width: 100%; }
  .wz-field-row { grid-template-columns: 1fr; }
  .wz-color-pickers { grid-template-columns: 1fr; }
  .wz-event-preview { grid-template-columns: 1fr; }
  .wz-color-popover__inputs { grid-template-columns: repeat(2, 1fr); }
}
