@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  background: #fff6f8;
  color: #2a1b21;
  min-height: 100vh;
  line-height: 1.6;
  overscroll-behavior: none;
}

body.modal-locked {
  overflow: hidden;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.site-brand {
  text-align: center;
  margin: 1.2rem 0 0.6rem;
}

body[data-result-mode] .site-brand {
  margin-top: 4.6rem;
}

.site-brand img {
  width: 420px;
  max-width: 90vw;
  filter: drop-shadow(0 6px 22px rgba(234, 110, 137, 0.3));
}

.heart-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.95) brightness(1);
}

.hero-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(234, 110, 137, 0.08), rgba(255, 255, 255, 0.9));
  z-index: -1;
}

.page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  padding: 4rem 2rem 6rem;
}

.section-shell {
  width: min(900px, 100%);
}

@media (min-width: 980px) {

  body[data-result-mode="sales"] .section-shell,
  body[data-result-mode="sales-direct"] .section-shell,
  body[data-result-mode="upgrade"] .section-shell,
  body[data-result-mode="recovery"] .section-shell {
    width: min(900px, 100%);
  }

  body[data-result-mode="sales"] .result-plan-column,
  body[data-result-mode="sales-direct"] .result-plan-column,
  body[data-result-mode="upgrade"] .result-plan-column,
  body[data-result-mode="recovery"] .result-plan-column {
    width: 80%;
    margin: 0 auto;
  }

  body[data-result-mode="sales"] .result-panel,
  body[data-result-mode="sales-direct"] .result-panel,
  body[data-result-mode="upgrade"] .result-panel,
  body[data-result-mode="recovery"] .result-panel {
    width: 80%;
    margin: 0 auto 2rem;
  }

  .plan-offer-card__image {
    width: min(520px, 100%);
    margin: 0 auto;
  }
}

.journey-step {
  display: none;
}

.journey-step.is-active {
  display: block;
}

.quiz__card,
.bridge__card {
  background: #ffffff;
  border: 1px solid rgba(234, 110, 137, 0.15);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(234, 110, 137, 0.12);
}

.quiz__card {
  padding: 2.5rem;
}

.bridge__card {
  padding: 2.5rem;
}

.bridge__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a1b21;
  margin: 0;
}

.bridge__list {
  list-style: none;
  padding-left: 1rem;
  margin: 0 0 0.5rem;
  color: #5c3a45;
}

.bridge__list li::before {
  content: "•";
  color: #ea6e89;
  margin-right: 0.35rem;
}

.bridge__list--icons li::before {
  content: "";
  margin-right: 0;
}

.bridge__cta-lead {
  font-weight: 700;
  color: #ea6e89;
  margin: 1rem 0 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bridge__cta {
  align-self: flex-end;
  margin-top: 0.5rem;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  border: none;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(234, 110, 137, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bridge__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(234, 110, 137, 0.35);
}

.bridge__cta--ghost {
  background: transparent;
  border: 1px solid rgba(234, 110, 137, 0.35);
  color: #ea6e89;
  box-shadow: none;
}

.bridge__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: saturate(0.6);
}

.bridge__nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bridge__cta--primary {
  border: none;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  box-shadow: 0 15px 40px rgba(234, 110, 137, 0.3);
}

.bridge__cta.is-hidden {
  display: none !important;
}

.quiz__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #5c3a45;
}

.quiz__lead-image {
  width: min(680px, 90vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.quiz__progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quiz__progress-track {
  width: 100%;
  height: 6px;
  background: rgba(234, 110, 137, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.quiz__progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step h3 {
  margin: 0 0 2rem;
  font-size: 1.45rem;
  text-align: start;
}

.quiz-step__subtitle {
  margin: 0 0 1rem;
  color: #7c5c68;
}

.quiz-step.is-buyer-flow h3 {
  display: none;
}

.quiz-step.is-buyer-flow .quiz-step__subtitle {
  text-align: center;
}

.quiz-step--template {
  text-align: center;
}

.quiz-step--photo {
  text-align: center;
}

.photo-upload {
  width: min(520px, 100%);
  margin: 0.5rem auto 1rem;
}

.photo-upload__label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: #4a2e37;
}

.photo-upload__label input[type="file"] {
  margin-top: 0.5rem;
}

.photo-upload__hint {
  margin: 0.4rem 0 0;
  color: #7c5c68;
  font-size: 0.9rem;
}

.photo-upload__preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.75rem;
}

.photo-upload__preview[hidden] {
  display: none;
}

.photo-upload__letter-preview {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 32px rgba(128, 24, 63, 0.18);
  margin-bottom: 0.75rem;
}

.photo-upload__letter-preview img {
  width: 100%;
  display: block;
}

.photo-upload__letter-preview:not([hidden])+.photo-upload__example {
  display: none;
}

.photo-upload__example {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 28px rgba(128, 24, 63, 0.16);
  margin-bottom: 0.75rem;
}

.photo-upload__example img {
  width: 100%;
  display: block;
}

[data-photo-upload][hidden] {
  display: none;
}

[data-photo-upload-button][hidden] {
  display: none;
}

.photo-upload__preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.photo-upload__change {
  border: none;
  background: #cc6178;
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(204, 97, 120, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.photo-upload__change:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(204, 97, 120, 0.4);
}

.photo-upload__edit {
  border: 2px solid #cc6178;
  background: transparent;
  color: #b44862;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.photo-upload__edit:hover {
  background: rgba(204, 97, 120, 0.08);
}

.photo-upload__default {
  border: 2px dashed rgba(204, 97, 120, 0.5);
  background: rgba(204, 97, 120, 0.08);
  color: #b44862;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 0.65rem;
}

.photo-upload__default:hover {
  background: rgba(204, 97, 120, 0.14);
}

.photo-upload__status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7c5c68;
}

.photo-upload__status[data-state="success"] {
  color: #1f9b6e;
}

.photo-upload__status[data-state="error"] {
  color: #b02a3d;
}

.photo-upload__footer {
  margin-top: 1rem;
}

.photo-upload__footer .delivery-button {
  width: 100%;
}

.template-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto 2rem;
  max-width: 420px;
}

.template-picker.is-hidden {
  display: none;
}

.template-picker__select {
  border: none;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 18px 45px rgba(234, 110, 137, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-picker__select:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 55px rgba(234, 110, 137, 0.35);
}

.template-picker__select.is-hidden {
  display: none;
}

.template-picker__preview {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  border: 2px dashed rgba(234, 110, 137, 0.35);
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 18px 45px rgba(234, 110, 137, 0.08);
}

.template-picker__preview[hidden] {
  display: none !important;
}

.template-picker__preview img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.template-picker__preview span {
  font-size: 0.9rem;
  color: #7c5c68;
  font-weight: 600;
}

.quiz-options--audio {
  display: grid;
  gap: 0.75rem;
}

.quiz-options-scroll--audio {
  position: relative;
  max-height: min(48vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 0.3rem 0.55rem 0.45rem 0.15rem;
}

.quiz-options-scroll--audio .quiz-options--audio {
  padding: 0;
}

.quiz-option--audio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  position: relative;
  z-index: 1;
}

.quiz-options-scroll--audio .quiz-option--audio:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .quiz-options-scroll--audio {
    max-height: min(52vh, 360px);
  }
}

.quiz-option__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.quiz-option--audio strong {
  font-size: 1rem;
  font-weight: 700;
}

.quiz-option--audio span {
  font-size: 0.85rem;
  color: #7c5c68;
}

.quiz-option__play {
  border: none;
  background: rgba(234, 110, 137, 0.12);
  color: #c24a66;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.quiz-option__play i {
  font-size: 1rem;
}

.quiz-option__play:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(234, 110, 137, 0.2);
}

.quiz-option__play.is-disabled,
.quiz-option__play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.quiz-option--audio.is-selected .quiz-option__play {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.quiz-final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin: 1.25rem auto 1rem;
  width: min(520px, 100%);
}

.quiz-final-back {
  min-width: 180px;
}

.quiz-submit {
  min-width: min(280px, 100%);
}

.quiz-final-back,
.quiz-submit {
  flex: 1;
}

.quiz-loading {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  color: #7c5c68;
  font-weight: 600;
  margin-top: 0.5rem;
}

.quiz-loading.is-active {
  display: flex;
}

