*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --cream: #F8F6F3;
  --white: #FFFFFF;
  --gold: #C4A57B;
  --gold-hover: #B39167;
  --gold-light: #E8D5B8;
  --gold-glow: rgba(196, 165, 123, 0.15);
  --espresso: #2D2416;
  --charcoal: #3D3226;
  --brown: #7A6B5D;
  --taupe: #9B8B7E;
  --border: #E8E0D8;
  --green: #7DB895;
  --section-alt: #F3F0EC;
  --error: #C4898A;
  --error-bg: rgba(196, 137, 138, 0.08);
  --error-border: rgba(196, 137, 138, 0.25);
  --error-text: #A84040;
  --upload-bg: #FDFCFA;
  --disabled-bg: #F0EDED;
  --disabled-text: #B8AEA4;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 100px;
  --duration-micro: 200ms;
  --duration-step: 300ms;
  --duration-major: 400ms;
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0.0, 1, 1);
  --z-base: 1;
  --z-stepper: 10;
  --z-sticky-footer: 20;
  --z-upload-overlay: 40;
  --z-nav: 50;
  --z-modal: 60;
  --z-toast: 70;
  --input-height: 52px;
  --input-height-mobile: 56px;
  --input-radius: 8px;
  --input-border-width: 1.5px;
  --focus-ring-width: 3px;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration-major) var(--ease-out), color var(--duration-major) var(--ease-out);
}

body[data-theme="story"],
body[data-theme="confirmation"] {
  background: var(--cream);
}

body[data-theme="upload"] {
  background: var(--white);
}

body[data-theme="plan"] {
  background: var(--section-alt);
}

body[data-theme="redirect"] {
  background: var(--espresso);
  color: var(--cream);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.funnel-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.funnel-header {
  padding: var(--space-6) var(--space-5) var(--space-3);
  display: flex;
  justify-content: center;
}

.funnel-logo {
  font-family: 'Prata', serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.funnel-banner {
  min-height: 0;
  max-width: 640px;
  margin: 0 auto;
  width: calc(100% - 40px);
}

.funnel-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: var(--space-3);
  font-size: 13px;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(232, 224, 216, 0.8);
  box-shadow: 0 12px 30px rgba(45, 36, 22, 0.05);
}

.funnel-banner-inner.error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.funnel-banner-dismiss {
  appearance: none;
  border: none;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.funnel-stepper-shell {
  position: sticky;
  top: 0;
  z-index: var(--z-stepper);
  padding: 0 var(--space-5) var(--space-4);
}

.funnel-stepper {
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  border: 1px solid rgba(232, 224, 216, 0.8);
  border-radius: 18px;
  background: rgba(248, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(45, 36, 22, 0.06);
}

body[data-theme="upload"] .funnel-stepper,
body[data-theme="plan"] .funnel-stepper {
  background: rgba(255, 255, 255, 0.84);
}

body[data-theme="redirect"] .funnel-stepper {
  background: rgba(45, 36, 22, 0.78);
  border-color: rgba(196, 165, 123, 0.18);
  box-shadow: none;
}

.stepper-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

.stepper-row::before {
  content: '';
  position: absolute;
  left: 13%;
  right: 13%;
  top: 15px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

body[data-theme="redirect"] .stepper-row::before {
  background: rgba(255, 255, 255, 0.12);
}

.stepper-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.stepper-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--taupe);
  background: var(--border);
  transition: all var(--duration-step) var(--ease-out);
}

.stepper-dot.completed {
  background: var(--gold-light);
  color: var(--green);
}

.stepper-dot.active {
  background: var(--gold);
  color: var(--white);
}

body[data-theme="redirect"] .stepper-dot {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

body[data-theme="redirect"] .stepper-dot.active {
  background: var(--gold);
  color: var(--white);
}

body[data-theme="redirect"] .stepper-dot.completed {
  background: rgba(232, 213, 184, 0.2);
  color: #CDE6D4;
}

.stepper-label {
  display: none;
  font-size: 12px;
  line-height: 1.2;
  color: var(--taupe);
}

body[data-theme="redirect"] .stepper-label {
  color: rgba(248, 246, 243, 0.65);
}

.funnel-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-5) var(--space-7);
}

.funnel-stage-wrap {
  position: relative;
  width: min(100%, 640px);
}

.funnel-stage {
  position: relative;
}

.step-panel {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) 0 var(--space-4);
}

