﻿

@font-face{font-family:'Fraunces';font-style:normal;font-weight:500 700;font-display:swap;src:url('../assets/fonts/Fraunces-normal.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:500 700;font-display:swap;src:url('../assets/fonts/Fraunces-italic.woff2') format('woff2');}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 700;font-display:swap;src:url('../assets/fonts/SourceSans3-normal.woff2') format('woff2');}
@font-face{font-family:'Source Sans 3';font-style:italic;font-weight:400 700;font-display:swap;src:url('../assets/fonts/SourceSans3-italic.woff2') format('woff2');}

:root {

    --bg: #12100E;
    --bg-2: #1C1916;
    --frame: #0A0908;
    --surface: #1C1916;
    --surface-2: #272320;
    --ink: #F5F1EA;
    --ink-2: #B3AAA0;
    --ink-3: #8C8379;
    --line: #2A2622;
    --line-2: #3B3631;

    --brand: #E8A33D;
    --brand-ink: #E8A33D;
    --brand-dark: #CE8A28;
    --brand-soft: #2E2314;
    --brand-text: #F3C77E;
    --on-brand: #14110F;

    --gold: #E8A33D;
    --gold-soft: #2E2314;
    --green: #5BB98C;
    --green-soft: #13291F;
    --danger: #E2685C;
    --danger-soft: #2E1815;

    --like: #E8A33D;
    --pass: #F5F1EA;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;

    --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-2: 0 8px 28px rgba(0,0,0,0.55);
    --shadow-card: 0 12px 36px rgba(0,0,0,0.6);

    --font: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --transition: 0.2s ease;
    --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

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

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

[hidden] { display: none !important; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
    height: 100%; font-family: var(--font); font-size: 16px; background: var(--frame); color: var(--ink);
    overflow: hidden; -webkit-font-smoothing: antialiased; line-height: 1.45; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.app { position: relative; width: 100%; max-width: 430px; height: 100%; margin: 0 auto; background: var(--bg); overflow: hidden; }

.progress-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); z-index: 100; }
.progress-fill { height: 100%; width: 0%; background: var(--brand); transition: width 0.5s var(--bounce); }

.step {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    opacity: 0; transform: translateX(40px); pointer-events: none; visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 24px 0;
}
.step.active {
    opacity: 1; transform: translateX(0); pointer-events: all; visibility: visible; z-index: 10;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}
.step.exit { opacity: 0; transform: translateX(-40px); pointer-events: none; z-index: 5; }
.step-content { width: 100%; padding: 20px 24px; display: flex; flex-direction: column; min-height: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h2 em, h1 em { font-style: italic; color: var(--brand-ink); }
.subtitle { color: var(--ink-2); font-size: 1rem; margin-top: 8px; line-height: 1.5; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); }
.muted { color: var(--ink-3); }

.btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 24px;
    background: var(--brand); color: var(--on-brand); border: none; border-radius: var(--r-md);

    text-decoration: none;

    font-family: var(--font); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em; cursor: pointer;
    transition: background var(--transition), transform var(--transition); box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary.loading { pointer-events: none; opacity: 0.7; }
.btn-arrow { width: 18px; height: 18px; flex-shrink: 0; }
.btn-fat { padding: 17px 24px; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; background: var(--surface);
    color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-md); font-family: var(--font);
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-block { display: flex; width: 100%; padding: 15px 24px; font-size: 1rem; font-weight: 700; text-decoration: none; margin-top: 10px; }

.gd-range { width: 100%; margin: 10px 0 2px; accent-color: var(--brand); cursor: pointer; }
.range-value { float: right; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; font-size: 0.85rem; }
.geo-hint { font-size: 0.8rem; color: var(--gold); line-height: 1.4; margin: 6px 0 4px; }

.geo-btn { padding: 6px 2px 0; font-size: 0.85rem; min-height: 44px; display: inline-flex; align-items: center; }
.card-distance { color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 500; }

.btn-back {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.btn-back svg { width: 18px; height: 18px; color: var(--ink); }
.btn-back:hover { border-color: var(--ink); }

.btn-link { background: none; border: none; color: var(--ink-2); font-family: var(--font); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--brand-ink); }
a.btn-link { display: inline-block; }

.form-group, .form-section { margin-bottom: 20px; }
.form-section label, .form-group label {
    display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], select.gd-select, .profile-textarea {
    width: 100%; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
    font-family: var(--font); font-size: 1rem; color: var(--ink); transition: border-color var(--transition), box-shadow var(--transition);
    outline: none; -webkit-appearance: none; appearance: none;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select.gd-select:focus, .profile-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,163,61,0.16); }
select.gd-select option { background: var(--surface); color: var(--ink); }
select.gd-select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.input-with-icon { position: relative; }
.input-with-icon .input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.input-with-icon input { padding-left: 40px; }

.form-error {
    display: none; background: var(--brand-soft); border: 1px solid rgba(232,163,61,0.45); color: var(--brand-text); font-size: 0.9rem; font-weight: 600;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; line-height: 1.4;
}
.form-error.show { display: block; }
.form-notice { background: var(--gold-soft); border: 1px solid rgba(232,163,61,0.4); color: var(--gold); font-size: 0.9rem; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; line-height: 1.4; display: none; }
.form-notice.show { display: block; }

.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.check-line input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.check-line a { color: var(--brand-ink); font-weight: 600; display: inline-block; min-height: 24px; padding: 2px 3px; margin: -2px -1px; }

.consent-box {
    margin-top: 14px; padding: 14px; background: var(--brand-soft);
    border: 1px solid rgba(232,163,61,0.4); border-radius: var(--r-md);
    display: flex; flex-direction: column; gap: 12px;
}
.consent-box .check-line { font-size: 0.86rem; color: var(--ink); }
.consent-box .check-line strong { color: var(--brand-text); }
.consent-sub { font-size: 0.82rem !important; color: var(--ink-2) !important; padding-top: 10px; border-top: 1px solid rgba(232,163,61,0.22); }

.city-autocomplete-wrap { position: relative; }
.city-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2);
    border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 50; display: none; list-style: none; box-shadow: var(--shadow-2);
}
.city-option { padding: 11px 14px; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.city-option:hover { background: var(--surface-2); }

.step-1 .step-content { justify-content: center; justify-content: safe center; gap: 22px; padding-top: 36px; }
.logo-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.logo-placeholder { width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; }
.logo-img { width: 100%; height: 100%; object-fit: contain; }
.brand-wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-wordmark em { font-style: normal; color: var(--brand-ink); }
.hero-text { text-align: center; }
.hero-text h1 { font-size: 2rem; }

.selos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; flex-shrink: 0; }
.selos li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.selos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

