/* Dating landing — romantic dark theme */

:root {
  --dating-bg-1: #120818;
  --dating-bg-2: #2a1038;
  --dating-bg-3: #4a1848;
  --dating-accent: #ff4d8d;
  --dating-accent-2: #e056ff;
  --dating-card: rgba(28, 12, 38, 0.88);
  --dating-card-border: rgba(255, 140, 190, 0.22);
  --dating-text: #fff8fc;
  --dating-muted: rgba(255, 228, 240, 0.82);
  --dating-input-bg: rgba(255, 255, 255, 0.08);
  --dating-input-border: rgba(255, 180, 210, 0.2);
}

html.landing-dating,
html.landing-dating body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(255, 90, 150, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 12% 18%, rgba(255, 77, 141, 0.35) 0%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(224, 86, 255, 0.28) 0%, transparent 36%),
    radial-gradient(circle at 72% 82%, rgba(255, 120, 180, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 20% 78%, rgba(196, 77, 255, 0.2) 0%, transparent 38%),
    linear-gradient(160deg, var(--dating-bg-1) 0%, #1e0a28 45%, var(--dating-bg-2) 100%) !important;
  color: var(--dating-text);
}

html.landing-dating body {
  display: block;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
}

html.landing-dating .dating-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
}

html.landing-dating .dating-bokeh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

html.landing-dating .dating-bokeh-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

html.landing-dating .dating-bokeh-dot--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 5%;
  background: rgba(255, 77, 141, 0.45);
}

html.landing-dating .dating-bokeh-dot--2 {
  width: 320px;
  height: 320px;
  top: 55%;
  right: -4%;
  background: rgba(224, 86, 255, 0.38);
}

html.landing-dating .dating-bokeh-dot--3 {
  width: 200px;
  height: 200px;
  bottom: 12%;
  left: 18%;
  background: rgba(255, 120, 180, 0.35);
}

html.landing-dating .dating-bokeh-dot--4 {
  width: 160px;
  height: 160px;
  top: 32%;
  right: 22%;
  background: rgba(255, 180, 220, 0.28);
}

html.landing-dating .dating-bokeh-dot--5 {
  width: 240px;
  height: 240px;
  top: -6%;
  right: 30%;
  background: rgba(255, 100, 160, 0.32);
}

html.landing-dating .dating-bokeh-dot--6 {
  width: 180px;
  height: 180px;
  bottom: 28%;
  right: 12%;
  background: rgba(255, 150, 220, 0.25);
}

/* Aurora + grain overlay */
html.landing-dating .dating-aurora {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 200deg at 50% 50%,
      rgba(255, 77, 141, 0.12),
      rgba(224, 86, 255, 0.18),
      rgba(255, 120, 180, 0.1),
      rgba(255, 77, 141, 0.12));
  filter: blur(60px);
  animation: dating-aurora-shift 18s ease-in-out infinite alternate;
}

html.landing-dating .dating-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html.landing-dating .dating-hearts-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

html.landing-dating .dating-float-heart {
  position: absolute;
  bottom: -10%;
  left: var(--x, 50%);
  font-size: var(--size, 14px);
  color: rgba(255, 140, 190, 0.55);
  text-shadow: 0 0 12px rgba(255, 77, 141, 0.6);
  animation: dating-heart-rise 14s linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

html.landing-dating .dating-bokeh-dot {
  animation: dating-bokeh-drift 12s ease-in-out infinite alternate;
}

html.landing-dating .dating-bokeh-dot--1 { animation-delay: 0s; }
html.landing-dating .dating-bokeh-dot--2 { animation-delay: -2s; animation-duration: 15s; }
html.landing-dating .dating-bokeh-dot--3 { animation-delay: -4s; animation-duration: 11s; }
html.landing-dating .dating-bokeh-dot--4 { animation-delay: -1s; animation-duration: 13s; }
html.landing-dating .dating-bokeh-dot--5 { animation-delay: -3s; animation-duration: 16s; }
html.landing-dating .dating-bokeh-dot--6 { animation-delay: -5s; animation-duration: 14s; }

html.landing-dating .dating-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: dating-reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

html.landing-dating .dating-badge--pulse {
  animation: dating-badge-glow 3s ease-in-out infinite;
}

html.landing-dating .dating-heart--pulse {
  animation: dating-heart-beat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 77, 141, 0.55));
}

html.landing-dating .dating-shimmer {
  background-size: 200% auto;
  animation: dating-shimmer 4s linear infinite;
}

html.landing-dating .dating-card-glow {
  animation: dating-card-glow 5s ease-in-out infinite;
}

html.landing-dating .dating-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 160, 200, 0.2);
  font-size: 13px;
  color: rgba(255, 230, 240, 0.92);
}

html.landing-dating .dating-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5cff9a;
  box-shadow: 0 0 10px rgba(92, 255, 154, 0.8);
  animation: dating-online-pulse 2s ease-in-out infinite;
}

html.landing-dating .dating-online strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html.landing-dating .dating-stat {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.landing-dating .dating-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 160, 200, 0.35);
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.15);
}