.step-panel::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  width: 620px;
  height: 420px;
  background: radial-gradient(circle, rgba(196, 165, 123, var(--headline-glow, 0.04)) 0%, rgba(196, 165, 123, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.step-panel > * {
  position: relative;
  z-index: 1;
}

.step-back {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: var(--space-6);
}

body[data-theme="redirect"] .step-back {
  color: rgba(248, 246, 243, 0.72);
}

.step-back:hover {
  color: var(--espresso);
}

.step-back-icon {
  width: 18px;
  height: 18px;
}

.step-title {
  margin: 0 0 var(--space-3);
  font-family: 'Prata', serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

body[data-theme="redirect"] .step-title,
body[data-theme="redirect"] .redirect-text,
body[data-theme="redirect"] .redirect-helper,
body[data-theme="redirect"] .redirect-plan {
  color: var(--cream);
}

.step-helper {
  margin: 0 0 var(--space-7);
  color: var(--brown);
  font-size: 15px;
  max-width: 560px;
}

.timing-note,
.privacy-note,
.milestone-note,
.plan-uploads-note {
  margin: 0 0 var(--space-6);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(196, 165, 123, 0.18);
  background: rgba(196, 165, 123, 0.06);
  color: var(--brown);
  font-size: 14px;
}

.lock-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.name-row {
  display: grid;
  gap: var(--space-5);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.funnel-label {
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.date-selects {
  display: flex;
  gap: 8px;
}

.funnel-select {
  flex: 1;
  height: var(--input-height-mobile);
  border-radius: var(--input-radius);
  border: var(--input-border-width) solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--espresso);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239B8B7E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
  transition: border-color var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out);
}

.funnel-select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 var(--focus-ring-width) var(--gold-glow);
}

.funnel-select.has-error {
  border-color: var(--error);
  background: var(--error-bg);
}

#funnelMonth { flex: 2; }
#funnelDay { flex: 1; }
#funnelYear { flex: 1.3; }

.funnel-input,
.funnel-date {
  width: 100%;
  height: var(--input-height-mobile);
  border-radius: var(--input-radius);
  border: var(--input-border-width) solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 16px;
  color: var(--espresso);
  font-size: 16px;
  transition: border-color var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out), background-color var(--duration-micro) var(--ease-out);
}

.funnel-input::placeholder,
.funnel-date::placeholder {
  color: var(--taupe);
}

.funnel-input:focus-visible,
.funnel-date:focus-visible,
.choice-card:focus-visible,
.plan-card:focus-visible,
.upload-zone:focus-visible,
.step-action:focus-visible,
.share-button:focus-visible,
.step-back:focus-visible,
.funnel-banner-dismiss:focus-visible,
.retry-button:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 var(--focus-ring-width) var(--gold-glow);
}

.funnel-input.has-error,
.funnel-date.has-error {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  min-height: 20px;
  font-size: 13px;
  color: var(--error-text);
}

.step-actions {
  margin-top: var(--space-6);
}

.step-action,
.share-button,
.retry-button {
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--duration-micro) var(--ease-out), background-color var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out);
  box-shadow: 0 10px 25px rgba(196, 165, 123, 0.26);
}

.step-action:hover,
.share-button:hover,
.retry-button:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(196, 165, 123, 0.3);
}

