.cookie-consent-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
}

.cookie-consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999;
    padding: 30px;
    text-align: left;
    display: none;
    animation: modalSlideIn 0.3s ease-out;
}

.cookie-modal-shake {
    animation: modalShakeSmooth 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes modalShakeSmooth {
    0%, 100% { 
        transform: translate(-50%, -50%); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translate(-51%, -50%); 
    }
    20%, 40%, 60%, 80% { 
        transform: translate(-49%, -50%); 
    }
}

.cookie-consent-accept {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    animation: permanentAttention 2s ease-in-out infinite;
}

.cookie-consent-accept:hover {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.6);
}

@keyframes permanentAttention {
    0% {
        box-shadow: 0 4px 15px rgba(45, 55, 72, 0.4), 0 0 0 0 rgba(45, 55, 72, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(45, 55, 72, 0.6), 0 0 0 8px rgba(45, 55, 72, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 15px rgba(45, 55, 72, 0.4), 0 0 0 0 rgba(45, 55, 72, 0);
        transform: scale(1);
    }
}

.cookie-consent-accept.enhanced-attention {
    animation: enhancedPulse 1s ease-in-out infinite, permanentAttention 2s ease-in-out infinite;
}

@keyframes enhancedPulse {
    0% {
        border-color: rgba(45, 55, 72, 0.3);
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    50% {
        border-color: rgba(245, 101, 101, 0.8);
        background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
        color: white;
    }
    100% {
        border-color: rgba(45, 55, 72, 0.3);
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
}

.cookie-accept-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.cookie-consent-icon {
    font-size: 40px;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.cookie-consent-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 16px;
    text-align: center;
}

.cookie-consent-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.cookie-consent-section {
    margin-bottom: 18px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #2d3748;
}

.cookie-consent-section h4 {
    color: #2d3748;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 15px;
}

.cookie-consent-section p, .cookie-consent-section ul {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cookie-consent-section ul li {
    margin-bottom: 6px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    font-size: 14px;
}

.cookie-consent-decline {
    background: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.cookie-consent-decline:hover {
    background: #cbd5e0;
    color: #2d3748;
}

.main-content {
    filter: blur(0px);
    transition: filter 0.3s ease;
}

.main-content.blurred {
    filter: blur(3px);
    pointer-events: none;
}

.rules-checkbox-container {
    position: relative;
    margin: 15px 0;
}

.rules-checkbox-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.verification-loading {
    display: none;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(74, 85, 104, 0.3);
}

.verification-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-content {
    position: relative;
    z-index: 1;
}

.loading-spinner {
    display: inline-block;
    width: 35px;
    height: 35px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

.loading-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.verification-ready {
    display: none;
    background: #2d3748;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.3);
    animation: readySlideIn 0.5s ease-out;
}

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

.ready-icon {
    font-size: 32px;
    margin-bottom: 10px;
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ready-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ready-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .cookie-consent-modal {
        width: 96%;
        padding: 20px;
        max-height: 90vh;
        top: 50%;
        border-radius: 6px;
    }

    .cookie-consent-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .cookie-consent-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .cookie-consent-text {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .cookie-consent-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .cookie-consent-section h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .cookie-consent-section p, .cookie-consent-section ul {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 5px 20px;
        font-size: 11px;
    }
    
    .verification-loading,
    .verification-ready {
        margin: 15px 0;
        padding: 18px 15px;
    }
    
    .loading-title {
        font-size: 15px;
    }
    
    .loading-subtitle,
    .ready-subtitle {
        font-size: 13px;
    }

    .loading-spinner {
        width: 30px;
        height: 30px;
        margin-bottom: 12px;
    }

    .cookie-modal-shake {
        animation: modalShakeMobileSoft 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    }

    @keyframes modalShakeMobileSoft {
        0%, 100% { transform: translate(-50%, -50%); }
        10%, 30%, 50%, 70%, 90% { transform: translate(-50%, -49%); }
        20%, 40%, 60%, 80% { transform: translate(-50%, -51%); }
    }
}

@media (max-width: 480px) {
    .cookie-consent-modal {
        width: 98%;
        padding: 15px;
        max-height: 95vh;
    }

    .cookie-consent-title {
        font-size: 18px;
    }

    .cookie-consent-text {
        font-size: 11px;
    }

    .cookie-consent-section {
        padding: 10px;
    }

    .cookie-consent-section h4 {
        font-size: 13px;
    }

    .cookie-consent-section p, .cookie-consent-section ul {
        font-size: 11px;
    }
    
    .verification-loading,
    .verification-ready {
        border-radius: 8px;
        padding: 15px 12px;
    }
    
    .ready-icon {
        font-size: 28px;
    }

    .loading-spinner {
        width: 25px;
        height: 25px;
    }
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.cookie-consent-link {
    color: #2d3748;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-link:hover {
    color: #1a202c;
}

.swal2-container {
    z-index: 10001 !important;
}

.swal2-backdrop {
    background: rgba(0,0,0,0.6) !important;
}