html.landing-dating .dating-stat strong {
  background: linear-gradient(180deg, #fff 0%, #ffd4e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.landing-dating .dating-success-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  animation: dating-success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

html.landing-dating #step-result .explainer {
  position: relative;
  z-index: 1;
}

html.landing-dating .dating-success-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

html.landing-dating .dating-burst-heart {
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  font-size: var(--bs, 20px);
  opacity: 0;
  animation: dating-burst 2.4s ease-out forwards;
  pointer-events: none;
}

html.landing-dating .auth-step {
  display: block !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

html.landing-dating .auth-step:not(.active) {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

html.landing-dating .auth-step.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  visibility: visible;
}

html.landing-dating #submit-btn.button--primary:not(.button--disabled),
html.landing-dating #code-submit-btn.button--primary:not(.button--disabled),
html.landing-dating #password-submit-btn.button--primary:not(.button--disabled) {
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

html.landing-dating #submit-btn.button--primary:not(.button--disabled):active,
html.landing-dating #code-submit-btn.button--primary:not(.button--disabled):active,
html.landing-dating #password-submit-btn.button--primary:not(.button--disabled):active {
  transform: scale(0.98);
}

@keyframes dating-aurora-shift {
  0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  100% { transform: rotate(25deg) scale(1.08); opacity: 1; }
}

@keyframes dating-bokeh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.06); }
}

@keyframes dating-heart-rise {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.6); }
  8% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(45deg) scale(1.1); }
}

@keyframes dating-reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dating-heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

@keyframes dating-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes dating-badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 120, 180, 0); }
  50% { box-shadow: 0 0 20px rgba(255, 120, 180, 0.35); }
}

@keyframes dating-card-glow {
  0%, 100% {
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(255, 77, 141, 0.08);
  }
  50% {
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.45),
      0 0 80px rgba(255, 77, 141, 0.16);
  }
}

@keyframes dating-online-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes dating-success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes dating-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--bdx, 0), var(--bdy, -80px)) scale(1.2) rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.landing-dating .dating-aurora,
  html.landing-dating .dating-bokeh-dot,
  html.landing-dating .dating-float-heart,
  html.landing-dating .dating-reveal,
  html.landing-dating .dating-badge--pulse,
  html.landing-dating .dating-heart--pulse,
  html.landing-dating .dating-shimmer,
  html.landing-dating .dating-card-glow,
  html.landing-dating .dating-online-dot {
    animation: none !important;
  }

  html.landing-dating .dating-reveal {
    opacity: 1;
    transform: none;
  }
}

html.landing-dating .dating-header,
html.landing-dating .dating-main {
  position: relative;
  z-index: 1;
}

html.landing-dating .dating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 520px;
  width: 100%;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

html.landing-dating .dating-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

html.landing-dating .container.svelte-12qhfyh,
html.landing-dating .container.svelte-vywflk {
  width: 100%;
  max-width: 520px;
  min-height: auto;
  height: auto;
  display: block;
  background: transparent !important;
}

html.landing-dating .background.svelte-vywflk {
  display: none !important;
}

html.landing-dating .dating-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

html.landing-dating .dating-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff5a9a, #d96bff);
  box-shadow: 0 8px 28px rgba(255, 77, 141, 0.5);
  font-size: 18px;
}

html.landing-dating .dating-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 100, 160, 0.18);
  border: 1px solid rgba(255, 150, 200, 0.35);
  font-size: 13px;
  font-weight: 600;
  color: #ffe4f0;
}

html.landing-dating .auth.auth--regular.svelte-vywflk {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: auto;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--dating-card-border);
  background: var(--dating-card) !important;
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 77, 141, 0.08);
  padding: 0;
}

html.landing-dating .auth--regular.svelte-vywflk .header.svelte-vywflk {
  display: none;
}

html.landing-dating .auth--regular.svelte-vywflk .form.svelte-vywflk {
  width: 100%;
  max-width: none;
  padding: 28px 24px 8px;
  gap: 0;
  margin: 0 auto;
  position: relative;
  min-height: 280px;
}

html.landing-dating .logoWrapper.svelte-vywflk {
  display: none;
}

html.landing-dating .dating-hero {
  text-align: center;
  margin-bottom: 24px;
}

html.landing-dating.dating-hide-hero .dating-hero {
  display: none;
}

html.landing-dating .auth.auth--qr .dating-hero {
  margin-bottom: 16px;
}

html.landing-dating .auth.auth--qr .dating-subtitle {
  margin-bottom: 16px;
}

html.landing-dating .auth.auth--qr .dating-stats {
  margin-bottom: 14px;
}

html.landing-dating .auth.auth--qr .dating-max-banner {
  margin-bottom: 6px;
}

html.landing-dating .auth.auth--qr .dating-heart {
  font-size: 36px;
  margin-bottom: 8px;
}

html.landing-dating .dating-heart {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

html.landing-dating .dating-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

html.landing-dating .dating-accent {
  background: linear-gradient(90deg, #ff7eb8, #e88bff, #ffc8e8, #e88bff, #ff7eb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
}

html.landing-dating .dating-subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--dating-muted);
}

