﻿/* ============================================================
   MATCH PATRIOTA â€” Stylesheet Principal
   Tema: Tinder-like | Paleta: Coral/Pink gradient
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #FE3C72;
    --primary-dark: #E31C5F;
    --primary-light: #FF6B8A;
    --gradient: linear-gradient(135deg, #FD297B 0%, #FF5864 50%, #FF655B 100%);
    --gradient-soft: linear-gradient(135deg, rgba(253,41,123,0.1) 0%, rgba(255,101,91,0.1) 100%);

    --bg-dark: #000000;
    --bg-body: #111111;
    --bg-card: #1C1C1E;
    --bg-input: #2C2C2E;

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1A6;
    --text-light: #636366;
    --text-white: #FFFFFF;

    --like: #00D46A;
    --nope: #FF4458;
    --superlike: #17C3EC;

    --border: #2C2C2E;
    --border-focus: #FE3C72;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-card: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(254,60,114,0.3);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* ===== APP SHELL ===== */
.app {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
    margin: 0 auto;
    background: var(--bg-body);
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.06);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 0 2px 2px 0;
    transition: width 0.6s var(--bounce);
}

.progress-bar {
    background: rgba(255,255,255,0.06);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 20%;
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}

.step-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--like);
}

/* ===== STEP SYSTEM ===== */
.step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    opacity: 0;
    transform: translateX(60px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 24px 0;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 10;
}

.step.exit {
    opacity: 0;
    transform: translateX(-60px);
    pointer-events: none;
    z-index: 5;
}

.step-content {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2rem; font-weight: 800; line-height: 1.1; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-brasil {
    background: linear-gradient(135deg, #009739 0%, #00B84D 40%, #FEDD00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-top: 8px;
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 32px;
    background: var(--gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(254,60,114,0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254,60,114,0.45);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover::before {
    opacity: 0;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn-primary:not(:disabled):hover .btn-arrow {
    transform: translateX(3px);
}

.btn-fat {
    padding: 20px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(254,60,114,0.05);
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    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(--text-primary);
}

.btn-back:hover {
    border-color: var(--primary);
    background: rgba(254,60,114,0.05);
}

.btn-back:hover svg {
    color: var(--primary);
}

/* ===== FORMS ===== */
.form-group,
.form-section {
    margin-bottom: 20px;
}

.form-section label,
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

input[type="text"]::placeholder {
    color: var(--text-light);
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(254,60,114,0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 42px;
}

/* City Autocomplete */
.city-autocomplete-wrap {
    position: relative;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    list-style: none;
    box-shadow: var(--shadow-md);
}

.city-option {
    padding: 12px 18px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font);
}

.city-option:hover {
    background: var(--gradient-soft);
    color: var(--primary);
}

.city-dropdown::-webkit-scrollbar {
    width: 4px;
}

.city-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* ===== STEP 1: LANDING ===== */
.step-1 .step-content {
    justify-content: center;
    text-align: center;
    padding-top: 40px;
    gap: 20px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    animation: logoPulse 2s ease-in-out infinite;
    overflow: hidden;
}

.logo-placeholder.no-img {
    background: var(--gradient);
    box-shadow: var(--shadow-glow);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon {
    font-size: 2.8rem;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
}

.subtitle-highlight {
    font-size: 0.85rem;
    font-weight: 600;
    color: #636366;
    margin-bottom: 4px;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.02em;
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    box-shadow: var(--shadow-xs);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat span {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.step-1 .form-group {
    text-align: left;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ===== STEP 2: DETAILS ===== */
.step-2 .step-content {
    padding-top: 30px;
    gap: 4px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.step-header h2 {
    font-size: 1.35rem;
}

/* Gender Selector */
.gender-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gender-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
}

.gender-btn:hover {
    border-color: var(--primary-light);
    background: rgba(254,60,114,0.03);
}

.gender-btn.selected {
    border-color: var(--primary);
    background: rgba(254,60,114,0.06);
    box-shadow: 0 0 0 4px rgba(254,60,114,0.1);
}

.gender-icon {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-white);
}

.gender-btn.selected .gender-icon {
    color: var(--primary);
}

.gender-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Photo Upload */
.photo-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.photo-slot {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    transition: all var(--transition);
}

.photo-slot.has-photo {
    border-style: solid;
    border-color: var(--primary);
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.photo-placeholder:hover {
    background: rgba(254,60,114,0.04);
}

.plus-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 1.4rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(254,60,114,0.3);
}

.photo-label {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.photo-hint {
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: 0;
}

.photo-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: calc(var(--radius-sm) - 2px);
}

.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: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all var(--transition);
}

.photo-slot.has-photo .photo-remove {
    display: flex;
}

.photo-remove:hover {
    background: var(--nope);
    transform: scale(1.1);
}

/* ===== STEP 3: LOADING ===== */
.loading-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-top: 60px;
}

.radar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 80px;
    height: 80px;
    animation: radarPulse 2s ease-out infinite;
}

.ring-2 {
    width: 140px;
    height: 140px;
    animation: radarPulse 2s ease-out 0.5s infinite;
}

.ring-3 {
    width: 200px;
    height: 200px;
    animation: radarPulse 2s ease-out 1s infinite;
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-glow);
    z-index: 5;
}

.radar-dots {
    position: absolute;
    inset: 0;
}

.radar-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPop 0.5s var(--bounce) forwards;
    opacity: 0;
    box-shadow: 0 0 8px rgba(254,60,114,0.5);
}

.loading-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.loading-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 1.4em;
}

.found-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.found-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.found-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loading-bar {
    width: 60%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===== STEP 4: SWIPE ===== */
.step.step-4 {
    padding: 0;
}

.swipe-content {
    display: flex;
    flex-direction: column;
    padding: 10px 16px 12px;
    height: 100%;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
}

.swipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    flex-shrink: 0;
}

.swipe-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swipe-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(254,60,114,0.3));
}

