/* Modern Compact Consent Modal - Best of Both Worlds */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consent-modal {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95));
    border-radius: 24px;
    width: 500px; /* Compact size, not full width */
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(252, 131, 24, 0.2),
        inset 0 0 50px rgba(252, 131, 24, 0.1);
    position: relative;
    animation: modalEntrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(252, 131, 24, 0.3);
}

@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(-10deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.02) rotateX(5deg);
    }
    100% {
        transform: scale(1) rotateX(0);
    }
}

.modal-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle at center, rgba(252, 131, 24, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: glowRotate 15s linear infinite;
}

@keyframes glowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.consent-header {
    background: linear-gradient(135deg, 
        rgba(252, 131, 24, 0.95) 0%, 
        rgba(255, 105, 180, 0.95) 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.consent-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0.05) 0px, 
            rgba(255, 255, 255, 0.05) 1px, 
            transparent 1px, 
            transparent 10px);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.consent-icon {
    font-size: 42px;
    margin-bottom: 15px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.consent-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.consent-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

/* Logo in header */
.logo-sparkle {
    font-size: 32px;
    animation: sparkle 2s infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.consent-body {
    padding: 30px;
    background: rgba(20, 20, 30, 0.7);
}

/* Compact Cards */
.consent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.consent-card {
    background: linear-gradient(145deg, rgba(40, 40, 50, 0.8), rgba(30, 30, 40, 0.8));
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(252, 131, 24, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.consent-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(252, 131, 24, 0.5);
    box-shadow: 
        0 15px 30px rgba(252, 131, 24, 0.2),
        inset 0 0 0 1px rgba(252, 131, 24, 0.1);
}

.card-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(252, 131, 24, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.consent-card:hover .card-glow {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fc8318, #ff416c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-icon i {
    color: white;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.card-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: iconShine 2s infinite linear;
}

@keyframes iconShine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.checkbox-box {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(252, 131, 24, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container:hover .checkbox-box {
    border-color: #fc8318;
    box-shadow: 0 0 15px rgba(252, 131, 24, 0.3);
}

.checkbox-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #fc8318, #ff416c);
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkbox-container input:checked + .checkbox-box::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-container input:checked + .checkbox-box {
    border-color: #fc8318;
    background: rgba(252, 131, 24, 0.1);
}

.checkbox-label {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    flex: 1;
}

/* Actions - Compact but stylish */
.consent-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-exit {
    background: linear-gradient(135deg, #434343, #000000);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.btn-exit:hover {
    transform: translateY(-3px);
    border-color: #ff6b6b;
    box-shadow: 
        0 10px 25px rgba(255, 107, 107, 0.4),
        inset 0 0 0 1px rgba(255, 107, 107, 0.2);
}

.btn-accept {
    background: linear-gradient(135deg, #fc8318 0%, #ff416c 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(252, 131, 24, 0.3);
}

.btn-accept:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(252, 131, 24, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-accept:disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
    box-shadow: none !important;
}

.consent-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-link {
    color: rgba(252, 131, 24, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.policy-link:hover {
    color: #fc8318;
    text-shadow: 0 0 10px rgba(252, 131, 24, 0.5);
}

.policy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fc8318, transparent);
    transition: width 0.3s ease;
}

.policy-link:hover::after {
    width: 100%;
}

/* Success Animation */
.success-animation {
    display: none;
    text-align: center;
    padding: 40px 30px;
    animation: successReveal 0.6s ease;
}

@keyframes successReveal {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon-animated {
    font-size: 64px;
    color: #fc8318;
    margin-bottom: 20px;
    animation: 
        successSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        successPulse 2s infinite 1s;
    display: inline-block;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-message {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Particle Effects (Subtle) */
.consent-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(252, 131, 24, 0.2), transparent);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .consent-modal {
        width: 90%;
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .consent-header {
        padding: 25px 20px;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }
    
    .consent-header h2 {
        font-size: 1.6rem;
    }
    
    .consent-body {
        padding: 25px 20px;
    }
    
    .consent-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .consent-card {
        padding: 20px;
    }
    
    .consent-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .consent-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .consent-header {
        padding: 20px 15px;
    }
    
    .consent-header h2 {
        font-size: 1.4rem;
    }
    
    .consent-icon {
        font-size: 36px;
    }
    
    .consent-body {
        padding: 20px 15px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
}

/* Scrollbar styling */
.consent-modal::-webkit-scrollbar {
    width: 8px;
}

.consent-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.consent-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #fc8318, #ff416c);
    border-radius: 10px;
}

.consent-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff9a3d, #ff6b9d);
}