:root {
    --primary: #ff0055;
    --primary-glow: #ff0055aa;
    --secondary: #7000ff;
    --bg-dark: #0a0a0f;
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.4));
    backdrop-filter: blur(5px);
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 10;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header */
.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ai-badge {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Content */
h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #b0b0b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 30px;
}

.subtitle strong {
    color: var(--primary);
}

/* Pulse Ring Animation */
.pulse-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
    opacity: 0;
}

.pulse-ring.delay {
    animation-delay: 1s;
}

.icon-match {
    font-size: 2rem;
    z-index: 2;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .count {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.stat-item .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.btn-primary:hover .btn-glow {
    opacity: 1;
    transform: scale(1);
}

.terms {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 15px;
}

/* Steps Logic */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Analyzing Step */
.analysis-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.scanner {
    width: 200px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes scan {
    0% {
        transform: translateX(-50px) scaleX(0.2);
        opacity: 0;
    }

    50% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
    }

    100% {
        transform: translateX(50px) scaleX(0.2);
        opacity: 0;
    }
}

.scan-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.scan-detail {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Result Step */
.match-found .status-badge {
    background: #00ff88;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.full-width {
    width: 100%;
}