.logo-mini {
    font-size: 1.3rem;
}

.swipe-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.swipe-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.swipe-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
}

.fire-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.swipe-counter span {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

/* Card Container */
.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 3rem;
}

.empty-state p {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Swipe Card */
.swipe-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    touch-action: none;
}

.swipe-card:active {
    cursor: grabbing;
}

/* Like/Nope Stamps */
.stamp {
    position: absolute;
    top: 30px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    transform: rotate(-15deg);
}

.stamp-like {
    left: 20px;
    color: var(--like);
    border: 4px solid var(--like);
    transform: rotate(-15deg);
}

.stamp-nope {
    right: 20px;
    color: var(--nope);
    border: 4px solid var(--nope);
    transform: rotate(15deg);
}

/* Card Photo */
.card-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.card-photo-placeholder.female {
    background: linear-gradient(180deg, #FADADD 0%, #F8BBD0 50%, #F48FB1 100%);
}

.card-photo-placeholder.male {
    background: linear-gradient(180deg, #BBDEFB 0%, #90CAF9 50%, #64B5F6 100%);
}

.card-photo-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 30%,
        rgba(0,0,0,0.3) 60%,
        transparent 100%
    );
    pointer-events: none;
}

/* Card Info â€” overlaid on photo */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 16px 16px;
    z-index: 10;
}

.card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.card-name-row h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.card-name-row h3 span {
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

.verified-badge {
    font-size: 1.1rem;
}

.card-location {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

/* "Saber mais" toggle button — inline in bio */
.card-more-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    display: inline;
    transition: opacity 0.2s;
}
.card-more-btn:active {
    opacity: 0.7;
}

/* Hidden details — expand on tap */
.card-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}
.card-details.open {
    max-height: 260px;
    opacity: 1;
}

.card-bio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.card-bio.expanded {
    /* kept for backward compat */
}

.card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.interest-tag {
    padding: 4px 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.card-music {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
}

.music-icon {
    font-size: 1rem;
}

/* Swipe Actions */
.swipe-actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 6px 0 2px;
    flex-shrink: 0;
}

.action-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.action-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #8a8a8a);
}

.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, filter 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.action-btn:active {
    transform: scale(0.92);
}

.nope-btn {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #ff6b7a, var(--nope));
    border: none;
    box-shadow: 0 6px 18px rgba(255,68,88,0.38), 0 2px 6px rgba(255,68,88,0.25);
}

.nope-btn svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.nope-btn:hover {
    box-shadow: 0 10px 24px rgba(255,68,88,0.5), 0 3px 10px rgba(255,68,88,0.3);
}

.superlike-btn {
    width: 46px;
    height: 46px;
    background: var(--bg-card);
    border: 2px solid var(--border);
}

.superlike-btn svg {
    width: 18px;
    height: 18px;
    color: var(--superlike);
}

.superlike-btn:hover {
    background: var(--superlike);
    border-color: var(--superlike);
    box-shadow: 0 4px 15px rgba(23,195,236,0.3);
}

.superlike-btn:hover svg {
    color: white;
}

.like-btn {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #33e38d, var(--like));
    border: none;
    box-shadow: 0 6px 18px rgba(0,212,106,0.38), 0 2px 6px rgba(0,212,106,0.25);
}

