@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #eef2ff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(37, 99, 235, 0.18);
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --primary: #ff2e63;
  --primary-strong: #ff4d7c;
  --secondary: #2563eb;
  --secondary-soft: #dbeafe;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #e11d48;
  --shadow-xl: 0 40px 80px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 12px 24px rgba(15, 23, 42, 0.07);
  --radius-3xl: 36px;
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 46, 99, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 56%, #ffffff 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 88%);
  opacity: 0.38;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.hidden {
  display: none !important;
}

.site-wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-main,
.app-page,
.legal-page {
  position: relative;
  z-index: 1;
}

.ambient-orb {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.24;
}

.ambient-orb--a {
  top: -11rem;
  left: -9rem;
  background: radial-gradient(circle, rgba(255, 46, 99, 0.95), rgba(255, 46, 99, 0));
}

.ambient-orb--b {
  right: -11rem;
  top: 16rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.92), rgba(37, 99, 235, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 52px;
  height: 52px;
  padding: 0.45rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.15), rgba(37, 99, 235, 0.16));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.12);
}

.headline {
  margin: 0;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.headline--sm {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.eyebrow,
.section-tag,
.footer-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack--xs {
  gap: 0.3rem;
}

.card,
.page-surface,
.hero-panel,
.auth-card,
.auth-visual,
.discover-sidepanel,
.chat-list,
.chat-room,
.profile-card,
.stat-tile,
.match-card,
.list-card,
.detail-item,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94)),
    var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

.button,
.auth-button,
.side-link,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.button:hover,
.auth-button:hover,
.side-link:hover,
.store-badge:hover {
  transform: translateY(-1px);
}

.button--sm {
  min-height: 44px;
  padding: 0.72rem 1rem;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.2);
}

.button--secondary,
.auth-button {
  color: var(--text);
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.button--ghost {
  color: var(--secondary);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(219, 234, 254, 0.4);
}

.chip,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(219, 234, 254, 0.54);
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.badge--warning {
  color: #9a3412;
  background: rgba(254, 215, 170, 0.65);
  border-color: rgba(249, 115, 22, 0.18);
}

.badge--success {
  color: #166534;
  background: rgba(187, 247, 208, 0.72);
  border-color: rgba(22, 163, 74, 0.18);
}

.badge--danger {
  color: #9f1239;
  background: rgba(255, 228, 230, 0.84);
  border-color: rgba(225, 29, 72, 0.18);
}

.badge--info {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.84);
}

.site-nav,
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.82);
}

.site-nav__row,
.app-navbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.public-links,
.app-links,
.page-actions,
.hero-actions,
.hero-proof,
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.public-links {
  scrollbar-width: none;
}

.public-links::-webkit-scrollbar {
  display: none;
}

.public-links a {
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
}

.public-links a:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

.site-nav__actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.app-links {
  flex: 1;
  justify-content: center;
}

.side-link {
  min-height: 44px;
  padding: 0.72rem 1rem;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
}

