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

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

.container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease;
}

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

.card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 15px;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.5;
}

.features {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecf1 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature i {
    font-size: 24px;
    color: #667eea;
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.step-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.fade-in {
    animation: slideUp 0.5s ease;
}

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

.hidden {
    display: none;
}

.input-container {
    margin-bottom: 20px;
}

.code-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    color: #1a202c;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.code-input:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.code-input.invalid {
    border-color: #f56565;
}

.input-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #a0aec0;
}

.error-message {
    margin-top: 8px;
    font-size: 13px;
    color: #f56565;
    display: none;
}

.error-message.show {
    display: block;
}

.btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.5);
}

.trust-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-badge i {
    font-size: 14px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.checkmark {
    width: 100%;
    height: 100%;
    stroke-width: 3;
    stroke: #48bb78;
    stroke-miterlimit: 10;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.result-message {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
}

.code-display {
    font-weight: 700;
    color: #667eea;
}

.disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.5;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    flex-wrap: wrap;
}

.cookie-banner span {
    font-size: 14px;
    color: #4a5568;
}

.cookie-banner button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    .features {
        gap: 10px;
    }

    .feature {
        min-width: 100px;
        padding: 12px 8px;
    }

    .feature i {
        font-size: 20px;
    }

    .feature-text {
        font-size: 12px;
    }

    h2 {
        font-size: 22px;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .logo-text {
        font-size: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .features {
        gap: 8px;
    }

    .feature {
        flex: 1;
        min-width: 0;
        padding: 10px 5px;
    }

    .feature i {
        font-size: 18px;
    }

    .feature-text {
        font-size: 11px;
    }
}
