/* =========================================================================
   Clubr app styles. Everything is scoped to the Clubr shell document, which
   replaces the theme on the app page, so nothing here touches other pages.
   ========================================================================= */

:root {
	--bg: #050307;
	--bg-2: #0E0912;
	--card: #170E1D;
	--card-2: #24152D;
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .16);
	--text: #FFFFFF;
	--muted: #B3A6BC;
	--c-primary: #FF2D95;
	--c-violet: #A93BFF;
	--c-magenta: #E62CC4;
	--danger: #FF5A4E;
	--grad: linear-gradient(120deg, var(--c-violet) 0%, var(--c-magenta) 52%, var(--c-primary) 100%);
	--glow: 0 10px 30px -10px color-mix(in srgb, var(--c-primary) 80%, transparent);
	--r-card: 28px;
	--r-tile: 20px;
	--r-field: 14px;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--safe-left: env(safe-area-inset-left, 0px);
	--safe-right: env(safe-area-inset-right, 0px);
	--tabbar-h: 62px;
	--font-display: "Unbounded", "Avenir Next", system-ui, sans-serif;
	--font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

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

html.clubr-html, body.clubr-body {
	margin: 0;
	height: 100%;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overscroll-behavior: none;
	-webkit-tap-highlight-color: transparent;
}
body.clubr-body { overflow: hidden; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--c-violet); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { padding: 24px; text-align: center; }

:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 2px; }

.ic {
	width: 22px; height: 22px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic--eq { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.ic--eq rect { transform-box: fill-box; transform-origin: 50% 100%; }

/* ------------------------------------------------------------------ shell */

#clubr-root {
	position: fixed;
	inset: 0;
	margin: 0 auto;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	overflow: hidden;
	isolation: isolate;
}
.view-host {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
#clubr-root.has-tabs .view-host { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }

.screen {
	min-height: 100%;
	padding: calc(var(--safe-top) + 14px) calc(16px + var(--safe-right)) 28px calc(16px + var(--safe-left));
	display: flex;
	flex-direction: column;
}

.boot-splash { position: absolute; inset: 0; display: grid; place-items: center; }
.boot-splash img { border-radius: 20px; animation: pulse 1.4s ease-in-out infinite; }

@media (min-width: 560px) {
	body.clubr-body {
		background:
			radial-gradient(60vw 60vh at 15% 20%, color-mix(in srgb, var(--c-primary) 18%, transparent), transparent 70%),
			radial-gradient(50vw 50vh at 85% 85%, rgba(192, 132, 252, .12), transparent 70%),
			#000000;
	}
	#clubr-root { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 80px rgba(0, 0, 0, .6); }
}

/* --------------------------------------------------------------- buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 0; border-radius: 999px;
	background: var(--card-2); color: var(--text);
	font-weight: 600; font-size: 15px; letter-spacing: .005em;
	text-decoration: none; white-space: nowrap;
	transition: transform .15s var(--ease), opacity .15s, background .2s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-busy { opacity: .65; cursor: progress; }
.btn--primary { background: var(--grad); box-shadow: var(--glow); }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); }
.btn--text { background: transparent; color: var(--c-violet); min-height: 40px; padding: 0 8px; }
.btn--danger { background: #E2443A; }
.btn--lg { min-height: 54px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }
.btn .ic { width: 20px; height: 20px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; flex: none;
	border: 0; border-radius: 50%; background: transparent; color: var(--text);
}
.icon-btn:active { background: var(--line); }

.round-btn {
	display: grid; place-items: center;
	width: 64px; height: 64px; border-radius: 50%;
	border: 1px solid var(--line-2); background: var(--card);
	transition: transform .15s var(--ease);
}
.round-btn:active { transform: scale(.92); }
.round-btn .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.round-btn--pass { color: #fff; }
.round-btn--like { background: var(--grad); border-color: transparent; box-shadow: var(--glow); color: #fff; }
.round-btn--like .ic { fill: currentColor; }
.round-btn--info { width: 48px; height: 48px; color: var(--muted); }
.round-btn--info .ic { width: 22px; height: 22px; }

.spinner {
	display: inline-block; width: 22px; height: 22px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .18); border-top-color: #fff;
	animation: spin .8s linear infinite;
}
.spinner--lg { width: 36px; height: 36px; border-width: 3px; }

/* ------------------------------------------------------------------ type */

.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; display: inline-block; transform: skewX(-9deg); text-shadow: 0 0 18px color-mix(in srgb, var(--c-primary) 45%, transparent); }
.display-m { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fineprint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 4px; }
.section-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 26px 4px 10px; }
.pagehead { margin: 4px 0 18px; }
.pagehead__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.pagehead__sub { color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- welcome */

.welcome {
	position: relative; min-height: 100%;
	padding-top: calc(var(--safe-top) + 18px);
	padding-bottom: calc(var(--safe-bottom) + 24px);
	justify-content: space-between;
	overflow: hidden;
}
.welcome__bg {
	position: absolute; inset: 0; z-index: -2;
	background: var(--welcome-bg) center 30% / cover no-repeat, var(--bg);
}
.welcome__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(5, 3, 7, .55) 0%, rgba(5, 3, 7, .05) 30%, rgba(5, 3, 7, .65) 58%, var(--bg) 88%),
		radial-gradient(80% 50% at 50% 100%, color-mix(in srgb, var(--c-primary) 22%, transparent), transparent 70%);
}
.welcome__beams { position: absolute; inset: -10% -30% 30%; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.welcome__beams i {
	position: absolute; top: -10%; left: 50%; width: 34%; height: 120%;
	transform-origin: 50% 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--c-violet) 55%, transparent), transparent 75%);
	clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
	filter: blur(6px);
	animation: sweep 9s ease-in-out infinite alternate;
}
.welcome__beams i:nth-child(1) { --a: -38deg; transform: rotate(var(--a)); }
.welcome__beams i:nth-child(2) { --a: 4deg; transform: rotate(var(--a)); animation-delay: -3s; background: linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 60%, transparent), transparent 70%); }
.welcome__beams i:nth-child(3) { --a: 34deg; transform: rotate(var(--a)); animation-delay: -6s; }
.welcome__brand { display: flex; align-items: center; gap: 10px; }
.welcome__brand { justify-content: center; }
.welcome__brand img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 0 60px -12px var(--c-primary); }
.welcome__copy { margin-top: auto; padding-bottom: 28px; }
.welcome__title {
	font-family: var(--font-display);
	font-weight: 750;
	font-size: clamp(40px, 12.4vw, 62px);
	line-height: .98;
	letter-spacing: -.035em;
	text-wrap: balance;
	text-shadow: 0 0 28px color-mix(in srgb, var(--c-violet) 55%, transparent), 0 0 2px rgba(255, 255, 255, .6);
}
.welcome__sub { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 30ch; }
.welcome__actions { display: grid; gap: 12px; }
.google-slot { min-height: 44px; display: flex; justify-content: center; }
.google-slot__btn { display: flex; justify-content: center; width: 100%; }

