* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff0f2;
  color: #1f2937;
  font-family: Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.min-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 16px 20px 40px;
}

.home-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.mail {
  font-size: 48px;
  line-height: 1;
}

.home-title h1 {
  max-width: 320px;
  margin: 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.38;
}

.home-title span {
  color: #e84a7f;
}

.home-title p {
  max-width: 350px;
  margin: -4px 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.home-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: -16px;
}

.home-preview h2 {
  margin: 0;
  color: #374151;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.invite-card {
  width: 100%;
  max-width: 390px;
  overflow: hidden;
  border: 1px solid #fce7f3;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 20px 25px -5px rgba(244, 114, 182, 0.13),
    0 8px 10px -6px rgba(244, 114, 182, 0.13);
}

.image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fce7f3;
}

.image-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.demo-question {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
}

.answers {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.yes-wrap,
.no-wrap {
  flex: 1;
}

.yes-wrap {
  display: flex;
  justify-content: center;
}

.heart-button {
  width: 130px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #e84a7f, #ff6ba0);
  clip-path: path(
    "M 65 105 C 28 88 0 65 0 40 C 0 18 18 5 35 5 C 48 5 57 12 65 25 C 73 12 82 5 95 5 C 112 5 130 18 130 40 C 130 65 102 88 65 105 Z"
  );
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(232, 74, 127, 0.4));
  font-size: 18px;
  font-weight: 700;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: heartPulse 1.3s ease-in-out infinite;
}

.heart-button.is-growing {
  animation: none;
}

.no-button {
  width: 100%;
  min-height: 44px;
  border: 2px solid #f9a8d4;
  border-radius: 16px;
  color: #e84a7f;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transform-origin: center center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beg {
  display: none;
  margin: -2px 0 0;
  color: #e84a7f;
  font-size: 14px;
  text-align: center;
}

.beg.is-visible {
  display: block;
}

.success {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 16px;
}

.success div {
  font-size: 60px;
}

.success p {
  margin: 0;
  color: #e84a7f;
  font-size: 18px;
  font-weight: 800;
}

.success button {
  border: 0;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid #fce7f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(232, 74, 127, 0.1);
  padding: 14px;
  color: #1f2937;
  text-decoration: none;
}

.service-card span {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff0f6;
  font-size: 28px;
}

.service-card strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.service-card small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.apology-service span {
  background: #f1f5ff;
}

.how-it-works {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.how-it-works div {
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #fce7f3;
  border-radius: 18px;
  background: #fff;
  padding: 10px 6px;
  text-align: center;
}

.how-it-works b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e84a7f;
  font-size: 14px;
}

