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

:root { --ink: #f3f7f5; --muted: #8b9999; --line: rgba(211, 229, 222, .12); --surface: #101a1c; --mint: #9de8c4; --coral: #ff8e78; }
* { box-sizing: border-box; }
body { margin: 0; background: #081113; color: var(--ink); font-family: 'DM Sans', sans-serif; }
[x-cloak] { display: none !important; }
button, input { font: inherit; }
button { border: 0; }
.app-shell { min-height: 100vh; background: radial-gradient(circle at 92% 0%, rgba(57, 110, 96, .25), transparent 35%), #081113; }
.app-width { width: min(100%, 920px); margin: auto; }
.eyebrow, .section-kicker { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand-title, .section-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.brand-title { font-size: 1.65rem; }.brand-title span { color: var(--coral); }.section-title { font-size: 1.7rem; }
.app-content { padding-top: 1.25rem; padding-bottom: 6.5rem !important; }.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }.icon-button svg { width: 19px; }.icon-button.small { width: 36px; height: 36px; color: var(--coral); }
.filter-panel, .soft-note { display: flex; align-items: center; gap: .55rem; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: #c0ceca; font-size: .8rem; }.status-dot, .online-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(157,232,196,.1); }.filter-button, .chip { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); color: #c8d7d2; font-size: .76rem; }.filter-button { color: var(--mint); }.filter-icon { margin-right: .25rem; font-size: 1rem; }.filter-panel { display: block; }.close-button { padding: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; }.small-label { color: var(--muted); font-size: .72rem; }.small-label span { float: right; color: var(--mint); }.form-range { accent-color: var(--mint); }.chip.active { border-color: var(--mint); color: var(--mint); background: rgba(157,232,196,.08); }.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }.profile-card { overflow: hidden; border-radius: 10px; background: var(--surface); cursor: pointer; }.profile-photo { position: relative; aspect-ratio: 1; background-position: center; background-size: cover; }.distance-badge { position: absolute; top: .6rem; right: .6rem; padding: .25rem .45rem; border-radius: 5px; background: rgba(8,17,19,.68); color: #dbeae5; font-size: .65rem; }.profile-caption { position: absolute; right: .75rem; bottom: .7rem; left: .75rem; }.profile-caption h3 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.08rem; }.profile-caption p { margin: .15rem 0 0; color: #bfd0ca; font-size: .7rem; }.verified { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--mint); color: #10211b; font-size: .65rem; font-weight: 700; }.empty-state { padding: 3rem 0; color: var(--muted); text-align: center; }
.count-pill, .profile-tag { padding: .35rem .55rem; border-radius: 5px; background: rgba(157,232,196,.1); color: var(--mint); font-size: .68rem; }.message-list, .saved-list { border-top: 1px solid var(--line); }.message-row, .saved-row { display: flex; width: 100%; align-items: center; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }.avatar { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background-position: center; background-size: cover; }.avatar-lg { width: 58px; height: 58px; flex-basis: 58px; }.online-indicator { position: absolute; right: 1px; bottom: 2px; border: 2px solid #101a1c; }.message-copy { min-width: 0; flex: 1; }.message-copy strong, .saved-row strong { font-size: .9rem; }.message-copy time { color: var(--muted); font-size: .68rem; }.message-copy p, .saved-row p { overflow: hidden; margin: .2rem 0 0; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }.soft-note { align-items: flex-start; padding: 1rem; }.note-icon { color: var(--coral); font-size: 1.25rem; }.soft-note strong { font-size: .82rem; }.soft-note p { margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.profile-hero { position: relative; min-height: 390px; border-radius: 12px; background-position: center; background-size: cover; }.profile-hero-copy { position: absolute; right: 1.25rem; bottom: 1.25rem; left: 1.25rem; }.profile-hero h2 { margin: .6rem 0 .2rem; font-family: 'Space Grotesk', sans-serif; font-size: 2rem; }.profile-hero p { margin: 0; color: #c5d6d0; font-size: .8rem; }.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1.2rem 0; border-bottom: 1px solid var(--line); }.profile-stats div { text-align: center; }.profile-stats div + div { border-left: 1px solid var(--line); }.profile-stats strong, .profile-stats span { display: block; }.profile-stats strong { color: var(--mint); font-family: 'Space Grotesk'; font-size: 1.1rem; }.profile-stats span { margin-top: .2rem; color: var(--muted); font-size: .65rem; }.primary-button { display: flex; justify-content: space-between; padding: .9rem 1rem; border-radius: 8px; background: var(--mint); color: #10211b; font-size: .82rem; font-weight: 700; }
.tile-action { position: absolute; top: .65rem; right: .65rem; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(8,17,19,.68); color: var(--coral); font-size: .95rem; }.tile-message { margin-top: .45rem; padding: .35rem .55rem; border: 1px solid rgba(157,232,196,.5); border-radius: 5px; background: rgba(157,232,196,.12); color: var(--mint); font-size: .65rem; }
.taps-summary { display: flex; align-items: baseline; gap: .4rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.taps-summary strong { color: var(--mint); font-family: 'Space Grotesk'; }.taps-summary span { color: var(--muted); font-size: .78rem; }.tap-row { display: flex; align-items: center; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }.tap-row strong { font-size: .9rem; }.tap-row p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }.tap-button { flex: 0 0 auto; padding: .55rem .7rem; }
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; justify-content: center; gap: min(13vw, 7rem); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8,17,19,.92); backdrop-filter: blur(18px); }.bottom-nav button { position: relative; display: flex; min-width: 55px; flex-direction: column; align-items: center; gap: .18rem; background: none; color: var(--muted); }.bottom-nav button span { font-size: 1.35rem; line-height: 1; }.bottom-nav small { font-size: .64rem; }.bottom-nav button.active { color: var(--mint); }.bottom-nav b { position: absolute; top: -2px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.bottom-nav .discover-button { z-index: 1; width: 64px; min-width: 64px; height: 64px; margin-top: -2.2rem; justify-content: center; gap: .15rem; border: 5px solid #081113; border-radius: 50%; background: var(--mint); color: #10211b; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }.bottom-nav .discover-button span { font-size: 1.8rem; }.bottom-nav .discover-button small { font-size: .6rem; font-weight: 700; }.bottom-nav .discover-button.active { background: #c1f4da; color: #10211b; }
.profile-modal { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: #081113; overscroll-behavior: contain; touch-action: pan-y; }.profile-modal-window { position: relative; width: min(100%, 720px); min-height: 100%; margin: auto; background: #101a1c; }.profile-modal-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(8,17,19,.65); color: var(--ink); font-size: 1.6rem; line-height: 1; }.profile-modal-image { position: relative; min-height: min(76vh, 650px); background-position: center; background-size: cover; }.profile-modal-heading { position: absolute; right: 1.25rem; bottom: 1.5rem; left: 1.25rem; }.profile-modal-heading h2 { margin: .7rem 0 .2rem; font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 9vw, 4.5rem); letter-spacing: -.06em; }.profile-modal-heading p { margin: 0; color: #c8d8d3; font-size: .9rem; }.profile-modal-details { padding: 1.5rem 1.25rem 7rem; }.profile-detail-row { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }.detail-label { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.profile-detail-row p { margin: 0; color: #d1ded9; font-size: .95rem; line-height: 1.6; }.profile-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }.profile-detail-grid strong { color: #d1ded9; font-size: .85rem; font-weight: 500; }.interest-list { display: flex; flex-wrap: wrap; gap: .5rem; }.interest-chip { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 6px; color: #c8d8d3; font-size: .75rem; }.profile-modal-details .primary-button { margin-top: 1.5rem; }.chat-sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(0,0,0,.65); }.chat-window { width: min(100%, 620px); max-height: 86vh; margin: auto auto 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #101a1c; }.chat-header { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--line); }.chat-header .close-button { margin-right: .2rem; }.chat-header p { color: var(--mint); font-size: .7rem; }.chat-messages { min-height: 280px; padding: 1rem; }.date-divider { margin-bottom: 1rem; color: var(--muted); font-size: .65rem; text-align: center; }.bubble { width: fit-content; max-width: 78%; margin-bottom: .55rem; padding: .65rem .8rem; border-radius: 10px; font-size: .8rem; }.received { background: #1d2b2b; }.sent { margin-left: auto; background: var(--mint); color: #10211b; }.composer { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }.composer input { min-width: 0; flex: 1; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #182526; color: var(--ink); font-size: .8rem; }.composer button { width: 40px; border-radius: 7px; background: var(--mint); color: #10211b; font-size: 1.2rem; }.toast-message { position: fixed; right: 1rem; bottom: 6rem; left: 1rem; z-index: 30; padding: .8rem 1rem; border: 1px solid rgba(157,232,196,.3); border-radius: 8px; background: #172a27; color: var(--mint); font-size: .78rem; text-align: center; }
@media (min-width: 640px) { .app-content { padding-top: 2rem; }.profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.bottom-nav { border-right: 1px solid var(--line); border-left: 1px solid var(--line); }.chat-window { margin-bottom: 0; border-bottom: 1px solid var(--line); border-radius: 14px; } }

/* Full-screen chat keeps only the message history scrollable. */
.chat-sheet { align-items: stretch; background: #081113; }
.chat-window { display: flex; width: 100%; height: 100%; max-height: none; flex-direction: column; margin: 0; border: 0; border-radius: 0; }
.chat-header { flex: 0 0 auto; padding-top: max(1rem, env(safe-area-inset-top)); }
.chat-messages { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.composer { flex: 0 0 auto; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); background: #101a1c; }
.bottom-nav button > span > i { font-size: 1.2rem; }
.bottom-nav .discover-button span > i { font-size: 1.65rem; }
.bottom-nav { gap: 0; padding-right: max(.25rem, env(safe-area-inset-right)); padding-left: max(.25rem, env(safe-area-inset-left)); overflow: visible; }
.bottom-nav > button { min-width: 0; flex: 1 1 0; padding-right: .15rem; padding-left: .15rem; }
.bottom-nav > button small { max-width: 100%; overflow: hidden; font-size: clamp(.52rem, 2.2vw, .64rem); text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav .discover-button { width: auto; min-width: 0; height: auto; margin-top: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); }
.bottom-nav .discover-button > span:first-child { display: grid; width: 56px; height: 56px; margin-top: -1.65rem; place-items: center; border: 5px solid #081113; border-radius: 50%; background: var(--mint); color: #10211b; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.bottom-nav .discover-button.active { background: none; color: var(--mint); }
.bottom-nav .discover-button.active > span:first-child { background: #c1f4da; color: #10211b; }
.filter-button > i { margin-right: .3rem; }
.close-button > i { font-size: .9rem; }
.profile-modal { z-index: 30; }
.profile-modal.profile-over-chat { z-index: 50; }
.chat-sheet { z-index: 40; }
.chat-sheet.chat-under-profile { z-index: 20; }
.profile-modal-window { width: 100%; max-width: none; min-height: 100%; margin: 0; border-radius: 0; }
.profile-media-stage { position: relative; height: 100svh; }
.profile-gallery { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: auto; }
.profile-gallery-slide { position: relative; height: 100svh; scroll-snap-align: start; background-position: center; background-size: cover; }
.profile-gallery-indicator { position: absolute; top: 50%; right: 1.25rem; padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; transform: translateY(-50%); background: rgba(8,17,19,.62); color: var(--ink); font-size: .7rem; }
.profile-modal-heading { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: flex-end; gap: 1rem; justify-content: space-between; padding: 1.25rem; background: linear-gradient(180deg, transparent, rgba(8,17,19,.96) 42%); pointer-events: auto; }
.profile-heading-copy { min-width: 0; }
.profile-chat-button { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: var(--mint); color: #10211b; font-size: 1.1rem; }
.profile-chat-button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.photo-viewer { position: fixed; inset: 0; z-index: 50; display: flex; width: 100vw; height: 100dvh; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.photo-viewer img { display: block; width: 100vw; height: 100dvh; max-width: none; max-height: none; object-fit: contain; user-select: none; }
.photo-viewer-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); left: 1rem; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; }
.photo-viewer-close:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.profile-image-placeholder { background: linear-gradient(145deg, rgba(157,232,196,.08), rgba(255,255,255,.02) 55%, rgba(255,142,120,.08)); }
.profile-placeholder-icon { position: absolute; top: 50%; left: 50%; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(211,229,222,.12); border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.035); color: rgba(211,229,222,.35); font-size: 2rem; }
.chat-profile-button { padding: 0; border: 0; border-radius: 50%; background: none; }
.chat-profile-button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