.gate { justify-content: center; }
.gate__inner { display: grid; gap: 14px; text-align: center; justify-items: center; max-width: 360px; margin: 0 auto; }
.gate__inner img { border-radius: 16px; margin-bottom: 6px; }

/* ----------------------------------------------------------------- sheets */

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(6, 4, 12, .62); opacity: 0; transition: opacity .25s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet__panel {
	position: absolute; left: 50%; bottom: 0;
	width: min(520px, 100%); max-height: calc(100dvh - var(--safe-top) - 24px);
	display: flex; flex-direction: column;
	background: var(--bg-2);
	border: 1px solid var(--line); border-bottom: 0;
	border-radius: 26px 26px 0 0;
	transform: translate(-50%, 100%);
	transition: transform .32s var(--ease);
	padding-bottom: var(--safe-bottom);
	outline: none;
}
.sheet__panel--tall { height: calc(100dvh - var(--safe-top) - 24px); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translate(-50%, 0); }
.sheet__head { display: flex; align-items: center; gap: 8px; padding: 14px 10px 6px 20px; position: relative; min-height: 56px; }
.sheet__grip { position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--line-2); }
.sheet__title { flex: 1; font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.sheet__close { margin-left: auto; color: var(--muted); }
.sheet__body { overflow-y: auto; padding: 4px 20px 24px; overscroll-behavior: contain; flex: 1; }
.confirm { display: grid; gap: 12px; }

/* ------------------------------------------------------------------ forms */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; position: relative; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .q textarea {
	width: 100%; min-height: 52px; padding: 13px 16px;
	background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-field);
	font-size: 16px; color: var(--text); outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 30%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 161, 181, .7); }