.step-action[disabled] {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.step-action.full-width,
.share-button.full-width {
  width: 100%;
}

.choice-grid {
  display: grid;
  gap: var(--space-4);
}

.choice-grid.style-grid {
  grid-template-columns: 1fr;
}

.choice-card {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--duration-step) var(--ease-out), box-shadow var(--duration-step) var(--ease-out), border-color var(--duration-step) var(--ease-out), background-color var(--duration-step) var(--ease-out);
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(45, 36, 22, 0.08);
}

.choice-card.selected {
  border-color: var(--gold);
  border-width: 2px;
  background: rgba(196, 165, 123, 0.04);
  box-shadow: 0 18px 42px rgba(196, 165, 123, 0.16);
}

.choice-card.selected .choice-check {
  transform: scale(1);
  opacity: 1;
}

.choice-art {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.choice-art::before,
.choice-art::after {
  content: '';
  position: absolute;
  inset: 0;
}

.choice-art::after {
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.85) 0 3px, transparent 4px),
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 75%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 60%);
}

.choice-art.romantic::before {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 249, 240, 0.9), transparent 40%),
    radial-gradient(circle at 70% 35%, rgba(240, 214, 195, 0.85), transparent 50%),
    linear-gradient(135deg, #F4EAE0 0%, #E9D7C6 45%, #D8C3B1 100%);
}

.choice-art.cinematic::before {
  background:
    linear-gradient(140deg, rgba(51, 36, 22, 0.3), rgba(196, 165, 123, 0.15)),
    radial-gradient(circle at 78% 28%, rgba(255, 216, 162, 0.85), transparent 28%),
    linear-gradient(135deg, #2E241D 0%, #4E3D2E 38%, #8A6A4B 100%);
}

.choice-art.fun::before {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.8) 0 8px, transparent 9px),
    radial-gradient(circle at 34% 70%, rgba(255, 235, 191, 0.95) 0 10px, transparent 11px),
    radial-gradient(circle at 75% 24%, rgba(255, 255, 255, 0.75) 0 7px, transparent 8px),
    radial-gradient(circle at 68% 72%, rgba(255, 228, 193, 0.8) 0 9px, transparent 10px),
    linear-gradient(135deg, #F4D0A4 0%, #EAB888 45%, #D69B6E 100%);
}

.choice-art.timeless::before {
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    repeating-linear-gradient(135deg, rgba(209, 196, 182, 0.3) 0 2px, rgba(244, 240, 235, 0.6) 2px 7px),
    linear-gradient(135deg, #F5F1EC 0%, #E9DFD3 100%);
}

.choice-body {
  padding: var(--space-5);
}

.choice-title {
  margin: 0 0 var(--space-2);
  font-family: 'Prata', serif;
  font-size: 22px;
  line-height: 1.2;
}

.choice-text {
  margin: 0;
  color: var(--brown);
  font-size: 14px;
  line-height: 1.55;
}

.choice-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 22px rgba(196, 165, 123, 0.32);
  transform: scale(0.6);
  opacity: 0;
  transition: transform var(--duration-micro) var(--ease-out), opacity var(--duration-micro) var(--ease-out);
}

.media-grid {
  display: grid;
  gap: var(--space-4);
}

.media-card {
  padding: var(--space-5);
}

.media-card-content {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.media-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.upload-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 272px;
  padding: var(--space-8) var(--space-6);
  border: 2px dashed var(--taupe);
  border-radius: 16px;
  background: var(--upload-bg);
  color: var(--brown);
  cursor: pointer;
  transition: background-color var(--duration-micro) var(--ease-out), border-color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out);
}

.upload-zone.dragging {
  border-color: var(--gold);
  background: rgba(196, 165, 123, 0.04);
  transform: scale(1.01);
}

.upload-zone.compact {
  min-height: 56px;
  flex-direction: row;
  padding: 12px 20px;
}

.upload-zone.compact .upload-illustration {
  width: 24px;
  height: 24px;
}

.upload-zone-label {
  text-align: center;
}

.upload-zone-title {
  margin: 0;
  font-size: 17px;
  color: var(--espresso);
}

.upload-zone-helper {
  margin: 0;
  font-size: 14px;
  color: var(--taupe);
}