.how-it-works span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.home-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-actions p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.home-actions a,
.next {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(90deg, #e84a7f, #ff6ba0);
  box-shadow: 0 10px 15px -3px rgba(251, 207, 232, 0.9);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.home-actions a:active,
.next:active {
  transform: scale(0.95);
}

.footer {
  padding: 24px 16px 16px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.6;
}

.footer a {
  text-underline-offset: 2px;
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.create-main {
  min-height: 100vh;
  padding-bottom: 24px;
}

.create-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 16px 16px 12px;
  background: rgba(255, 240, 242, 0.92);
  backdrop-filter: blur(8px);
}

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f9a8d4;
  background: #fce7f3;
  font-size: 14px;
}

.step span {
  max-width: 56px;
  color: #9ca3af;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

.step.is-current b {
  color: #fff;
  background: #e84a7f;
  box-shadow: 0 0 0 4px #fbcfe8;
}

.step.is-current span {
  color: #e84a7f;
  font-weight: 700;
}

.stepper i {
  width: 24px;
  height: 2px;
  margin-top: 16px;
  border-radius: 999px;
  background: #fce7f3;
}

.pair-tabs,
.preview-tabs {
  display: flex;
  gap: 4px;
  border-radius: 16px;
  padding: 4px;
  background: #fce7f3;
}

.pair-tabs button,
.preview-tabs button {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.pair-tabs .is-active,
.preview-tabs .is-active {
  color: #e84a7f;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.create-section {
  padding: 16px 16px 0;
}

.create-section h1 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
}

.create-section p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.edit-card {
  margin: 24px 16px 0;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(244, 114, 182, 0.08);
}

.edit-card h2 {
  margin: 0 0 16px;
  color: #374151;
  font-size: 16px;
  font-weight: 800;
}

.image-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.image-picker button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.image-picker img,
.sample img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-picker .is-picked {
  box-shadow: 0 0 0 4px #e84a7f, 0 0 0 6px #fff;
  transform: scale(0.95);
}

.upload {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 2px dashed #f9a8d4;
  border-radius: 16px;
  color: #e84a7f;
  background: #fdf2f8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.tiny {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.field {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.field span {
  display: flex;
  justify-content: space-between;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.field em {
  color: #9ca3af;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  padding: 10px 12px;
  color: #1f2937;
  background: #fdf2f8;
  font-size: 14px;
  outline: none;
  resize: none;
}

.field input {
  min-height: 44px;
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 2px rgba(232, 74, 127, 0.35);
}

.two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.phone-preview {
  position: relative;
  width: 220px;
  height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 16px auto 0;
  border: 6px solid #1f2937;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.22);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 80px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #1f2937;
}

.phone-screen {
  flex: 1;
  overflow: hidden;
  margin-top: 20px;
}

.mini-screen {
  display: none;
  transform: scale(0.5333);
  transform-origin: top left;
  width: 390px;
}

.mini-screen.is-active {
  display: block;
}

.mini-heart {
  font-size: 18px;
}

.confirm-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  text-align: center;
}

.confirm-body h3 {
  margin: 0;
  color: #1f2937;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.confirm-body p {
  margin: 0;
  color: #6b7280;
  font-size: 17px;
  font-weight: 700;
}

.confirm-body button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(90deg, #e84a7f, #ff6ba0);
  font-weight: 800;
}

.phone-home {
  width: 64px;
  height: 4px;
  margin: 8px auto;
  border-radius: 999px;
  background: #d1d5db;
}

.mini-field {
  display: grid;
  gap: 5px;
  color: #5f6670;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.mini-field span {
  display: block;
  min-height: 48px;
  border: 1px solid #f1dce5;
  border-radius: 14px;
  padding: 14px 12px;
  color: #9ca3af;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.mini-food {
  width: 390px;
  padding: 24px 26px;
}

.mini-food h3 {
  margin: 0;
  color: #2f343d;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.mini-food p {
  margin: 6px 0 12px;
  color: #7c7f87;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.mini-food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

.mini-food-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.mini-food-grid span {
  display: block;
  margin-top: 5px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.activity-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.activity-editor label {
  display: grid;
  gap: 7px;
}

.activity-editor img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.activity-editor input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  padding: 0 9px;
  color: #1f2937;
  background: #fdf2f8;
  font-size: 13px;
  outline: none;
}

.screen-samples {
  display: grid;
  gap: 12px;
}

.sample {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.sample img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.sample b,
.sample span {
  display: block;
}

.sample b {
  color: #1f2937;
  font-size: 14px;
}

.sample span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.bottom-bar {
  position: static;
  display: grid;
  gap: 8px;
  margin: 18px 16px 28px;
  border-top: 1px solid #fce7f3;
  padding: 16px 0 0;
  background: transparent;
}

.support {
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.order-pay {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.92), rgba(255, 255, 255, 0.98)),
    #fff;
  padding: 10px 12px;
}

.order-pay span {
  color: #e84a7f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-pay strong {
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.order-result {
  display: grid;
  gap: 10px;
  border: 1px solid #fbcfe8;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
}

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

.order-status {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

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

.order-status.is-error {
  color: #e83f84;
}

.payment-widget {
  min-height: 60px;
}

.payment-widget[hidden] {
  display: none;
}

.order-result > span {
  color: #e84a7f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-result > b {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.order-result input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fbcfe8;
  border-radius: 14px;
  padding: 0 12px;
  color: #4b5563;
  background: #fff7fb;
  font-size: 12px;
}

.order-result div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-result a,
.order-result button {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #e84a7f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.order-result button {
  background: #1f2937;
}

.next {
  min-height: 48px;
  border-radius: 16px;
  font-size: 16px;
}

.invite-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px 14px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.92), transparent 34%),
    #f6f7f8;
}

.public-card {
  position: relative;
  width: min(100%, 430px);
  min-height: 650px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(31, 41, 55, 0.14),
    0 8px 20px rgba(232, 74, 127, 0.09);
}

.public-screen {
  display: none;
  flex: 1;
  min-height: 610px;
}

.public-screen.is-active {
  display: flex;
  flex-direction: column;
  animation: publicIn 0.22s ease;
}

.public-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fce7f3;
}

.public-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.public-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 24px;
}