.field--short { max-width: 140px; }
.field__count { justify-self: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__error, .form__error { color: var(--danger); font-size: 13.5px; min-height: 0; }
.field__error:empty, .form__error:empty { display: none; }
.has-error input, .has-error textarea { border-color: var(--danger); }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.check input, .radio-row input { width: 22px; height: 22px; accent-color: var(--c-primary); flex: none; margin: 0; }
.radio-list { display: grid; gap: 2px; background: var(--card); border-radius: 18px; padding: 4px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; }
.radio-row:has(input:checked) { background: var(--card-2); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.segmented button { border: 0; background: transparent; padding: 11px 8px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.segmented button[aria-selected="true"] { background: var(--card-2); color: var(--text); }

.form--questions { gap: 0; }
.q { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.q__label { display: block; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.22; letter-spacing: -.015em; margin-bottom: 14px; }
.q__hint { color: var(--muted); font-size: 14px; margin: -8px 0 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip__ui {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 46px; padding: 0 18px;
	border: 1px solid var(--line-2); border-radius: 999px;
	background: var(--card); font-weight: 600; font-size: 15px;
	transition: background .15s, border-color .15s, color .15s;
}
.chip__ui .ic { width: 19px; height: 19px; color: var(--muted); }
.chip input:checked + .chip__ui { background: color-mix(in srgb, var(--c-primary) 26%, var(--card)); border-color: var(--c-primary); }
.chip input:checked + .chip__ui .ic { color: #fff; }
.chip input:focus-visible + .chip__ui { outline: 2px solid var(--c-violet); outline-offset: 2px; }

.switch { position: relative; display: inline-block; width: 52px; height: 32px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch input:checked + .switch__ui { background: var(--grad); border-color: transparent; }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--c-violet); outline-offset: 2px; }
.switch input:disabled + .switch__ui { opacity: .45; }

/* ------------------------------------------------------------- onboarding */

.onb { padding-bottom: 0; }
.onb__head { display: flex; align-items: center; gap: 10px; margin: -6px -6px 22px; }
.progress { flex: 1; height: 5px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); border-radius: 5px; transition: width .4s var(--ease); }
.onb__count { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; min-width: 74px; text-align: right; }
.onb__body { flex: 1; }
.onb__foot, .subpage__foot {
	position: sticky; bottom: 0; z-index: 2;
	margin: 0 -16px; padding: 18px 16px calc(var(--safe-bottom) + 16px);
	background: linear-gradient(180deg, transparent, var(--bg) 30%);
	display: grid; gap: 8px;
}

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.ph {
	position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-tile); overflow: hidden;
	background: var(--card); border: 1px solid var(--line); padding: 0;
	display: grid; place-items: center; color: var(--muted);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--empty { border: 1.5px dashed var(--line-2); background: transparent; }
.ph--empty.is-next { border-color: color-mix(in srgb, var(--c-primary) 70%, transparent); background: color-mix(in srgb, var(--c-primary) 8%, transparent); color: var(--c-violet); }
.ph--empty .ic { width: 30px; height: 30px; }
.ph__main, .ph__num {
	position: absolute; left: 8px; bottom: 8px;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px 4px 8px; border-radius: 999px;
	background: rgba(5, 3, 7, .78); color: #fff; font-size: 12.5px; font-weight: 600;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ph__main .ic { width: 14px; height: 14px; fill: var(--c-violet); stroke: var(--c-violet); }
.ph__num { padding: 4px 9px; }

.summary__preview { position: relative; height: min(440px, 58vh); margin-bottom: 18px; }
.summary__list { margin: 0; background: var(--card); border-radius: var(--r-tile); padding: 4px 16px; }
.summary__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { color: var(--muted); font-size: 14px; }
.summary__row dd { margin: 0; display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.summary__row dd span { overflow-wrap: anywhere; }
.summary__edit { font-size: 14px; font-weight: 600; text-decoration: none; flex: none; }

/* ------------------------------------------------------------------ swipe */

.swipe { height: 100%; min-height: 0; padding-bottom: 8px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.tonight-chip {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 0 14px;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
	font-weight: 600; font-size: 14px; color: var(--muted);
}
.tonight-chip.is-on { color: #fff; border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 24%, var(--card)); box-shadow: 0 0 22px -6px var(--c-primary); }
.tonight-chip.is-on .ic--eq rect, .tonight-pill .ic--eq rect, .tonight-card.is-on .ic--eq rect, .tonight-dot .ic--eq rect { animation: eq 1.1s ease-in-out infinite; }
.ic--eq .eq2 { animation-delay: -.35s !important; }
.ic--eq .eq3 { animation-delay: -.7s !important; }

.deck { position: relative; flex: 1; min-height: 300px; margin: 12px 0 14px; }
.deck__loading { position: absolute; inset: 0; display: grid; place-items: center; }

.card {
	position: absolute; inset: 0;
	border-radius: var(--r-card); overflow: hidden;
	background: var(--card);
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
	touch-action: none; user-select: none; -webkit-user-select: none;
	transition: transform .3s var(--ease), opacity .3s;
	will-change: transform;
}
.card.is-top { z-index: 2; cursor: grab; }
.card.is-dragging { cursor: grabbing; }
.card.is-next { z-index: 1; transform: scale(.94) translateY(14px); opacity: .55; pointer-events: none; }
.card.is-leaving { z-index: 3; pointer-events: none; }
.card--preview { position: absolute; inset: 0; touch-action: auto; cursor: pointer; }
.card__media { position: absolute; inset: 0; background: var(--card-2); }
.card__media--empty { background: radial-gradient(circle at 30% 20%, var(--card-2), var(--card)); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; -webkit-user-drag: none; }
.card__media img.is-current { opacity: 1; }
.card__bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 1; }
.card__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); }
.card__bars i.is-on { background: #fff; }
.card__info {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 90px 20px 20px;
	background: linear-gradient(0deg, rgba(5, 3, 7, .96) 18%, rgba(5, 3, 7, .55) 62%, transparent);
	display: grid; gap: 8px; justify-items: start;
}
.card__name { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -.025em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.card__age { font-weight: 300; opacity: .9; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__bio { color: rgba(255, 255, 255, .84); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__stamp {
	position: absolute; top: 38px; z-index: 2;
	font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .02em;
	padding: 4px 14px; border: 3px solid currentColor; border-radius: 12px;
	opacity: 0; pointer-events: none;
}
.card__stamp--like { left: 22px; color: var(--c-violet); transform: rotate(-14deg); text-shadow: 0 0 18px var(--c-primary); box-shadow: 0 0 22px -4px var(--c-primary), inset 0 0 14px -4px var(--c-primary); }
.card__stamp--pass { right: 22px; color: var(--danger); transform: rotate(14deg); }
.card.show-like .card__stamp--like, .card.show-pass .card__stamp--pass { opacity: 1; }

.tag {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 10px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px; font-weight: 600; white-space: nowrap;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tag .ic { width: 15px; height: 15px; }
.tag--loc { background: color-mix(in srgb, var(--c-primary) 22%, transparent); border-color: color-mix(in srgb, var(--c-violet) 35%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tonight-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 11px; border-radius: 999px;
	background: color-mix(in srgb, var(--c-primary) 30%, transparent);
	border: 1px solid color-mix(in srgb, var(--c-violet) 60%, transparent);
	color: #FFE3F3; font-size: 12.5px; font-weight: 700;
	box-shadow: 0 0 16px -4px var(--c-primary);
}

.swipe__actions { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 2px 0 6px; }
.swipe__actions.is-disabled { opacity: .3; pointer-events: none; }

/* ------------------------------------------------------------------ empty */

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 12px; margin: auto 0; }
.empty__ic { width: 52px; height: 52px; color: var(--c-violet); stroke-width: 1.4; margin-bottom: 4px; }
.empty h2 { font-family: var(--font-display); font-weight: 650; font-size: 21px; letter-spacing: -.01em; }
.empty p { color: var(--muted); max-width: 34ch; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.deck .empty { position: absolute; inset: 0; align-content: center; overflow-y: auto; padding: 16px 12px; }

/* ------------------------------------------------------------------ likes */

.likes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.like-tile {
	position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0;
	border-radius: var(--r-tile); overflow: hidden; background: var(--card);
	text-align: left; color: #fff;
	transition: transform .25s var(--ease), opacity .25s;
}
.like-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-blurred { filter: blur(12px) saturate(1.25); transform: scale(1.18); }
.like-tile__blank { position: absolute; inset: 0; background: var(--grad); opacity: .3; }
.like-tile__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(0deg, rgba(5, 3, 7, .92), transparent); display: grid; gap: 6px; }
.like-tile__info strong { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.like-tile__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.like-tile__tags .tag { font-size: 11.5px; padding: 3px 8px; }
.like-tile__tags .tag .ic { width: 13px; height: 13px; }
.like-tile__new { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 700; box-shadow: var(--glow); }
.tonight-dot { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(5, 3, 7, .7); color: var(--c-violet); }
.like-tile.is-gone { transform: scale(.9); opacity: 0; }

/* ------------------------------------------------------------------ chats */

.newmatches { margin-bottom: 8px; }
.newmatches__row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.newmatches__row::-webkit-scrollbar { display: none; }
.newmatch { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--text); width: 76px; flex: none; scroll-snap-align: start; }
.newmatch__ring { padding: 3px; border-radius: 50%; background: var(--grad); }
.newmatch__ring.is-tonight { box-shadow: 0 0 18px -2px var(--c-primary); }
.newmatch__ring .avatar { width: 66px; height: 66px; border: 3px solid var(--bg); }
.newmatch__name { font-size: 13px; font-weight: 600; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; }
.avatar--blank { display: inline-block; width: 52px; height: 52px; }
.convs { list-style: none; margin: 0; padding: 0; }
.conv { display: flex; align-items: center; gap: 14px; padding: 10px 4px; color: var(--text); text-decoration: none; border-radius: 16px; }
.conv:active { background: var(--card); }
.conv .avatar { width: 54px; height: 54px; }
.conv__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conv__top, .conv__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.conv__name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__time { font-size: 12.5px; color: var(--muted); flex: none; }
.conv__preview { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.conv.is-unread .conv__name { font-weight: 750; }
.conv.is-unread .conv__preview { color: var(--text); }
.pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }

/* ------------------------------------------------------------------- chat */

.chat { height: 100%; min-height: 0; padding: 0; }
.chat__head {
	display: flex; align-items: center; gap: 4px;
	padding: calc(var(--safe-top) + 6px) calc(8px + var(--safe-right)) 6px calc(6px + var(--safe-left));
	background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.chat__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px; text-align: left; border-radius: 12px; }
.chat__who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.chat__who span { display: grid; min-width: 0; }
.chat__who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__who small { font-size: 12.5px; color: var(--c-violet); }
.chat__who small:empty { display: none; }
.chat__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px calc(14px + var(--safe-right)) 10px calc(14px + var(--safe-left)); overscroll-behavior: contain; display: flex; flex-direction: column; }
.chat__older { align-self: center; }
.chat__intro { margin: auto 0 18px; text-align: center; display: grid; gap: 6px; padding: 20px; color: var(--text); }
.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.msgs__day { align-self: center; font-size: 12px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
.msg { max-width: 80%; display: flex; flex-direction: column; }
.msg--mine { align-self: flex-end; align-items: flex-end; }
.msg--theirs { align-self: flex-start; align-items: flex-start; }
.msg__text { padding: 9px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.msg--mine .msg__text { background: var(--grad); border-bottom-right-radius: 6px; }
.msg--theirs .msg__text { background: var(--card-2); border-bottom-left-radius: 6px; }
.msg__time { font-size: 11px; color: var(--muted); margin: 2px 6px 0; }
.msg__receipt { font-size: 11.5px; color: var(--c-violet); margin: 0 6px; font-weight: 600; }
.msg.is-pending { opacity: .6; }
.msg.is-failed .msg__text { background: transparent; border: 1px solid var(--danger); }
.msg__retry { border: 0; background: none; color: var(--danger); font-size: 12px; padding: 2px 6px; }
.chat__notice { margin: 0; padding: 14px 16px calc(var(--safe-bottom) + 14px); text-align: center; color: var(--muted); background: var(--bg-2); border-top: 1px solid var(--line); }
.composer {
	display: flex; align-items: flex-end; gap: 8px;
	padding: 8px calc(10px + var(--safe-right)) calc(var(--safe-bottom) + 8px) calc(10px + var(--safe-left));
	border-top: 1px solid var(--line); background: var(--bg-2);
}
.composer textarea {
	flex: 1; min-height: 44px; max-height: 140px; resize: none;
	padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line-2);
	background: var(--card); color: var(--text); font-size: 16px; line-height: 1.35; outline: none;
}
.composer textarea:focus { border-color: var(--c-primary); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; transition: opacity .15s; }
.send-btn:disabled { opacity: .35; }
.send-btn .ic { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- profile */

.me-hero { display: flex; align-items: center; gap: 16px; margin: 2px 0 18px; }
.me-hero__photo { padding: 3px; border: 0; border-radius: 50%; background: var(--grad); flex: none; }
.me-hero__photo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--card-2); }
.me-hero__name { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -.02em; line-height: 1.1; }
.me-hero__age { font-weight: 300; }
.tonight-card {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 16px 16px 16px 18px; border-radius: 22px;
	background: var(--card); border: 1px solid var(--line);
	transition: border-color .2s, box-shadow .2s;
}
.tonight-card.is-on { border-color: color-mix(in srgb, var(--c-primary) 70%, transparent); box-shadow: 0 0 30px -12px var(--c-primary); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-primary) 22%, var(--card)), var(--card)); }
.tonight-card__text { display: grid; gap: 4px; }
.tonight-card__text strong { display: flex; align-items: center; gap: 8px; }
.tonight-card__text .ic--eq { color: var(--c-violet); }
.tonight-card__text span { color: var(--muted); font-size: 14px; }

.rows { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 20px; overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.row {
	display: flex; align-items: center; gap: 14px; width: 100%;
	padding: 14px 16px; min-height: 56px;
	background: transparent; border: 0; color: var(--text); text-decoration: none; text-align: left;
	font-size: 16px;
}
button.row:active, a.row:active { background: var(--card-2); }
.row > .ic:first-child { color: var(--muted); }
.row > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.row small { color: var(--muted); font-size: 13px; }
.row small:empty { display: none; }
.row__chev { color: var(--muted); width: 18px; height: 18px; }
.row--danger, .row--danger > .ic:first-child { color: var(--danger); }
.rows--sheet { background: var(--card); }
.age-range { display: inline-flex; align-items: center; gap: 6px; flex: none !important; }
.age-range input { width: 56px; min-height: 40px; padding: 6px 8px; text-align: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 16px; }

.subpage { padding-bottom: 0; }
.subpage__head { display: flex; align-items: center; gap: 6px; margin: -6px -6px 18px; }
.subpage__title { font-family: var(--font-display); font-weight: 650; font-size: 20px; }
.subpage__body { flex: 1; padding-bottom: 20px; }

/* -------------------------------------------------------- profile sheet */

.profile-sheet { display: grid; gap: 16px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 82%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; scroll-snap-align: center; background: var(--card); }
.gallery img.is-blurred { transform: none; filter: blur(14px) saturate(1.2); aspect-ratio: 4 / 3; }
.gallery:has(img:only-child) img { flex-basis: 100%; }
.profile-sheet__info { display: grid; gap: 8px; justify-items: start; }
.profile-sheet__info .section-label { margin: 10px 0 0; }
.profile-sheet__name { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.profile-sheet__bio { font-size: 16px; white-space: pre-wrap; }
.profile-sheet__actions { display: grid; gap: 10px; position: sticky; bottom: -24px; padding: 14px 0 6px; background: linear-gradient(180deg, transparent, var(--bg-2) 30%); }
.detail-actions { display: flex; justify-content: center; gap: 28px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ------------------------------------------------------------------ tabbar */

.tabbar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
	height: calc(var(--tabbar-h) + var(--safe-bottom));
	padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: rgba(5, 3, 7, .88);
	backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
	border-top: 1px solid var(--line);
}
.tab {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600;
	position: relative; -webkit-tap-highlight-color: transparent;
}
.tab__icon { position: relative; display: grid; place-items: center; width: 30px; height: 28px; }
.tab .ic { width: 25px; height: 25px; transition: transform .2s var(--ease); }
.tab.is-active { color: #fff; }
.tab.is-active .ic { stroke: var(--c-violet); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c-primary) 80%, transparent)); }
.tab.is-active[data-tab="likes"] .ic { fill: color-mix(in srgb, var(--c-primary) 45%, transparent); }
.tab.is-active[data-tab="swipe"] .ic { --ic-fill: color-mix(in srgb, var(--c-primary) 45%, transparent); }
.tab.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--grad); }
.tab:active .ic { transform: scale(.9); }
.badge {
	position: absolute; top: -6px; left: 17px;
	min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; border: 2px solid var(--bg);
	font-size: 11px; font-weight: 800; line-height: 15px; text-align: center; color: #fff;
	background: var(--c-primary);
	box-sizing: border-box;
}
.badge[data-badge="chats"] { background: var(--c-violet); }

/* ----------------------------------------------------------------- match */

.match {
	position: fixed; inset: 0; z-index: 60;
	display: grid; place-content: center; justify-items: center; gap: 18px;
	padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px);
	text-align: center;
	background: rgba(4, 2, 6, .95);
	opacity: 0; transition: opacity .28s;
}
.match.is-open { opacity: 1; }
.match__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 40% at 50% 38%, color-mix(in srgb, var(--c-primary) 45%, transparent), transparent 70%); }
.match__title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(42px, 13vw, 66px); line-height: 1; letter-spacing: -.04em;
	background: linear-gradient(180deg, #fff 30%, var(--c-violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c-primary) 80%, transparent));
}
.match__sub { color: rgba(255, 255, 255, .85); font-size: 17px; }
.match__faces { display: flex; justify-content: center; margin: 18px 0 26px; }
.match__faces img {
	width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
	border: 3px solid var(--c-violet); box-shadow: 0 0 34px -4px var(--c-primary);
	background: var(--card-2);
}
.match__faces img:first-child { transform: rotate(-8deg) translateX(14px); }
.match__faces img:last-child { transform: rotate(8deg) translateX(-14px); }
.match.is-open .match__faces img:first-child { animation: faceL .6s var(--ease) both; }
.match.is-open .match__faces img:last-child { animation: faceR .6s var(--ease) both; }
.match__actions { display: grid; gap: 10px; width: min(360px, 86vw); }

/* ------------------------------------------------------------- toasts etc */

.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px); z-index: 70; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
	max-width: 440px; padding: 12px 16px; border-radius: 14px;
	background: #2A1832; border: 1px solid var(--line-2); color: #fff; font-size: 14.5px; font-weight: 500;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
	opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast--error { border-color: color-mix(in srgb, var(--danger) 70%, transparent); }

