.instructions-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.instructions-modal.active {
    display: flex;
}

.instructions-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: default;
    max-width: 600px;
    width: 90%;
    height: 80%;
    overflow: hidden;
}

.instructions-scroll {
    max-height: 80vh;
    overflow: auto;
    padding: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    scrollbar-gutter: stable both-edges;
}

.instructions-scroll::-webkit-scrollbar {
    width: 8px;
}

.instructions-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.instructions-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.instructions-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.instructions-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.instructions-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.instructions-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.instructions-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.instructions-tab {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.instructions-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.instructions-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.instructions-tab-content {
    display: none;
}

.instructions-tab-content.active {
    display: block;
}

.instructions-section {
    margin-bottom: 2rem;
}

.instructions-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructions-section h3 i {
    color: #4facfe;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.instructions-list li {
    position: relative;
    padding: 1.1rem 0 1.1rem 2.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.08rem;
    background: none;
    display: block;
    min-height: 32px;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 1.1rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.instructions-list code {
    background: rgba(0, 0, 0, 0.18);
    color: #4facfe;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.98em;
    font-family: 'Fira Mono', 'Consolas', monospace;
}

.instructions-list strong {
    color: #fff;
    font-weight: 600;
}

.instructions-list span {
    color: #b0b0b0;
    font-size: 0.97em;
}

.instructions-note {
    background: rgba(255, 193, 7, 0.08);
    border-left: 4px solid #ffc107;
    border-radius: 0 5px 5px 0;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    color: #ffc107;
    font-size: 1.01rem;
}

/* Fixed download button, no holo */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff !important;
    padding: 0.28em 0.8em;
    border: none;
    border-radius: 0.8em;
    font-size: 0.96em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    outline: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.download-btn:focus {
    outline: none;
    box-shadow: none;
}

.download-btn i {
    font-size: 1em;
}

@media (max-width: 768px) {
    .instructions-content {
        width: 95%;
        max-height: 85vh;
    }

    .instructions-scroll {
        padding: 1.5rem;
    }

    .instructions-header {
        margin-bottom: 1rem;
    }

    .instructions-title {
        font-size: 1.3rem;
    }

    .instructions-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .instructions-tab {
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .instructions-list li {
        font-size: 0.98rem;
        padding-left: 2.2rem;
    }

    .instructions-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.9rem;
        top: 1.1rem;
    }

    .instructions-note {
        padding: 0.8rem 1rem;
        font-size: 0.97rem;
    }
}