.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 7, 14, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: min(800px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(9, 15, 28, 0.98));
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 36px;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, #a7b3c4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--muted-strong);
}

.modal-body {
    display: grid;
    gap: 30px;
}

.step-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent1);
    color: #06121a;
    font-weight: 900;
    font-size: 1.2rem;
}

.step-info h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: #fff;
}

.step-info p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.step-visual {
    grid-column: 1 / -1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-visual img {
    width: 100%;
    display: block;
}

.modal-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.modal-footer .btn {
    min-width: 200px;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 24px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .step-card {
        padding: 16px;
    }
}