.upload-illustration {
  width: 88px;
  height: 88px;
  color: var(--gold);
}

.upload-meta {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.upload-counter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--brown);
}

.upload-counter strong {
  font-weight: 600;
  color: var(--espresso);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.upload-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(45, 36, 22, 0.08);
  min-height: 124px;
  border: 1px solid rgba(232, 224, 216, 0.8);
}

.upload-card.error {
  border-color: var(--error-border);
}

.upload-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background:
    linear-gradient(135deg, rgba(248, 246, 243, 0.9), rgba(232, 224, 216, 0.95));
}

.upload-thumb-placeholder {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  color: var(--taupe);
  text-align: center;
}

.upload-thumb-placeholder strong {
  display: block;
  color: var(--espresso);
  font-size: 15px;
  margin-bottom: 2px;
}

.upload-card-info {
  padding: 10px 10px 12px;
}

.upload-card-name {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--espresso);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-card-size {
  display: block;
  font-size: 11px;
  color: var(--taupe);
}

.upload-card-status {
  font-size: 12px;
  color: var(--brown);
  margin-top: 4px;
}

.upload-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(248, 246, 243, 0.92);
}

.upload-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width var(--duration-micro) linear;
}

.upload-trust {
  text-align: center;
  font-size: 12px;
  color: var(--taupe);
}

.upload-grid-note {
  text-align: center;
  font-size: 13px;
  color: var(--taupe);
}

.retry-button {
  width: 100%;
  min-height: 38px;
  font-size: 11px;
  letter-spacing: 0.8px;
  margin-top: 8px;
}

.plan-anchor {
  margin-bottom: var(--space-6);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(196, 165, 123, 0.18);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  color: var(--brown);
}

.plan-grid {
  display: grid;
  gap: var(--space-5);
}

.plan-card {
  appearance: none;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  padding: 40px 28px 28px;
  cursor: pointer;
  text-align: left;
  transition: transform var(--duration-step) var(--ease-out), box-shadow var(--duration-step) var(--ease-out), border-color var(--duration-step) var(--ease-out);
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(45, 36, 22, 0.08);
}

.plan-card.selected {
  border-width: 2px;
  border-color: var(--gold);
}

.plan-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F4EE 100%);
  box-shadow: 0 12px 34px rgba(196, 165, 123, 0.18);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
}

.plan-radio {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all var(--duration-micro) var(--ease-out);
}

.plan-card.selected .plan-radio {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 45%, transparent 48%);
}

.plan-name {
  margin: 0 0 var(--space-2);
  font-family: 'Prata', serif;
  font-size: 26px;
}

.plan-price {
  margin: 0 0 var(--space-2);
  font-size: 48px;
  line-height: 1;
  font-weight: 300;
  color: var(--espresso);
}

.plan-price span {
  font-size: 20px;
  color: var(--taupe);
}

.plan-description {
  margin: 0 0 var(--space-5);
  color: var(--brown);
  font-size: 14px;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  color: var(--brown);
  font-size: 14px;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(125, 184, 149, 0.18);
}

.plan-features li::after {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.plan-footer {
  margin-top: var(--space-5);
  text-align: center;
  font-size: 14px;
  color: var(--taupe);
}

.redirect-screen {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
}

.redirect-panel {
  width: min(100%, 520px);
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.redirect-spinner {
  width: 78px;
  height: 78px;
  margin: 0 auto var(--space-7);
  display: block;
}

.redirect-spinner circle {
  fill: none;
  stroke: rgba(248, 246, 243, 0.14);
  stroke-width: 4;
}

.redirect-spinner path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 4;
  transform-origin: center;
  animation: arc-spin 2s linear infinite;
}

.redirect-text {
  margin: 0 0 var(--space-3);
  font-family: 'Prata', serif;
  font-size: 28px;
  line-height: 1.2;
}

.redirect-helper,
.redirect-plan {
  margin: 0;
  font-size: 15px;
  color: rgba(248, 246, 243, 0.72);
}

.redirect-helper {
  margin-bottom: var(--space-3);
}

.confirmation-shell {
  padding-bottom: var(--space-8);
}

.confirmation-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(232, 224, 216, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(45, 36, 22, 0.08);
  padding: var(--space-9) var(--space-6);
}

.confirmation-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confirmation-dust span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(196, 165, 123, 0.3);
  animation: dust-fall 1.5s ease-out forwards;
}