.public-body h2 {
  margin: 0;
  color: #2f343d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.public-body p {
  margin: 0;
  color: #7a7f88;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.public-primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(90deg, #c41670, #e84a9a);
  box-shadow: 0 10px 18px rgba(232, 74, 127, 0.22);
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.public-form {
  gap: 12px;
}

.public-form label {
  display: grid;
  gap: 6px;
  color: #5f6670;
  font-size: 13px;
  font-weight: 700;
}

.public-form label span {
  position: relative;
  display: block;
}

.public-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #f1dce5;
  border-radius: 14px;
  padding: 0 42px 0 14px;
  color: #333943;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.public-form label.is-invalid {
  color: #e83f84;
}

.public-form label.is-invalid input {
  border-color: #e83f84;
  background: #fff3f8;
  box-shadow: 0 0 0 3px rgba(232, 63, 132, 0.12);
}

.public-form b {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 16px;
}

.food-screen {
  justify-content: center;
}

.public-food {
  padding: 24px 26px 48px;
}

.public-food h2 {
  font-size: 24px;
}

.public-food > p {
  color: #7c7f87;
  font-size: 16px;
}

.public-food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  margin-top: 8px;
}

.public-food-grid button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.public-food-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  background: #e84a7f;
}

.public-food-grid span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.public-food-grid button.is-picked img {
  box-shadow: 0 0 0 4px rgba(232, 74, 127, 0.35);
}

.final-body {
  padding-top: 22px;
}

.final-badge {
  width: fit-content;
  border-radius: 999px;
  color: #e84a7f;
  background: #fff0f6;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.final-body h2 {
  font-size: 24px;
  text-align: left;
}

.final-body p {
  color: #80858e;
  font-size: 13px;
  text-align: left;
}

.apology-final {
  gap: 16px;
  padding-top: 22px;
}

.apology-final > span {
  color: #e84a7f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.apology-final p {
  color: #565d68;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.55;
}

.public-apology-builder {
  gap: 12px;
  padding: 22px 20px 28px;
}

.public-apology-builder > span {
  color: #e84a7f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.public-apology-builder .field {
  margin-top: 0;
}

.public-apology-builder .apology-preview,
.public-apology-builder .payment-card,
.public-apology-builder .result-card {
  box-shadow: none;
}

.inline-payment,
.inline-result {
  padding: 14px;
}

.inline-payment strong {
  font-size: 24px;
}

.public-watermark {
  margin-top: auto;
  padding: 0 16px 18px;
  text-align: center;
}

.public-watermark a {
  color: rgba(196, 22, 112, 0.62);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.invite-confetti {
  position: fixed;
}

.apology-bg {
  background:
    linear-gradient(180deg, rgba(255, 240, 242, 0.96), rgba(255, 255, 255, 0.98)),
    #fff0f2;
}

.apology-create {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 18px 18px 36px;
}

.apology-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

.apology-head a {
  color: #e84a7f;
  text-decoration: none;
}

.apology-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.apology-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(232, 74, 127, 0.13);
  font-size: 36px;
}

.apology-hero h1 {
  margin: 0;
  color: #1f2937;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.apology-hero p {
  max-width: 360px;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.apology-card,
.payment-card,
.result-card {
  border: 1px solid #fce7f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(232, 74, 127, 0.1);
  padding: 18px;
}

.apology-preview {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-radius: 18px;
  background: #fff7fb;
  padding: 16px;
}

.apology-preview span,
.payment-card span,
.result-card span {
  color: #e84a7f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.apology-preview h2 {
  margin: 0;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.25;
}

.apology-preview p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.payment-card {
  display: grid;
  gap: 12px;
}

.payment-card div {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.payment-card strong {
  color: #1f2937;
  font-size: 28px;
}

.payment-card button,
.result-card button,
.result-card a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, #c41670, #e84a9a);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.payment-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.result-card {
  display: grid;
  gap: 12px;
}

.result-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fbcfe8;
  border-radius: 14px;
  padding: 0 12px;
  color: #4b5563;
  background: #fff7fb;
  font-size: 12px;
}

