/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #10b981, #0ea5e9);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--error-color);
}


.toggle-link {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-link:hover {
    color: var(--accent-color);
}
