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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.captcha-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.robot-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.robot-checkbox:checked {
    accent-color: #4285f4;
}

.captcha-logo {
    opacity: 0.6;
}

.captcha-challenge {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s ease-out;
}

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

.challenge-header {
    text-align: center;
    margin-bottom: 25px;
}

.challenge-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
}

.challenge-header p {
    color: #666;
    font-size: 14px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border: 3px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.image-item:hover {
    border-color: #4285f4;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(66, 133, 244, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-item.selected .overlay {
    opacity: 1;
}

.checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4285f4;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.image-item.selected .checkmark {
    opacity: 1;
    transform: scale(1);
}

.verify-button {
    width: 100%;
    padding: 14px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.verify-button:hover {
    background: #357ae8;
}

.verify-button:active {
    transform: scale(0.98);
}

.hidden {
    display: none !important;
}

/* Success Page */
.success-page {
    background: white;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.heart-container {
    margin-bottom: 30px;
}

.heart {
    width: 100px;
    height: 100px;
    background: #ff6b9d;
    position: relative;
    margin: 0 auto;
    transform: rotate(-45deg);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heart::before,
.heart::after {
    content: "";
    width: 100px;
    height: 100px;
    background: #ff6b9d;
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -50px;
    left: 0;
}

.heart::after {
    left: 50px;
    top: 0;
}

@keyframes heartbeat {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
    }
    25% {
        transform: rotate(-45deg) scale(1.1);
    }
    50% {
        transform: rotate(-45deg) scale(1);
    }
    75% {
        transform: rotate(-45deg) scale(1.15);
    }
}

.success-title {
    color: #333;
    font-size: 36px;
    margin-bottom: 15px;
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    color: #666;
    font-size: 24px;
    font-weight: 300;
    animation: slideInFromBottom 0.8s ease-out;
}

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

.sparkles {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sparkle {
    font-size: 30px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    animation-delay: 0.2s;
}

.sparkle:nth-child(3) {
    animation-delay: 0.4s;
}

.sparkle:nth-child(4) {
    animation-delay: 0.6s;
}

.sparkle:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.3) rotate(10deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1) rotate(-10deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.9;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .success-title {
        font-size: 28px;
    }
    
    .success-message {
        font-size: 20px;
    }
    
    .heart {
        width: 80px;
        height: 80px;
    }
    
    .heart::before,
    .heart::after {
        width: 80px;
        height: 80px;
    }
    
    .heart::before {
        top: -40px;
    }
    
    .heart::after {
        left: 40px;
    }
}