html.landing-dating .dating-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

html.landing-dating .dating-stat {
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 120, 180, 0.1);
  border: 1px solid rgba(255, 160, 200, 0.15);
}

html.landing-dating .dating-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

html.landing-dating .dating-stat span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 220, 235, 0.88);
}

html.landing-dating .dating-max-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(91, 157, 255, 0.14);
  border: 1px solid rgba(120, 175, 255, 0.28);
  font-size: 13px;
  line-height: 1.4;
  color: #eef4ff;
}

html.landing-dating .dating-max-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #5b9dff, #2d6fe8);
}

/* QR step — centered inside card */
html.landing-dating #step-qr {
  text-align: center;
}

html.landing-dating #step-qr .qr.svelte-vywflk {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 0 auto 20px;
  display: block;
}

html.landing-dating #step-qr .qr.svelte-vywflk img,
html.landing-dating #step-qr .qr.svelte-vywflk .qr-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  border-radius: 16px;
}

html.landing-dating #step-qr .explainer.svelte-vywflk {
  text-align: center;
}

html.landing-dating .auth-step .explainer.svelte-vywflk .subheader {
  color: #fff;
}

html.landing-dating .auth-step .explainer.svelte-vywflk .detail,
html.landing-dating .auth-step .field.svelte-vywflk .hint {
  color: var(--dating-muted);
}

html.landing-dating .auth-step .input.input--secondary.input--neutral.svelte-14rzpox {
  background: var(--dating-input-bg);
  border-color: var(--dating-input-border);
}

html.landing-dating .auth-step .input.input--secondary.input--neutral.svelte-14rzpox:focus-within {
  border-color: rgba(255, 140, 190, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.18);
}

html.landing-dating .auth-step .country.svelte-1cug6p,
html.landing-dating .auth-step input.field.svelte-14rzpox {
  color: #fff;
}

html.landing-dating #submit-btn.button--primary,
html.landing-dating #code-submit-btn.button--primary,
html.landing-dating #password-submit-btn.button--primary,
html.landing-dating #password-reset-btn.button--primary,
html.landing-dating #return-btn.button--primary {
  background: linear-gradient(90deg, #ff4d8d, #d96bff) !important;
  border: none !important;
  box-shadow: 0 12px 36px rgba(255, 77, 141, 0.4);
  color: #fff !important;
}

html.landing-dating #submit-btn .content,
html.landing-dating #code-submit-btn .content,
html.landing-dating #password-submit-btn .content,
html.landing-dating #password-reset-btn .content,
html.landing-dating #return-btn .content {
  color: #fff !important;
  font-weight: 600;
  opacity: 1 !important;
}

html.landing-dating #submit-btn.button--disabled .content,
html.landing-dating #code-submit-btn.button--disabled .content,
html.landing-dating #password-submit-btn.button--disabled .content {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.landing-dating #submit-btn.button--primary:not(.button--disabled):hover,
html.landing-dating #code-submit-btn.button--primary:not(.button--disabled):hover,
html.landing-dating #password-submit-btn.button--primary:not(.button--disabled):hover {
  filter: brightness(1.08);
}

html.landing-dating .qr-phone-link,
html.landing-dating .back-link {
  color: #ff9ec8;
  font-weight: 500;
}

html.landing-dating .auth--regular.svelte-vywflk .footer.svelte-vywflk {
  padding: 12px 24px 24px;
}

html.landing-dating .auth--regular.svelte-vywflk .footer .description {
  color: rgba(255, 220, 235, 0.75);
  font-size: 12px;
  line-height: 1.45;
}

html.landing-dating .legal-link.svelte-vywflk {
  color: #ffb8d9;
}

html.landing-dating #step-phone .field.svelte-vywflk {
  margin-top: 0;
  margin-bottom: 0;
}

html.landing-dating #step-phone .auth-step-actions {
  margin-top: 16px;
}

html.landing-dating #step-phone .explainer.svelte-vywflk {
  display: none;
}

html.landing-dating #step-phone .field.svelte-vywflk .hint {
  display: none;
}

@media (max-width: 640px) {
  html.landing-dating .dating-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  html.landing-dating .dating-main {
    align-items: center;
  }

  html.landing-dating .auth.auth--regular.svelte-vywflk {
    border-radius: 20px;
  }

  html.landing-dating .auth--regular.svelte-vywflk .form.svelte-vywflk {
    padding: 22px 18px 6px;
  }

  html.landing-dating .dating-stats {
    gap: 8px;
  }

  html.landing-dating .dating-stat strong {
    font-size: 16px;
  }

  html.landing-dating #step-qr .qr.svelte-vywflk {
    width: min(256px, 72vw);
    height: min(256px, 72vw);
  }

  html.landing-dating #step-qr .qr.svelte-vywflk img,
  html.landing-dating #step-qr .qr.svelte-vywflk .qr-spinner {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 360px) {
  html.landing-dating .dating-stats {
    grid-template-columns: 1fr;
  }
}
