/* ===== CSS Variables ===== */
:root {
    --primary: #ff4b6e;
    --primary-dark: #e8365a;
    --primary-light: #ff7a93;
    --secondary: #6c5ce7;
    --success: #00d084;
    --success-dark: #00b371;
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-mid: #16213e;
    --bg-gradient-end: #0f0f23;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-glow: 0 0 60px rgba(255, 75, 110, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== Background Animation ===== */
.background-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 75, 110, 0.15), rgba(108, 92, 231, 0.15));
    animation: float 15s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -80px;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 30%;
    left: 50%;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 20%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateY(20px) rotate(-5deg) scale(0.95);
    }
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Card ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Progress Bar ===== */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(255, 75, 110, 0.5);
}

.step-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ===== Steps ===== */
.step {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-icon {
    animation: pulse-glow 1.5s ease infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.subtitle strong {
    color: var(--primary-light);
}

/* ===== Image Container ===== */
.image-container {
    margin: 25px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover .hero-image {
    transform: scale(1.05);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 75, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 75, 110, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 208, 132, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 208, 132, 0.5);
}

.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 1.15rem;
    animation: pulse-button 2s ease infinite;
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.btn .arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(5px);
}

/* ===== Option Cards ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.options-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.option-card:hover {
    background: rgba(255, 75, 110, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.option-card.selected {
    background: linear-gradient(135deg, rgba(255, 75, 110, 0.2), rgba(255, 75, 110, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 75, 110, 0.3);
}

.option-card.small {
    padding: 18px 12px;
}

.option-emoji {
    font-size: 2.5rem;
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Matches Preview ===== */
.matches-preview {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.match-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    overflow: hidden;
    margin-left: -15px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.match-avatar:first-child {
    margin-left: 0;
}

.match-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-avatar.more {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-avatar.more span {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

/* ===== Urgency Banner ===== */
.urgency-banner {
    background: rgba(255, 75, 110, 0.15);
    border: 1px solid rgba(255, 75, 110, 0.3);
    border-radius: 50px;
    padding: 12px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* ===== Disclaimer ===== */
.disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .options-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-card {
        padding: 20px 12px;
    }

    .option-emoji {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .match-avatar {
        width: 50px;
        height: 50px;
    }
}
