/* Installation Wizard Modal */
.wizard-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.95);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.wizard-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.wizard-container {
    background: linear-gradient(145deg, rgba(26, 29, 43, 0.98), rgba(14, 16, 24, 0.95));
    border: 1px solid rgba(124, 93, 255, 0.3);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.wizard-modal.is-visible .wizard-container {
    transform: translateY(0) scale(1);
}

.wizard-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.wizard-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #96a0c3;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
    transform: rotate(90deg);
}

.wizard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px 0;
}

.wizard-icon {
    font-size: 32px;
}

.wizard-title h2 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #7c5dff, #35c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-subtitle {
    color: #96a0c3;
    margin: 0;
    font-size: 0.95rem;
}

.wizard-progress {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.progress-dot {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-dot.active {
    background: linear-gradient(90deg, #7c5dff, #35c9ff);
}

.progress-dot.completed {
    background: #35c9ff;
}

.wizard-body {
    padding: 32px 40px;
    overflow-y: auto;
    flex: 1;
}

.wizard-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    max-width: 700px;
    margin: 0 auto;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c5dff, #35c9ff);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: #f4f7ff;
}

.step-content p {
    color: #96a0c3;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.step-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 24px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-tips {
    background: rgba(53, 201, 255, 0.1);
    border: 1px solid rgba(53, 201, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
}

.step-tips-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #35c9ff;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.step-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #96a0c3;
    font-size: 0.9rem;
}

.step-tips li {
    margin: 6px 0;
}

.step-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    color: #35c9ff;
    font-size: 0.95rem;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-code-copy {
    background: rgba(53, 201, 255, 0.1);
    border: 1px solid rgba(53, 201, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    color: #35c9ff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.step-code-copy:hover {
    background: rgba(53, 201, 255, 0.2);
}

.wizard-footer {
    padding: 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.wizard-nav {
    display: flex;
    gap: 12px;
}

.wizard-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #96a0c3;
}

.wizard-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #7c5dff, #35c9ff);
    color: #fff;
    border: none;
}

.wizard-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 93, 255, 0.4);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-step-indicator {
    color: #96a0c3;
    font-size: 0.9rem;
}

/* Success Step */
.success-icon {
    font-size: 64px;
    text-align: center;
    margin: 20px 0;
}

.success-message {
    text-align: center;
}

.success-message h3 {
    font-size: 1.75rem;
    margin: 0 0 12px 0;
}

.success-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .wizard-header,
    .wizard-body,
    .wizard-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .wizard-footer {
        flex-direction: column;
    }

    .wizard-nav {
        width: 100%;
    }

    .wizard-btn {
        flex: 1;
    }

    .step-content h3 {
        font-size: 1.25rem;
    }
}