.confirmation-dust span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.confirmation-dust span:nth-child(2) { top: 8%; left: 48%; animation-delay: 0.06s; }
.confirmation-dust span:nth-child(3) { top: 18%; left: 72%; animation-delay: 0.12s; }
.confirmation-dust span:nth-child(4) { top: 20%; left: 30%; animation-delay: 0.16s; }
.confirmation-dust span:nth-child(5) { top: 10%; left: 82%; animation-delay: 0.22s; }

.confirmation-check {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
}

.confirmation-check circle,
.confirmation-check path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-check circle {
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: draw-circle 0.55s var(--ease-out) forwards;
}

.confirmation-check path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 0.35s var(--ease-out) 0.32s forwards;
}

.confirmation-title {
  margin: 0 0 var(--space-4);
  font-family: 'Prata', serif;
  font-size: 32px;
  line-height: 1.2;
}

.confirmation-body {
  margin: 0 0 var(--space-7);
  color: var(--brown);
  font-size: 15px;
}

.confirmation-plan {
  margin: 0 0 var(--space-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-hover);
}

.timeline {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-4);
  align-items: start;
  opacity: 0;
  transform: translateY(10px);
  animation: timeline-rise 0.35s var(--ease-out) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.42s; }
.timeline-item:nth-child(2) { animation-delay: 0.52s; }
.timeline-item:nth-child(3) { animation-delay: 0.62s; }

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(196, 165, 123, 0.16);
  border: 1px solid rgba(196, 165, 123, 0.26);
  position: relative;
  margin-top: 2px;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-title {
  display: block;
  margin-bottom: 4px;
  color: var(--espresso);
  font-weight: 600;
}

.timeline-copy {
  margin: 0;
  color: var(--brown);
  font-size: 14px;
}

.confirmation-closing {
  margin: 0 0 var(--space-6);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--brown);
}

.confirmation-trust,
.confirmation-footer {
  margin: 0;
  text-align: center;
  color: var(--taupe);
}

.confirmation-trust {
  font-size: 12px;
  margin-bottom: var(--space-3);
}

.confirmation-footer {
  font-size: 13px;
}

.confirmation-actions {
  margin-top: var(--space-7);
}

.share-button {
  width: 100%;
}

.encouragement-toast {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-toast);
  padding: 0 var(--space-5);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
  text-align: center;
}

.encouragement-toast.visible {
  opacity: 1;
}

.funnel-footer {
  padding: 0 var(--space-5) var(--space-7);
}

.funnel-trust-bar {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 20px 12px;
  font-size: 12px;
  color: var(--taupe);
  flex-wrap: wrap;
}

body[data-theme="redirect"] .funnel-trust-bar,
body[data-theme="redirect"] .funnel-compliance {
  color: rgba(248, 246, 243, 0.68);
}

.funnel-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.funnel-trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
}

.funnel-compliance {
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
  color: var(--taupe);
  font-size: 12px;
}

.lock-glyph {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  margin-right: 6px;
  vertical-align: -1px;
}

.lock-glyph::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: -5px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

@keyframes arc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

@keyframes dust-fall {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
    transform: translateY(24px) scale(1);
  }
}

@keyframes timeline-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .stepper-label {
    display: block;
  }

  .step-title {
    font-size: 32px;
  }

  .name-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-grid.style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .upload-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .redirect-text {
    font-size: 34px;
  }

  .confirmation-card {
    padding: var(--space-10) var(--space-8);
  }

  .confirmation-title {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
