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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.15), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.1), transparent 50%),
        linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
    color: #fff;
    padding: 50px 24px 44px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(127, 29, 29, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

header h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    position: relative;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    letter-spacing: 0.3px;
}

.trust-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

main {
    max-width: 900px;
    margin: -32px auto 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(99, 102, 241, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    margin-bottom: 32px;
}

form::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-group {
    margin-bottom: 32px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
}

.form-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

input[type=text] {
    width: 100%;
    padding: 14px 16px;
    margin-top: 6px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafbfc;
}

input[type=text]:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

input[type=text]::placeholder {
    color: #9ca3af;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin: 0;
}

.checkbox-grid label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.checkbox-grid input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-grid input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
}

.checkbox-grid input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-grid label:has(input:checked) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: #8b5cf6;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    margin-top: 24px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

button:active {
    transform: translateY(0);
}

#results {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#results:empty {
    display: none !important;
}

#results h3 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 32px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899) 1;
}

#results h3:first-child {
    margin-top: 0;
}

#results strong {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin: 20px 0 12px 0;
}

#results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#results li {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(185, 28, 28, 0.05) 100%);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #10b981, #b91c1c) 1;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

#results li:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.15);
}

#results p {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    margin: 12px 0;
}

#results.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

#results.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    text-align: center;
    padding: 32px 24px;
    margin-top: 60px;
}

.footer-content {
    font-size: 13px;
    color: #8b92a8;
    margin-bottom: 12px;
}

.footer-content .data-link {
    color: #a8b0c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content .data-link:hover {
    color: #ffffff;
}

.developer-info {
    font-size: 14px;
    color: #a8b0c5;
    font-weight: 400;
    margin-bottom: 16px;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.developer-links a {
    color: #8b92a8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.developer-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.developer-links a i {
    font-size: 20px;
}

@media (max-width: 640px) {
    header {
        padding: 48px 20px 40px 20px;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    header p {
        font-size: 16px;
    }
    
    form, #results {
        padding: 28px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .developer-links {
        flex-direction: column;
        gap: 12px;
    }
}