.step-1 .entra { animation: slideUp 0.5s ease both; }
.step-1 .hero-text.entra { animation-delay: 0.08s; }
.step-1 .selos.entra { animation-delay: 0.16s; }
.step-1 .form-group.entra { animation-delay: 0.24s; }

.sr-only, .form-group .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.disclaimer { font-size: 0.8rem; color: var(--ink-3); text-align: center; line-height: 1.4; }

.disclaimer a { display: inline-block; min-height: 24px; padding: 3px 4px; }

.form-hint > a:only-child { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -4px -4px 0; }
.auth-switch { font-size: 0.92rem; color: var(--ink-2); text-align: center; }

.auth-switch a { color: var(--brand-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 3px 8px; }

.step-2 .step-content { padding-top: 28px; gap: 4px; }
.step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.step-header h2 { font-size: 1.7rem; min-width: 0; overflow-wrap: anywhere; }

.gender-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--surface);
    border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; transition: all var(--transition);
}
.gender-btn:hover { border-color: var(--ink); }
.gender-btn.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.gender-icon { font-size: 1.15rem; line-height: 1; color: var(--ink-2); }
.gender-btn.selected .gender-icon { color: var(--ink); }
.gender-label { font-size: 1rem; font-weight: 600; color: var(--ink); }

.photo-upload-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px dashed var(--line-2); transition: all var(--transition); }
.photo-slot.has-photo { border-style: solid; border-color: var(--line-2); }
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.photo-placeholder:hover { background: var(--surface-2); }

