/* Activation Modal Styles */
/* أنماط نافذة التفعيل */

/* Blur background when modal is open */
body.activation-modal-open > *:not(.activation-modal-overlay) {
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
}

body.activation-modal-open {
    overflow: hidden;
}

/* Modal Overlay */
.activation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

/* Modal Container */
.activation-modal-container {
    width: 90%;
    max-width: 500px;
    min-width: 320px;
    background: linear-gradient(135deg, rgba(28, 27, 32, 0.95) 0%, rgba(15, 15, 18, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 197, 196, 0.2);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Modal Content */
.activation-modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.activation-logo img {
    filter: drop-shadow(0 4px 12px rgba(79, 197, 196, 0.3));
}

.activation-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title */
.activation-title {
    font-family: 'RTL', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

/* Subtitle */
.activation-subtitle {
    font-family: 'RTL', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    line-height: 1.6;
    max-width: 100%;
}

/* Passcode Inputs Container */
.passcode-inputs-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* Individual Passcode Input */
.passcode-input {
    width: 140px;
    height: 140px;
    background: #182024;
    border: 2px solid #3db3b2;
    border-radius: 30px;
    font-family: 'RTL', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.passcode-input:focus {
    border-color: #4fc5c4;
    box-shadow: 0 0 20px rgba(61, 179, 178, 0.3);
    transform: scale(1.05);
}

.passcode-input.error {
    border-color: #ff4444;
    animation: shake 0.5s;
}

/* Submit Button */
.activation-submit-btn {
    font-family: 'RTL', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1b20;
    background: #4fc5c4;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.activation-back-btn {
    font-family: 'RTL', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.875rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 190px;
}

.activation-back-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.activation-submit-btn:hover:not(:disabled) {
    background: #4fc5c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(61, 179, 178, 0.4);
}

.activation-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.activation-submit-btn:disabled {
    background: rgba(61, 179, 178, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Error Message */
.activation-error {
    font-family: 'RTL', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ff4444;
    text-align: center;
    margin-top: 10px;
    min-height: 20px;
    transition: all 0.3s ease;
}

/* Success Message Animation */
@keyframes successPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.activation-error.success {
    animation: successPulse 2s ease-in-out infinite;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.activation-modal-overlay.shake {
    animation: shake 0.5s;
}

/* Input styles */
.activation-input {
    text-align: right;
    direction: ltr;
    transition: all 0.3s ease;
}

/* Input container transition */
.activation-step > div {
    transition: opacity 0.3s ease;
}

/* Center input containers on desktop */
@media (min-width: 769px) {
    .activation-input {
        text-align: center;
    }
    
    .activation-step > div {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .activation-modal-container {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .activation-title {
        font-size: 1.25rem;
    }
    
    .activation-subtitle {
        font-size: 0.8rem;
    }
    
    .activation-logo img {
        height: 50px;
    }
    
    .activation-modal-content {
        gap: 1rem;
    }
    
    .activation-input {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .activation-modal-container {
        width: 95%;
        padding: 1rem;
    }
    
    .activation-title {
        font-size: 1.1rem;
    }
    
    .activation-subtitle {
        font-size: 0.75rem;
    }
}