.install-banner {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 16px; padding: 10px 6px 10px 12px; border-radius: 18px;
	background: var(--card-2); border: 1px solid var(--line-2);
}
.install-banner img { border-radius: 9px; }
.install-banner__text { flex: 1; display: grid; min-width: 0; }
.install-banner__text small { color: var(--muted); font-size: 12.5px; }
.install-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.install-steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: s; }
.install-steps li .ic { color: var(--c-violet); margin-top: 1px; }
.install-steps li span::before { content: counter(s) ". "; color: var(--muted); }

/* --------------------------------------------------------------- motion */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
@keyframes eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes sweep { from { transform: rotate(calc(var(--a) - 9deg)); } to { transform: rotate(calc(var(--a) + 9deg)); } }
@keyframes faceL { from { opacity: 0; transform: translateX(-60px) rotate(-20deg); } }
@keyframes faceR { from { opacity: 0; transform: translateX(60px) rotate(20deg); } }

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

/* ------------------------------------------------------------ responsive */

@media (max-height: 640px) {
	.welcome__title { font-size: clamp(34px, 10vw, 48px); }
	.welcome__copy { padding-bottom: 18px; }
	.round-btn { width: 56px; height: 56px; }
	.deck { min-height: 260px; margin: 8px 0 10px; }
	.match__faces img { width: 104px; height: 104px; }
}
@media (orientation: landscape) and (max-height: 500px) {
	#clubr-root { max-width: 720px; }
	.deck { min-height: 220px; }
	.card__info { padding-top: 40px; }
	.card__bio { display: none; }
	.welcome__copy { padding-bottom: 8px; }
	.match { grid-template-columns: auto auto; align-items: center; gap: 12px 32px; }
	.match__faces { margin: 0; }
}
@media (min-width: 400px) {
	.photo-grid { gap: 14px; }
}
.push-card > .ic { color: var(--c-primary); margin-left: 4px; }
.fineprint a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.fineprint--legal { margin-top: 2px; }
.form .fineprint--legal { text-align: left; margin: 0; }