.side-link.is-active {
  color: var(--secondary);
  background: rgba(219, 234, 254, 0.72);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.app-user {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.6rem 0.5rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.app-navbar__tools {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.notification-anchor {
  position: relative;
}

.notification-bell {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.notification-bell__icon {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.notification-bell__icon svg {
  width: 100%;
  height: 100%;
}

.notification-bell__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  min-height: 22px;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  width: min(92vw, 390px);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    var(--surface-strong);
  box-shadow: var(--shadow-xl);
  z-index: 50;
}

.notification-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.notification-panel__list {
  display: grid;
  gap: 0.7rem;
  max-height: 420px;
  overflow: auto;
}

.notification-panel__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  text-align: left;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(37, 99, 235, 0.08);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.notification-panel__item.is-unread {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(239, 246, 255, 0.76);
}

.notification-panel__empty {
  padding: 1rem 0.25rem 0.4rem;
  text-align: center;
}

.side-avatar,
.profile-avatar,
.match-avatar,
.chat-avatar,
.admin-avatar {
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.18), rgba(37, 99, 235, 0.22));
}

.side-avatar {
  width: 52px;
  height: 52px;
}

.hero-section,
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.hero-section {
  padding-top: 3rem;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
  max-width: 38rem;
}

.hero-note {
  margin: 0;
  max-width: 34rem;
  color: var(--muted-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.hero-gradient {
  padding: 3rem;
  border-radius: var(--radius-3xl);
  color: #fff;
  background: linear-gradient(135deg, #ff2e63, #2563eb);
  box-shadow: var(--shadow-xl);
}

.hero-gradient .section-tag,
.hero-gradient .muted,
.hero-gradient .subtitle,
.hero-gradient .chip {
  color: #fff;
}

.hero-gradient .chip {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  perspective: 1800px;
}

.presentation-stage {
  position: relative;
  width: min(100%, 720px);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.phone-stage {
  position: relative;
  width: min(100%, 440px);
  padding: 1rem 0 3.25rem;
}

.phone-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.25rem;
  height: 3.4rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0));
  filter: blur(14px);
  opacity: 0.7;
}

.phone-device {
  position: relative;
  filter: drop-shadow(0 32px 56px rgba(15, 23, 42, 0.22));
}

.phone-frame {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  border-radius: 54px;
  background:
    linear-gradient(145deg, #111827 0%, #334155 20%, #0f172a 46%, #1e293b 68%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(15, 23, 42, 0.55),
    0 28px 48px rgba(15, 23, 42, 0.22);
}

.phone-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(180deg, #fdf2f8, #eff6ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 4;
  width: 42%;
  height: 1.9rem;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 0 0 1.15rem 1.15rem;
  background: linear-gradient(180deg, #020617, #111827);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-notch span {
  width: 36%;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.phone-reflection {
  position: absolute;
  inset: -8% auto auto -10%;
  z-index: 3;
  width: 48%;
  height: 128%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  pointer-events: none;
  opacity: 0.18;
}

.phone-button {
  position: absolute;
  z-index: 1;
  width: 0.32rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #94a3b8, #334155);
}

.phone-button--volume-a {
  left: -0.18rem;
  top: 7.5rem;
  height: 4.5rem;
}

.phone-button--volume-b {
  left: -0.18rem;
  top: 12.6rem;
  height: 4rem;
}

.phone-button--power {
  right: -0.18rem;
  top: 10.4rem;
  height: 5.4rem;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel--presentation {
  position: relative;
  width: 100%;
  min-height: min(78vh, 920px);
  overflow: hidden;
  background: transparent;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.25rem;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.55s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.hero-slide__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(26px);
  transform: scale(1.08);
  opacity: 0.45;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.46));
}

.hero-slide img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.hero-slide--presentation {
  padding: 0;
  transform: none;
  transition: opacity 0.55s ease;
}

.hero-slide--presentation::after {
  display: none;
}

.hero-slide--presentation.is-active {
  transform: none;
}

.hero-slide--presentation img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 920px);
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(15, 23, 42, 0.18));
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-panel {
  position: absolute;
  max-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
}

.floating-panel--likes {
  top: 8%;
  left: -6%;
}

.floating-panel--chat {
  right: -7%;
  bottom: 10%;
}

.carousel-dots {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 1rem;
  justify-content: center;
  width: 100%;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: transparent;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
}

.feature-grid,
.step-grid,
.matches-grid,
.dashboard-stats,
.profile-gallery,
.detail-grid,
.footer-grid,
.panel-grid {
  display: grid;
  gap: 1rem;
}

.panel-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2rem;
  perspective: 1200px;
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
  perspective: 1200px;
}

.feature-card,
.step-card,
.legal-card {
  padding: 1.5rem;
}

.feature-card,
.step-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  transform-origin: center bottom;
}

.feature-card::after,
.step-card::after {
  content: '';
  position: absolute;
  inset: auto -15% -32% -15%;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 46, 99, 0.16), rgba(37, 99, 235, 0));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.feature-card:hover,
.step-card:hover {
  transform: translateY(-10px) rotateX(6deg) scale(1.01);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::after,
.step-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3,
.step-card h3,
.match-card h3,
.profile-card h3 {
  margin: 0.6rem 0 0;
}

.step-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.14);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.8rem;
  border-radius: var(--radius-3xl);
}

.cta-band--premium {
  background:
    linear-gradient(135deg, rgba(255, 46, 99, 0.12), rgba(37, 99, 235, 0.12)),
    var(--surface-strong);
}

.social-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1.4rem;
  align-items: center;
  padding: 1.8rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.social-links--footer {
  margin-top: 0.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
}

.social-link__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.social-link__icon svg {
  width: 20px;
  height: 20px;
}