.result-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-card button {
  background: #1f2937;
}

.apology-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  background: #f6f7f8;
}

.apology-public-card {
  position: relative;
  width: min(100%, 430px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(31, 41, 55, 0.14),
    0 8px 20px rgba(232, 74, 127, 0.09);
}

.apology-public-body {
  display: grid;
  gap: 14px;
  padding: 24px 22px 18px;
}

.apology-public-body span {
  color: #e84a7f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.apology-public-body h1 {
  margin: 0;
  color: #1f2937;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.apology-public-body p {
  margin: 0;
  color: #565d68;
  white-space: pre-wrap;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 460px) {
  .invite-page {
    padding: 0;
  }

  .public-card,
  .apology-public-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .apology-page {
    padding: 0;
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes publicIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Кыргызская атмосфера: Актан и Акылай */
:root {
  --kg-cream: #fff8ec;
  --kg-red: #c83f47;
  --kg-burgundy: #7c2835;
  --kg-turquoise: #2f8589;
  --kg-gold: #dda84e;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.78), rgba(255, 241, 231, 0.94)),
    url("./assets/issyk-kul-bg.webp") center / cover fixed;
}

.app {
  position: relative;
  background: rgba(255, 248, 236, 0.9);
  box-shadow: 0 0 70px rgba(61, 50, 43, 0.15);
  backdrop-filter: blur(8px);
}

.app::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background:
    linear-gradient(135deg, transparent 25%, var(--kg-red) 25% 50%, transparent 50% 75%, var(--kg-turquoise) 75%) 0 0 / 28px 7px;
  content: "";
  pointer-events: none;
}

.home-title {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(200, 63, 71, 0.16);
  border-radius: 24px;
  background: rgba(255, 252, 245, 0.84);
  padding: 18px 16px;
  box-shadow: 0 16px 38px rgba(124, 40, 53, 0.08);
}

.mail {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(200, 63, 71, 0.2);
  border-radius: 50%;
  background: linear-gradient(145deg, #fffdf7, #ffe8de);
  box-shadow: 0 12px 28px rgba(124, 40, 53, 0.13);
}

.kyrgyz-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -6px;
  color: var(--kg-burgundy);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kyrgyz-brand i {
  color: var(--kg-turquoise);
  font-size: 18px;
  font-style: normal;
}

.home-title span,
.beg,
.order-result > span,
.apology-head a,
.apology-preview span,
.payment-card span,
.result-card span,
.apology-public-body span {
  color: var(--kg-red);
}

.home-title h1 span {
  display: block;
  margin-top: 5px;
}

.success[hidden] {
  display: none;
}

.invite-card,
.edit-card,
.public-card,
.apology-card,
.payment-card,
.result-card,
.apology-public-card {
  border-color: rgba(200, 63, 71, 0.2);
  box-shadow:
    0 24px 52px rgba(124, 40, 53, 0.12),
    0 8px 18px rgba(47, 133, 137, 0.08);
}

.image-box,
.public-image {
  background: var(--kg-cream);
}

.heart-button,
.public-primary,
.next,
.payment-card button,
.result-card a,
.result-card button,
.order-result a {
  background: linear-gradient(135deg, var(--kg-burgundy), var(--kg-red));
}

.home-actions a {
  background: linear-gradient(135deg, var(--kg-burgundy), var(--kg-red));
  box-shadow: 0 10px 24px rgba(124, 40, 53, 0.2);
}

.home-actions a:nth-of-type(2) {
  background: linear-gradient(135deg, #236f75, var(--kg-turquoise));
}

.no-button {
  border-color: rgba(47, 133, 137, 0.48);
  color: var(--kg-turquoise);
}

.image-picker button.is-picked,
.preview-tabs button.is-active,
.pair-tabs button.is-active {
  border-color: var(--kg-red);
  background: #fff4ec;
  color: var(--kg-burgundy);
}

.invite-page,
.apology-page {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.5), rgba(255, 239, 228, 0.8)),
    url("./assets/issyk-kul-bg.webp") center / cover fixed;
}

.public-watermark a {
  color: rgba(124, 40, 53, 0.72);
}

@media (max-width: 460px) {
  body {
    background-position: 62% center;
  }

  .app {
    background: rgba(255, 248, 236, 0.94);
    backdrop-filter: none;
  }
}
