:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #201a2b;
  background: #fff8f1;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  min-width: 320px;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 5% 10%, rgba(255, 113, 144, .32), transparent 26rem),
    radial-gradient(circle at 96% 12%, rgba(128, 93, 255, .28), transparent 30rem),
    radial-gradient(circle at 78% 94%, rgba(255, 196, 72, .28), transparent 28rem),
    linear-gradient(145deg, #fffaf4 0%, #fff5f8 48%, #f7f3ff 100%);
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
body::before {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: 8%;
  background: rgba(255, 202, 90, .25);
}
body::after {
  width: 220px;
  height: 220px;
  right: -100px;
  top: 38%;
  background: rgba(255, 92, 155, .18);
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 0 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #241c30;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.045em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff557d, #7b5cff);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 9px 22px rgba(129, 79, 210, .24);
}
.header-note {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(69,49,87,.08);
  color: #6c5f75;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(78, 56, 94, .05);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .78fr);
  gap: clamp(46px, 7vw, 100px);
  align-items: center;
  flex: 1;
  padding: 34px 0 38px;
}
.hero-copy { padding: 10px 0 34px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(76,52,94,.08);
  color: #6e5479;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
  box-shadow: 0 9px 30px rgba(77, 53, 91, .06);
}
h1 {
  margin: 21px 0 0;
  max-width: 760px;
  font-size: clamp(50px, 6vw, 84px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 920;
}
h1 span {
  background: linear-gradient(100deg, #f34573 2%, #8a55df 55%, #6954ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Chromium can clip the right overhang of the final glyph when
     background-clip:text is fragmented across wrapped lines. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline-end: .14em;
}
.lead {
  max-width: 590px;
  margin: 27px 0 0;
  color: #675d6d;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.48;
  font-weight: 560;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 13px;
  border-radius: 999px;
  color: #584c61;
  font-size: 12px;
  font-weight: 780;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(64,43,80,.07);
}
.trust-row span:nth-child(1)::before,
.trust-row span:nth-child(2)::before,
.trust-row span:nth-child(3)::before {
  margin-right: 7px;
  font-size: 12px;
}
.trust-row span:nth-child(1)::before { content: "▶"; color: #f04e78; }
.trust-row span:nth-child(2)::before { content: "✓"; color: #7258d9; }
.trust-row span:nth-child(3)::before { content: "♥"; color: #ec9c2b; }

.panel { width: 100%; }
.flow-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(73,50,90,.08);
  border-radius: 32px;
  padding: 28px;
  box-shadow:
    0 34px 80px rgba(80, 50, 105, .16),
    0 10px 24px rgba(255, 100, 135, .08);
  backdrop-filter: blur(20px);
}
.flow-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -76px;
  top: -88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,91,132,.18), rgba(123,92,255,.13));
  pointer-events: none;
}
.panel-title {
  position: relative;
  z-index: 1;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.045em;
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  margin-top: 20px;
  overflow: hidden;
  border: 2px dashed rgba(126, 83, 187, .34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 188, 88, .23), transparent 11rem),
    radial-gradient(circle at 94% 88%, rgba(143, 92, 255, .18), transparent 12rem),
    linear-gradient(145deg, #fff8fb, #f8f3ff);
  cursor: pointer;
  outline: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.drop::before,
.drop::after {
  content: "✦";
  position: absolute;
  color: rgba(127, 83, 203, .18);
  pointer-events: none;
}
.drop::before { left: 10%; top: 15%; font-size: 23px; transform: rotate(-12deg); }
.drop::after { right: 11%; bottom: 14%; font-size: 31px; transform: rotate(13deg); }
.drop:hover,
.drop:focus-visible,
.drop.dragging {
  transform: translateY(-2px) scale(1.005);
  border-color: #8758d3;
  box-shadow: inset 0 0 0 4px rgba(129,86,210,.055), 0 14px 30px rgba(110,73,144,.08);
}
.drop-empty {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 19px;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(135deg, #ff5a82, #8a5ce7);
  box-shadow: 0 16px 30px rgba(136, 79, 202, .28);
  transform: rotate(-3deg);
}
.upload-icon svg { width: 31px; height: 31px; }
.drop-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.025em;
}
.drop-subtitle {
  margin-top: 7px;
  color: #8b7f91;
  font-size: 14px;
}
.drop-selected { position: absolute; inset: 0; z-index: 2; background: #17131d; }
.drop-selected img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-change {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(25,18,31,.76);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.selected-meta {
  display: block;
  margin-top: 12px;
  color: #86798d;
  font-size: 12px;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary,
.secondary,
.text-button {
  border: 0;
  cursor: pointer;
}
.primary {
  width: 100%;
  min-height: 61px;
  margin-top: 19px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: linear-gradient(105deg, #ff4e79 0%, #ae4ed6 52%, #7159ef 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.015em;
  box-shadow: 0 16px 31px rgba(156, 70, 188, .3);
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.button-spark { font-size: 18px; transition: transform .18s ease; }
.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(156, 70, 188, .36);
}
.primary:hover:not(:disabled) .button-spark { transform: rotate(18deg) scale(1.15); }
.primary:active:not(:disabled) { transform: translateY(0); }
.primary:disabled {
  cursor: default;
  opacity: .34;
  box-shadow: none;
  filter: grayscale(.18);
}

.premium-button {
  margin-top: 19px;
  background: linear-gradient(105deg, #6f55e8 0%, #984dd1 48%, #e14e98 100%);
}
.premium-retry {
  margin-top: 18px;
}
.variant-button.premium-variant {
  border-color: rgba(137, 78, 189, .2);
  background: linear-gradient(135deg, rgba(247,242,255,.98), rgba(255,239,249,.94));
  color: #70449a;
}
.quota-note {
  margin-top: 11px;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(121, 87, 220, .08);
  color: #66547a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.quota-note.quota-exhausted {
  background: linear-gradient(135deg, rgba(255, 185, 88, .17), rgba(255, 92, 133, .1));
  color: #765440;
}

.error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff0f0;
  color: #a43d45;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.status-card {
  text-align: center;
  padding: 38px 34px 31px;
}
.progress-ring {
  --progress: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  margin: 1px auto 28px;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      #ff527d 0%,
      #ab50dc calc(var(--progress) * .62%),
      #6f5cf1 calc(var(--progress) * 1%),
      rgba(120, 87, 159, .11) calc(var(--progress) * 1%),
      rgba(120, 87, 159, .11) 100%
    );
  box-shadow:
    0 22px 46px rgba(126, 74, 187, .22),
    0 0 0 1px rgba(255,255,255,.7);
  animation: ring-breathe 2.8s ease-in-out infinite;
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(255, 250, 253, .96);
  box-shadow: inset 0 0 0 1px rgba(117, 75, 145, .08);
}
.progress-ring::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: -4px;
  left: 50%;
  margin-left: -7px;
  border-radius: 50%;
  background: #ff527d;
  box-shadow: 0 0 20px rgba(255, 82, 125, .68);
  transform-origin: 7px 96px;
  transform: rotate(calc(var(--progress) * 3.6deg));
}
.ring-runner {
  position: absolute;
  z-index: 3;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  animation: ring-runner-spin 3s linear infinite;
}
.ring-runner::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.24),
    0 0 24px rgba(255, 82, 125, .75);
}
.status-photo-shell {
  position: relative;
  z-index: 1;
  width: 154px;
  height: 154px;
  padding: 5px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(50, 31, 64, .14);
}
.status-photo-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.status-photo-shell::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.28) 45%, transparent 62%);
  transform: translateX(-140%);
  animation: photo-shimmer 3.8s ease-in-out infinite 1s;
  pointer-events: none;
}
.orbit-spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(91, 53, 134, .28);
  pointer-events: none;
}
.orbit-spark-one {
  top: 9px;
  right: 3px;
  font-size: 23px;
  animation: sparkle-one 2.2s ease-in-out infinite;
}
.orbit-spark-two {
  bottom: 20px;
  left: -4px;
  font-size: 17px;
  animation: sparkle-two 2.8s ease-in-out infinite .25s;
}
.orbit-spark-three {
  top: 70px;
  right: -13px;
  font-size: 25px;
  animation: sparkle-two 2.4s ease-in-out infinite .6s;
}
.status-kicker,
.success-label {
  color: #8d55d0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .065em;
}
h2 {
  margin: 9px 0 0;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.status-card p {
  max-width: 410px;
  margin: 13px auto 0;
  color: #887b8e;
  font-size: 14px;
  line-height: 1.5;
}
.progress-row { display: flex; align-items: center; gap: 13px; margin-top: 31px; }
.progress {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7f2;
}
.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5880, #a456dc, #6d5bf0);
  transition: width .4s ease;
}
.progress-value { width: 42px; color: #6f6277; font-size: 12px; font-weight: 850; text-align: right; }
.waiting-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 17px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(250, 245, 255, .86);
  color: #786b80;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}
.waiting-note-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b5ce2;
  box-shadow: 0 0 0 5px rgba(139, 92, 226, .09);
  animation: waiting-dot 1.7s ease-in-out infinite;
}
.text-button {
  margin-top: 24px;
  padding: 8px 10px;
  background: transparent;
  color: #918497;
  font-size: 13px;
  font-weight: 700;
}
.text-button:hover { color: #46394d; }

.result-card {
  padding: 25px;
  animation: result-arrive .5s cubic-bezier(.2,.8,.2,1) both;
}
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.success-label { color: #c34f86; }
.result-video-wrap {
  position: relative;
  padding: 5px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255,82,125,.9), rgba(169,81,220,.82), rgba(110,91,240,.9));
  box-shadow:
    0 20px 45px rgba(82, 47, 104, .19),
    0 0 0 7px rgba(255,255,255,.62);
}
.result-card video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 20px;
  background: #151119;
}
.result-spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 4px 18px rgba(92, 44, 118, .35);
  pointer-events: none;
}
.result-spark-one {
  top: -18px;
  right: 22px;
  font-size: 30px;
  animation: result-spark 2.4s ease-in-out infinite;
}
.result-spark-two {
  left: -12px;
  bottom: 38px;
  font-size: 20px;
  animation: result-spark 2.8s ease-in-out infinite .45s;
}
.result-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 17px 18px;
  border-radius: 18px;
  background: linear-gradient(105deg, #fff4d9, #fff0f4 54%, #f2edff);
  border: 1px solid rgba(128,79,159,.06);
}
.result-offer[hidden] { display: none; }
.result-offer strong,
.result-offer span { display: block; }
.result-offer strong { font-size: 14px; font-weight: 900; }
.result-offer span { margin-top: 4px; color: #8b788d; font-size: 12px; }
.price { font-size: 25px; font-weight: 950; letter-spacing: -.05em; white-space: nowrap; }
.buy-button { margin-top: 13px; }
.variant-button {
  border: 1px solid rgba(125, 83, 159, .12);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,242,255,.9));
  color: #654f73;
}
.variant-button:hover:not(:disabled) {
  background: #f8f0fb;
}
.variant-button:disabled {
  cursor: default;
  opacity: .45;
}
.result-other-photo {
  display: block;
  width: 100%;
  margin-top: 7px;
  text-align: center;
}
.secondary {
  width: 100%;
  min-height: 50px;
  margin-top: 9px;
  border-radius: 15px;
  background: transparent;
  color: #736679;
  font-size: 14px;
  font-weight: 800;
}
.secondary:hover { background: #faf5fb; }
.payment-note {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff6d9;
  color: #806826;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

footer {
  padding-top: 4px;
  color: #9d909f;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

@keyframes ring-runner-spin {
  to { transform: rotate(360deg); }
}
@keyframes photo-shimmer {
  0%, 35% { transform: translateX(-140%); opacity: 0; }
  48% { opacity: 1; }
  65%, 100% { transform: translateX(140%); opacity: 0; }
}
@keyframes waiting-dot {
  50% { transform: scale(.72); opacity: .48; }
}
@keyframes result-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes result-spark {
  50% { transform: translateY(-6px) rotate(20deg) scale(1.18); opacity: .66; }
}
@keyframes ring-breathe {
  50% {
    transform: scale(1.025);
    box-shadow:
      0 25px 52px rgba(126, 74, 187, .27),
      0 0 0 7px rgba(163, 83, 219, .045);
  }
}
@keyframes sparkle-one {
  50% { transform: translate(5px, -5px) rotate(24deg) scale(1.18); opacity: .72; }
}
@keyframes sparkle-two {
  50% { transform: translate(-4px, 5px) rotate(-20deg) scale(.78); opacity: .55; }
}

@media (max-width: 900px) {
  .page { width: min(680px, calc(100% - 32px)); }
  .hero { grid-template-columns: 1fr; flex: initial; gap: 30px; padding: 54px 0 48px; }
  .hero-copy { padding: 0; text-align: center; }
  h1 { margin-left: auto; margin-right: auto; font-size: clamp(46px, 10.5vw, 72px); }
  .lead { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
}

@media (max-width: 560px) {
  .page { width: min(100% - 22px, 680px); padding-top: 13px; }
  .header { min-height: 42px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .header-note { display: none; }
  .hero { padding-top: 34px; gap: 24px; }
  .eyebrow { font-size: 11px; }
  h1 {
    font-size: clamp(42px, 12.8vw, 60px);
    letter-spacing: -.045em;
  }
  .lead { margin-top: 20px; font-size: 17px; }
  .trust-row { margin-top: 23px; gap: 7px; }
  .trust-row span { min-height: 31px; padding: 0 10px; font-size: 11px; }
  .flow-card { padding: 18px; border-radius: 25px; }
  .panel-title { font-size: 23px; }
  .drop { min-height: 275px; margin-top: 17px; border-radius: 20px; }
  .upload-icon { width: 64px; height: 64px; border-radius: 20px; }
  .drop-title { font-size: 18px; }
  .primary { min-height: 58px; border-radius: 17px; }
  .status-card { padding: 34px 20px 25px; }
  .progress-ring { width: 166px; height: 166px; }
  .progress-ring::after { transform-origin: 7px 87px; }
  .status-photo-shell { width: 138px; height: 138px; }
  .waiting-note { border-radius: 16px; padding: 9px 11px; }
  .result-card { padding: 17px; }
  .result-video-wrap { border-radius: 22px; }
  .result-card video { border-radius: 17px; }
  .result-offer { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.status-card.reconnecting .progress-ring {
  filter: saturate(.72);
}

.status-card.reconnecting .progress-ring::after {
  animation: reconnect-pulse 1.1s ease-in-out infinite;
}
.status-card.reconnecting .ring-runner {
  animation-duration: 1.3s;
}
.status-card.reconnecting .waiting-note-dot {
  background: #e59b37;
  box-shadow: 0 0 0 5px rgba(229, 155, 55, .1);
}

@keyframes reconnect-pulse {
  50% { opacity: .35; transform: rotate(calc(var(--progress) * 3.6deg)) scale(.72); }
}

.payment-dialog {
  width: min(430px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  overflow: visible;
}
.payment-dialog::backdrop {
  background: rgba(35, 22, 43, .48);
  backdrop-filter: blur(7px);
}
.payment-dialog-card {
  padding: 30px;
  border: 1px solid rgba(122, 74, 146, .12);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(57, 28, 67, .28);
  animation: payment-dialog-in .2s ease-out both;
}
.payment-dialog-card h2 {
  margin: 12px 0 7px;
  font-size: 30px;
  line-height: 1.05;
  text-align: center;
}
.payment-dialog-card > p {
  margin: 0 0 22px;
  color: #806d82;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.payment-test-badge {
  width: max-content;
  margin: 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(124, 86, 219, .1);
  color: #7453b6;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #faf6fb;
  color: #6e5a70;
  font-weight: 800;
}
.payment-summary strong {
  color: #3c2d45;
  font-size: 22px;
  white-space: nowrap;
}
.payment-dialog-card .secondary { margin-top: 10px; }
.payment-dialog-card .error { margin-top: 12px; }
.payment-email-field {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: #6e5a70;
  font-size: 12px;
  font-weight: 800;
}
.payment-email-field[hidden] { display: none; }
.payment-email-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(122, 74, 146, .14);
  border-radius: 15px;
  outline: none;
  background: #fff;
  color: #3c2d45;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.payment-email-field input:focus {
  border-color: rgba(124, 86, 219, .45);
  box-shadow: 0 0 0 3px rgba(124, 86, 219, .10);
}
.payment-email-field input:disabled {
  opacity: .7;
  background: #faf6fb;
}
.robokassa-widget {
  width: 100%;
  min-height: 292px;
  margin: 0 0 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(122, 74, 146, .10);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.robokassa-widget.sbp-qr {
  width: min(292px, 100%);
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.robokassa-widget.sbp-qr > * {
  margin-left: auto !important;
  margin-right: auto !important;
}
.robokassa-widget[hidden] { display: none; }
.robokassa-widget img,
.robokassa-widget canvas,
.robokassa-widget svg {
  display: block;
  max-width: 260px !important;
  max-height: 260px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

@keyframes payment-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .payment-dialog {
    width: min(100% - 20px, 430px);
    max-height: calc(100dvh - 20px);
  }
  .payment-dialog-card {
    padding: 24px 19px;
    border-radius: 24px;
  }
}



@media (max-width: 360px) {
  .payment-dialog {
    width: 100%;
    max-height: 100dvh;
  }
  .payment-dialog-card {
    padding: 20px 0;
    border-radius: 0;
  }
  .payment-dialog-card > h2,
  .payment-dialog-card > p,
  .payment-dialog-card > .payment-test-badge,
  .payment-dialog-card > .payment-summary,
  .payment-dialog-card > .payment-email-field,
  .payment-dialog-card > button,
  .payment-dialog-card > .error {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }
  .robokassa-widget {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
  }
}

/* Public review / legal pages */
.drop.is-disabled {
  pointer-events: none;
  opacity: .72;
  filter: saturate(.8);
}
.drop.is-disabled .upload-icon { opacity: .78; }

.site-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 18px 8px 0;
  color: #8c7f90;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}
.footer-links a {
  color: #6d5d75;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: 10px; }

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.legal-header .brand { text-decoration: none; }
.legal-back {
  color: #705f79;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.legal-card {
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid rgba(117, 92, 155, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 60px rgba(83, 54, 105, .07);
}
.legal-card h1 {
  margin: 0 0 10px;
  color: #2e2335;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.08;
}
.legal-card h2 {
  margin: 30px 0 10px;
  color: #35283b;
  font-size: 20px;
}
.legal-card p,
.legal-card li,
.contact-row {
  color: #625568;
  font-size: 15px;
  line-height: 1.7;
}
.legal-card a { color: #7250a2; }
.legal-meta {
  margin: 0 0 28px;
  color: #928498;
  font-size: 13px;
}
.legal-card ul,
.legal-card ol { padding-left: 22px; }
.section-kicker {
  margin: 0 0 7px;
  color: #8b5bd0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.contact-box {
  padding: 18px;
  border: 1px solid rgba(117, 92, 155, .11);
  border-radius: 16px;
  background: #fff;
}
.contact-box span {
  display: block;
  margin-bottom: 5px;
  color: #9b8ba0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.contact-box strong,
.contact-box a {
  color: #36293c;
  font-size: 15px;
  text-decoration: none;
}
.legal-requisites {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #fbf8fd;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(117, 92, 155, .11);
  border-radius: 17px;
  background: #fff;
  color: #65586a;
}
.price-card strong {
  white-space: nowrap;
  color: #2f2236;
  font-size: 22px;
}
@media (max-width: 720px) {
  .contact-grid,
  .price-grid { grid-template-columns: 1fr; }
  .price-card { align-items: flex-start; }
  .legal-header { align-items: flex-start; }
}