.auth-layout {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.auth-card,
.auth-visual {
  padding: 1.6rem;
}

.auth-card {
  align-self: center;
}

.maintenance-card {
  display: grid;
  gap: 1.35rem;
}

.maintenance-actions,
.maintenance-disabled {
  display: grid;
  gap: 0.9rem;
}

.maintenance-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maintenance-disabled {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maintenance-disabled .auth-button {
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.64;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-brand img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  padding: 0.7rem;
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.16), rgba(37, 99, 235, 0.18));
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 46, 99, 0.08), rgba(37, 99, 235, 0.08)),
    var(--surface-strong);
}

.auth-visual--device {
  display: grid;
  gap: 1.15rem;
  align-items: center;
}

.auth-device-stage {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 0.5rem 0 2.4rem;
}

.auth-device-preview {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.auth-device-preview img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.auth-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-insight-card {
  min-height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.auth-insight-metric {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.auth-preview-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
  min-height: 100%;
}

.auth-preview-main,
.auth-preview-mini {
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

.auth-preview-main {
  min-height: 560px;
}

.auth-preview-main img,
.auth-preview-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-preview-mini {
  min-height: 260px;
}

.auth-story-card {
  padding: 1.15rem;
}

.auth-buttons,
.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-button {
  width: 100%;
  justify-content: flex-start;
  padding-inline: 1rem 1.25rem;
  border-radius: 22px;
}

.auth-button img,
.auth-button__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.auth-button__icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #2563eb);
  font-weight: 800;
}

.auth-separator {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0.5rem 0;
}

.auth-separator::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}

.auth-separator span {
  position: relative;
  padding: 0 0.8rem;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--muted-soft);
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.chat-composer-form textarea,
.app-topbar input[type='search'] {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.field textarea,
.chat-composer-form textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.chat-composer-form textarea:focus,
.app-topbar input[type='search']:focus {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

.app-page,
.legal-page {
  padding: 2rem 0 0;
}

.page-surface {
  padding: 1.5rem;
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-topbar__meta {
  display: grid;
  gap: 0.35rem;
}

.status-banner {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.status-banner--warning {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(255, 251, 235, 0.98);
}

.status-banner--success {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(240, 253, 244, 0.98);
}

.status-banner--error {
  color: #9f1239;
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(255, 241, 242, 0.98);
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}

.discover-stage,
.discover-card-stack {
  position: relative;
  min-height: 700px;
}

.discover-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  align-items: end;
  border-radius: var(--radius-3xl);
  background: linear-gradient(180deg, #eff6ff, #fdf2f8);
  box-shadow: var(--shadow-xl);
  cursor: grab;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.discover-card:nth-child(2) {
  transform: scale(0.97) translateY(12px);
  opacity: 0.78;
}

.discover-card:nth-child(3) {
  transform: scale(0.94) translateY(24px);
  opacity: 0.54;
}

.discover-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.discover-card__media,
.discover-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.discover-card__media img {
  object-fit: cover;
}

.discover-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(15, 23, 42, 0.24) 100%);
}

.discover-card__body {
  position: relative;
  z-index: 1;
  margin: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-2xl);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.discover-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.discover-card__title h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.discover-card__bio {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.discover-sidepanel {
  padding: 1.2rem;
}

.discover-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.discover-empty,
.matches-empty,
.chat-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

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

.chispa-card {
  overflow: hidden;
  padding: 0;
}

.chispa-card__media {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
}

.chispa-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chispa-card__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.75rem 1rem 0;
}

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

.chispa-card__body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1rem 1.2rem;
}

.chispa-card__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.chispa-card__title h3 {
  margin: 0;
}

.chispa-card__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.match-card,
.list-card {
  padding: 1.2rem;
}

.match-card__head,
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.match-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.match-avatar {
  width: 68px;
  height: 68px;
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-tile {
  padding: 1.2rem;
}

.stat-tile strong {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  min-height: 620px;
  height: calc(100vh - 250px);
  max-height: 780px;
}

.chat-list,
.chat-room {
  padding: 1rem;
  min-height: 0;
}

.chat-list-inner {
  display: grid;
  gap: 0.65rem;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}

.chat-list-item {
  width: 100%;
  padding: 0.85rem;
  text-align: left;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.96);
}

.chat-list-item.is-active {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(219, 234, 254, 0.72);
}

.chat-avatar {
  width: 56px;
  height: 56px;
}

.chat-room {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.chat-room__header,
.chat-room__composer {
  padding: 0.35rem 0 1rem;
}

.chat-list-item__meta {
  font-size: 0.84rem;
}

.chat-thread {
  display: grid;
  gap: 0.75rem;
  padding: 0.4rem 0;
  min-height: 0;
  overflow: auto;
}

.chat-bubble {
  max-width: min(74%, 680px);
  padding: 0.9rem 1rem;
  border-radius: 20px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.chat-bubble--me {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.chat-bubble--them {
  background: rgba(248, 250, 252, 0.98);
}

.chat-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.74;
}

.chat-composer-form {
  display: grid;
  gap: 0.8rem;
}

.chat-room__composer .status-banner {
  margin-bottom: 0.75rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
}

.profile-card {
  padding: 1.3rem;
}

.profile-avatar {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item {
  padding: 1rem 1.1rem;
}

.profile-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, 1fr));
  padding: 3rem 0;
  align-items: start;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.footer-brand,
.footer-links,
.footer-stores {
  display: grid;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--secondary);
}

.store-badge {
  min-height: auto;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.store-badge img {
  width: 162px;
  height: auto;
}

.legal-shell {
  padding: 3rem 0 1rem;
}

.legal-card {
  padding: 1.8rem;
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.app-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  min-width: 260px;
  max-width: 420px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.app-toast--success {
  border-color: rgba(22, 163, 74, 0.18);
}

.app-toast--error {
  border-color: rgba(225, 29, 72, 0.18);
}

@media (max-width: 1120px) {
  .layout-split,
  .auth-grid,
  .discover-layout,
  .chat-layout,
  .profile-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .step-grid,
  .matches-grid,
  .dashboard-stats,
  .profile-gallery,
  .detail-grid,
  .panel-grid--2,
  .panel-grid--3,
  .maintenance-actions,
  .maintenance-disabled,
  .social-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav__row,
  .app-navbar__row {
    min-height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
  }

  .app-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .app-navbar__tools {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .headline {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .site-nav {
    position: static;
    backdrop-filter: none;
  }

  .site-nav__row {
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0 0.75rem;
  }

  .public-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.55rem;
    padding-bottom: 0.15rem;
  }

  .public-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 0.75rem;
    font-size: 0.93rem;
  }

  .site-nav__actions {
    width: 100%;
  }

  .site-nav__actions .button {
    flex: 1 1 0;
    min-height: 42px;
  }

  .hero-section,
  .section {
    padding: 4rem 0;
  }

  .feature-grid,
  .step-grid,
  .matches-grid,
  .dashboard-stats,
  .profile-gallery,
  .detail-grid,
  .panel-grid--2,
  .panel-grid--3,
  .maintenance-actions,
  .maintenance-disabled,
  .social-band {
    grid-template-columns: 1fr;
  }

  .hero-gradient,
  .page-surface,
  .auth-card,
  .auth-visual,
  .legal-card {
    padding: 1.2rem;
  }

  .cta-band {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 1.25rem;
  }

  .cta-band .headline--sm {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .cta-band .button {
    width: auto;
    min-height: 44px;
    justify-self: start;
  }

  .phone-frame {
    width: min(100%, 320px);
    border-radius: 42px;
  }

  .phone-screen {
    inset: 12px;
    border-radius: 32px;
  }

  .notification-panel {
    position: fixed;
    top: 88px;
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .hero-visual,
  .discover-stage,
  .discover-card-stack {
    min-height: 540px;
  }

  .presentation-stage {
    width: min(100%, 520px);
  }

  .hero-carousel--presentation {
    min-height: 540px;
  }

  .hero-slide--presentation img {
    max-height: 540px;
  }

  .chispa-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-card__body {
    margin: 0.85rem;
  }

  .app-topbar,
  .hero-actions,
  .hero-proof,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    gap: 1.15rem;
    padding: 2rem 0;
  }

  .social-links,
  .store-badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
  }

  .social-link {
    min-height: 46px;
    padding: 0.7rem 0.85rem;
  }

  .social-link__icon {
    width: 34px;
    height: 34px;
  }

  .store-badge img {
    width: 138px;
  }

  .auth-preview-stack {
    grid-template-columns: 1fr;
  }

  .auth-insight-grid {
    grid-template-columns: 1fr;
  }

  .auth-preview-main {
    min-height: 360px;
  }

  .auth-preview-mini {
    min-height: 210px;
  }

  .app-user {
    width: 100%;
    justify-content: space-between;
  }

  .chat-bubble {
    max-width: 88%;
  }
}
