:root {
  --burgundy: #781d3d;
  --burgundy-dark: #4e1028;
  --rose: #b34b6f;
  --rose-soft: #f4dce4;
  --gold: #c99a3a;
  --gold-light: #f4dda1;
  --cream: #fffaf4;
  --paper: #ffffff;
  --ink: #2f2529;
  --muted: #766a6e;
  --line: #eadde1;
  --success: #3f7554;
  --danger: #a72d45;
  --shadow: 0 18px 60px rgba(79, 16, 40, .12);
  --shadow-soft: 0 10px 32px rgba(79, 16, 40, .08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.page-glow { position: fixed; border-radius: 999px; filter: blur(8px); pointer-events: none; z-index: -1; }
.page-glow-one { width: 420px; height: 420px; background: rgba(244, 220, 228, .55); top: -170px; right: -120px; }
.page-glow-two { width: 280px; height: 280px; background: rgba(244, 221, 161, .28); bottom: -100px; left: -90px; }

h1, h2, h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; line-height: 1.14; }
h1 { font-size: clamp(2rem, 4vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: .55rem 0; }
.eyebrow { color: var(--rose); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow-light { color: var(--gold-light); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--burgundy); text-decoration: none; font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; }
.brand-light { color: #fff; }
.brand-mark { display: block; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(214,162,61,.72); border-radius: 11px; object-fit: cover; box-shadow: 0 5px 14px rgba(53,19,33,.18); }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 1.05fr) minmax(440px, .95fr); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(2rem, 5vw, 5rem); overflow: hidden; color: white; background: linear-gradient(145deg, rgba(78,16,40,.97), rgba(120,29,61,.94)), radial-gradient(circle at 75% 25%, #bd677f, transparent 42%); }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border: 1px solid rgba(244,221,161,.22); border-radius: 50%; }
.auth-story::before { width: 420px; height: 420px; right: -210px; top: 15%; }
.auth-story::after { width: 560px; height: 560px; right: -280px; top: 8%; }
.story-copy { position: relative; z-index: 1; max-width: 730px; margin: auto 0; }
.story-copy h1 { margin: 1rem 0 1.25rem; max-width: 700px; }
.story-copy > p { max-width: 620px; color: #f0dfe5; font-size: 1.1rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.5rem; color: #ecdce1; font-size: .85rem; }
.trust-row span { display: flex; flex-direction: column; }
.trust-row b { color: var(--gold-light); font-size: 1rem; }
.story-ornament { position: absolute; right: 10%; bottom: 7%; display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid rgba(244,221,161,.25); border-radius: 50%; color: rgba(244,221,161,.3); font-size: 3rem; transform: rotate(-8deg); }
.auth-panel { display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(100%, 500px); padding: clamp(1.4rem, 4vw, 3.25rem); border: 1px solid rgba(234,221,225,.9); border-radius: var(--radius-lg); background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.mobile-brand { display: none; align-items: center; gap: .65rem; margin-bottom: 2rem; color: var(--burgundy); font-family: "Playfair Display", serif; font-size: 1.3rem; font-weight: 700; }
.auth-form { position: relative; display: grid; gap: 1rem; }
.auth-form h2 { margin-top: -.4rem; }
.auth-form .back-button { position: absolute; top: -5px; right: 0; }
.auth-switch { margin-top: .5rem; text-align: center; color: var(--muted); }
.auth-download-button { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-height: 46px; margin-top: 1.35rem; padding: .7rem 1rem; border: 1px solid #dfc4cd; border-radius: 999px; color: var(--burgundy); background: #fff5f8; text-decoration: none; font-weight: 700; transition: border-color .2s, background .2s, transform .2s; }
.auth-download-button:hover { border-color: var(--rose); background: var(--rose-soft); transform: translateY(-1px); }
.auth-download-button span { font-size: 1.15rem; }

label { display: grid; gap: .4rem; color: #4e4246; font-size: .84rem; font-weight: 600; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; background: rgba(255,255,255,.9); color: var(--ink); transition: border .2s, box-shadow .2s; }
input, select { min-height: 48px; padding: 0 .9rem; }
textarea { min-height: 110px; padding: .8rem .9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(179,75,111,.12); }
input[type="range"] { min-height: 28px; padding: 0; border: 0; box-shadow: none; accent-color: var(--burgundy); background: transparent; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 3.15rem; }
.password-toggle { position: absolute; top: 50%; right: .45rem; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: var(--burgundy); background: transparent; transform: translateY(-50%); font-size: 1.05rem; }
.password-toggle:hover { background: var(--rose-soft); }
.otp-input { letter-spacing: .6em; text-align: center; font-size: 1.5rem; font-weight: 700; }
.captcha-hint { margin: 0; padding: .7rem .8rem; border-left: 3px solid var(--gold); border-radius: 8px; color: var(--burgundy-dark); background: #fff7df; font-size: .82rem; }
.captcha-panel { display: grid; gap: .35rem; margin-top: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffaf4; }
.captcha-panel > strong { color: var(--burgundy); font-size: .88rem; }
.captcha-panel > span { color: var(--muted); font-size: .78rem; }
.otp-resend-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 28px; font-size: .82rem; }
.otp-resend-row .link-button { flex: 0 0 auto; }
.form-grid { display: grid; gap: 1rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.primary-button, .gold-button, .outline-button, .ghost-button, .ghost-button-light, .text-danger-button, .link-button, .back-button, .icon-button, .close-button { border: 0; background: none; }
.primary-button, .gold-button, .outline-button, .ghost-button, .ghost-button-light { min-height: 46px; padding: .7rem 1.15rem; border-radius: 999px; font-weight: 700; }
.primary-button { color: white; background: linear-gradient(135deg, var(--burgundy), #9a2c55); box-shadow: 0 8px 24px rgba(120,29,61,.2); }
.primary-button:hover { background: var(--burgundy-dark); }
.gold-button { color: var(--burgundy-dark); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.outline-button { border: 1px solid var(--line); color: var(--burgundy); background: rgba(255,255,255,.72); }
.outline-button:hover, .ghost-button:hover { border-color: var(--rose); background: var(--rose-soft); }
.ghost-button { border: 1px solid transparent; color: var(--burgundy); }
.ghost-button-light { border: 1px solid rgba(255,255,255,.4); color: white; }
.full-button { width: 100%; }
.link-button { padding: 0; color: var(--burgundy); font-weight: 700; }
.align-right { justify-self: end; }
.back-button, .close-button { width: 38px; height: 38px; border-radius: 50%; color: var(--burgundy); font-size: 1.35rem; }
.back-button:hover, .close-button:hover { background: var(--rose-soft); }
.text-danger-button { color: var(--danger); font-weight: 700; }

.app-view { min-height: 100vh; }
.app-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 clamp(1rem, 5vw, 5rem); border-bottom: 1px solid rgba(234,221,225,.8); background: rgba(255,250,244,.9); backdrop-filter: blur(16px); }
.desktop-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link { position: relative; border: 0; padding: 1.6rem 1rem; color: var(--muted); background: transparent; font-weight: 700; }
.nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 3px; border-radius: 4px 4px 0 0; background: transparent; }
.nav-link.active { color: var(--burgundy); }
.nav-link.active::after { background: var(--burgundy); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.avatar-button, .icon-button { display: grid; place-items: center; border: 0; border-radius: 50%; }
.avatar-button { width: 42px; height: 42px; color: white; background: var(--burgundy); font-weight: 700; }
.icon-button { width: 38px; height: 38px; color: var(--burgundy); background: #f2e5e9; font-size: 1.15rem; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: white; background: var(--rose); font-size: .7rem; }

.dashboard { width: min(1440px, 100%); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4rem) 7rem; }
.panel { display: none; }
.panel.active { display: block; animation: reveal .32s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.download-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: center; gap: clamp(2rem, 8vw, 7rem); min-height: min(680px, calc(100vh - 170px)); padding: clamp(2rem, 5vw, 5rem); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 82% 22%, rgba(244,221,161,.42), transparent 28%), linear-gradient(145deg, #fff, #f9ebf0); box-shadow: var(--shadow); }
.download-copy { max-width: 680px; }
.download-copy h1 { margin: .55rem 0 1rem; color: var(--burgundy-dark); }
.download-copy p { max-width: 600px; color: var(--muted); font-size: 1.08rem; }
.download-button { display: inline-flex; align-items: center; justify-content: center; margin: 1.5rem 0 .85rem; text-decoration: none; }
.download-copy small { display: block; max-width: 540px; color: var(--muted); }
.download-phone { justify-self: center; width: min(310px, 70vw); padding: 12px; border: 5px solid var(--burgundy-dark); border-radius: 42px; background: #2f1520; box-shadow: 0 28px 70px rgba(78,16,40,.28); transform: rotate(3deg); }
.download-phone-screen { display: grid; place-items: center; min-height: 500px; padding: 2rem; border-radius: 28px; color: white; text-align: center; background: radial-gradient(circle at 50% 28%, #ad496c, transparent 32%), linear-gradient(160deg, var(--burgundy), var(--burgundy-dark)); }
.download-phone-screen .brand-mark { width: 76px; height: 76px; border-radius: 22px; }
.download-phone-screen h2 { margin-top: 1rem; }
.download-phone-screen p { color: #efdce3; }
.download-heart { margin-top: 3rem; color: var(--gold-light); font-size: 5rem; line-height: 1; }
.hero-row, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.hero-row > div:first-child { max-width: 700px; }
.hero-row h1, .section-heading h1 { margin-top: .35rem; color: var(--burgundy-dark); }
.hero-actions { display: flex; align-items: center; gap: .75rem; }
.search-box { position: relative; display: flex; align-items: center; min-width: min(360px, 34vw); }
.search-box span { position: absolute; left: 1rem; color: var(--rose); font-size: 1.25rem; }
.search-box input { padding-left: 2.7rem; border-radius: 999px; }
.filter-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: .3rem; border-radius: 50%; color: white; background: var(--burgundy); font-size: .7rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 1.5rem; }
.filter-chip { border: 1px solid #e7cbd5; border-radius: 999px; padding: .35rem .7rem; color: var(--burgundy); background: #fff3f6; font-size: .78rem; font-weight: 600; }
.guest-match-type { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: .65rem; margin: -1rem 0 1.5rem; }
.guest-match-type button { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border: 1px solid #dfc4cd; border-radius: 16px; color: var(--burgundy); background: white; font-weight: 800; }
.guest-match-type button span { font-size: 1.3rem; }
.guest-match-type button.active { border-color: var(--burgundy); color: white; background: linear-gradient(135deg, var(--burgundy), #9a2c55); box-shadow: 0 8px 24px rgba(120,29,61,.18); }
.interest-active-filters { align-items: center; margin: -.8rem 0 1.2rem; }
.interest-active-filters .clear-interest-filters { border: 0; padding: .35rem .55rem; color: var(--burgundy); background: transparent; font-weight: 700; }

.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.profile-card { position: relative; overflow: hidden; border: 1px solid rgba(234,221,225,.9); border-radius: var(--radius-md); background: var(--paper); box-shadow: 0 10px 30px rgba(79,16,40,.07); transition: transform .2s, box-shadow .2s; }
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(79,16,40,.13); }
.profile-card-photo { position: relative; width: 100%; aspect-ratio: 4 / 4.5; overflow: hidden; border: 0; padding: 0; background: linear-gradient(145deg, #ead7de, #f8ecef); }
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.profile-card:hover .profile-card-photo img { transform: scale(1.025); }
.photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--rose); font-family: "Playfair Display", serif; font-size: 2.6rem; background: radial-gradient(circle at 50% 35%, white, #eedce2); }
.photo-count { position: absolute; right: .7rem; bottom: .7rem; padding: .25rem .55rem; border-radius: 999px; color: white; background: rgba(38,20,27,.68); font-size: .72rem; backdrop-filter: blur(8px); }
.profile-card-body { padding: 1rem; }
.profile-code { color: var(--rose); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.profile-card h3 { margin: .25rem 0 .4rem; color: var(--burgundy-dark); }
.profile-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; color: var(--muted); font-size: .8rem; }
.profile-meta span + span::before { content: "•"; margin-right: .7rem; color: var(--gold); }
.profile-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #f0e6e9; }
.view-profile { border: 0; padding: 0; color: var(--burgundy); background: none; font-weight: 700; }
.city-tag { padding: .25rem .55rem; border-radius: 999px; color: #725e65; background: #f6edf0; font-size: .72rem; }

.empty-state { max-width: 520px; margin: 5rem auto; text-align: center; color: var(--muted); }
.empty-state > span { display: block; color: var(--rose); font-size: 2.8rem; }
.empty-state h3 { margin: .5rem 0; color: var(--burgundy-dark); }
.empty-state .outline-button { margin-top: 1rem; }
.skeleton { overflow: hidden; min-height: 410px; background: #f3e8eb; }
.skeleton::after { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: translateX(-100%); animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.reveal-meter { display: grid; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.reveal-meter b { color: var(--burgundy); }
.reveal-meter span { color: var(--muted); font-size: .72rem; }
.segmented-control { display: inline-flex; gap: .3rem; margin-bottom: 1.5rem; padding: .3rem; border-radius: 999px; background: #f0e3e7; }
.segmented-control button { border: 0; border-radius: 999px; padding: .55rem 1.2rem; color: var(--muted); background: transparent; font-weight: 700; }
.segmented-control button.active { color: var(--burgundy); background: white; box-shadow: 0 3px 12px rgba(79,16,40,.1); }
.interest-list { display: grid; gap: .8rem; }
.interest-card { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.interest-photo { width: 82px; height: 82px; overflow: hidden; border-radius: 14px; background: #f1e2e7; }
.interest-photo img { width: 100%; height: 100%; object-fit: cover; }
.interest-info h3 { margin-bottom: .25rem; color: var(--burgundy-dark); }
.interest-name { border: 0; padding: 0; color: inherit; background: transparent; font-family: inherit; font-size: inherit; font-weight: inherit; text-align: left; }
.interest-name:hover, .interest-name:focus-visible { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; color: #805c25; background: #fff4d9; font-size: .72rem; font-weight: 700; text-transform: capitalize; }
.status-pill.accepted { color: var(--success); background: #e7f3eb; }
.status-pill.rejected { color: var(--danger); background: #fdebed; }
.interest-actions { display: flex; align-items: center; gap: .5rem; }
.interest-actions .primary-button, .interest-actions .ghost-button { min-height: 40px; padding: .5rem .85rem; }

.profile-summary { display: grid; grid-template-columns: minmax(260px, .65fr) 1.35fr; gap: 2rem; }
.account-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: .8rem; }
.account-metrics > div { display: grid; gap: .2rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, white, #fff7f9); }
.account-metrics span { color: var(--rose); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.account-metrics b { color: var(--burgundy-dark); }
.account-metrics small { color: var(--muted); }
.metric-activate-button { justify-self: start; margin-top: .55rem; padding: .55rem .85rem; border: 0; border-radius: 999px; color: white; background: var(--burgundy); font-weight: 750; cursor: pointer; }
.metric-activate-button:hover { background: var(--burgundy-dark); }
.summary-photo { position: sticky; top: 100px; align-self: start; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: #f0e0e6; }
.summary-photo img { width: 100%; height: 100%; object-fit: cover; }
.dialog-gallery.summary-photo { height: auto; }
.dialog-gallery.summary-photo .gallery-slide img { object-fit: contain; }
.summary-details { display: grid; gap: 1.2rem; }
.detail-section { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.detail-section h3 { margin-bottom: 1rem; color: var(--burgundy); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; }
.detail-item { display: grid; gap: .15rem; }
.detail-item dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.detail-item dd { margin: 0; font-weight: 600; white-space: pre-line; }

.profile-form { display: grid; gap: 1.25rem; }
.profile-form > #profile-fields { display: grid; gap: 1.25rem; }
.form-section { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.form-section-title { margin-bottom: 1.5rem; }
.form-section-title > div { display: flex; align-items: start; gap: .85rem; }
.form-section-title p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.step-number { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: var(--burgundy); background: var(--rose-soft); font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.field-wide { grid-column: span 2; }
.field-full { grid-column: 1 / -1; }
.required-mark { color: var(--rose); }
.profile-date-control { position: relative; display: grid; grid-template-columns: 1fr 48px; }
.profile-date-control [data-profile-date-display] { padding-right: .5rem; border-radius: var(--radius-sm) 0 0 var(--radius-sm); cursor: pointer; }
.profile-date-control button { min-height: 48px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--burgundy); background: #fff7f9; font-size: 1.1rem; }
.profile-native-date { position: absolute; width: 1px; height: 1px; right: 0; bottom: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.photo-editor { display: flex; flex-wrap: wrap; gap: 1rem; }
.editable-photo { position: relative; width: 150px; aspect-ratio: 4/5; overflow: hidden; border-radius: 14px; background: #f2e4e8; }
.editable-photo img { width: 100%; height: 100%; object-fit: cover; }
.editable-photo button { position: absolute; top: .5rem; right: .5rem; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; color: white; background: rgba(78,16,40,.82); }
.photo-upload { place-items: center; width: 150px; min-height: 180px; margin-top: 1rem; border: 1px dashed #cda5b3; border-radius: 14px; color: var(--burgundy); background: #fff8fa; cursor: pointer; text-align: center; }
.photo-upload:first-letter { font-size: 2rem; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.form-footer > div { display: flex; gap: .5rem; }
.profile-range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.66); }
.range-pair-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.range-pair-heading strong { color: #4e4246; font-size: .9rem; }
.range-pair-heading span { color: var(--burgundy); font-weight: 700; }
.profile-account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.profile-account-actions button { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.danger-outline-button { min-height: 46px; padding: .7rem 1.15rem; border: 1px solid #e5b8c2; border-radius: 999px; color: var(--danger); background: #fff8f9; font-weight: 700; }
.danger-outline-button:hover { border-color: var(--danger); background: #fdebed; }

.membership-section { display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at top right, rgba(244,221,161,.22), transparent 35%); }
.profile-membership-section { margin-top: 2rem; padding: 0; background: transparent; }
.load-more-row { display: flex; justify-content: center; margin-top: 1.5rem; }
.compatibility-card { display: grid; gap: .65rem; margin: 1rem 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid #e8cbd5; border-radius: 16px; background: linear-gradient(135deg, #fff6f8, white); }
.compatibility-card > div:first-child { display: flex; align-items: center; justify-content: space-between; color: var(--burgundy); }
.compatibility-card b { font-family: "Playfair Display", serif; font-size: 1.6rem; }
.compatibility-card small { color: var(--muted); line-height: 1.45; }
.compatibility-track { height: 9px; overflow: hidden; border-radius: 999px; background: #eddde2; }
.compatibility-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--burgundy)); transition: width .45s ease; }
.guest-profile-card { max-width: 720px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, white, #fff5f7); box-shadow: var(--shadow-soft); }
.guest-profile-card h2 { margin: .45rem 0 .6rem; color: var(--burgundy-dark); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.guest-profile-card p { color: var(--muted); line-height: 1.65; }
.guest-profile-card > div { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.help-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); }
.help-card h2 { margin: .5rem 0 1rem; color: var(--burgundy-dark); }
.help-card ol { display: grid; gap: .8rem; padding-left: 1.2rem; color: var(--text); line-height: 1.55; }
.language-tag { display: inline-flex; padding: .3rem .65rem; border-radius: 999px; color: var(--burgundy); background: var(--rose-soft); font-size: .75rem; font-weight: 700; }
.membership-card { position: relative; width: min(720px, 100%); overflow: hidden; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 34px; color: white; background: linear-gradient(145deg, var(--burgundy-dark), var(--burgundy)); box-shadow: 0 28px 80px rgba(78,16,40,.28); }
.membership-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; bottom: -180px; border: 1px solid rgba(244,221,161,.25); border-radius: 50%; box-shadow: 0 0 0 60px rgba(244,221,161,.04), 0 0 0 120px rgba(244,221,161,.03); }
.membership-card h1 { max-width: 560px; margin: .8rem 0 1rem; }
.membership-card > p { max-width: 600px; color: #efdfe4; }
.free-offer-block { position: relative; z-index: 1; display: grid; justify-items: start; gap: .35rem; max-width: 520px; margin: 1.4rem 0; padding: 1.15rem; border: 1px solid rgba(244,221,161,.58); border-radius: 18px; background: rgba(255,255,255,.08); }
.free-offer-block strong { color: #fff; font-family: "Playfair Display", serif; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.free-offer-block small { margin-bottom: .55rem; color: #f0dfe5; }
.limited-offer-label { color: var(--gold-light); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.membership-card ul { display: grid; gap: .55rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.membership-benefits li { display: flex; align-items: center; gap: .75rem; }
.membership-benefit-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(244,221,161,.55); border-radius: 50%; color: var(--gold-light); font-size: 1.15rem; }
.membership-seal { position: absolute; top: 2rem; right: 2rem; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: "Playfair Display", serif; font-size: 1.35rem; }
.price-row { display: flex; align-items: end; gap: .75rem; margin: 1.5rem 0; }
.price-row span { font-family: "Playfair Display", serif; font-size: 3.5rem; font-weight: 700; line-height: 1; }
.price-row small { color: #e9d9df; }
.membership-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .7rem; }

.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(36,20,26,.45); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(470px, 100%); height: 100%; overflow-y: auto; padding: clamp(1.3rem, 4vw, 2.4rem); background: var(--cream); box-shadow: -20px 0 60px rgba(50,20,32,.16); transform: translateX(100%); transition: transform .28s ease; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: .7rem; }
.drawer-panel > label, .drawer-panel > .form-grid, .drawer-panel > fieldset { margin-top: 1.1rem; }
fieldset { border: 0; padding: 0; }
legend { margin-bottom: .6rem; color: #4e4246; font-size: .84rem; font-weight: 600; }
.choice-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-pills label { display: block; }
.choice-pills input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pills span { display: block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: white; }
.choice-pills input:checked + span { border-color: var(--rose); color: var(--burgundy); background: var(--rose-soft); }
.drawer-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(36,20,26,.62); backdrop-filter: blur(4px); }
.profile-dialog { width: min(1100px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow); }
.dialog-close { position: fixed; z-index: 3; top: max(1.6rem, calc(50vh - 400px)); right: max(1.6rem, calc(50vw - 520px)); display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--burgundy); background: rgba(255,255,255,.88); font-size: 1.5rem; box-shadow: 0 4px 18px rgba(50,20,32,.14); }
.dialog-layout { display: grid; grid-template-columns: minmax(320px, .78fr) 1.22fr; min-height: 700px; }
.dialog-gallery { position: sticky; top: 0; align-self: start; height: min(820px, calc(100vh - 2rem)); overflow: hidden; background: #eadce1; }
.gallery-track { display: flex; height: 100%; transition: transform .3s ease; }
.gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; background: #eadce1; }
.gallery-dots { position: absolute; left: 50%; bottom: 1rem; display: flex; gap: .45rem; padding: .45rem .65rem; border-radius: 999px; background: rgba(54,30,39,.45); transform: translateX(-50%); }
.gallery-dots button { width: 8px; height: 8px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.55); }
.gallery-dots button.active { width: 22px; border-radius: 999px; background: white; }
.gallery-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--burgundy); background: rgba(255,255,255,.82); transform: translateY(-50%); }
.gallery-arrow.previous { left: .8rem; }
.gallery-arrow.next { right: .8rem; }
.dialog-profile-content { padding: clamp(1.5rem, 4vw, 3rem); }
.dialog-title-block { margin-bottom: 1.5rem; padding-right: 2rem; }
.dialog-title-block h1 { margin: .35rem 0; font-size: clamp(2rem, 4vw, 3rem); color: var(--burgundy-dark); }
.dialog-title-block .profile-meta { font-size: .9rem; }
.contact-card { margin: 1.2rem 0; padding: 1.1rem; border: 1px solid #eed092; border-radius: 14px; background: #fff8e5; }
.contact-card h3 { color: #76541c; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin-top: .8rem; }
.contact-item { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(255,255,255,.62); }
.contact-item a { display: grid; min-width: 0; color: inherit; text-decoration: none; }
.contact-item span { color: var(--muted); font-size: .72rem; }
.contact-item button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #e7cf9d; border-radius: 50%; color: #76541c; background: white; font-size: 1.05rem; }
.contact-item button:hover { border-color: var(--gold); background: #fff3d5; }
.dialog-cta { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem -3rem -3rem; padding: 1rem 3rem; border-top: 1px solid var(--line); background: rgba(255,250,244,.94); backdrop-filter: blur(10px); }
.dialog-cta p { color: var(--muted); font-size: .8rem; }
.confirm-dialog { width: min(500px, calc(100% - 2rem)); border-radius: var(--radius-lg); background: var(--cream); }
.confirm-dialog form { padding: 2rem; text-align: center; }
.confirm-dialog .account-dialog-form { display: grid; gap: 1rem; text-align: left; }
.account-dialog-form .confirm-icon, .account-dialog-form h2, .account-dialog-form > p { margin-inline: auto; text-align: center; }
.account-dialog-form > p { margin-top: 0; }
.account-dialog-form .dialog-actions { margin-top: .25rem; }
.confirm-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%; color: var(--burgundy); background: var(--rose-soft); font-size: 2rem; }
.confirm-dialog p { margin: 1rem 0 1.5rem; color: var(--muted); }
.dialog-actions { display: flex; justify-content: center; gap: .7rem; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; overflow: hidden; background: #1e1116; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 46px; height: 46px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.14); font-size: 1.7rem; }

.toast-region { position: fixed; z-index: 100; top: 1rem; right: 1rem; display: grid; gap: .6rem; width: min(380px, calc(100% - 2rem)); }
.toast { display: flex; align-items: start; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 34px rgba(50,20,32,.18); animation: toastIn .25s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast button { margin-left: auto; border: 0; color: var(--muted); background: transparent; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: span 1; }
}

@media (max-width: 900px) {
  .auth-layout { display: block; padding: 1rem; background: linear-gradient(160deg, #f9eef2, var(--cream) 45%); }
  .auth-story { display: none; }
  .auth-panel { min-height: calc(100vh - 2rem); padding: 0; }
  .mobile-brand { display: flex; }
  .app-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-summary { grid-template-columns: 1fr; }
  .account-metrics { grid-template-columns: 1fr; }
  .summary-photo { position: relative; top: 0; width: min(420px, 100%); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-gallery { position: relative; height: min(70vh, 620px); }
  .dialog-close { top: 1.6rem; right: 1.6rem; }
  .dialog-cta { margin: 1.5rem -1.5rem -1.5rem; padding: 1rem 1.5rem; }
  .download-page { grid-template-columns: 1fr; text-align: center; }
  .help-grid { grid-template-columns: 1fr; }
  .download-copy { margin: 0 auto; }
  .download-copy p, .download-copy small { margin-left: auto; margin-right: auto; }
  .mobile-nav { position: fixed; z-index: 40; left: 50%; bottom: .7rem; display: grid; grid-template-columns: repeat(5, 1fr); width: min(560px, calc(100% - 1rem)); padding: .35rem; border: 1px solid rgba(234,221,225,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 36px rgba(50,20,32,.16); backdrop-filter: blur(14px); transform: translateX(-50%); }
  .mobile-nav button { display: grid; place-items: center; gap: .1rem; border: 0; border-radius: 14px; padding: .45rem; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 700; }
  .mobile-nav button span { font-size: 1.15rem; }
  .mobile-nav button.active { color: var(--burgundy); background: var(--rose-soft); }
}

@media (max-width: 640px) {
  .auth-card { padding: 1.35rem; border-radius: 22px; }
  .two-columns { grid-template-columns: 1fr; }
  .app-header { min-height: 66px; padding: 0 1rem; }
  .app-header .brand { font-size: 1.1rem; }
  .app-header .brand-mark { width: 34px; height: 34px; }
  .dashboard { padding: 2rem 1rem 6rem; }
  .hero-row, .section-heading { display: grid; align-items: start; gap: 1.2rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr auto; }
  .guest-match-type { grid-template-columns: 1fr 1fr; margin-top: -.4rem; }
  .search-box { min-width: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: 130px 1fr; }
  .profile-card-photo { height: 100%; min-height: 185px; aspect-ratio: auto; }
  .profile-card-footer { align-items: start; flex-direction: column-reverse; gap: .5rem; }
  .interest-card { grid-template-columns: 66px 1fr; }
  .interest-photo { width: 66px; height: 76px; }
  .interest-actions { grid-column: 1 / -1; justify-content: end; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-full, .field-wide { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .form-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-account-actions { grid-template-columns: 1fr; }
  .profile-range-pair { grid-template-columns: 1fr; }
  .membership-section { padding: 1rem; }
  .profile-membership-section { padding: 0; }
  .membership-seal { position: static; margin-bottom: 1rem; }
  .membership-actions { display: grid; }
  .dialog-title-block { padding-right: 0; }
  .dialog-cta { align-items: stretch; flex-direction: column; }
  .dialog-cta .primary-button { width: 100%; }
}

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