.like-btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.like-btn:hover {
    box-shadow: 0 10px 24px rgba(0,212,106,0.5), 0 3px 10px rgba(0,212,106,0.3);
}

.swipe-hint {
    text-align: center;
    padding: 4px 0 0;
    flex-shrink: 0;
}

.swipe-hint span {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== MATCH OVERLAY ===== */
.match-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.match-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.match-content {
    text-align: center;
    padding: 30px;
    width: 100%;
    position: relative;
    animation: matchBounce 0.6s var(--bounce);
}

.match-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    bottom: -20px;
    animation: floatUp 2s ease-out forwards;
    opacity: 0;
}

.match-badge {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: matchSpin 0.8s ease-out;
}

.match-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 6px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.match-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.match-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.match-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--bg-card);
}

.match-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-heart-icon {
    flex-shrink: 0;
    animation: heartBeat 1s ease-in-out infinite;
}

.match-heart-icon svg {
    width: 32px;
    height: 32px;
}

.match-name {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.match-btn {
    max-width: 280px;
    margin: 0 auto;
}

/* ===== END OVERLAY ===== */
.end-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-body);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.end-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.end-content {
    text-align: center;
    padding: 30px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

.end-icon-wrap {
    margin-bottom: 16px;
}

.end-icon {
    font-size: 4rem;
    animation: logoPulse 2s ease-in-out infinite;
    display: inline-block;
}

.end-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.end-matches-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.end-matches-count {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.end-matches-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Match photo strip on end screen */
.end-match-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 8px;
    min-height: 64px;
}
.end-match-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.end-match-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid var(--bg-body);
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: -14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    flex-shrink: 0;
    position: relative;
}
.end-match-avatar:first-child { margin-left: 0; }
.end-match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.end-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-unlock {
    margin-bottom: 12px;
}

.end-disclaimer {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes radarPulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes dotPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) scale(1) rotate(20deg);
    }
}

@keyframes matchBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes matchSpin {
    0% {
        transform: rotateY(0deg) scale(0);
    }
    60% {
        transform: rotateY(360deg) scale(1.2);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes slideUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Card stack depth animation */
.swipe-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== PROFILE OVERLAY ===== */
.profile-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-body);
    z-index: 220;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.profile-content {
    width: 100%;
    padding: 40px 24px 40px;
    animation: slideUp 0.5s ease;
}

.profile-header {
    text-align: center;
    margin-bottom: 28px;
}

.profile-badge {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 6px;
}

.profile-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
    -moz-appearance: textfield;
}

.profile-input::-webkit-inner-spin-button,
.profile-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.profile-input:focus,
.profile-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(254,60,114,0.1);
}

.profile-input::placeholder,
.profile-textarea::placeholder {
    color: var(--text-light);
}

.profile-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
    resize: none;
    line-height: 1.5;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: -8px;
    margin-bottom: 8px;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-chip {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.interest-chip:hover {
    border-color: var(--primary-light);
}

.interest-chip.selected {
    border-color: var(--primary);
    background: rgba(254,60,114,0.08);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254,60,114,0.1);
}

.music-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.music-chip {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.music-chip:hover {
    border-color: var(--primary-light);
}

.music-chip.selected {
    border-color: var(--primary);
    background: rgba(254,60,114,0.08);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254,60,114,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 430px) {
    .app {
        max-width: 100%;
        box-shadow: none;
    }
}

@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: var(--radius-lg);
        overflow: hidden;
    }
}

@media (max-height: 700px) {
    .step-1 .step-content {
        gap: 14px;
        padding-top: 20px;
    }

    .hero-text h2 {
        font-size: 1.35rem;
    }

    .logo-placeholder {
        width: 64px;
        height: 64px;
    }

    .logo-icon {
        font-size: 1.8rem;
    }

    .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: 6px 14px 8px;
        gap: 6px;
    }

    .swipe-header {
        padding: 2px 0;
    }

    .nope-btn,
    .like-btn {
        width: 58px;
        height: 58px;
    }

    .nope-btn svg { width: 22px; height: 22px; }
    .like-btn svg { width: 24px; height: 24px; }

    .action-label {
        font-size: 0.64rem;
    }

    .swipe-actions {
        gap: 32px;
        padding: 4px 0 2px;
    }

    .action-btn-wrap {
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .swipe-actions {
        gap: 32px;
    }
}

/* Scrollbar styling */
.step::-webkit-scrollbar {
    width: 3px;
}

.step::-webkit-scrollbar-track {
    background: transparent;
}

.step::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