.quiz-loading__bar {
  width: min(320px, 100%);
  height: 6px;
  border-radius: 999px;
  background: rgba(234, 110, 137, 0.2);
  overflow: hidden;
  display: block;
}

.quiz-loading__bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbd3e1, #ea6e89, #fbd3e1);
  animation: quizLoading 1.4s infinite;
}

@keyframes quizLoading {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(30%);
  }

  100% {
    transform: translateX(120%);
  }
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.quiz-options[data-state-key="relationship"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-inline: auto;
}

.quiz-options[data-state-key="relationship"] .quiz-option {
  height: 90px;
  padding: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quiz-step[data-dynamic="true"] .quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.quiz-step[data-dynamic="true"] .quiz-option {
  width: 100%;
  height: 90px;
  padding: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quiz-options[data-state-key="letterType"] {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 720px;
  margin-inline: auto;
}

.quiz-options[data-state-key="letterType"] .quiz-option {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  line-height: 1.25;
}

.quiz-options--media {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.quiz-option--media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem;
}

.quiz-option--media img {
  width: 100%;
  max-width: 220px;
  height: 160px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(234, 110, 137, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.quiz-option--media span {
  font-weight: 700;
}

.quiz-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  background: #fff8fb;
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.15);
  margin: 0 auto 1rem;
}

.quiz-tab {
  border: none;
  background: transparent;
  color: #7c5c68;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-tab--pulse {
  animation: tabGlow 1.4s ease-in-out infinite;
}

.quiz-tab--pulse.quiz-tab.is-active {
  animation: none;
}

.quiz-tab--pulse:hover {
  animation-play-state: paused;
}

.quiz-tab--pulse:focus-visible {
  outline: 2px solid rgba(234, 110, 137, 0.6);
  outline-offset: 2px;
}

.quiz-tab--pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(234, 110, 137, 0.16) 0%, rgba(234, 110, 137, 0) 60%);
  z-index: -1;
  pointer-events: none;
}

.quiz-tab.is-active {
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  color: #fff;
  box-shadow: 0 10px 22px rgba(234, 110, 137, 0.2);
}

@keyframes tabGlow {
  0% {
    box-shadow: 0 0 0px rgba(234, 110, 137, 0.35);
  }

  50% {
    box-shadow: 0 0 16px rgba(234, 110, 137, 0.6);
  }

  100% {
    box-shadow: 0 0 0px rgba(234, 110, 137, 0.35);
  }
}

.quiz-tab-panel {
  display: none;
}

.quiz-tab-panel.is-active {
  display: block;
}

.quiz-option {
  border: 2px solid rgba(234, 110, 137, 0.3);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #f8c0d6, #ce6a8fee);
  background: #f7f6f6;
  color: #ffffff;
  color: #2a1b21;
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(233, 114, 149, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.quiz-option:hover {
  border-color: rgba(234, 110, 137, 0.5);
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, #f6b2cc, #e5588f);
  box-shadow: 0 14px 28px rgba(233, 114, 149, 0.32);
  filter: saturate(1.05);
}

.quiz-option.is-selected {
  border-color: #d92e62;
  color: white;
  background: linear-gradient(135deg, #f8a1bc, #c91d54);
  box-shadow: 0 18px 34px rgba(210, 52, 95, 0.42);
}

.plan-card__choices .quiz-option.is-selected {
  color: #fff;
}

.plan-card__choices .quiz-option:hover,
.plan-card__choices .quiz-option:active,
.plan-card__choices .quiz-option:focus,
.plan-card__choices .quiz-option:focus-visible {
  color: #fff;
  border-color: #d92e62;
  background: linear-gradient(135deg, #f8a1bc, #c91d54);
  box-shadow: 0 18px 34px rgba(210, 52, 95, 0.42);
}

.plan-card__choices .quiz-option:active,
.plan-card__choices .quiz-option:focus-visible {
  color: #fff;
}

.quiz-input-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a2e37;
}

.quiz-secret-toggle {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #4a2e37;
  font-size: 0.96rem;
  line-height: 1.3;
  cursor: pointer;
}

.quiz-secret-toggle input[type="checkbox"] {
  margin-top: 0;
  width: 18px;
  height: 18px;
  accent-color: #d92e62;
  flex: 0 0 auto;
}

.quiz-other-input {
  display: none;
  margin-top: 0.85rem;
}

.quiz-other-input.is-active {
  display: block;
}

.quiz-step input[type="text"],
.quiz-step input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.2);
  background: #fff;
  color: #2a1b21;
  font-size: 1.1rem;
}

.quiz-step input[type="text"]::placeholder,
.quiz-step input[type="tel"]::placeholder {
  color: #888;
}

.quiz-step textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.2);
  background: #fff;
  color: #2a1b21;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  resize: vertical;
}

.quiz-step textarea::placeholder {
  color: #888;
}

.quiz-input-hint {
  font-size: 0.9rem;
  color: #5a3d4a;
  margin: 0.35rem 0 1rem;
}

.quiz__hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #7c5c68;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quiz__nav.is-hidden {
  display: none;
}

.quiz-nav {
  flex: 1;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.25);
  background: #fff;
  color: #ea6e89;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.quiz-nav.is-hidden {
  display: none;
}

.quiz-nav--next {
  border: none;
  background: linear-gradient(135deg, #f8a1bc, #CD6178);
  color: #fff;
  box-shadow: 0 0 0 rgba(205, 97, 120, 0.25), 0 10px 26px rgba(205, 97, 120, 0.4);
  animation: quizNextPulse 1.45s ease-in-out infinite;
}

.quiz-nav--next:hover {
  box-shadow: 0 0 0 10px rgba(205, 97, 120, 0), 0 14px 30px rgba(205, 97, 120, 0.48);
}

.quiz-nav--next:disabled {
  animation: none;
  box-shadow: none;
}

.quiz-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-step--templates~.quiz__nav {
  justify-content: center;
}

.quiz-step--templates~.quiz__nav .quiz-nav--prev {
  flex: 0 1 auto;
  min-width: 180px;
}

.quiz-step--templates~.quiz__nav .quiz-nav--next {
  display: none;
}

@keyframes quizNextPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(205, 97, 120, 0.38), 0 10px 26px rgba(205, 97, 120, 0.4);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(205, 97, 120, 0), 0 14px 30px rgba(205, 97, 120, 0.5);
    filter: brightness(1.08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(205, 97, 120, 0), 0 10px 26px rgba(205, 97, 120, 0.4);
    filter: brightness(1);
  }
}

.phone-confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(42, 27, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.phone-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.phone-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
}

.phone-confirm-modal__content {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(234, 110, 137, 0.25);
  border: 1px solid rgba(234, 110, 137, 0.2);
  z-index: 1;
}

.phone-confirm-modal__content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.phone-confirm-modal__content p {
  margin: 0 0 1rem;
  color: #5a3d4a;
}

.phone-confirm-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #a16374;
}

.phone-confirm-modal input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.2);
  background: #fff;
  color: #2a1b21;
  font-size: 1.05rem;
}

.phone-confirm-consent {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0 0.35rem;
  color: #3c2730;
  font-size: 0.95rem;
}