.plus-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.photo-label { font-size: 0.68rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.photo-hint { font-weight: 500; font-size: 0.72rem; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-slot.has-photo .photo-preview { display: block; }
.photo-slot.has-photo .photo-placeholder { display: none; }
.photo-remove {
    position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; background: rgba(30,26,23,0.82); color: #fff;
    border: none; font-size: 1.1rem; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 5;
}
.photo-slot.has-photo .photo-remove { display: flex; }

.loading-content { justify-content: center; align-items: center; text-align: center; gap: 18px; padding-top: 60px; }
.radar-container { position: relative; width: 200px; height: 200px; margin: 0 auto 10px; }
.radar-ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--brand); opacity: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-1 { width: 80px; height: 80px; animation: radarPulse 2.2s ease-out infinite; }
.ring-2 { width: 140px; height: 140px; animation: radarPulse 2.2s ease-out 0.55s infinite; }
.ring-3 { width: 200px; height: 200px; animation: radarPulse 2.2s ease-out 1.1s infinite; }
.radar-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; z-index: 5; box-shadow: var(--shadow-2); }
.radar-center img { width: 40px; height: 40px; }
.radar-dots { position: absolute; inset: 0; }
.radar-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: dotPop 0.5s var(--bounce) forwards; opacity: 0; }
.loading-title { font-size: 1.4rem; }
.found-counter { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.found-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--brand); }
.found-label { font-size: 0.75rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.loading-bar { width: 60%; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.loading-bar-fill { height: 100%; width: 0%; background: var(--brand); transition: width 0.3s ease; }

.step.step-4 { padding: 0; }
.swipe-content { display: flex; flex-direction: column; padding: 12px 16px; height: 100%; min-height: 0; gap: 10px; overflow: hidden; }
.swipe-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.swipe-logo { display: flex; align-items: center; gap: 8px; }
.swipe-logo-img { height: 34px; width: auto; }
.swipe-logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.swipe-counter { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.swipe-counter svg { width: 15px; height: 15px; color: var(--brand); }
.swipe-counter span { font-size: 0.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.card-container { position: relative; width: 100%; aspect-ratio: 9 / 16; flex: 1 1 auto; min-height: 0; max-height: 100%; margin: 0 auto; align-self: center; }
.card-stack { position: absolute; inset: 0; }

.empty-state { position: absolute; inset: 0; z-index: 20; background: var(--bg); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; color: var(--ink-2); text-align: center; padding: 24px; overflow-y: auto; }
.empty-state > :first-child { margin-top: auto; }
.empty-state > :last-child { margin-bottom: auto; }
.empty-state p { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.empty-state small { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }

.swipe-card {
    position: absolute; inset: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card);
    overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; touch-action: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.swipe-card:active { cursor: grabbing; }

.stamp {
    position: absolute; top: 28px; padding: 6px 14px; border-radius: 6px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
    letter-spacing: 0.04em; opacity: 0; z-index: 20; pointer-events: none; background: rgba(17,17,17,0.85);
}
.stamp-like { left: 18px; color: var(--brand); border: 2px solid var(--brand); transform: rotate(-12deg); }
.stamp-nope { right: 18px; color: var(--ink); border: 2px solid var(--ink); transform: rotate(12deg); }

.card-photo { position: absolute; inset: 0; overflow: hidden; background: var(--bg-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo-track { position: absolute; inset: 0; }
.card-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.18s ease; pointer-events: none; }
.card-photo-img.active { opacity: 1; }
.card-photo-progress { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 11; pointer-events: none; }
.card-photo-progress .bar { flex: 1; height: 3px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.card-photo-progress .bar.active { background: #fff; }
.card-photo-tap { position: absolute; top: 0; bottom: 35%; width: 35%; background: transparent; border: none; cursor: pointer; z-index: 10; }
.card-photo-tap.left { left: 0; }
.card-photo-tap.right { right: 0; }
.card-photo-tap:focus { outline: none; }
.card-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-2); }
.card-photo-placeholder svg { width: 96px; height: 96px; color: var(--line-2); }
.card-photo-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 62%; background: linear-gradient(to top, rgba(20,16,14,0.92) 0%, rgba(20,16,14,0.6) 40%, rgba(20,16,14,0) 100%); pointer-events: none; }

.card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 18px 18px; z-index: 10; color: #fff; }
.card-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.card-name-row h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #fff; }
.card-name-row h3 span { font-weight: 500; color: rgba(255,255,255,0.85); }
.verified-badge { display: inline-flex; align-items: center; justify-content: center; color: #3B82F6; flex-shrink: 0; }
.verified-badge svg { width: 18px; height: 18px; display: block; }
.verified-badge-sm svg { width: 13px; height: 13px; }
.online-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.card-location { font-size: 0.92rem; color: rgba(255,255,255,0.85); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-location svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-church { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 4px; background: rgba(255,255,255,0.16); color: #fff; font-weight: 600; font-size: 0.78rem; }
.card-church.liked { background: var(--brand); }
.card-church.demo { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); font-weight: 500; }

.card-more-btn { background: none; border: none; color: #fff; font-family: var(--font); font-size: 0.85rem; font-weight: 700; padding: 4px 6px; margin: -4px -2px; min-height: 24px; cursor: pointer; display: inline-block; vertical-align: baseline; text-decoration: underline; text-underline-offset: 2px; }
.card-bio { font-size: 0.95rem; color: rgba(255,255,255,0.92); line-height: 1.4; margin-bottom: 8px; }
.card-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.interest-tag { padding: 4px 10px; background: rgba(255,255,255,0.16); color: #fff; border-radius: 4px; font-size: 0.78rem; font-weight: 600; }
.card-music { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.card-music svg { width: 14px; height: 14px; flex-shrink: 0; }

.swipe-actions { display: flex; align-items: flex-start; justify-content: center; gap: 44px; padding: 4px 0 2px; flex-shrink: 0; }
.action-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.action-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.action-btn { border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, box-shadow 0.2s ease; width: 64px; height: 64px; }
.action-btn:active { transform: scale(0.94); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.nope-btn { background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
.nope-btn svg { width: 24px; height: 24px; color: var(--ink); }
.nope-btn:hover { border-color: var(--ink); }
.like-btn { background: var(--brand); box-shadow: 0 6px 16px rgba(232,163,61,0.26); }

.like-btn svg { width: 26px; height: 26px; color: var(--on-brand); }
.like-btn:hover { background: var(--brand-dark); }

.match-overlay {

    position: absolute; inset: 0; background: var(--bg); z-index: 200; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.match-overlay.active { opacity: 1; pointer-events: all; }
.match-content { text-align: center; padding: 30px; width: 100%; position: relative; animation: matchBounce 0.5s var(--bounce); }
.match-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.floating-heart { position: absolute; bottom: -20px; animation: floatUp 2.2s ease-out forwards; opacity: 0; color: var(--brand); font-size: 18px; line-height: 1; }
.floating-heart.gold { color: var(--gold); }
.match-eyebrow { margin-bottom: 8px; }
.match-title { font-size: 2.3rem; color: var(--brand); margin-bottom: 6px; }
.match-subtitle { color: var(--ink-2); font-size: 1rem; margin-bottom: 28px; }
.match-photos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.match-photo { width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-2); box-shadow: var(--shadow-2); }
.match-photo img { width: 100%; height: 100%; object-fit: cover; }

.match-photo img.match-photo-marca { width: 52%; height: 52%; object-fit: contain; margin: auto; }
.match-heart-icon { flex-shrink: 0; animation: heartBeat 1.2s ease-in-out infinite; }
.match-heart-icon svg { width: 30px; height: 30px; }
.match-name { color: var(--ink); font-size: 1.05rem; font-weight: 600; margin-bottom: 24px; }
.match-btn { max-width: 300px; margin: 0 auto; }
.match-btn-secondary { margin-top: 14px; }

.end-overlay { position: absolute; inset: 0; background: var(--bg); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; overflow-y: auto; }
.end-overlay.active { opacity: 1; pointer-events: all; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.end-content { text-align: center; padding: 30px 26px; width: 100%; animation: slideUp 0.4s ease; }
.end-icon-wrap { margin-bottom: 14px; display: flex; justify-content: center; }
.end-icon { width: 64px; height: 64px; }
.end-title { font-size: 1.8rem; margin-bottom: 12px; }
.end-title span { color: var(--brand-ink); }

.end-match-photos { display: flex; justify-content: center; align-items: center; margin: 0 auto 18px; min-height: 68px; }
.end-match-avatar { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--bg); overflow: hidden; background: var(--bg-2); margin-left: -14px; box-shadow: var(--shadow-1); flex-shrink: 0; animation: avatarEntra 0.4s var(--bounce) both; }
.end-match-avatar:first-child { margin-left: 0; }
.end-match-avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes avatarEntra { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
.end-text { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.5; }
.end-text strong { color: var(--ink); }
.btn-unlock { margin-bottom: 12px; }
.end-disclaimer { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 16px; }

.redirect-loader { position: absolute; inset: 0; background: var(--bg); z-index: 300; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.redirect-loader.active { opacity: 1; pointer-events: all; }
.redirect-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.redirect-spinner { width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
.redirect-loader-text { color: var(--ink-2); font-size: 0.95rem; font-weight: 600; }

.profile-overlay { position: absolute; inset: 0; background: var(--bg); z-index: 220; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; overflow: hidden; }
.profile-overlay.active { opacity: 1; pointer-events: all; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.cad-topo { position: absolute; top: 0; left: 0; right: 0; height: 68px; padding: 12px 24px 0; display: flex; align-items: center; gap: 14px; background: var(--bg); z-index: 3; }

.cad-topo .invisivel { visibility: hidden; }
.cad-barra { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cad-barra-fill { height: 100%; width: 0; background: var(--brand); transition: width 0.45s var(--bounce); }
.cad-passo {
    position: absolute; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
    padding: 18px 24px 0; display: flex; flex-direction: column; gap: 16px;
    opacity: 0; transform: translateX(40px); visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.cad-passo.antes { transform: translateX(-40px); }

.profile-overlay.active .cad-passo.ativo { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s; }
.cad-passo > * { flex-shrink: 0; }
.cad-titulo { font-size: 1.7rem; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cad-titulo:focus { outline: none; }
.cad-sub { color: var(--ink-2); font-size: 1rem; margin-top: -8px; }
.cad-contador { font-family: var(--font); font-size: 0.9rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.cad-acoes { position: sticky; bottom: 0; z-index: 2; background: var(--bg); padding: 10px 0 calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }

.cad .btn-primary.off { opacity: 0.45; }
.cad .form-section { margin-bottom: 0; }
.cad .form-error { margin-bottom: 0; }
.cad .consent-box { margin-top: 0; }
.cad .auth-switch { margin-top: 6px; }
.cad .form-hint { margin: -8px 0 0; }
.cad input.cad-data { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.12em; text-align: center; padding: 16px 14px; font-variant-numeric: tabular-nums; }
.cad-data + .form-hint { text-align: center; }
.cad .denom-chip.selected, .cad .interest-chip.selected { animation: escolhe 0.22s ease; }
@keyframes escolhe { 50% { transform: scale(1.07); } }

.cad-fotos { grid-template-columns: 2fr 1fr; }
.cad-fotos .photo-slot[data-slot="1"] { grid-row: span 2; aspect-ratio: auto; }
.cad-fotos .photo-slot[data-slot="1"] .plus-icon { width: 44px; height: 44px; font-size: 1.6rem; }
button.photo-placeholder { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; }

@keyframes treme { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.treme { animation: treme 0.4s ease; }
.profile-textarea { resize: none; line-height: 1.5; min-height: 96px; }
.char-count { display: block; text-align: right; font-size: 0.72rem; color: var(--ink-3); margin-top: 4px; }

.form-hint { font-size: 0.8rem; color: var(--ink-3); margin-top: -6px; margin-bottom: 8px; line-height: 1.35; }
.photo-upload-grid + .form-hint, input + .form-hint, textarea + .form-hint { margin-top: 8px; }

.form-hint.hint-erro { color: var(--brand-ink); font-weight: 600; }
.form-hint.hint-ok { color: var(--green); font-weight: 600; }

input[type="date"] { min-height: 48px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.65); cursor: pointer; }
input[type="date"]::-webkit-datetime-edit { color: var(--ink); }
input[type="date"]:invalid::-webkit-datetime-edit, input[type="date"]:not(:valid)::-webkit-datetime-edit { color: var(--ink-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.interests-grid, .music-grid, .denom-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.interest-chip, .music-chip, .denom-chip {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 8px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font);
    font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: all var(--transition);
}
.interest-chip:hover, .music-chip:hover, .denom-chip:hover { border-color: var(--ink); }
.interest-chip.selected, .music-chip.selected, .denom-chip.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand); }

.auth-page { justify-content: center; gap: 18px; padding-top: 30px; }
.auth-page .logo-placeholder { width: 96px; height: 96px; margin: 0 auto; }
.auth-card { display: flex; flex-direction: column; gap: 4px; }
.auth-title { font-size: 1.6rem; }
.auth-sub { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 16px; }

body.legal { overflow: auto; background: var(--bg); }
.legal-wrap { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-wrap header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.legal-wrap header img { width: 40px; height: 40px; }
.legal-wrap header a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.legal-wrap h1 { font-size: 2rem; margin-bottom: 6px; }
.legal-wrap .updated { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 28px; }
.legal-wrap h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; }
.legal-wrap ul { padding-left: 20px; }
.legal-wrap a { color: var(--brand-ink); }

.legal-wrap .back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 22px -6px 0; }
.legal-wrap header a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-wrap code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }

.aviso-preencher { border: 1px solid var(--brand); border-left-width: 4px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 24px; }
.aviso-preencher, .aviso-preencher strong { color: var(--ink); line-height: 1.55; font-size: 0.94rem; }

@keyframes radarPulse { 0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.5); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
@keyframes dotPop { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0.85; transform: scale(1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 20% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-380px) scale(1) rotate(15deg); } }
@keyframes matchBounce { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.12); } 50% { transform: scale(1); } }
@keyframes slideUp { 0% { transform: translateY(24px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.burst-heart { position: absolute; bottom: 14%; color: var(--brand); pointer-events: none; z-index: 5; line-height: 1; opacity: 0; will-change: transform, opacity; animation: burstUp var(--dur, 0.9s) cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.burst-heart.gold { color: var(--gold); }
@keyframes burstUp { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), -260px) scale(1.15) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .burst-heart { display: none; } }

.fila-form { margin-top: 12px; text-align: left; }
.fila-form .form-group { margin-bottom: 12px; }
.fila-form .btn-unlock { margin-top: 4px; }

@media (max-width: 430px) { .app { max-width: 100%; } }
@media (min-width: 431px) {
    body { display: flex; align-items: center; justify-content: center; padding: 20px; }
    .app { height: calc(100vh - 40px); max-height: 900px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 80px rgba(0,0,0,0.8); }
}

@media (min-width: 431px) and (max-height: 500px) {
    body { padding: 0; }
    .app { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; box-shadow: none; }
}
@media (max-height: 700px) {
    .step-1 .step-content { gap: 14px; padding-top: 20px; }
    .hero-text h1 { font-size: 1.6rem; }
    .logo-placeholder { width: 84px; height: 84px; }
    .radar-container { width: 160px; height: 160px; }
    .ring-1 { width: 60px; height: 60px; } .ring-2 { width: 110px; height: 110px; } .ring-3 { width: 160px; height: 160px; }
    .swipe-content { padding: 8px 14px; gap: 6px; }
    .action-btn { width: 56px; height: 56px; }
    .nope-btn svg { width: 20px; height: 20px; } .like-btn svg { width: 22px; height: 22px; }
    .swipe-actions { gap: 34px; }
    .cad-topo { height: 58px; padding-top: 8px; }
    .cad-passo { top: 58px; padding-top: 12px; gap: 12px; }
    .cad-titulo { font-size: 1.45rem; }
    .end-title { font-size: 1.55rem; }
}

@media (max-height: 500px) {
    .cad-fotos { grid-template-columns: 1fr 1fr 1fr; }
    .cad-fotos .photo-slot[data-slot="1"] { grid-row: auto; aspect-ratio: 3 / 4; }
}
.step::-webkit-scrollbar, .cad-passo::-webkit-scrollbar, .end-overlay::-webkit-scrollbar { width: 4px; }
.step::-webkit-scrollbar-thumb, .cad-passo::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
