/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff0000; /* Red accent for branding */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 10px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s ease-out;
}

.progress-bar-container {
    background-color: #333;
    border-radius: 50px;
    height: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #ff0000, #ff4d4d);
    width: 0;
    height: 100%;
    transition: width 0.6s ease-in-out;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    background-color: #282828;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-number {
    font-size: 1.1rem;
    font-weight: 600;
}

.step-status {
    width: 24px;
    height: 24px;
    display: inline-block;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.step-status.show {
    opacity: 1;
}

.step-status svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.5s ease;
}

.step-status.show svg {
    stroke-dashoffset: 0;
}

.step-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.action-button {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.action-button:active::before {
    width: 300px;
    height: 300px;
}

.action-button.disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.unlock-section {
    display: none;
    text-align: center;
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out;
}

.unlock-title {
    font-size: 1.8rem;
    color: #00ff00;
    margin-bottom: 10px;
}

.unlock-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.main-site-button {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-site-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
}

.activation-key-container {
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
    margin: 20px auto 0;
}

.activation-label {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
}

.key-wrapper {
    display: flex;
    position: relative;
}

#activationKey {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 10px 0 0 10px;
    padding: 10px;
    width: 100%;
    font-size: 1rem;
}

.copy-button {
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #cc0000;
}

.tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff00;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
}

#modalText {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* Device Modal Specific Styles */
.device-title {
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 10px;
}

.device-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.device-btn {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
    display: inline-block;
    min-width: 150px;
}

.device-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.device-btn.mobile {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
}

.device-btn.mobile:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .step {
        padding: 15px;
    }
    
    .action-button {
        width: 100%;
    }
    
    .main-site-button {
        width: 100%;
        padding: 12px;
    }
    
    .activation-key-container {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 30% auto;
        width: 90%;
    }
    
    .device-btn {
        width: 100%;
        margin: 5px 0;
    }
}