.phone-confirm-consent input {
  margin-top: 0;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.phone-confirm-modal__content .phone-confirm-error {
  margin: 0 0 1rem;
  color: #1f9d49;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.phone-confirm-modal .bridge__cta {
  width: 100%;
  margin-top: 0.25rem;
}

.quiz__success {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6ee7b7;
  min-height: 1.2em;
}

.result-card {
  padding: 2.5rem;
}

.result__header h2 {
  margin: 0;
  color: #2a1b21;
}

.result__status {
  margin: 0.25rem 0 0;
  color: #5c3a45;
  font-size: 0.95rem;
}

.result__status.is-error {
  color: #d1436c;
}

.result__status.is-success {
  color: #2c9c7c;
}

.result__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.text-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.text-actions--primary {
  justify-content: center;
}

.text-actions--editor {
  justify-content: flex-start;
}

.text-actions--primary.is-inline {
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.variation-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.variation-tab {
  border: 1px solid rgba(234, 110, 137, 0.2);
  background: #fff;
  color: #7c5c68;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.variation-tab:hover {
  border-color: rgba(234, 110, 137, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(234, 110, 137, 0.12);
}

.variation-tab.is-active {
  border-color: #d92e62;
  background: linear-gradient(135deg, #fbd3e1, #f19aba);
  color: #2a1b21;
  box-shadow: 0 12px 28px rgba(210, 52, 95, 0.2);
}

.result__textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(234, 110, 137, 0.25);
  background: #fff;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
  resize: vertical;
  min-height: 200px;
  color: #2a1b21;
}

.result__textarea:focus {
  outline: 2px solid rgba(234, 110, 137, 0.4);
  border-color: transparent;
}

.result__generate {
  min-width: 180px;
  text-align: center;
}

.result__output {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(234, 110, 137, 0.12);
  padding-top: 1.2rem;
}

.result__output.is-visible {
  display: flex;
}

.result__image {
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  border: 1px solid rgba(234, 110, 137, 0.25);
  box-shadow: 0 20px 60px rgba(234, 110, 137, 0.15);
}

.result__output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.result__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  min-width: 180px;
  border: none;
  box-shadow: 0 14px 28px rgba(234, 110, 137, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #fff;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
}

.result__action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(234, 110, 137, 0.25);
}

.result__action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
  row-gap: 1rem;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.5rem;
  align-items: start;
}

.template-option {
  position: relative;
  padding: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 150px;
  aspect-ratio: 7 / 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.template-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(234, 110, 137, 0.18);
}

.template-option.is-selected {
  border-color: #ea6e89;
  box-shadow: 0 15px 40px rgba(234, 110, 137, 0.25);
  transform: scale(1.01);
  z-index: 2;
}

.template-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.template-modal--editor .template-modal__content {
  width: min(640px, 90vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  height: min(92vh, 720px);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.template-modal--editor .template-modal__content form {
  overflow-y: auto;
  padding-right: 0.25rem;
  min-height: 0;
  flex: 1 1 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 1.5rem 1.25rem 4rem;
    gap: 2rem;
  }

  .quiz__card {
    padding: 1.75rem;
  }

  .bridge__card {
    padding: 1.75rem;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-options[data-state-key="relationship"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .quiz-options[data-state-key="relationship"] .quiz-option {
    height: 80px;
    padding: 0.55rem;
    font-size: 0.9rem;
  }

  .quiz-options[data-state-key="letterType"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .quiz-options[data-state-key="letterType"] .quiz-option {
    height: 80px;
    padding: 0.55rem;
    font-size: 0.9rem;
  }

  .quiz-step[data-dynamic="true"] .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .quiz-step[data-dynamic="true"] .quiz-option {
    height: 80px;
    padding: 0.55rem;
    font-size: 0.9rem;
  }

  .quiz-nav {
    letter-spacing: 0.05em;
  }

  .result-card {
    padding: 1.75rem;
  }

  .result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result__download {
    justify-content: center;
  }

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
  }
}

.result__editor {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.result__editor.is-visible {
  display: flex;
}

.result__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.result__field {
  width: 100%;
}

.result__textarea--body {
  min-height: 220px;
}

.result__textarea--compact {
  min-height: 20px;
  max-height: 50px;
  padding: 0.65rem 1rem;
  resize: none;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .variation-tabs {
    display: flex;
    flex-direction: column;
  }

  .variation-tab {
    width: 100%;
  }

  .result__output-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result__output-actions>* {
    width: 100%;
    text-align: center;
  }

  .result__output-actions .result__action-btn {
    width: 100%;
  }

}

.result__change-template {
  background: linear-gradient(130deg, #f7adc1, #f17ca0);
  color: #fff;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.result-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.result-plan-column {
  max-width: 100%;
  width: 100%;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.result-plan-column[hidden] {
  display: none !important;
}

.result-panel {
  background: #fff;
  border-radius: 26px;
  padding: min(2.5rem, 6vw);
  box-shadow: 0 25px 80px rgba(234, 110, 137, 0.15);
  margin-bottom: 2rem;
  min-height: 520px;
  width: 100%;
}

.result-panel__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-panel__logo {
  width: min(680px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

.result-panel__status {
  color: #7c5c68;
  font-weight: 600;
}

.result-panel__status.is-error {
  color: #d92e62;
}

.result-panel__status.is-success {
  text-align: center;
  color: #1f8f63;
}

.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  text-align: center;
  color: #76405a;
}

.result-loading[hidden] {
  display: none;
}

.result-loading__spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid rgba(241, 153, 174, 0.25);
  border-top-color: #f199ae;
  animation: loadingSpin 0.9s linear infinite;
}

.result-loading p {
  font-weight: 600;
}

.result-retry {
  margin-top: 1rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(234, 110, 137, 0.25);
}

.result-retry[hidden] {
  display: none !important;
}

@keyframes loadingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.section-shell [data-result-shell][hidden] {
  display: none;
}

.result-panel__visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-panel__lead {
  font-weight: 700;
  color: #1f8f63;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.result-panel__template-note {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 600;
  color: #f5f5f5;
  background: #CD6178;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  z-index: 2;
  pointer-events: none;
}

.result-panel__media {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.result-panel__media.is-clickable {
  cursor: pointer;
}

.result-panel__media img,
.result-panel__media canvas {
  pointer-events: none;
}

.result-zoom-btn {
  align-self: center;
  margin-top: -0.25rem;
  border: none;
  background: none;
  color: #7c5c68;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.result-zoom-btn::before {
  content: "+";
  font-size: 1rem;
  font-weight: 700;
}

.result-zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.result-zoom-btn:not(:disabled):hover {
  color: #ea6e89;
}

.result-panel__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  display: none;
  background: #fff;
}

.result-panel__image.is-visible {
  display: block;
}

.result-panel__text-preview {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  color: #2b1a21;
  text-align: left;
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.7);
}

.result-panel__text-preview h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.result-panel__text-preview p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.result-panel__text-preview p:last-child {
  font-weight: 600;
  margin-top: 0.35rem;
}

.result-skeleton {
  width: 100%;
  aspect-ratio: 3 / 4.5;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(234, 110, 137, 0.08), rgba(234, 110, 137, 0.15), rgba(234, 110, 137, 0.08));
  background-size: 200% 100%;
  animation: pulseSkeleton 1.4s infinite;
}

@keyframes pulseSkeleton {
  0% {
    background-position: 200% 0;
  }

  50% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.result-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.result-panel__actions .bridge__cta,
.result-panel__actions .bridge__cta--ghost {
  min-width: 220px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.result-error-cta {
  border: none;
  border-radius: 999px;
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(234, 110, 137, 0.25);
  align-self: center;
  margin-top: 0.25rem;
}

.result-error-cta[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 4, 6, 0.85);
  backdrop-filter: blur(6px);
  z-index: 999;
  padding: 1.5rem;
}

.image-modal.is-open {
  display: flex;
}

.image-modal__dialog {
  position: relative;
  width: min(1200px, 100%);
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal__canvas {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.image-modal__close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: #eb748e;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(235, 116, 142, 0.35);
}

.image-modal__close:hover {
  background: #fff;
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgb(247, 173, 193);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.canvas-overlay[hidden] {
  display: none;
}

.canvas-overlay__spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: loadingSpin 0.9s linear infinite;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editor-size-controls {
  border: 1px solid rgba(234, 110, 137, 0.25);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
  background: rgba(235, 116, 142, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.editor-size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #5e3a45;
  font-size: 0.95rem;
}

.editor-size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.editor-size-options[data-editor-font-options="binary"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-size-option {
  border-radius: 12px;
  border: 1px solid rgba(235, 116, 142, 0.35);
  background: #fff;
  color: #744658;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.editor-size-option.is-selected {
  background: linear-gradient(130deg, #ea6e89, #f3a2b5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(234, 110, 137, 0.2);
}

.editor-size-option:not(.is-selected):hover {
  border-color: rgba(235, 116, 142, 0.8);
  color: #eb748e;
}

.editor-size-option:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.editor-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #593945;
}

.editor-input {
  border-radius: 14px;
  border: 1px solid rgba(234, 110, 137, 0.25);
  padding: 0.85rem 1rem;
  background: rgba(235, 116, 142, 0.05);
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  resize: vertical;
  width: 100%;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.editor-input--compact {
  min-height: 48px;
  resize: none;
}

.editor-input--body {
  min-height: 220px;
  resize: none;
  overflow: hidden;
}

.editor-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.editor-actions .delivery-button {
  width: 100%;
}

@media (min-width: 768px) {
  .editor-actions {
    flex-direction: row;
  }

  .editor-actions .delivery-button {
    width: 100%;
  }
}

.editor-cancel {
  border: 1px solid rgba(234, 110, 137, 0.35);
  background: #fff;
  color: #cc6178;
  font-weight: 600;
  cursor: pointer;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-align: center;
}

.editor-variations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(214, 114, 136, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.editor-variations__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #8f3556;
}

.editor-variations__tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  margin-left: auto;
}

.editor-variations__btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 114, 136, 0.4);
  border-radius: 10px;
  background: #fff;
  color: #8f3556;
  font-weight: 700;
  cursor: pointer;
}

.editor-variations__btn--add {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
}

.editor-variations__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.editor-variations__btn.is-active {
  border-color: transparent;
  background: linear-gradient(140deg, #ea6e89, #f092ab);
  color: #fff;
}

.editor-like {
  border: 1px solid rgba(214, 114, 136, 0.28);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.7);
}

.editor-like__question {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #8f3556;
}

.editor-like__actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
}

.editor-like__actions .delivery-button {
  flex: 1 1 0;
  min-width: 0;
}

.editor-like__actions [data-editor-like-yes] {
  background: #2faa66;
  color: #fff;
  border: 2px solid rgba(204, 97, 120, 0.55);
}

.editor-like__actions [data-editor-like-no] {
  background: #d94a5c;
  color: #fff;
  border: 2px solid rgba(204, 97, 120, 0.55);
}

.editor-like__status {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: #7e4c5e;
}

.template-modal--rewrite .template-modal__content {
  width: min(640px, 92vw);
  height: auto;
  max-height: min(92dvh, 680px);
}

.editor-rewrite__hint {
  margin: 0 0 0.4rem;
  color: #6f4d58;
  font-size: 0.9rem;
}

.editor-rewrite__counter {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #7e4c5e;
}

.editor-rewrite__feedback {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #bf2f61;
  min-height: 1.1em;
}

.plan-card--result {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  touch-action: pan-y;
}

[data-plan-block][hidden] {
  display: none !important;
}

.plan-card__badge {
  width: 100%;
  align-self: center;
}

.plan-card__lead {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: start;
  color: #d92e62;
  margin: 1.5rem 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.result-plan-column .plan-card__lead {
  text-transform: uppercase;
}

.plan-card__lead+.plan-card__sublead {
  margin-top: 0;
}

.plan-card__sublead {
  margin: 0;
  font-size: 1rem;
  color: #5c3a45;
  line-height: 1.4;
  text-align: start;
}

.plan-card__sublead--highlight {
  color: #d92e62;
  font-weight: 700;
}

.plan-card__benefits {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 1rem;
  color: #5c3a45;
  line-height: 1.4;
}

.plan-card__benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-card__benefits i {
  color: #1f9b6e;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.plan-card__highlight {
  margin: 0.6rem 0 0.2rem;
  border-radius: 18px;
  border: 2px dashed rgba(216, 90, 120, 0.4);
  background: #f8f1f3;
  box-shadow: 0 12px 26px rgba(75, 32, 45, 0.12);
  overflow: hidden;
  padding: 0;
  text-align: start;
}

.plan-card__highlight strong {
  display: block;
  color: #4b2a34;
  font-size: 0.95rem;
  line-height: 1.25;
  background: #f1d7de;
  padding: 0.65rem 0.9rem;
}

.plan-card__highlight p {
  margin: 0;
  color: #5c3a45;
  font-size: 0.95rem;
  line-height: 1.35;
  background: #fff;
  padding: 0.85rem 0.9rem;
}

.scroll-toast {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, #f05b8f, #d92e62);
  color: #fff;
  border-radius: 0;
  box-shadow: 0 16px 30px rgba(217, 46, 98, 0.35);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translateY(-120%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 80;
}

.scroll-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-toast {
    transition: none;
    transform: translateX(0);
  }

  .quiz-nav--next {
    animation: none;
  }

  .plan-cta--pulse {
    animation: none;
  }
}

.plan-card__price {
  margin: 1rem 0 1.5rem;
  border-radius: 18px;
  border: 2px dashed rgba(216, 90, 120, 0.4);
  background: #f8f1f3;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(75, 32, 45, 0.12);
  text-align: center;
  touch-action: pan-y;
  pointer-events: none;
  line-height: 1.2;
}

.plan-card__price-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b2a34;
  background: #f1d7de;
  padding: 0.65rem 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.plan-card__price-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c54162;
  letter-spacing: 0.02em;
  background: #fff;
  padding: 0.85rem 0.9rem;
  text-align: center;
}

.plan-card__price-note {
  font-size: 0.85rem;
  color: #6b4653;
  font-weight: 400;
  padding: 0;
  margin: 0.25rem 0 0;
  text-align: center;
}

.plan-card__price-anchor {
  display: none;
  font-size: 1rem;
  color: #855060;
  text-align: center;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  background: #fff;
  padding: 0.85rem 0.9rem 0;
}

[data-plan-price][data-plan-price-state="recovery"] .plan-card__price-anchor:not([hidden]) {
  display: block;
}

.plan-card__price-anchor[hidden] {
  display: none !important;
}

.order-bump {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 18px;
  border: 2px dashed rgba(216, 90, 120, 0.4);
  background: #f8f1f3;
  box-shadow: 0 12px 26px rgba(75, 32, 45, 0.12);
  margin-bottom: 1.4rem;
  color: #4b2a34;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.order-bump * {
  overscroll-behavior: auto;
}


.order-bump.is-selected {
  border-color: #d85a78;
  background: #fdeef2;
  box-shadow: 0 14px 28px rgba(216, 90, 120, 0.2);
}

.order-bump__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: #f1d7de;
  color: #4b2a34;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
}

.order-bump.is-selected .order-bump__header {
  background: #d85a78;
  color: #fff;
}

.order-bump__title {
  line-height: 1.2;
}

.order-bump__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
}

.order-bump__status[hidden] {
  display: none;
}

.order-bump__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  background: #f9f5f6;
  border-top: 1px solid rgba(216, 90, 120, 0.12);
  border-bottom: 1px dashed rgba(216, 90, 120, 0.2);
  touch-action: pan-y;
  pointer-events: none;
}

.order-bump.is-selected .order-bump__body {
  background: #fff;
}

.order-bump__content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.order-bump__content h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #43232d;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.order-bump__content p {
  margin: 0;
  font-size: 0.85rem;
  color: #7b5a66;
  line-height: 1.4;
}

.order-bump__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 96px;
}

.order-bump__old {
  font-size: 0.82rem;
  color: #9a7a86;
  text-decoration: line-through;
}

.order-bump__discount {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e36a88;
  color: #fff;
  letter-spacing: 0.02em;
}

.order-bump__new {
  font-size: 1rem;
  font-weight: 700;
  color: #c54162;
}

.order-bump__toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: #f1d7de;
  color: #4b2a34;
  font-weight: 600;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.order-bump.is-selected .order-bump__toggle {
  background: #d85a78;
  color: #fff;
}

.order-bump__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-bump__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d85a78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.order-bump__check::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #d85a78;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.order-bump__toggle input:checked+.order-bump__check::after {
  opacity: 1;
  transform: scale(1);
}

.order-bump.is-selected .order-bump__check {
  border-color: #fff;
  background: transparent;
}

.order-bump.is-selected .order-bump__check::after {
  background: #fff;
}

.order-bump__toggle-text {
  font-size: 0.9rem;
}


@media (max-width: 640px) {
  .order-bump__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-bump__prices {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }
}

.plan-card__highlight {
  margin: 0.75rem 0 0;
  text-align: start;
}

.plan-offers {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  grid-template-columns: 1fr;
}

.plan-countdown {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.plan-offer-card {
  border: 1px solid rgba(234, 110, 137, 0.18);
  border-radius: 18px;
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 20px 48px rgba(234, 110, 137, 0.12);
  width: 100%;
}

.plan-offer-card--full {
  border-color: rgba(234, 110, 137, 0.45);
  box-shadow: 0 22px 50px rgba(234, 110, 137, 0.2);
}

.plan-offer-card__image {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.plan-offer-card__title {
  margin: 0;
  font-weight: 700;
  color: #5c3a45;
}

.plan-offer-card .plan-cta {
  width: 100%;
}

.plan-offer-card__link {
  background: #fff;
  border: 1px solid #cd6178;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  color: #cd6178;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.plan-offer-card__link:hover {
  color: #d92e62;
  border-color: #d92e62;
}

.video-example__player {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f1f3;
}

.video-example__media {
  width: 100%;
  display: block;
}

.video-example__toggle {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-example__toggle:focus-visible {
  outline: 3px solid rgba(235, 116, 142, 0.35);
  outline-offset: 3px;
}

.video-example__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eb748e;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(234, 110, 137, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.video-example__toggle:hover .video-example__icon {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(234, 110, 137, 0.4);
}

.video-example__toggle.is-playing .video-example__icon {
  opacity: 0;
  transform: scale(0.9);
  box-shadow: none;
}

.howit-modal.has-video-controls .video-example__toggle.is-playing {
  pointer-events: none;
}

.template-modal--video-example .template-modal__content {
  width: min(720px, 92vw);
}

@media (min-width: 980px) {
  .plan-offers {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.plan-benefits+.plan-card__lead {
  margin-top: 1.5rem;
}

.plan-card__lead-image {
  display: block;
  width: min(320px, 100%);
  margin: 2rem auto 2.25rem;
}

@media (min-width: 1024px) {
  .plan-card__lead-image {
    width: 560px;
    margin: 2.25rem auto 2.5rem;
  }
}

.plan-card__choices {
  margin: 1rem 0 1.5rem;
}

.plan-card__price-text {
  font-weight: 700;
  color: #d92e62;
  text-align: center;
  margin: 0.25rem 0 0.5rem;
  text-transform: uppercase;
}

.plan-card__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #5c3a45;
  text-align: left;
}

.plan-card__title+.plan-benefits+.plan-card__title {
  margin-top: 1.5rem;
}

.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: #5c3a45;
  font-size: 0.95rem;
}

.plan-benefits li {
  position: relative;
  padding-left: 2.4rem;
  line-height: 1.4;
}

.plan-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.8rem;
  height: 1.8rem;
  background: url("../assets/sparkles.png") no-repeat center / contain;
}

.plan-card__checkout {
  margin: 0;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(234, 110, 137, 0.2);
  padding: 1.2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-plan__image {
  width: 80%;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}

.plan-card__checkout[hidden] {
  display: none;
}

.plan-card__instructions {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(234, 110, 137, 0.18);
  background: white;
  padding: 1.2rem 1.5rem;
  color: black;
  width: 100%;
}

.plan-card__warning {
  margin: 0;
  border-radius: 18px;
  border: 2px solid #fff;
  background: #db6e86;
  padding: 1rem 1.2rem;
  color: #fff;
  width: 100%;
}

.plan-card__warning .checkout-feedback {
  color: #fff;
}

.plan-card__warning p {
  margin: 0;
}

.plan-card__warning p:first-child {
  margin-bottom: 0.6rem;
}

.plan-card__warning .plan-benefits {
  margin-bottom: 0.6rem;
  color: #fff;
}

.plan-card__warning .plan-benefits li {
  color: #fff;
}

.plan-card__warning .plan-benefits li::before {
  background: url("../assets/sparklesWhite.png") no-repeat center / contain;
}

.plan-card__price-note {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(234, 110, 137, 0.18);
  padding: 1rem 1.2rem;
  color: #1f1f1f;
}

.plan-card__price-note .checkout-feedback {
  color: #1f1f1f;
  font-weight: 400;
}

.plan-card__price-note p {
  margin: 0;
}

.checkout-timer {
  margin: 0;
  border-radius: 18px;
  background: transparent;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.checkout-timer__unit {
  min-width: 0;
  flex: 1;
  border-radius: 16px;
  border: 2px solid white;
  background: #db6e86;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.7rem;
  text-align: center;
  font-size: 20px;
}

.plan-title {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.plan-title__image {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.checkout-timer[hidden] {
  display: none;
}

.plan-checkout-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.plan-checkout-grid>* {
  width: 100%;
}

.plan-card__instructions p {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.plan-card__instructions ol {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-card__logo-mini {
  width: 120px;
  display: block;
  margin: 1rem auto 0;
}

.has-access-grant [data-plan-block],
.has-access-grant [data-checkout-block],
.has-access-grant [data-checkout-instructions],
.has-access-grant [data-checkout-logo],
.has-access-grant [data-checkout-trigger] {
  display: none !important;
}

.plan-cta--primary {
  font-size: 16px;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.plan-cta {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "Lilita One", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #d24f70;
  box-shadow: none;
  transition: none;
}

.plan-cta--ghost {
  background: transparent;
  color: #cc6178;
  border: 2px solid rgba(204, 97, 120, 0.4);
  box-shadow: none;
}

.plan-cta:active {
  transform: none;
  box-shadow: none;
}

.plan-cta.is-hidden {
  display: none;
}

.plan-cta--pulse {
  animation: planCtaPulse 1.6s ease-in-out infinite;
}

@keyframes planCtaPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(210, 79, 112, 0.5);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(210, 79, 112, 0);
    filter: brightness(1.08);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(210, 79, 112, 0);
    filter: brightness(1);
  }
}

.checkout-code {
  display: none;
}

.checkout-status {
  text-align: start;
  font-weight: 600;
  color: #7c5c68;
  margin: 0.25rem 0;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checkout-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #5a3d4a;
}

.checkout-label input {
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.3);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.checkout-alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkout-alert--warning {
  border: 1px solid #f1cc63;
  background: #fff4c2;
  color: #6e5200;
}

.checkout-alert--warning strong {
  color: #5f4500;
}

.checkout-optional {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a6572;
}

.checkout-submit {
  text-align: center;
}

.checkout-summary {
  font-size: 0.95rem;
  color: #6f4d58;
}

.checkout-summary[hidden] {
  display: none;
}

.checkout-status:empty,
.checkout-feedback:empty,
.checkout-message:empty {
  display: none;
}

.checkout-pix {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(234, 110, 137, 0.2);
}

.checkout-pix.is-visible {
  display: flex;
}

.checkout-pix img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.checkout-code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  text-align: center;
  word-break: break-all;
}

.checkout-feedback {
  color: #1f8f63;
  color: #d92e62;
  font-weight: 600;
  text-align: start;
}

.checkout-message {
  font-weight: 600;
  color: #6f4d58;
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .result-panel {
    padding: 1.25rem 1rem 1.5rem;
    margin-bottom: 1.25rem;
    min-height: auto;
  }

  .result-panel__visual {
    gap: 1rem;
  }

  .result-panel__media {
    min-height: auto;
  }

  .result-panel__actions {
    flex-direction: column;
    margin-top: 0.25rem;
  }

  .result-panel__actions .bridge__cta,
  .result-panel__actions .bridge__cta--ghost {
    width: 100%;
  }

  .quiz-final-cta {
    flex-direction: column-reverse;
    width: 100%;
    margin: 1rem auto;
  }

  .quiz-final-back,
  .quiz-submit {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .result-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fff9fb 100%);
    border-radius: 32px;
    border: 1px solid rgba(234, 110, 137, 0.12);
    padding: clamp(1.5rem, 3vw, 3rem);
    box-shadow: 0 35px 80px rgba(21, 7, 13, 0.1);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    gap: clamp(1rem, 2vw, 2rem);
  }

  .result-panel__header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(234, 110, 137, 0.15);
    margin-bottom: 0;
  }

  .result-panel__logo {
    width: min(520px, 70vw);
  }

  .result-panel__status {
    color: #8c6675;
    font-size: 0.95rem;
  }

  .result-panel__visual {
    gap: clamp(1rem, 2vw, 1.75rem);
  }

  .result-panel__lead {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
  }

  .result-panel__media {
    min-height: clamp(320px, 45vw, 520px);
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(244, 197, 209, 0.45), transparent 65%), #fff;
    border: 1px solid rgba(234, 110, 137, 0.2);
    padding: clamp(1rem, 2vw, 2rem);
  }

  .result-panel__image {
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(17, 6, 14, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }

  .result-panel__actions {
    padding-top: 1rem;
    border-top: 1px solid rgba(234, 110, 137, 0.12);
  }

  .result-panel__actions .bridge__cta,
  .result-panel__actions .bridge__cta--ghost {
    min-width: clamp(200px, 22vw, 260px);
  }

  .plan-card--result {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 30px;
    background: linear-gradient(160deg, #fde7ee, #ffffff);
    border: 1px solid rgba(234, 110, 137, 0.15);
    box-shadow: 0 32px 70px rgba(20, 7, 13, 0.1);
    gap: 1.25rem;
  }

  .plan-card__badge {
    width: 80%;
  }

  .plan-card__lead {
    padding: 0;
    padding-bottom: 20px;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #c23c62;
    line-height: 1.25;
  }

  .plan-card__price-text {
    letter-spacing: 0.08em;
  }

  .plan-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
  }

  .plan-benefits li {
    padding-left: 2.5rem;
    line-height: 1.45;
  }

  .plan-card__checkout {
    border-radius: 26px;
    border: 1px solid rgba(234, 110, 137, 0.18);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    box-shadow: 0 20px 60px rgba(18, 8, 12, 0.08);
  }

  .plan-card__instructions {
    border-radius: 22px;
    border: 1px solid rgba(234, 110, 137, 0.12);
    background: #fff8fb;
    color: #593945;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  .plan-card__instructions p {
    letter-spacing: 0.02em;
  }

  .plan-card__instructions ol {
    font-weight: 600;
  }

  .plan-cta {
    background: linear-gradient(125deg, #f06585, #ea4189);
    box-shadow: 0 15px 35px rgba(234, 110, 137, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  .plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(234, 110, 137, 0.4);
  }

  .plan-cta--ghost {
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .plan-cta--ghost:hover {
    color: #eb748e;
    border-color: rgba(235, 116, 142, 0.8);
  }
}

@media (min-width: 1100px) {
  .result-layout.result-layout--split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 2.5rem;
    align-items: flex-start;
  }

  .result-layout.result-layout--split .result-panel {
    margin-bottom: 0;
  }

  .result-layout.result-layout--split .result-plan-column {
    margin: 0;
    position: sticky;
    top: 2rem;
  }

  .result-layout.result-layout--split .plan-checkout-grid {
    flex-direction: row;
    gap: 1.5rem;
  }

  .result-layout.result-layout--split .plan-checkout-grid>* {
    flex: 1;
  }
}

/* Delivery page */
.delivery-body {
  min-height: 100vh;
}

.delivery-shell {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.delivery-header h1 {
  margin: 0.25rem 0 0;
}

.delivery-kicker {
  text-transform: uppercase;
  font-weight: 700;
  color: #d02f5d;
  letter-spacing: 0.08em;
  margin: 0;
}

.delivery-email {
  margin: 0;
  font-weight: 600;
  color: #6b4553;
}

.delivery-alert {
  width: 100%;
  background: #fff5bf;
  border: 1px solid #f2d06f;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #6e4a00;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(210, 160, 40, 0.18);
  line-height: 1.4;
}

.delivery-alert strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.delivery-alert--pink {
  background: #ffe6f0;
  border-color: #ff9dbd;
  color: #7d2144;
  box-shadow: 0 12px 24px rgba(255, 91, 141, 0.2);
}

.delivery-upsell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.delivery-upsell[hidden] {
  display: none !important;
}

.delivery-upsell__cta {
  width: 100%;
  background: linear-gradient(135deg, #ff5b8d 0%, #ff8fb1 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 16px 40px rgba(255, 91, 141, 0.35) !important;
  animation: upsellPulse 2.2s ease-in-out infinite;
  padding: 0.9rem 1.2rem;
  text-transform: none;
}

.delivery-upsell__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  margin: 0;
  color: #c23a63;
  justify-content: center;
}

.delivery-upsell__price-old {
  font-size: 0.9rem;
  opacity: 0.75;
  text-decoration: line-through;
}

.delivery-upsell__price-new {
  font-size: 1.15rem;
  color: #d02f5d;
}

.delivery-upsell__timer {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b13b60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.delivery-upsell__timer-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b15a76;
}

.delivery-upsell__timer-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #b13b60;
}

.delivery-upsell__box {
  width: 100%;
  background: #fff3f6;
  border: 1px solid rgba(255, 91, 141, 0.25);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(255, 91, 141, 0.12);
}

.delivery-upsell__box[hidden] {
  display: none !important;
}

.delivery-upsell__box-title {
  font-weight: 700;
  color: #d02f5d;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.delivery-howit-btn {
  flex: 0 0 100%;
  margin: 0 auto;
  align-self: center;
  width: 100%;
}

/* Photo editor */
.photo-editor {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-editor,
.photo-editor * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

.photo-editor[hidden] {
  display: none;
}

.photo-editor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 5, 8, 0.55);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

.photo-editor__panel {
  position: relative;
  width: min(92vw, 720px);
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.photo-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.photo-editor__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #3b1f2c;
}

.photo-editor__hint {
  margin: 0 1.2rem 0;
  font-size: 0.9rem;
  color: #7c5361;
}

.photo-editor__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #7c5361;
}

.photo-editor__body {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f2f4;
}

.photo-editor__stage {
  position: relative;
  display: inline-block;
  border-radius: 14px;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.photo-editor__canvas {
  display: block;
  background: #fff;
  border-radius: 14px;
}

.photo-editor__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.photo-editor__crop {
  position: absolute;
  border: 2px solid #ff5b8d;
  /* box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); */
  border-radius: 12px;
  pointer-events: auto;
  touch-action: none;
}

.photo-editor__handle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #ff5b8d;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 91, 141, 0.35);
}

.photo-editor__handle[data-handle="nw"] {
  top: -11px;
  left: -11px;
}

.photo-editor__handle[data-handle="ne"] {
  top: -11px;
  right: -11px;
}

.photo-editor__handle[data-handle="sw"] {
  bottom: -11px;
  left: -11px;
}

.photo-editor__handle[data-handle="se"] {
  bottom: -11px;
  right: -11px;
}

.photo-editor__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.photo-editor__actions-right {
  display: flex;
  gap: 0.6rem;
}

.photo-editor__btn {
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.photo-editor__btn--ghost {
  background: #f1e6ea;
  color: #623848;
}

.photo-editor__btn--rotate {
  background: linear-gradient(135deg, #ff9a3d 0%, #ffcc7a 100%);
  color: #6b3300;
  box-shadow: 0 12px 28px rgba(255, 154, 61, 0.35);
}

.photo-editor__btn--primary {
  background: linear-gradient(135deg, #ff5b8d 0%, #ff8fb1 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 91, 141, 0.35);
}

.photo-editor-locked {
  overflow: hidden;
}

body.photo-editor-locked,
body.photo-editor-locked .page-content,
body.photo-editor-locked .quiz__card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

@media (min-width: 768px) {
  .delivery-upsell {
    width: auto;
    align-items: flex-end;
  }

  .delivery-upsell__cta {
    width: auto;
  }

  .delivery-howit-btn {
    flex: 0 0 auto;
    width: auto;
  }
}

@keyframes upsellPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 16px 40px rgba(255, 91, 141, 0.35);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 22px 48px rgba(255, 91, 141, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 16px 40px rgba(255, 91, 141, 0.35);
  }
}

.delivery-extra {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #ea6e89, #f3a2b5);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 22px 60px rgba(234, 110, 137, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.delivery-extra__text {
  margin: 0;
  color: #fff;
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-size: clamp(1.6rem, 3vw, 1.6rem);
  line-height: 1.4;
}

.delivery-extra__button {
  align-self: center;
  background: #cc6178 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  border: 1.5px solid #ffd1e0 !important;
  animation: none !important;
  transform: none !important;
}

.delivery-faq {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(234, 110, 137, 0.22);
  border-radius: 24px;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  box-shadow: 0 16px 40px rgba(93, 42, 59, 0.12);
}

.delivery-faq__title {
  margin: 0 0 0.85rem;
  color: #c43e63;
  font-size: 1.2rem;
}

.delivery-faq__item {
  border-radius: 14px;
  border: 1px solid rgba(234, 110, 137, 0.18);
  background: #fff7fb;
  padding: 0.75rem 0.9rem;
}

.delivery-faq__item+.delivery-faq__item {
  margin-top: 0.6rem;
}

.delivery-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: #6c3046;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.delivery-faq__item summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: #c43e63;
}

.delivery-faq__item[open] summary::after {
  content: "−";
}

.delivery-faq__item summary::-webkit-details-marker {
  display: none;
}

.delivery-faq__item p {
  margin: 0.55rem 0 0;
  color: #5c3646;
  line-height: 1.45;
}

.delivery-faq__video-btn {
  margin-top: 0.6rem;
  width: 100%;
}

.delivery-status,
.delivery-error {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.delivery-status {
  background: rgba(243, 219, 230, 0.7);
  color: #5c2f40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.delivery-status[hidden],
.delivery-error[hidden] {
  display: none !important;
}

.delivery-status.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(92, 47, 64, 0.28);
  border-top-color: #5c2f40;
  animation: loadingSpin 0.9s linear infinite;
  flex: 0 0 auto;
}

.delivery-error {
  background: rgba(255, 227, 227, 0.9);
  color: #8c1f2d;
}

.delivery-instructions {
  border-radius: 20px;
  border: 1px solid rgba(234, 110, 137, 0.25);
  background: linear-gradient(145deg, #fff4fa, #ffe5f0);
  box-shadow: 0 20px 45px rgba(93, 42, 59, 0.12);
}

.delivery-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: clamp(1.4rem, 3.6vw, 2rem);
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #ea6e89, #f3a2b5);
  box-shadow: 0 22px 60px rgba(234, 110, 137, 0.25);
  text-align: center;
}

.delivery-summary[hidden] {
  display: none;
}

.delivery-summary-head {
  text-align: center;
}

.delivery-summary-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(211, 67, 109, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #b03d62;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delivery-summary-title {
  margin: 0.52rem 0 0;
  font-size: clamp(1.18rem, 2.8vw, 1.42rem);
  line-height: 1.15;
  color: #5f263b;
}

.delivery-summary-copy {
  margin: 0.46rem auto 0;
  max-width: 58ch;
  font-size: 0.94rem;
  line-height: 1.42;
  color: #754657;
}

.delivery-summary-body {
  display: grid;
  gap: 0.72rem;
}

.delivery-credits-card {
  width: 100%;
  border-radius: 20px;
  border: 1.5px solid #ffd1e0;
  background: #fff;
  box-shadow: none;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.delivery-credits-label {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  font-weight: 800;
  color: #7a4457;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.delivery-credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  color: #5d2a3b;
}

.delivery-credits strong {
  display: block;
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  color: #d02f5d;
  line-height: 1;
  text-shadow: none;
}

.delivery-credits-unit {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #703e51;
}

.delivery-summary-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.delivery-summary-benefit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(205, 85, 122, 0.35);
  color: #7a4257;
  font-size: 0.76rem;
  font-weight: 700;
}

.delivery-summary__cta {
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 0.8rem 1rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  border: 1.5px solid #ffd1e0 !important;
  background: #cc6178 !important;
  background-image: none !important;
  color: #fff !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.delivery-summary__cta:hover,
.delivery-summary__cta:active,
.delivery-summary__cta:focus-visible {
  transform: none !important;
  box-shadow: none !important;
}

.delivery-summary__cta-main {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.delivery-summary__cta-sub {
  margin-top: 0.12rem;
  font-size: 0.74rem;
  opacity: 0.94;
}

.delivery-summary-hint {
  margin: 0;
  color: #6f4d58;
  font-size: 0.95rem;
}

.delivery-share-warning {
  margin: 0;
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 229, 237, 0.75);
  background: rgba(255, 241, 246, 0.28);
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.delivery-instructions {
  margin: 1.5rem auto 2rem;
  padding: 1.1rem 1.4rem;
  max-width: 760px;
  color: #5c3a45;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}

.delivery-letters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.delivery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(240, 226, 233, 0.6);
  font-weight: 600;
  color: #5c3a45;
}

.delivery-empty.is-status {
  background: rgba(243, 219, 230, 0.7);
  color: #5c2f40;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.delivery-empty.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(92, 47, 64, 0.28);
  border-top-color: #5c2f40;
  animation: loadingSpin 0.9s linear infinite;
  flex: 0 0 auto;
}

.delivery-letter-card {
  background: white;
  border-radius: 22px;
  border: 1px solid rgba(210, 98, 123, 0.2);
  box-shadow: 0 15px 45px rgba(40, 8, 24, 0.08);
  display: flex;
  flex-direction: column;
  align-self: start;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.delivery-letter-preview {
  background: #fff6fb;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.delivery-letter-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.delivery-letter-text {
  position: absolute;
  inset: 0;
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: #3f2c35;
  pointer-events: none;
}

.delivery-letter-title {
  font-weight: 700;
  font-size: 1rem;
}

.delivery-letter-body {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overscroll-behavior: auto;
}

.delivery-letter-footer {
  font-weight: 600;
  font-size: 0.95rem;
}

.delivery-letter-expand {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(234, 110, 137, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(234, 110, 137, 0.35);
}

.delivery-letter-expand i {
  font-size: 1.1rem;
}

.delivery-letter-expand--load {
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.delivery-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  background: rgba(10, 6, 12, 0.75);
  backdrop-filter: blur(4px);
  padding: 0;
}

.delivery-preview-modal.is-open {
  display: flex;
}

.delivery-preview-modal__backdrop {
  position: absolute;
  inset: 0;
}

.delivery-preview-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.delivery-preview-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  background: #eb748e;
  color: #fff;
  cursor: pointer;
}

.delivery-preview-card {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.delivery-preview-image {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  padding: 0;
  pointer-events: auto;
}

.whatsapp-float,
.clara-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 30px rgba(9, 46, 24, 0.25);
  z-index: 1300;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5d;
}

.clara-float {
  background: #e94f82;
}

.clara-float:hover {
  background: #d83a71;
}

.delivery-letter-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.delivery-letter-body h3 {
  margin: 0;
}

.delivery-letter-status {
  font-weight: 600;
  color: #6b4a58;
  margin: 0;
}

.delivery-letter-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #937086;
}

.delivery-letter-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.delivery-letter-actions .delivery-button {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  width: 100%;
  border: 2px solid transparent;
}

.delivery-letter-actions .delivery-button:not(.delivery-button--danger) {
  background: #fff;
  color: #cc6178;
  border-color: rgba(204, 97, 120, 0.55);
}

.delivery-letter-actions .delivery-button:not(.delivery-button--danger):nth-child(even) {
  background: #cc6178;
  color: #fff;
  border-color: #cc6178;
}

.delivery-letter-actions .delivery-button--danger {
  background: #fff;
  color: #e53935;
  border-color: #e53935;
}

.delivery-letter-video {
  border-top: 1px solid rgba(210, 98, 123, 0.2);
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-letter-video__player {
  width: 100%;
  border-radius: 14px;
  background: #f7eef2;
}

.delivery-letter-video__hint {
  margin: 0;
  font-size: 0.9rem;
  color: #7a5766;
  line-height: 1.4;
}


.delivery-action {
  flex: 1;
  min-width: 120px;
}

.delivery-action.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.delivery-button {
  border: none;
  border-radius: 10px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  font-family: "Lilita One", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #cc6178;
  box-shadow: none;
  transition: none;
}

.delivery-button--primary {
  background: #cc6178;
}

.delivery-button--ghost {
  background: transparent;
  color: #cc6178;
  border: 2px solid rgba(204, 97, 120, 0.4);
}

.delivery-button--text {
  background: transparent;
  color: #cc6178;
  border: none;
  padding: 0.2rem 0;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  text-decoration: underline;
}

.delivery-button--danger {
  background: #fff;
  color: #e53935;
}

.delivery-button:active {
  transform: none;
  box-shadow: none;
}

.delivery-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.delivery-button--with-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.delivery-button--locked {
  background: #7a6a70;
  border-color: #7a6a70;
  color: #fff;
}

.delivery-button__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
  line-height: 1;
}

.delivery-button__lock[hidden] {
  display: none !important;
}

.delivery-button__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.delivery-button__badge.is-pending {
  background: #f2c94c;
  color: #3a2b00;
}

.delivery-button__badge.is-sent {
  background: #27ae60;
  color: #fff;
}

.delivery-button__badge.is-hidden {
  display: none;
}

.delivery-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  padding: 1.5rem;
}

.delivery-confirm-modal .template-modal__content {
  width: min(420px, 92vw);
  height: auto;
  max-height: 90vh;
  padding: 1.5rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.delivery-admirer-modal .template-modal__content {
  width: min(420px, 92vw);
  height: auto;
  max-height: 90vh;
  padding: 1.5rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.delivery-admirer-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.delivery-admirer-modal__label {
  color: #3a242c;
  font-weight: 600;
}

.delivery-admirer-modal__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.2);
  background: #fff;
  color: #2a1b21;
  font-size: 1rem;
}

.delivery-admirer-modal__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #6a4d5a;
}

.delivery-admirer-modal__feedback {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #cc6178;
}

.delivery-admirer-modal__feedback.is-error {
  color: #e53935;
}

.delivery-admirer-modal__feedback.is-success {
  color: #27ae60;
}

.delivery-confirm-modal__text {
  margin: 0;
  text-align: start;
  color: #3a242c;
  line-height: 1.4;
}

.delivery-confirm-modal .delivery-button--danger {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}

.delivery-confirm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.delivery-confirm-modal__actions .delivery-button {
  flex: 1 1 160px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 5, 8, 0.55);
  backdrop-filter: blur(6px);
}

.video-modal__content {
  position: relative;
  width: min(900px, 94vw);
  height: min(84vh, 720px);
  max-height: 84vh;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 25px 80px rgba(25, 8, 16, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: #eb748e;
  color: #fff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
}

.video-modal__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.video-modal__photo-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(24, 12, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-modal__photo-loading[hidden] {
  display: none;
}

.video-modal__photo-loading-inner {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  color: #5a2f3c;
  font-weight: 600;
}

.video-modal__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(204, 97, 120, 0.25);
  border-top-color: #cc6178;
  animation: videoSpinner 0.9s linear infinite;
}

@keyframes videoSpinner {
  to {
    transform: rotate(360deg);
  }
}

body.is-photo-uploading {
  overflow: hidden;
}

.video-modal__kicker {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d02f5d;
}

.video-modal__status {
  margin: 0;
  font-weight: 600;
  color: #6b4a58;
}

.video-modal__status[data-state="success"] {
  color: #1f9b6e;
}

.video-modal__status[data-state="error"] {
  color: #b02a3d;
}

.video-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.video-modal__section {
  border-radius: 18px;
  border: 1px solid rgba(234, 110, 137, 0.25);
  background: linear-gradient(135deg, rgba(255, 241, 248, 0.9), rgba(255, 231, 240, 0.9));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.video-modal__section h4 {
  margin: 0;
}

.video-modal__template,
.video-modal__photo {
  border-radius: 14px;
  border: 1px dashed rgba(210, 98, 123, 0.4);
  padding: 0.75rem;
  text-align: center;
  color: #6b4a58;
  background: #fff;
}

.video-modal__photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.6rem;
}

.video-modal__template img,
.video-modal__photo img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
}

.video-modal__photo-list img {
  height: 90px;
  max-height: none;
  object-fit: cover;
}

.video-modal__upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 110, 137, 0.35);
  background: #fff;
  color: #4b2e38;
  font-weight: 600;
  cursor: pointer;
}

.video-modal__upload input {
  display: none;
}

.video-modal__hint {
  margin: 0;
  color: #8a6473;
  font-size: 0.9rem;
}

.video-modal__audios {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 240px;
  overflow: auto;
  padding-right: 0.25rem;
}

.video-modal__audio {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(234, 110, 137, 0.2);
  cursor: pointer;
}

.video-modal__audio-info {
  font-weight: 600;
  color: #4b2e38;
}

.video-modal__audio-info span {
  font-size: 0.85rem;
  color: #7a5766;
}

.video-modal__audio-player {
  display: none;
}

.video-modal__audio-play {
  border: none;
  background: rgba(234, 110, 137, 0.12);
  color: #c24a66;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-modal__audio-play:hover {
  transform: translateY(-1px);
}

.video-modal__audio.is-selected {
  background: #cc6178;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(204, 97, 120, 0.25);
}

.video-modal__audio.is-selected .video-modal__audio-info {
  color: #fff;
}

.video-modal__audio.is-selected .video-modal__audio-play {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.video-modal__empty {
  margin: 0;
  color: #7a5766;
  font-weight: 600;
}

.video-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-modal__render {
  border-radius: 12px;
  border: 1px solid rgba(204, 97, 120, 0.3);
  background: rgba(255, 239, 244, 0.9);
  padding: 0.6rem 0.85rem;
  color: #7a5766;
  font-size: 0.95rem;
  text-align: center;
}

.video-modal__cancel-wrap {
  border: 1px solid #cc6178;
  background: #fff;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: center;
}

.video-modal__actions .delivery-button--primary.is-disabled:not(.is-progress),
.video-modal__actions .delivery-button--primary:disabled:not(.is-progress) {
  background: #e8d6de;
  color: #9a7a88;
  cursor: not-allowed;
  box-shadow: none;
}

.video-modal__actions .delivery-button--primary.is-progress {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
      #cc6178 0%,
      #cc6178 var(--progress, 0%),
      #e8d6de var(--progress, 0%),
      #e8d6de 100%);
  color: #fff;
}

.video-modal__cancel {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #b33f5c;
  font-weight: 600;
  cursor: pointer;
}

.video-modal__result {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(234, 110, 137, 0.2);
}

.video-modal__player {
  width: 100%;
  border-radius: 14px;
  background: #f6edf2;
}

.delivery-actions .bridge__cta {
  min-width: 220px;
}

.delivery-create-btn {
  border: none;
  border-radius: 10px;
  padding: 0.95rem 2.4rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #ff5a7c, #cc6178);
  box-shadow: 0 12px 30px rgba(204, 97, 120, 0.35);
  transition: none;
}

.delivery-create-btn:active {
  transform: none;
  box-shadow: 0 12px 30px rgba(204, 97, 120, 0.35);
}

@media (max-width: 768px) {
  .delivery-header {
    flex-direction: column;
  }

  .delivery-summary {
    width: 100%;
  }

  .delivery-summary-actions .bridge__cta {
    width: 100%;
  }

  .delivery-letter-actions {
    flex-direction: column;
  }

  .delivery-action {
    width: 100%;
  }

  .delivery-actions {
    flex-direction: column;
  }

  .delivery-actions .bridge__cta {
    width: 100%;
  }
}

.share-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 22px 60px rgba(234, 110, 137, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.share-panel__content[hidden] {
  display: none !important;
}

.share-panel__logo {
  width: min(560px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.2rem;
  display: block;
}

.share-panel__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #d55276;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.share-panel__hero {
  border-radius: 16px;
  border: 3px dashed #d55276;
  background: linear-gradient(135deg, #fff7fb 0%, #ffeef4 100%);
  padding: 0.95rem 1rem;
}

.share-panel__text {
  margin: 0;
  color: #6b4b58;
  line-height: 1.55;
  font-size: 1rem;
}

.share-panel__benefits {
  margin: 0;
  padding-left: 1.1rem;
  text-align: left;
  color: #684350;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.share-panel__subtitle {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: #d55276;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.share-panel__steps {
  margin: 0 0 1.05rem;
  padding-left: 1.15rem;
  text-align: left;
  color: #684350;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.share-panel__actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.share-panel__cta {
  width: 100%;
  animation: none;
  font-size: 1rem;
  padding: 0.86rem 1.1rem;
}

.share-panel__note {
  margin: 0;
  color: #8a6673;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .share-panel {
    border-radius: 20px;
    padding: 1.2rem 1rem;
  }
}

.template-modal__grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.75rem;
  max-height: none;
  overflow-y: auto;
  padding: 0.25rem 0.25rem 0;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.template-modal__grid.animated-theme-grid {
  gap: 0.9rem;
  padding-bottom: 0;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}


.animated-theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 180px;
  max-width: calc(50% - 0.9rem);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(234, 110, 137, 0.35);
  background: #fff7f9;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.animated-theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.animated-theme-card__label {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.animated-theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(234, 110, 137, 0.18);
  border-color: rgba(234, 110, 137, 0.6);
}

.animated-theme-card.is-selected {
  border-color: #ea6e89;
  box-shadow: 0 12px 26px rgba(234, 110, 137, 0.25);
  background: #ffe2ea;
}

@media (max-width: 640px) {
  .animated-theme-card {
    max-width: 100%;
  }
}
